Read DV encoded AVI file in Matlab 2015b 64 on Linux
6 views (last 30 days)
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
Dinesh Iyer on 28 Oct 2015
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 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.