Filter löschen
Filter löschen

Error runing ffmpeg in Matlab function in linux

3 Ansichten (letzte 30 Tage)
yan
yan am 13 Mär. 2012
I download exemplarsvm code, the problem: when I run : [tmp,lenstring] = unix('/usr/bin/ffmpeg -i "/home/ly/Documents/movie/AVSS_AB_Easy_Divx.avi" 2>&1 | grep Duration') the return value is tmp = 1 lenstring = '' , lenstring is Empty. And when I jues run: /usr/bin/ffmpeg -i "/home/ly/Documents/movie/AVSS_AB_Easy_Divx.avi" 2>&1 | grep Duration in terminal, the result is " Duration: 00:03:38.96, start: 0.000000, bitrate: 4005 kb/s".
So I think Matlab doesnot call ffmpeg right. and I just: unix('fmpeg') in matlab.result: ffmpeg: error while loading shared libraries: libraw1394.so.8: cannot open shared object file: No such file or directory
ans =
127
Wat does it mean? How can I fix it? Thank you for any help!

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 13 Mär. 2012
What do you get when you just run:
>> [status,result] = unix('/usr/bin/ffmpeg -i "/home/ly/Documents/movie/AVSS_AB_Easy_Divx.avi" 2>&1')
It is possible that the system PATH and LD_LIBRARY_PATH are not set up correctly in the MATLAB session. Run the following commands in MATLAB and the system shell and compare the results:
In MATLAB:
>> getenv PATH
>> getenv LD_LIBRARY_PATH
In system shell:
$ printenv PATH
$ printenv LD_LIBRARY_PATH
  1 Kommentar
yan
yan am 14 Mär. 2012
thank you! I have fixed it by:
ln -s /usr/lib/libraw1394.so.11.01 /usr/local/MATLAB/R2010b/sys/os/glnx86/libraw1394.so.8
Thank you for helping

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by