Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
FFmpeg not encoding with libx264 library
29 octobre 2011, par bOkeifusHey people of StackOverflow. I have been having a strange issue that I'm not exactly sure what's going on. I am using FFmpeg to convert any incoming video files to h264 mp4 files using the libx264. This is the log that I get from running this line of code:
ffmpeg -y -i vdoname.flv -acodec libfaac -vcodec libx264 -sameq vid.mp4
This is the log output after running the line:
FFmpeg version SVN-r13428, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-nonfree --enable-pthreads --enable-liba52 --enable-liba52bin --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-network --disable-ipv6 --disable-ffserver --disable-ffplay libavutil version: 49.6.0 libavcodec version: 51.57.0 libavformat version: 52.14.0 libavdevice version: 52.0.0 built on Feb 17 2009 09:01:13, gcc: 4.1.2 20071124 (Red Hat 4.1.2-42) Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 49.92 (599/12) Input #0, flv, from '/html/video/937.flv': Duration: 00:00:10.08, start: 0.000000, bitrate: 48 kb/s Stream #0.0: Video: flv, yuv420p, 720x480, 49.92 tb(r) Stream #0.1: Audio: mp3, 22050 Hz, stereo, 48 kb/s Output #0, h264, to '/html/flvideo/new_937.mp4': Stream #0.0: Video: libx264, yuv420p, 720x480, q=2-31, 200 kb/s, 49.92 tb(c) Stream #0.1: Audio: libfaac, 22050 Hz, stereo, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 [libx264 @ 0x11d58b0]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow! Press [q] to stop encoding
Can someone please help me out and tell me what to do to get this to work? I guessed that the libx264 external library is not installed but it doesn't exactly say that in the log file and it looks as if it does find it but then doesn't actually encode the video.
Any and all help is greatly appreciated.
-
PHP detect if shell_exec() command failed
28 octobre 2011, par Chad WhitakerI'm running the ffmpeg command within PHP's shell_exec() to convert several videos in a list. Is there anyway to detect if an error happened while the video was being converted (or atleast verify it fully completed the conversion)?
I don't want to stop converting other videos if an error happens, just the ability to record the error.
<?php shell_exec('ffmpeg -i downloads/flv/file1.flv -vcodec libvpx -acodec libvorbis downloads/webm/file1.webm'); if(error) { //run a command here to report the error (ie. MySQL or email) } ?>
-
Convert video file to TIFF with ffmpeg.dll or avcodec.dll ? Is "on-the-fly" possible ?
27 octobre 2011, par BerschiI want to create a program, which gets a video-file from Qt, converts that video file to TIFF-files and sends them to an algorithm which handles these TIFF-Files.
My questions:- is it possible with ffmpeg or avcodec not to convert a video-file to TIFF-files first on harddrive and send them to the algorithm after that, but to convert frame for frame and send it to the algorithm right away?
- The more important question: Is it possible to do that not with an external process with ffmpeg.exe, but with ffmpeg.dll? Or is it only possible with avcodec.dll? (It doesn't have to be "on-the-fly" like at my point above) How can I create a ffmpeg.dll with header and lib?
-
How can I turn libavformat error messages off
27 octobre 2011, par amrhassanBy default, libavformat writes error messages to
stderr
, Like:Estimating duration from bitrate, this may be inaccurate
How can I turn it off? or better yet, pipe it to my own neat logging function?
Edit: Redirecting stderr to somewhere else is not acceptable since I need it for other logging purposes, I just want libavformat to not write to it.
-
ffmpeg, lampp and phpvideotoolkit sequence ? ubuntu 11.10 desktop
27 octobre 2011, par TobyHello i am very new to owning a server and all. but im up for it.
so what i want is ultimately to let a youtube clone cms run on my 'home-server' i know i need ffmpeg, ffmpeg-php lampp and phpvideotoolkit(optional) but what is the most effecient way to installing all these packages?
and could you give me the commands for them? i also heard it is possible to download all these from synaptic package manager? what packages should i be getting then? I already tried this 4 times and ended up in screwing up my ubuntu resulting in formatting it 4 times...
again i am really noob in this but if you could help me that would be so freeking awesome! (running ubuntu 11.10 desktop)