Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
libavcodec not found even though ffmpeg has been built and installed
12 novembre 2013, par user1049697I have a program that depends on
libavcodec
on Linux. I have downloaded the ffmpeg sources and built them using./configure
,make
andmake install
. But the program that depends onlibavcodec
refuses to recognize the libraries. What have I done wrong? I am building on Ubuntu 13.10. -
OpenCV won't open the same videofile as opened before
12 novembre 2013, par OpenMindedI have a problem to load a videofile. I am using Visual Studio 2010 and OpenCV 2.4.6.
Sometimes it loads video properly and sometimes it won't, although it is the same file and the same code (Nothing has changed). So basically, one day it works and the next day does not. I noticed some strange behavior BEFORE.
When I run the code I get Unhandled exception
and then No source available
A few weeks ago I wasn't able to open a video in one of my project. The problem was that if I opened a project from pinned Start menu than the video couldn't be loaded.
BUT when I opened a solution right from a directory than video was loaded properly. I couldn't believe so I tried this more times.
However, in either case it does not work this time.
ALso, I tried to run Visual Studio as admin. Nothing.
What could be a problem here?
-
FFMpeg for IOS - Disabling Log Levels
12 novembre 2013, par VeeruI have compiled ffmpeg for ios. The configuration for compiling, i have borrowed from kxmovie's Rake file.
Everything works fine, but i would like to disable all the debug messages showed in console by the decoder.
How can i achieve this. I believe it should be the ffmpeg is compiled, but am not sure how to go about it. Any suggestions would be highly appreciated.
configure command:
./configure --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc --disable-bzlib --target-os=darwin --enable-cross-compile --enable-gpl --enable-version3 --assert-level=2 --disable-mmx --arch=i386 --cpu=i386 --extra-ldflags='-arch i386' --extra-cflags='-arch i386' --disable-asm --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk --extra-ldflags=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/system
-
PHP exec is causing issues in my webservice
11 novembre 2013, par medaGuys I need some help with this
I am building an android app that uploads a sound file to a server then converts it. Then the next step in my app is to populate a spinner using JSON from another script
Everything works as expected but for some reason I get an JSON parsing error on the next step. I made sure the JSON is correct, so the problem is not there. You can trust me on that, I debugged this.
The android error is:
E/JSON Parser(14625): Error parsing data org.json.JSONException: Value !DOCTYPE of type java.lang.String cannot be converted to JSONObject
It the JSON script is not even called, because I put some logs to make sure
It seems like the issue is comming from the webservice instead, particularly the following function
function ConvertFileToUlaw($input, $output) { try { exec("ffmpeg -i \"$input\" -codec:a pcm_mulaw -f mulaw \"$output\""); //error_log($output); } catch (Exception $e) { error_log($e->getMessage()); } }
I call it like this:
ConvertFileToUlaw($ThreeGpFilePath, $ulawFilePath);
Now this works fine, and my sound file is converted, but I can get the next script to run without error, unless I comment it out.
I am stumped at this point, please advice.
-
Shell script not working on a different server
11 novembre 2013, par Alex BlundellI've just migrated a shell script to another server with similar specs (same CentOS version) but the following command seems to fail:
find /home/removed/captures -name '*.avi' -exec ffmpeg -y -i {} -ab 1280 -b 1024000 {}.mp4 \;
The following message gets returned:
find: `ffmpeg': No such file or directory
I have installed ffmpeg, and made sure it runs from the command line. I've also tried passing in the full path to ffmpeg instead of just 'ffmpeg'. Both ffmpeg versions are the same on each server. I was thinking it was something to do with syntax of the find program changing between versions, but they're both the same version too. This runs via the root crontab.
The script does run by itself though if I call it directly. Could this be an issue with permissions? It runs on a cPanel server.
Thanks :)