Error runing ffmpeg in Matlab function in linux
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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!
0 commentaires
Réponses (1)
Kaustubha Govind
le 13 Mar 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
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!