필터 지우기
필터 지우기

Error runing ffmpeg in Matlab function in linux

조회 수: 3 (최근 30일)
yan
yan 2012년 3월 13일
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!

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 3월 13일
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
yan
yan 2012년 3월 14일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by