Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg usage corrupts pointer to filenames
1er décembre 2014, par user296612Say I have 2 files in a folder named 'jack.aac' and 'jill.aac', and I run the following script;
ls -f -tr *.aac | while read i; do echo $i done
- I get 'jack.aac' and 'jill.aac' printed as expected. If however I include 'ffmpeg -i "$i" -f ffmetadata metadata.txt' in the while-loop, the second filename to be 'read' ends up missing a character - 'ack.aac' (instead of 'jack.aac') for instance. ffmpeg-usage somehow seems to alter the pointer-to-filenames value. Can anyone tell me how to get around this?
-
No Working C Compiler Found
1er décembre 2014, par Rajendran AmbikaI just downloaded it from here to try it:
http://www.videolan.org/developers/x264.html
I ran ./configure. It complained that I didn't have an assembler and suggested I ran ./configure --disable-asm. Then all seemed to compile OK.
How did you install gcc? From the repositories?
After i check the GCC version by using (gcc --version) command in terminal. The log is
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
how can i solve this issue ..? I want to make compile and install.
-
ffmpeg transcode and avfilter error
1er décembre 2014, par rosenFFmpeg configure options:
--enable-avfilter \ --enable-nonfree \ --disable-filters \ --enable-filter=movie \ --enable-filter=overlay \ --enable-filter=null \ --enable-filter=anull \ --enable-filter=scale \ --enable-filter=rotate \
and run success use
filter_spec = "null"; /* passthrough (dummy) filter for video */
and get the transcoding video success! but use
filter_spec = "movie=/storage/emulated/0/image.png [wm]; [in][wm] overlay=10:10 [out]";
then run to
if ((ret = avfilter_graph_parse_ptr(filter_graph, filter_spec, &inputs, &outputs, NULL)) < 0) goto end;
get the error:
Invalid data found when processing input
please help me...
-
Install FFMPEG on WAMP
1er décembre 2014, par nico55555I've probably spent over 12 hours trying to install FFMPEG on WAMP. I'm aware that other people have had this question answered on this site, however it does not work for my setup.
I have tried the below:
Download ffmpeg_new Copy php_ffmpeg.dll from the php5 folder to the C:\wamp\bin\php\php5.2.9-2\ext Copy files from common to the windows/system32 folder Add extension=php_ffmpeg.dll to php.ini file Restarted all services (Apache, PHP...)
My current setup is PHP 5.2.1, Apache 2.0.63. I have a Windows 7 64bit computer.
I get the following error in my PHP error log:
[22-Jun-2012 01:39:31] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.2.1/ext/php_ffmpeg.dll' - The specified module could not be found. in Unknown on line 0
Obviously I have placed the module in the ext folder.
Phpinfo.php verifies that the FFMPEG module is not being loaded. I have tried installing PHP 5.3 (with a later FFMPEG version), 5.2.6 and 5.2.9-2, but the module still fails to load. Is there anything else I should try? Does having a 64bit Windows 7 computer make any difference?
-
How to setup ffmpeg for linux server
1er décembre 2014, par hiteshI need to create a screen shot from video,
I have followed this tutorial to do the intial setup in window 8, php 5.3
1) I downloaded the ffmpeg from here -[ http://ffmpeg.zeranoe.com/builds/ ] for 64 bit operating system.
2) I followed the https://www.youtube.com/watch?v=gU49GiWGGAI , video and did all configuration successfully and
phpinfo()
shows thatffmpeg
has been installed.3) Then I tried this to find out whether it is working or not,
It worked successfully
4) Next I followed this video tutorial here and thumbnails were created successfully.
below is my code
/** * FFMPEG-PHP Test Script * * Special thanks to http://www.sajithmr.me/ffmpeg-sample-code for this code example! * See the tutorial at http://myownhomeserver.com on how to install ffmpeg-php. */ error_reporting(1); error_reporting(E_ALL ^ E_NOTICE); // Check if the ffmpeg-php extension is loaded first extension_loaded('ffmpeg') or die('Error in loading ffmpeg'); // Determine the full path for our video $vid = realpath('./videos/myvideo.mp4'); $videosize = filesize($vid); $remoteVideo = 'http://video-js.zencoder.com/oceans-clip.mp4'; //ffmpeg $ffmpeg = dirname(__FILE__) . "\\ffmpeg\\bin\\ffmpeg"; $imageFile = "1.png"; $image2 = "2.png"; $size = "120x90"; $getfromsecond = 7; $cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size $imageFile"; $cmd2 = "$ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size $image2"; if(!shell_exec($cmd)){ echo "Thumbnail created"; }else{ echo "Error Creating thumbnail"; } if(!shell_exec($cmd2)){ echo "Thumbnail for remote url was created"; }else{ echo "Error Creating thumbnail for remote url "; }
OUTPUT Thumbnail created Thumbnail for remote url was created
Now above code works as expected in my local, in window machine , I need to do it in my server environment(Linux server) with php 5.5. How do I do the configuration for ffmpeg in linux server with php 5.5.