Read DV encoded AVI file in Matlab 2015b 64 on Linux

3 次查看(过去 30 天)
Hi,
although I know that handling of codecs can be quite messy under Linux, I now try to read an avi-file using VideoReader. The video codec is named "Generic DV" - which I know nothing about, unfortuntely. Is there a way to open this video in Matlab (Yes, I want to get down to individual pixel values) without having to convert it ?
I tried so far (1) to replace the libstdc++ in the matlab folder -> changed nothing (2) to install gstreamer-ffmpeg -> allowed me to at least open .mp4 files, but still no luck with dv-avi files
cheers Jannes

回答(1 个)

Dinesh Iyer
Dinesh Iyer 2015-10-28
The libstdc++ workaround does not apply here. The issue you are facing is that you do not have the suitable codec to read the file. Couple of things to try are:
1. Try playing the file using Totem Player. This also uses Gstreamer. Please ensure that the Gstreamer version it is using is 0.10 as VideoReader supports only 0.10 and not 1.0 yet.
2. Try the following gst-launch command from the Linux terminal after copying your file myfile.avi to the location /tmp.
gst-launch-0.10 --version
gst-launch-0.10 playbin2 uri=file:///myfile.avi % If codecs present, should display video in a window
There is a library called libgstdv which you might need to install. Try to install this and then give it a shot.
Dinesh
  2 个评论
Jannes Gladrow
Jannes Gladrow 2015-10-29
Thank you for the answer!
(1) Totem does play the movie - but I don't know at the moment which gstreamer version it is using. (How do I find out? Apparently, both versions are installed.)
(2) The output for the gst-launch version command is gst-launch-0.10 version 0.10.36 GStreamer 0.10.36
(3) the second command fails. Is the path to the file correct? It says it doesn't find the file in /tmp.
(4) Where do I get libgstdv from? :)
Dinesh Iyer
Dinesh Iyer 2015-10-29
编辑:Dinesh Iyer 2015-10-29
(1) For Totem, go to Menu bar > About Totem
(2) As for the gst-launch command, copy the file to /tmp before trying it
(3) I think libgstdv is part of the Gstreamer good plugins. You can try and install this package gstreamer0.10-plugins-good from your Linux package manager.

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by