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
0 个评论
回答(1 个)
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 个评论
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!