Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
How to install FFMPEG in PHP to encode video
11 septembre 2012, par Rahul TSI want to know how this FFMPEG to integrate in php. I want to encode video. I got this link earlier to refer
http://youtubeclone.wordpress.com/2007/05/26/how-to-convertencode-files-to-flv-using-ffmpeg-php/
but dont know where to point this
$ffmpegPath = "/path/to/ffmpeg"; $flvtool2Path = "/path/to/flvtool2";
here we have to give the path "/path/to/ffmpeg", "/path/to/flvtool2". I am little bit confused what to do or how to integrate ffmpeg, flvtool2 in php
-
problem compiling ffmpeg for iFrameExtractor
11 septembre 2012, par Robin RyeI'm trying to compile the ffmpeg by using the make and build files in iFrameExtractor example. firstly i tried to follow the readme file on the github, which only says to run the
./build_universal
in ffmpeg folder. it did not worki then tried to follow the info in INSTALL without success. i then tried doing the stuff in INSTALL followed by the
./build_universal
which didn't work. All the *.a files that are imported to the project exists until the end of the build sequence. when the lipo commands in build_universal are run, which i guess concat the .a files for the different architectures(?). anyhow these leave the following errors:lipo: specifed architecture type (armv6) for file (armv6/libavcodec.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6)) lipo: specifed architecture type (armv6) for file (armv6/libavdevice.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6)) lipo: specifed architecture type (armv6) for file (armv6/libavformat.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6)) lipo: specifed architecture type (armv6) for file (armv6/libavutil.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6)) lipo: specifed architecture type (armv6) for file (armv6/libswscale.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6))
i can get the project to compile for simulator if i only use
./build_armv7
but if i run the universal the .a files are removed in the end. and only using doesn't work to build for iphone 4 . -
taking time stamped sequence of images from a video using ffmpeg
11 septembre 2012, par user1662322How should I take time stamped images from a video using ffmpeg? for example;
image-0001 --> 0:00:00.0000 image-0002 --> 0:00:01.0000 image-0003 --> 0:00:02.0000 .....
I have tried;
ffmpeg -i input.flv -ss 00:00:00.0000 -r 1 image%4d.jpg
But it seems that using this code, ffmpeg does not take exactly one picture per second and the time of the taken pictures can not be calculated accurately from the image file number.
-
ffmpeg0.11.1 streaming issue h264
11 septembre 2012, par ameethI am using ffmpeg 0.11.1 onto a panda board for streaming. Linux linaro-developer 3.4.0-1-linaro-lt-omap #1~120625232503-Ubuntu Sx Ubuntu os.
./ffmpeg \ -f alsa -async 1 -ac 2 -i hw:2,0 \ -f video4linux2 -s vga -i /dev/video0 \ -acodec aac -b:a 40k \ -r 25 -s vga -vcodec libx264 -preset fast -strict -2 -b:v 320K -pass 1 \ -f h264 rtmp://.../live/mp4:demo101
by the above command i able to stream but after a minimum time around 2 min streaming stops can any help me to resolve this problem.
-
How to extract raw YUV files from MPEG2 TS file ?
11 septembre 2012, par Wang WeiI have a 1920x1080 mpeg2 .ts file. I need to get the raw YUV files for each frame. I tried ffmpeg but no luck. I end up with many small files. I expect each frame to be 1920x1080x1.5 = 3110400 Bytes.
[root@dwarch frames]# ffmpeg -i video.ts -f image2 foo-%03d.yuv FFmpeg version git-N-28713-g65daa94, Copyright (c) 2000-2011 the FFmpeg developers built on Mar 30 2011 09:20:16 with gcc 4.6.0 configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-version3 --enable-nonfree --enable-runtime-cpudetect --disable-debug libavutil 50. 40. 0 / 50. 40. 0 libavcodec 52.116. 0 / 52.116. 0 libavformat 52.104. 0 / 52.104. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpegts, from 'video.ts': Duration: 00:04:51.58, start: 0.333333, bitrate: 36041 kb/s Program 10 Stream #0.0[0x20]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 35000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0.1[0x21]: Audio: ac3, 48000 Hz, 5.1, s16, 224 kb/s Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x97148c0] w:1920 h:1080 pixfmt:yuv420p [setdar @ 0x9714df0] a:16/9 [setdar @ 0x9714df0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'Parsed filter 0 setdar' [scale @ 0x9711db0] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuvj420p flags:0x4 [setdar @ 0x9714df0] w:1920 h:1080 -> dar:16/9 sar:1/1 Output #0, image2, to 'foo-%03d.yuv': Metadata: encoder : Lavf52.104.0 Stream #0.0: Video: mjpeg, yuvj420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc Stream mapping: Stream #0.0 -> #0.0