From ajsinclair at gmail.com Wed May 1 00:02:26 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Wed, 1 May 2013 08:02:26 +1000 Subject: [FFmpeg-user] REAL TIME TRANDSCODING In-Reply-To: <517FD23E.60401@mail.com> References: <517FCD1C.2020003@mail.com> <517FD23E.60401@mail.com> Message-ID: If your ts is on a udp source use that as an input to ffmpeg On 01/05/2013, at 12:16 AM, Todd Poole wrote: > Thanks Carl. Was not sure if it could be done with ffmpeg. I am able to record the ts and with a delay in starting the transcoding to mp4, the mp4 can be viewed. Was looking to transcode the ts without recording it, just send it to transcoding and be able to view the mp4. I know there will be a delay. At this time hardware is not the problem. > > Todd Poole > > On 4/30/2013 10:07 AM, Carl Eugen Hoyos wrote: >> Todd Poole mail.com> writes: >> >>> Is it possible to transcode ts to mp4 in real time >>> (on the fly) with ffmeg. If so can I get an example? >> >> FFmpeg is not a time-triggered real-time operating >> system and there is therefore no garantuee for any >> defined performance, but depending on your hardware, >> you will certainly find a combination of resolution, >> frame rate, encoding complexity and threading usage >> that fits your needs. >> >> (Note that "transcode ts to mp4" is not nearly a >> sufficient explanation for what you want.) >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mazen at pnettv.com Wed May 1 00:05:58 2013 From: mazen at pnettv.com (Mazen) Date: Wed, 1 May 2013 00:05:58 +0200 Subject: [FFmpeg-user] How many live FTA channels can be transcoded In-Reply-To: <0F63A818-236A-4A12-9F9A-6AB23ADE8A38@gmail.com> References: <000001ce45c9$05373410$0fa59c30$@com> <0F63A818-236A-4A12-9F9A-6AB23ADE8A38@gmail.com> Message-ID: <001d01ce45ee$e5c3a3e0$b14aeba0$@com> Hi Thanks for your reply. Just an example of a server of Quad core 3.0 GHZ 8MB cache and 8MB Ram on ubuntu box. How many channels do you expect it can work fine? -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Andrew Sinclair Sent: Wednesday, May 01, 2013 12:00 AM To: FFmpeg user questions Subject: Re: [FFmpeg-user] How many live FTA channels can be transcoded This will be completely dependent on your hardware in use. A low spec machine might do 1 decent quality and a high spec would do many On 01/05/2013, at 3:34 AM, "Mazen" wrote: > Dear all > > > > I am newbie to ffmpeg. > > > > I have a question about the number of live channels can be transcoded H.264 > (2MB). > > This server used just to encode only. > > > > > > Please mention the server specification used. > > > > Thanks in advanced > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed May 1 00:45:17 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 30 Apr 2013 22:45:17 +0000 (UTC) Subject: [FFmpeg-user] Trouble creating a mp4 remuxer. References: <517ED043.9020308@vizrt.com> Message-ID: Anders Rein vizrt.com> writes: > [mp4 0x61534a0] Tag mp4a/0x6134706d incompatible > with output codec id '86018' 0x40 should work for AAC. Carl Eugen From timothygu99 at gmail.com Wed May 1 00:50:38 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Tue, 30 Apr 2013 15:50:38 -0700 Subject: [FFmpeg-user] The shared host is running on Red Hat 4.4.7-3. In-Reply-To: <1367295736112-4658763.post@n4.nabble.com> References: <1367295736112-4658763.post@n4.nabble.com> Message-ID: On Apr 30, 2013 3:38 PM, "georgesjeandenis" wrote: > > All these packages have successfully installed: > - presetup.sh, autoconf.sh, automake.sh, libtool.sh, libiconv.sh, libpng.sh, > libjpeg.sh, zlib.sh, libwmf.sh, freetype.sh, gettext.sh, gd.sh, ruby.sh, > flvtool2.sh, lame.sh, codecs.sh, libogg.sh, libvorbis.sh, vorbis-tools.sh, > libtheora.sh, amrnb.sh, amrwb.sh, liba52.sh, facc.sh, faad2.sh. > > That's exactly all the files just before ffmpeg itself! > > I know the error has to do with a library. However, I'm not familiar with > libraries. The error message says: > > /usr/bin/ld: /home/xxxxx/lib/libz.a(compress.o): relocation R_X86_64_32 > against `.rodata.str1.1' can not be used when making a shared object; > recompile with -fPIC > /home/xxxxx/lib/libz.a: could not read symbols: Bad value You're trying to create a shared library while linking against static library. Compiling only ffmpeg libraries statically will solve the problem. Or if you really want to build shared ffmpeg libraries, install the shared libraries of the dependencies. Timothy Gu From dgrobinson at dgrobinson.com Wed May 1 00:51:37 2013 From: dgrobinson at dgrobinson.com (Daniel Robinson) Date: Tue, 30 Apr 2013 15:51:37 -0700 Subject: [FFmpeg-user] How many live FTA channels can be transcoded In-Reply-To: <001d01ce45ee$e5c3a3e0$b14aeba0$@com> References: <000001ce45c9$05373410$0fa59c30$@com> <0F63A818-236A-4A12-9F9A-6AB23ADE8A38@gmail.com> <001d01ce45ee$e5c3a3e0$b14aeba0$@com> Message-ID: With regard to the question, "How many FTA channels can be transcoded?", a previous responder said it depended on the hardware. This is true, but it also depends on the source material, eg, SD or HD, and what you would like to do while transcoding. Your best approach is to start compress some video that is similar to your source material and see what the performance is. --dan On Tue, Apr 30, 2013 at 3:05 PM, Mazen wrote: > Hi > > Thanks for your reply. > > Just an example of a server of Quad core 3.0 GHZ 8MB cache and 8MB Ram on > ubuntu box. > How many channels do you expect it can work fine? > > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto: > ffmpeg-user-bounces at ffmpeg.org] > On Behalf Of Andrew Sinclair > Sent: Wednesday, May 01, 2013 12:00 AM > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] How many live FTA channels can be transcoded > > This will be completely dependent on your hardware in use. A low spec > machine might do 1 decent quality and a high spec would do many > > On 01/05/2013, at 3:34 AM, "Mazen" wrote: > > > Dear all > > > > > > > > I am newbie to ffmpeg. > > > > > > > > I have a question about the number of live channels can be transcoded > H.264 > > (2MB). > > > > This server used just to encode only. > > > > > > > > > > > > Please mention the server specification used. > > > > > > > > Thanks in advanced > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- ----------------------- daniel g. robinson www.bornlivelovedie.com bornlivelovedie.tumblr.com @daguro From ajsinclair at gmail.com Wed May 1 01:31:59 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Wed, 1 May 2013 09:31:59 +1000 Subject: [FFmpeg-user] HTML5 live streaming In-Reply-To: References: <6253590.7404.1366516016782.JavaMail.root@xeams> <30369007.7466.1366521739275.JavaMail.root@xeams> <5518136.8718.1366588839795.JavaMail.root@xeams> <10952634.8933.1366605086861.JavaMail.root@xeams> Message-ID: 3 seconds in the -hls_time setting is an unusual value, Apple recommend 10 though lower values generally work OK. Note that for this to really work effectively you need to force key frames to occur at the boundary of every segment otherwise you will find that the segmenter will need to choose a segment size that matches where the key frame is. You should also look at the -segment muxer for a more complete list of options where m3u8 is the HLS format. http://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment On 30 April 2013 10:59, Jonathan Isom wrote: > On Mon, Apr 22, 2013 at 9:19 PM, Ricardo Kleemann > wrote: > > Hi Jonathan, > > > > This is awesome! It worked! :-) > > > > so my next step... how do I do adaptive bitrate? For example, I want to > > have a stream for iPad, a stream for iPhone, Android... > > Found this link > on > streaming to multiple outputs. Here is a script that I am messing > around with that should do adaptive streaming. I used variables to > simplify it a little. As always adjust to your needs. > > ----------->8------------- > #!/bin/bash > VIDSOURCE="$1" > RESOLUTION="854x480" > BITRATE1="800000" > BITRATE2="600000" > BITRATE3="400000" > > AUDIO_OPTS="-c:a libfaac -b:a 160000 -ac 2" > VIDEO_OPTS1="-s $RESOLUTION -c:v libx264 -b:v $BITRATE1 -vprofile > baseline -preset medium -x264opts level=41" > VIDEO_OPTS2="-s $RESOLUTION -c:v libx264 -b:v $BITRATE2 -vprofile > baseline -preset medium -x264opts level=41" > VIDEO_OPTS3="-s $RESOLUTION -c:v libx264 -b:v $BITRATE3 -vprofile > baseline -preset medium -x264opts level=41" > OUTPUT_HLS="-hls_time 3 -hls_list_size 10 -hls_wrap 30 -start_number 1" > > ffmpeg -i "$VIDSOURCE" -y -threads 4 \ > $AUDIO_OPTS $VIDEO_OPTS1 $OUTPUT_HLS stream_hi.m3u8 \ > $AUDIO_OPTS $VIDEO_OPTS2 $OUTPUT_HLS stream_med.m3u8 \ > $AUDIO_OPTS $VIDEO_OPTS3 $OUTPUT_HLS stream_low.m3u8 > > ----------->8------------- > > Add in a m3u8 playlist for the streams created in the script. > Something like this should work. > ----------->8------------- > #EXTM3U > #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500000 > stream_low.m3u8 > #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000 > stream_med.m3u8 > #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=900000 > stream_hi.m3u8 > ----------->8------------- > > And point you player/ browser to the m3u8 playlist. > > HTH > > Jonathan > > > Another question... does m3u8 work for a desktop browser? I do I need an > > embedded player like JWPlayer for desktop? > > > > Thanks so much! > > Ricardo > > > > On Sun, Apr 21, 2013 at 9:30 PM, Jonathan Isom wrote: > > > >> On Sun, Apr 21, 2013 at 7:43 PM, Ricardo Kleemann > >> wrote: > >> > That's great, I didn't realize it. > >> > > >> > I'm trying to convert the input to h.264 + AAC and output to the > >> segmenter > >> > but it's not working. Can you help me find the error in the command? > >> > > >> > ffmpeg -loglevel debug -threads 4 -i "rtmp://server1/live/livestream1" > >> > -i_qfactor 0.71 -qcomp 0.6 -qmin 10 -qmax 63 -qdiff 4 -trellis 0 > -vcodec > >> > libx264 -s 480x270 -b:v 512k -b:a 56k -ar 22050 -map 0 -f segment > >> > -segment_time 10 -segment_list live.m3u8 -segment_list_flags +live > >> > live_%05d.ts > >> > > >> > >> Here is the command I use which works with my iPad 3rd Gen. I cd into > >> the directory that I want the files to load from on the server. My > >> case is "/var/www/localhost/htdocs/stream/" which is > >> "http://domain/stream/". You probably should lose all the extra > >> options. for realtime encoding add "-re" to the command. You will want > >> to change RESOLUTION BITRATE & VIDSOURCE to what you need. Also below > >> is an example html file. > >> This is with ffmpeg git from a week ago. notice the "-hls*" options > >> instead of -segment.* options. > >> > >> ffmpeg -i VIDSOURCE -y -c:v libx264 -b:v BITRATE -vprofile baseline > >> -preset medium -x264opts level=41 -threads 4 -s RESOLUTION -map 0:v > >> -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 > >> -hls_list_size 6 -hls_wrap 18 -start_number 1 stream.m3u8 > >> > >> index.htm: > >> > >> > >> > >> > >> > >> > >> Hope this is helpful. > >> > >> Jonathan > >> _______________________________________________ > >> ffmpeg-user mailing list > >> ffmpeg-user at ffmpeg.org > >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >> > >> > >> ------------------------------------------------------ > >> Powered by Xeams. Visit xeams.com for more information > >> ------------------------------------------------------ > >> > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From timothygu99 at gmail.com Wed May 1 05:07:53 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Tue, 30 Apr 2013 20:07:53 -0700 Subject: [FFmpeg-user] [FFmpeg-devel]: questions about ffmpeg capturing video, thanks In-Reply-To: References: Message-ID: POn Apr 30, 2013 4:49 AM, "Wei Gao" wrote: > > Hi,all > > I want to ask a question, I want to use ffmpeg capturing video picture > which is playing and save as yuv file, is there any command to do that? > both windows and linux? Do you mean from c code or using ffmpeg utility? Webcam or video files? > Can I write code based on SDL and ffmpeg? I am not familiar with SDL, sorry > so I ask this question, If you are asking about webcam, SDL can't help you. Timothy G. From timothygu99 at gmail.com Wed May 1 05:14:04 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Tue, 30 Apr 2013 20:14:04 -0700 Subject: [FFmpeg-user] [FFmpeg-devel]: questions about ffmpeg capturing video, thanks In-Reply-To: References: Message-ID: On Apr 30, 2013 8:07 PM, "Timothy Gu" wrote: > > POn Apr 30, 2013 4:49 AM, "Wei Gao" wrote: > > I want to ask a question, I want to use ffmpeg capturing video picture > > which is playing and save as yuv file, is there any command to do that? > > both windows and linux? > > Do you mean from c code or using ffmpeg utility? Webcam or video files? If you mean webcam, and using the ffmpeg command line utility, take a look at the wiki: http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input Sorry for the quick double posts. Timothy G. From highgod0401 at gmail.com Wed May 1 10:32:12 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Wed, 1 May 2013 16:32:12 +0800 Subject: [FFmpeg-user] [FFmpeg-devel]: questions about ffmpeg capturing video, thanks In-Reply-To: References: Message-ID: 2013/5/1 Timothy Gu > On Apr 30, 2013 8:07 PM, "Timothy Gu" wrote: > > > > POn Apr 30, 2013 4:49 AM, "Wei Gao" wrote: > > > I want to ask a question, I want to use ffmpeg capturing video picture > > > which is playing and save as yuv file, is there any command to do that? > > > both windows and linux? > > > > Do you mean from c code or using ffmpeg utility? Webcam or video files? > > If you mean webcam, and using the ffmpeg command line utility, take a look > at the wiki: > http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input > > Sorry for the quick double posts. > Thanks very much, is there any c code I can reference? if I want to use ffmpeg utility, how can I use it? our idea is get surface of direct or opengl to get the picture at start. but we don't have any experience on them, so we want to ask if ffmpeg can implement it, thanks. not webcam, thanks for your help best regards > > Timothy G. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From trupti at openxcelltechnolabs.com Wed May 1 12:11:42 2013 From: trupti at openxcelltechnolabs.com (Trupti Thakkar) Date: Wed, 1 May 2013 15:41:42 +0530 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code Message-ID: Hello, shell_exec() command to create thumbnail of video was working well before with my php code. However , it suddenly stop working and nothing works related to ffmpeg. I have checked for installation , and all are same as before. Also ,when same command i run from command prompt , its working fine , but its not giving any output when used with php code. Anyone have idea , what can be issue? Thanks -- Thanks , Trupti From tevans.uk at googlemail.com Wed May 1 12:39:43 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 1 May 2013 11:39:43 +0100 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code In-Reply-To: References: Message-ID: On Wed, May 1, 2013 at 11:11 AM, Trupti Thakkar wrote: > Hello, > shell_exec() command to create thumbnail of video was working well before > with my php code. > > However , it suddenly stop working and nothing works related to ffmpeg. > > I have checked for installation , and all are same as before. > > Also ,when same command i run from command prompt , its working fine , but > its not giving any output when used with php code. So, not an issue with ffmpeg.... > > Anyone have idea , what can be issue? > Thanks No idea, ask on a PHP list. Cheers Tom From h.reindl at thelounge.net Wed May 1 12:46:39 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 01 May 2013 12:46:39 +0200 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code In-Reply-To: References: Message-ID: <5180F28F.8070104@thelounge.net> why the hell do you start another thread for the same problem when you clearly got explained that this is NOT ffmpeg related at all? ask you hoster, ask your serveradmin, ask yourself why you want broken by design actions like shell_exec() froma webserver process instead call PHP as CLI however: THIS IS NOT FFMPEG RELATED Am 01.05.2013 12:11, schrieb Trupti Thakkar: > shell_exec() command to create thumbnail of video was working well before > with my php code. > > However , it suddenly stop working and nothing works related to ffmpeg. > > I have checked for installation , and all are same as before. > > Also ,when same command i run from command prompt , its working fine , but > its not giving any output when used with php code. > > Anyone have idea , what can be issue? -------- Original-Nachricht -------- Betreff: [FFmpeg-user] 500 Internal Server Error Datum: Tue, 30 Apr 2013 18:04:49 +0530 Von: Trupti Thakkar Antwort an: FFmpeg user questions An: ffmpeg-user at ffmpeg.org Hello, While using ffmpeg with shell_exce , as soon as command run , browser redirect to 500 Internal Server Error instead of page that is given. Is there any settings required in ffmpeg configurations ? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From trupti at openxcelltechnolabs.com Wed May 1 12:48:20 2013 From: trupti at openxcelltechnolabs.com (Trupti Thakkar) Date: Wed, 1 May 2013 16:18:20 +0530 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code In-Reply-To: <5180F28F.8070104@thelounge.net> References: <5180F28F.8070104@thelounge.net> Message-ID: Reindl, FYI, this is not the same issue. Go through it well before using such words. On Wed, May 1, 2013 at 4:16 PM, Reindl Harald wrote: > why the hell do you start another thread for the same > problem when you clearly got explained that this is NOT > ffmpeg related at all? > > ask you hoster, ask your serveradmin, ask yourself why > you want broken by design actions like shell_exec() > froma webserver process instead call PHP as CLI > > however: THIS IS NOT FFMPEG RELATED > > Am 01.05.2013 12:11, schrieb Trupti Thakkar: > > shell_exec() command to create thumbnail of video was working well before > > with my php code. > > > > However , it suddenly stop working and nothing works related to ffmpeg. > > > > I have checked for installation , and all are same as before. > > > > Also ,when same command i run from command prompt , its working fine , > but > > its not giving any output when used with php code. > > > > Anyone have idea , what can be issue? > > -------- Original-Nachricht -------- > Betreff: [FFmpeg-user] 500 Internal Server Error > Datum: Tue, 30 Apr 2013 18:04:49 +0530 > Von: Trupti Thakkar > Antwort an: FFmpeg user questions > An: ffmpeg-user at ffmpeg.org > > Hello, > > While using ffmpeg with shell_exce , as soon as command run , browser > redirect to 500 Internal Server Error instead of page that is given. > > Is there any settings required in ffmpeg configurations ? > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- Thanks , Trupti From gabri.ns at gmail.com Wed May 1 12:54:51 2013 From: gabri.ns at gmail.com (Gabri Shally) Date: Wed, 1 May 2013 17:54:51 +0700 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code In-Reply-To: References: <5180F28F.8070104@thelounge.net> Message-ID: On May 1, 2013 5:48 PM, "Trupti Thakkar" wrote: > > Reindl, > FYI, this is not the same issue. > Go through it well before using such words. > lets follow the rule... can you provide complete, uncut console output of the command? afaik, shell_exec should return string outputed from executed command. and also provide your command. From h.reindl at thelounge.net Wed May 1 12:59:39 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 01 May 2013 12:59:39 +0200 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code In-Reply-To: References: <5180F28F.8070104@thelounge.net> Message-ID: <5180F59B.7020007@thelounge.net> shell_exec() = PHP if it does not work -> PHP problem, not ffmpeg maybe the hoster recognized that shell_exec() was not disabled on the unix machine as you said in your yesterdays thread and now he fixed the server configuration, stop to insist in calling shell commmands from web-server processes, this is a broken idea and only possible if the server-admin was an idiot a 500 error after a php command is as i explained you yesterday a FTAL ERROR on the php-side and you need to CONTACT YOUR SERVER ADMIN and even if it would be a problem with the ffmpeg-command you refused to post the command, but as said: unlikely > Is there any settings required in ffmpeg configurations there are no "ffmpeg configurations", you have a commandline with params Am 01.05.2013 12:48, schrieb Trupti Thakkar: > FYI, this is not the same issue. > Go through it well before using such words. > > On Wed, May 1, 2013 at 4:16 PM, Reindl Harald wrote: > >> why the hell do you start another thread for the same >> problem when you clearly got explained that this is NOT >> ffmpeg related at all? >> >> ask you hoster, ask your serveradmin, ask yourself why >> you want broken by design actions like shell_exec() >> froma webserver process instead call PHP as CLI >> >> however: THIS IS NOT FFMPEG RELATED >> >> Am 01.05.2013 12:11, schrieb Trupti Thakkar: >>> shell_exec() command to create thumbnail of video was working well before >>> with my php code. >>> >>> However , it suddenly stop working and nothing works related to ffmpeg. >>> >>> I have checked for installation , and all are same as before. >>> >>> Also ,when same command i run from command prompt , its working fine , >> but >>> its not giving any output when used with php code. >>> >>> Anyone have idea , what can be issue? >> >> -------- Original-Nachricht -------- >> Betreff: [FFmpeg-user] 500 Internal Server Error >> Datum: Tue, 30 Apr 2013 18:04:49 +0530 >> Von: Trupti Thakkar >> Antwort an: FFmpeg user questions >> An: ffmpeg-user at ffmpeg.org >> >> Hello, >> >> While using ffmpeg with shell_exce , as soon as command run , browser >> redirect to 500 Internal Server Error instead of page that is given. >> >> Is there any settings required in ffmpeg configurations ? >> >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> > > -- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Wed May 1 13:01:04 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 01 May 2013 13:01:04 +0200 Subject: [FFmpeg-user] Shell_exec suddenly stop working in Php code In-Reply-To: References: <5180F28F.8070104@thelounge.net> Message-ID: <5180F5F0.5050403@thelounge.net> Am 01.05.2013 12:54, schrieb Gabri Shally: > On May 1, 2013 5:48 PM, "Trupti Thakkar" > wrote: >> >> Reindl, >> FYI, this is not the same issue. >> Go through it well before using such words. >> > > lets follow the rule... > can you provide complete, uncut console output of the command? afaik, > shell_exec should return string outputed from executed command. and also > provide your command shell_exec() returns NOTHING in case of a "500 Internal Server Error" because it leaded to a FATAL ERROR on php-side most likely by a sane setup which was fixed by the admin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From mazen at pnettv.com Wed May 1 15:18:58 2013 From: mazen at pnettv.com (Mazen) Date: Wed, 1 May 2013 15:18:58 +0200 Subject: [FFmpeg-user] How to setup a DVB card with ffmpeg & ffserver Message-ID: <001201ce466e$70d75470$5285fd50$@com> Hi all How to setup DVB cards for live FTA channels? The project is to stream and encode satellite channels. (IPTV) Thanks in advanced From krueger at lesspain.de Wed May 1 15:34:22 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 1 May 2013 15:34:22 +0200 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? Message-ID: Hi, I am trying to build ffmpeg with vid.stab support. I installed vid.stab from git head and then configured ffmpeg from current head with ./configure --enable-gpl --enable-libvidstab That failed with "ERROR: vidstab not found" although headers and lib are installed in /usr/local/include and /usr/local/lib. This seems strange because the header file and function that are used to check availability of the lib are there AFAICS and permissions seem correct as well. Has anyone else experienced similar problems or build instructions for getting vid.stab to run with ffmpeg on OS X mountain lion? Thanks, Robert From tevans.uk at googlemail.com Wed May 1 15:41:19 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 1 May 2013 14:41:19 +0100 Subject: [FFmpeg-user] How to setup a DVB card with ffmpeg & ffserver In-Reply-To: <001201ce466e$70d75470$5285fd50$@com> References: <001201ce466e$70d75470$5285fd50$@com> Message-ID: On Wed, May 1, 2013 at 2:18 PM, Mazen wrote: > Hi all > > > > How to setup DVB cards for live FTA channels? > > > > The project is to stream and encode satellite channels. (IPTV) > > > > Thanks in advanced > Plug card in, scan for channels, tune it to a channel, give the data to ffmpeg. If you are using linux, you can use the utilities w_scan and szap to scan for channels and tune the (satellite) adapter respectively. Having done that, you can access the MPEG-TS of the tuned channel by reading from /dev/dvb/adapterN/dvr0. Google has plentiful instructions on how to use w_scan/szap. Cheers Tom From p.rennert at cs.ucl.ac.uk Wed May 1 16:12:04 2013 From: p.rennert at cs.ucl.ac.uk (Peter Rennert) Date: Wed, 01 May 2013 15:12:04 +0100 Subject: [FFmpeg-user] Image Sequence to Video, using each image exactly as one frame In-Reply-To: References: <517FD92B.5000609@cs.ucl.ac.uk> Message-ID: <518122B4.7070103@cs.ucl.ac.uk> Sorry for the false alarm. It seems to be a bug in the python wrapper. ffmpeg generates all frames if I extract frames into an image sequence. On 04/30/2013 04:52 PM, Tom Evans wrote: > On Tue, Apr 30, 2013 at 3:46 PM, Peter Rennert wrote: >> Hi, >> >> I am trying to convert an image sequence to an image to a video. I do not >> care about the framerate at all, I just need to make absolutely sure that >> consecutive frames in the resulting video are exactly the consecutive images >> of the sequence. I do neither want to have images of the sequence dropped >> nor duplicated. >> >> I have an image sequence: >> >> 2013-02-19.00-00-00.v0.00000.png >> - - - >> 2013-02-19.00-00-00.v0.01760.png >> >> I tried several things, of of them: >> >> $ ffmpeg -f image2 -r 29.97 -i 2013-02-19.00-00-00.v0.%05d.png -c:v libx264 >> test.mp4 >> >> (see output below) >> >> I also tried -r 30 after the image2 and after libx264 and both. However, I >> seem (stepping through the video using the ffmpeg python wrapper ffvideo) to >> get a video of only 1753 frames or some other values around. How can I fix >> that? >> >> >> Thanks, >> >> Peter >> >> ffmpeg output: >> >> ffmpeg version 1.0.5 Copyright (c) 2000-2012 the FFmpeg developers >> built on Mar 10 2013 12:20:58 with gcc 4.7.2 (GCC) 20121109 (Red Hat >> 4.7.2-8) > This is probably too old, try building from git head and see if that > has the same issues. > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From barsnick at gmx.net Wed May 1 16:12:46 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 1 May 2013 16:12:46 +0200 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? In-Reply-To: References: <20130430181021.GA20634@sunshine.barsnick.net> Message-ID: <20130501141246.GB15622@sunshine.barsnick.net> Hi Carl Eugen, On Tue, Apr 30, 2013 at 20:31:05 +0000, Carl Eugen Hoyos wrote: > (If you are really interested in the feud between > FFmpeg and gcc developers, please study trac, > gcc bugzilla and I suspect there is a related > FAQ entry about np-hard and other problems.) Thank you for the clarification, I was indeed interested. I found some of your references here: http://ffmpeg.org/faq.html#error_003a-can_0027t-find-a-register-in-class-_0027GENERAL_005fREGS_0027-while-reloading-_0027asm_0027 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11203 Moritz From barsnick at gmx.net Wed May 1 16:19:57 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 1 May 2013 16:19:57 +0200 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? In-Reply-To: References: Message-ID: <20130501141957.GC15622@sunshine.barsnick.net> Hi Robert, On Wed, May 01, 2013 at 15:34:22 +0200, Robert Kr?ger wrote: > I am trying to build ffmpeg with vid.stab support. I installed vid.stab > from git head and then configured ffmpeg from current head with > > ./configure --enable-gpl --enable-libvidstab >From my experience on Linux with building and using a "local" (i.e. with non-default location) libvidstab, ffmpeg's configure seems to desire pkg-config for finding libvidstab. This may or may not be unlike with other libraries. So please check whether a) you have /usr/local/lib/pkgconfig/libvidstab.pc, and b) pkg-config by default also searches /usr/local/lib/pkgconfig . If b) does not apply, you might want to set the environment variable PKG_CONFIG_PATH to point to /usr/local/lib/pkgconfig . Oh, another thought: Does ffmpeg search /usr/local? But as I mentioned, vid.stab support seems to require pkg-config. Just guessing, Moritz From cehoyos at ag.or.at Wed May 1 16:56:52 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 May 2013 14:56:52 +0000 (UTC) Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: <20130430181021.GA20634@sunshine.barsnick.net> <20130501141246.GB15622@sunshine.barsnick.net> Message-ID: Moritz Barsnick gmx.net> writes: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11203 Yes, that is the related discussion. Tickets #2433 and #2435 may be gcc-related. Carl Eugen From krueger at lesspain.de Wed May 1 17:24:09 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 1 May 2013 17:24:09 +0200 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? In-Reply-To: <20130501141957.GC15622@sunshine.barsnick.net> References: <20130501141957.GC15622@sunshine.barsnick.net> Message-ID: Hi Moritz, On Wed, May 1, 2013 at 4:19 PM, Moritz Barsnick wrote: > Hi Robert, > > On Wed, May 01, 2013 at 15:34:22 +0200, Robert Kr?ger wrote: > > > I am trying to build ffmpeg with vid.stab support. I installed vid.stab > > from git head and then configured ffmpeg from current head with > > > > ./configure --enable-gpl --enable-libvidstab > > From my experience on Linux with building and using a "local" (i.e. > with non-default location) libvidstab, ffmpeg's configure seems to > desire pkg-config for finding libvidstab. This may or may not be unlike > with other libraries. > > So please check whether > a) you have /usr/local/lib/pkgconfig/libvidstab.pc, and > b) pkg-config by default also searches /usr/local/lib/pkgconfig . > > If b) does not apply, you might want to set the environment variable > PKG_CONFIG_PATH to point to /usr/local/lib/pkgconfig . > > Oh, another thought: Does ffmpeg search /usr/local? But as I mentioned, > vid.stab support seems to require pkg-config. > > Just guessing, > Moritz > and guessing well :-). That was it. The pc file wasn't in /usr/local/lib/pkgconfig and after creating the directory and manually adding it, configure and compile went through without problems. Thanks a lot! Robert From compuvision.sr at gmail.com Wed May 1 18:48:09 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 1 May 2013 13:48:09 -0300 Subject: [FFmpeg-user] At total loss on transcoding In-Reply-To: References: <1367239592249-4658751.post@n4.nabble.com> Message-ID: It sounds like you want to feed a stream to FFmpeg, transcode it to .mp4 and save it to file. If that is possible it should not be to hard. You need to know, location of the stream, like http://radiox.com:80 You need to know destination bitrate for audio and video Is the source Interlaced or progressive What is the video codec youy want to use. And why do you want to transcode it to .mp4? A lot of mediaplayers can handle transportstreams (.ts) and also a lot of software video editors Albert > Help. I have been reading and reading and can't figure out what to do. > > Situation is this, I have a ts file that is saved to my computer, > What is the source it is copied from ? Take that source as input for > ffmpeg. > > I can > > convert that ts to an mp4 to play thru handbrake but only after the file > has > > finished recording. I want to be able to transcode the file to mp4 as > it is > > recording to stream locally. I know this can be done I just can't get a > grip > > on it. The ts file will be passed to ffmpeg thru a batch file and > hopefully > > into a command line. Can somebody give me some help. Any advice or > guidance > > appreciated and hopefully I can someday repay the favor. > > > > Thanks > From dgrobinson at dgrobinson.com Wed May 1 18:48:41 2013 From: dgrobinson at dgrobinson.com (Daniel Robinson) Date: Wed, 1 May 2013 09:48:41 -0700 Subject: [FFmpeg-user] At total loss on transcoding In-Reply-To: <1367239592249-4658751.post@n4.nabble.com> References: <1367239592249-4658751.post@n4.nabble.com> Message-ID: I feel your pain. ffmpeg is a lovely program, but underdocumented and underdocumented. But I repeat myself. Command line options to ffmpeg are context dependent. How many programs are in the transport stream? Your best bet would be to search on line for examples of ffmpeg usage and try them. It will be an iterative process. --dan On Mon, Apr 29, 2013 at 5:46 AM, btpoole wrote: > Help. I have been reading and reading and can't figure out what to do. > Situation is this, I have a ts file that is saved to my computer, I can > convert that ts to an mp4 to play thru handbrake but only after the file > has > finished recording. I want to be able to transcode the file to mp4 as it > is > recording to stream locally. I know this can be done I just can't get a > grip > on it. The ts file will be passed to ffmpeg thru a batch file and hopefully > into a command line. Can somebody give me some help. Any advice or > guidance > appreciated and hopefully I can someday repay the favor. > > Thanks > > > > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/At-total-loss-on-transcoding-tp4658751.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- ----------------------- daniel g. robinson www.bornlivelovedie.com bornlivelovedie.tumblr.com @daguro From tpoole at mail.com Wed May 1 18:34:56 2013 From: tpoole at mail.com (btpoole) Date: Wed, 1 May 2013 09:34:56 -0700 (PDT) Subject: [FFmpeg-user] At total loss on transcoding In-Reply-To: References: <1367239592249-4658751.post@n4.nabble.com> Message-ID: <51814412.6000001@mail.com> The source of the file is tuner card. Todd Poole On 5/1/2013 12:25 PM, belcampo [via FFmpeg-users] wrote: > > On Apr 29, 2013, at 2:46 PM, btpoole <[hidden email] > > wrote: > > > Help. I have been reading and reading and can't figure out what to do. > > Situation is this, I have a ts file that is saved to my computer, > What is the source it is copied from ? Take that source as input for > ffmpeg. > > > I can > > convert that ts to an mp4 to play thru handbrake but only after the > file has > > finished recording. I want to be able to transcode the file to mp4 > as it is > > recording to stream locally. I know this can be done I just can't get > a grip > > on it. The ts file will be passed to ffmpeg thru a batch file and > hopefully > > into a command line. Can somebody give me some help. Any advice or > guidance > > appreciated and hopefully I can someday repay the favor. > > > > Thanks > > > > > > > > -- > > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/At-total-loss-on-transcoding-tp4658751.html > > Sent from the FFmpeg-users mailing list archive at Nabble.com. > > _______________________________________________ > > ffmpeg-user mailing list > > [hidden email] > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://ffmpeg-users.933282.n4.nabble.com/At-total-loss-on-transcoding-tp4658751p4658819.html > > To unsubscribe from At total loss on transcoding, click here > . > NAML > > -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/At-total-loss-on-transcoding-tp4658751p4658820.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tpoole at mail.com Wed May 1 20:05:47 2013 From: tpoole at mail.com (btpoole) Date: Wed, 1 May 2013 11:05:47 -0700 (PDT) Subject: [FFmpeg-user] At total loss on transcoding In-Reply-To: References: <1367239592249-4658751.post@n4.nabble.com> Message-ID: <5181595F.8090005@mail.com> It's ts coming from ota. It will be converted and saved to mp4 unless it can be converted and streamed directly without saving. I imagine though it will have to be converted to mp4 and saved. Would like to be able to stream the mp4 file as the ts is being converted, with a delay I know. Todd Poole On 5/1/2013 12:48 PM, Albert Scholtalbers [via FFmpeg-users] wrote: > It sounds like you want to feed a stream to FFmpeg, transcode it to .mp4 > and save it to file. > If that is possible it should not be to hard. > You need to know, location of the stream, like http://radiox.com:80 > You need to know destination bitrate for audio and video > Is the source Interlaced or progressive > What is the video codec youy want to use. > And why do you want to transcode it to .mp4? > A lot of mediaplayers can handle transportstreams (.ts) > and also a lot of software video editors > > Albert > > > > Help. I have been reading and reading and can't figure out what to do. > > > Situation is this, I have a ts file that is saved to my computer, > > What is the source it is copied from ? Take that source as input for > > ffmpeg. > > > I can > > > convert that ts to an mp4 to play thru handbrake but only after the > file > > has > > > finished recording. I want to be able to transcode the file to mp4 as > > it is > > > recording to stream locally. I know this can be done I just can't > get a > > grip > > > on it. The ts file will be passed to ffmpeg thru a batch file and > > hopefully > > > into a command line. Can somebody give me some help. Any advice or > > guidance > > > appreciated and hopefully I can someday repay the favor. > > > > > > Thanks > > > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://ffmpeg-users.933282.n4.nabble.com/At-total-loss-on-transcoding-tp4658751p4658821.html > > To unsubscribe from At total loss on transcoding, click here > . > NAML > > -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/At-total-loss-on-transcoding-tp4658751p4658823.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From vincent at up4.com Wed May 1 20:39:05 2013 From: vincent at up4.com (Vincent Olivier) Date: Wed, 1 May 2013 14:39:05 -0400 Subject: [FFmpeg-user] 422 to 444 Upsampling Testbed In-Reply-To: <6AC0262B-C820-408E-84FC-2A9286E1F392@up4.com> References: <1F5558FD-E9D5-4E98-BF68-E4994D80ED27@up4.com> <6AC0262B-C820-408E-84FC-2A9286E1F392@up4.com> Message-ID: Hi Paul, I see you are submitting patches for that now. Please let me know when I can pull the repository version to test that. In the meantime, and this all goes for the OpenEXR encoder, I've setup a standalone program to do some analysis on the YUV resampled data before I can check the channel-splitter filter. And I have a problem that I've been blocked on for a while. You can see the code on Github here: https://github.com/up4/fauxraw/blob/master/fauxraw.cpp The faulty code compiles fine, but gives a "Segmentation fault (core dumped)" on execution. When I remove the resampling context allocation line ("swsCtx = sws_getContext?") the segmentation fault is gone too. The resampling I'm looking for is 422 10-bit to 444 16-bit for exact picture size. Is it possible? Is there something wrong with my "sws_getContext" call? Thanks, Vincent From lucielemonnier at hotmail.fr Thu May 2 09:21:36 2013 From: lucielemonnier at hotmail.fr (lucie Lemonnier) Date: Thu, 2 May 2013 09:21:36 +0200 Subject: [FFmpeg-user] modify filter during runtime Message-ID: Hello, I use ffmpeg to stream video with rtp protocol, i use crop and overlay filter. ffmpeg.exe -i cube.avi -loop 0 -vf "movie=lignes.png [mv1];movie=testsHDflvtransparent1.flv [mv2];[in][mv1] overlay=0:0 [out];[out][mv2] overlay=0:0 [out2];[out2] crop=1000:680:200:100" rtp://ip:port but i want to modify cropping parameters during runtime and change the overlay filter to another movies or png. I searched in ffmepg.c but I have difficulty to modify it to have dynamic crop and overlay. How do I do this? Can you help me, please? Lucie From ashok.sharma.newmediaguru at gmail.com Thu May 2 11:43:32 2013 From: ashok.sharma.newmediaguru at gmail.com (Ashok Sharma) Date: Thu, 2 May 2013 15:13:32 +0530 Subject: [FFmpeg-user] How to play a watermark sound clip in mp3 music file Message-ID: Hi, I want to add a watermark sound clip to a mp3 music file which will play after regular interval of time in the mp3. Please help me if this is possible using ffmpeg. Thanks, Ashok From codecomplete at free.fr Thu May 2 12:38:25 2013 From: codecomplete at free.fr (Gilles) Date: Thu, 02 May 2013 12:38:25 +0200 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: On Tue, 30 Apr 2013 15:43:00 +0200, Werner Robitza wrote: >The problem here is that you're extracting to raw bitstreams (H.264 or >AAC), without any container. Raw bitstreams usually don't carry any info >about the duration of the contents, the frame sizes or frame rates, or any >metadata. If you want to edit such a stream, that may turn out cumbersome, >or near impossible. > >Rather try to mux into a container that can be easily parsed and opened >with (almost) any video or audio editor: > >ffmpeg -i input.flv -c:v copy -an output.m4v >ffmpeg -i input.flv -c:a copy -vn output.m4a > >Mux with: > >ffmpeg -i input.m4v -i input.m4a -c copy output.mp4 > >You need -c copy here to make sure the bitstreams aren't converted again. Thanks a lot for the explanation. I tried demuxing the video stream from an FLV file, but it didn't work: [C:\]ffmpeg.exe -i input.flv -c:v copy -an output.m4v ffmpeg version N-52045-g694fa00 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 12 2013 16:54:51 with gcc 4.8.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 26.100 / 52. 26.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 2.100 / 55. 2.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 53.101 / 3. 53.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, flv, from 'input.flv': Metadata: starttime : 0 totalduration : 608 totaldatarate : 357 bytelength : 27108207 canseekontime : true sourcedata : BD075FE65HM1367490482601026 purl : pmsg : Duration: 00:10:07.84, start: 0.000000, bitrate: 356 kb/s Stream #0:0: Video: flv1, yuv420p, 426x240, 291 kb/s, 29.97 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: mp3, 22050 Hz, stereo, s16p, 65 kb/s File 'output.m4v' already exists. Overwrite ? [y/N] y track 0: could not find tag, codec not currently supported in container Output #0, ipod, to 'output.m4v': Metadata: starttime : 0 totalduration : 608 totaldatarate : 357 bytelength : 27108207 canseekontime : true sourcedata : BD075FE65HM1367490482601026 purl : pmsg : encoder : Lavf55.2.100 Stream #0:0: Video: flv1, yuv420p, 426x240, q=2-31, 291 kb/s, 90k tbn, 1k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted From codecomplete at free.fr Thu May 2 12:38:37 2013 From: codecomplete at free.fr (Gilles) Date: Thu, 02 May 2013 12:38:37 +0200 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: On Tue, 30 Apr 2013 14:11:46 +0000 (UTC), Carl Eugen Hoyos wrote: >This looks severely outdated. >Consider looking into doc/examples The problem is there's a lot of tutorials out there that are apparently outdated, and it's not obvious to newbies to tell. >If you exlain what kind of editing you want >to do, we may find out that it is already >possible with ffmpeg. I was able to load the AAC file in Audacity directly, without having to put in a container. I needed to split and invert the L/R channels before building a new audio track to get rid of some music. Thanks for the help. From cehoyos at ag.or.at Thu May 2 13:05:35 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 May 2013 11:05:35 +0000 (UTC) Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: Gilles free.fr> writes: > > On Tue, 30 Apr 2013 14:11:46 +0000 (UTC), Carl Eugen Hoyos > ag.or.at> wrote: > >This looks severely outdated. > >Consider looking into doc/examples > > The problem is there's a lot of tutorials out there that are > apparently outdated, and it's not obvious to newbies to tell. Of course, but allow me to say how difficult it is for us to understand why you are searching for third- party tutorials when there is example code in the source. > >If you exlain what kind of editing you want > >to do, we may find out that it is already > >possible with ffmpeg. > > I was able to load the AAC file in Audacity directly, without having > to put in a container. > I needed to split and invert the L/R channels before building a new > audio track to get rid of some music. I believe this is possible with FFmpeg. (But I may misunderstand the word "invert".) Carl Eugen From cehoyos at ag.or.at Thu May 2 13:07:22 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 May 2013 11:07:22 +0000 (UTC) Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: Gilles free.fr> writes: > [C:\]ffmpeg.exe -i input.flv -c:v copy -an output.m4v You cannot mux Sorenson Flash ("flv1") into a iDevice file ("m4v"), your iPhone / iPad would not play the resulting file. You should also not mux Sorenson Flash into mov, it is not defined afaik. Carl Eugen From codecomplete at free.fr Thu May 2 13:18:40 2013 From: codecomplete at free.fr (Gilles) Date: Thu, 02 May 2013 13:18:40 +0200 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: On Thu, 2 May 2013 11:05:35 +0000 (UTC), Carl Eugen Hoyos wrote: >Of course, but allow me to say how difficult it is for >us to understand why you are searching for third- >party tutorials when there is example code in the source. Because I didn't understand the source and found other articles contained examples that I could use right away. But I'll first read this the next time www.ffmpeg.org/documentation.html >> I needed to split and invert the L/R channels before building a new >> audio track to get rid of some music. > >I believe this is possible with FFmpeg. >(But I may misunderstand the word "invert".) Good to know. I'll give a try if I find another file that has the same issue. From codecomplete at free.fr Thu May 2 13:19:57 2013 From: codecomplete at free.fr (Gilles) Date: Thu, 02 May 2013 13:19:57 +0200 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: On Thu, 2 May 2013 11:07:22 +0000 (UTC), Carl Eugen Hoyos wrote: >> [C:\]ffmpeg.exe -i input.flv -c:v copy -an output.m4v > >You cannot mux Sorenson Flash ("flv1") into a iDevice >file ("m4v"), your iPhone / iPad would not play the >resulting file. >You should also not mux Sorenson Flash into mov, it >is not defined afaik. Which container should I use to demux a H264 video stream from an FLV file before editing it with eg. AviDemux or Sony Vegas? From tevans.uk at googlemail.com Thu May 2 13:34:58 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Thu, 2 May 2013 12:34:58 +0100 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? In-Reply-To: References: Message-ID: On Thu, May 2, 2013 at 12:19 PM, Gilles wrote: > On Thu, 2 May 2013 11:07:22 +0000 (UTC), Carl Eugen Hoyos > wrote: >>> [C:\]ffmpeg.exe -i input.flv -c:v copy -an output.m4v >> >>You cannot mux Sorenson Flash ("flv1") into a iDevice >>file ("m4v"), your iPhone / iPad would not play the >>resulting file. >>You should also not mux Sorenson Flash into mov, it >>is not defined afaik. > > Which container should I use to demux a H264 video stream from an FLV > file before editing it with eg. AviDemux or Sony Vegas? > H264 goes in to many kinds of containers (mp4/mkv/ts/mov + more), but you don't have H264, you have flv1 - or at least, the file you were trying to use does not use H264, it uses flv1. Cheers Tom From codecomplete at free.fr Thu May 2 13:52:51 2013 From: codecomplete at free.fr (Gilles) Date: Thu, 02 May 2013 13:52:51 +0200 Subject: [FFmpeg-user] Right way to extract and recombine audio/video streams? References: Message-ID: On Thu, 2 May 2013 12:34:58 +0100, Tom Evans wrote: >H264 goes in to many kinds of containers (mp4/mkv/ts/mov + more), but >you don't have H264, you have flv1 - or at least, the file you were >trying to use does not use H264, it uses flv1. My mistake. So I justed the same container to hold just the video stream. VLC now does show the correct length and I could edit the file in AviDemux. Thanks all for the infos. From onemda at gmail.com Thu May 2 18:35:01 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 2 May 2013 16:35:01 +0000 Subject: [FFmpeg-user] 422 to 444 Upsampling Testbed In-Reply-To: References: <1F5558FD-E9D5-4E98-BF68-E4994D80ED27@up4.com> <6AC0262B-C820-408E-84FC-2A9286E1F392@up4.com> Message-ID: On 5/1/13, Vincent Olivier wrote: > Hi Paul, > > I see you are submitting patches for that now. Please let me know when I can > pull the repository version to test that. > > In the meantime, and this all goes for the OpenEXR encoder, I've setup a > standalone program to do some analysis on the YUV resampled data before I > can check the channel-splitter filter. > > And I have a problem that I've been blocked on for a while. > > You can see the code on Github here: > https://github.com/up4/fauxraw/blob/master/fauxraw.cpp > > The faulty code compiles fine, but gives a "Segmentation fault (core > dumped)" on execution. When I remove the resampling context allocation line > ("swsCtx = sws_getContext...") the segmentation fault is gone too. The > resampling I'm looking for is 422 10-bit to 444 16-bit for exact picture > size. Is it possible? Is there something wrong with my "sws_getContext" > call? Have you checked what actual values you pass to it? Because it looks like its segv inside swscaler. > > Thanks, > > Vincent > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From theo851 at hotmail.com Thu May 2 19:35:06 2013 From: theo851 at hotmail.com (=?ISO-8859-1?Q?th=E9o_Damaville?=) Date: Thu, 2 May 2013 19:35:06 +0200 Subject: [FFmpeg-user] Audio freezes when concat videos Message-ID: Hi, I have some video chunks (file1.mov file2.mov... - h264/aac) that come from a source that I have to stream continuously. My problem is that I have a little gap between each chunk that I stream. This is particularly annoying for audio... I first set up a 'server' with this command : ffmpeg -i udp://localhost:5555 -f flv rtmp://localhost/live/stream then I can add each chunk with : ffmpeg -i fileXX.mov -vbsf h264_mp4toannexb -f mpegts udp://localhost:5555 Any suggestion to fill the gap or having smoother transitions ? Best regards From rosati.michael at gmail.com Thu May 2 20:09:07 2013 From: rosati.michael at gmail.com (Michael Rosati) Date: Thu, 2 May 2013 14:09:07 -0400 Subject: [FFmpeg-user] Cygwin build: ffserver not built? Message-ID: Hey guys, I'm trying to build on Windows under Cygwin, and I'm finding that ffmpeg and ffprobe are working fine, but ffserver isn't being built. (Also ffplay isn't built, but I don't care so much about that.) Below is how I've configured the build - can anyone see anything I've done wrong? I can't seem to find anything in the configure script that would cause it not to build ffserver. Thanks for the help! --- mrosati at mrosati-lt1 ~/dev/ffmpeg $ ./configure --disable-static --enable-shared --disable-doc \ --enable-cross-compile --cross-prefix=i686-w64-mingw32- \ --arch=x86 --target-os=mingw32 \ --sysroot=/usr/i686-w64-mingw32/sys-root \ --sysinclude=/usr/i686-w64-mingw32/sys-root/mingw/include/ \ --enable-runtime-cpudetect --prefix=/cygdrive/c/dev/build/ffmpeg \ --cc=gcc --enable-w32threads --disable-indev=dshow \ --pkg-config=pkg-config \ --extra-ldflags=-L/usr/lib/gcc/i686-w64-mingw32/4.5.3/ \ --extra-libs="-lmingw32 -lgcc_eh -lgcc -lmoldname -lmingwex -lmsvcrt \ -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc_eh -lgcc \ -lmoldname -lmingwex -lmsvcrt" --enable-gpl --enable-libx264 install prefix /cygdrive/c/dev/build/ffmpeg source path . C compiler gcc ARCH x86 (generic) big-endian no runtime cpu detection yes yasm yes MMX enabled yes MMXEXT enabled yes 3DNow! enabled yes 3DNow! extended enabled yes SSE enabled yes SSSE3 enabled yes AVX enabled yes FMA4 enabled yes CMOV enabled no CMOV is fast no EBX available yes EBP available yes debug symbols yes strip symbols yes optimize for size no optimizations yes static no shared yes postprocessing support yes new filter support yes network support yes threading support w32threads safe bitstream reader yes SDL support no opencl enabled no libshine enabled no texi2html enabled no perl enabled yes pod2man enabled yes makeinfo enabled yes External libraries: libx264 Enabled decoders: aac c93 interplay_video aac_latm cavs j2k aasc cdgraphics jacosub ac3 cdxl jpeg2000 adpcm_4xm cinepak jpegls adpcm_adx cljr jv adpcm_afc cllc kgv1 adpcm_ct comfortnoise kmvc adpcm_ea cook lagarith adpcm_ea_maxis_xa cpia loco adpcm_ea_r1 cscd mace3 adpcm_ea_r2 cyuv mace6 adpcm_ea_r3 dca mdec adpcm_ea_xas dfa microdvd adpcm_g722 dirac mimic adpcm_g726 dnxhd mjpeg adpcm_ima_amv dpx mjpegb adpcm_ima_apc dsicinaudio mlp adpcm_ima_dk3 dsicinvideo mmvideo adpcm_ima_dk4 dvbsub motionpixels adpcm_ima_ea_eacs dvdsub movtext adpcm_ima_ea_sead dvvideo mp1 adpcm_ima_iss dxtory mp1float adpcm_ima_oki eac3 mp2 adpcm_ima_qt eacmv mp2float adpcm_ima_smjpeg eamad mp3 adpcm_ima_wav eatgq mp3adu adpcm_ima_ws eatgv mp3adufloat adpcm_ms eatqi mp3float adpcm_sbpro_2 eightbps mp3on4 adpcm_sbpro_3 eightsvx_exp mp3on4float adpcm_sbpro_4 eightsvx_fib mpc7 adpcm_swf escape124 mpc8 adpcm_thp escape130 mpeg1video adpcm_xa evrc mpeg2video adpcm_yamaha ffv1 mpeg4 alac ffvhuff mpegvideo als ffwavesynth mpl2 amrnb flac msa1 amrwb flic msmpeg4v1 amv flv msmpeg4v2 anm fourxm msmpeg4v3 ansi fraps msrle ape frwu mss1 ass g723_1 mss2 asv1 g729 msvideo1 asv2 gif mszh atrac1 gsm mts2 atrac3 gsm_ms mvc1 aura h261 mvc2 aura2 h263 mxpeg avrn h263i nellymoser avrp h263p nuv avs h264 paf_audio avui huffyuv paf_video ayuv iac pam bethsoftvid idcin pbm bfi idf pcm_alaw bink iff_byterun1 pcm_bluray binkaudio_dct iff_ilbm pcm_dvd binkaudio_rdft imc pcm_f32be bintext indeo2 pcm_f32le bmp indeo3 pcm_f64be bmv_audio indeo4 pcm_f64le bmv_video indeo5 pcm_lxf brender_pix interplay_dpcm pcm_mulaw pcm_s16be rv20 v408 pcm_s16be_planar rv30 v410 pcm_s16le rv40 vb pcm_s16le_planar s302m vble pcm_s24be sami vc1 pcm_s24daud sanm vc1image pcm_s24le sgi vcr1 pcm_s24le_planar sgirle vima pcm_s32be shorten vmdaudio pcm_s32le sipr vmdvideo pcm_s32le_planar smackaud vmnc pcm_s8 smacker vorbis pcm_s8_planar smc vp3 pcm_u16be snow vp5 pcm_u16le sol_dpcm vp6 pcm_u24be sonic vp6a pcm_u24le sp5x vp6f pcm_u32be srt vp8 pcm_u32le ssa vplayer pcm_u8 subrip vqa pcm_zork subviewer wavpack pcx subviewer1 webp pgm sunrast webvtt pgmyuv svq1 wmalossless pgssub svq3 wmapro pictor tak wmav1 pjs targa wmav2 ppm targa_y216 wmavoice prores text wmv1 prores_lgpl theora wmv2 ptx thp wmv3 qcelp tiertexseqvideo wmv3image qdm2 tiff wnv1 qdraw tmv ws_snd1 qpeg truehd xan_dpcm qtrle truemotion1 xan_wc3 r10k truemotion2 xan_wc4 r210 truespeech xbin ra_144 tscc2 xbm ra_288 tta xface ralf twinvq xl rawvideo txd xsub realtext ulti xwd rl2 utvideo y41p roq v210 yop roq_dpcm v210x yuv4 rpza v308 zero12v rv10 Enabled encoders: a64multi libx264 pgm a64multi5 libx264rgb pgmyuv aac ljpeg ppm ac3 mjpeg prores ac3_fixed movtext prores_aw adpcm_adx mp2 prores_ks adpcm_g722 mpeg1video qtrle adpcm_g726 mpeg2video r10k adpcm_ima_qt mpeg4 r210 adpcm_ima_wav msmpeg4v2 ra_144 adpcm_ms msmpeg4v3 rawvideo adpcm_swf msvideo1 roq adpcm_yamaha nellymoser roq_dpcm alac pam rv10 amv pbm rv20 ass pcm_alaw sgi asv1 pcm_f32be snow asv2 pcm_f32le sonic avrp pcm_f64be sonic_ls avui pcm_f64le srt ayuv pcm_mulaw ssa bmp pcm_s16be subrip cljr pcm_s16be_planar sunrast comfortnoise pcm_s16le svq1 dca pcm_s16le_planar targa dnxhd pcm_s24be tiff dpx pcm_s24daud utvideo dvbsub pcm_s24le v210 dvdsub pcm_s24le_planar v308 dvvideo pcm_s32be v408 eac3 pcm_s32le v410 ffv1 pcm_s32le_planar vorbis ffvhuff pcm_s8 wmav1 flac pcm_s8_planar wmav2 flv pcm_u16be wmv1 g723_1 pcm_u16le wmv2 gif pcm_u24be xbm h261 pcm_u24le xface h263 pcm_u32be xsub h263p pcm_u32le xwd huffyuv pcm_u8 y41p j2k pcx yuv4 jpegls Enabled hwaccels: h264_dxva2 vc1_dxva2 wmv3_dxva2 mpeg2_dxva2 Enabled parsers: aac dvd_nav mpegvideo aac_latm dvdsub png ac3 flac pnm adx gsm rv30 bmp h261 rv40 cavsvideo h263 tak cook h264 vc1 dca mjpeg vorbis dirac mlp vp3 dnxhd mpeg4video vp8 dvbsub mpegaudio Enabled demuxers: aac ico pcm_u16le ac3 idcin pcm_u24be act idf pcm_u24le adf iff pcm_u32be adx ilbc pcm_u32le aea image2 pcm_u8 afc image2pipe pjs aiff ingenient pmp amr ipmovie pva anm ircam pvf apc iss qcp ape iv8 r3d aqtitle ivf rawvideo asf jacosub realtext ass jv rl2 ast latm rm au lmlm4 roq avi loas rpl avr lvf rso avs lxf rtp bethsoftvid m4v rtsp bfi matroska sami bink mgsts sap bintext microdvd sbg bit mjpeg sdp bmv mlp segafilm boa mm shorten brstm mmf siff c93 mov smacker caf mp3 smjpeg cavsvideo mpc smush cdg mpc8 sol cdxl mpegps sox concat mpegts spdif data mpegtsraw srt daud mpegvideo str dfa mpl2 subviewer dirac mpsub subviewer1 dnxhd msnwc_tcp swf dsicin mtv tak dts mv tedcaptions dtshd mvi thp dv mxf tiertexseq dxa mxg tmv ea nc truehd ea_cdata nistsphere tta eac3 nsv tty epaf nut txd ffm nuv vc1 ffmetadata ogg vc1t filmstrip oma vivo flac paf vmd flic pcm_alaw vobsub flv pcm_f32be voc fourxm pcm_f32le vplayer frm pcm_f64be vqf g722 pcm_f64le w64 g723_1 pcm_mulaw wav g729 pcm_s16be wc3 gif pcm_s16le webvtt gsm pcm_s24be wsaud gxf pcm_s24le wsvqa h261 pcm_s32be wtv h263 pcm_s32le wv h264 pcm_s8 xa hls pcm_u16be xbin xmv yop yuv4mpegpipe xwma Enabled muxers: a64 image2pipe pcm_s16le ac3 ipod pcm_s24be adts ircam pcm_s24le adx ismv pcm_s32be aiff ivf pcm_s32le amr jacosub pcm_s8 asf latm pcm_u16be asf_stream m4v pcm_u16le ass matroska pcm_u24be ast matroska_audio pcm_u24le au md5 pcm_u32be avi microdvd pcm_u32le avm2 mjpeg pcm_u8 bit mkvtimestamp_v2 psp caf mlp rawvideo cavsvideo mmf rm crc mov roq data mp2 rso daud mp3 rtp dirac mp4 rtsp dnxhd mpeg1system sap dts mpeg1vcd segment dv mpeg1video smjpeg eac3 mpeg2dvd smoothstreaming f4v mpeg2svcd sox ffm mpeg2video spdif ffmetadata mpeg2vob srt filmstrip mpegts stream_segment flac mpjpeg swf flv mxf tee framecrc mxf_d10 tg2 framemd5 null tgp g722 nut truehd g723_1 ogg vc1 gif oma vc1t gxf pcm_alaw voc h261 pcm_f32be w64 h263 pcm_f32le wav h264 pcm_f64be webm hls pcm_f64le wtv ico pcm_mulaw wv ilbc pcm_s16be yuv4mpegpipe image2 Enabled protocols: cache hls rtmp concat http rtmpt crypto httpproxy rtp data md5 srtp ffrtmphttp mmsh tcp file mmst udp gopher pipe Enabled filters: aconvert concat noise aevalsrc copy null afade crop nullsink aformat cropdetect nullsrc ainterleave curves overlay allpass decimate pad alphaextract delogo pan alphamerge deshake perms amerge drawbox pixdesctest amix earwax pp amovie ebur128 removelogo anull edgedetect rgbtestsrc anullsink equalizer scale anullsrc fade select apad field sendcmd aperms fieldmatch separatefields aphaser fieldorder setdar aresample format setfield aselect fps setpts asendcmd framestep setsar asetnsamples geq settb asetpts gradfun showinfo asetrate hflip showspectrum asettb highpass showwaves ashowinfo histeq silencedetect asplit histogram sine astats hqdn3d smartblur astreamsync hue smptebars atempo idet smptehdbars atrim il split bandpass interlace stereo3d bandreject interleave super2xsai bass join swapuv bbox kerndeint telecine biquad life testsrc blackdetect lowpass thumbnail blackframe lut tile blend lutrgb tinterlace boxblur lutyuv transpose cellauto mandelbrot treble channelmap movie trim channelsplit mp unsharp color mpdecimate vflip colorbalance mptestsrc volume colorchannelmixer negate volumedetect colormatrix noformat yadif Enabled bsfs: aac_adtstoasc mjpeg2jpeg mp3_header_decompress chomp mjpega_dump_header noise dump_extradata mov2textsub remove_extradata h264_mp4toannexb mp3_header_compress text2movsub imx_dump_header Enabled indevs: lavfi vfwcap Enabled outdevs: License: GPL version 2 or later Creating config.mak, config.h, and doc/config.texi... config.h is unchanged config.asm is unchanged libavutil/avconfig.h is unchanged From haouala-hafedh at live.fr Wed May 1 21:06:24 2013 From: haouala-hafedh at live.fr (Hafedh Haouala) Date: Wed, 1 May 2013 20:06:24 +0100 Subject: [FFmpeg-user] FW: FFMPEG Custom Read function reads all the data In-Reply-To: References: Message-ID: Hi, I'm trying to implement a custom read function for ffmpeg that will retrieve a buffer from local video ( from device in the future) and then deocde this buffer, etc.. So, here's my read function int IORead(void *opaque, uint8_t *buf, int buf_size) { FileReader* datrec = (FileReader*)opaque; int ret = datrec->Read(buf, buf_size); return ret; } As for the FileReader : class FileReader { protected: int fd; public: FileReader(const char *filename){ //, int buf_size){ fd = open(filename, O_RDONLY); }; ~FileReader() { close(fd); }; int Read(uint8_t *buf, int buf_size){ int len = read(fd, buf, buf_size); return len; }; }; and for the my execution : FileReader *receiver = new FileReader("/sdcard/clip.ts"); AVFormatContext *avFormatContextPtr = NULL; this->iobuffer = (unsigned char*) av_malloc(4096 + FF_INPUT_BUFFER_PADDING_SIZE); avFormatContextPtr = avformat_alloc_context(); avFormatContextPtr->pb = avio_alloc_context(this->iobuffer, 4096, 0, receiver, IORead, NULL, NULL); avFormatContextPtr->pb->seekable = 0; int err = avformat_open_input(&avFormatContextPtr, "", NULL, NULL) ; if( err != 0) {...} // Decoding process {...} However, once the `avformat_open_input()` is called, the read function `IORead` is called and keeps reading the file `clip.ts` until it reaches its end and only then it exit and the decoding process is reached with no data to decode ( as all of it was consumed) I don't know what is the problem especially that this code AVFormatContext *avFormatContextPtr = NULL; int err = avformat_open_input(&avFormatContextPtr, "/sdcard/clip.ts", NULL, NULL) ; isn't blocking untill the end of the file is reached. Am I missing something ? I really appreciate your help. From hbxk76 at motorola.com Wed May 1 14:28:26 2013 From: hbxk76 at motorola.com (Joseph Briggs) Date: Wed, 1 May 2013 08:28:26 -0400 Subject: [FFmpeg-user] Trouble creating a mp4 remuxer. In-Reply-To: <517ED043.9020308@vizrt.com> References: <517ED043.9020308@vizrt.com> Message-ID: Anders - will this be similar to tsMuxeR or tsReMuxer and possibly work on AVCHD MTS files? Joe Briggs On Mon, Apr 29, 2013 at 3:55 PM, Anders Rein wrote: > I am trying to create a mp4 remuxer. I open the source file and have > copied all streams with all relevant codec info from the source stream to > the output stream, but when I call avformat_write_header I get an error > message: > > [mp4 @ 0x61534a0] Tag mp4a/0x6134706d incompatible with output codec id > '86018' > > I get the same error for all codecs I try to use and it is only for mp4. > If I try to use ts files. I works perfectly. > > Does anyone have any clue what the problem could be? > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > -- Joe Briggs desk: 678.957.3375 cell: 603.493.2386 From cehoyos at ag.or.at Thu May 2 23:30:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 May 2013 21:30:50 +0000 (UTC) Subject: [FFmpeg-user] Cygwin build: ffserver not built? References: Message-ID: Michael Rosati gmail.com> writes: > I'm trying to build on Windows under Cygwin, and > I'm finding that ffmpeg and ffprobe are working > fine, but ffserver isn't being built. What does "grep FFSERVER config.h" show? (If cygwin is really missing "fork()", you will have to switch to mingw.) Carl Eugen From timothygu99 at gmail.com Fri May 3 04:22:57 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Thu, 2 May 2013 19:22:57 -0700 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? In-Reply-To: References: <20130501141957.GC15622@sunshine.barsnick.net> Message-ID: Hi, On May 1, 2013 8:24 AM, "Robert Kr?ger" wrote: > > Hi Moritz, > > > On Wed, May 1, 2013 at 4:19 PM, Moritz Barsnick wrote: > > > Hi Robert, > > > > On Wed, May 01, 2013 at 15:34:22 +0200, Robert Kr?ger wrote: > > > > > I am trying to build ffmpeg with vid.stab support. I installed vid.stab > > > from git head and then configured ffmpeg from current head with > > > > > > ./configure --enable-gpl --enable-libvidstab > > > > From my experience on Linux with building and using a "local" (i.e. > > with non-default location) libvidstab, ffmpeg's configure seems to > > desire pkg-config for finding libvidstab. This may or may not be unlike > > with other libraries. > > > > So please check whether > > a) you have /usr/local/lib/pkgconfig/libvidstab.pc, and > > b) pkg-config by default also searches /usr/local/lib/pkgconfig . > > > > If b) does not apply, you might want to set the environment variable > > PKG_CONFIG_PATH to point to /usr/local/lib/pkgconfig . > > > > Oh, another thought: Does ffmpeg search /usr/local? But as I mentioned, > > vid.stab support seems to require pkg-config. > > > > Just guessing, > > Moritz > > > > and guessing well :-). That was it. The pc file wasn't in > /usr/local/lib/pkgconfig and after creating the directory and manually > adding it, configure and compile went through without problems. The next time you had an configure error, try to look at config.log. Most time it will give you a error message. Timothy G. From sumesh_pt at yahoo.com Fri May 3 10:22:32 2013 From: sumesh_pt at yahoo.com (Sumesh P.T.) Date: Fri, 3 May 2013 01:22:32 -0700 (PDT) Subject: [FFmpeg-user] Invalid data found when processing input Message-ID: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> Hi, I was trying to process a video file using ffmpeg. It is not processing. I am pasting the command line output of it. Would you please help me to sort this out? Thanks a lot, sumesh ffmpeg -i test-kindofrepul.avi ouput.avi ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers ? built on Sep 22 2012 01:29:36 with clang 3.0 (tags/RELEASE_30/final) ? configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libvpx --enable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/opt/local/bin/clang-mp-3.0 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --arch=x86_64 --enable-yasm ? libavutil ? ?50. 43. 0 / 50. 43. 0 ? libavcodec ? 52.123. 0 / 52.123. 0 ? libavformat ?52.111. 0 / 52.111. 0 ? libavdevice ?52. ?5. 0 / 52. ?5. 0 ? libavfilter ? 1. 80. 0 / ?1. 80. 0 ? libswscale ? ?0. 14. 1 / ?0. 14. 1 ? libpostproc ?51. ?2. 0 / 51. ?2. 0 test-kindofrepul.avi: Invalid data found when processing input From krueger at lesspain.de Fri May 3 10:23:53 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 3 May 2013 10:23:53 +0200 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? In-Reply-To: References: <20130501141957.GC15622@sunshine.barsnick.net> Message-ID: On May 3, 2013 4:23 AM, "Timothy Gu" wrote: > > Hi, > > On May 1, 2013 8:24 AM, "Robert Kr?ger" wrote: > > > > Hi Moritz, > > > > > > On Wed, May 1, 2013 at 4:19 PM, Moritz Barsnick wrote: > > > > > Hi Robert, > > > > > > On Wed, May 01, 2013 at 15:34:22 +0200, Robert Kr?ger wrote: > > > > > > > I am trying to build ffmpeg with vid.stab support. I installed > vid.stab > > > > from git head and then configured ffmpeg from current head with > > > > > > > > ./configure --enable-gpl --enable-libvidstab > > > > > > From my experience on Linux with building and using a "local" (i.e. > > > with non-default location) libvidstab, ffmpeg's configure seems to > > > desire pkg-config for finding libvidstab. This may or may not be unlike > > > with other libraries. > > > > > > So please check whether > > > a) you have /usr/local/lib/pkgconfig/libvidstab.pc, and > > > b) pkg-config by default also searches /usr/local/lib/pkgconfig . > > > > > > If b) does not apply, you might want to set the environment variable > > > PKG_CONFIG_PATH to point to /usr/local/lib/pkgconfig . > > > > > > Oh, another thought: Does ffmpeg search /usr/local? But as I mentioned, > > > vid.stab support seems to require pkg-config. > > > > > > Just guessing, > > > Moritz > > > > > > > and guessing well :-). That was it. The pc file wasn't in > > /usr/local/lib/pkgconfig and after creating the directory and manually > > adding it, configure and compile went through without problems. > > The next time you had an configure error, try to look at config.log. Most > time it will give you a error message. > Thanks for the hint but I did. It was the error message I posted. Robert > Timothy G. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Fri May 3 10:55:53 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 May 2013 08:55:53 +0000 (UTC) Subject: [FFmpeg-user] Invalid data found when processing input References: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> Message-ID: Sumesh P.T. yahoo.com> writes: > ffmpeg -i test-kindofrepul.avi ouput.avi > ffmpeg version 0.7.13 This is old, if the problem is also reproducible with current FFmpeg, please provide the sample. Carl Eugen From tevans.uk at googlemail.com Fri May 3 11:53:55 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Fri, 3 May 2013 10:53:55 +0100 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? In-Reply-To: References: <20130501141957.GC15622@sunshine.barsnick.net> Message-ID: On Fri, May 3, 2013 at 9:23 AM, Robert Kr?ger wrote: > On May 3, 2013 4:23 AM, "Timothy Gu" wrote: >> The next time you had an configure error, try to look at config.log. Most >> time it will give you a error message. >> > Thanks for the hint but I did. It was the error message I posted. > The error message you posted was the output from configure. What Timothy was explaining was that in the file config.log it will contain more details about why vidstab was not found, not just that it was not found. The way configure works is that it will try to compile lots of small programs to see if the expected API is there, and to work out what libraries it needs to link to. If a library changes its API, the small program will not compile, which is the same result as if the library was not found. The output of trying to compile the small program is stored in config.log, and seeing the output helps determine why the library was not found. Cheers Tom From rohit.tvm.86 at gmail.com Fri May 3 14:07:10 2013 From: rohit.tvm.86 at gmail.com (rohit a) Date: Fri, 3 May 2013 17:37:10 +0530 Subject: [FFmpeg-user] AAC conversion from 7.1 channel to 2 channel Message-ID: Hi, For AAC conversion from 5.1 channels to 2 channels, ffmpeg code uses surround_to_stereo() in libavcodec/Resample.c In that the input data was packed in the format fl, fr, c, lfe, rl, rr fl = input[0]; // front left fr = input[1]; // front right c = input[2]; // center lfe = input[3]; // low frequency effects rl = input[4]; // rear left rr = input[5]; // rear right I would like to convert AAC 7.1 channels to 2 channels. But i have no idea about how the input data is packed. Can anyone please tell me how the input data format is arranged for AAC 7.1 channels ? Regards, Rohit From cehoyos at ag.or.at Fri May 3 14:17:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 May 2013 12:17:49 +0000 (UTC) Subject: [FFmpeg-user] AAC conversion from 7.1 channel to 2 channel References: Message-ID: rohit a gmail.com> writes: > For AAC conversion from 5.1 channels to 2 channels, > ffmpeg code uses surround_to_stereo() in > libavcodec/Resample.c This looks outdated, I believe you should use libswresample. > In that the input data was packed in the format > fl, fr, c, lfe, rl, rr > fl = input[0]; // front left > fr = input[1]; // front right > c = input[2]; // center > lfe = input[3]; // low frequency effects > rl = input[4]; // rear left > rr = input[5]; // rear right > I would like to convert AAC 7.1 channels to 2 channels. Did you try? Without testing, I suspect it should work. > But i have no idea about how the input data is packed. FFmpeg internally expects wav channel order. > Can anyone please tell me how the input data format > is arranged for AAC 7.1 channels ? In aac, different channel orderings are possible, and usually it is not wav-order, but the aac decoder should correctly order the channels. (If it does not, this would be a bug, reports are very welcome!) Carl Eugen From sullafelix at ymail.com Fri May 3 14:19:35 2013 From: sullafelix at ymail.com (Mark Haney) Date: Fri, 3 May 2013 05:19:35 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> Message-ID: <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> ________________________________ From: Mark Haney To: "ffmpeg-user at ffmpeg.org" Sent: Wednesday, April 17, 2013 8:50 AM Subject: ffmpeg 1.0.5 and buffer underflow I've been using ffmpeg for several years to encode video into DVD format.? Mostly old home movies to hand out to the rest of the family.? Lately, I've been getting hammered with buffer underflow errors, even with video I've encoded successfully.? I'm using Fedora 18 and ffmpeg 1.0.5.? I've googled this problem, but found only posts that are ~1 year old or more and have tried a few things to no avail.? Anyone got ideas on how to fix this? ---- I have some additional info on this issue that I hope will help find an answer to this.? It appears that I get the buffer underflow when I am encoding HD video to NTSC DVD format.? The only way I can keep that from happening is to set the video buffer (-v:b) to 0k.? The only problem is the video is so blocky as to be nearly useless. Anyone else having this problem?? Ideas on fixing it? From rosati.michael at gmail.com Fri May 3 15:24:38 2013 From: rosati.michael at gmail.com (Michael Rosati) Date: Fri, 3 May 2013 09:24:38 -0400 Subject: [FFmpeg-user] Cygwin build: ffserver not built? In-Reply-To: References: Message-ID: On Thu, May 2, 2013 at 5:30 PM, Carl Eugen Hoyos wrote: > Michael Rosati gmail.com> writes: > > > I'm trying to build on Windows under Cygwin, and > > I'm finding that ffmpeg and ffprobe are working > > fine, but ffserver isn't being built. > > What does "grep FFSERVER config.h" show? > (If cygwin is really missing "fork()", you > will have to switch to mingw.) > #define CONFIG_FFSERVER 0 From cehoyos at ag.or.at Fri May 3 16:06:45 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 May 2013 14:06:45 +0000 (UTC) Subject: [FFmpeg-user] Cygwin build: ffserver not built? References: Message-ID: Michael Rosati gmail.com> writes: > On Thu, May 2, 2013 at 5:30 PM, Carl Eugen Hoyos wrote: > > > Michael Rosati gmail.com> writes: > > > > > I'm trying to build on Windows under Cygwin, and > > > I'm finding that ffmpeg and ffprobe are working > > > fine, but ffserver isn't being built. > > > > What does "grep FFSERVER config.h" show? > > (If cygwin is really missing "fork()", you > > will have to switch to mingw.) > > #define CONFIG_FFSERVER 0 You could search config.log to find the missing dependency, search for "check_func fork". Carl Eugen From cehoyos at ag.or.at Fri May 3 16:33:54 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 May 2013 14:33:54 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> Message-ID: Mark Haney ymail.com> writes: > I have some additional info on this issue But still neither a failing command line nor the complete, uncut console output;-( Carl Eugen From rosati.michael at gmail.com Fri May 3 17:45:53 2013 From: rosati.michael at gmail.com (Michael Rosati) Date: Fri, 3 May 2013 11:45:53 -0400 Subject: [FFmpeg-user] Cygwin build: ffserver not built? In-Reply-To: References: Message-ID: On Fri, May 3, 2013 at 10:06 AM, Carl Eugen Hoyos wrote: > Michael Rosati gmail.com> writes: > > > On Thu, May 2, 2013 at 5:30 PM, Carl Eugen Hoyos wrote: > > > > > Michael Rosati gmail.com> writes: > > > > > > > I'm trying to build on Windows under Cygwin, and > > > > I'm finding that ffmpeg and ffprobe are working > > > > fine, but ffserver isn't being built. > > > > > > What does "grep FFSERVER config.h" show? > > > (If cygwin is really missing "fork()", you > > > will have to switch to mingw.) > > > > #define CONFIG_FFSERVER 0 > > You could search config.log to find the missing > dependency, search for "check_func fork". Definitely onto something there. Couldn't resolve the reference to _fork(). check_func fork check_ld cc check_cc BEGIN /tmp/ffconf.Rv3Ey5Ns.c 1 extern int fork(); 2 int main(void){ fork(); } END /tmp/ffconf.Rv3Ey5Ns.c gcc --sysroot=/usr/i686-w64-mingw32/sys-root -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -std=c99 -fomit-frame-pointer -c -o /tmp/ffconf.UGHkK6sH.o /tmp/ffconf.Rv3Ey5Ns.c gcc -L/usr/lib/gcc/i686-w64-mingw32/4.5.3/ --sysroot=/usr/i686-w64-mingw32/sys-root -Wl,--as-needed -o /tmp/ffconf.GsIfwY8d.exe /tmp/ffconf.UGHkK6sH.o -lmingw32 -lgcc_eh -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc_eh -lgcc -lmoldname -lmingwex -lmsvcrt /tmp/ffconf.UGHkK6sH.o:ffconf.Rv3Ey5Ns.c:(.text+0xc): undefined reference to `_fork' collect2: ld returned 1 exit status I know Cygwin has fork(), though - their FAQ even explains how it's implemented - and checking the objdump of /usr/lib/libc.a, I think, confirms it: $ /usr/i686-w64-mingw32/bin/objdump.exe -t libc.a | grep fork [ 4](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __fork [ 5](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __imp___fork [ 4](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __vfork [ 5](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __imp___vfork [ 4](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _dlfork [ 5](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __imp__dlfork [ 4](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _fork [ 5](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __imp__fork [ 4](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _vfork [ 5](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 __imp__vfork There are some other failing checks and missing libraries (for example, anything with -lrt fails, check_func fcntl fails) that lead me to believe there's something wrong with my environment - it doesn't seem to be searching /usr/lib for libraries to link against. But I'm rather a novice at this, so maybe I'm wrong. From sullafelix at ymail.com Fri May 3 22:48:42 2013 From: sullafelix at ymail.com (Mark Haney) Date: Fri, 3 May 2013 13:48:42 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> Message-ID: <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Friday, May 3, 2013 10:33 AM Subject: Re: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update Mark Haney ymail.com> writes: > I have some additional info on this issue But still neither a failing command line nor the complete, uncut console output;-( ---------- I'd really hoped to avoid that mainly because it's a very simple command line, there's nothing odd about the files I'm encoding or what I'm encoding them into.? However, I've attached the output of the encoding process on the exact same file with the basic command line and then adjusting the video buffer to 0k.? The file itself isn't anything special: [markh at augustus Season 1]$ file Vacation2011.avi Vacation2011.avi: RIFF (little-endian) data, AVI, 720 x 404, 23.98 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 44100 Hz) At first I thought it was a heat issue, we'd recently moved and I was worried that the airflow may have been flaky.? I had noticed errors with BOINC and seti at home so did a thorough cleaning of the my big system as well as making sure CPU temp stayed stable.? This box generates a lot of heat being a dual Quad-core system.? I hope this helps.? I've encoded this file cleanly before with the exact same command line on this system, the HW and OS (Fedora 18) have stayed the same the only difference that I can find is ffmpeg was upgraded to 1.0.5 when encoding started bombing. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: FFMPEG.noerr.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: FFMPEG.underflow.txt URL: From mazen at pnettv.com Fri May 3 22:41:22 2013 From: mazen at pnettv.com (Mazen) Date: Fri, 3 May 2013 22:41:22 +0200 Subject: [FFmpeg-user] Live Encoding Hardware Message-ID: <000001ce483e$92f9a6d0$b8ecf470$@com> Dear all I want to know which best hardware to buy for MULTI Live encoding SD channels. (x.264 , 2MB each channel) IPTV. Please I want know what hardware used, and how many live channels were transcoded well. What CPU speed , Cores , Ram. My OS is Ubuntu. Thanks in advanced From sumesh_pt at yahoo.com Sat May 4 12:05:43 2013 From: sumesh_pt at yahoo.com (Sumesh P.T.) Date: Sat, 4 May 2013 03:05:43 -0700 (PDT) Subject: [FFmpeg-user] Invalid data found when processing input In-Reply-To: References: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> Message-ID: <1367661943.85103.YahooMailNeo@web125103.mail.ne1.yahoo.com> Dear Carl, Thank you for your message. It works with newer versions. However the output I get has blank frames. I did?ffmpeg -i input.avi ouput.avi. Since I didnt give any specifications it should have just converted by taking all the specifications of the input file. Doesn't it do that? Do I need to specify the codec also? How do I find the right one? Could you please help me with this? I tried attaching the input and output videos, but the email didn't go through. Thanks a lot, sumesh ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Friday, 3 May 2013, 9:55 Subject: Re: [FFmpeg-user] Invalid data found when processing input Sumesh P.T. yahoo.com> writes: > ffmpeg -i test-kindofrepul.avi ouput.avi > ffmpeg version 0.7.13 This is old, if the problem is also reproducible with current FFmpeg, please provide the sample. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sat May 4 13:12:39 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 11:12:39 +0000 (UTC) Subject: [FFmpeg-user] Invalid data found when processing input References: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> <1367661943.85103.YahooMailNeo@web125103.mail.ne1.yahoo.com> Message-ID: Sumesh P.T. yahoo.com> writes: > However the output I get has blank frames. Sorry, I don't understand "blank frames" in this context. > I did?ffmpeg -i input.avi ouput.avi. Complete, uncut console output missing. Please do not top-post here, it is considered rude. Carl Eugen From cehoyos at ag.or.at Sat May 4 13:23:10 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 11:23:10 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> Message-ID: Mark Haney ymail.com> writes: > ffmpeg version 1.0.5 This does not look like current git head;-( > --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 > -m64 -mtune=generic' Unrelated: There are two possibilities: Either these options are useful, then they should be made default for FFmpeg, this needs either a patch sent to ffmpeg-devel (together with the explanation why the patch is needed) or a bug report explaining why a particular option should be set. Or the options are not useful, then you should remove them from compilation. (Some of the options are not useful / harmful, for others I honestly don't know.) Carl Eugen From h.reindl at thelounge.net Sat May 4 13:31:17 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 May 2013 13:31:17 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> Message-ID: <5184F185.80808@thelounge.net> Am 04.05.2013 13:23, schrieb Carl Eugen Hoyos: > Mark Haney ymail.com> writes: > >> ffmpeg version 1.0.5 > > This does not look like current git head;-( > >> --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 >> -fexceptions -fstack-protector --param=ssp-buffer-size=4 >> -m64 -mtune=generic' > > Unrelated: > There are two possibilities: Either these options are > useful, then they should be made default for FFmpeg, > this needs either a patch sent to ffmpeg-devel > (together with the explanation why the patch is needed) > or a bug report explaining why a particular option > should be set. > Or the options are not useful, then you should remove > them from compilation have you ever considered to google them? "-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" are default for ANY package of most linux-distributions since years for security reasons and for a hardening build you enable "-fPIC -fPIE -fstack-protector-all" too as also "-Wl,-z,now -Wl,-z,relro" as LDFLAGS yes, they affect performance, but security first -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From phpdev at ehrhardt.nl Sat May 4 15:09:03 2013 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 04 May 2013 15:09:03 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> Message-ID: <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> Reindl Harald in gmane.comp.video.ffmpeg.user (Sat, 04 May 2013 13:31:17 +0200): >"-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" are >default for ANY package of most linux-distributions since years for >security reasons > >and for a hardening build you enable "-fPIC -fPIE -fstack-protector-all" >too as also "-Wl,-z,now -Wl,-z,relro" as LDFLAGS > >yes, they affect performance, but security first Do they affect compiler performance or also the performance of the final build? Jan From cehoyos at ag.or.at Sat May 4 15:23:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 13:23:02 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > >> --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > >> -fexceptions -fstack-protector --param=ssp-buffer-size=4 > >> -m64 -mtune=generic' > have you ever considered to google them? > > "-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" > are default for ANY package of most linux-distributions > since years for security reasons Do you know of any problems these parameters fix? (Iirc, the exploit for Ubuntu "MPlayer" - which is not MPlayer - also worked with these flags, or am I wrong?) > and for a hardening build you enable > "-fPIC -fPIE -fstack-protector-all" too as also > "-Wl,-z,now -Wl,-z,relro" as LDFLAGS None of these are used above, so I wonder how this is related? And please note that of the options you did not comment on, some are useless, some harmful, so the argument "people know what they do" (in case this is your argument) seems insupportable. Carl Eugen From h.reindl at thelounge.net Sat May 4 15:25:14 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 May 2013 15:25:14 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> Message-ID: <51850C3A.2040601@thelounge.net> Am 04.05.2013 15:09, schrieb Jan Ehrhardt: > Reindl Harald in gmane.comp.video.ffmpeg.user (Sat, 04 May 2013 13:31:17 > +0200): >> "-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" are >> default for ANY package of most linux-distributions since years for >> security reasons >> >> and for a hardening build you enable "-fPIC -fPIE -fstack-protector-all" >> too as also "-Wl,-z,now -Wl,-z,relro" as LDFLAGS >> >> yes, they affect performance, but security first > > Do they affect compiler performance or also the performance of the final > build? the performance of the final build, how esle should this work if there is code added, on i386 it hurts around 10% but on x86_64 at least the overhead of -fPIC -fPIE can be ignored who cares about 10% performance in case of more security? well, nobody said "make it default", but Carls attitude was "why do you not remove it" which is plain wrong hence if i have a server where users can upload videos which are rpcoeeded in a cronjob i do not care about some % performance but i do care if someone exploits my machine with bad input http://en.wikipedia.org/wiki/Buffer_overflow_protection#GCC_Stack-Smashing_Protector_.28ProPolice.29 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Sat May 4 15:27:55 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 May 2013 15:27:55 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> Message-ID: <51850CDB.2070305@thelounge.net> Am 04.05.2013 15:23, schrieb Carl Eugen Hoyos: > Reindl Harald thelounge.net> writes: > >>>> --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 >>>> -fexceptions -fstack-protector --param=ssp-buffer-size=4 >>>> -m64 -mtune=generic' > >> have you ever considered to google them? >> >> "-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" >> are default for ANY package of most linux-distributions >> since years for security reasons > > Do you know of any problems these parameters fix? they are intented to give a safety net for UNKNOWN problems >> and for a hardening build you enable >> "-fPIC -fPIE -fstack-protector-all" too as also >> "-Wl,-z,now -Wl,-z,relro" as LDFLAGS > > None of these are used above, so I wonder how this > is related? they belong together in case of a hardened build > And please note that of the options you did not comment on, > some are useless, some harmful, so the argument "people > know what they do" (in case this is your argument) > seems insupportable maybe you should comment the one of one and not quote the whole option line and say it is useless? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From russurquhart1 at verizon.net Sat May 4 15:28:20 2013 From: russurquhart1 at verizon.net (Russell Urquhart) Date: Sat, 04 May 2013 08:28:20 -0500 Subject: [FFmpeg-user] Convert PAL dvd with menus to NTSC dvd with menus Message-ID: <20130504132819.GA763@verizon.net> Hi, I have a PAL dvd with menus that point to individual video fragments. I have seen other methods that convert everything out to the individual VOBS, but i was wanting to convert the entire dvd structure, with menus intact, from PAL to NTSC, to a VIDEO_TS format, suitable for burning to dvd, ideally. Is this possible with FFMEPG? Can someone suggest or point to the command(S) necessary? Thanks for any help, Russ From cehoyos at ag.or.at Sat May 4 15:27:28 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 13:27:28 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> Message-ID: Jan Ehrhardt ehrhardt.nl> writes: > >yes, they affect performance, but security first > > Do they affect compiler performance or also the > performance of the final build? Only the binary performance is relevant. (The compiler performance is of very minor relevance, and FFmpeg by default uses options that very badly affect compiler performance.) Carl Eugen From cehoyos at ag.or.at Sat May 4 15:32:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 13:32:09 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <51850CDB.2070305@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > maybe you should comment the one of one and not quote > the whole option line and say it is useless? I am not saying it is useless. What I am trying to say is that the options look as if they were added by somebody who has no clue. (Which - if my suspicion is correct - would make the security argument void.) Carl Eugen From nicolas.george at normalesup.org Sat May 4 15:45:33 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 4 May 2013 15:45:33 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: <51850C3A.2040601@thelounge.net> References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> <51850C3A.2040601@thelounge.net> Message-ID: <20130504134533.GB25352@phare.normalesup.org> Le quintidi 15 flor?al, an CCXXI, Reindl Harald a ?crit?: > who cares about 10% performance in case of more security? People who want to play video in real time on low-end machines. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From h.reindl at thelounge.net Sat May 4 15:56:51 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 May 2013 15:56:51 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: <20130504134533.GB25352@phare.normalesup.org> References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> <51850C3A.2040601@thelounge.net> <20130504134533.GB25352@phare.normalesup.org> Message-ID: <518513A3.7060907@thelounge.net> Am 04.05.2013 15:45, schrieb Nicolas George: > Le quintidi 15 flor?al, an CCXXI, Reindl Harald a ?crit : >> who cares about 10% performance in case of more security? > > People who want to play video in real time on low-end machines well, and that is why the options are there and that's my static build for servers with static libx264 on x86_64 there is no noticeable impact at performance the same for PHP, APache, Postfix. Dovecot, MySQL....... at least on i7-3770 and Xeon E5-2640 some of the performance penalties may be negated by the compiler-optimizing for recent CPU's and agin: that is why the options are there and rpmbuild exists to make predictable and deployable packages on test-machines --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg --incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --mandir=/usr/local/man --arch=x86_64 --extra-cflags='-I/usr/local/x264 -m64 -O3 -march=corei7 -mtune=corei7 -fopenmp -mmmx -msse2 -msse3 -msse4.1 -msse4.2 -maes -pipe -fstack-protector --param=ssp-buffer-size=4 -mfpmath=sse -D_FORTIFY_SOURCE=2 -fexceptions -fPIC -fPIE -fstack-protector-all' --extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -Wl,-z,now -Wl,-z,relro' --enable-nonfree --enable-gpl --enable-version3 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --enable-static --enable-runtime-cpudetect --disable-symver --disable-shared --disable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopenjpeg --disable-libopencv --disable-libschroedinger --disable-libgsm --disable-librtmp --disable-libopus --disable-libfreetype -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Sat May 4 16:00:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 14:00:50 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> <51850C3A.2040601@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > who cares about 10% performance It should be noted here that a 1% speed issue is considered a severe issue in FFmpeg development. (Or in other words: A 1% performance improvement is generally seen as a very valuable contribution.) > in case of more security? No objection here, but I should repeat that you should elaborate a bit on what kind of issues can be avoided by the options. > well, nobody said "make it default", but Carls attitude was > "why do you not remove it" which is plain wrong No, that is not my attitude, on the contrary: If the relevant options fix some (theoretical) issues, they should be made default (with an option to disable them) or at least configurable. If the options do not fix any (theoretical) issues though, they should indeed be removed. In any case, options that are not understood should probably not be used. > hence if i have a server where users can upload > videos which are rpcoeeded in a cronjob i do not > care about some % performance but i do care if > someone exploits my machine with bad input I hope you are compiling your executables with increased assert-level set (this definitely fixed some security issues in the past). > http://en.wikipedia.org/wiki/Buffer_overflow_protection#GCC_Stack-Smashing_Protector_.28ProPolice.29 I like Wikipedia but it is typically not relevant for technical discussions. Carl Eugen From cehoyos at ag.or.at Sat May 4 16:03:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 May 2013 14:03:34 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update References: <1366203004.83081.YahooMailNeo@web122303.mail.ne1.yahoo.com> <1367583575.78252.YahooMailNeo@web122304.mail.ne1.yahoo.com> <1367614122.23732.YahooMailNeo@web122304.mail.ne1.yahoo.com> <5184F185.80808@thelounge.net> <5v1ao8hn0074ifm71l06q264c9u82151c0@4ax.com> <51850C3A.2040601@thelounge.net> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > If the relevant options fix some (theoretical) issues, > they should be made default (with an option to disable > them) With an option to disable them in case they have a performance impact. Carl Eugen From vincent at up4.com Sun May 5 01:12:37 2013 From: vincent at up4.com (Vincent Olivier) Date: Sat, 4 May 2013 19:12:37 -0400 Subject: [FFmpeg-user] 422 to 444 Upsampling Testbed In-Reply-To: References: <1F5558FD-E9D5-4E98-BF68-E4994D80ED27@up4.com> <6AC0262B-C820-408E-84FC-2A9286E1F392@up4.com> Message-ID: On 2013-05-02, at 12:35 PM, Paul B Mahol wrote: > Have you checked what actual values you pass to it? Because it looks > like its segv inside swscaler. Yes, that was it. Stupid of me. Now, it segfaults at "av_image_alloc". If I change this call to "false" it runs fine. This time, I did what helped me fix the first problem. My code is 100% copied from the trunk's example. If you know anything. Please, please, please let me know! Also is the channel extraction filter ready for use? Can I pull it from the repository? Regards, Vincent From rohit.tvm.86 at gmail.com Sun May 5 06:08:18 2013 From: rohit.tvm.86 at gmail.com (rohit a) Date: Sun, 5 May 2013 09:38:18 +0530 Subject: [FFmpeg-user] AAC conversion from 7.1 channel to 2 channel In-Reply-To: References: Message-ID: Hi, For AAC conversion from 5.1 channels to 2 channels, the equation used in surround_to_stereo() in libavodec/resample.c is * l = av_clip_int16(fl + (0.5 * rl) + (0.7 * c));* * r = av_clip_int16(fr + (0.5 * rr) + (0.7 * c));* I was not able to find any algorithms/equations for converting 7.1 channel to stereo. Is there any equation for converting 7.1 channel to stereo ? Regards, Rohit On Fri, May 3, 2013 at 5:47 PM, Carl Eugen Hoyos wrote: > rohit a gmail.com> writes: > > > For AAC conversion from 5.1 channels to 2 channels, > > ffmpeg code uses surround_to_stereo() in > > libavcodec/Resample.c > > This looks outdated, I believe you should use > libswresample. > > > In that the input data was packed in the format > > fl, fr, c, lfe, rl, rr > > fl = input[0]; // front left > > fr = input[1]; // front right > > c = input[2]; // center > > lfe = input[3]; // low frequency effects > > rl = input[4]; // rear left > > rr = input[5]; // rear right > > > I would like to convert AAC 7.1 channels to 2 channels. > > Did you try? > Without testing, I suspect it should work. > > > But i have no idea about how the input data is packed. > > FFmpeg internally expects wav channel order. > > > Can anyone please tell me how the input data format > > is arranged for AAC 7.1 channels ? > > In aac, different channel orderings are possible, > and usually it is not wav-order, but the aac > decoder should correctly order the channels. > (If it does not, this would be a bug, reports > are very welcome!) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From sumesh_pt at yahoo.com Sun May 5 07:19:47 2013 From: sumesh_pt at yahoo.com (Sumesh P.T.) Date: Sat, 4 May 2013 22:19:47 -0700 (PDT) Subject: [FFmpeg-user] produces blank dark frames In-Reply-To: <1367661943.85103.YahooMailNeo@web125103.mail.ne1.yahoo.com> References: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> <1367661943.85103.YahooMailNeo@web125103.mail.ne1.yahoo.com> Message-ID: <1367731187.27472.YahooMailNeo@web125103.mail.ne1.yahoo.com> Dear all, Since I didnt find any response to the previous question, so I am putting it again with some more details. Sorry if you have already seen it, but I cannot find a solution to this right now, and hoping somebody here might have ideas. I have created a movie 'input.avi' (from matlab, in a mac machine). Then I did 'ffmpeg -i input.avi output.avi'. My idea is to reduce the size of the file, however right now I am not giving any options since I want to see by default what happens so that I can do it optimally. However the file output.avi produces a movie of same length but with completely black frames in it ! I do not see anything like this reported in a google search. Has anybody encountered such things ? How would I resolve this ? Can anybody hint ? By the way I am using ffmpeg for the first time, so may be I am doing something very stupid ? Here are details about the file: --------------------------------------------------------------------------- ?ffmpeg -i input.avi output.avi FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers ? built on Feb 19 2013 16:28:16 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) ? configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64 ? libavutil ? ? 50.36. 0 / 50.36. 0 ? libavcore ? ? ?0.16. 1 / ?0.16. 1 ? libavcodec ? ?52.108. 0 / 52.108. 0 ? libavformat ? 52.93. 0 / 52.93. 0 ? libavdevice ? 52. 2. 3 / 52. 2. 3 ? libavfilter ? ?1.74. 0 / ?1.74. 0 ? libswscale ? ? 0.12. 0 / ?0.12. 0 Input #0, avi, from 'input.avi': ? Duration: 00:00:01.00, start: 0.000000, bitrate: 14161 kb/s ? ? Stream #0.0: Video: rawvideo, bgr24, 343x343, 5 tbr, 5 tbn, 5 tbc ? ? Metadata: ? ? ? title ? ? ? ? ? : test.avi [buffer @ 0x7ff0aac044c0] w:343 h:343 pixfmt:bgr24 [ffsink @ 0x7ff0aac04700] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x7ff0aac04920] w:343 h:343 fmt:bgr24 -> w:343 h:343 fmt:yuv420p flags:0x4 Output #0, avi, to 'output.avi': ? Metadata: ? ? ISFT ? ? ? ? ? ?: Lavf52.93.0 ? ? Stream #0.0: Video: mpeg4, yuv420p, 343x343, q=2-31, 200 kb/s, 5 tbn, 5 tbc ? ? Metadata: ? ? ? title ? ? ? ? ? : test.avi Stream mapping: ? Stream #0.0 -> #0.0 Press [q] to stop encoding frame= ? ?5 fps= ?0 q=4.5 Lsize= ? ? 582kB time=1.00 bitrate=4770.4kbits/s ? ? video:577kB audio:0kB global headers:0kB muxing overhead 0.985468% ------------------------------------------- ________________________________ From: Sumesh P.T. To: FFmpeg user questions Sent: Saturday, 4 May 2013, 11:05 Subject: Re: [FFmpeg-user] Invalid data found when processing input Dear Carl, Thank you for your message. It works with newer versions. However the output I get has blank frames. I did?ffmpeg -i input.avi ouput.avi. Since I didnt give any specifications it should have just converted by taking all the specifications of the input file. Doesn't it do that? Do I need to specify the codec also? How do I find the right one? Could you please help me with this? I tried attaching the input and output videos, but the email didn't go through. Thanks a lot, sumesh ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Friday, 3 May 2013, 9:55 Subject: Re: [FFmpeg-user] Invalid data found when processing input Sumesh P.T. yahoo.com> writes: > ffmpeg -i test-kindofrepul.avi ouput.avi > ffmpeg version 0.7.13 This is old, if the problem is also reproducible with current FFmpeg, please provide the sample. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From spieluhr at ewetel.net Sun May 5 11:05:03 2013 From: spieluhr at ewetel.net (Hartmut) Date: Sun, 05 May 2013 11:05:03 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> Message-ID: <518620BF.7070005@ewetel.net> Providing more info with ffmpeg and loglevel 99 1. Video which is playing in Firefox : hartmut at Jupiter:~> ffmpeg -v 9 -loglevel 99 -i Rohfilme/big_buck_bunny-gut.webm ffmpeg version 1.0.6 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 11 2013 18:03:32 with gcc 4.7 (SUSE Linux) configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [matroska,webm @ 0x12b6280] Format matroska,webm probed with size=2048 and score=100 st:0 removing common factor 1000000 from timebase st:1 removing common factor 1000000 from timebase [matroska,webm @ 0x12b6280] File position before avformat_find_stream_info() is 4462 [matroska,webm @ 0x12b6280] All info found [matroska,webm @ 0x12b6280] File position after avformat_find_stream_info() is 26942 Input #0, matroska,webm, from 'Rohfilme/big_buck_bunny-gut.webm': Duration: 00:01:17.64, start: 0.000000, bitrate: 1096 kb/s Stream #0:0, 1, 1/1000: Video: vp8, yuv420p, 720x405, 1/1000, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1, 1, 1/1000: Audio: vorbis, 44100 Hz, stereo, s16 (default) At least one output file must be specified [AVIOContext @ 0x12be9a0] Statistics: 32768 bytes read, 0 seeks 2. Video which is not playing in FF: hartmut at Jupiter:~> ffmpeg -v 9 -loglevel 99 -i Rohfilme/bunny.webm ffmpeg version 1.0.6 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 11 2013 18:03:32 with gcc 4.7 (SUSE Linux) configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [matroska,webm @ 0x1a92280] Format matroska,webm probed with size=2048 and score=100 st:0 removing common factor 1000000 from timebase st:1 removing common factor 1000000 from timebase [matroska,webm @ 0x1a92280] File position before avformat_find_stream_info() is 4776 [matroska,webm @ 0x1a92280] All info found [matroska,webm @ 0x1a92280] File position after avformat_find_stream_info() is 23439 Input #0, matroska,webm, from 'Rohfilme/bunny.webm': Duration: 00:01:18.23, start: 0.000000, bitrate: 1091 kb/s Stream #0:0, 1, 1/1000: Video: vp8, yuv420p, 720x405, 1/1000, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1, 2, 1/1000: Audio: vorbis, 44100 Hz, stereo, s16 (default) At least one output file must be specified [AVIOContext @ 0x1a9a940] Statistics: 32768 bytes read, 0 seeks From Mediainfo: 1.) Writing application (and library) 53.7.0 2.) Writing application (and library) 54.29.104 Both Videos have the same ! source Hartmut Am 25.04.2013 15:08, schrieb Tom Evans: > On Thu, Apr 25, 2013 at 1:55 PM, Hartmut wrote: >> "fwitw" ? Translate it please. > Fat fingers inserted a T in there - "fwiw" = for what its worth. > > Since you have a known good version of ffmpeg and a known "not working > in firefox" version of ffmpeg, it should be straightforward to git > bisect between the two versions and find a breaking change. Google has > some fine tutorials on how to git bisect. > > If you don't know the revision of your earlier version of ffmpeg, you > can do things by date: > > http://www.bramschoenmakers.nl/en/node/645 > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From sullafelix at ymail.com Sun May 5 14:35:36 2013 From: sullafelix at ymail.com (Mark Haney) Date: Sun, 5 May 2013 05:35:36 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update Message-ID: <1367757336.86825.androidMobile@web122302.mail.ne1.yahoo.com> This version of ffmpeg is the default Fedora 18 rpm. I did nothing but install it. I've never had trouble encoding before so I didn't, and don't, see a need to mess with the binary. Sent from Yahoo! Mail on Android From sullafelix at ymail.com Sun May 5 14:39:58 2013 From: sullafelix at ymail.com (Mark Haney) Date: Sun, 5 May 2013 05:39:58 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update Message-ID: <1367757598.36064.androidMobile@web122306.mail.ne1.yahoo.com> I'm still don't see how this helps track down my problem, unless the default Fedora compile options have changed between this version and the previous one. Sent from Yahoo! Mail on Android From herve.flores at free.fr Sun May 5 15:32:33 2013 From: herve.flores at free.fr (herve.flores at free.fr) Date: Sun, 05 May 2013 15:32:33 +0200 Subject: [FFmpeg-user] ffmpeg 1.0.5 and buffer underflow - Update In-Reply-To: <1367757598.36064.androidMobile@web122306.mail.ne1.yahoo.com> References: <1367757598.36064.androidMobile@web122306.mail.ne1.yahoo.com> Message-ID: <1367760753.51865f71607b9@imp.free.fr> Selon Mark Haney : > I'm still don't see how this helps track down my problem, unless the default > Fedora compile options have changed between this version and the previous > one. Hello, sorry but I don't keep mails from this thread, so my "answer" could be wrong... If you are the guy who complained about buffer underflows (I don't have the previous mails from this topic to verify), and if I well remember, you talked about "no arg buffer" but didn't provide any command line ('cause it was a "so simple command") but only some ininteresting outputs. if I mistake, sorry for the noise. if I well remembered, so buffer size is needed by the encoder to know how it has to compress the current image. But you didn't provide any way to help you with these non-informations... So take a look to help and add some buffer value first. bye PS: and sorry if I confused (I didn't read again the entire thread) herv? From cehoyos at ag.or.at Sun May 5 18:18:10 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 May 2013 16:18:10 +0000 (UTC) Subject: [FFmpeg-user] AAC conversion from 7.1 channel to 2 channel References: Message-ID: rohit a gmail.com> writes: > For AAC conversion from 5.1 channels to 2 channels, the > equation used in surround_to_stereo() in > libavodec/resample.c is > > * l = av_clip_int16(fl + (0.5 * rl) + (0.7 * c));* > * r = av_clip_int16(fr + (0.5 * rr) + (0.7 * c));* This does not exist in current FFmpeg. As said, channel downmix happens in libswresample. If you have any problems with it (if it does not work or if it does not work the way you expect) please report it here on the mailing list. A typical test could be the following: $ ffmpeg -i input.aac -ac 2 out.wav Carl Eugen From cehoyos at ag.or.at Sun May 5 18:22:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 May 2013 16:22:56 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg, webm and Firefox References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> Message-ID: Hartmut ewetel.net> writes: > 1. Video which is playing in Firefox : > > hartmut Jupiter:~> ffmpeg -v 9 -loglevel 99 -i > Rohfilme/big_buck_bunny-gut.webm It is not needed to "describe" the output file but to show the command line and console output that produced the failing file. > ffmpeg version 1.0.6 Copyright (c) 2000-2013 the FFmpeg developers This is too old, please test current git head and report back. Carl Eugen From rhkramer at gmail.com Sun May 5 19:25:49 2013 From: rhkramer at gmail.com (Randy Kramer) Date: Sun, 5 May 2013 13:25:49 -0400 Subject: [FFmpeg-user] VHS to DVD conversion service (also, audio cassette to CDs) Message-ID: <201305051325.49987.rhkramer@gmail.com> A friend of mine wants to get some personal (but not that personal!) VHS tapes converted to DVD, and some audio (I think she said cassettes) to CD. I just thought I'd ask here if anybody is interested in doing this (at a low price) or knows of a low priced service. Thanks! Randy Kramer From lou at lrcd.com Sun May 5 21:28:31 2013 From: lou at lrcd.com (Lou) Date: Sun, 05 May 2013 11:28:31 -0800 Subject: [FFmpeg-user] produces blank dark frames In-Reply-To: <1367731187.27472.YahooMailNeo@web125103.mail.ne1.yahoo.com> References: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> <1367661943.85103.YahooMailNeo@web125103.mail.ne1.yahoo.com> <1367731187.27472.YahooMailNeo@web125103.mail.ne1.yahoo.com> Message-ID: <1367782111.19106.140661226866017.65D9172E@webmail.messagingengine.com> On Sat, May 4, 2013, at 09:19 PM, Sumesh P.T. wrote: > However the file output.avi produces a movie of same length but with > completely black frames in it ! With what player(s)? > FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers Absolutely ancient and not supported. Please compile from Git head or use a current build: http://www.evermeet.cx/ffmpeg/snapshots/ From sumesh_pt at yahoo.com Sun May 5 23:11:11 2013 From: sumesh_pt at yahoo.com (Sumesh P.T.) Date: Sun, 5 May 2013 14:11:11 -0700 (PDT) Subject: [FFmpeg-user] produces blank dark frames In-Reply-To: <1367782111.19106.140661226866017.65D9172E@webmail.messagingengine.com> References: <1367569352.16495.YahooMailNeo@web125106.mail.ne1.yahoo.com> <1367661943.85103.YahooMailNeo@web125103.mail.ne1.yahoo.com> <1367731187.27472.YahooMailNeo@web125103.mail.ne1.yahoo.com> <1367782111.19106.140661226866017.65D9172E@webmail.messagingengine.com> Message-ID: <1367788271.54694.YahooMailNeo@web125103.mail.ne1.yahoo.com> ?Dear Lou, Thanks a lot for the reply. The frames are black and blank in real player. In VLC it plays fine. But I wanted to put them in a presentation where compatibility with real player is needed. I didnt know that its such an old version. After a struggle I have done this installation in my MAC. Wondering now what to do! ?Thanks, sumesh ________________________________ From: Lou To: ffmpeg-user at ffmpeg.org Sent: Sunday, 5 May 2013, 20:28 Subject: Re: [FFmpeg-user] produces blank dark frames On Sat, May 4, 2013, at 09:19 PM, Sumesh P.T. wrote: > However the file output.avi produces a movie of same length but with > completely black frames in it ! With what player(s)? > FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers Absolutely ancient and not supported. Please compile from Git head or use a current build: http://www.evermeet.cx/ffmpeg/snapshots/ _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From onemda at gmail.com Sun May 5 23:49:13 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sun, 5 May 2013 21:49:13 +0000 Subject: [FFmpeg-user] 422 to 444 Upsampling Testbed In-Reply-To: References: <1F5558FD-E9D5-4E98-BF68-E4994D80ED27@up4.com> <6AC0262B-C820-408E-84FC-2A9286E1F392@up4.com> Message-ID: On 5/4/13, Vincent Olivier wrote: > > On 2013-05-02, at 12:35 PM, Paul B Mahol wrote: >> Have you checked what actual values you pass to it? Because it looks >> like its segv inside swscaler. > > Yes, that was it. Stupid of me. > > Now, it segfaults at "av_image_alloc". If I change this call to "false" it > runs fine. It segfaults in it or after using it? Perhaps you again set something wrong as argument and never check function return value. > > This time, I did what helped me fix the first problem. My code is 100% > copied from the trunk's example. > > If you know anything. Please, please, please let me know! > > Also is the channel extraction filter ready for use? Can I pull it from the > repository? It is in git HEAD. > > Regards, > > Vincent > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From spieluhr at ewetel.net Mon May 6 00:33:37 2013 From: spieluhr at ewetel.net (Hartmut) Date: Mon, 06 May 2013 00:33:37 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> Message-ID: <5186DE41.9060909@ewetel.net> I have written my command-line 2 posts ago with hope that somebody might try it with a new version, because I am not a compiler-type. I get my ffmpeg-version from packman and if I get to know, that webm with Firefox works with a new version then I will mail this knowledge to Packman. Hartmut Am 05.05.2013 18:22, schrieb Carl Eugen Hoyos: > Hartmut ewetel.net> writes: > >> 1. Video which is playing in Firefox : >> >> hartmut Jupiter:~> ffmpeg -v 9 -loglevel 99 -i >> Rohfilme/big_buck_bunny-gut.webm > It is not needed to "describe" the output file > but to show the command line and console output > that produced the failing file. > >> ffmpeg version 1.0.6 Copyright (c) 2000-2013 the FFmpeg developers > This is too old, please test current git head and > report back. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From dashing.meng at gmail.com Mon May 6 02:48:09 2013 From: dashing.meng at gmail.com (littlebat) Date: Mon, 6 May 2013 08:48:09 +0800 Subject: [FFmpeg-user] Convert PAL dvd with menus to NTSC dvd with menus In-Reply-To: <20130504132819.GA763@verizon.net> References: <20130504132819.GA763@verizon.net> Message-ID: <20130506084809.9ffdf7ec.dashing.meng@gmail.com> On Sat, 04 May 2013 08:28:20 -0500 Russell Urquhart wrote: > > > Hi, > > I have a PAL dvd with menus that point to individual video fragments. > I have seen other methods that convert everything out to the > individual VOBS, but i was wanting to convert the entire dvd > structure, with menus intact, from PAL to NTSC, to a VIDEO_TS format, > suitable for burning to dvd, ideally. Is this possible with FFMEPG? > Can someone suggest or point to the command(S) necessary? > Except for creating VOBS, it seems need another tool to create DVD with menus, for example, DVDStyler: http://dvdstyler.org/en/ From shlee11 at tisquare.com Mon May 6 04:50:06 2013 From: shlee11 at tisquare.com (=?euc-kr?B?wMy788ij?=) Date: Mon, 06 May 2013 11:50:06 +0900 Subject: [FFmpeg-user] I have a problem for FFMPEG comile with libopus. I alreay install libopus. Message-ID: Hi I have a problem for FFMPEG comile with libopus. I alreay install libopus. I had confugre by follow option. /configure --enable-gpl --enable-version3 --enable-pthreads --enable-libopus ERROR: opus not found If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. 1. FFMPEG version [jihoon at localhost ffmpeg]$ ./version.sh N-52555-ge92862e 2. GCC version [jihoon at localhost lib]$ gcc --version gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3. libopus installed /usr/local/lib libopus.a libspeex.la libvo-amrwbenc.so.0.0.3 libbcg729.so liblzma.a libopus.la libspeex.so libx264.so libbcg729.so.0 liblzma.la libopus.so libspeex.so.1 libx264.so.128 libbcg729.so.0.0.0 liblzma.so libopus.so.0 libspeex.so.1.5.0 libyasm.a libeXosip2.a liblzma.so.5 libopus.so.0.3.0 Let me know what problem . best regards sangho lee. From nicolas.george at normalesup.org Mon May 6 09:19:53 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 6 May 2013 09:19:53 +0200 Subject: [FFmpeg-user] I have a problem for FFMPEG comile with libopus. I alreay install libopus. In-Reply-To: References: Message-ID: <20130506071953.GA28662@phare.normalesup.org> Le septidi 17 flor?al, an CCXXI, ??? a ?crit?: > I have a problem for FFMPEG comile with libopus. I alreay install libopus. > > I had confugre by follow option. > > /configure --enable-gpl --enable-version3 --enable-pthreads --enable-libopus > ERROR: opus not found Look the config.log file. Near the end of the file you will get the exact reason. The usual reason are either a missing -dev package (if using packages) or the library installed in directories the compiler does not search by default (if built from sources). Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From ravi_kanchan2004 at yahoo.com Mon May 6 09:31:10 2013 From: ravi_kanchan2004 at yahoo.com (Ravi Kanchan) Date: Mon, 6 May 2013 15:31:10 +0800 (SGT) Subject: [FFmpeg-user] FFMPEG 0.5.2 compile error Message-ID: <1367825470.28496.YahooMailNeo@web194004.mail.sg3.yahoo.com> Dear All, Please help me I am compiling FFMPEG 0.5.2 with x264-snapshot-20090101-2245. But still getting error ? x264 Compile : ./configure --enable-shared and aftter # make && make install this is working fine And ffmpeg 0.5.2 : ?--enable-shared --enable-gpl --enable-nonfree --disable-ffplay --disable-ffserver --enable-postproc --enable-swscale? --enable-libx264 this is getting me error /r/voip/ffmpeg-0.5.2/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open' Regard's Ravi Kanchan Sharma Sr. System Administrator Infinite Computer Solutions (I) Ltd. Bglr. Mo. 9997154666? From vidwork at flight.us Mon May 6 09:39:56 2013 From: vidwork at flight.us (Video Work) Date: Mon, 6 May 2013 03:39:56 -0400 (EDT) Subject: [FFmpeg-user] (no subject) In-Reply-To: <20130117105956.GA3460@phare.normalesup.org> References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> Message-ID: <767119414.405273.1367825996392.open-xchange@email.1and1.com> I seem to have compiled my ffmpeg with "--enable-libass"; yet, when I issue: ffmpeg -i myvid.avi -vf ass=mysubs.ass output.avi I get: No such filter: 'ass' Error opening filters! What gives? One thing I'm seeing is a warning in my ffmpeg config, about a mismatch. Could THAT be related to the problem? ffmpeg: ffmpeg version N-51346-gace0cfe Copyright (c) 2000-2013 the FFmpeg developers built on May 6 2013 02:56:53 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --enable-libass --extra-libs=/usr/local/lib/libass.a WARNING: library configuration mismatch avutil configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared avcodec configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared avformat configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared avdevice configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared avfilter configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared swscale configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared swresample configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared postproc configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared libavutil 52. 22.101 / 52. 22.101 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.105 / 3. 48.105 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, avi, from 'myvid.avi': Metadata: encoder : Lavf55.0.100 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 320 kb/s From cehoyos at ag.or.at Mon May 6 09:40:11 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 May 2013 07:40:11 +0000 (UTC) Subject: [FFmpeg-user] FFMPEG 0.5.2 compile error References: <1367825470.28496.YahooMailNeo@web194004.mail.sg3.yahoo.com> Message-ID: Ravi Kanchan yahoo.com> writes: > Please help me I am compiling FFMPEG 0.5.2 This is antique and not supported anymore. Please update to current git head. Carl Eugen From nicolas.george at normalesup.org Mon May 6 09:48:21 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 6 May 2013 09:48:21 +0200 Subject: [FFmpeg-user] (no subject) In-Reply-To: <767119414.405273.1367825996392.open-xchange@email.1and1.com> References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> <767119414.405273.1367825996392.open-xchange@email.1and1.com> Message-ID: <20130506074821.GA32219@phare.normalesup.org> Le septidi 17 flor?al, an CCXXI, Video Work a ?crit?: > WARNING: library configuration mismatch Your problem is here: your ffmpeg binary is not using the shared libraries you compiled at the same time, probably because the priorities of your shared libraries are not correct. You can check it using: ldd /path/to/ffmpeg This is not a ffmpeg problem but a Unix administration problem. In the future, please remember not to hijack threads; if you do not know what it means, look it up. For this thread, of course, the harm is already done. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From cehoyos at ag.or.at Mon May 6 09:45:11 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 May 2013 07:45:11 +0000 (UTC) Subject: [FFmpeg-user] (no subject) References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> <767119414.405273.1367825996392.open-xchange@email.1and1.com> Message-ID: Video Work flight.us> writes: > WARNING: library configuration mismatch This indicates an installation problem, I suggest you recompile after "make distclean", consider updating to current git head. Generally, please do not send mails without a subject to mailing lists and please do not just hit "reply" on an existing message, compose a new one. ("Thread hijacking is considered rude.") Carl Eugen From vidwork at flight.us Mon May 6 09:59:34 2013 From: vidwork at flight.us (Video Work) Date: Mon, 6 May 2013 03:59:34 -0400 (EDT) Subject: [FFmpeg-user] No such filter: ass Message-ID: <939677176.405447.1367827174164.open-xchange@email.1and1.com> > On May 6, 2013 at 3:45 AM Carl Eugen Hoyos wrote: > > > Video Work flight.us> writes: > > > WARNING: library configuration mismatch > > This indicates an installation problem, I suggest > you recompile after "make distclean", consider > updating to current git head. > > Generally, please do not send mails without a > subject to mailing lists and please do not just > hit "reply" on an existing message, compose a > new one. ("Thread hijacking is considered rude.") Apologies. A bit sleep-deprived. I do know about the "hijacking" phenomenon, and that it is to be avoided. I guess I've had only a vague notion about how/which email headers would formally create a threaded chain, and was "hoping" that wouldn't happen just now. I forgot to fill in the subject (intended it to be what this subject is) (at least I didn't top-post! -- got 1 out of 3, right? ;-) I'll try "distclean", and report success or failure. Thanks to both responders. Totally unintentional. My apologies. And I do know about the "hijacking" phenomenon, and that it is to be avoided. I guess I've had only a vague notion about how/which email headers would formally create a threaded chain.... I'm also a bit sleep deprived From h.reindl at thelounge.net Mon May 6 11:06:40 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 06 May 2013 11:06:40 +0200 Subject: [FFmpeg-user] FFMPEG 0.5.2 compile error In-Reply-To: <1367825470.28496.YahooMailNeo@web194004.mail.sg3.yahoo.com> References: <1367825470.28496.YahooMailNeo@web194004.mail.sg3.yahoo.com> Message-ID: <518772A0.6000407@thelounge.net> Am 06.05.2013 09:31, schrieb Ravi Kanchan: > Please help me I am compiling FFMPEG 0.5.2 with x264-snapshot-20090101-2245. But still getting error why in the world will one compile 4 years old software with tons of known bugs and enough of them security relevant? "x264-snapshot-20090101-2245" - WTF? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Mon May 6 11:24:24 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 May 2013 09:24:24 +0000 (UTC) Subject: [FFmpeg-user] No such filter: ass References: <939677176.405447.1367827174164.open-xchange@email.1and1.com> Message-ID: Video Work flight.us> writes: > I do know about the "hijacking" phenomenon, and > that it is to be avoided. Breaking threads is of course not any better. Carl Eugen From cehoyos at ag.or.at Mon May 6 11:23:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 May 2013 09:23:41 +0000 (UTC) Subject: [FFmpeg-user] (no subject) References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> <767119414.405273.1367825996392.open-xchange@email.1and1.com> <20130506074821.GA32219@phare.normalesup.org> Message-ID: Nicolas George normalesup.org> writes: > your ffmpeg binary is not using the shared libraries > you compiled at the same time What he did was: $ ./configure --enable-shared && make $ ./configure && make It needs a "make distclean" between the two. Carl Eugen From ravi_kanchan2004 at yahoo.com Mon May 6 11:30:53 2013 From: ravi_kanchan2004 at yahoo.com (Ravi Kanchan) Date: Mon, 6 May 2013 17:30:53 +0800 (SGT) Subject: [FFmpeg-user] FFMPEG 0.5.2 compile error In-Reply-To: <518772A0.6000407@thelounge.net> References: <1367825470.28496.YahooMailNeo@web194004.mail.sg3.yahoo.com> <518772A0.6000407@thelounge.net> Message-ID: <1367832653.19949.YahooMailNeo@web194004.mail.sg3.yahoo.com> ?We need this fro h323plus plugin support can you help me. Regard's Ravi Kanchan Sharma Sr. System Administrator Infinite Computer Solutions (I) Ltd. Bglr. Mo. 9997154666 ? ________________________________ From: Reindl Harald To: ffmpeg-user at ffmpeg.org Sent: Monday, 6 May 2013 2:36 PM Subject: Re: [FFmpeg-user] FFMPEG 0.5.2 compile error Am 06.05.2013 09:31, schrieb Ravi Kanchan: > Please help me I am compiling FFMPEG 0.5.2 with x264-snapshot-20090101-2245. But still getting error why in the world will one compile 4 years old software with tons of known bugs and enough of them security relevant? "x264-snapshot-20090101-2245" - WTF? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nicolas.george at normalesup.org Mon May 6 11:51:29 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 6 May 2013 11:51:29 +0200 Subject: [FFmpeg-user] (no subject) In-Reply-To: References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> <767119414.405273.1367825996392.open-xchange@email.1and1.com> <20130506074821.GA32219@phare.normalesup.org> Message-ID: <20130506095129.GA20051@phare.normalesup.org> Le septidi 17 flor?al, an CCXXI, Carl Eugen Hoyos a ?crit?: > What he did was: > $ ./configure --enable-shared && make > $ ./configure && make Yes, that seems to be right: I see now that there is no --enable-shared in ffmpeg's banner while it is there in the libraries'. > It needs a "make distclean" between the two. Indeed. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From vidwork at flight.us Mon May 6 12:54:06 2013 From: vidwork at flight.us (Video Work) Date: Mon, 6 May 2013 06:54:06 -0400 (EDT) Subject: [FFmpeg-user] (no subject) In-Reply-To: <20130506095129.GA20051@phare.normalesup.org> References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> <767119414.405273.1367825996392.open-xchange@email.1and1.com> <20130506074821.GA32219@phare.normalesup.org> <20130506095129.GA20051@phare.normalesup.org> Message-ID: <1576164454.407183.1367837646751.open-xchange@email.1and1.com> > On May 6, 2013 at 5:51 AM Nicolas George > wrote: > > > Le septidi 17 flor?al, an CCXXI, Carl Eugen Hoyos a ?crit : > > What he did was: > > $ ./configure --enable-shared && make > > $ ./configure && make > > Yes, that seems to be right: I see now that there is no --enable-shared in > ffmpeg's banner while it is there in the libraries'. > > > It needs a "make distclean" between the two. > > Indeed. > OK, I'm making progress. "make distclean" and recompile made ffmpeg acknowledge libass, but now I'm getting: Could not create a libass track when reading file 'mysubs.ass' [AVFilterGraph @ 0xad8d320] Error initializing filter 'ass' with args 'f=mysubs.ass' I don't see any documentation for the syntax in man pages, will search around Thanks for the quick help. I didn't "break a thread" ? i tried to UNhijack one, and fill in the missing subject, in compliance with the complaints. But majority insisted to continue the "hijacked", "no-subject" thread, so, I'm replying to that, to fall in line with the majority. From cehoyos at ag.or.at Mon May 6 13:00:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 May 2013 11:00:43 +0000 (UTC) Subject: [FFmpeg-user] No such filter: ass References: <5EAFCEE3-3E3C-464C-9D61-E16E32215E98@karlhuysmans.be> <20130117105956.GA3460@phare.normalesup.org> <767119414.405273.1367825996392.open-xchange@email.1and1.com> <20130506074821.GA32219@phare.normalesup.org> <20130506095129.GA20051@phare.normalesup.org> <1576164454.407183.1367837646751.open-xchange@email.1and1.com> Message-ID: Video Work flight.us> writes: > now I'm getting: > > Could not create a libass track when reading file 'mysubs.ass' > [AVFilterGraph 0xad8d320] Error initializing filter > 'ass' with args 'f=mysubs.ass' Please do never post one line of the console output, always post your command line together with the complete, uncut console output. > I don't see any documentation for the syntax in man pages, > will search around http://ffmpeg.org/ffmpeg-filters.html#ass > I didn't "break a thread" ? i tried to UNhijack one You failed since your mail does not contain a "In-Reply-To" header. Carl Eugen From georgesjeandenis at gmail.com Mon May 6 14:15:31 2013 From: georgesjeandenis at gmail.com (georges jean-denis) Date: Mon, 6 May 2013 08:15:31 -0400 Subject: [FFmpeg-user] How to install sharedhostffmpeg on a host running redhat linux while not being root? Message-ID: I'm on a shared host that is running on Red Hat 4.4.7-3. All these packages have successfully installed: - presetup.sh, autoconf.sh, automake.sh, libtool.sh, libiconv.sh, libpng.sh, libjpeg.sh, zlib.sh, libwmf.sh, freetype.sh, gettext.sh, gd.sh, ruby.sh, flvtool2.sh, lame.sh, codecs.sh, libogg.sh, libvorbis.sh, vorbis-tools.sh, libtheora.sh, amrnb.sh, amrwb.sh, liba52.sh, facc.sh, faad2.sh. That's exactly all the files just before ffmpeg itself! I know the error has to do with a library. However, I'm not familiar with libraries. The error message says: /usr/bin/ld: /home/xxxxx/lib/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /home/xxxxx/lib/libz.a: could not read symbols: Bad value BUT, when I look at my zlib log file(sharedhostffmpeg.1.0.2.log.15939), no errors show up. Does anyone know how to recompile with fPIC? From daniel at 13thlab.com Mon May 6 09:49:12 2013 From: daniel at 13thlab.com (Daniel Henell) Date: Mon, 6 May 2013 09:49:12 +0200 Subject: [FFmpeg-user] Streaming webcam and extra data from phone to computer Message-ID: <39275A98-CB57-4754-AB0D-5C0718DD7342@13thlab.com> Hi! I'm developing something similar to the AR.parrot iPhone app for those who seen it. What I want to do is to stream the camera from a iPhone including extra sensory data (totally 6 double values) to a computer over wifi. I'm writing both the sending and the receiving application so the format does not to follow any standards. So far I got a MJPEG encoded stream using a MKV container sending the camera frames from the phone to the computer. I'm now trying to figure out how the send the data. I've seen there are something called data streams (AVMEDIA_TYPE_DATA) but I haven't figured out how to use it and which containers that support them. Best, Daniel Henell From ricardo at americasnet.com Tue May 7 02:45:19 2013 From: ricardo at americasnet.com (Ricardo Kleemann) Date: Mon, 6 May 2013 17:45:19 -0700 Subject: [FFmpeg-user] ffmpeg with Red5 Message-ID: Hi, I'm trying to get ffmpeg working with Red5. I have a stream being captured by Red5 and made available via rtmp. ffmpeg works fine if I try to read an rtmp stream from Flash Media Server. However if I use the same command attempting to connect to Red5, I just get an error "Operation not permitted" without any additional clues in the debug. The Red5 log shows that the connection from ffmpeg was made and the play command was received, then nothing else. Here's the ffmpeg output: ffmpeg -loglevel debug -i "rtmp://server2/live/livestream" -y -c:v libx264 -b:v 512k -vprofile baseline -preset medium -x264opts level=41 -threads 4 -s 480x270 -map 0:v -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 -hls_list_size 6 -hls_wrap 18 -start_number 1 live.m3u8 ffmpeg version git-Sat Apr 20 21:31:19 2013 +0200-4824aea Copyright (c) 2000-2013 the FFmpeg developers built on Apr 20 2013 17:10:14 with gcc 4.2.4 (GCC) (Ubuntu 4.2.4-1ubuntu4) configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libx264 --enable-libfaac --enable-libmp3lame libavutil 52. 27.100 / 52. 27.100 libavcodec 55. 5.100 / 55. 5.100 libavformat 55. 3.100 / 55. 3.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 58.100 / 3. 58.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'rtmp://server2/live/livestream'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'. Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '512k'. Reading option '-vprofile' ... matched as AVOption 'vprofile' with argument 'baseline'. Reading option '-preset' ... matched as AVOption 'preset' with argument 'medium' . Reading option '-x264opts' ... matched as AVOption 'x264opts' with argument 'level=41'. Reading option '-threads' ... matched as AVOption 'threads' with argument '4'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '480x270'. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:v'. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:a:0'. Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libfaac'. Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '160000'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'. Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument '10' . Reading option '-hls_list_size' ... matched as AVOption 'hls_list_size' with argument '6'. Reading option '-hls_wrap' ... matched as AVOption 'hls_wrap' with argument '18' . Reading option '-start_number' ... matched as AVOption 'start_number' with argument '1'. Reading option 'live.m3u8' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file rtmp://server2/live/livestream. Successfully parsed a group of options. Opening an input file: rtmp://server2/live/livestream. [rtmp @ 0x1535240] Handshaking... [rtmp @ 0x1535240] Type answer 3 [rtmp @ 0x1535240] Server version 1.2.3.4 [rtmp @ 0x1535240] Proto = rtmp, path = /live/livestream, app = live, fname = livestream [rtmp @ 0x1535240] Server bandwidth = 10000000 [rtmp @ 0x1535240] Client bandwidth = 10000000 [rtmp @ 0x1535240] Creating stream... [rtmp @ 0x1535240] Sending play command for 'livestream' [rtmp @ 0x1535240] Server error: rtmp://server2/live/livestream: Operation not permitted From krueger at lesspain.de Tue May 7 08:28:36 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 7 May 2013 08:28:36 +0200 Subject: [FFmpeg-user] Building ffmpeg with vid.stab on Mac OS 10.8 anyone? In-Reply-To: References: <20130501141957.GC15622@sunshine.barsnick.net> Message-ID: On Fri, May 3, 2013 at 11:53 AM, Tom Evans wrote: > On Fri, May 3, 2013 at 9:23 AM, Robert Kr?ger wrote: > > On May 3, 2013 4:23 AM, "Timothy Gu" wrote: > >> The next time you had an configure error, try to look at config.log. > Most > >> time it will give you a error message. > >> > > Thanks for the hint but I did. It was the error message I posted. > > > > The error message you posted was the output from configure. What > Timothy was explaining was that in the file config.log it will contain > more details about why vidstab was not found, not just that it was not > found. > > The way configure works is that it will try to compile lots of small > programs to see if the expected API is there, and to work out what > libraries it needs to link to. If a library changes its API, the small > program will not compile, which is the same result as if the library > was not found. The output of trying to compile the small program is > stored in config.log, and seeing the output helps determine why the > library was not found. > > Cheers > > Thanks for trying to resolve a potential misunderstanding but I know what config.log is for and I do check it every time configure fails and the config.log contained the same text as was output by configure, i.e. no additional information regarding why it failed for that library in that particular case. That's what I was trying to say. Cheers, Robert From highgod0401 at gmail.com Tue May 7 09:49:28 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Tue, 7 May 2013 15:49:28 +0800 Subject: [FFmpeg-user] Hi, questions about rtsp Message-ID: Hi, I want to use rtsp to send and reveive media files, is there any code using rtsp in FFmpeg I can reference? Thanks Best regards From nichot20 at yahoo.com Tue May 7 11:04:53 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 07 May 2013 10:04:53 +0100 Subject: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' In-Reply-To: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> References: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> Message-ID: <5188C3B5.9080004@yahoo.com> On 05/04/13 10:17, Francois Visagie wrote: > Hi All, > > > > Just a heads-up for the odd DVD being authored in SD resolution still, > there's a Catch-22 with the '-target pal-dvd' option. > > > > When encoding without that option, the (grantedly intermediate) output > file's audio cannot be played by some DirectShow applications like Windows > Media Player (see ticket 1720 > ). > > > > The work-around is to apply '-target pal-dvd'. > > > > However, when encoding 704-wide Rec.601 source like DV (perfectly legal > resolution for DVD), this option causes distortion by forcing horizontal > resolution to 720 pixels (see ticket 2434 > ). Some background on Rec.601 > sources and 704-pixel horizontal resolution at > http://en.wikipedia.org/wiki/Pixel_aspect_ratio. > > > > The work-around in this case is _not_ to use '-target pal-dvd' but to > specify the DVD-compliant encode using individual options, e.g. > > '-codec:a ac3 -b:a 128000 -codec:v mpeg2video -g 15 -bf 2 -bufsize 1835000 > -b:v 6090000 -maxrate 9800000 -muxrate 10080000'. > It is easier to still specify -target pal-dvd then afterwards overide the size with -s 704x576. > > > In this case the output file's audio won't be playable by Windows Media > Player and similar and can't be demuxed by e.g. Avidemux for authoring. > Work-arounds are remuxing the output in another application, and/or using > another player like Media Player Classic, and/or demuxing for authoring with > ffmpeg itself or another application. > > > > Cheers, > > Francois > [...] -- Tim From brown at mrvideo.vidiot.com Tue May 7 11:22:53 2013 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Tue, 7 May 2013 04:22:53 -0500 Subject: [FFmpeg-user] Changing MKV files to MP4 files Message-ID: <20130507092253.GP10547@mrvideo.vidiot.com> I'm trying to rewrap MKV H.264 files, with AC3 or AAC audio, to MP4 files. Here is what I did, and the result: ########## BRN <13> ffmpeg -i videofile.mkv -vcodec copy -acodec copy videofile.mp4 FFmpeg version 0.6.2-rpmfusion, Copyright (c) 2000-2010 the FFmpeg developers built on Apr 12 2011 16:45:34 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --extra-version=rpmfusion --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 [matroska @ 0x10dc670]Unknown entry 0xF0 Last message repeated 1062 times [matroska @ 0x10dc670]Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (24000/1001) Input #0, matroska, from 'videofile.mkv': Metadata: doctype : matroska Duration: 00:43:11.20, start: 0.000000, bitrate: 384 kb/s Stream #0.0(eng): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s Output #0, mp4, to 'videofile.mp4': Metadata: encoder : Lavf52.64.2 Stream #0.0(eng): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 1k tbc Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, 384 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [mp4 @ 0x116a520]st:0 error, non monotone timestamps 83 >= 42 av_interleaved_write_frame(): Operation not permitted ########## I have no clue as to why that didn't work. If I remove the -vcodec, then the job will progress, but the video is recoded, which I do not want. Pointers are appreciated. Thanks. MNB -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email "Take your hand off your tool, Marco!" - Det. Beckett - Castle - 10/08/12 From cehoyos at ag.or.at Tue May 7 11:27:54 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 May 2013 09:27:54 +0000 (UTC) Subject: [FFmpeg-user] Changing MKV files to MP4 files References: <20130507092253.GP10547@mrvideo.vidiot.com> Message-ID: Mike Brown mrvideo.vidiot.com> writes: > FFmpeg version 0.6.2 This is antique (and particularly buggy), please update to current git head. Carl Eugen From Gergely.Lukacsy at streamnet.hu Tue May 7 12:57:21 2013 From: Gergely.Lukacsy at streamnet.hu (=?iso-8859-2?Q?Luk=E1csy_Gergely?=) Date: Tue, 7 May 2013 10:57:21 +0000 Subject: [FFmpeg-user] ffmpeg pip issues Message-ID: <97B3FD97F9EB0B41965589D234B3236AA0D246@mail.streamnet.hu> Hi! I'm recently trying to generate picture-in-picture videos with ffmpeg, and I've run accross with some issues when handling videos with different lengths. The normal situation with equal lengths works well with the following command: ffmpeg -y -i main.mp4 -i pip.mp4 -r 25 -t 20 -filter_complex "[1]scale=iw/5:ih/5 [pip]; [0][pip] overlay=main_w-overlay_w-10:10" -b:v 600k -c:v libx264 -f mp4 out.mp4 However, different lengths causing some problems: Case 1: Main video is LONGER: The main video has no problems and goes all the way to the end without errors, but the overlay freezes when reaching the last frame. I've added the 'repeatlast=0' option to the overlay filter hoping that it'll solve the problem: '[0][pip] overlay=main_w-overlay_w-10:10:repeatlast=0', but all I've got is this error message: [overlay @ 00000000021c7680] Option 'repeatlast' not found [AVFilterGraph @ 000000000228e760] Error initializing filter 'overlay' with args 'main_w-overlay_w-10:10:repeatlast=0' Error configuring filters. What's wrong with the syntax? Is it possible to make the PIP image dissappear when it has reached the end? Case 2: Main video is SHORTER: Both main and overlay stops at the end of the main video. Since I need full length, I've put the time ('-t') option in the command with the length of the longest file (altough it has no effect). Surprisingly, when I've mixed the audiochannels with 'amix' filter, ffmpeg generated a full length video, but the picture freezes at the critical point. Sound can be heared full length of the recording. The main video is usually containing still images, (like text, pictures, diagrams, etc.) so this issue is not a big problem in this case. ffmpeg -y -i main.mp4 -i pip_long.mp4 -map 1:1 -r 25 -t 20 -filter_complex "[1]scale=iw/5:ih/5 [pip];[1][0]amix=inputs=2:duration=longest;[0][pip]overlay=main_w-overlay_w-10:10:repeatlast=0" -b:v 600k -c:v libx264 -f mp4 out.mp4 It gives repeatadely this warning after reaching the edge: Buffer queue overflow, dropping. 703kB time=00:00:19.80 bitrate= 290.8kbits/s [Parsed_overlay_2 @ 0000000002098340] Buffer queue overflow, dropping. Last message repeated ### times So, is it possible to make the overlay play after the main layer is frozen? Is there any workaround for this, like, filling the shorter video with the last frame, before the overlay filter? I'm using zeranoes' ffmpeg build version N-49610-gc2dd5a1 on Win7x64. Thanks in advance! Regards: G. From cehoyos at ag.or.at Tue May 7 13:05:13 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 May 2013 11:05:13 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg pip issues References: <97B3FD97F9EB0B41965589D234B3236AA0D246@mail.streamnet.hu> Message-ID: Luk?csy Gergely streamnet.hu> writes: > I've added the 'repeatlast=0' option to the overlay > filter hoping that it'll solve the problem: '[0][pip] > overlay=main_w-overlay_w-10:10:repeatlast=0', but all > I've got is this error message: Command line and complete, uncut console output missing / works fine here. Carl Eugen From cehoyos at ag.or.at Tue May 7 13:09:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 May 2013 11:09:41 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg pip issues References: <97B3FD97F9EB0B41965589D234B3236AA0D246@mail.streamnet.hu> Message-ID: Luk?csy Gergely streamnet.hu> writes: > I've added the 'repeatlast=0' option to the overlay filter > I'm using zeranoes' ffmpeg build version > N-49610-gc2dd5a1 on Win7x64. The repeatlast option was added in April, you are using a version from February. Carl Eugen From brown at mrvideo.vidiot.com Tue May 7 13:11:57 2013 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Tue, 7 May 2013 06:11:57 -0500 Subject: [FFmpeg-user] Changing MKV files to MP4 files In-Reply-To: References: <20130507092253.GP10547@mrvideo.vidiot.com> Message-ID: <20130507111157.GQ10547@mrvideo.vidiot.com> On Tue, May 07, 2013 at 09:27:54AM +0000, Carl Eugen Hoyos wrote: > > FFmpeg version 0.6.2 > > This is antique (and particularly buggy), please > update to current git head. For now I got the latest static compiled x86 32 bit version and ran it using the same options and it worked. Plus, the output worked on my Blu-ray player via the NAS box DLNA server. MB -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email "Take your hand off your tool, Marco!" - Det. Beckett - Castle - 10/08/12 From Gergely.Lukacsy at streamnet.hu Tue May 7 13:14:21 2013 From: Gergely.Lukacsy at streamnet.hu (=?utf-8?B?THVrw6Fjc3kgR2VyZ2VseQ==?=) Date: Tue, 7 May 2013 11:14:21 +0000 Subject: [FFmpeg-user] ffmpeg pip issues In-Reply-To: References: <97B3FD97F9EB0B41965589D234B3236AA0D246@mail.streamnet.hu> Message-ID: <97B3FD97F9EB0B41965589D234B3236AA0D267@mail.streamnet.hu> > The repeatlast option was added in April, you are using a version from February. > > Carl Eugen Hmm, I'll try it with a newer version, thanks for the hint! Anyways, here's the full command line output regarding case 2: C:\pip>ffmpeg -y -i pip3.mp4 -i pip2.mp4 -r 25 -t 20 -filter_complex "[1]scale=288:162 [pip];[0][1] amix=inputs=2:durati on=longest;[0][pip] overlay=main_w-overlay_w-10:10" -b:v 600k -c:v libx264 -f mp4 out00.mp4 ffmpeg version N-49610-gc2dd5a1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 13:26:02 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable- libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxv id --enable-zlib libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pip3.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf54.29.104 Duration: 00:00:10.93, start: 0.000000, bitrate: 872 kb/s Stream #0:0(und): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p, 688x320 [SAR 1:1 DAR 43:20], 720 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 108 kb/s Metadata: handler_name : SoundHandler Stream #0:2(ger): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s Metadata: handler_name : SoundHandler Stream #0:3(ger): Subtitle: mov_text (tx3g / 0x67337874) Metadata: handler_name : SubtitleHandler Stream #0:4(eng): Subtitle: mov_text (tx3g / 0x67337874) Metadata: handler_name : SubtitleHandler Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'pip2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.29.104 Duration: 00:00:20.02, start: 0.000000, bitrate: 7604 kb/s Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 7447 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc Metadata: handler_name : VideoHandler Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 157 kb/s Metadata: handler_name : SoundHandler [libx264 @ 0000000004c402e0] using SAR=1/1 [libx264 @ 0000000004c402e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0000000004c402e0] profile High, level 3.0 [libx264 @ 0000000004c402e0] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.vid eolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookah ead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_ adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahe ad=40 rc=abr mbtree=1 bitrate=600 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'out00.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf54.61.104 Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s Stream #0:1: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 688x320 [SAR 1:1 DAR 43:20], q=-1--1, 600 kb/s, 12800 tb n, 25 tbc Stream mapping: Stream #0:0 (mpeg4) -> overlay:main Stream #0:1 (aac) -> amix:input0 Stream #1:0 (h264) -> scale Stream #1:1 (aac) -> amix:input1 amix -> Stream #0:0 (libvo_aacenc) overlay -> Stream #0:1 (libx264) Press [q] to stop, [?] for help Buffer queue overflow, dropping. 703kB time=00:00:10.71 bitrate= 537.4kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 16 times Buffer queue overflow, dropping. 703kB time=00:00:12.08 bitrate= 476.6kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 32 times Buffer queue overflow, dropping. 703kB time=00:00:13.44 bitrate= 428.3kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 36 times Buffer queue overflow, dropping. 703kB time=00:00:14.96 bitrate= 384.9kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 37 times Buffer queue overflow, dropping. 703kB time=00:00:16.54 bitrate= 348.2kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 30 times Buffer queue overflow, dropping. 703kB time=00:00:17.80 bitrate= 323.6kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 26 times Buffer queue overflow, dropping. 703kB time=00:00:18.93 bitrate= 304.2kbits/s [Parsed_overlay_2 @ 0000000000318340] Buffer queue overflow, dropping. Last message repeated 26 times frame= 250 fps= 18 q=-1.0 Lsize= 1035kB time=00:00:20.02 bitrate= 423.7kbits/s video:712kB audio:313kB subtitle:0 global headers:0kB muxing overhead 1.027825% [libx264 @ 0000000004c402e0] frame I:2 Avg QP:23.11 size: 25930 [libx264 @ 0000000004c402e0] frame P:87 Avg QP:23.51 size: 6521 [libx264 @ 0000000004c402e0] frame B:161 Avg QP:27.84 size: 677 [libx264 @ 0000000004c402e0] consecutive B-frames: 2.8% 4.0% 90.0% 3.2% [libx264 @ 0000000004c402e0] mb I I16..4: 22.3% 60.3% 17.4% [libx264 @ 0000000004c402e0] mb P I16..4: 1.4% 2.4% 0.4% P16..4: 37.1% 16.3% 12.0% 0.0% 0.0% skip:30.4% [libx264 @ 0000000004c402e0] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 32.2% 1.7% 0.5% direct: 1.2% skip:64.2% L0:35 .4% L1:58.0% BI: 6.6% [libx264 @ 0000000004c402e0] final ratefactor: 23.01 [libx264 @ 0000000004c402e0] 8x8 transform intra:58.0% inter:66.8% [libx264 @ 0000000004c402e0] coded y,uvDC,uvAC intra: 50.4% 64.4% 37.5% inter: 11.6% 13.3% 2.9% [libx264 @ 0000000004c402e0] i16 v,h,dc,p: 33% 36% 18% 13% [libx264 @ 0000000004c402e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 26% 33% 3% 3% 3% 4% 3% 4% [libx264 @ 0000000004c402e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 11% 5% 7% 7% 9% 5% 7% [libx264 @ 0000000004c402e0] i8c dc,h,v,p: 37% 34% 23% 6% [libx264 @ 0000000004c402e0] Weighted P-Frames: Y:2.3% UV:1.1% [libx264 @ 0000000004c402e0] ref P L0: 60.6% 16.2% 17.1% 6.0% 0.1% [libx264 @ 0000000004c402e0] ref B L0: 75.8% 21.1% 3.1% [libx264 @ 0000000004c402e0] ref B L1: 85.0% 15.0% [libx264 @ 0000000004c402e0] kb/s:582.59 From andrey.krieger.utkin at gmail.com Tue May 7 14:20:10 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Tue, 7 May 2013 15:20:10 +0300 Subject: [FFmpeg-user] ffmpeg with Red5 In-Reply-To: References: Message-ID: Sniffing connection, and looking at the packets dump with e.g. wireshark should help to investigate the issue. From remicek at gmail.com Tue May 7 14:41:26 2013 From: remicek at gmail.com (remicek) Date: Tue, 7 May 2013 05:41:26 -0700 (PDT) Subject: [FFmpeg-user] C920 h264 ffmpeg empty output file Message-ID: <1367930486543-4658914.post@n4.nabble.com> Hi! I am trying to set up rtp stream from my camera C920 with ardware-based coder to h264. The frist step was to save encoded h264 directly from camera: setting camera for right format: v4l2-ctl -d /dev/video1 --set-fmt-video=width=800,height=448,pixelformat=1 v4l2-ctl -d /dev/video1 --set-parm=30 launching ffmpeg ./ffmpeg -f v4l2 -input_format h264 -i /dev/video1 -c:v copy output.mkv Log Output file contains no frames (its empty) frame= 0 fps=0.0 q=-1.0 Lsize= 1kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/C920-h264-ffmpeg-empty-output-file-tp4658914.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From Gergely.Lukacsy at streamnet.hu Tue May 7 14:53:30 2013 From: Gergely.Lukacsy at streamnet.hu (=?utf-8?B?THVrw6Fjc3kgR2VyZ2VseQ==?=) Date: Tue, 7 May 2013 12:53:30 +0000 Subject: [FFmpeg-user] ffmpeg pip issues Message-ID: <97B3FD97F9EB0B41965589D234B3236AA0D29C@mail.streamnet.hu> Okay, tested it with the newest build, and works like a charm! Regarding case # 2, I managed to come out with a workable solution, and I would share my results with you. Here's the command (it works with short main / long overlay videos and vice versa): ffmpeg -y -i pip3.mp4 -i pip2.mp4 -r 25 -filter_complex "nullsrc=size=688x320:duration=20, lutrgb=r=0:g=0:b=0 [bg];[0]scale=688x320 [main]; [1]scale=288:162 [pip]; [0][1] amix=inputs=2:duration=longest;[bg][main] overlay=repeatlast=0 [base];[base][pip] overlay=main_w-overlay_w-10:10:repeatlast=0" -b:v 600k -c:v libx264 -f mp4 out01.mp4 First, the program generates a blank "canvas". (nullsrc=size=688x320:duration=20, lutrgb=r=0:g=0:b=0) Size attribute is nessesary, because the default value is realy small. Duration is also an important part, if you forget it, and your main record is shorter, ffmpeg will sit in an endless loop for some reason. Next, I rescale the size of the main video, so it will not appear to be trimmed down. I have no idea why, but when I miss this step, the video resolution will be same as the second input. It's especially problematic when you have a large main, and a smaller overlay resolutions. (Does anybody have any idea about this?) Then, I apply the main layer to the black picture (which is as long as the overlay), and in the next step, apply the overlay to the output of the previous step. regards, Gergely Luk?csy From cehoyos at ag.or.at Tue May 7 15:18:13 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 May 2013 13:18:13 +0000 (UTC) Subject: [FFmpeg-user] C920 h264 ffmpeg empty output file References: <1367930486543-4658914.post@n4.nabble.com> Message-ID: remicek gmail.com> writes: > ./ffmpeg -f v4l2 -input_format h264 > -i /dev/video1 -c:v copy output.mkv > > Log Please do not use external resources, always post the complete, uncut console output here on the mailing list. Does playing with ffplay and transcoding to another codec with ffmpeg work? Carl Eugen From david at davidfavor.com Tue May 7 16:09:08 2013 From: david at davidfavor.com (David Favor) Date: Tue, 07 May 2013 09:09:08 -0500 Subject: [FFmpeg-user] ffmpeg latest git -profile:v ignored, always gives baseline Message-ID: <51890B04.9080902@davidfavor.com> Someone let me know how to specify profiles in latest ffmpeg. net1# x264 --version x264 0.129.2245.2013-05-06 (libswscale 2.2.100) (libavformat 55.4.101) built on May 6 2013, gcc: 4.7.3 configuration: --bit-depth=8 --chroma-format=all x264 license: GPL version 2 or later libswscale/libavformat license: nonfree and unredistributable WARNING: This binary is unredistributable! _______ Setting -profile:v seems to have no effect. All the following produce "profile Constrained Baseline, level 4.2" output profiles. net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts -c:a libfaac -c:v libx264 -profile:v high -preset:v ultrafast -crf 20 -t 10 -y foo.mov 2>&1 | grep profile [libx264 @ 0x7924c0] profile Constrained Baseline, level 4.2 net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts -c:a libfaac -c:v libx264 -profile:v high -preset:v ultrafast -crf 20 -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 the FFmpeg developers [libx264 @ 0x14574c0] profile Constrained Baseline, level 4.2 net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts -c:a libfaac -c:v libx264 -profile:v high444 -preset:v ultrafast -crf 20 -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 the FFmpeg developers [libx264 @ 0x1b254c0] profile Constrained Baseline, level 4.2 net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts -c:a libfaac -c:v libx264 -profile:v main -preset:v ultrafast -crf 20 -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 the FFmpeg developers [libx264 @ 0x18864c0] profile Constrained Baseline, level 4.2 -level works... -profile:v still has no effect. net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts -c:a libfaac -c:v libx264 -profile:v main -level 3.1 -preset:v ultrafast -crf 20 -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 the FFmpeg developers [libx264 @ 0x1e5c3e0] profile Constrained Baseline, level 3.1 Passing a profile via -x264opts produces an error... net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts -c:a libfaac -c:v libx264 -preset:v ultrafast -crf 20 -x264opts profile=high -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 the FFmpeg developers [libx264 @ 0xa6e280] bad option 'profile': 'high' -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From remicek at gmail.com Tue May 7 16:34:16 2013 From: remicek at gmail.com (remicek) Date: Tue, 7 May 2013 07:34:16 -0700 (PDT) Subject: [FFmpeg-user] C920 h264 ffmpeg empty output file In-Reply-To: References: <1367930486543-4658914.post@n4.nabble.com> Message-ID: <1367937256142-4658918.post@n4.nabble.com> Well i guess it works, some frames are lost but it works. *log1* arkwaw at ubuntu:~/obraz/ffmpeg$ ./ffmpeg -f v4l2 -input_format h264 -i /dev/video1 -vcodec mjpeg a.mkv ffmpeg version N-52847-g9276467 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:28:41 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Input #0, video4linux2,v4l2, from '/dev/video1': Duration: N/A, start: 709.435112, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p, 800x448 [SAR 1:1 DAR 25:14], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc Output #0, matroska, to 'a.mkv': Metadata: encoder : Lavf55.4.101 Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p, 800x448 [SAR 1:1 DAR 25:14], q=2-31, 200 kb/s, 1k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help frame= 6 fps=0.0 q=0.0 size= 153kB time=00:00:00.33 bitrate=3756.9kbits/sframe= 13 fps= 13 q=0.0 size= 429kB time=00:00:00.73 bitrate=4790.4kbits/sframe= 20 fps= 13 q=0.0 size= 788kB time=00:00:01.40 bitrate=4608.5kbits/sframe= 28 fps= 14 q=0.0 size= 1228kB time=00:00:01.86 bitrate=5392.1kbits/sframe= 35 fps= 14 q=0.0 size= 1523kB time=00:00:02.26 bitrate=5505.7kbits/sframe= 43 fps= 14 q=0.0 size= 1778kB time=00:00:02.76 bitrate=5265.4kbits/sframe= 51 fps= 14 q=0.0 size= 1985kB time=00:00:03.56 bitrate=4559.7kbits/sframe= 58 fps= 14 q=0.0 size= 2137kB time=00:00:03.90 bitrate=4487.9kbits/sframe= 66 fps= 15 q=0.0 size= 2281kB time=00:00:04.36 bitrate=4279.0kbits/sframe= 73 fps= 14 q=0.0 size= 2396kB time=00:00:04.80 bitrate=4088.6kbits/sframe= 81 fps= 15 q=0.0 size= 2515kB time=00:00:05.26 bitrate=3911.2kbits/sframe= 88 fps= 15 q=0.0 size= 2612kB time=00:00:05.93 bitrate=3607.0kbits/sframe= 96 fps= 15 q=0.0 size= 2718kB time=00:00:06.40 bitrate=3478.3kbits/sframe= 104 fps= 15 q=0.0 size= 2823kB time=00:00:06.86 bitrate=3367.9kbits/sframe= 111 fps= 15 q=0.0 size= 2914kB time=00:00:07.30 bitrate=3269.8kbits/sframe= 113 fps= 15 q=0.0 Lsize= 2955kB time=00:00:07.46 bitrate=3241.9kbits/s dup=0 drop=2 video:2950kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.165280% * Log 2* arkwaw at ubuntu:~/obraz/ffmpeg$ ffplay a.mkv -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/C920-h264-ffmpeg-empty-output-file-tp4658914p4658918.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hombibi at yahoo.com Tue May 7 17:06:41 2013 From: hombibi at yahoo.com (Hombibi) Date: Tue, 7 May 2013 08:06:41 -0700 (PDT) Subject: [FFmpeg-user] HTML5 live streaming Message-ID: <1367939201.36883.YahooMailNeo@web125904.mail.ne1.yahoo.com> Ricardo, this complete working example may help: The html5 page can be served by apache, lighttpd and probably more. It needs the file extensions set, but lighttpd and apache have this by default. The required HTML 5 page ("html5.html") in its simplest form is : ??? Live Cam ???
??????? ???
Just put it in the root folder of your website (/var/www/ in my case) and make a subsequent subdirectory (live), writeable by ffmpeg,? where the hls segments and index file can be written) The command for starting ffmpeg, live streaming a webcam in the format that can be displayed by an ipad 1below is essentially derived from the x264 encoding guide, the hls settings from extensive googeling. ffmpeg -v verbose -f video4linux2 -vcodec mjpeg -s 640x480 -r 10 -i /dev/video0 -c:v libx264 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_wrap 6 /var/www/live/mystream.m3u8 Point your ios device to http://YourIPAdress/html5.html after 30 seconds for the first two .ts files and the index file to be created. Cheers From cehoyos at ag.or.at Tue May 7 17:38:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 May 2013 15:38:29 +0000 (UTC) Subject: [FFmpeg-user] C920 h264 ffmpeg empty output file References: <1367930486543-4658914.post@n4.nabble.com> <1367937256142-4658918.post@n4.nabble.com> Message-ID: remicek gmail.com> writes: > Well i guess it works, some frames are lost > but it works. Things you can test (I unfortunately cannot): -copyts -copytb other containers Carl Eugen From david at davidfavor.com Tue May 7 17:58:59 2013 From: david at davidfavor.com (David Favor) Date: Tue, 07 May 2013 10:58:59 -0500 Subject: [FFmpeg-user] ffmpeg latest git -profile:v ignored, always gives baseline In-Reply-To: <51890B04.9080902@davidfavor.com> References: <51890B04.9080902@davidfavor.com> Message-ID: <518924C3.1040208@davidfavor.com> David Favor wrote: > Someone let me know how to specify profiles in latest ffmpeg. > > net1# x264 --version > x264 0.129.2245.2013-05-06 > (libswscale 2.2.100) > (libavformat 55.4.101) > built on May 6 2013, gcc: 4.7.3 > configuration: --bit-depth=8 --chroma-format=all > x264 license: GPL version 2 or later > libswscale/libavformat license: nonfree and unredistributable > WARNING: This binary is unredistributable! > _______ > > Setting -profile:v seems to have no effect. All the following produce > "profile Constrained Baseline, level 4.2" output profiles. > > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -profile:v high -preset:v ultrafast -crf 20 -t > 10 -y foo.mov 2>&1 | grep profile > [libx264 @ 0x7924c0] profile Constrained Baseline, level 4.2 > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -profile:v high -preset:v ultrafast -crf 20 -t > 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' > ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 > the FFmpeg developers > [libx264 @ 0x14574c0] profile Constrained Baseline, level 4.2 > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -profile:v high444 -preset:v ultrafast -crf 20 > -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' > ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 > the FFmpeg developers > [libx264 @ 0x1b254c0] profile Constrained Baseline, level 4.2 > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -profile:v main -preset:v ultrafast -crf 20 -t > 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' > ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 > the FFmpeg developers > [libx264 @ 0x18864c0] profile Constrained Baseline, level 4.2 > > -level works... -profile:v still has no effect. > > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -profile:v main -level 3.1 -preset:v ultrafast > -crf 20 -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' > ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 > the FFmpeg developers > [libx264 @ 0x1e5c3e0] profile Constrained Baseline, level 3.1 > > Passing a profile via -x264opts produces an error... > > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -preset:v ultrafast -crf 20 -x264opts > profile=high -t 10 -y foo.mov 2>&1 | egrep 'ffmpeg|profile' > ffmpeg version 1.2.0 (2013-05-07-52854-gd3f7b98) Copyright (c) 2000-2013 > the FFmpeg developers > [libx264 @ 0xa6e280] bad option 'profile': 'high' > Ah... reversing the order of profile + preset seems to work... Might be good to catch + report this or auto-reverse them. -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From guillermogfer at icloud.com Tue May 7 15:33:58 2013 From: guillermogfer at icloud.com (=?utf-8?B?R3VpbGxlcm1vIEdvbnrDoWxleiBGZXJuw6FuZGV6?=) Date: Tue, 07 May 2013 13:33:58 +0000 (GMT) Subject: [FFmpeg-user] ffmpeg with Red5 In-Reply-To: Message-ID: Hello, I've had similar issues with this and I would try 2 things: El 07 may 2013 a las 02:45, Ricardo Kleemann escribi?: Here's the ffmpeg output: ffmpeg -loglevel debug -i "rtmp://server2/live/livestream" -y -c:v libx264 -b:v 512k -vprofile baseline -preset medium -x264opts level=41 -threads 4 -s 480x270 -map 0:v -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 -hls_list_size 6 -hls_wrap 18 -start_number 1 live.m3u8 ? change your input to??"rtmp://server2/live/livestream live=1" ffmpeg version git-Sat Apr 20 21:31:19 2013 +0200-4824aea Copyright (c) 2000-2013 the FFmpeg developers built on Apr 20 2013 17:10:14 with gcc 4.2.4 (GCC) (Ubuntu 4.2.4-1ubuntu4) configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libx264 --enable-libfaac --enable-libmp3lame ? ?build again with?--enable-librtmp flag Regards. From russell.jing at gmail.com Tue May 7 04:06:35 2013 From: russell.jing at gmail.com (Lei Jing) Date: Tue, 7 May 2013 12:06:35 +1000 Subject: [FFmpeg-user] No video for some part of the segmentation from FFmpeg Message-ID: I am segmenting a 20 minutes long video to hundreds of small clips . The command is like "ffmpeg\\ffmpeg" -i nx_1.avi -ss 399.37 -t 1 ka1_2.avi". (The ffmpeg is in a subfolder.) It works very well for most of my video files. The problem is one file, for that file, some segmented clip only has audio, the relevant video obviously not was written into the clip. (Please see the attached log file). But the segmented clips in other part the video are good. Both audio and video are ok. I tried to segment a longer clip to encircle the problematic part of the original video and replay it. The clip plays fine until the problematic part, it froze at the beginning of the problematic part. How can I solve this problem? -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-20130507-102933.log Type: application/octet-stream Size: 9638 bytes Desc: not available URL: From mike at redtux.org.uk Tue May 7 19:49:07 2013 From: mike at redtux.org.uk (Mike Martin) Date: Tue, 7 May 2013 18:49:07 +0100 Subject: [FFmpeg-user] Resizing dvb streams keeping Aspect ratio Message-ID: Hi I do lot of transcoding of DVB captures, currently to mp4 (h264), in two stages. One to an intermediate files so I can cut the adverts and then a final mp4 file As people may be aware, at least in the UK, these TS streams can contain several resolutions/Aspect Ratios, typically the program, adverts and station blurbs can each be different. However at least with mp4 the diffent resolutions seem to get transcoded to one resoltion Command line ffmpeg -async 24 -v 35 -i "/home/mike/videos/CharmedREC_2013_05_07_13_54_351.mpeg" -c:v libx264 -preset ultrafast -crf 18 -g 25 -c:a copy -movflags faststart -threads 2 -vf scale="352:trunc(ow/a/2)*2",fps="fps= 20" -y "/storage/burn/CharmedREC_2013_05_07_13_54_351_enf.mp4" ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 4 2012 08:14:17 with gcc 4.7.2 (GCC) 20121109 (Red Hat 4.7.2-8) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 0xc17780] PES packet size mismatch [mpeg2video @ 0xc2cea0] mpeg_decode_postinit() failure Last message repeated 7 times [mpegts @ 0xc17780] max_analyze_duration 5000000 reached at 5000000 [mpegts @ 0xc17780] PES packet size mismatch Input #0, mpegts, from '/home/mike/videos/CharmedREC_2013_05_07_13_54_351.mpeg': Duration: 01:06:59.85, start: 52384.162233, bitrate: 2260 kb/s Stream #0:0[0x305]: Video: mpeg2video (Main), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 15000 kb/s, 26.17 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x306]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s [libx264 @ 0xc2f2a0] using SAR=62/33 [libx264 @ 0xc2f2a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0xc2f2a0] profile Constrained Baseline, level 2.1 [libx264 @ 0xc2f2a0] 264 - core 128 r2223 f6a8615 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=2 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 Output #0, mp4, to '/storage/burn/CharmedREC_2013_05_07_13_54_351_enf.mp4': Metadata: encoder : Lavf54.29.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 352x372 [SAR 62:33 DAR 16:9], q=-1--1, 20 tbn, 20 tbc Stream #0:1: Audio: mp2 (i[0][0][0] / 0x0069), 48000 Hz, stereo, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Stream #0:1 -> #0:1 (copy) Any ideas on this From cehoyos at ag.or.at Tue May 7 20:08:07 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 May 2013 18:08:07 +0000 (UTC) Subject: [FFmpeg-user] No video for some part of the segmentation from FFmpeg References: Message-ID: Lei Jing gmail.com> writes: > "ffmpeg\\ffmpeg" -i nx_1.avi -ss 399.37 -t 1 ka1_2.avi". Please provide the input sample. Carl Eugen From horsley1953 at gmail.com Tue May 7 20:27:43 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Tue, 7 May 2013 14:27:43 -0400 Subject: [FFmpeg-user] What is my problem with concat? Message-ID: <20130507142743.7ae48c4c@zooty> I've been working out how to do frame accurate (or near enough) editing out of commercials from .mpg files I download from my TiVo (which have no doubt gone through all kinds of nonsense with cable companies inserting commercials and wot not). I finally found that using -ss after the input file to seek by reading from the beginning of the file to the commercial-free segment I want to encode was the only reliable way to get each segment to start where I want and have audio properly in sync. (The process of finding the timestamps is a different adventure :-). I then do this to concatenate the individual segments: ffmpeg -f concat -i files.concat -c copy out.avi That has been working flawlessly until a show I recorded last night. If I play the individual segments they are all properly synced, but after I concatenate them, the audio goes out of sync at some point in the resulting files. If I do an ffprobe -show_streams on the individual avi files, I see things like this: video streams duration: 479.412267,483.683200,etc. audio streams duration: 479.496000,483.720000,etc. That seems like enough extra audio to get out of sync if it is just cramming the video streams and audio streams together. Is that what is likely happening? Is there some way to fix it? Should I generate some uncompressed audio stream that can be cut easily at any timestamp and re-encode for compression only after everything is together in one piece? If anyone is interested in vast details about the scripts I'm using you can find them at: http://home.comcast.net/~tomhorsley/game/ffmpeg.html From remicek at gmail.com Tue May 7 22:42:39 2013 From: remicek at gmail.com (remicek) Date: Tue, 7 May 2013 13:42:39 -0700 (PDT) Subject: [FFmpeg-user] C920 h264 ffmpeg empty output file In-Reply-To: References: <1367930486543-4658914.post@n4.nabble.com> <1367937256142-4658918.post@n4.nabble.com> Message-ID: <1367959359777-4658927.post@n4.nabble.com> I've tried all these options still no change :/. I tried some other method using some soft which grab h264 stream from camera and put in on pipe so ffmpeg can read it: i've got that soft from here While using command: ./capture -f 640x480 -c 5000 -o | ffmpeg -an -i - -vcodec copy -f mpegts udp://192.168.1.151:10000 I am able to see streamed video but it is delayed like 2 or 3s. Which is sadly unacceptable for me... -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/C920-h264-ffmpeg-empty-output-file-tp4658914p4658927.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Wed May 8 00:03:31 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 8 May 2013 00:03:31 +0200 Subject: [FFmpeg-user] What is my problem with concat? In-Reply-To: <20130507142743.7ae48c4c@zooty> References: <20130507142743.7ae48c4c@zooty> Message-ID: <20130507220331.GA27137@phare.normalesup.org> L'octidi 18 flor?al, an CCXXI, Tom Horsley a ?crit?: > That has been working flawlessly until a show I > recorded last night. If I play the individual segments > they are all properly synced, but after I concatenate > them, the audio goes out of sync at some point in the > resulting files. Can you check, using ffprobe -show_packets for example, that the point where the audio goes out of sync corresponds to a timestamp reset in the source file? Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From michael.rampe at gmail.com Tue May 7 23:50:12 2013 From: michael.rampe at gmail.com (FFmichael) Date: Tue, 7 May 2013 14:50:12 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg latest git -profile:v ignored, always gives baseline In-Reply-To: <51890B04.9080902@davidfavor.com> References: <51890B04.9080902@davidfavor.com> Message-ID: <1367963412368-4658928.post@n4.nabble.com> David Favor wrote > Someone let me know how to specify profiles in latest ffmpeg. > > _______ > > Setting -profile:v seems to have no effect. All the following produce > "profile Constrained Baseline, level 4.2" output profiles. > > net1# ffmpeg -benchmark -threads 0 -i 2013-04-10-erai-beckmann-rap.mts > -c:a libfaac -c:v libx264 -profile:v high -preset:v ultrafast -crf 20 -t > 10 -y The effect you are experiencing is because of -preset:v ultrafast. This preset is incapable of producing anything better than baseline. Try the 'slow' preset and you should get a high profile stream. Also, do not confuse level with profile, they are not related to each other. Michael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-latest-git-profile-v-ignored-always-gives-baseline-tp4658917p4658928.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ricardo at americasnet.com Wed May 8 00:27:42 2013 From: ricardo at americasnet.com (Ricardo Kleemann) Date: Tue, 7 May 2013 15:27:42 -0700 Subject: [FFmpeg-user] [PossibleSpam] Re: ffmpeg with Red5 In-Reply-To: <14083569.19380.1367948608289.JavaMail.root@xeams> References: <14083569.19380.1367948608289.JavaMail.root@xeams> Message-ID: On Tue, May 7, 2013 at 6:33 AM, Guillermo Gonz?lez Fern?ndez < guillermogfer at icloud.com> wrote: > Hello, > > I've had similar issues with this and I would try 2 things: > > El 07 may 2013 a las 02:45, Ricardo Kleemann > escribi?: > > > Here's the ffmpeg output: > > ffmpeg -loglevel debug -i "rtmp://server2/live/**livestream" -y -c:v > libx264 > -b:v 512k -vprofile baseline -preset medium -x264opts level=41 -threads 4 > -s 480x270 -map 0:v -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 > -hls_list_size 6 -hls_wrap 18 -start_number 1 live.m3u8 > > change your input to "rtmp://server2/live/**livestream live=1" > > > I'll try again but I know I've tried this in the past as well. > > ffmpeg version git-Sat Apr 20 21:31:19 2013 +0200-4824aea Copyright (c) > 2000-2013 the FFmpeg developers > built on Apr 20 2013 17:10:14 with gcc 4.2.4 (GCC) (Ubuntu 4.2.4-1ubuntu4) > configuration: --enable-gpl --enable-nonfree --enable-pthreads > --enable-libx264 --enable-libfaac --enable-libmp3lame > > build again with --enable-librtmp flag > > But if the error were related to --enable-librtmp wouldn't I also have a problem reading rtmp input streams from Flash Media Server? It works fine with FMS thank you. Ricardo From ajsinclair at gmail.com Wed May 8 01:16:03 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Wed, 8 May 2013 09:16:03 +1000 Subject: [FFmpeg-user] HTML5 live streaming In-Reply-To: <1367939201.36883.YahooMailNeo@web125904.mail.ne1.yahoo.com> References: <1367939201.36883.YahooMailNeo@web125904.mail.ne1.yahoo.com> Message-ID: Hi Hombibi, Why are you using MJPEG as the codec? Would be an unusual codec to find in an x264 guide. If you want to stream low latency HLS from a local capture use something like this which just grabs the desktop: ffmpeg -f x11grab -s `xdpyinfo | grep ?dimensions:?|awk ?{print $2}?` -r 25 -i :0.0 -pix_fmt yuv420p -vcodec libx264 -acodec libfaac -r 25 -profile:v baseline -b:v 1500k -x264opts keyint=25 -s 640x360 -map 0 -flags -global_header -f segment -segment_list index_1500.m3u8 -segment_time 1 -segment_format mpeg_ts -segment_list_type m3u8 -segment_list_flags +live -segment_list_size 2 segment%05d.ts A On 8 May 2013 01:06, Hombibi wrote: > Ricardo, this complete working example may help: > > > The html5 page can be served by apache, lighttpd and probably more. It > needs the file extensions set, but lighttpd and apache have this by > default. The required HTML 5 page ("html5.html") in its simplest form is : > > > > > Live Cam > > > >
> >
> > > > Just put it in the root folder of your website (/var/www/ in my case) and > make a subsequent subdirectory (live), writeable by ffmpeg, where the hls > segments and index file can be written) > > > The command for starting ffmpeg, live streaming a webcam in the format > that can be displayed by an ipad 1below is essentially derived from the > x264 encoding guide, the hls settings from extensive googeling. > > > ffmpeg -v verbose -f video4linux2 -vcodec mjpeg -s 640x480 -r 10 -i > /dev/video0 -c:v libx264 -crf 18 -profile:v baseline -maxrate 400k -bufsize > 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_wrap 6 > /var/www/live/mystream.m3u8 > > > Point your ios device to http://YourIPAdress/html5.html after 30 seconds > for the first two .ts files and the index file to be created. > > Cheers > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ajsinclair at gmail.com Wed May 8 01:20:35 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Wed, 8 May 2013 09:20:35 +1000 Subject: [FFmpeg-user] Live Encoding Hardware In-Reply-To: <000001ce483e$92f9a6d0$b8ecf470$@com> References: <000001ce483e$92f9a6d0$b8ecf470$@com> Message-ID: As fast as you can afford! Seriously. For a 2Mbps (assuming that is what you mean by 2MB or do you mean 2MegaBytes?) stream I personally wouldn't start with less than a 4 core system so you don't run too hot. I bought some 4 socket 16 core AMD servers and found they were quite adequate for ffmpeg encoded. On 4 May 2013 06:41, Mazen wrote: > Dear all > > > > I want to know which best hardware to buy for MULTI Live encoding SD > channels. (x.264 , 2MB each channel) IPTV. > > > > Please I want know what hardware used, and how many live channels were > transcoded well. > > > > What CPU speed , Cores , Ram. > > My OS is Ubuntu. > > > > Thanks in advanced > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From horsley1953 at gmail.com Wed May 8 03:04:10 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Tue, 7 May 2013 21:04:10 -0400 Subject: [FFmpeg-user] What is my problem with concat? In-Reply-To: <20130507220331.GA27137@phare.normalesup.org> References: <20130507142743.7ae48c4c@zooty> <20130507220331.GA27137@phare.normalesup.org> Message-ID: <20130507210410.6db39962@zooty> On Wed, 8 May 2013 00:03:31 +0200 Nicolas George wrote: > Can you check, using ffprobe -show_packets for example, that the point where > the audio goes out of sync corresponds to a timestamp reset in the source > file? I can run -show_packets, but I can't interpret the output :-). What would indicate a reset? (I also can't pinpoint the time of the audio sync glitch because there is a lot of non-dialogue action leading up to the dialogue where it becomes obvious the audio doesn't match the actors lips). From highgod0401 at gmail.com Wed May 8 03:07:31 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Wed, 8 May 2013 09:07:31 +0800 Subject: [FFmpeg-user] Live Encoding Hardware In-Reply-To: References: <000001ce483e$92f9a6d0$b8ecf470$@com> Message-ID: 2013/5/8 Andrew Sinclair > As fast as you can afford! Seriously. For a 2Mbps (assuming that is what > you mean by 2MB or do you mean 2MegaBytes?) stream I personally wouldn't > start with less than a 4 core system so you don't run too hot. > > I bought some 4 socket 16 core AMD servers and found they were quite > adequate for ffmpeg encoded. > > Hi, do you mean encode hardware? we use openvideo(openencode) and has integrateed in to our experimental ffmpeg version. > > On 4 May 2013 06:41, Mazen wrote: > > > Dear all > > > > > > > > I want to know which best hardware to buy for MULTI Live encoding SD > > channels. (x.264 , 2MB each channel) IPTV. > > > > > > > > Please I want know what hardware used, and how many live channels were > > transcoded well. > > > > > > > > What CPU speed , Cores , Ram. > > > > My OS is Ubuntu. > > > > > > > > Thanks in advanced > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From soho123.2012 at gmail.com Wed May 8 05:34:00 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 8 May 2013 11:34:00 +0800 Subject: [FFmpeg-user] ffserver parse ffm header got wrong size and stream index, then no any video data output Message-ID: hi All, I got the error when I using vlc to connect ffserver to get video stream, the video data is from usb webcam. video stream will stop when the error is occur the ffserver conf: Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoCodec mjpeg Noaudio ffserver command : ffserver -f /etc/ffserver.conf & ffmpeg command: ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm the output log: ==================================================== ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-c flags=-I/users/stream_server/ShareLib_Install/bin/../include --extra-libs='-L/users/stream_server/Shar eLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Wed May 8 11:17:50 2013 FFserver started. ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -v codec copy http://localhost:8090/feed1.ffm ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/users/stream_server/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-c flags=-I/users/stream_server/ShareLib_Install/bin/../include --extra-libs='-L/users/stream_server/Shar eLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [video4linux2,v4l2 @ 0x68d650] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 38.490000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc Wed May 8 11:18:06 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf54.63.104 Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=2-31, -5 kb/s, 30 fps, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 18 fps=0.0 q=-1.0 size= 1076kB time=00:00:00.80 bitrate=11018.2kbits/s frame= 34 fps= 33 q=-1.0 size= 2244kB time=00:00:01.34 bitrate=13718.5kbits/s frame= 49 fps= 32 q=-1.0 size= 3336kB time=00:00:01.84 bitrate=14852.4kbits/s frame= 64 fps= 32 q=-1.0 size= 4376kB time=00:00:02.34 bitrate=15319.7kbits/s frame= 79 fps= 31 q=-1.0 size= 5468kB time=00:00:02.84 bitrate=15772.5kbits/s frame= 94 fps= 31 q=-1.0 size= 6624kB time=00:00:03.34 bitrate=16246.6kbits/s frame= 109 fps= 31 q=-1.0 size= 7788kB time=00:00:03.84 bitrate=16614.4kbits/s frame= 124 fps= 31 q=-1.0 size= 8960kB time=00:00:04.34 bitrate=16912.5kbits/s frame= 139 fps= 31 q=-1.0 size= 10128kB time=00:00:04.84 bitrate=17142.3kbits/s frame= 154 fps= 31 q=-1.0 size= 11296kB time=00:00:05.34 bitrate=17329.0kbits/s frame= 168 fps= 30 q=-1.0 size= 12384kB time=00:00:05.81 bitrate=17461.2kbits/s frame= 183 fps= 30 q=-1.0 size= 13544kB time=00:00:06.31 bitrate=17583.6kbits/s frame= 198 fps= 30 q=-1.0 size= 14704kB time=00:00:06.81 bitrate=17688.0kbits/s frame= 213 fps= 30 q=-1.0 size= 15860kB time=00:00:07.31 bitrate=17773.6kbits/s frame= 228 fps= 30 q=-1.0 size= 17020kB time=00:00:07.81 bitrate=17852.5kbits/s frame= 243 fps= 30 q=-1.0 size= 18180kB time=00:00:08.31 bitrate=17921.8kbits/s frame= 258 fps= 30 q=-1.0 size= 19340kB time=00:00:08.81 bitrate=17983.3kbits/s frame= 273 fps= 30 q=-1.0 size= 20500kB time=00:00:09.31 bitrate=18038.2kbits/s frame= 288 fps= 30 q=-1.0 size= 21656kB time=00:00:09.81 bitrate=18084.2kbits/s frame= 303 fps= 30 q=-1.0 size= 22816kB time=00:00:10.31 bitrate=18128.9kbits/s frame= 318 fps= 30 q=-1.0 size= 23972kB time=00:00:10.81 bitrate=18166.4kbits/s Wed May 8 11:18:17 2013 [ffm @ 0x663a20]invalid stream index 90 frame= 333 fps= 30 q=-1.0 size= 25132kB time=00:00:11.31 bitrate=18203.5kbits/s Wed May 8 11:18:18 2013 [ffm @ 0x663a20]invalid stream index 120 frame= 348 fps= 30 q=-1.0 size= 26288kB time=00:00:11.81 bitrate=18234.7kbits/s frame= 363 fps= 30 q=-1.0 size= 27448kB time=00:00:12.31 bitrate=18266.0kbits/s frame= 378 fps= 30 q=-1.0 size= 28604kB time=00:00:12.82 bitrate=18278.0kbits/s frame= 393 fps= 30 q=-1.0 size= 29768kB time=00:00:13.32 bitrate=18307.8kbits/s frame= 408 fps= 30 q=-1.0 size= 30936kB time=00:00:13.82 bitrate=18337.7kbits/s frame= 423 fps= 30 q=-1.0 size= 32108kB time=00:00:14.32 bitrate=18367.9kbits/s frame= 438 fps= 30 q=-1.0 size= 33276kB time=00:00:14.82 bitrate=18393.9kbits/s frame= 453 fps= 30 q=-1.0 size= 34444kB time=00:00:15.32 bitrate=18418.1kbits/s frame= 468 fps= 30 q=-1.0 size= 35612kB time=00:00:15.82 bitrate=18440.8kbits/s frame= 483 fps= 30 q=-1.0 size= 36780kB time=00:00:16.32 bitrate=18462.1kbits/s frame= 498 fps= 30 q=-1.0 size= 37948kB time=00:00:16.82 bitrate=18482.2kbits/s frame= 513 fps= 30 q=-1.0 size= 39116kB time=00:00:17.32 bitrate=18501.1kbits/s frame= 528 fps= 30 q=-1.0 size= 40284kB time=00:00:17.82 bitrate=18518.9kbits/s frame= 543 fps= 30 q=-1.0 size= 41448kB time=00:00:18.32 bitrate=18534.0kbits/s frame= 558 fps= 30 q=-1.0 size= 42612kB time=00:00:18.82 bitrate=18548.2kbits/s frame= 573 fps= 30 q=-1.0 size= 43780kB time=00:00:19.32 bitrate=18563.4kbits/s Wed May 8 11:18:25 2013 192.168.1.100 - - [GET] "/test.mjpeg HTTP/1.1" 200 1499094 frame= 588 fps= 30 q=-1.0 size= 44944kB time=00:00:19.82 bitrate=18576.2kbits/s frame= 603 fps= 30 q=-1.0 size= 46108kB time=00:00:20.32 bitrate=18588.4kbits/s frame= 618 fps= 30 q=-1.0 size= 47272kB time=00:00:20.82 bitrate=18600.0kbits/s frame= 633 fps= 30 q=-1.0 size= 48436kB time=00:00:21.32 bitrate=18611.1kbits/s frame= 648 fps= 30 q=-1.0 size= 49604kB time=00:00:21.82 bitrate=18623.1kbits/s frame= 663 fps= 30 q=-1.0 size= 50760kB time=00:00:22.32 bitrate=18630.2kbits/s frame= 678 fps= 30 q=-1.0 size= 51896kB time=00:00:22.82 bitrate=18629.8kbits/s frame= 693 fps= 30 q=-1.0 size= 53024kB time=00:00:23.32 bitrate=18626.6kbits/s frame= 708 fps= 30 q=-1.0 size= 54144kB time=00:00:23.82 bitrate=18620.8kbits/s frame= 723 fps= 30 q=-1.0 size= 55264kB time=00:00:24.32 bitrate=18615.2kbits/s frame= 738 fps= 30 q=-1.0 size= 56388kB time=00:00:24.82 bitrate=18611.2kbits/s frame= 753 fps= 30 q=-1.0 size= 57508kB time=00:00:25.32 bitrate=18606.1kbits/s frame= 768 fps= 30 q=-1.0 size= 58628kB time=00:00:25.82 bitrate=18601.1kbits/s frame= 783 fps= 30 q=-1.0 size= 59748kB time=00:00:26.32 bitrate=18596.3kbits/s frame= 798 fps= 30 q=-1.0 size= 60876kB time=00:00:26.82 bitrate=18594.2kbits/s frame= 808 fps= 30 q=-1.0 Lsize= 61628kB time=00:00:27.16 bitrate=18588.2kbits/s video:61400kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.371715% Wed May 8 11:18:33 2013 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 63107072 Received signal 2: terminating. # ================================================== ffmpeg seems keep running, but no any video data output by ffserver, the "invalid stream index" is print out from /libavformat/fmdec.c, function ffm_read_packet(), and I also get the error, function ffm_read_packet(), case READ_DATA: size = AV_RB24(ffm->header + 2); the value of size is very very large, then ffm_is_avail_data() will return EAGAIN, such that there is no any video data can be output. Does anyone have idea? Any input is very appreciated! Best Regards, Soho From hombibi at yahoo.com Wed May 8 07:23:12 2013 From: hombibi at yahoo.com (Hombibi) Date: Tue, 7 May 2013 22:23:12 -0700 (PDT) Subject: [FFmpeg-user] HTML5 live streaming In-Reply-To: References: <1367939201.36883.YahooMailNeo@web125904.mail.ne1.yahoo.com> Message-ID: <1367990592.78468.YahooMailNeo@web125904.mail.ne1.yahoo.com> Hi Andrew, I use the MJPEG codec to select the compressed (mjpeg) stream from my webcam. I believe (...)? it requires a little less cpu and provides a little better picture quality than the raw video stream which is the other option. On your comment on reducing latency: I see that you have configured the stream to have only two segments, with a length of 1 second. So aims this approach to reduce the available stale data as much as possible? Will try that. Thanks. ________________________________ From: Andrew Sinclair To: FFmpeg user questions Sent: Wednesday, May 8, 2013 1:16 AM Subject: Re: [FFmpeg-user] HTML5 live streaming Hi Hombibi, Why are you using MJPEG as the codec? Would be an unusual codec to find in an x264 guide. If you want to stream low latency HLS from a local capture use something like this which just grabs the desktop: ffmpeg -f x11grab -s `xdpyinfo | grep ?dimensions:?|awk ?{print $2}?` -r 25 -i :0.0 -pix_fmt yuv420p -vcodec libx264 -acodec libfaac -r 25 -profile:v baseline -b:v 1500k -x264opts keyint=25 -s 640x360 -map 0 -flags -global_header -f segment -segment_list index_1500.m3u8 -segment_time 1 -segment_format mpeg_ts -segment_list_type m3u8 -segment_list_flags +live -segment_list_size 2 segment%05d.ts A From theairkit at gmail.com Wed May 8 07:33:32 2013 From: theairkit at gmail.com (theairkit) Date: Wed, 08 May 2013 12:33:32 +0700 Subject: [FFmpeg-user] coder for rawvideo Message-ID: Hi. Is there a way to encode raw video (audio+video) and code back (audio+video) to raw? I trying: cat ./rawvideo | ffmpeg -re -i -acodec copy -vcodec copy -f rawvideo -y ./outfile But see, that only video copying: Input #0, nut, from 'pipe:': Metadata: encoder : Lavf54.63.104 Duration: N/A, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, 29.97 tbr, 60k tbn, 60k tbc Stream #0:1: Audio: pcm_s16le (PSD[16] / 0x10445350), 48000 Hz, stereo, s16, 1536 kb/s Output #0, rawvideo, to './outfile2': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, q=2-31, 90k tbn, 60k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Thanks in advance. -- theairkit. From brown at mrvideo.vidiot.com Wed May 8 08:08:01 2013 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Wed, 8 May 2013 01:08:01 -0500 Subject: [FFmpeg-user] high@L4.1 to high@L4.0 Message-ID: <20130508060801.GE10547@mrvideo.vidiot.com> Is it possible to take a MKV wrapped H.264 file that was set to high at L4.1 and change it to high at L4.0 when copying the video and audio to a new MP4 file? Thanks. MB -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email "Take your hand off your tool, Marco!" - Det. Beckett - Castle - 10/08/12 From nicolas.george at normalesup.org Wed May 8 09:24:07 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 8 May 2013 09:24:07 +0200 Subject: [FFmpeg-user] coder for rawvideo In-Reply-To: References: Message-ID: <20130508072406.GA31639@phare.normalesup.org> Le nonidi 19 flor?al, an CCXXI, theairkit a ?crit?: > Is there a way to encode raw video (audio+video) and code back > (audio+video) to raw? > > I trying: > > cat ./rawvideo | ffmpeg -re -i -acodec copy -vcodec copy -f rawvideo > -y ./outfile > > But see, that only video copying: How could there be audio in a raw video file? Raw video means just that: a file with just uncompressed video: no headers, no streams or packets delimiters, just data. Where does your "./rawvideo" file come from? Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From fingcmo at gmail.com Wed May 8 10:04:00 2013 From: fingcmo at gmail.com (Fing Cmo) Date: Wed, 8 May 2013 01:04:00 -0700 Subject: [FFmpeg-user] HTML5 live streaming In-Reply-To: <1367990592.78468.YahooMailNeo@web125904.mail.ne1.yahoo.com> References: <1367939201.36883.YahooMailNeo@web125904.mail.ne1.yahoo.com> <1367990592.78468.YahooMailNeo@web125904.mail.ne1.yahoo.com> Message-ID: Hi Hombibi, You gave an HTML5 snippet for browser HLS playback. What browser did you test this on? As far as I know only Safari can play back on a Mac only. i.e. beside iPhone/Pad. Any other browser this was tested on? Thanks, FC. ........................ On Tue, May 7, 2013 at 10:23 PM, Hombibi wrote: > Hi Andrew, > > I use the MJPEG codec to select the compressed (mjpeg) stream from my > webcam. I believe (...) it requires a little less cpu and provides a > little better picture quality than the raw video stream which is the other > option. > > > On your comment on reducing latency: I see that you have configured the > stream to have only two segments, with a length of 1 second. So aims this > approach to reduce the available stale data as much as possible? Will try > that. Thanks. > > > > ________________________________ > From: Andrew Sinclair > To: FFmpeg user questions > Sent: Wednesday, May 8, 2013 1:16 AM > Subject: Re: [FFmpeg-user] HTML5 live streaming > > > Hi Hombibi, > > Why are you using MJPEG as the codec? Would be an unusual codec to find in > an x264 guide. > > If you want to stream low latency HLS from a local capture use something > like this which just grabs the desktop: > ffmpeg -f x11grab -s `xdpyinfo | grep ?dimensions:?|awk ?{print $2}?` -r 25 > -i :0.0 -pix_fmt yuv420p -vcodec libx264 -acodec libfaac -r 25 -profile:v > baseline -b:v 1500k -x264opts keyint=25 -s 640x360 -map 0 -flags > -global_header -f segment -segment_list index_1500.m3u8 -segment_time 1 > -segment_format mpeg_ts -segment_list_type m3u8 -segment_list_flags +live > -segment_list_size 2 segment%05d.ts > > A > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nicolas.george at normalesup.org Wed May 8 10:36:14 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 8 May 2013 10:36:14 +0200 Subject: [FFmpeg-user] What is my problem with concat? In-Reply-To: <20130507210410.6db39962@zooty> References: <20130507142743.7ae48c4c@zooty> <20130507220331.GA27137@phare.normalesup.org> <20130507210410.6db39962@zooty> Message-ID: <20130508083614.GA4251@phare.normalesup.org> L'octidi 18 flor?al, an CCXXI, Tom Horsley a ?crit?: > I can run -show_packets, but I can't interpret the output :-). > > What would indicate a reset? You have to look at the pts_time and dts_time, in each separate streams (stream_index=X). The dts_time should be in more or less regular progressively ascending order, and the dts_time should be the same values, possibly with a small offset or slightly out of order if there are B-frames. Something like that: packet|pts_time=1350.840000|dts_time=1350.840000 packet|pts_time=1350.920000|dts_time=1350.880000 packet|pts_time=1351.120000|dts_time=1350.920000 packet|pts_time=1351.040000|dts_time=1350.960000 packet|pts_time=1351.000000|dts_time=1351.000000 packet|pts_time=1351.080000|dts_time=1351.040000 packet|pts_time=1351.280000|dts_time=1351.080000 packet|pts_time=1351.200000|dts_time=1351.120000 packet|pts_time=1351.160000|dts_time=1351.160000 (obtained with ffprobe -show_packets -of compact -show_entries packet=dts_time,pts_time -select_streams 0 file) You notice that dts_time progresses by 0.04 each time, meaning exactly 25 frames per second (audio would have a different interval, possibly irregular, but still ascending), while pts_time are the same values, out of order in groups of 4. A timestamp reset would just be both values going back to 0 in the middle of the stream, or possibly a value different from 0 but completely unrelated to what comes before. > (I also can't pinpoint the time of the audio sync glitch because > there is a lot of non-dialogue action leading up to the dialogue > where it becomes obvious the audio doesn't match the actors lips). A rough estimate is enough. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From hombibi at yahoo.com Wed May 8 11:29:08 2013 From: hombibi at yahoo.com (Hombibi) Date: Wed, 8 May 2013 02:29:08 -0700 (PDT) Subject: [FFmpeg-user] HTML5 live streaming In-Reply-To: References: <1367939201.36883.YahooMailNeo@web125904.mail.ne1.yahoo.com> <1367990592.78468.YahooMailNeo@web125904.mail.ne1.yahoo.com> Message-ID: <1368005348.54302.YahooMailNeo@web125903.mail.ne1.yahoo.com> Fing Cmo I tested the stream on an ipad 1, ipad 3 and iphone 5. HLS seems to be aimed at IOS devices and Safari, I don't think any other browser supports it out of the box. It also works with VLC, on Linux and on Windows 8, in that case the webserver is not needed, vlc can be pointed directly at the m3u8 index file. ________________________________ From: Fing Cmo To: FFmpeg user questions Sent: Wednesday, May 8, 2013 10:04 AM Subject: Re: [FFmpeg-user] HTML5 live streaming Hi Hombibi, You gave an HTML5 snippet for browser HLS playback. What browser did you test this on? As far as I know only Safari can play back on a Mac only. i.e. beside iPhone/Pad. Any other browser this was tested on? Thanks, FC. From theairkit at gmail.com Wed May 8 13:34:05 2013 From: theairkit at gmail.com (theairkit) Date: Wed, 08 May 2013 18:34:05 +0700 Subject: [FFmpeg-user] coder for rawvideo In-Reply-To: <20130508072406.GA31639@phare.normalesup.org> References: <20130508072406.GA31639@phare.normalesup.org> Message-ID: Nicolas George ?????(?) ? ????? ?????? Wed, 08 May 2013 14:24:07 +0700: > Le nonidi 19 flor?al, an CCXXI, theairkit a ?crit : >> Is there a way to encode raw video (audio+video) and code back >> (audio+video) to raw? >> >> I trying: >> >> cat ./rawvideo | ffmpeg -re -i -acodec copy -vcodec copy -f rawvideo >> -y ./outfile >> >> But see, that only video copying: > > How could there be audio in a raw video file? Raw video means just that: > a > file with just uncompressed video: no headers, no streams or packets > delimiters, just data. > > Where does your "./rawvideo" file come from? ./rawvideo - result of command: /data/soft/bmdtools/bmdcapture -M 2 -A 2 -V 3 -m 8 -F nut -f ./rawvideo this command capture from camera (via HDMI), and write to this file more about this command: https://github.com/lu-zero/bmdtools so, then i run ffmpeg i see follow: Input #0, nut, from 'pipe:': Metadata: encoder : Lavf54.63.104 Duration: N/A, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, 29.97 tbr, 60k tbn, 60k tbc Stream #0:1: Audio: pcm_s16le (PSD[16] / 0x10445350), 48000 Hz, stereo, s16, 1536 kb/s From nicolas.george at normalesup.org Wed May 8 13:37:40 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 8 May 2013 13:37:40 +0200 Subject: [FFmpeg-user] coder for rawvideo In-Reply-To: References: <20130508072406.GA31639@phare.normalesup.org> Message-ID: <20130508113740.GA23913@phare.normalesup.org> Le nonidi 19 flor?al, an CCXXI, theairkit a ?crit?: > ./rawvideo - result of command: > > /data/soft/bmdtools/bmdcapture -M 2 -A 2 -V 3 -m 8 -F nut -f ./rawvideo > > Input #0, nut, from 'pipe:': > Metadata: > encoder : Lavf54.63.104 > Duration: N/A, start: 0.000000, bitrate: 1536 kb/s > Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, > 1920x1080, 29.97 tbr, 60k tbn, 60k tbc > Stream #0:1: Audio: pcm_s16le (PSD[16] / 0x10445350), 48000 Hz, > stereo, s16, 1536 kb/s So the format is nut, and the codecs are rawvideo and PCM. What do you want to do exactly? Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From wxcvbn2006 at iol.ie Wed May 8 13:58:12 2013 From: wxcvbn2006 at iol.ie (MrNice) Date: Wed, 8 May 2013 04:58:12 -0700 (PDT) Subject: [FFmpeg-user] Audio glitches and distortion when recording and direct play Message-ID: <1368014292566-4658945.post@n4.nabble.com> Hi, I have entered a bug in the ffmpeg bug track but I'd like to know if someone have a workaround for the issue. The ticket is #2504 here I uploaded some audio file as sample as well. To sum-up, when I record with the command ffmpeg -debug 1 -vn -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -c:a pcm_s16le /Store3/Test/pcm_`date +%m%d_%H%M`.wav I get glitches and distortion. With the following appli, Audacity With Alsa, input: default then pulse then ALC892 (hw:0,0) Result: with these 3 different parameters, audio is perfect. recordmydesktop input: DEFAULT result: audio is perfect. gnome-sound-recorder 2.29.91 Record from input: Capture format flac, ogg, pm3 Result: with these 3 different formats, audio is perfect. arecord arecord -f cd -t wav out.wav Result: audio is perfect. VLC input hw:0,0 Result: statics after sound As the command is very common maybe there is a workaround. In fact I found out this issue when I was recording audio and video from a S-VHS tape with pcm and ffv1 codecs. I think there is a link between ffmpeg and VLC as they are the only with the issue. Any help is much appreciated. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Audio-glitches-and-distortion-when-recording-and-direct-play-tp4658945.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hombibi at yahoo.com Wed May 8 15:33:06 2013 From: hombibi at yahoo.com (Hombibi) Date: Wed, 8 May 2013 06:33:06 -0700 (PDT) Subject: [FFmpeg-user] advice to create ffserver.conf from working ffmpeg command In-Reply-To: <20130508113740.GA23913@phare.normalesup.org> References: <20130508072406.GA31639@phare.normalesup.org> <20130508113740.GA23913@phare.normalesup.org> Message-ID: <1368019986.32631.YahooMailNeo@web125901.mail.ne1.yahoo.com> Hi, I have the working command below to stream my webcam to IOS devices: "ffmpeg -v verbose -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -c:v libx264 -profile:v baseline -preset superfast -tune zerolatency -pix_fmt yuv420p -flags -global_header -hls_time 3 -hls_wrap 10 /var/www/live/mystream.m3u8" The objective is to transform the -c:v .......... m3u8 part to a ffserver.conf so that it can be published with other live streams. The ffserver.conf outline below generates one .ts file, the hls segmenting does not seem to work. I can't find? documentation on the format of the ffserver.conf file configuration options, or on what options can or must be added. ?To move further I would appreciate some help to gain some insight on how the segmentation options hls_time and hls_wrap must be added to the server.conf file Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 10000 ? CustomLog - NoDaemon ?? # video stream. ?? File ./tmpvideofile.ffm ?? # Maximum file size for buffering video ?? FileMaxSize 3G ?? # Allowed IPs ?? ACL allow 127.0.0.1 ?? ACL allow 192.168.154.0 ?? Feed feed1.ffm ?? Format hls ?? ?? VideoCodec libx264 ?? VideoFrameRate 15 ?? VideoBitRate 400 ?? VideoSize 640x480 AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 10 AVOptionVideo qmax 51 #?? AVOptionVideo vpre slower #?? AVOptionVideo vpre baseline ?? AVOptionVideo baseline ?? AVOptionVideo crf 18 ?? AVOptionVideo maxrate 400k ?? AVOptionVideo bufsize 1835k ?? AVOptionVideo pix_fmt yuv420p ?? AVOptionVideo hls_time 10 ?? AVOptionVideo hls_wrap 6 ?? AVOptionVideo flags +global_header ?? ?? NoAudio ?? # Als audio aan dan NoAudio disablen en codec, bitrate en AVOptionAudio enablen ?? # Audio settings ?? #AudioCodec libmp3lame ?? # Audio bitrate ?? #AudioBitRate 64 ?? # AVOptionAudio ?? #AVOptionAudio flags +global_header ?? PreRoll 0 ?? StartSendOnKey ? # Server status URL ?? Format status ?? # Only allow local people to get the status ?? ACL allow localhost ?? ACL allow 192.168.154.0 192.168.154.255 # Just an URL redirect for index ?? # Redirect index.html to the appropriate site ?? URL http://www.ffmpeg.org/ From horsley1953 at gmail.com Thu May 9 02:18:08 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Wed, 8 May 2013 20:18:08 -0400 Subject: [FFmpeg-user] What is my problem with concat? In-Reply-To: <20130508083614.GA4251@phare.normalesup.org> References: <20130507142743.7ae48c4c@zooty> <20130507220331.GA27137@phare.normalesup.org> <20130507210410.6db39962@zooty> <20130508083614.GA4251@phare.normalesup.org> Message-ID: <20130508201808.488862a4@zooty> On Wed, 8 May 2013 10:36:14 +0200 Nicolas George wrote: > L'octidi 18 flor?al, an CCXXI, Tom Horsley a ?crit?: > > I can run -show_packets, but I can't interpret the output :-). > > > > What would indicate a reset? > > You have to look at the pts_time and dts_time, in each separate streams > (stream_index=X). The dts_time should be in more or less regular > progressively ascending order, and the dts_time should be the same values, > possibly with a small offset or slightly out of order if there are B-frames. > Something like that: Well, I found absolutely nothing that looked irregular about the times in the packets (whipped out a little perl script to compare various things), but I'm pretty sure I have decided that I need to hit '-' 3 times in mplayer (-300ms audio delay) right at the point where the 3rd file gets concatenated in the list of the 6 files that make up the whole video. I guess I can try inserting (or is it deleting) 300ms of silence in the audio at that timestamp and see if it comes out right :-). From me at renecalles.de Thu May 9 11:09:14 2013 From: me at renecalles.de (=?iso-8859-1?Q?Ren=E9_Calles?=) Date: Thu, 9 May 2013 11:09:14 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android Message-ID: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> Hi all, i'm trying to create segmented H.264 video in MPEG-TS container with AAC-Audio in Baseline profile. Strangely FFmpeg "only" creates "Constrained Baseline" video, even when using '-profile baseline' option. The reason i'm asking is because the segmented HLS video is working fine on any iOS6 device but not on Android 4+ devices. The video starts as expected on Android devices, plays the audio fine but the video is running kind of slow motion. This behavior is better when using "Main" profile but then on segment change it gets blocky. Anyway it doesn't look like it's an issue of the segmenter as if i encode Baseline video using a commercial encoder and segment it using FFmpeg, it plays absolutely fine on all devices. It seems to me that there is an issue with FFmpeg encoding in "Baseline" profile as FFprobe detects it as "Constrained Baseline" but the commercial encoded one as "Baseline". So, the detection of the profile seems right. Does anyone know what's maybe going wrong? Maybe it is only a wrong header information FFmpeg produces? Thanks all and best regards, Ren? From mvanb1 at gmail.com Thu May 9 11:17:13 2013 From: mvanb1 at gmail.com (Martijn van Beurden) Date: Thu, 09 May 2013 11:17:13 +0200 Subject: [FFmpeg-user] Decode Dolby Pro Logic II Message-ID: <518B6999.3010501@gmail.com> Hi list, I saw that libswresample is able to matrix encode 5.1 surround to stereo using '-matrix_encoding dplii". However, I just bought an enhanched CD which had a download link to Dolby Pro Logic II encoded stereo files and I don't have any hardware capable of decoding, so I was wondering whether ffmpeg is able to decode this? I couldn't find any clues on this. Strange, that it is able to encode but not to decode? Any help would be greatly appreciated. Thanks in advance From onemda at gmail.com Thu May 9 11:21:05 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 9 May 2013 09:21:05 +0000 Subject: [FFmpeg-user] Decode Dolby Pro Logic II In-Reply-To: <518B6999.3010501@gmail.com> References: <518B6999.3010501@gmail.com> Message-ID: On 5/9/13, Martijn van Beurden wrote: > Hi list, > > I saw that libswresample is able to matrix encode 5.1 surround to stereo > using '-matrix_encoding dplii". However, I just bought an enhanched CD > which had a download link to Dolby Pro Logic II encoded stereo files and > I don't have any hardware capable of decoding, so I was wondering > whether ffmpeg is able to decode this? > > I couldn't find any clues on this. Strange, that it is able to encode > but not to decode? You sure you are not mixing codec with downmixing? > > Any help would be greatly appreciated. Thanks in advance > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mvanb1 at gmail.com Thu May 9 11:29:30 2013 From: mvanb1 at gmail.com (Martijn van Beurden) Date: Thu, 09 May 2013 11:29:30 +0200 Subject: [FFmpeg-user] Decode Dolby Pro Logic II In-Reply-To: References: <518B6999.3010501@gmail.com> Message-ID: <518B6C7A.2060801@gmail.com> On 09-05-13 11:21, Paul B Mahol wrote: > On 5/9/13, Martijn van Beurden wrote: >> I couldn't find any clues on this. Strange, that it is able to encode >> but not to decode? > You sure you are not mixing codec with downmixing? Uhm... what do you mean by that? I'll try to be clearer. According to the download page, these files have to be played with a Dolby Pro Logic II-compatible system. They look just like normal stereo files to me (i.e. no AC3 or DTS) so I guess they're matrix encoded/downmixed. As I don't have hardware with Dolby Pro Logic II, I would like to 'upmix' this in software, so I can play it properly. It found a downmix option in ffmpeg, but no upmix option. Anyone, who knows more about this? From david at davidfavor.com Thu May 9 16:36:05 2013 From: david at davidfavor.com (David Favor) Date: Thu, 09 May 2013 09:36:05 -0500 Subject: [FFmpeg-user] Filter Guru Required - Transcode 1080p + 720p + 480p simultaneously Message-ID: <518BB455.3040908@davidfavor.com> Reading through the filter docs, it appears streams may be split, then routed through multiple pipelines... simultaneously. For the filter Gurus in the crowd, whats they syntax for transcoding to multiple formats simultaneously? I'm using bleeding edge ffmpeg... ffmpeg-1.2.0-2013-05-09-52932-gd1cb559 Thanks! -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From david at davidfavor.com Thu May 9 16:36:09 2013 From: david at davidfavor.com (David Favor) Date: Thu, 09 May 2013 09:36:09 -0500 Subject: [FFmpeg-user] Filter Guru Required - Applying ebur128 filter to stream Message-ID: <518BB459.9020808@davidfavor.com> There's very little documentation on the ebur128 filter. It appears the way this works is via two pass processing. 1) first pass builds normalization data 2) second pass applies data to audio stream If there's an example of this somewhere, pass along the link. I'm using bleeding edge ffmpeg... ffmpeg-1.2.0-2013-05-09-52932-gd1cb559 Thanks. -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From onemda at gmail.com Thu May 9 16:50:32 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 9 May 2013 14:50:32 +0000 Subject: [FFmpeg-user] Filter Guru Required - Transcode 1080p + 720p + 480p simultaneously In-Reply-To: <518BB455.3040908@davidfavor.com> References: <518BB455.3040908@davidfavor.com> Message-ID: On 5/9/13, David Favor wrote: > Reading through the filter docs, it appears streams may be > split, then routed through multiple pipelines... simultaneously. > > For the filter Gurus in the crowd, whats they syntax > for transcoding to multiple formats simultaneously? Transcoding to multiple formats is done with tee muxer. > > I'm using bleeding edge ffmpeg... > > ffmpeg-1.2.0-2013-05-09-52932-gd1cb559 > > Thanks! > > -- > Love feeling your best ever, all day, every day? > Click http://RadicalHealth.com for the easy way! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From me at renecalles.de Thu May 9 17:35:27 2013 From: me at renecalles.de (=?utf-8?Q?Ren=C3=A9_Calles?=) Date: Thu, 9 May 2013 17:35:27 +0200 Subject: [FFmpeg-user] Filter Guru Required - Transcode 1080p + 720p + 480p simultaneously In-Reply-To: References: <518BB455.3040908@davidfavor.com> Message-ID: <2478D5DA-A312-428E-98FA-C9FFE13488B6@renecalles.de> Tee muxer can only be used to mux into different container afaik. For different resolutions you need to encode your video 3 times in that case. Altough it is possible to chain this in a single command. Am 09.05.2013 um 16:50 schrieb Paul B Mahol : > On 5/9/13, David Favor wrote: >> Reading through the filter docs, it appears streams may be >> split, then routed through multiple pipelines... simultaneously. >> >> For the filter Gurus in the crowd, whats they syntax >> for transcoding to multiple formats simultaneously? > > Transcoding to multiple formats is done with tee muxer. >> >> I'm using bleeding edge ffmpeg... >> >> ffmpeg-1.2.0-2013-05-09-52932-gd1cb559 >> >> Thanks! >> >> -- >> Love feeling your best ever, all day, every day? >> Click http://RadicalHealth.com for the easy way! >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From me at renecalles.de Thu May 9 17:42:37 2013 From: me at renecalles.de (=?iso-8859-1?Q?Ren=E9_Calles?=) Date: Thu, 9 May 2013 17:42:37 +0200 Subject: [FFmpeg-user] Filter Guru Required - Transcode 1080p + 720p + 480p simultaneously In-Reply-To: <2478D5DA-A312-428E-98FA-C9FFE13488B6@renecalles.de> References: <518BB455.3040908@davidfavor.com> <2478D5DA-A312-428E-98FA-C9FFE13488B6@renecalles.de> Message-ID: <6274F519-9444-4145-9F1E-2973B64C18D0@renecalles.de> Have a look at http://ffmpeg.org/trac/ffmpeg/wiki/Creating%20multiple%20outputs This should give you a hint how to do it. Best, Ren? Am 09.05.2013 um 17:35 schrieb Ren? Calles : > Tee muxer can only be used to mux into different container afaik. For different resolutions you need to encode your video 3 times in that case. Altough it is possible to chain this in a single command. > > > Am 09.05.2013 um 16:50 schrieb Paul B Mahol : > >> On 5/9/13, David Favor wrote: >>> Reading through the filter docs, it appears streams may be >>> split, then routed through multiple pipelines... simultaneously. >>> >>> For the filter Gurus in the crowd, whats they syntax >>> for transcoding to multiple formats simultaneously? >> >> Transcoding to multiple formats is done with tee muxer. >>> >>> I'm using bleeding edge ffmpeg... >>> >>> ffmpeg-1.2.0-2013-05-09-52932-gd1cb559 >>> >>> Thanks! >>> >>> -- >>> Love feeling your best ever, all day, every day? >>> Click http://RadicalHealth.com for the easy way! >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From 23liam at googlemail.com Thu May 9 18:28:22 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Thu, 9 May 2013 17:28:22 +0100 Subject: [FFmpeg-user] Filter Guru Required - Applying ebur128 filter to stream In-Reply-To: <518BB459.9020808@davidfavor.com> References: <518BB459.9020808@davidfavor.com> Message-ID: > There's very little documentation on the ebur128 filter. > > It appears the way this works is via two pass processing. > > 1) first pass builds normalization data > > 2) second pass applies data to audio stream > > If there's an example of this somewhere, pass along the link. http://ffmpeg.org/ffmpeg-all.html#ebur128 'This filter takes an audio stream as input and outputs it unchanged.' As far as I can tell, it just logs information about the audio, without changing anything (well... it looks like it can write some loudness-based metadata to the audio stream). There are some examples of its usage at the documentation. From tom.distler at gmail.com Thu May 9 18:46:24 2013 From: tom.distler at gmail.com (Tom Distler) Date: Thu, 9 May 2013 10:46:24 -0600 Subject: [FFmpeg-user] Creating MP4 fragments in separate files Message-ID: [I originally sent this as a unsubscribed user, but it's been awaiting moderator approval for 24hrs... sorry for any unintended duplicates] Hi, I'm attempting to use ffmpeg to connect to an RTSP h.264 source and store the video stream as a series of MP4 fragment files. The purpose is to serve up the fragments to a web browser (Chrome) via the MediaSource API. I want ffmpeg to continually write a new mp4 fragment file for each 4 seconds of video with an incrementing file number... i.e. segment01.m4s, segment02.m4s, etc. I need the first segment file to contain the "moov' box with no 'mdat' media data. Each subsequent fragment file should have a 'moof' box and an 'mdat' box containing the video for that video fragment. I've tried 2 different approaches (to no avail): (1) ffmpeg -i rtsp:///stream1 -codec copy -map 0 -f segment -segment_time 4 -segment_format mp4 segment%d.m4s This creates separate mp4 files for every 4 seconds of video, but each file is stand-alone... i.e. each one has it's own 'moov' box... they aren't fragments of the same stream, but rather independent streams. (2) ffmpeg -re -i rtsp:///stream1 -codec copy -f mp4 -movflags frag_keyframe+empty_moov -frag_duration 4 camera.mp4 This creates a single mp4 file, with a single 'moov' box and multiple 'moof' boxes for each 4 second interval... the problem is they're all in the same file. Any help would be greatly appreciated... even if there's a separate tool I need to run the data through (I've tried using MP4Box w/ ffmpeg-generated MPEG2-TS segments, but I get PTS errors). Thanks! From cehoyos at ag.or.at Thu May 9 19:08:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 May 2013 17:08:30 +0000 (UTC) Subject: [FFmpeg-user] Decode Dolby Pro Logic II References: <518B6999.3010501@gmail.com> Message-ID: Martijn van Beurden gmail.com> writes: > I just bought an enhanched CD which had a download link > to Dolby Pro Logic II encoded stereo files and I don't > have any hardware capable of decoding, so I was > wondering whether ffmpeg is able to decode this? I don't think this is implemented, could you provide a sample? Carl Eugen From cehoyos at ag.or.at Thu May 9 19:11:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 May 2013 17:11:41 +0000 (UTC) Subject: [FFmpeg-user] Playback issues with HLS on Android References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> Message-ID: Ren? Calles renecalles.de> writes: > i'm trying to create segmented H.264 video in MPEG-TS > container with AAC-Audio in Baseline profile. Strangely > FFmpeg "only" creates "Constrained Baseline" video, > even when using '-profile baseline' option. Please note that "Baseline" (may) contains many features that are not supported by any H264 decoder while "Constrained Baseline" was defined later to define the actual Baseline features, as users (decoders) always expected them. (FMO, ASO, RS) Or in other words: "Constrained baseline" is what you would expect from "Baseline" (which is something else that you certainly don't want to use). Carl Eugen From onemda at gmail.com Thu May 9 19:33:38 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 9 May 2013 17:33:38 +0000 Subject: [FFmpeg-user] Decode Dolby Pro Logic II In-Reply-To: References: <518B6999.3010501@gmail.com> Message-ID: On 5/9/13, Carl Eugen Hoyos wrote: > Martijn van Beurden gmail.com> writes: > >> I just bought an enhanched CD which had a download link >> to Dolby Pro Logic II encoded stereo files and I don't >> have any hardware capable of decoding, so I was >> wondering whether ffmpeg is able to decode this? > > I don't think this is implemented, could you provide > a sample? Wouldn't decoding be just reverse of downmixing (thus upmixing) as done in libswr and explained on wikipedia? From me at renecalles.de Thu May 9 20:54:34 2013 From: me at renecalles.de (=?utf-8?Q?Ren=C3=A9_Calles?=) Date: Thu, 9 May 2013 20:54:34 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> Message-ID: <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> Hi Carl, thanks for your response. So, Wikipedia's profile table is not correct as it says Constraint Baseline has less features (FMO, ASO, RS) than Baseline and the library is using Constrained Baseline wording for Baseline at all? For the bad playback on Android, do you have any idea what could get wrong? A missing option? Or should i move this topic to x264 user list? Thanks and regards, Ren? Am 09.05.2013 um 19:11 schrieb Carl Eugen Hoyos : > Ren? Calles renecalles.de> writes: > >> i'm trying to create segmented H.264 video in MPEG-TS >> container with AAC-Audio in Baseline profile. Strangely >> FFmpeg "only" creates "Constrained Baseline" video, >> even when using '-profile baseline' option. > > Please note that "Baseline" (may) contains many features > that are not supported by any H264 decoder while > "Constrained Baseline" was defined later to define the > actual Baseline features, as users (decoders) always > expected them. > (FMO, ASO, RS) > > Or in other words: "Constrained baseline" is what you > would expect from "Baseline" (which is something else > that you certainly don't want to use). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From smarrocco at ringsidecreative.com Thu May 9 21:06:17 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Thu, 9 May 2013 15:06:17 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? Message-ID: <518BF3A9.9060306@ringsidecreative.com> Last year I had introduced a thread about an issue where Prores 444 quicktime movies created with ffmpeg and the prores_kostya codec were failing to be identified as 444 by the Apple Quicktime player. See thread: http://ffmpeg.org/pipermail/ffmpeg-user/2012-September/009521.html for details. By the end of the thread, the consensus seemed to indicate that the fourcc was being set incorrectly to apch (the reply actually stated apcn) instead of the correct ap4h but the pixel format was correct. I believe a patch was being tested. I recently downloaded a newer version of ffmpeg and attempted the same files with the same commands (substituting "prores_ks" for "prores_kostya" which appears to have changed). The issue still appears to exist. Is this still a known issue? Here is the ffmpeg command and output that leads to the incorrectly identified file: ffmpeg.exe -i "C:\Server\Jobs\MediaConversionFormats\QT\Alexa\AlexaProRes4444QT_A.mov" -vcodec prores_ks -pix_fmt yuv444p10le -profile:v 3 -acodec copy -f mov "C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov" ffmpeg version N-52837-g399f6ef Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 01:14:14 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 29.100 / 52. 29.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Server\Jobs\MediaConversionFormats\QT\Alexa\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ARRI creation_time : 2011-01-15 07:46:24 timecode : 07:46:22:00 Duration: 00:00:01.63, start: 0.000000, bitrate: 228904 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 217573 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler timecode : 07:46:22:00 Output #0, mov, to 'C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ARRI timecode : 07:46:22:00 encoder : Lavf55.4.101 Stream #0:0(eng): Video: prores (prores_ks) (apch / 0x68637061), yuv444p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 11988 tbn, 23.98 tbc Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> prores_ks) Press [q] to stop, [?] for help frame= 39 fps=2.9 q=0.0 Lsize= 36753kB time=00:00:01.62 bitrate=185097.5kbits/s video:36752kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.004387% Upon inspection, ffprobe reveals the following about the created file: ffprobe "C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov" ffprobe version N-52837-g399f6ef Copyright (c) 2007-2013 the FFmpeg developers built on May 7 2013 01:14:14 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 29.100 / 52. 29.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf55.4.101 Duration: 00:00:01.63, start: 0.000000, bitrate: 185055 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv444p10le, 1920x1080, 185089 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 11988 tbc Metadata: handler_name : DataHandler timecode : 07:46:22:00 Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: handler_name : DataHandler timecode : 07:46:22:00 Unsupported codec with id 0 for input stream 1 -- sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From david at davidfavor.com Thu May 9 23:07:35 2013 From: david at davidfavor.com (David Favor) Date: Thu, 09 May 2013 16:07:35 -0500 Subject: [FFmpeg-user] Filter Guru Required - Transcode 1080p + 720p + 480p simultaneously In-Reply-To: <6274F519-9444-4145-9F1E-2973B64C18D0@renecalles.de> References: <518BB455.3040908@davidfavor.com> <2478D5DA-A312-428E-98FA-C9FFE13488B6@renecalles.de> <6274F519-9444-4145-9F1E-2973B64C18D0@renecalles.de> Message-ID: <518C1017.6050403@davidfavor.com> Ren? Calles wrote: > Have a look at http://ffmpeg.org/trac/ffmpeg/wiki/Creating%20multiple%20outputs > This should give you a hint how to do it. > > Best, > Ren? > > > Am 09.05.2013 um 17:35 schrieb Ren? Calles : > >> Tee muxer can only be used to mux into different container afaik. For different resolutions you need to encode your video 3 times in that case. Altough it is possible to chain this in a single command. >> >> >> Am 09.05.2013 um 16:50 schrieb Paul B Mahol : >> >>> On 5/9/13, David Favor wrote: >>>> Reading through the filter docs, it appears streams may be >>>> split, then routed through multiple pipelines... simultaneously. >>>> >>>> For the filter Gurus in the crowd, whats they syntax >>>> for transcoding to multiple formats simultaneously? >>> Transcoding to multiple formats is done with tee muxer. >>>> I'm using bleeding edge ffmpeg... >>>> >>>> ffmpeg-1.2.0-2013-05-09-52932-gd1cb559 >>>> >>>> Thanks! That should do it. Thanks! -- Love feeling your best all day, every day? Join http://RadicalHealth.com for the easy way! From timothygu99 at gmail.com Fri May 10 02:16:16 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Thu, 9 May 2013 17:16:16 -0700 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: <518BF3A9.9060306@ringsidecreative.com> References: <518BF3A9.9060306@ringsidecreative.com> Message-ID: On May 9, 2013 12:07 PM, "Sam Marrocco" wrote: > > Last year I had introduced a thread about an issue where Prores 444 quicktime movies created with ffmpeg and the prores_kostya codec were failing to be identified as 444 by the Apple Quicktime player. See thread: http://ffmpeg.org/pipermail/ffmpeg-user/2012-September/009521.html for details. > > By the end of the thread, the consensus seemed to indicate that the fourcc was being set incorrectly to apch (the reply actually stated apcn) instead of the correct ap4h but the pixel format was correct. I believe a patch was being tested. > > I recently downloaded a newer version of ffmpeg and attempted the same files with the same commands (substituting "prores_ks" for "prores_kostya" which appears to have changed). The issue still appears to exist. Is this still a known issue? Regarding the fourcc issue, the patch somehow isn't committed. (I don't know anything about coding so I can't decide if the patch is good enough to be committed.) For the alpha channel in the ProRes 4444 (which might not be applicable to your issue), the issue is still open on trac. http://ffmpeg.org/trac/ffmpeg/ticket/1728 Timothy G. From rohit.tvm.86 at gmail.com Fri May 10 06:52:29 2013 From: rohit.tvm.86 at gmail.com (rohit a) Date: Fri, 10 May 2013 10:22:29 +0530 Subject: [FFmpeg-user] Require 7.1 channel inputs (wma, aac and eac3) for downmixing in ffmpeg Message-ID: Hi, I am doing some experiments regarding downmixing of 7.1 channel to stereo using ffmpeg. Can anyone please give me some link, from where i can download 7.1 channel wma, aac and eac3 input test vectors ? I searched the net, but could not find any good link. Regards, Rohit From cehoyos at ag.or.at Fri May 10 07:28:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 May 2013 05:28:41 +0000 (UTC) Subject: [FFmpeg-user] Require 7.1 channel inputs (wma, aac and eac3) for downmixing in ffmpeg References: Message-ID: rohit a gmail.com> writes: > I am doing some experiments regarding downmixing > of 7.1 channel to stereo using ffmpeg. Please do the test with wav files, other sources may have different initial problems. Carl Eugen From cehoyos at ag.or.at Fri May 10 07:34:36 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 May 2013 05:34:36 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? References: <518BF3A9.9060306@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > Last year I had introduced a thread about an issue where > Prores 444 quicktime movies created with ffmpeg and the > prores_kostya codec were failing to be identified as 444 > by the Apple Quicktime player. Where you able to test a sample that shows if Chroma subsampling is done correctly or not? I don't think decoding can work at all if the decoder (QuickTime) does not (internally) detect the right colourspace (444). Carl Eugen From cehoyos at ag.or.at Fri May 10 07:36:11 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 May 2013 05:36:11 +0000 (UTC) Subject: [FFmpeg-user] Decode Dolby Pro Logic II References: <518B6999.3010501@gmail.com> Message-ID: Paul B Mahol gmail.com> writes: > > I don't think this is implemented, could you provide > > a sample? > > Wouldn't decoding be just reverse of downmixing (thus > upmixing) as done in libswr and explained on wikipedia? I like samples;-) (I prefer them even over Wikipedia articles.) Carl Eugen From me at renecalles.de Fri May 10 11:00:58 2013 From: me at renecalles.de (me at renecalles.de) Date: Fri, 10 May 2013 11:00:58 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> Message-ID: <104428fda2c989fd4027849dc0e40829@renecalles.de> Hi Carl, all, after some investigation i found a solution which seems kind of weird but actually is the only option which works. So, for others who may struggle with the same issue here's a summary: Works not: Encode H.264/AAC video and segment it in a single command!! Works: Encode H.264/AAC video to MP4 Container, and in separate process, copy the bitstreams (-c copy), set the bitstream filter (-bsf:v h264_mp4toannexb) and segment it using (-f segment). Anyway it would be great why FFmpeg behaves that way as at the end there are MPEG-TS chunks. Best Ren? Am 2013-05-09 20:54, schrieb Ren? Calles: > Hi Carl, > > thanks for your response. > > So, Wikipedia's profile table is not correct as it says Constraint > Baseline has less features (FMO, ASO, RS) than Baseline and the > library is using Constrained Baseline wording for Baseline at all? > > For the bad playback on Android, do you have any idea what could get > wrong? A missing option? Or should i move this topic to x264 user > list? > > Thanks and regards, > Ren? > > Am 09.05.2013 um 19:11 schrieb Carl Eugen Hoyos : > >> Ren? Calles renecalles.de> writes: >> >>> i'm trying to create segmented H.264 video in MPEG-TS >>> container with AAC-Audio in Baseline profile. Strangely >>> FFmpeg "only" creates "Constrained Baseline" video, >>> even when using '-profile baseline' option. >> >> Please note that "Baseline" (may) contains many features >> that are not supported by any H264 decoder while >> "Constrained Baseline" was defined later to define the >> actual Baseline features, as users (decoders) always >> expected them. >> (FMO, ASO, RS) >> >> Or in other words: "Constrained baseline" is what you >> would expect from "Baseline" (which is something else >> that you certainly don't want to use). >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nicolas.george at normalesup.org Fri May 10 14:37:08 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 10 May 2013 14:37:08 +0200 Subject: [FFmpeg-user] What is my problem with concat? In-Reply-To: <20130508201808.488862a4@zooty> References: <20130507142743.7ae48c4c@zooty> <20130507220331.GA27137@phare.normalesup.org> <20130507210410.6db39962@zooty> <20130508083614.GA4251@phare.normalesup.org> <20130508201808.488862a4@zooty> Message-ID: <20130510123708.GB14907@phare.normalesup.org> Le nonidi 19 flor?al, an CCXXI, Tom Horsley a ?crit?: > but I'm pretty sure I have decided that I need to hit '-' 3 times in mplayer > (-300ms audio delay) right at the point where the 3rd file gets concatenated > in the list of the 6 files that make up the whole video. Oh, if it happens at the stitch, it is another matter. Can you show the timestamps of the few first and last packets of all three first files, in both audio and video streams (remove -select_streams in the ffprobe command line in my previous mail)? Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From mvanb1 at gmail.com Fri May 10 15:14:02 2013 From: mvanb1 at gmail.com (Martijn van Beurden) Date: Fri, 10 May 2013 15:14:02 +0200 Subject: [FFmpeg-user] Decode Dolby Pro Logic II In-Reply-To: References: <518B6999.3010501@gmail.com> Message-ID: <518CF29A.8060002@gmail.com> On 10-05-13 07:36, Carl Eugen Hoyos wrote: > Paul B Mahol gmail.com> writes: > >>> I don't think this is implemented, could you provide >>> a sample? >> Wouldn't decoding be just reverse of downmixing (thus >> upmixing) as done in libswr and explained on wikipedia? > I like samples;-) > (I prefer them even over Wikipedia articles.) > > Carl Eugen I uploaded a sample to upload.ffmpeg.org/incoming/Dolby Pro Logic II sample-cut.WAV I thought I got it yesterday after some scripting with SoX, but the result was disappointing. Today I discovered there was something wrong with the parameters. I also found this document that made me think it is more than just 'inverting the matrix': http://www.dolby.com/uploadedFiles/Assets/US/Doc/Professional/209_Dolby_Surround_Pro_Logic_II_Decoder_Principles_of_Operation.pdf Anyway, thanks in advance From horsley1953 at gmail.com Fri May 10 15:49:57 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Fri, 10 May 2013 09:49:57 -0400 Subject: [FFmpeg-user] What is my problem with concat? In-Reply-To: <20130510123708.GB14907@phare.normalesup.org> References: <20130507142743.7ae48c4c@zooty> <20130507220331.GA27137@phare.normalesup.org> <20130507210410.6db39962@zooty> <20130508083614.GA4251@phare.normalesup.org> <20130508201808.488862a4@zooty> <20130510123708.GB14907@phare.normalesup.org> Message-ID: <20130510094957.062f589f@zooty> On Fri, 10 May 2013 14:37:08 +0200 Nicolas George wrote: > Oh, if it happens at the stitch, it is another matter. Can you show the > timestamps of the few first and last packets of all three first files, in > both audio and video streams (remove -select_streams in the ffprobe command > line in my previous mail)? I did manage to get a file that plays right by using sox to build a new audio stream with 300ms of silence stuck between file 2 and file 3, but here are the leading and trailing packets for the first three files File 1: packet|stream_index=0|pts_time=N/A|dts_time=0.000000 packet|stream_index=1|pts_time=0.000000|dts_time=0.000000 packet|stream_index=1|pts_time=0.021333|dts_time=0.021333 packet|stream_index=1|pts_time=0.032000|dts_time=0.032000 packet|stream_index=0|pts_time=N/A|dts_time=0.033367 packet|stream_index=1|pts_time=0.053333|dts_time=0.053333 packet|stream_index=1|pts_time=0.064000|dts_time=0.064000 packet|stream_index=0|pts_time=N/A|dts_time=0.066733 packet|stream_index=1|pts_time=0.085333|dts_time=0.085333 packet|stream_index=1|pts_time=0.096000|dts_time=0.096000 ... packet|stream_index=1|pts_time=479.328000|dts_time=479.328000 packet|stream_index=0|pts_time=N/A|dts_time=479.345533 packet|stream_index=1|pts_time=479.349333|dts_time=479.349333 packet|stream_index=1|pts_time=479.360000|dts_time=479.360000 packet|stream_index=0|pts_time=N/A|dts_time=479.378900 packet|stream_index=1|pts_time=479.381333|dts_time=479.381333 packet|stream_index=1|pts_time=479.392000|dts_time=479.392000 packet|stream_index=1|pts_time=479.413333|dts_time=479.413333 packet|stream_index=1|pts_time=479.424000|dts_time=479.424000 packet|stream_index=1|pts_time=479.445333|dts_time=479.445333 File 2: packet|stream_index=0|pts_time=N/A|dts_time=0.000000 packet|stream_index=1|pts_time=0.000000|dts_time=0.000000 packet|stream_index=1|pts_time=0.021333|dts_time=0.021333 packet|stream_index=1|pts_time=0.032000|dts_time=0.032000 packet|stream_index=0|pts_time=N/A|dts_time=0.033367 packet|stream_index=1|pts_time=0.053333|dts_time=0.053333 packet|stream_index=1|pts_time=0.064000|dts_time=0.064000 packet|stream_index=0|pts_time=N/A|dts_time=0.066733 packet|stream_index=1|pts_time=0.085333|dts_time=0.085333 packet|stream_index=1|pts_time=0.096000|dts_time=0.096000 ... packet|stream_index=1|pts_time=483.285333|dts_time=483.285333 packet|stream_index=0|pts_time=N/A|dts_time=483.316167 packet|stream_index=0|pts_time=N/A|dts_time=483.349533 packet|stream_index=0|pts_time=N/A|dts_time=483.382900 packet|stream_index=0|pts_time=N/A|dts_time=483.416267 packet|stream_index=0|pts_time=N/A|dts_time=483.449633 packet|stream_index=0|pts_time=N/A|dts_time=483.483000 packet|stream_index=0|pts_time=N/A|dts_time=483.516367 packet|stream_index=0|pts_time=N/A|dts_time=483.549733 packet|stream_index=0|pts_time=N/A|dts_time=483.583100 packet|stream_index=0|pts_time=N/A|dts_time=483.616467 packet|stream_index=0|pts_time=N/A|dts_time=483.649833 (I think I see the problem here - about 300ms with no audio, no doubt due to some weird corruption in the .mpg file from the TiVo :-). File 3: packet|stream_index=0|pts_time=N/A|dts_time=0.000000 packet|stream_index=1|pts_time=0.000000|dts_time=0.000000 packet|stream_index=1|pts_time=0.021333|dts_time=0.021333 packet|stream_index=1|pts_time=0.032000|dts_time=0.032000 packet|stream_index=0|pts_time=N/A|dts_time=0.033367 packet|stream_index=1|pts_time=0.053333|dts_time=0.053333 packet|stream_index=1|pts_time=0.064000|dts_time=0.064000 packet|stream_index=0|pts_time=N/A|dts_time=0.066733 packet|stream_index=1|pts_time=0.085333|dts_time=0.085333 packet|stream_index=1|pts_time=0.096000|dts_time=0.096000 ... packet|stream_index=1|pts_time=444.672000|dts_time=444.672000 packet|stream_index=0|pts_time=N/A|dts_time=444.677567 packet|stream_index=1|pts_time=444.693333|dts_time=444.693333 packet|stream_index=1|pts_time=444.704000|dts_time=444.704000 packet|stream_index=0|pts_time=N/A|dts_time=444.710933 packet|stream_index=1|pts_time=444.725333|dts_time=444.725333 packet|stream_index=1|pts_time=444.736000|dts_time=444.736000 packet|stream_index=0|pts_time=N/A|dts_time=444.744300 packet|stream_index=1|pts_time=444.757333|dts_time=444.757333 packet|stream_index=0|pts_time=N/A|dts_time=444.777667 From horsley1953 at gmail.com Fri May 10 16:12:14 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Fri, 10 May 2013 10:12:14 -0400 Subject: [FFmpeg-user] Translate dts to hh:mm:ss? Message-ID: <20130510101214.62a59477@zooty> If I encode a possibly corrupted (ntsc) mpg file, I sometimes see things like this in the log: [mpeg @ 0x2dc9300] Invalid timestamps stream=0, pts=71146986, dts=71146987, size=32539 [mpeg @ 0x2dc9300] Invalid timestamps stream=0, pts=79134966, dts=79134967, size=30075 [mpeg2video @ 0x2dc9de0] 00 motion_type at 116 13 [mpeg2video @ 0x2dc9de0] Warning MVs not available [mpeg2video @ 0x2dc9de0] concealing 173 DC, 173 AC, 173 MV errors in P frame [mpeg2video @ 0x2dc9de0] invalid mb type in P Frame at 32 34 [mpeg2video @ 0x2dc9de0] concealing 120 DC, 120 AC, 120 MV errors in P frame [mpeg @ 0x2dc9300] Invalid timestamps stream=0, pts=114336132, dts=114336133, size=16833 [mpeg @ 0x2dc9300] Invalid timestamps stream=0, pts=114816612, dts=114816613, size=8305 Is there any way to translate those pts/dts timestamps into a number of seconds so I can look at that time in the resulting file to see if there is a problem there? From nicolas.george at normalesup.org Fri May 10 16:22:26 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 10 May 2013 16:22:26 +0200 Subject: [FFmpeg-user] Translate dts to hh:mm:ss? In-Reply-To: <20130510101214.62a59477@zooty> References: <20130510101214.62a59477@zooty> Message-ID: <20130510142226.GA7511@phare.normalesup.org> Le primidi 21 flor?al, an CCXXI, Tom Horsley a ?crit?: > Is there any way to translate those pts/dts timestamps into > a number of seconds so I can look at that time in the resulting > file to see if there is a problem there? You need to know the time base. ffprobe -show_streams can show it, but for MPEG-PS, it is always 1/90000. Note that you will also need to subtract the start time to find the corresponding frame in the output file. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From cehoyos at ag.or.at Fri May 10 16:37:12 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 May 2013 14:37:12 +0000 (UTC) Subject: [FFmpeg-user] Decode Dolby Pro Logic II References: <518B6999.3010501@gmail.com> <518CF29A.8060002@gmail.com> Message-ID: Martijn van Beurden gmail.com> writes: > I uploaded a sample to upload.ffmpeg.org/incoming/ > Dolby Pro Logic II sample-cut.WAV Thank you! Carl Eugen From willbeas88 at gmail.com Fri May 10 19:05:48 2013 From: willbeas88 at gmail.com (Iwastemoretimethanu) Date: Fri, 10 May 2013 10:05:48 -0700 (PDT) Subject: [FFmpeg-user] audio playing too fast on ffmpeg Message-ID: <1368205548438-4658977.post@n4.nabble.com> I'm not sure if anyone else has ran into this but the audio is playing much faster than the video. Here is a little breakdown. Any help would be great, THANKS! _Here is what I know_: * I know the sound being grabbed is correct because I made a playback test function. * I know the sound is being encoded into the video file because I can hear the sound when played in ffplay or any other player. _Here is the problem_: * When the output video is played, the video starts off at the correct speed, but the audio is playing far too quickly. o For reference, my test output is supposed to be 20 seconds. With my current settings, this is 100 video frames and 100 audio frames at 5 FPS. o All 20 seconds of audio play in the first 5 seconds of the video, which shouldn't be happening simply because the audio and video are being encoded side-by-side (write_audio_frame() is being called directly after write_video_frame()). _Here is what I have tried_: * Changing pts values before the encode, after the encode, using the native av_rescale_q() function to try and automatically set the pts value. o I have done quite a bit of research on this and it seems to be the consensus that pts is supposed to be set before the frame is encoded into the packet, and I have a formula that should work for both the audio and video pts: + frame_count * (1000/STREAM_FRAME_RATE) * 90 + ^ frame scale ^ getting ms ^ pts is apparently supposed to be time * 90 * Reducing the frames per second to a safe value (well-below the potential of the system) * Switching between the av_interleaved_write_frame() and the manual av_write_frame() _Here is what I think the problem could be_: * I've always thought it could be the pts/dts that are off, as those are what are supposed to be controlling the speed/when the sound is played...but considering how many different ways I've modified these and tried things that I think should have worked with my understanding of them and how little any of my trials have mattered in the output file, I'm beginning to think the possibility of this being the problem is getting slimmer and slimmer. _Technical details about the audio data (just in case)_: * Using SFML (Built off of OpenAL) to grab the data * Developing on Windows, audio data is being grabbed from the muxer with the microphone disabled. * The sound data is PCM, 16 bit (stored as int16_t*) * I started off using an algorithm that interlaced the audio with the video manually by using a method of o if audio->pts < video->pts, write another audio frame o else write video frame * I now just encode an audio frame after every video frame because it /should /sync itself, considering the audio is being grabbed while the video is being encoded * I have access to the raw buffered audio data (int16_t*), the sample rate (uint), the channel count (uint), and the sample count (size_t). -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/audio-playing-too-fast-on-ffmpeg-tp4658977.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lists at walterebert.com Fri May 10 20:32:00 2013 From: lists at walterebert.com (Walter Ebert) Date: Fri, 10 May 2013 20:32:00 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <104428fda2c989fd4027849dc0e40829@renecalles.de> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> Message-ID: <518D3D20.7040400@walterebert.com> Thank you Ren?. > Works not: > Encode H.264/AAC video and segment it in a single command!! > > Works: > Encode H.264/AAC video to MP4 Container, and in separate process, copy > the bitstreams (-c copy), set the bitstream filter (-bsf:v > h264_mp4toannexb) and segment it using (-f segment). > After struggling with HLS on Android I can confirm your suggestion works :) I actually created a HLS test page for this: http://walterebert.com/playground/video/hls/ I hoped this would also improve Flash playback. But changing bitrate still disrupts the audio stream. Not sure if this is a HLS or Flash problem. Cheers, Walter From mazen at pnettv.com Fri May 10 20:21:57 2013 From: mazen at pnettv.com (Mazen) Date: Fri, 10 May 2013 20:21:57 +0200 Subject: [FFmpeg-user] Decrease Latency Message-ID: <000001ce4dab$4275b600$c7612200$@com> Hi all How to decrease latency while transcoding and streaming from live source like DVB card (IPTV). When starting to watch , the audio begins before the video by 3 seconds. Any thing to do to fix it ? Thanks in advanced. From me at renecalles.de Fri May 10 23:05:32 2013 From: me at renecalles.de (=?utf-8?Q?Ren=C3=A9_Calles?=) Date: Fri, 10 May 2013 23:05:32 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <518D3D20.7040400@walterebert.com> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> Message-ID: Hi Walter, good to hear this helped you. For me there is a issue left on Nexus 4 as video sometimes get scrambeled, like a missing frame or something. This happens only on Nexus 4, not on Galaxy Tab or Galaxy S3. Really strange and i don't have any clue why. Hope someone on this list can help. Best Ren? Am 10.05.2013 um 20:32 schrieb Walter Ebert : > Thank you Ren?. > >> Works not: >> Encode H.264/AAC video and segment it in a single command!! >> >> Works: >> Encode H.264/AAC video to MP4 Container, and in separate process, copy >> the bitstreams (-c copy), set the bitstream filter (-bsf:v >> h264_mp4toannexb) and segment it using (-f segment). > > After struggling with HLS on Android I can confirm your suggestion works :) > > I actually created a HLS test page for this: > http://walterebert.com/playground/video/hls/ > > I hoped this would also improve Flash playback. But changing bitrate > still disrupts the audio stream. Not sure if this is a HLS or Flash problem. > > Cheers, > Walter > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From timothygu99 at gmail.com Sat May 11 00:37:05 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Fri, 10 May 2013 15:37:05 -0700 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <518D3D20.7040400@walterebert.com> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> Message-ID: On May 10, 2013 11:32 AM, "Walter Ebert" wrote: > After struggling with HLS on Android I can confirm your suggestion works :) > > I actually created a HLS test page for this: > http://walterebert.com/playground/video/hls/ Hi Walter, I looked at your test page and found that your 3rd example has a typo in the mime type: appplication/vnd.apple.mpegURL It should be application/vnd.apple.mpegURL (Note your mistaken triple "p") Timothy From fingcmo at gmail.com Sat May 11 01:00:03 2013 From: fingcmo at gmail.com (Fing Cmo) Date: Fri, 10 May 2013 16:00:03 -0700 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> Message-ID: Hi Walter, Thanks for the test page. I can confirm that 1st & 3rd HTML5 videos play on my Galaxy Note 2. If you don't mind, can you provide the ffmpeg commands you used to generate the video segments? Do the exact segments play on iDevices as well? I guess I can test those later on iPhone :) Thanks, FC. ..................... On Fri, May 10, 2013 at 3:37 PM, Timothy Gu wrote: > On May 10, 2013 11:32 AM, "Walter Ebert" wrote: > > > After struggling with HLS on Android I can confirm your suggestion works > :) > > > > I actually created a HLS test page for this: > > http://walterebert.com/playground/video/hls/ > > Hi Walter, > > I looked at your test page and found that your 3rd example has a typo in > the mime type: appplication/vnd.apple.mpegURL > > It should be application/vnd.apple.mpegURL > > (Note your mistaken triple "p") > > Timothy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From bo-liu at hotmail.com Sat May 11 05:39:41 2013 From: bo-liu at hotmail.com (Bob Liu) Date: Sat, 11 May 2013 11:39:41 +0800 Subject: [FFmpeg-user] APE audio format supporting? Message-ID: Hi folks, I don't know which is the right list so cc'd both. Is it possible to play APE file via http in push mode?I can play ape audio format using ffmpeg or gstrmeaer with ffdemux_ape plugin. But both of them can't play APE file via http.I don't konw how Foobar2000 in windows can do this. Any ideas? Thanks!--- Best regards -Bob From lists at walterebert.com Sat May 11 09:14:55 2013 From: lists at walterebert.com (Walter Ebert) Date: Sat, 11 May 2013 09:14:55 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> Message-ID: <518DEFEF.9080000@walterebert.com> > If you don't mind, can you provide the ffmpeg commands you used to > generate the video segments? The commands are on Bitbucket: https://bitbucket.org/walterebert/ffmpeg-hls/src > Do the exact segments play on iDevices as well? > I guess I can test those later on iPhone :) The segments play on iOS devices. Although there is a problem on older devices with a resolution of 480x360 pixels (and iOS 4.2): - The first video can be started, but actually does not play because it contains higher resolution streams. - The 2nd and 3rd video cannot be started. - The 4th video with the 480x270.m3u8 stream play just fine. I would have expected that the device would automatically select the highest resolution it can play. On iPad the videos play without any problems. iPad 1 cannot play full HD (1920x1080) or higher. That is why the highest resolution on test page is 1280x720 pixels. >> I looked at your test page and found that your 3rd example has a typo in >> the mime type: appplication/vnd.apple.mpegURL >> >> It should be application/vnd.apple.mpegURL >> >> (Note your mistaken triple "p") Thanks Timothy for catching that. I corrected the MIME type. Cheers, Walter From andrey.krieger.utkin at gmail.com Sat May 11 19:05:37 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Sat, 11 May 2013 20:05:37 +0300 Subject: [FFmpeg-user] Seeking for filter to recognize and thicken thin curves Message-ID: I am not keen on such thing as objects recognition on image. I'd like to know if there is filter available in libavfilter, or in the libs pluggable to it, or even another graphical package, to do what i ask for: to thicken exactly thin curved lines (if it helps, let's say there's a limit of its width), these lines of interest all have certain color. The application is processing terrain satellite photos, to make small roads and trails more noticeable. -- Andrey Utkin From npgvti at gmail.com Sat May 11 17:30:31 2013 From: npgvti at gmail.com (Nicolas van Tieghem) Date: Sat, 11 May 2013 17:30:31 +0200 Subject: [FFmpeg-user] linux or windows? Message-ID: Hello, Please could you tell me if your package work on Windows or on Linux? Best regards From h.reindl at thelounge.net Sat May 11 19:48:26 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 May 2013 19:48:26 +0200 Subject: [FFmpeg-user] linux or windows? In-Reply-To: References: Message-ID: <518E846A.4030600@thelounge.net> Am 11.05.2013 17:30, schrieb Nicolas van Tieghem: > Please could you tell me if your package work on Windows or on Linux? what is "your package"? ffmpeg itself is *source code* yes, i have heard from people which managed to find a working window sbinary or even compile it at their own, said from a suer which did not touch windows after 2006 seriously -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From phil_rhodes at rocketmail.com Sat May 11 20:16:18 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 11 May 2013 11:16:18 -0700 (PDT) Subject: [FFmpeg-user] linux or windows? In-Reply-To: References: Message-ID: <1368296178.47394.YahooMailNeo@web121102.mail.ne1.yahoo.com> It's possible to get compiled versions of ffmpeg for both Linux and Windows. The only problem I've ever had with windows versions is that they tend to be considered outdated when you ask questions about them on this list. That always seems a little unfair, since "outdated" in terms of ffmpeg seems to be a matter of hours, but it's only a problem if you let on... P ________________________________ From: Nicolas van Tieghem To: ffmpeg-user at ffmpeg.org Sent: Saturday, 11 May 2013, 16:30 Subject: [FFmpeg-user] linux or windows? Hello, Please could you tell me if your package work on Windows or on Linux? Best regards _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From phpdev at ehrhardt.nl Sat May 11 20:17:22 2013 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 11 May 2013 20:17:22 +0200 Subject: [FFmpeg-user] linux or windows? References: <518E846A.4030600@thelounge.net> Message-ID: <9l2to8l5561559sqbrg71c4gnlsa90l9b0@4ax.com> Reindl Harald in gmane.comp.video.ffmpeg.user (Sat, 11 May 2013 19:48:26 +0200): >yes, i have heard from people which managed to find a working >window sbinary or even compile it at their own, said from a suer >which did not touch windows after 2006 seriously Most people that compile FFmpeg for Windows do that on Debian or Ubuntu... These Windows binaries are compiled on Debian, for instance: http://ffmpeg.zeranoe.com/builds/ Jan From cehoyos at ag.or.at Sat May 11 20:29:32 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 May 2013 18:29:32 +0000 (UTC) Subject: [FFmpeg-user] linux or windows? References: <1368296178.47394.YahooMailNeo@web121102.mail.ne1.yahoo.com> Message-ID: Phil Rhodes rocketmail.com> writes: > The only problem I've ever had with windows versions > is that they tend to be considered outdated when you > ask questions about them on this list. That is a lie. True is that only current versions of FFmpeg are supported on this mailing list, no matter for which operating system. Please do not top-post on this mailing list, it is considered very rude. Carl Eugen From h.reindl at thelounge.net Sat May 11 20:59:28 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 May 2013 20:59:28 +0200 Subject: [FFmpeg-user] linux or windows? In-Reply-To: References: <1368296178.47394.YahooMailNeo@web121102.mail.ne1.yahoo.com> Message-ID: <518E9510.7040904@thelounge.net> Am 11.05.2013 20:29, schrieb Carl Eugen Hoyos: > Phil Rhodes rocketmail.com> writes: > >> The only problem I've ever had with windows versions >> is that they tend to be considered outdated when you >> ask questions about them on this list. > > That is a lie. > True is that only current versions of FFmpeg > are supported on this mailing list, no matter > for which operating system and your definition of "current" is "latest snapshot" this is one of your most answers on the list -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From phil_rhodes at rocketmail.com Sat May 11 22:39:01 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 11 May 2013 13:39:01 -0700 (PDT) Subject: [FFmpeg-user] linux or windows? In-Reply-To: References: <1368296178.47394.YahooMailNeo@web121102.mail.ne1.yahoo.com> Message-ID: <1368304741.9762.YahooMailNeo@web121102.mail.ne1.yahoo.com> > That is a lie. No, it isn't. Please do not be needlessly pedantic and deliberately obstructive on this mailing list, it is considered very rude. P From vincent at up4.com Sun May 12 01:19:21 2013 From: vincent at up4.com (Vincent Olivier) Date: Sat, 11 May 2013 19:19:21 -0400 Subject: [FFmpeg-user] Sony XAVC 422 10-bit 4K Message-ID: Hi Guys, Please find below the log I get when I convert XAVC 422 10-bit 4K material into ProRes with the latest trunk. I am worried about the 5 MXF parsing lines: [mxf @ 0x2bbcf20] could not resolve sub descriptor strong ref [mxf @ 0x2bbcf20] source track 11: stream 9, no descriptor found [mxf @ 0x2bbcf20] Stream #9: not enough frames to estimate rate; consider increasing probesize [mxf @ 0x2bbcf20] decoding for stream 0 failed And the post-processing line: "Clip0042.MXF: Operation not permitted". The output file looks fine. But I would like to know what those error messages mean and eventually, to get rid of them. Regards, Vincent vincent at 3dcpc2:~/fauxraw$ ffmpeg -i Clip0042.MXF -c:v prores -profile:v 3 -acodec copy Clip0042.mov ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 5 2013 14:16:24 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1) configuration: --enable-libopus --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mxf @ 0x2bbcf20] could not resolve sub descriptor strong ref [mxf @ 0x2bbcf20] source track 11: stream 9, no descriptor found [mxf @ 0x2bbcf20] Stream #9: not enough frames to estimate rate; consider increasing probesize [mxf @ 0x2bbcf20] decoding for stream 0 failed Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Guessed Channel Layout for Input Stream #0.5 : mono Guessed Channel Layout for Input Stream #0.6 : mono Guessed Channel Layout for Input Stream #0.7 : mono Guessed Channel Layout for Input Stream #0.8 : mono Input #0, mxf, from 'Clip0042.MXF': Metadata: timecode : 00:21:51:20 Duration: 00:00:02.34, start: 0.000000, bitrate: 244604 kb/s Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:9: Data: none Output #0, mov, to 'Clip0042.mov': Metadata: timecode : 00:21:51:20 encoder : Lavf54.63.104 Stream #0:0: Video: prores (apch) (apch / 0x68637061), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], q=2-31, 200 kb/s, 24k tbn, 23.98 tbc Stream #0:1: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, 1152 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> prores) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help Clip0042.MXF: Operation not permitted29kB time=00:00:02.12 bitrate=421818.1kbits/s frame= 56 fps= 23 q=0.0 Lsize= 227319kB time=00:00:02.33 bitrate=797287.4kbits/s video:226988kB audio:328kB subtitle:0 global headers:0kB muxing overhead 0.001101% From redpenguinmail at gmail.com Sun May 12 05:46:54 2013 From: redpenguinmail at gmail.com (Mr M) Date: Sat, 11 May 2013 23:46:54 -0400 Subject: [FFmpeg-user] linux or windows? In-Reply-To: <1368304741.9762.YahooMailNeo@web121102.mail.ne1.yahoo.com> References: <1368296178.47394.YahooMailNeo@web121102.mail.ne1.yahoo.com> <1368304741.9762.YahooMailNeo@web121102.mail.ne1.yahoo.com> Message-ID: I just wanted to say the Zeranoe builds work great on Windows (I use them constantly) and there is really no major diff between them and the normal Linux version which I use occasionally but my main converting PC is Windows. Also I feel the ffmpeg list has been very supportive of the Windows builds, as I have gotten support and even had a "bug" fixed where -ss would not take over 24 hours. On Sat, May 11, 2013 at 4:39 PM, Phil Rhodes wrote: > > That is a lie. > > No, it isn't. > > Please do not be needlessly pedantic and deliberately obstructive on this > mailing list, it is considered very rude. > > P > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From andrey.aleksandrovich at googlemail.com Sun May 12 08:17:11 2013 From: andrey.aleksandrovich at googlemail.com (Andrey Aleksandrovich) Date: Sun, 12 May 2013 09:17:11 +0300 Subject: [FFmpeg-user] VHS to DVD conversion service (also, audio cassette to CDs) In-Reply-To: <201305051325.49987.rhkramer@gmail.com> References: <201305051325.49987.rhkramer@gmail.com> Message-ID: Hello, You need TVtuner+VCR and you can do it at your home by yourself. On 5/5/13, Randy Kramer wrote: > A friend of mine wants to get some personal (but not that personal!) VHS > tapes > converted to DVD, and some audio (I think she said cassettes) to CD. > > I just thought I'd ask here if anybody is interested in doing this (at a low > > price) or knows of a low priced service. > > Thanks! > Randy Kramer > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From andrey.aleksandrovich at googlemail.com Sun May 12 08:29:25 2013 From: andrey.aleksandrovich at googlemail.com (Andrey Aleksandrovich) Date: Sun, 12 May 2013 09:29:25 +0300 Subject: [FFmpeg-user] high@L4.1 to high@L4.0 In-Reply-To: <20130508060801.GE10547@mrvideo.vidiot.com> References: <20130508060801.GE10547@mrvideo.vidiot.com> Message-ID: AFAIK, without reencoding it's impossible. http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels You need to change codec settings (when encoding) to get another 'Level' On 5/8/13, Mike Brown wrote: > Is it possible to take a MKV wrapped H.264 file that was set to high at L4.1 > and change it to high at L4.0 when copying the video and audio to a new MP4 > file? > > Thanks. > > MB > -- > e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII > 6082066843 at email.uscc.net (140 char limit) \ / Ribbon > Campaign > Visit - URL: http://vidiot.com/ X Against > http://vidiot.net/ / \ HTML Email > "Take your hand off your tool, Marco!" - Det. Beckett - Castle - 10/08/12 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From onemda at gmail.com Sun May 12 12:41:19 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sun, 12 May 2013 10:41:19 +0000 Subject: [FFmpeg-user] Seeking for filter to recognize and thicken thin curves In-Reply-To: References: Message-ID: On 5/11/13, Andrey Utkin wrote: > I am not keen on such thing as objects recognition on image. I'd like > to know if there is filter available in libavfilter, or in the libs > pluggable to it, or even another graphical package, to do what i ask > for: to thicken exactly thin curved lines (if it helps, let's say > there's a limit of its width), these lines of interest all have > certain color. > The application is processing terrain satellite photos, to make small > roads and trails more noticeable. Like edge detect? From andrey.krieger.utkin at gmail.com Sun May 12 13:06:18 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Sun, 12 May 2013 14:06:18 +0300 Subject: [FFmpeg-user] Seeking for filter to recognize and thicken thin curves In-Reply-To: References: Message-ID: 2013/5/12 Paul B Mahol : > Like edge detect? Yes. Thanks for giving right name to this stuff. Now i have right keywords for search. More comments on topic are still appreciated. -- Andrey Utkin From ubitux at gmail.com Sun May 12 13:12:19 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Sun, 12 May 2013 13:12:19 +0200 Subject: [FFmpeg-user] Seeking for filter to recognize and thicken thin curves In-Reply-To: References: Message-ID: <20130512111219.GH29008@leki> On Sun, May 12, 2013 at 02:06:18PM +0300, Andrey Utkin wrote: > 2013/5/12 Paul B Mahol : > > Like edge detect? > > Yes. Thanks for giving right name to this stuff. Now i have right > keywords for search. > More comments on topic are still appreciated. > http://ffmpeg.org/ffmpeg-filters.html#edgedetect Improvements on the filter welcome (like adding more algorithms) -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From bbutscheidt at yahoo.de Sun May 12 13:18:23 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sun, 12 May 2013 12:18:23 +0100 (BST) Subject: [FFmpeg-user] problem with muxing .264/ .ac3 to mkv Message-ID: <1368357503.9708.YahooMailNeo@web133206.mail.ir2.yahoo.com> Hello, should this work? I only added the "-fflags +genpts" options because of these suggestions: https://ffmpeg.org/trac/ffmpeg/ticket/1979 , but it doesn't change behaviour. ===================================================== ffmpeg -fflags +genpts -i Sport_HD_CUT_ntsc.264 -i Sport_HD_CUT_ntsc.ac3 -codec copy -map 0:0 -map 1:0 -f matroska? Sport_HD_CUT_ntsc.mkv ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers ? built on May? 4 2013 13:30:41 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-avresample --enable-gpl --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r --enable-libsoxr --cpu=amd64 --arch=x86_64 --enable-version3 ? libavutil????? 52. 28.100 / 52. 28.100 ? libavcodec???? 55.? 7.100 / 55.? 7.100 ? libavformat??? 55.? 4.101 / 55.? 4.101 ? libavdevice??? 55.? 0.100 / 55.? 0.100 ? libavfilter???? 3. 63.101 /? 3. 63.101 ? libavresample?? 1.? 1.? 0 /? 1.? 1.? 0 ? libswscale????? 2.? 2.100 /? 2.? 2.100 ? libswresample?? 0. 17.102 /? 0. 17.102 ? libpostproc??? 52.? 3.100 / 52.? 3.100 [h264 @ 0x7fad8bf7f1c0] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, h264, from 'Sport_HD_CUT_ntsc.264': ? Duration: N/A, bitrate: N/A ??? Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc [ac3 @ 0x7fad8bf81480] max_analyze_duration 5000000 reached at 5024000 microseconds [ac3 @ 0x7fad8bf81480] Estimating duration from bitrate, this may be inaccurate Input #1, ac3, from 'Sport_HD_CUT_ntsc.ac3': ? Duration: 00:01:00.58, start: 0.000000, bitrate: 448 kb/s ??? Stream #1:0: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s File 'Sport_HD_CUT_ntsc.mkv' already exists. Overwrite ? [y/N] y Output #0, matroska, to 'Sport_HD_CUT_ntsc.mkv': ? Metadata: ??? encoder???????? : Lavf55.4.101 ??? Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 1200k tbc ??? Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 448 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (copy) ? Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help [matroska @ 0x7fad8bf82240] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument From cehoyos at ag.or.at Sun May 12 13:25:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 May 2013 11:25:09 +0000 (UTC) Subject: [FFmpeg-user] problem with muxing .264/ .ac3 to mkv References: <1368357503.9708.YahooMailNeo@web133206.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > should this work? Muxing h264 in mkv should work, unfortunately timestamps are not read from some h264 streams, this is a known problem (and apparently not trivial to fix). > I only added the "-fflags +genpts" It does not always help. Carl Eugen From prathap.malempati at gmail.com Sun May 12 07:07:17 2013 From: prathap.malempati at gmail.com (Prathap Malempati) Date: Sun, 12 May 2013 10:37:17 +0530 Subject: [FFmpeg-user] Error while installing ffmpeg on ubuntu 13.04 Message-ID: Please respond I have ubuntu 13.04 Desktop (32 bit ) OS on my PC. When i am trying to install ffmpeg on my PC it shows error like this ./configure --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame \ > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 \ > --enable-nonfree --enable-version3 *ERROR: libfdk_aac not found ** If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem.* And i am new to ffmpeg Thank you Prathap.M From lou at lrcd.com Sun May 12 20:48:49 2013 From: lou at lrcd.com (Lou) Date: Sun, 12 May 2013 10:48:49 -0800 Subject: [FFmpeg-user] Error while installing ffmpeg on ubuntu 13.04 In-Reply-To: References: Message-ID: <1368384529.898.140661229731621.739CEF9A@webmail.messagingengine.com> On Sat, May 11, 2013, at 09:07 PM, Prathap Malempati wrote: > ./configure --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame \ > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 \ > > --enable-nonfree --enable-version3 > > > *ERROR: libfdk_aac not found Remove --enable-libfdk-aac (and --enable-version3 which is not required). Or install fdk-aac as shown in: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide See the end of config.log for additional clues. If you need additional help please include the relevant section of config.log (the last 50 lines are probably more than enough). Lou From 23liam at googlemail.com Sun May 12 20:51:12 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sun, 12 May 2013 19:51:12 +0100 Subject: [FFmpeg-user] Error while installing ffmpeg on ubuntu 13.04 In-Reply-To: References: Message-ID: > I have ubuntu 13.04 Desktop (32 bit ) OS on my PC. > > When i am trying to install ffmpeg on my PC it shows error like this > > > ./configure --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame \ >> --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 \ >> --enable-nonfree --enable-version3 > > > *ERROR: libfdk_aac not found > ** I assume you mean that you're compiling a version of ffmpeg on your computer? Look at this guide, and make sure you follow all the steps: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide From compuvision.sr at gmail.com Sun May 12 21:37:38 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Sun, 12 May 2013 16:37:38 -0300 Subject: [FFmpeg-user] linux or windows? In-Reply-To: References: <1368296178.47394.YahooMailNeo@web121102.mail.ne1.yahoo.com> <1368304741.9762.YahooMailNeo@web121102.mail.ne1.yahoo.com> Message-ID: I don't think there a big differences with Windows and Linux versions. If you are a Windows lover don't change it. For me the Linux community a nice and overwhelming force in the short history of software development. It doesn't focus on making money but on ideas and realising them. It is free, your data isn't used for advertisement it is very powerful as a server and scalable. And if you don't like things you can change them and distribute your version. From highgod0401 at gmail.com Mon May 13 04:18:48 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 10:18:48 +0800 Subject: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail Message-ID: It seems that the rtsp lose packet, but I test in lan, should not lose packet, I also tested on my computer(server and ffplay on the same PC), also has the problem ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers built on May 13 2013 10:13:02 with gcc 4.6.2 (GCC) configuration: --enable-static --enable-shared libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [rtsp @ 0087fa40] SDP:= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 v=0 o=- 1368406375822985 1 IN IP4 192.168.0.48 s=H.264 Video, streamed by the LIVE555 Media Server i=out.264 t=0 0 a=tool:LIVE555 Streaming Media v2012.08.20 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server a=x-qt-text-inf:out.264 m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:500 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKKy0A8ARPy4CIAAAfSAAF3AB4wZU,aO8PLIs= a=control:track1 [rtsp @ 0087fa40] video codec set to: h264 [NULL @ 00882280] RTP Packetization Mode: 1 [NULL @ 00882280] RTP Profile IDC: 64 Profile IOP: 0 Level: 28 [NULL @ 00882280] Extradata set to 008827a0 (size: 37)! [udp @ 006c7de0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [udp @ 008818e0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [rtsp @ 0087fa40] hello state=0 [rtsp @ 0087fa40] All info found 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.416667 0.018109 rfps: 23.500000 0.013117 rfps: 23.583333 0.008928 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 1 times rfps: 23.666667 0.005542 Last message repeated 1 times rfps: 23.750000 0.002960 timesast message repeated 1 1.#R A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.833333 0.001181 Last message repeated 1 times rfps: 23.916667 0.000205 Last message repeated 1 times rfps: 24.000000 0.000033 Last message repeated 1 times rfps: 24.083333 0.000664 Last message repeated 1 times rfps: 24.166667 0.002098 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 1 times rfps: 24.250000 0.004336 Last message repeated 1 times rfps: 24.333333 0.007377 Last message repeated 1 times rfps: 24.416667 0.011221 Last message repeated 1 times rfps: 24.500000 0.015869 rfps: 47.416667 0.016602 rfps: 47.500000 0.011839 rfps: 47.583333 0.007880 Last message repeated 1 times1.#R A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 rfps: 47.666667 0.004723 Last message repeated 1 times rfps: 47.750000 0.002370 Last message repeated 1 times rfps: 47.833333 0.000820 Last message repeated 1 times rfps: 47.916667 0.000074 Last message repeated 1 times rfps: 48.000000 0.000131 Last message repeated 1 times rfps: 48.083333 0.000991 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 1 times rfps: 48.166667 0.002655 Last message repeated 1 times rfps: 48.250000 0.005122 Last message repeated 1 times rfps: 48.333333 0.008392 Last message repeated 1 times rfps: 48.416667 0.012466 rfps: 48.500000 0.017343 rfps: 23.976024 0.000000 rfps: 47.952048 0.000000 [rtsp @ 0087fa40] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://192.168.0.48/out.264': Metadata: title : H.264 Video, streamed by the LIVE555 Media Server comment : out.264 Duration: N/A, start: 0.250256, bitrate: N/A 1.#R A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Stream #0:0, 28, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc [h264 @ 00882280] detected 4 logical cores [h264 @ 00882280] RTP: missed 8 packets Video frame changed from size:0x0 format:none serial:-1 to size:1920x1080 format:yuv420p serial:1 [buffer @ 0095da80] Setting entry with key 'video_size' to value '1920x1080' [buffer @ 0095da80] Setting entry with key 'pix_fmt' to value '0' [buffer @ 0095da80] Setting entry with key 'time_base' to value '1/90000' [buffer @ 0095da80] Setting entry with key 'pixel_aspect' to value '1/1' [ffplay_buffer @ 0095da20] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:0/1 sar:1/1 sws_param: [crop @ 039d08c0] Setting 'w' to value 'floor(in_w/2)*2' [crop @ 039d08c0] Setting 'h' to value 'floor(in_h/2)*2' [ffplay_crop @ 0095ea60] w:1920 h:1080 sar:1/1 -> w:1920 h:1080 sar:1/1 [h264 @ 0095d1e0] Frame num gap 0 14KB vq= 245KB sq= 0B f=1/1 [h264 @ 03b03100] Cannot use next picture in error concealment1/1 [h264 @ 03b03100] concealing 3083 DC, 3083 AC, 3083 MV errors in P frame [h264 @ 0095e000] bytestream overread -3q= 206KB sq= 0B f=1/1 [h264 @ 0095e000] bytestream overread -9 [h264 @ 0095e000] error while decoding MB 67 67, bytestream (-9) [h264 @ 0095e000] concealing 102 DC, 102 AC, 102 MV errors in I frame [h264 @ 0095d5c0] bytestream overread -22= 215KB sq= 0B f=1/1 [h264 @ 0095d5c0] error while decoding MB 79 47, bytestream (-22) [h264 @ 0095d5c0] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame [h264 @ 0095d1e0] bytestream overread -6q= 211KB sq= 0B f=1/1 [h264 @ 0095d1e0] error while decoding MB 4 54, bytestream (-6) [h264 @ 0095d1e0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame [rtsp @ 0087fa40] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 [h264 @ 03b03100] bytestream overread -19= 266KB sq= 0B f=1/1 [h264 @ 03b03100] error while decoding MB 18 49, bytestream (-19) [h264 @ 03b03100] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame [rtsp @ 0087fa40] Received BYE for stream 0 (1/1) sq= 0B f=1/1 39.01 A-V: 0.000 fd= 6 aq= 0KB vq= 0KB sq= 0B f=1/1 From highgod0401 at gmail.com Mon May 13 05:14:39 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 11:14:39 +0800 Subject: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail In-Reply-To: References: Message-ID: 2013/5/13 Wei Gao > It seems that the rtsp lose packet, but I test in lan, should not lose > packet, I also tested on my computer(server and ffplay on the same PC), > also has the problem > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > built on May 13 2013 10:13:02 with gcc 4.6.2 (GCC) > configuration: --enable-static --enable-shared > libavutil 52. 18.100 / 52. 18.100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > > I enable the pthrads to test again, but the result is still not correct. the log is as follows: ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers built on May 13 2013 11:12:27 with gcc 4.6.2 (GCC) configuration: --enable-static --enable-shared WARNING: library configuration mismatch avutil configuration: --enable-static --enable-shared --enable-pthreads avcodec configuration: --enable-static --enable-shared --enable-pthreads avformat configuration: --enable-static --enable-shared --enable-pthreads avdevice configuration: --enable-static --enable-shared --enable-pthreads avfilter configuration: --enable-static --enable-shared --enable-pthreads swscale configuration: --enable-static --enable-shared --enable-pthreads swresample configuration: --enable-static --enable-shared --enable-pthreads libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [rtsp @ 00ab07e0] SDP:= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 v=0 o=- 1368406375822985 1 IN IP4 192.168.0.48 s=H.264 Video, streamed by the LIVE555 Media Server i=out.264 t=0 0 a=tool:LIVE555 Streaming Media v2012.08.20 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server a=x-qt-text-inf:out.264 m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:500 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKKy0A8ARPy4CIAAAfSAAF3AB4wZU,aO8PLIs= a=control:track1 [rtsp @ 00ab07e0] video codec set to: h264 [NULL @ 00ab3020] RTP Packetization Mode: 1 [NULL @ 00ab3020] RTP Profile IDC: 64 Profile IOP: 0 Level: 28 [NULL @ 00ab3020] Extradata set to 00ab3540 (size: 37)! [rtsp @ 00ab07e0] hello state=0 [rtsp @ 00ab07e0] All info found 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.416667 0.018108 rfps: 23.500000 0.013116 rfps: 23.583333 0.008927 Last message repeated 1 times rfps: 23.666667 0.005542 Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.750000 0.002959 Last message repeated 1 times rfps: 23.833333 0.001181 Last message repeated 1 times rfps: 23.916667 0.000205 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 1 times rfps: 24.000000 0.000033 Last message repeated 1 times rfps: 24.083333 0.000664 Last message repeated 1 times rfps: 24.166667 0.002098 Last message repeated 1 times rfps: 24.250000 0.004336 Last message repeated 1 times000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 rfps: 24.333333 0.007377 Last message repeated 1 times rfps: 24.416667 0.011222 Last message repeated 1 times rfps: 24.500000 0.015870 rfps: 47.416667 0.016601 rfps: 47.500000 0.011838 rfps: 47.583333 0.007878 Last message repeated 1 times rfps: 47.666667 0.004722 Last message repeated 1 times rfps: 47.750000 0.002369 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 1 times rfps: 47.833333 0.000820 Last message repeated 1 times rfps: 47.916667 0.000074 Last message repeated 1 times rfps: 48.000000 0.000131 Last message repeated 1 times rfps: 48.083333 0.000992 Last message repeated 1 times rfps: 48.166667 0.002656 Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0 rfps: 48.250000 0.005123 Last message repeated 1 times rfps: 48.333333 0.008393 Last message repeated 1 times rfps: 48.416667 0.012467 rfps: 48.500000 0.017344 rfps: 23.976024 0.000000 Last message repeated 1 times rfps: 47.952048 0.000000 Last message repeated 1 times [rtsp @ 00ab07e0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://192.168.0.48/out.264': Metadata: title : H.264 Video, streamed by the LIVE555 Media Server comment : out.264 Duration: N/A, start: 0.250256, bitrate: N/A Stream #0:0, 28, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc [h264 @ 00ab3020] detected 4 logical cores [h264 @ 00ab3020] RTP: missed 23 packets Video frame changed from size:0x0 format:none serial:-1 to size:1920x1080 format:yuv420p serial:1 [buffer @ 00b8df80] Setting entry with key 'video_size' to value '1920x1080' [buffer @ 00b8df80] Setting entry with key 'pix_fmt' to value '0' [buffer @ 00b8df80] Setting entry with key 'time_base' to value '1/90000' [buffer @ 00b8df80] Setting entry with key 'pixel_aspect' to value '1/1' [ffplay_buffer @ 040b8be0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:0/1 sar:1/1 sws_param: [crop @ 03e2aec0] Setting 'w' to value 'floor(in_w/2)*2' [crop @ 03e2aec0] Setting 'h' to value 'floor(in_h/2)*2' [ffplay_crop @ 04fed8c0] w:1920 h:1080 sar:1/1 -> w:1920 h:1080 sar:1/1 [h264 @ 00b8d140] Frame num gap 1 15KB vq= 119KB sq= 0B f=1/1 [h264 @ 00b8d140] no picture ooo [h264 @ 040b8660] Cannot use next picture in error concealment [h264 @ 00b8d520] no picture ooo [h264 @ 040b8660] concealing 3124 DC, 3124 AC, 3124 MV errors in P frame [h264 @ 00b8ee20] no picture ooo [h264 @ 00b8f420] no picture ooo 0KB vq= 85KB sq= 0B f=1/1 [h264 @ 040b8660] no picture ooo 0KB vq= 161KB sq= 0B f=1/1 [h264 @ 00b8d140] no picture ooo 0KB vq= 142KB sq= 0B f=1/1 [h264 @ 00b8d520] no picture ooo [h264 @ 00b8ee20] no picture ooo [h264 @ 00b8f420] no picture ooo [h264 @ 040b8660] no picture ooo [h264 @ 00b8d140] no picture ooo [h264 @ 00b8d520] no picture ooo 0KB vq= 60KB sq= 0B f=1/1 [h264 @ 00b8ee20] no picture ooo [h264 @ 00b8ee20] bytestream overread -3q= 249KB sq= 0B f=1/1 [h264 @ 00b8ee20] bytestream overread -9 [h264 @ 00b8ee20] error while decoding MB 67 67, bytestream (-9) [h264 @ 00b8ee20] concealing 102 DC, 102 AC, 102 MV errors in I frame [h264 @ 00b8d140] bytestream overread -22= 237KB sq= 0B f=1/1 [h264 @ 00b8d140] error while decoding MB 79 47, bytestream (-22) [h264 @ 00b8d140] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame [h264 @ 040b8660] bytestream overread -6q= 277KB sq= 0B f=1/1 [h264 @ 040b8660] error while decoding MB 4 54, bytestream (-6) [h264 @ 040b8660] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame [rtsp @ 00ab07e0] CSeq 5 expected, 0 received.4KB sq= 0B f=1/1 [h264 @ 00b8f420] bytestream overread -19= 280KB sq= 0B f=1/1 [h264 @ 00b8f420] error while decoding MB 18 49, bytestream (-19) [h264 @ 00b8f420] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame [rtsp @ 00ab07e0] Received BYE for stream 0 (1/1) sq= 0B f=1/1 40.72 A-V: 0.000 fd= 6 aq= 0KB vq= 0KB sq= 0B f=1/1 From timothygu99 at gmail.com Mon May 13 06:41:55 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Sun, 12 May 2013 21:41:55 -0700 Subject: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail In-Reply-To: References: Message-ID: On May 12, 2013 8:15 PM, "Wei Gao" wrote: > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers Too old. > configuration: --enable-static --enable-shared > WARNING: library configuration mismatch > avutil configuration: --enable-static --enable-shared > --enable-pthreads > avcodec configuration: --enable-static --enable-shared > --enable-pthreads > avformat configuration: --enable-static --enable-shared > --enable-pthreads > avdevice configuration: --enable-static --enable-shared > --enable-pthreads > avfilter configuration: --enable-static --enable-shared > --enable-pthreads > swscale configuration: --enable-static --enable-shared > --enable-pthreads > swresample configuration: --enable-static --enable-shared > --enable-pthreads Did you build the libs and the program differently? Complete command missing. Timothy From neltnerb at MIT.EDU Mon May 13 06:43:27 2013 From: neltnerb at MIT.EDU (Brian Neltner) Date: Mon, 13 May 2013 00:43:27 -0400 Subject: [FFmpeg-user] Strange Audio Rate Issues Message-ID: <1368420207.7737.13.camel@zeeman> Dear FFMPEG Users, Apologies for the hopefully obvious question, but I've been struggling with this for a few days and it's driving me nuts. I'm trying to do a screen capture from my desktop with captured audio. I am starting with the most trivial command I can generate to do this: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 15 -s 1920:1080 -i :0.0 -acodec libmp3lame output.mp4 The issue is that when I use this command to simultaneously do a screen capture along with audio capture from my pulseaudio capture port set to monitor it does not record at the proper audio rate, but claims it did. Examples: Video: https://www.dropbox.com/s/13hwuxd2p725re6/output.mp4 Audio: https://www.dropbox.com/s/vc15pvpvg74aj3q/output.mp3 The video clearly shows that the mp4 audio sample rate is 48000Hz, and shows clearly that sox is generating a 440Hz tone at 48000Hz sample rate. The audio file is directly outputting from sox into a file, and accurately represents what I hear through my speakers. As you can see, the mp4 file (same issue with avi, FWIW) has a frequency shifted sine wave from 440Hz and drifts out of audio sync rapidly. You can clearly see the levels on the mixer showing that it's not playing when it should be (along with watching the play command). This makes no sense to me; I've tried multiple audio codecs, multiple output formats (avi and mp4), multiple manual audio rates, I tried manually setting the video frame rate, but it all ends up the same. Obviously, this makes recording a screen capture with correctly synhronized audio in less constructed cases impossible. Can anyone explain to me what is going on? I am using ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1 Best regards, Brian From highgod0401 at gmail.com Mon May 13 06:58:29 2013 From: highgod0401 at gmail.com (highgod0401) Date: Mon, 13 May 2013 12:58:29 +0800 Subject: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail References: , Message-ID: <2013051312582765917010@gmail.com> I think it is the latest release version, and I think the release version is more stable than the git version. I build the libs and enable the pthreads today, the bug still exist. the output log is as follows: ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers built on May 13 2013 11:21:59 with gcc 4.6.2 (GCC) configuration: --enable-static --enable-shared WARNING: library configuration mismatch avutil configuration: --enable-static --enable-shared --enable-pthreads avcodec configuration: --enable-static --enable-shared --enable-pthreads avformat configuration: --enable-static --enable-shared --enable-pthreads avdevice configuration: --enable-static --enable-shared --enable-pthreads avfilter configuration: --enable-static --enable-shared --enable-pthreads swscale configuration: --enable-static --enable-shared --enable-pthreads swresample configuration: --enable-static --enable-shared --enable-pthreads libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [rtsp @ 00a008a0] SDP:= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 v=0 o=- 1368406375822985 1 IN IP4 192.168.0.48 s=H.264 Video, streamed by the LIVE555 Media Server i=out.264 t=0 0 a=tool:LIVE555 Streaming Media v2012.08.20 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server a=x-qt-text-inf:out.264 m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:500 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKKy0A8ARPy4CIAAAfSAAF3AB4wZU,aO8PLIs= a=control:track1 [rtsp @ 00a008a0] video codec set to: h264 [NULL @ 00a03060] RTP Packetization Mode: 1 [NULL @ 00a03060] RTP Profile IDC: 64 Profile IOP: 0 Level: 28 [NULL @ 00a03060] Extradata set to 006924c0 (size: 37)! [rtsp @ 00a008a0] hello state=0 0KB vq= 0KB sq= 0B f=0/0 [rtsp @ 00a008a0] All info found 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.416667 0.018115 rfps: 23.500000 0.013121 rfps: 23.583333 0.008932 Last message repeated 1 times= 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.666667 0.005545 Last message repeated 1 times-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 rfps: 23.750000 0.002962 Last message repeated 1 times rfps: 23.833333 0.001182 Last message repeated 1 times rfps: 23.916667 0.000206 Last message repeated 1 times rfps: 24.000000 0.000033 0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 1 times rfps: 24.083333 0.000663 Last message repeated 1 times rfps: 24.166667 0.002096 Last message repeated 1 times rfps: 24.250000 0.004333 Last message repeated 1 times rfps: 24.333333 0.007373 Last message repeated 1 times rfps: 24.416667 0.011217 Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0 rfps: 24.500000 0.015864 rfps: 47.416667 0.016612 rfps: 47.500000 0.011848 rfps: 47.583333 0.007887 Last message repeated 1 times rfps: 47.666667 0.004729 Last message repeated 1 times rfps: 47.750000 0.002374 Last message repeated 1 times rfps: 47.833333 0.000823 Last message repeated 1 times rfps: 47.916667 0.000075 Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0 rfps: 48.000000 0.000130 Last message repeated 1 times rfps: 48.083333 0.000989 Last message repeated 1 times rfps: 48.166667 0.002651 Last message repeated 1 times rfps: 48.250000 0.005116 Last message repeated 1 times rfps: 48.333333 0.008385 Last message repeated 1 times= 0KB vq= 0KB sq= 0B f=0/0 rfps: 48.416667 0.012457 rfps: 48.500000 0.017332 rfps: 23.976024 0.000000 Last message repeated 1 times rfps: 47.952048 0.000000 Last message repeated 1 times [rtsp @ 00a008a0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://192.168.0.48/out.264': Metadata: title : H.264 Video, streamed by the LIVE555 Media Server comment : out.264 Duration: N/A, start: 0.250256, bitrate: N/A Stream #0:0, 28, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc [h264 @ 00a03060] detected 4 logical cores [h264 @ 00a03060] RTP: missed 23 packetsq= 651KB sq= 0B f=0/0 Video frame changed from size:0x0 format:none serial:-1 to size:1920x1080 format:yuv420p serial:1 [buffer @ 00addae0] Setting entry with key 'video_size' to value '1920x1080' [buffer @ 00addae0] Setting entry with key 'pix_fmt' to value '0' [buffer @ 00addae0] Setting entry with key 'time_base' to value '1/90000' [buffer @ 00addae0] Setting entry with key 'pixel_aspect' to value '1/1' [ffplay_buffer @ 04d05fe0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:0/1 sar:1/1 sws_param: [crop @ 00adcfa0] Setting 'w' to value 'floor(in_w/2)*2' [crop @ 00adcfa0] Setting 'h' to value 'floor(in_h/2)*2' [ffplay_crop @ 03c9ff20] w:1920 h:1080 sar:1/1 -> w:1920 h:1080 sar:1/1 [h264 @ 00add180] Frame num gap 1 15KB vq= 245KB sq= 0B f=1/1 [h264 @ 00add180] no picture ooo [h264 @ 00adde40] no picture ooo [h264 @ 03f5c660] Cannot use next picture in error concealment [h264 @ 03f5c660] concealing 3124 DC, 3124 AC, 3124 MV errors in P frame [h264 @ 00adebe0] no picture ooo [h264 @ 00adf200] no picture ooo [h264 @ 03f5c660] no picture ooo 0KB vq= 181KB sq= 0B f=1/1 [h264 @ 00add180] no picture ooo [h264 @ 00adde40] no picture ooo [h264 @ 00adebe0] no picture ooo [h264 @ 00adf200] no picture ooo 0KB vq= 98KB sq= 0B f=1/1 [h264 @ 03f5c660] no picture ooo [h264 @ 00add180] no picture ooo [h264 @ 00adde40] no picture ooo 0KB vq= 41KB sq= 0B f=1/1 [h264 @ 00adebe0] no picture ooo [h264 @ 00adebe0] bytestream overread -3q= 272KB sq= 0B f=1/1 [h264 @ 00adebe0] bytestream overread -9 [h264 @ 00adebe0] error while decoding MB 67 67, bytestream (-9) [h264 @ 00adebe0] concealing 102 DC, 102 AC, 102 MV errors in I frame [h264 @ 00add180] bytestream overread -22= 188KB sq= 0B f=1/1 [h264 @ 00add180] error while decoding MB 79 47, bytestream (-22) [h264 @ 00add180] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame [h264 @ 03f5c660] bytestream overread -6q= 311KB sq= 0B f=1/1 [h264 @ 03f5c660] error while decoding MB 4 54, bytestream (-6) [h264 @ 03f5c660] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame [rtsp @ 00a008a0] CSeq 5 expected, 0 received.9KB sq= 0B f=1/1 [h264 @ 00adf200] bytestream overread -19= 297KB sq= 0B f=1/1 [h264 @ 00adf200] error while decoding MB 18 49, bytestream (-19) [h264 @ 00adf200] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame [rtsp @ 00a008a0] Received BYE for stream 0 (1/1) sq= 0B f=1/1 39.03 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 highgod0401 From: Timothy Gu Date: 2013-05-13 12:41 To: FFmpeg-user Subject: Re: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail On May 12, 2013 8:15 PM, "Wei Gao" wrote: > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers Too old. > configuration: --enable-static --enable-shared > WARNING: library configuration mismatch > avutil configuration: --enable-static --enable-shared > --enable-pthreads > avcodec configuration: --enable-static --enable-shared > --enable-pthreads > avformat configuration: --enable-static --enable-shared > --enable-pthreads > avdevice configuration: --enable-static --enable-shared > --enable-pthreads > avfilter configuration: --enable-static --enable-shared > --enable-pthreads > swscale configuration: --enable-static --enable-shared > --enable-pthreads > swresample configuration: --enable-static --enable-shared > --enable-pthreads Did you build the libs and the program differently? Complete command missing. Timothy _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From highgod0401 at gmail.com Mon May 13 07:01:00 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 13:01:00 +0800 Subject: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail In-Reply-To: <2013051312582765917010@gmail.com> References: <2013051312582765917010@gmail.com> Message-ID: the command it like this ffplay -i rtsp://192.168.0.48/out.264 2013/5/13 highgod0401 > ** > I think it is the latest release version, and I think the release version > is more stable than the git version. > I build the libs and enable the pthreads today, the bug still exist. the > output log is as follows: > > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > built on May 13 2013 11:21:59 with gcc 4.6.2 (GCC) > configuration: --enable-static --enable-shared > WARNING: library configuration mismatch > > avutil configuration: --enable-static --enable-shared --enable-pthreads > > avcodec configuration: --enable-static --enable-shared --enable-pthreads > > avformat configuration: --enable-static --enable-shared --enable-pthreads > > avdevice configuration: --enable-static --enable-shared --enable-pthreads > > avfilter configuration: --enable-static --enable-shared --enable-pthreads > > swscale configuration: --enable-static --enable-shared --enable-pthreads > > swresample configuration: --enable-static --enable-shared --enable-pthreads > libavutil 52. 18.100 / 52. 18.100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > [rtsp @ 00a008a0] SDP:= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > v=0 > o=- 1368406375822985 1 IN IP4 192.168.0.48 > s=H.264 Video, streamed by the LIVE555 Media Server > i=out.264 > t=0 0 > a=tool:LIVE555 Streaming Media v2012.08.20 > a=type:broadcast > a=control:* > a=range:npt=0- > a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server > a=x-qt-text-inf:out.264 > m=video 0 RTP/AVP 96 > c=IN IP4 0.0.0.0 > b=AS:500 > a=rtpmap:96 H264/90000 > > a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKKy0A8ARPy4CIAAAfSAAF3AB4wZU,aO8PLIs= > a=control:track1 > > [rtsp @ 00a008a0] video codec set to: h264 > [NULL @ 00a03060] RTP Packetization Mode: 1 > [NULL @ 00a03060] RTP Profile IDC: 64 Profile IOP: 0 Level: 28 > [NULL @ 00a03060] Extradata set to 006924c0 (size: 37)! > [rtsp @ 00a008a0] hello state=0 0KB vq= 0KB sq= 0B f=0/0 > [rtsp @ 00a008a0] All info found 0KB vq= 0KB sq= 0B f=0/0 > rfps: 23.416667 0.018115 > rfps: 23.500000 0.013121 > rfps: 23.583333 0.008932 > Last message repeated 1 times= 0KB vq= 0KB sq= 0B f=0/0 > rfps: 23.666667 0.005545 > > Last message repeated 1 times-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > rfps: 23.750000 0.002962 > Last message repeated 1 times > rfps: 23.833333 0.001182 > Last message repeated 1 times > rfps: 23.916667 0.000206 > Last message repeated 1 times > rfps: 24.000000 0.000033 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > Last message repeated 1 times > rfps: 24.083333 0.000663 > Last message repeated 1 times > rfps: 24.166667 0.002096 > Last message repeated 1 times > rfps: 24.250000 0.004333 > Last message repeated 1 times > rfps: 24.333333 0.007373 > Last message repeated 1 times > rfps: 24.416667 0.011217 > Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0 > rfps: 24.500000 0.015864 > rfps: 47.416667 0.016612 > rfps: 47.500000 0.011848 > rfps: 47.583333 0.007887 > Last message repeated 1 times > rfps: 47.666667 0.004729 > Last message repeated 1 times > rfps: 47.750000 0.002374 > Last message repeated 1 times > rfps: 47.833333 0.000823 > Last message repeated 1 times > rfps: 47.916667 0.000075 > Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0 > rfps: 48.000000 0.000130 > Last message repeated 1 times > rfps: 48.083333 0.000989 > Last message repeated 1 times > rfps: 48.166667 0.002651 > Last message repeated 1 times > rfps: 48.250000 0.005116 > Last message repeated 1 times > rfps: 48.333333 0.008385 > Last message repeated 1 times= 0KB vq= 0KB sq= 0B f=0/0 > rfps: 48.416667 0.012457 > rfps: 48.500000 0.017332 > rfps: 23.976024 0.000000 > Last message repeated 1 times > rfps: 47.952048 0.000000 > Last message repeated 1 times > [rtsp @ 00a008a0] Estimating duration from bitrate, this may be inaccurate > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264': > Metadata: > title : H.264 Video, streamed by the LIVE555 Media Server > comment : out.264 > Duration: N/A, start: 0.250256, bitrate: N/A > > Stream #0:0, 28, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > [h264 @ 00a03060] detected 4 logical cores > [h264 @ 00a03060] RTP: missed 23 packetsq= 651KB sq= 0B f=0/0 > > Video frame changed from size:0x0 format:none serial:-1 to size:1920x1080 format:yuv420p serial:1 > > [buffer @ 00addae0] Setting entry with key 'video_size' to value '1920x1080' > [buffer @ 00addae0] Setting entry with key 'pix_fmt' to value '0' > [buffer @ 00addae0] Setting entry with key 'time_base' to value '1/90000' > [buffer @ 00addae0] Setting entry with key 'pixel_aspect' to value '1/1' > > [ffplay_buffer @ 04d05fe0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:0/1 sar:1/1 sws_param: > [crop @ 00adcfa0] Setting 'w' to value 'floor(in_w/2)*2' > [crop @ 00adcfa0] Setting 'h' to value 'floor(in_h/2)*2' > [ffplay_crop @ 03c9ff20] w:1920 h:1080 sar:1/1 -> w:1920 h:1080 sar:1/1 > [h264 @ 00add180] Frame num gap 1 15KB vq= 245KB sq= 0B f=1/1 > [h264 @ 00add180] no picture ooo > [h264 @ 00adde40] no picture ooo > [h264 @ 03f5c660] Cannot use next picture in error concealment > [h264 @ 03f5c660] concealing 3124 DC, 3124 AC, 3124 MV errors in P frame > [h264 @ 00adebe0] no picture ooo > [h264 @ 00adf200] no picture ooo > [h264 @ 03f5c660] no picture ooo 0KB vq= 181KB sq= 0B f=1/1 > [h264 @ 00add180] no picture ooo > [h264 @ 00adde40] no picture ooo > [h264 @ 00adebe0] no picture ooo > [h264 @ 00adf200] no picture ooo 0KB vq= 98KB sq= 0B f=1/1 > [h264 @ 03f5c660] no picture ooo > [h264 @ 00add180] no picture ooo > [h264 @ 00adde40] no picture ooo 0KB vq= 41KB sq= 0B f=1/1 > [h264 @ 00adebe0] no picture ooo > [h264 @ 00adebe0] bytestream overread -3q= 272KB sq= 0B f=1/1 > [h264 @ 00adebe0] bytestream overread -9 > [h264 @ 00adebe0] error while decoding MB 67 67, bytestream (-9) > [h264 @ 00adebe0] concealing 102 DC, 102 AC, 102 MV errors in I frame > [h264 @ 00add180] bytestream overread -22= 188KB sq= 0B f=1/1 > [h264 @ 00add180] error while decoding MB 79 47, bytestream (-22) > [h264 @ 00add180] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame > [h264 @ 03f5c660] bytestream overread -6q= 311KB sq= 0B f=1/1 > [h264 @ 03f5c660] error while decoding MB 4 54, bytestream (-6) > [h264 @ 03f5c660] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame > [rtsp @ 00a008a0] CSeq 5 expected, 0 received.9KB sq= 0B f=1/1 > [h264 @ 00adf200] bytestream overread -19= 297KB sq= 0B f=1/1 > [h264 @ 00adf200] error while decoding MB 18 49, bytestream (-19) > [h264 @ 00adf200] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame > [rtsp @ 00a008a0] Received BYE for stream 0 (1/1) sq= 0B f=1/1 > 39.03 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > ------------------------------ > highgod0401 > > *From:* Timothy Gu > *Date:* 2013-05-13 12:41 > *To:* FFmpeg-user > *Subject:* Re: [FFmpeg-user] Hi, I have some problems on ffplay display > the rtsp h264 stream, the output is in the mail > On May 12, 2013 8:15 PM, "Wei Gao" wrote: > > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > > Too old. > > > configuration: --enable-static --enable-shared > > WARNING: library configuration mismatch > > avutil configuration: --enable-static --enable-shared > > --enable-pthreads > > avcodec configuration: --enable-static --enable-shared > > --enable-pthreads > > avformat configuration: --enable-static --enable-shared > > --enable-pthreads > > avdevice configuration: --enable-static --enable-shared > > --enable-pthreads > > avfilter configuration: --enable-static --enable-shared > > --enable-pthreads > > swscale configuration: --enable-static --enable-shared > > --enable-pthreads > > swresample configuration: --enable-static --enable-shared > > --enable-pthreads > > Did you build the libs and the program differently? > > Complete command missing. > > Timothy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From fingcmo at gmail.com Mon May 13 07:14:54 2013 From: fingcmo at gmail.com (Fing Cmo) Date: Sun, 12 May 2013 22:14:54 -0700 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <518DEFEF.9080000@walterebert.com> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> <518DEFEF.9080000@walterebert.com> Message-ID: Walter, Just to correct and add to the test list. I tested your HLS test page on the following devices on their Chrome browsers. Latest official OS/Firmware versions as of today. Galaxy Note 2 -------------------- 1st AND 4th video play (No Flash). Google Nexus 4 (Phone) ----- 1st AND 4th video play (No Flash). Google Nexus 7 (Tablet) ----- 1st AND 4th video play (No Flash). iPhone 4 --------------------------- All 4 HTML5 videos play (No Flash). iPhone 5 --------------------------- All 4 HTML5 videos play (No Flash). Google TV (Vizio VAP430) - ALL 5 videos play including the flash one. Note that for Google TV, it plays in spite of your disclaimer: "*Note:* AddType application/vnd.apple.mpegurl m3u8 #Does not work on Android So apparently it works on that Android :) Thanks, FC. ........................... On Sat, May 11, 2013 at 12:14 AM, Walter Ebert wrote: > > If you don't mind, can you provide the ffmpeg commands you used to > > generate the video segments? > > The commands are on Bitbucket: > https://bitbucket.org/walterebert/ffmpeg-hls/src > > > Do the exact segments play on iDevices as well? > > I guess I can test those later on iPhone :) > > The segments play on iOS devices. Although there is a problem on older > devices with a resolution of 480x360 pixels (and iOS 4.2): > - The first video can be started, but actually does not play because it > contains higher resolution streams. > - The 2nd and 3rd video cannot be started. > - The 4th video with the 480x270.m3u8 stream play just fine. > > I would have expected that the device would automatically select the > highest resolution it can play. > > On iPad the videos play without any problems. iPad 1 cannot play full HD > (1920x1080) or higher. That is why the highest resolution on test page > is 1280x720 pixels. > > >> I looked at your test page and found that your 3rd example has a typo in > >> the mime type: appplication/vnd.apple.mpegURL > >> > >> It should be application/vnd.apple.mpegURL > >> > >> (Note your mistaken triple "p") > > Thanks Timothy for catching that. I corrected the MIME type. > > Cheers, > Walter > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ylathouris at gmail.com Mon May 13 07:21:06 2013 From: ylathouris at gmail.com (Yani Lathouris) Date: Mon, 13 May 2013 15:21:06 +1000 Subject: [FFmpeg-user] Color Shift when encoding DNxHD QuickTime video on Windows Message-ID: Hi I am a software developer working for an animation studio. I have been tasked with creating DNxHD QuickTime videos which are then imported into Avid Media Composer (An Editing Suite Application using DNxHD and MXF as it's preferred codec and format). Our studio uses Windows 7. I have noticed a color shift when comparing the media encoded by FFmpeg to the media created by Avid when importing the frames directly (Note: Avid will encode a DNxHD MXF from the image files on import). We create the QuickTime videos ourselves because it reduces the import time given that Avid will only change the video container without having to do any real encoding. I hope this makes sense, I am not an expert in this area. I have compared the output when using other software packages such as RVIO and Nuke. RVIO doesn't match the video created by Avid but it also doesn't match the video created by FFmpeg whereas Nuke is able to match the video created by Avid. I am interested to learn about what causes the color shift. Attached is the output from the FFmpeg command I am using and the output from an ffprobe query on both an input image and the output video. Note: The input images are in sRGB color space. Any feedback will be much appreciated. -------------- next part -------------- C:\Windows>ffmpeg -f image2 -r 25 -i "C:\temp\input\image.%04d.tiff" -s 1920x1080 -vcodec dnxhd -b:v 185M -r 25 -pix_fmt yuv422p -mbd rd -an "c:\temp\output_video.mov" ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg developers built on Nov 6 2011 22:02:08 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab le-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --en able-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable- libxvid --enable-zlib libavutil 51. 24. 0 / 51. 24. 0 libavcodec 53. 28. 0 / 53. 28. 0 libavformat 53. 19. 0 / 53. 19. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 47. 0 / 2. 47. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, image2, from 'C:\temp\input\image.%04d.tiff': Duration: 00:00:00.44, start: 0.000000, bitrate: N/A Stream #0:0: Video: tiff, rgb24, 1280x720, 25 tbr, 25 tbn, 25 tbc [buffer @ 034E8A40] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [scale @ 003E33E0] w:1280 h:720 fmt:rgb24 -> w:1920 h:1080 fmt:yuv422p flags:0x4 Output #0, mov, to 'c:\temp\output_video.mov': Metadata: encoder : Lavf53.19.0 Stream #0:0: Video: dnxhd (hq) (AVdn / 0x6E645641), yuv422p, 1920x1080, q=2-31, 185000 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (tiff -> dnxhd) Press [q] to stop, [?] for help frame= 11 fps= 2 q=30.0 Lsize= 9857kB time=00:00:00.44 bitrate=183517.0kbits/s video:9856kB audio:0kB global headers:0kB muxing overhead 0.008818% -------------- next part -------------- C:\Windows>ffprobe -print_format json -show_format -show_streams "c:\temp\input\image.0000.tiff" ffprobe version N-40640-g5edd4fc Copyright (c) 2007-2012 the FFmpeg developers built on May 13 2012 18:02:34 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 50.100 / 51. 50.100 libavcodec 54. 21.101 / 54. 21.101 libavformat 54. 4.100 / 54. 4.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.105 / 2. 72.105 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 libpostproc 52. 0.100 / 52. 0.100 {Input #0, image2, from 'c:\temp\input\image.0000.tiff': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: tiff, rgb24, 1280x720, 25 tbr, 25 tbn, 25 tbc "streams": [ { "index": 0, "codec_name": "tiff", "codec_long_name": "TIFF image", "codec_type": "video", "codec_time_base": "1/25", "codec_tag_string": "[0][0][0][0]", "codec_tag": "0x0000", "width": 1280, "height": 720, "has_b_frames": 0, "pix_fmt": "rgb24", "level": -99, "r_frame_rate": "25/1", "avg_frame_rate": "0/0", "time_base": "1/25", "start_time": "0.000000", "duration": "0.040000" } ], "format": { "filename": "c:\\temp\\input\\image.0000.tiff", "nb_streams": 1, "format_name": "image2", "format_long_name": "image2 sequence", "start_time": "0.000000", "duration": "0.040000" } } -------------- next part -------------- C:\Windows>ffprobe -print_format json -show_format -show_streams "c:\temp\output_video.mov" ffprobe version N-40640-g5edd4fc Copyright (c) 2007-2012 the FFmpeg developers built on May 13 2012 18:02:34 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 50.100 / 51. 50.100 libavcodec 54. 21.101 / 54. 21.101 libavformat 54. 4.100 / 54. 4.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.105 / 2. 72.105 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 libpostproc 52. 0.100 / 52. 0.100 {Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:\temp\output_video.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt creation_time : 1970-01-01 00:00:00 encoder : Lavf53.19.0 Duration: 00:00:00.44, start: 0.000000, bitrate: 183516 kb/s Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080, 183500 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : DataHandler "streams": [ { "index": 0, "codec_name": "dnxhd", "codec_long_name": "VC3/DNxHD", "codec_type": "video", "codec_time_base": "1/25", "codec_tag_string": "AVdn", "codec_tag": "0x6e645641", "width": 1920, "height": 1080, "has_b_frames": 0, "pix_fmt": "yuv422p", "level": -99, "r_frame_rate": "25/1", "avg_frame_rate": "25/1", "time_base": "1/25", "start_time": "0.000000", "duration": "0.440000", "bit_rate": "183500800", "nb_frames": "11", "tags": { "creation_time": "1970-01-01 00:00:00", "language": "eng", "handler_name": "DataHandler" } } ], "format": { "filename": "c:\\temp\\output_video.mov", "nb_streams": 1, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime/MPEG-4/Motion JPEG 2000 format", "start_time": "0.000000", "duration": "0.440000", "size": "10093434", "bit_rate": "183516981", "tags": { "major_brand": "qt ", "minor_version": "512", "compatible_brands": "qt ", "creation_time": "1970-01-01 00:00:00", "encoder": "Lavf53.19.0" } } } From highgod0401 at gmail.com Mon May 13 07:24:40 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 13:24:40 +0800 Subject: [FFmpeg-user] Hi, I have some problems on ffplay display the rtsp h264 stream, the output is in the mail In-Reply-To: References: <2013051312582765917010@gmail.com> Message-ID: 2013/5/13 Wei Gao > the command it like this > ffplay -i rtsp://192.168.0.48/out.264 > > > > 2013/5/13 highgod0401 > >> ** >> I think it is the latest release version, and I think the release version >> is more stable than the git version. >> >> >> Did you build the libs and the program differently? >> >> Complete command missing. >> >> Timothy >> > I use the 20130509 version ffplay on http://ffmpeg.zeranoe.com/builds/, the result is the same as the version 1.2.1, the log is as follows: but if I use ffplay to display it directly, the result is correct, no error print E:\MCW_RapidFire_SDK\ffmpeg-20130509-git-13cb6ed-win32-static\ffmpeg-20130509-git-13cb6ed-win32-static\bin>ffplay.exe -i rtsp://192.168.0.48/out.264 ffplay version N-52941-g13cb6ed Copyright (c) 2003-2013 the FFmpeg developers built on May 9 2013 17:18:28 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 Metadata: title : H.264 Video, streamed by the LIVE555 Media Server comment : out.264 Duration: N/A, start: 0.250267, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc [h264 @ 0593fa20] error while decoding MB 67 67, bytestream (-9)1 [h264 @ 0593fa20] concealing 102 DC, 102 AC, 102 MV errors in I frame [h264 @ 0232f840] error while decoding MB 79 47, bytestream (-22) [h264 @ 0232f840] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame [h264 @ 0588ede0] error while decoding MB 4 54, bytestream (-6)/1 [h264 @ 0588ede0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame [rtsp @ 0226dda0] CSeq 5 expected, 0 received.5KB sq= 0B f=1/1 [h264 @ 0582c0e0] error while decoding MB 18 49, bytestream (-19) [h264 @ 0582c0e0] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame 39.46 A-V: 0.000 fd= 9 aq= 0KB vq= 0KB sq= 0B f=1/1 E:\MCW_RapidFire_SDK\ffmpeg-20130509-git-13cb6ed-win32-static\ffmpeg-20130509-git-13cb6ed-win32-static\bin> > _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From highgod0401 at gmail.com Mon May 13 10:11:12 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 16:11:12 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg Message-ID: Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there seems some bugs in ffmpeg's rtsp, which I have paste the log. I found in internel that, ffmpeg also can use with live555, that live555 receive the rtsp stream and ffmpeg decode the stream, is there anydemo to use it? does anyone can every use it? Thanks Best regards From zsq20030710 at gmail.com Mon May 13 10:23:40 2013 From: zsq20030710 at gmail.com (stanley zhang) Date: Mon, 13 May 2013 16:23:40 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: I just tried to play the streaming media as a client of IPCAM (Hikvision DS-2CD2012). It runs smoothly. Here is the command: ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 On Mon, May 13, 2013 at 4:11 PM, Wei Gao wrote: > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there seems > some bugs in ffmpeg's rtsp, which I have paste the log. > > I found in internel that, ffmpeg also can use with live555, that live555 > receive the rtsp stream and ffmpeg decode the stream, is there anydemo to > use it? > > does anyone can every use it? > > Thanks > Best regards > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From highgod0401 at gmail.com Mon May 13 10:32:58 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 16:32:58 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: 2013/5/13 stanley zhang > I just tried to play the streaming media as a client of IPCAM (Hikvision > DS-2CD2012). It runs smoothly. > > Here is the command: > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 Hi, thanks, we test it to decode h264 stream and the error log is as follow: ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) configuration: --enable-static --enable-shared WARNING: library configuration mismatch avutil configuration: --enable-static --enable-shared --enable-pthreads avcodec configuration: --enable-static --enable-shared --enable-pthreads avformat configuration: --enable-static --enable-shared --enable-pthreads avdevice configuration: --enable-static --enable-shared --enable-pthreads avfilter configuration: --enable-static --enable-shared --enable-pthreads swscale configuration: --enable-static --enable-shared --enable-pthreads swresample configuration: --enable-static --enable-shared --enable-pthreads libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [rtsp @ 00a808a0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 Metadata: title : H.264 Video, streamed by the LIVE555 Media Server comment : out.264 Duration: N/A, start: 0.250256, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 and you can see that the image of video is not correct. I search in the internet, the earlist ffmpeg seems correct, but the latest ffmpeg seems not correct. it seems some bugs in udp and rtsp, and make the h264 decode error. Thanks Best regards > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao wrote: > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there seems > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > I found in internel that, ffmpeg also can use with live555, that live555 > > receive the rtsp stream and ffmpeg decode the stream, is there anydemo to > > use it? > > > > does anyone can every use it? > > > > Thanks > > Best regards > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ajsinclair at gmail.com Mon May 13 10:48:48 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Mon, 13 May 2013 18:48:48 +1000 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: ffmpeg and ffplay certainly do rtsp. What is the format of the out.264 file you are trying to stream? If it is a VOD for it to play correctly would likely require it to be streaming hinted mp4. Can you do ffplay or ffprobe on the out.264 file and send the results of that. You should also look at the sdp file generated by live555. On 13 May 2013 18:32, Wei Gao wrote: > 2013/5/13 stanley zhang > > > I just tried to play the streaming media as a client of IPCAM (Hikvision > > DS-2CD2012). It runs smoothly. > > > > Here is the command: > > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 > > Hi, thanks, we test it to decode h264 stream and the error log is as > follow: > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) > configuration: --enable-static --enable-shared > WARNING: library configuration mismatch > avutil configuration: --enable-static --enable-shared > --enable-pthreads > avcodec configuration: --enable-static --enable-shared > --enable-pthreads > avformat configuration: --enable-static --enable-shared > --enable-pthreads > avdevice configuration: --enable-static --enable-shared > --enable-pthreads > avfilter configuration: --enable-static --enable-shared > --enable-pthreads > swscale configuration: --enable-static --enable-shared > --enable-pthreads > swresample configuration: --enable-static --enable-shared > --enable-pthreads > libavutil 52. 18.100 / 52. 18.100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > [rtsp @ 00a808a0] Estimating duration from bitrate, this may be inaccurate > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 > Metadata: > title : H.264 Video, streamed by the LIVE555 Media Server > comment : out.264 > Duration: N/A, start: 0.250256, bitrate: N/A > Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], > 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 > [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame > [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) > [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame > [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 > [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame > [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 > [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) > [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame > 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > > and you can see that the image of video is not correct. I search in the > internet, the earlist ffmpeg seems correct, but the latest ffmpeg seems not > correct. it seems some bugs in udp and rtsp, and make the h264 decode > error. > > Thanks > Best regards > > > > > > > > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao wrote: > > > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there > seems > > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > > > I found in internel that, ffmpeg also can use with live555, that > live555 > > > receive the rtsp stream and ffmpeg decode the stream, is there anydemo > to > > > use it? > > > > > > does anyone can every use it? > > > > > > Thanks > > > Best regards > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From highgod0401 at gmail.com Mon May 13 10:58:54 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 16:58:54 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: 2013/5/13 Andrew Sinclair > ffmpeg and ffplay certainly do rtsp. > > What is the format of the out.264 file you are trying to stream? If it is a > VOD for it to play correctly would likely require it to be streaming hinted > mp4. Can you do ffplay or ffprobe on the out.264 file and send the results > of that. > I use ffmpeg and libx264 to gernate the out.264, I think it is the h264 stream, yes ffplay can play it ,and but not correct in some frames. just like the log I paste in the previous mail. I want to ust ffmpeg first, but it seems that the bug has exist for a long time.I serarch in internet, and someone report the bug in 2011. > > You should also look at the sdp file generated by live555. > can you give the address of the code? thanks best regards > > > > > On 13 May 2013 18:32, Wei Gao wrote: > > > 2013/5/13 stanley zhang > > > > > I just tried to play the streaming media as a client of IPCAM > (Hikvision > > > DS-2CD2012). It runs smoothly. > > > > > > Here is the command: > > > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 > > > > Hi, thanks, we test it to decode h264 stream and the error log is as > > follow: > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > > built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) > > configuration: --enable-static --enable-shared > > WARNING: library configuration mismatch > > avutil configuration: --enable-static --enable-shared > > --enable-pthreads > > avcodec configuration: --enable-static --enable-shared > > --enable-pthreads > > avformat configuration: --enable-static --enable-shared > > --enable-pthreads > > avdevice configuration: --enable-static --enable-shared > > --enable-pthreads > > avfilter configuration: --enable-static --enable-shared > > --enable-pthreads > > swscale configuration: --enable-static --enable-shared > > --enable-pthreads > > swresample configuration: --enable-static --enable-shared > > --enable-pthreads > > libavutil 52. 18.100 / 52. 18.100 > > libavcodec 54. 92.100 / 54. 92.100 > > libavformat 54. 63.104 / 54. 63.104 > > libavdevice 54. 3.103 / 54. 3.103 > > libavfilter 3. 42.103 / 3. 42.103 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > [rtsp @ 00a808a0] Estimating duration from bitrate, this may be > inaccurate > > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 > > Metadata: > > title : H.264 Video, streamed by the LIVE555 Media Server > > comment : out.264 > > Duration: N/A, start: 0.250256, bitrate: N/A > > Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR > 16:9], > > 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > > [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 > > [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame > > [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) > > [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame > > [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 > > [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame > > [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 > > [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) > > [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame > > 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > > > > and you can see that the image of video is not correct. I search in the > > internet, the earlist ffmpeg seems correct, but the latest ffmpeg seems > not > > correct. it seems some bugs in udp and rtsp, and make the h264 decode > > error. > > > > Thanks > > Best regards > > > > > > > > > > > > > > > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao > wrote: > > > > > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there > > seems > > > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > > > > > I found in internel that, ffmpeg also can use with live555, that > > live555 > > > > receive the rtsp stream and ffmpeg decode the stream, is there > anydemo > > to > > > > use it? > > > > > > > > does anyone can every use it? > > > > > > > > Thanks > > > > Best regards > > > > _______________________________________________ > > > > ffmpeg-user mailing list > > > > ffmpeg-user at ffmpeg.org > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From zsq20030710 at gmail.com Mon May 13 11:00:54 2013 From: zsq20030710 at gmail.com (stanley zhang) Date: Mon, 13 May 2013 17:00:54 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: It seems that the data received is not entact,which often happens at the start of decoding the incoming stream video. Does it go well after a short period? On Mon, May 13, 2013 at 4:32 PM, Wei Gao wrote: > 2013/5/13 stanley zhang > > > I just tried to play the streaming media as a client of IPCAM (Hikvision > > DS-2CD2012). It runs smoothly. > > > > Here is the command: > > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 > > Hi, thanks, we test it to decode h264 stream and the error log is as > follow: > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) > configuration: --enable-static --enable-shared > WARNING: library configuration mismatch > avutil configuration: --enable-static --enable-shared > --enable-pthreads > avcodec configuration: --enable-static --enable-shared > --enable-pthreads > avformat configuration: --enable-static --enable-shared > --enable-pthreads > avdevice configuration: --enable-static --enable-shared > --enable-pthreads > avfilter configuration: --enable-static --enable-shared > --enable-pthreads > swscale configuration: --enable-static --enable-shared > --enable-pthreads > swresample configuration: --enable-static --enable-shared > --enable-pthreads > libavutil 52. 18.100 / 52. 18.100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > [rtsp @ 00a808a0] Estimating duration from bitrate, this may be inaccurate > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 > Metadata: > title : H.264 Video, streamed by the LIVE555 Media Server > comment : out.264 > Duration: N/A, start: 0.250256, bitrate: N/A > Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], > 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 > [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame > [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) > [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame > [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 > [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame > [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 > [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) > [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame > 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > > and you can see that the image of video is not correct. I search in the > internet, the earlist ffmpeg seems correct, but the latest ffmpeg seems not > correct. it seems some bugs in udp and rtsp, and make the h264 decode > error. > > Thanks > Best regards > > > > > > > > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao wrote: > > > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there > seems > > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > > > I found in internel that, ffmpeg also can use with live555, that > live555 > > > receive the rtsp stream and ffmpeg decode the stream, is there anydemo > to > > > use it? > > > > > > does anyone can every use it? > > > > > > Thanks > > > Best regards > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ajsinclair at gmail.com Mon May 13 11:02:53 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Mon, 13 May 2013 19:02:53 +1000 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> <518DEFEF.9080000@walterebert.com> Message-ID: Hi All, Sorry to pipe in late but after spending a lot of time recently on Android I can tell you there is no simple answer for HLS to work consistently across all devices. The underlying issue is that every hardware variation has a different video decoder chip and by nature this means that they all have slightly different video players compiled which are then called via JNI from the Android application layer. Now while many of these players are deriviatives of ffmpeg/ffplay they are often from way old versions. Best bet is to only go with a single bitrate if you want it to work reasonably well as multi bitrate will vary massively from device to device. If you really want good Android support you need to go with a custom media player and you can launch these via a webpage using an intent or just embed them in an app. For maximum compatibility I have also found that some Android devices don't like a lot of variation between what they get in the playlists and what they see in the segments so you should force keyframes so that the segment doesn't have chop on where the next I frame comes. I have been using a wrapper around ffmpeg to generate the keyframe string https://gist.github.com/sinkers/5567058 though should time permit I would like to get this into the ffmpeg codebase. However if anyone was to map which variations of HLS work and don't work on the many many devices it would be quite useful! Regards, Andrew On 13 May 2013 15:14, Fing Cmo wrote: > Walter, > > Just to correct and add to the test list. > I tested your HLS test page on the following devices on their Chrome > browsers. > Latest official OS/Firmware versions as of today. > > Galaxy Note 2 -------------------- 1st AND 4th video play (No Flash). > Google Nexus 4 (Phone) ----- 1st AND 4th video play (No Flash). > Google Nexus 7 (Tablet) ----- 1st AND 4th video play (No Flash). > iPhone 4 --------------------------- All 4 HTML5 videos play (No Flash). > iPhone 5 --------------------------- All 4 HTML5 videos play (No Flash). > Google TV (Vizio VAP430) - ALL 5 videos play including the flash one. > > Note that for Google TV, it plays in spite of your disclaimer: > > "*Note:* AddType application/vnd.apple.mpegurl m3u8 #Does not work on > Android > > So apparently it works on that Android :) > > Thanks, > FC. > ........................... > > > On Sat, May 11, 2013 at 12:14 AM, Walter Ebert >wrote: > > > > If you don't mind, can you provide the ffmpeg commands you used to > > > generate the video segments? > > > > The commands are on Bitbucket: > > https://bitbucket.org/walterebert/ffmpeg-hls/src > > > > > Do the exact segments play on iDevices as well? > > > I guess I can test those later on iPhone :) > > > > The segments play on iOS devices. Although there is a problem on older > > devices with a resolution of 480x360 pixels (and iOS 4.2): > > - The first video can be started, but actually does not play because it > > contains higher resolution streams. > > - The 2nd and 3rd video cannot be started. > > - The 4th video with the 480x270.m3u8 stream play just fine. > > > > I would have expected that the device would automatically select the > > highest resolution it can play. > > > > On iPad the videos play without any problems. iPad 1 cannot play full HD > > (1920x1080) or higher. That is why the highest resolution on test page > > is 1280x720 pixels. > > > > >> I looked at your test page and found that your 3rd example has a typo > in > > >> the mime type: appplication/vnd.apple.mpegURL > > >> > > >> It should be application/vnd.apple.mpegURL > > >> > > >> (Note your mistaken triple "p") > > > > Thanks Timothy for catching that. I corrected the MIME type. > > > > Cheers, > > Walter > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From highgod0401 at gmail.com Mon May 13 11:12:02 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 17:12:02 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: 2013/5/13 stanley zhang > It seems that the data received is not entact,which often happens at the > start of decoding the incoming stream video. > Does it go well after a short period? it happened even I tested on my own computer. Yes, the video play correct after a short period, but every time I run the ffplay, the output errors are the same. So I don't think it is a netwrok problem.And the evnironment of our lan is very good Thanks for your reply Best regards > > > > On Mon, May 13, 2013 at 4:32 PM, Wei Gao wrote: > > > 2013/5/13 stanley zhang > > > > > I just tried to play the streaming media as a client of IPCAM > (Hikvision > > > DS-2CD2012). It runs smoothly. > > > > > > Here is the command: > > > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 > > > > Hi, thanks, we test it to decode h264 stream and the error log is as > > follow: > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > > built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) > > configuration: --enable-static --enable-shared > > WARNING: library configuration mismatch > > avutil configuration: --enable-static --enable-shared > > --enable-pthreads > > avcodec configuration: --enable-static --enable-shared > > --enable-pthreads > > avformat configuration: --enable-static --enable-shared > > --enable-pthreads > > avdevice configuration: --enable-static --enable-shared > > --enable-pthreads > > avfilter configuration: --enable-static --enable-shared > > --enable-pthreads > > swscale configuration: --enable-static --enable-shared > > --enable-pthreads > > swresample configuration: --enable-static --enable-shared > > --enable-pthreads > > libavutil 52. 18.100 / 52. 18.100 > > libavcodec 54. 92.100 / 54. 92.100 > > libavformat 54. 63.104 / 54. 63.104 > > libavdevice 54. 3.103 / 54. 3.103 > > libavfilter 3. 42.103 / 3. 42.103 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > [rtsp @ 00a808a0] Estimating duration from bitrate, this may be > inaccurate > > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 > > Metadata: > > title : H.264 Video, streamed by the LIVE555 Media Server > > comment : out.264 > > Duration: N/A, start: 0.250256, bitrate: N/A > > Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR > 16:9], > > 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > > [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 > > [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame > > [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) > > [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I frame > > [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 > > [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I frame > > [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 > > [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) > > [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I frame > > 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > > > > and you can see that the image of video is not correct. I search in the > > internet, the earlist ffmpeg seems correct, but the latest ffmpeg seems > not > > correct. it seems some bugs in udp and rtsp, and make the h264 decode > > error. > > > > Thanks > > Best regards > > > > > > > > > > > > > > > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao > wrote: > > > > > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there > > seems > > > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > > > > > I found in internel that, ffmpeg also can use with live555, that > > live555 > > > > receive the rtsp stream and ffmpeg decode the stream, is there > anydemo > > to > > > > use it? > > > > > > > > does anyone can every use it? > > > > > > > > Thanks > > > > Best regards > > > > _______________________________________________ > > > > ffmpeg-user mailing list > > > > ffmpeg-user at ffmpeg.org > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From h.reindl at thelounge.net Mon May 13 11:26:41 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 13 May 2013 11:26:41 +0200 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: <5190B1D1.4000802@thelounge.net> is there a reason why you not strip repeated list-footers? Am 13.05.2013 11:12, schrieb Wei Gao: >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>> >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Mon May 13 11:27:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 May 2013 09:27:02 +0000 (UTC) Subject: [FFmpeg-user] Color Shift when encoding DNxHD QuickTime video on Windows References: Message-ID: Yani Lathouris gmail.com> writes: > ffmpeg version N-34549-g13b7781 This looks too old, please test current git head. Did you try with -sws_flags full_chroma_int ? Carl Eugen From highgod0401 at gmail.com Mon May 13 11:31:17 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 17:31:17 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: <5190B1D1.4000802@thelounge.net> References: <5190B1D1.4000802@thelounge.net> Message-ID: 2013/5/13 Reindl Harald > is there a reason why you not strip repeated list-footers? > > > no sorry. what is your mean? I must write the list-footers? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From h.reindl at thelounge.net Mon May 13 11:44:38 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 13 May 2013 11:44:38 +0200 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: <5190B1D1.4000802@thelounge.net> Message-ID: <5190B606.3090202@thelounge.net> Am 13.05.2013 11:31, schrieb Wei Gao: > 2013/5/13 Reindl Harald > >> is there a reason why you not strip repeated list-footers? >> no sorry. what is your mean? I must write the list-footers? strip them simply from you replies as any footers, signatures and disclaimers have to be stripped from qutotes to keep threads readable -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From highgod0401 at gmail.com Mon May 13 11:48:40 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 17:48:40 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: <5190B606.3090202@thelounge.net> References: <5190B1D1.4000802@thelounge.net> <5190B606.3090202@thelounge.net> Message-ID: 2013/5/13 Reindl Harald > > > Am 13.05.2013 11:31, schrieb Wei Gao: > > 2013/5/13 Reindl Harald > > > >> is there a reason why you not strip repeated list-footers? > >> no sorry. what is your mean? I must write the list-footers? > > strip them simply from you replies as any footers, signatures > and disclaimers have to be stripped from qutotes to keep threads > readable > > OK thanks From battistel at gmail.com Mon May 13 12:08:48 2013 From: battistel at gmail.com (Massimo Battistel) Date: Mon, 13 May 2013 12:08:48 +0200 Subject: [FFmpeg-user] Codec is ignored Message-ID: hi, I have to generate 60s of black video with mute audio. with the following commad line video track is always mpeg1. The -vcodec parameter seems to be ignored. ffmpeg -f lavfi -i color=c=black:s=720x576 -r 25 -vcodec mpeg2video -f lavfi -i aevalsrc=0 -ar 48000 -ac 2 -acodec mp2 -t 60 filler.mpg ffmpeg version N-50442-g4f0d4ac Copyright (c) 2000-2013 the FFmpeg developers built on Mar 2 2013 15:33:19 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.103 / 52. 17.103 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.102 / 54. 63.102 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 41.100 / 3. 41.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [lavfi @ 000000000052f7c0] Estimating duration from bitrate, this may be inaccurate Input #0, lavfi, from 'color=c=black:s=720x576': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 25 tbr, 25 tbn, 25 tbc [lavfi @ 000000000052d000] Estimating duration from bitrate, this may be inaccurate Input #1, lavfi, from 'aevalsrc=0': Duration: N/A, start: 0.000000, bitrate: 2822 kb/s Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s File 'filler.mpg' already exists. Overwrite ? [y/N] VBV buffer size not set, muxing may fail Output #0, mpeg, to 'filler.mpg': Metadata: encoder : Lavf54.63.102 Stream #0:0: Video: mpeg1video, yuv420p, 720x576 [SAR 1:1 DAR 5:4], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg1video) Stream #1:0 -> #0:1 (pcm_f64le -> mp2) Press [q] to stop, [?] for help frame= 411 fps=0.0 q=2.0 size= 510kB time=00:00:16.36 bitrate= 255.4kbits/s frame= 833 fps=833 q=2.0 size= 1038kB time=00:00:33.24 bitrate= 255.8kbits/s frame= 1259 fps=839 q=2.0 size= 1568kB time=00:00:50.28 bitrate= 255.5kbits/s frame= 1500 fps=843 q=2.0 Lsize= 1890kB time=00:00:59.98 bitrate= 258.1kbits/s video:933kB audio:938kB subtitle:0 global headers:0kB muxing overhead 1.049993% thanks From cehoyos at ag.or.at Mon May 13 12:25:03 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 May 2013 10:25:03 +0000 (UTC) Subject: [FFmpeg-user] Codec is ignored References: Message-ID: Massimo Battistel gmail.com> writes: > I have to generate 60s of black video with mute audio. > with the following commad line video track is always mpeg1. Could you explain why you want mpeg2video? Afaik, a compliant mpeg2 video decoder can also decode mpeg1 video. Carl Eugen From onemda at gmail.com Mon May 13 12:35:15 2013 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 13 May 2013 10:35:15 +0000 Subject: [FFmpeg-user] Codec is ignored In-Reply-To: References: Message-ID: On 5/13/13, Massimo Battistel wrote: > hi, > I have to generate 60s of black video with mute audio. > with the following commad line video track is always mpeg1. The -vcodec > parameter seems to be ignored. > > ffmpeg -f lavfi -i color=c=black:s=720x576 -r 25 -vcodec mpeg2video -f > lavfi -i aevalsrc=0 -ar 48000 -ac 2 -acodec mp2 -t 60 filler.mpg -vcodec mpeg2video needs to go somewhere after acodec. (after last -f x -i y) > > ffmpeg version N-50442-g4f0d4ac Copyright (c) 2000-2013 the FFmpeg > developers > built on Mar 2 2013 15:33:19 with gcc 4.7.2 (GCC) > configuration: --disable-static --enable-shared --enable-gpl > --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib > --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass > --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm > --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > --enable-librtmp --enable-libschroedinger --enable-libsoxr > --enable-libspeex --enable-libtheora --enable-libtwolame > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid > --enable-zlib > libavutil 52. 17.103 / 52. 17.103 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.102 / 54. 63.102 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 41.100 / 3. 41.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [lavfi @ 000000000052f7c0] Estimating duration from bitrate, this may be > inaccurate > Input #0, lavfi, from 'color=c=black:s=720x576': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR > 1:1 DAR 5:4], 25 tbr, 25 tbn, 25 tbc > [lavfi @ 000000000052d000] Estimating duration from bitrate, this may be > inaccurate > Input #1, lavfi, from 'aevalsrc=0': > Duration: N/A, start: 0.000000, bitrate: 2822 kb/s > Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s > File 'filler.mpg' already exists. Overwrite ? [y/N] VBV buffer size not > set, muxing may fail > Output #0, mpeg, to 'filler.mpg': > Metadata: > encoder : Lavf54.63.102 > Stream #0:0: Video: mpeg1video, yuv420p, 720x576 [SAR 1:1 DAR 5:4], > q=2-31, 200 kb/s, 90k tbn, 25 tbc > Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (rawvideo -> mpeg1video) > Stream #1:0 -> #0:1 (pcm_f64le -> mp2) > Press [q] to stop, [?] for help > frame= 411 fps=0.0 q=2.0 size= 510kB time=00:00:16.36 bitrate= > 255.4kbits/s > frame= 833 fps=833 q=2.0 size= 1038kB time=00:00:33.24 bitrate= > 255.8kbits/s > frame= 1259 fps=839 q=2.0 size= 1568kB time=00:00:50.28 bitrate= > 255.5kbits/s > frame= 1500 fps=843 q=2.0 Lsize= 1890kB time=00:00:59.98 bitrate= > 258.1kbits/s > > video:933kB audio:938kB subtitle:0 global headers:0kB muxing overhead > 1.049993% > > thanks > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From battistel at gmail.com Mon May 13 12:44:13 2013 From: battistel at gmail.com (Massimo Battistel) Date: Mon, 13 May 2013 12:44:13 +0200 Subject: [FFmpeg-user] Codec is ignored In-Reply-To: References: Message-ID: I know mpeg1 can be decoded by mpeg2 decoder. But I also want ffmpeg to respond to my commands. Anyway moving -vcodec after -acodec worked. Is there any doc to understand parameters order logic? thanks 2013/5/13 Paul B Mahol > On 5/13/13, Massimo Battistel wrote: > > hi, > > I have to generate 60s of black video with mute audio. > > with the following commad line video track is always mpeg1. The -vcodec > > parameter seems to be ignored. > > > > ffmpeg -f lavfi -i color=c=black:s=720x576 -r 25 -vcodec mpeg2video -f > > lavfi -i aevalsrc=0 -ar 48000 -ac 2 -acodec mp2 -t 60 filler.mpg > > -vcodec mpeg2video needs to go somewhere after acodec. (after last -f x -i > y) > > > > > ffmpeg version N-50442-g4f0d4ac Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Mar 2 2013 15:33:19 with gcc 4.7.2 (GCC) > > configuration: --disable-static --enable-shared --enable-gpl > > --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib > > --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass > > --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm > > --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > > --enable-librtmp --enable-libschroedinger --enable-libsoxr > > --enable-libspeex --enable-libtheora --enable-libtwolame > > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis > > --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid > > --enable-zlib > > libavutil 52. 17.103 / 52. 17.103 > > libavcodec 54. 92.100 / 54. 92.100 > > libavformat 54. 63.102 / 54. 63.102 > > libavdevice 54. 3.103 / 54. 3.103 > > libavfilter 3. 41.100 / 3. 41.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [lavfi @ 000000000052f7c0] Estimating duration from bitrate, this may be > > inaccurate > > Input #0, lavfi, from 'color=c=black:s=720x576': > > Duration: N/A, start: 0.000000, bitrate: N/A > > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 > [SAR > > 1:1 DAR 5:4], 25 tbr, 25 tbn, 25 tbc > > [lavfi @ 000000000052d000] Estimating duration from bitrate, this may be > > inaccurate > > Input #1, lavfi, from 'aevalsrc=0': > > Duration: N/A, start: 0.000000, bitrate: 2822 kb/s > > Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s > > File 'filler.mpg' already exists. Overwrite ? [y/N] VBV buffer size not > > set, muxing may fail > > Output #0, mpeg, to 'filler.mpg': > > Metadata: > > encoder : Lavf54.63.102 > > Stream #0:0: Video: mpeg1video, yuv420p, 720x576 [SAR 1:1 DAR 5:4], > > q=2-31, 200 kb/s, 90k tbn, 25 tbc > > Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (rawvideo -> mpeg1video) > > Stream #1:0 -> #0:1 (pcm_f64le -> mp2) > > Press [q] to stop, [?] for help > > frame= 411 fps=0.0 q=2.0 size= 510kB time=00:00:16.36 bitrate= > > 255.4kbits/s > > frame= 833 fps=833 q=2.0 size= 1038kB time=00:00:33.24 bitrate= > > 255.8kbits/s > > frame= 1259 fps=839 q=2.0 size= 1568kB time=00:00:50.28 bitrate= > > 255.5kbits/s > > frame= 1500 fps=843 q=2.0 Lsize= 1890kB time=00:00:59.98 bitrate= > > 258.1kbits/s > > > > video:933kB audio:938kB subtitle:0 global headers:0kB muxing overhead > > 1.049993% > > > > thanks > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Massimo Battistel. From paul at hivetool.org Mon May 13 12:44:54 2013 From: paul at hivetool.org (Paul) Date: Mon, 13 May 2013 06:44:54 -0400 Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input Message-ID: <201305130644.54993.paul@hivetool.org> I'm trying to stream from a Logitech C920 camera. I want to put the camera into native h264 mode and use the -vcodec copy option to reduce the cpu load. That will work, right? Ideally it will use a container that will embed in html and work with most clients (mp4? matroska? H.264?) but must handle a live stream. When I use the -vcodec copy option with -vcodec h264 on the input, I get the Output file is empty, nothing was encoded message. Doesn't work. No data to output file: ffmpeg -f video4linux2 -vcodec h264 -s 640x480 -r 15 -i /dev/video0 -vcodec copy output.mkv Works but cpu load is about 48%: ffmpeg -f video4linux2 -vcodec h264 -s 640x480 -r 15 -i /dev/video0 -vcodec h264 output.mkv Works and cpu load is about 2%! BUT input stream is rawvideo (YUY2) yuyv422. (Setting the camera mode with v4l2-ctl to h264 doesn't help as ffmpeg changes the mode.): ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -vcodec copy output.mkv I've tried different output containers (mp4, swf) with the same result. I'm really trying to stream to ffserver but the above examples give the same result. What stupid thing am I doing wrong? I see others have the same problem but can't find any solutions. (Not that it matters, but we are trying to monitor bee hives with a Pi: hivetool.org and click on the SWF link to see a live feed running on a PC with 99% cpu utilization...) Thanks! From ajsinclair at gmail.com Mon May 13 12:45:47 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Mon, 13 May 2013 20:45:47 +1000 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: Try generating it as an mp4 as live555 will likely need something like that to convert to RTSP as probably can't handle raw h264 assuming that is what your .h264 is. I don't use live555 but a simple mp4 works fine in either DSS or Wowza e.g. here is the Wowza sample file: ffplay rtsp://cj.sinclairmediatech.com/vod/sample.mp4 ffplay version N-51554-g1c0d8f2 Copyright (c) 2003-2013 the FFmpeg developers built on Apr 7 2013 18:35:14 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --enable-libx264 --enable-libfaac --enable-nonfree --enable-gpl libavutil 52. 24.100 / 52. 24.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 49.100 / 3. 49.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, rtsp, from 'rtsp://cj.sinclairmediatech.com/vod/sample.mp4': Metadata: title : sample.mp4 Duration: 00:09:56.46, start: 0.000000, bitrate: N/A Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 424x240, 24 fps, 24 tbr, 90k tbn, 48 tbc 24.06 A-V: -0.025 fd= 1 aq= 20KB vq= 66KB sq= 0B f=1/1 On 13 May 2013 18:58, Wei Gao wrote: > 2013/5/13 Andrew Sinclair > > > ffmpeg and ffplay certainly do rtsp. > > > > What is the format of the out.264 file you are trying to stream? If it > is a > > VOD for it to play correctly would likely require it to be streaming > hinted > > mp4. Can you do ffplay or ffprobe on the out.264 file and send the > results > > of that. > > > I use ffmpeg and libx264 to gernate the out.264, I think it is the h264 > stream, yes ffplay can play it ,and but not correct in some frames. just > like the log I paste in the previous mail. I want to ust ffmpeg first, but > it seems that the bug has exist for a long time.I serarch in internet, and > someone report the bug in 2011. > > > > > You should also look at the sdp file generated by live555. > > > can you give the address of the code? > thanks > best regards > > > > > > > > > > > On 13 May 2013 18:32, Wei Gao wrote: > > > > > 2013/5/13 stanley zhang > > > > > > > I just tried to play the streaming media as a client of IPCAM > > (Hikvision > > > > DS-2CD2012). It runs smoothly. > > > > > > > > Here is the command: > > > > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 > > > > > > Hi, thanks, we test it to decode h264 stream and the error log is as > > > follow: > > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > > > built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) > > > configuration: --enable-static --enable-shared > > > WARNING: library configuration mismatch > > > avutil configuration: --enable-static --enable-shared > > > --enable-pthreads > > > avcodec configuration: --enable-static --enable-shared > > > --enable-pthreads > > > avformat configuration: --enable-static --enable-shared > > > --enable-pthreads > > > avdevice configuration: --enable-static --enable-shared > > > --enable-pthreads > > > avfilter configuration: --enable-static --enable-shared > > > --enable-pthreads > > > swscale configuration: --enable-static --enable-shared > > > --enable-pthreads > > > swresample configuration: --enable-static --enable-shared > > > --enable-pthreads > > > libavutil 52. 18.100 / 52. 18.100 > > > libavcodec 54. 92.100 / 54. 92.100 > > > libavformat 54. 63.104 / 54. 63.104 > > > libavdevice 54. 3.103 / 54. 3.103 > > > libavfilter 3. 42.103 / 3. 42.103 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > [rtsp @ 00a808a0] Estimating duration from bitrate, this may be > > inaccurate > > > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 > > > Metadata: > > > title : H.264 Video, streamed by the LIVE555 Media Server > > > comment : out.264 > > > Duration: N/A, start: 0.250256, bitrate: N/A > > > Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR > > 16:9], > > > 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > > > [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 > > > [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame > > > [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) > > > [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I > frame > > > [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 > > > [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I > frame > > > [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 > > > [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) > > > [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I > frame > > > 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > > > > > > and you can see that the image of video is not correct. I search in the > > > internet, the earlist ffmpeg seems correct, but the latest ffmpeg seems > > not > > > correct. it seems some bugs in udp and rtsp, and make the h264 decode > > > error. > > > > > > Thanks > > > Best regards > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao > > wrote: > > > > > > > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that there > > > seems > > > > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > > > > > > > I found in internel that, ffmpeg also can use with live555, that > > > live555 > > > > > receive the rtsp stream and ffmpeg decode the stream, is there > > anydemo > > > to > > > > > use it? > > > > > > > > > > does anyone can every use it? > > > > > > > > > > Thanks > > > > > Best regards > > > > > _______________________________________________ > > > > > ffmpeg-user mailing list > > > > > ffmpeg-user at ffmpeg.org > > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > > > _______________________________________________ > > > > ffmpeg-user mailing list > > > > ffmpeg-user at ffmpeg.org > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefasab at gmail.com Mon May 13 12:47:58 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Mon, 13 May 2013 12:47:58 +0200 Subject: [FFmpeg-user] Codec is ignored In-Reply-To: References: Message-ID: <20130513104758.GD2990@arborea> On date Monday 2013-05-13 12:44:13 +0200, Massimo Battistel wrote: > I know mpeg1 can be decoded by mpeg2 decoder. But I also want ffmpeg to > respond to my commands. > Anyway moving -vcodec after -acodec worked. > Is there any doc to understand parameters order logic? http://ffmpeg.org/ffmpeg.html#Description or man ffmpeg(1). From cehoyos at ag.or.at Mon May 13 12:49:39 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 May 2013 10:49:39 +0000 (UTC) Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input References: <201305130644.54993.paul@hivetool.org> Message-ID: Paul hivetool.org> writes: > Doesn't work. No data to output file: > > ffmpeg -f video4linux2 -vcodec h264 -s 640x480 > -r 15 -i /dev/video0 -vcodec copy output.mkv Complete, uncut console output missing. Carl Eugen From highgod0401 at gmail.com Mon May 13 12:50:25 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 18:50:25 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: <5190B1D1.4000802@thelounge.net> <5190B606.3090202@thelounge.net> Message-ID: 2013/5/13 Wei Gao > > > > 2013/5/13 Reindl Harald > >> >> >> Am 13.05.2013 11:31, schrieb Wei Gao: >> > 2013/5/13 Reindl Harald >> > >> >> is there a reason why you not strip repeated list-footers? >> >> no sorry. what is your mean? I must write the list-footers? >> >> strip them simply from you replies as any footers, signatures >> and disclaimers have to be stripped from qutotes to keep threads >> readable >> >> OK thanks > > I tested that, the 1280X720 h264 stream is ok, is there any buffer is not big enough? Thanks From highgod0401 at gmail.com Mon May 13 12:52:01 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 18:52:01 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: 2013/5/13 Andrew Sinclair > Try generating it as an mp4 as live555 will likely need something like that > to convert to RTSP as probably can't handle raw h264 assuming that is what > your .h264 is. > > I don't use live555 but a simple mp4 works fine in either DSS or Wowza e.g. > here is the Wowza sample file: > ffplay rtsp://cj.sinclairmediatech.com/vod/sample.mp4 > ffplay version N-51554-g1c0d8f2 Copyright (c) 2003-2013 the FFmpeg > developers > built on Apr 7 2013 18:35:14 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) > configuration: --enable-libx264 --enable-libfaac --enable-nonfree > --enable-gpl > libavutil 52. 24.100 / 52. 24.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 49.100 / 3. 49.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > Input #0, rtsp, from 'rtsp://cj.sinclairmediatech.com/vod/sample.mp4': > Metadata: > title : sample.mp4 > Duration: 00:09:56.46, start: 0.000000, bitrate: N/A > Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp > Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 424x240, 24 > fps, 24 tbr, 90k tbn, 48 tbc > 24.06 A-V: -0.025 fd= 1 aq= 20KB vq= 66KB sq= 0B f=1/1 > thanks yes, can you try 1920x1080? Thanks > > > > On 13 May 2013 18:58, Wei Gao wrote: > > > 2013/5/13 Andrew Sinclair > > > > > ffmpeg and ffplay certainly do rtsp. > > > > > > What is the format of the out.264 file you are trying to stream? If it > > is a > > > VOD for it to play correctly would likely require it to be streaming > > hinted > > > mp4. Can you do ffplay or ffprobe on the out.264 file and send the > > results > > > of that. > > > > > I use ffmpeg and libx264 to gernate the out.264, I think it is the h264 > > stream, yes ffplay can play it ,and but not correct in some frames. just > > like the log I paste in the previous mail. I want to ust ffmpeg first, > but > > it seems that the bug has exist for a long time.I serarch in internet, > and > > someone report the bug in 2011. > > > > > > > > You should also look at the sdp file generated by live555. > > > > > can you give the address of the code? > > thanks > > best regards > > > > > > > > > > > > > > > > > On 13 May 2013 18:32, Wei Gao wrote: > > > > > > > 2013/5/13 stanley zhang > > > > > > > > > I just tried to play the streaming media as a client of IPCAM > > > (Hikvision > > > > > DS-2CD2012). It runs smoothly. > > > > > > > > > > Here is the command: > > > > > ffplay rtsp://192.168.1.102:554/Streaming/Channels/1 > > > > > > > > Hi, thanks, we test it to decode h264 stream and the error log is as > > > > follow: > > > > ffplay version 1.2.1 Copyright (c) 2003-2013 the FFmpeg developers > > > > built on May 13 2013 15:38:39 with gcc 4.6.2 (GCC) > > > > configuration: --enable-static --enable-shared > > > > WARNING: library configuration mismatch > > > > avutil configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > avcodec configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > avformat configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > avdevice configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > avfilter configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > swscale configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > swresample configuration: --enable-static --enable-shared > > > > --enable-pthreads > > > > libavutil 52. 18.100 / 52. 18.100 > > > > libavcodec 54. 92.100 / 54. 92.100 > > > > libavformat 54. 63.104 / 54. 63.104 > > > > libavdevice 54. 3.103 / 54. 3.103 > > > > libavfilter 3. 42.103 / 3. 42.103 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > [rtsp @ 00a808a0] Estimating duration from bitrate, this may be > > > inaccurate > > > > Input #0, rtsp, from 'rtsp://192.168.0.48/out.264':q= 0B f=0/0 > > > > Metadata: > > > > title : H.264 Video, streamed by the LIVE555 Media > Server > > > > comment : out.264 > > > > Duration: N/A, start: 0.250256, bitrate: N/A > > > > Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR > > > 16:9], > > > > 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > > > > [h264 @ 03aa5020] error while decoding MB 67 67, bytestream (-9)1 > > > > [h264 @ 03aa5020] concealing 102 DC, 102 AC, 102 MV errors in I frame > > > > [h264 @ 03903ae0] error while decoding MB 79 47, bytestream (-22) > > > > [h264 @ 03903ae0] concealing 2490 DC, 2490 AC, 2490 MV errors in I > > frame > > > > [h264 @ 039034c0] error while decoding MB 4 54, bytestream (-6)/1 > > > > [h264 @ 039034c0] concealing 1725 DC, 1725 AC, 1725 MV errors in I > > frame > > > > [rtsp @ 00a808a0] CSeq 5 expected, 0 received.7KB sq= 0B f=1/1 > > > > [h264 @ 00b5e4a0] error while decoding MB 18 49, bytestream (-19) > > > > [h264 @ 00b5e4a0] concealing 2311 DC, 2311 AC, 2311 MV errors in I > > frame > > > > 38.95 A-V: 0.000 fd= 4 aq= 0KB vq= 0KB sq= 0B f=1/1 > > > > > > > > and you can see that the image of video is not correct. I search in > the > > > > internet, the earlist ffmpeg seems correct, but the latest ffmpeg > seems > > > not > > > > correct. it seems some bugs in udp and rtsp, and make the h264 decode > > > > error. > > > > > > > > Thanks > > > > Best regards > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, May 13, 2013 at 4:11 PM, Wei Gao > > > wrote: > > > > > > > > > > > Hi, I want to use rtsp in ffmpeg, but I use ffplay test that > there > > > > seems > > > > > > some bugs in ffmpeg's rtsp, which I have paste the log. > > > > > > > > > > > > I found in internel that, ffmpeg also can use with live555, that > > > > live555 > > > > > > receive the rtsp stream and ffmpeg decode the stream, is there > > > anydemo > > > > to > > > > > > use it? > > > > > > > > > > > > does anyone can every use it? > > > > > > > > > > > > Thanks > > > > > > Best regards > > > > > > _______________________________________________ > > > > > > ffmpeg-user mailing list > > > > > > ffmpeg-user at ffmpeg.org > > > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > > > > > _______________________________________________ > > > > > ffmpeg-user mailing list > > > > > ffmpeg-user at ffmpeg.org > > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > > > _______________________________________________ > > > > ffmpeg-user mailing list > > > > ffmpeg-user at ffmpeg.org > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From paul at hivetool.org Mon May 13 13:01:00 2013 From: paul at hivetool.org (Paul) Date: Mon, 13 May 2013 07:01:00 -0400 Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input In-Reply-To: References: <201305130644.54993.paul@hivetool.org> Message-ID: <201305130701.00779.paul@hivetool.org> ffmpeg -f video4linux2 -vcodec h264 -s 640x48 -r 15 -i /dev/video0 -vcodec copy output.mkv ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 07:05:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-libx264 libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [video4linux2,v4l2 @ 0x93e05e0] The V4L2 driver changed the video from 640x48 to 160x90 [video4linux2,v4l2 @ 0x93e05e0] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 52180.900978, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p, 160x90 [SAR 1:1 DAR 16:9], -2 kb/s, 15 fps, 15 tbr, 1000k tbn, 30 tbc File 'output.mkv' already exists. Overwrite ? [y/N] y Output #0, matroska, to 'output.mkv': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 160x90 [SAR 1:1 DAR 16:9], q=2-31, -2 kb/s, 15 fps, 1k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=-1.0 Lsize= 1kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) On Monday, May 13, 2013 06:49:39 am Carl Eugen Hoyos wrote: > Paul hivetool.org> writes: > > Doesn't work. No data to output file: > > > > ffmpeg -f video4linux2 -vcodec h264 -s 640x480 > > -r 15 -i /dev/video0 -vcodec copy output.mkv > > Complete, uncut console output missing. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From highgod0401 at gmail.com Mon May 13 13:55:17 2013 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 13 May 2013 19:55:17 +0800 Subject: [FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg In-Reply-To: References: Message-ID: 2013/5/13 Wei Gao > > > > 2013/5/13 Andrew Sinclair > >> Try generating it as an mp4 as live555 will likely need something like >> that >> to convert to RTSP as probably can't handle raw h264 assuming that is what >> your .h264 is. >> >> I don't use live555 but a simple mp4 works fine in either DSS or Wowza >> e.g. >> here is the Wowza sample file: >> ffplay rtsp://cj.sinclairmediatech.com/vod/sample.mp4 >> ffplay version N-51554-g1c0d8f2 Copyright (c) 2003-2013 the FFmpeg >> developers >> built on Apr 7 2013 18:35:14 with llvm-gcc 4.2.1 (LLVM build >> 2336.11.00) >> configuration: --enable-libx264 --enable-libfaac --enable-nonfree >> --enable-gpl >> libavutil 52. 24.100 / 52. 24.100 >> libavcodec 55. 2.100 / 55. 2.100 >> libavformat 55. 1.100 / 55. 1.100 >> libavdevice 55. 0.100 / 55. 0.100 >> libavfilter 3. 49.100 / 3. 49.100 >> libswscale 2. 2.100 / 2. 2.100 >> libswresample 0. 17.102 / 0. 17.102 >> libpostproc 52. 2.100 / 52. 2.100 >> Input #0, rtsp, from 'rtsp://cj.sinclairmediatech.com/vod/sample.mp4': >> Metadata: >> title : sample.mp4 >> Duration: 00:09:56.46, start: 0.000000, bitrate: N/A >> Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp >> Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 424x240, 24 >> fps, 24 tbr, 90k tbn, 48 tbc >> 24.06 A-V: -0.025 fd= 1 aq= 20KB vq= 66KB sq= 0B f=1/1 >> > thanks yes, can you try 1920x1080? > Thanks > >> >> >> Hi, I set the log level to debug and found that all errors are as follow code: if (h->cabac.bytestream > h->cabac.bytestream_end + 2 ) av_log(h->avctx, AV_LOG_DEBUG, "bytestream overread %td\n", h->cabac.bytestream_end - h->cabac.bytestream); if (ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 4) { av_log(h->avctx, AV_LOG_ERROR, "error while decoding MB %d %d, bytestream (%td)\n", h->mb_x, h->mb_y, h->cabac.bytestream_end - h->cabac.bytestream); er_add_slice(h, h->resync_mb_x, h->resync_mb_y, h->mb_x, h->mb_y, ER_MB_ERROR); return -1; } [h264 @ 004bf7c0] bytestream overread -26= 98KB sq= 0B f=50/154 [h264 @ 004bf7c0] error while decoding MB 47 51, bytestream (-26) [h264 @ 004bf7c0] concealing 2042 DC, 2042 AC, 2042 MV errors in I frame it seems that decode I frame error From cehoyos at ag.or.at Mon May 13 13:58:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 May 2013 11:58:19 +0000 (UTC) Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input References: <201305130644.54993.paul@hivetool.org> <201305130701.00779.paul@hivetool.org> Message-ID: Paul hivetool.org> writes: > ffmpeg -f video4linux2 -vcodec h264 -s 640x48 > -r 15 -i /dev/video0 -vcodec copy output.mkv Does "-re" (an input option) help? Please try to avoid top-posting here. Carl Eugen From paul at hivetool.org Mon May 13 14:14:36 2013 From: paul at hivetool.org (Paul) Date: Mon, 13 May 2013 08:14:36 -0400 Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input In-Reply-To: References: <201305130644.54993.paul@hivetool.org> <201305130701.00779.paul@hivetool.org> Message-ID: <201305130814.36486.paul@hivetool.org> On Monday, May 13, 2013 07:58:19 am Carl Eugen Hoyos wrote: > Paul hivetool.org> writes: > > ffmpeg -f video4linux2 -vcodec h264 -s 640x48 > > -r 15 -i /dev/video0 -vcodec copy output.mkv > > Does "-re" (an input option) help? > Please try to avoid top-posting here. Sorry. No, ffmpeg -f video4linux2 -re -s 640x480 -r 15 -vcodec h264 -i /dev/video0 - vcodec copy output.mkv yields same result, Output file is empty ... Thanks, --Paul > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From paul at hivetool.org Mon May 13 14:20:09 2013 From: paul at hivetool.org (Paul) Date: Mon, 13 May 2013 08:20:09 -0400 Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input In-Reply-To: <201305130814.36486.paul@hivetool.org> References: <201305130644.54993.paul@hivetool.org> <201305130814.36486.paul@hivetool.org> Message-ID: <201305130820.09300.paul@hivetool.org> On Monday, May 13, 2013 08:14:36 am Paul wrote: > On Monday, May 13, 2013 07:58:19 am Carl Eugen Hoyos wrote: > > Paul hivetool.org> writes: > > > ffmpeg -f video4linux2 -vcodec h264 -s 640x48 > > > -r 15 -i /dev/video0 -vcodec copy output.mkv > > > > Does "-re" (an input option) help? > > Please try to avoid top-posting here. > > Sorry. > > No, > > ffmpeg -f video4linux2 -re -s 640x480 -r 15 -vcodec h264 -i /dev/video0 - > vcodec copy output.mkv > > yields same result, Output file is empty ... -re Read input at native frame rate. Mainly used to simulate a grab device. So, I guess I should leave out the -r 15? Didn't matter. Still Output file empty. --Paul From cehoyos at ag.or.at Mon May 13 14:22:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 May 2013 12:22:34 +0000 (UTC) Subject: [FFmpeg-user] -vcodec copy encodes nothing (empty output file) with h264 input References: <201305130644.54993.paul@hivetool.org> <201305130701.00779.paul@hivetool.org> <201305130814.36486.paul@hivetool.org> Message-ID: Paul hivetool.org> writes: > ffmpeg -f video4linux2 -re -s 640x480 -r 15 > -vcodec h264 -i /dev/video0 -vcodec copy output.mkv > > yields same result, Output file is empty ... You could try to add -vsync 0 (another input option). Unfortunately, no developer owns such a device afaik. Carl Eugen From smarrocco at ringsidecreative.com Mon May 13 15:21:22 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Mon, 13 May 2013 09:21:22 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: References: <518BF3A9.9060306@ringsidecreative.com> Message-ID: <5190E8D2.6000407@ringsidecreative.com> On 5/10/2013 1:34 AM, Carl Eugen Hoyos wrote: Sam Marrocco ringsidecreative.com> writes: Last year I had introduced a thread about an issue where Prores 444 quicktime movies created with ffmpeg and the prores_kostya codec were failing to be identified as 444 by the Apple Quicktime player. Where you able to test a sample that shows if Chroma subsampling is done correctly or not? I don't think decoding can work at all if the decoder (QuickTime) does not (internally) detect the right colourspace (444). I was not aware that the image needed to be tested. However as near as I can tell, the image quality does seem to indicate that it is being created using 444 (using a gradient that indicates banding more predominantly when 422). As far as I know, the problem was all about the fourCC not being set correctly. sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From m.fruba at samsung.com Mon May 13 16:58:39 2013 From: m.fruba at samsung.com (Mateusz Fruba) Date: Mon, 13 May 2013 14:58:39 +0000 (GMT) Subject: [FFmpeg-user] Question about ASF license Message-ID: <0MMQ004O5S9R2N20@mailout1.w1.samsung.com> A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 72722 bytes Desc: not available URL: From m.fruba at samsung.com Mon May 13 17:07:15 2013 From: m.fruba at samsung.com (FrubaMateusz) Date: Mon, 13 May 2013 17:07:15 +0200 Subject: [FFmpeg-user] Question about ASF license Message-ID: <000401ce4feb$8e6b7940$ab426bc0$%fruba@samsung.com> Dear ffmpeg support, I have a question about that information from your site: "Note, ASF files often have .wmv or .wma extensions in Windows. It should also be mentioned that Microsoft claims a patent on the ASF format, and may sue or threaten users who create ASF files with non-Microsoft software. It is strongly advised to avoid ASF where possible." Is this information is still actual and what is the source of this information? Best regards, Mateusz Fruba From lulebo at gmail.com Mon May 13 17:25:44 2013 From: lulebo at gmail.com (Carl Lindqvist) Date: Mon, 13 May 2013 17:25:44 +0200 Subject: [FFmpeg-user] Color Shift when encoding DNxHD QuickTime video on Windows In-Reply-To: References: Message-ID: >I am a software developer working for an animation studio. I have been >tasked with creating DNxHD QuickTime videos which are then imported into >Avid Media Composer (An Editing Suite Application using DNxHD and MXF as >it's preferred codec and format). Our studio uses Windows 7. I have noticed >a color shift when comparing the media encoded by FFmpeg to the media >created by Avid when importing the frames directly (Note: Avid will encode >a DNxHD MXF from the image files on import). We create the QuickTime videos >ourselves because it reduces the import time given that Avid will only >change the video container without having to do any real encoding. I hope >this makes sense, I am not an expert in this area. I have compared the >output when using other software packages such as RVIO and Nuke. RVIO >doesn't match the video created by Avid but it also doesn't match the video >created by FFmpeg whereas Nuke is able to match the video created by Avid. >I am interested to learn about what causes the color shift. Attached is the >output from the FFmpeg command I am using and the output from an ffprobe >query on both an input image and the output video. Note: The input images >are in sRGB color space. Any feedback will be much appreciated. It is probably a color matrix issue. In most cases you will want to use Rec601 for SD and Rec709 for HD when converting RGB to YUV, but it depends on the destination. If the wrong conversion is used, the colors will be slightly off (purple-ish or orange-ish skin tones, difference in saturation). Look at this post for a good example picture: http://forum.videohelp.com/threads/329866-incorrect-collor-display-in-video-playback?p=2045830&viewfull=1#post2045830 /Carl From cehoyos at ag.or.at Mon May 13 17:40:47 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 May 2013 15:40:47 +0000 (UTC) Subject: [FFmpeg-user] Question about ASF license References: <000401ce4feb$8e6b7940$ab426bc0$%fruba@samsung.com> Message-ID: FrubaMateusz samsung.com> writes: > "Note, ASF files often have .wmv or .wma extensions in > Windows. It should also be mentioned that Microsoft > claims a patent on the ASF format, and may sue or threaten > users who create ASF files with non-Microsoft software. > It is strongly advised to avoid ASF where possible." > > Is this information is still actual > and what is the source of this information? A possible source is: http://en.wikipedia.org/wiki/Advanced_Systems_Format#License Carl Eugen From lulebo at gmail.com Mon May 13 17:42:03 2013 From: lulebo at gmail.com (Carl Lindqvist) Date: Mon, 13 May 2013 17:42:03 +0200 Subject: [FFmpeg-user] high@L4.1 to high@L4.0 In-Reply-To: <20130508060801.GE10547@mrvideo.vidiot.com> References: <20130508060801.GE10547@mrvideo.vidiot.com> Message-ID: > Is it possible to take a MKV wrapped H.264 file that was set to high at L4.1 > and change it to high at L4.0 when copying the video and audio to a new MP4 file? > > Thanks. > > MB If the video does indeed conform to L4.0 and you just want to change the metadata, that is possible. I'm not sure how to do it with ffmpeg or if it's possible, maybe someone knows. There are other tools that can do it if you don't need to integrate it into some current workflow. Here is an example: http://www.videohelp.com/tools/H264-AVC-Level-Editor From tevans.uk at googlemail.com Mon May 13 17:48:25 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 13 May 2013 16:48:25 +0100 Subject: [FFmpeg-user] high@L4.1 to high@L4.0 In-Reply-To: References: <20130508060801.GE10547@mrvideo.vidiot.com> Message-ID: On Mon, May 13, 2013 at 4:42 PM, Carl Lindqvist wrote: >> Is it possible to take a MKV wrapped H.264 file that was set to high at L4.1 >> and change it to high at L4.0 when copying the video and audio to a new MP4 file? >> >> Thanks. >> >> MB > > > If the video does indeed conform to L4.0 and you just want to change > the metadata, that is possible. I'm not sure how to do it with ffmpeg > or if it's possible, maybe someone knows. There are other tools that > can do it if you don't need to integrate it into some current > workflow. Here is an example: > > http://www.videohelp.com/tools/H264-AVC-Level-Editor Am I right in thinking that the only differences between high at 4.0 and high at 4.1 are in maximum supported bitrate, from 25 Mbit/s to 60 Mbit/s? Cheers Tom From lulebo at gmail.com Mon May 13 17:55:11 2013 From: lulebo at gmail.com (Carl Lindqvist) Date: Mon, 13 May 2013 17:55:11 +0200 Subject: [FFmpeg-user] high@L4.1 to high@L4.0 In-Reply-To: References: <20130508060801.GE10547@mrvideo.vidiot.com> Message-ID: > Am I right in thinking that the only differences between high at 4.0 and > high at 4.1 are in maximum supported bitrate, from 25 Mbit/s to 60 > Mbit/s? Yeah, it looks that way. (Going by wikipedia at least) http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels /Carl From avirex112 at hotmail.com Mon May 13 18:31:18 2013 From: avirex112 at hotmail.com (avirex) Date: Mon, 13 May 2013 09:31:18 -0700 (PDT) Subject: [FFmpeg-user] Help with error: "Non-monotonous DTS in output stream" Message-ID: <1368462678466-4659052.post@n4.nabble.com> Hello. I am re-streaming a Live H264/AAC stream using ffmpeg (windows). After about 1 hour I'm getting the following error in the console: Non-monotonous DTS in output stream 0:0; previous: 38226576, current: 31954543; changing to 38226576. This may result in incorrect timestamps in the output file. Here is the command I am using: ffmpeg.exe -threads 0 -i "$rurl playpath=$rplaypath swfUrl=$rswfurl pageUrl=$rpageurl live=1 " -map_metadata -1 -loglevel info -f flv -acodec copy -vcodec copy -r 15 -aspect 16:9 -bufsize 12000k "rtmp://localhost/$dapp/$dstream" 2> F:\Streams\$dstream.log Any idea what this error message means and how to mitigate? Here is a bit more detail from the log, when the error actually starts... negative cts, previous timestamps might be wrong DTS 4294905094, next:4418668000 st:0 invalid dropping PTS 4294905094, next:4418668000 invalid dropping st:0 frame=110408 fps= 25 q=-1.0 size= 326675kB time=01:13:38.89 bitrate= 605.6kbits/s frame=110526 fps= 25 q=-1.0 size= 327025kB time=01:13:43.61 bitrate= 605.6kbits/s negative cts, previous timestamps might be wrong [flv @ 0000000004a72a60] Non-monotonous DTS in output stream 0:0; previous: 4423587, current: -52282; changing to 4423587. This may result in incorrect timestamps in the output file. [flv @ 000000000039f900] negative cts, previous timestamps might be wrong [flv @ 0000000004a72a60] Non-monotonous DTS in output stream 0:0; previous: 4423587, current: -52202; changing to 4423587. This may result in incorrect timestamps in the output file. So you can see at that point the the DTS/PTS status message is completed replaced by the "Non-monotonous DTS" error. Also notice the "current" value is negative and then climbs back to positive value. Thanks for any insight. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Help-with-error-Non-monotonous-DTS-in-output-stream-tp4659052.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tom.distler at gmail.com Mon May 13 19:56:59 2013 From: tom.distler at gmail.com (Tom Distler) Date: Mon, 13 May 2013 11:56:59 -0600 Subject: [FFmpeg-user] Converting MPEG-2 TS segments into MP4 fragments Message-ID: Hi, I have a series of ts segments (seg001.ts, seg002.ts, etc) that I want to convert into mp4 fragment files... i.e. files w/ a 'moof' box instead of a 'moov' box. I've tried ` ffmpeg -i seg001.ts -codec copy seg001.m4v`, but that generates files w/ independent "movies"... each w/ it's own 'moov' box. Is the segment muxer able to do what I want? I've been able to use it to create a single file w/ multiple 'moof' boxes inside, but I really need separate files for each segment (they are created live on-the-fly). Thanks. From andrey.krieger.utkin at gmail.com Mon May 13 20:57:35 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Mon, 13 May 2013 21:57:35 +0300 Subject: [FFmpeg-user] Help with error: "Non-monotonous DTS in output stream" In-Reply-To: <1368462678466-4659052.post@n4.nabble.com> References: <1368462678466-4659052.post@n4.nabble.com> Message-ID: 2013/5/13 avirex : > Hello. > > I am re-streaming a Live H264/AAC stream using ffmpeg (windows). After > about 1 hour I'm getting the following error in the console: > ... skipped... > > So you can see at that point the the DTS/PTS status message is completed > replaced by the "Non-monotonous DTS" error. Also notice the "current" value > is negative and then climbs back to positive value. > > > Thanks for any insight. Well, from my own experience on RTMP streams, it really may give you non-monotonic timestamps, so it is not a ffmpeg mistake. The other question is - is there any problem with saved video? If none, you may ignore this output. -- Andrey Utkin From andrey.krieger.utkin at gmail.com Mon May 13 21:04:04 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Mon, 13 May 2013 22:04:04 +0300 Subject: [FFmpeg-user] Converting MPEG-2 TS segments into MP4 fragments In-Reply-To: References: Message-ID: 2013/5/13 Tom Distler : > Hi, > > I have a series of ts segments (seg001.ts, seg002.ts, etc) that I want to > convert into mp4 fragment files... i.e. files w/ a 'moof' box instead of a > 'moov' box. > > I've tried ` ffmpeg -i seg001.ts -codec copy seg001.m4v`, but that > generates files w/ independent "movies"... each w/ it's own 'moov' box. > > Is the segment muxer able to do what I want? I've been able to use it to > create a single file w/ multiple 'moof' boxes inside, but I really need > separate files for each segment (they are created live on-the-fly). I guess concat demuxer does what you need. Below are links to official docs and usage examples. http://ffmpeg.org/faq.html#How-can-I-concatenate-video-files_003f http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files -- Andrey Utkin From tom.distler at gmail.com Mon May 13 21:30:06 2013 From: tom.distler at gmail.com (Tom Distler) Date: Mon, 13 May 2013 13:30:06 -0600 Subject: [FFmpeg-user] Converting MPEG-2 TS segments into MP4 fragments Message-ID: > I guess concat demuxer does what you need. Unfortunately, I'm not looking to concatenate all the segments into a single file. I'm looking to generate a 1:1 relationship between seg*.ts -> seg*.m4v... i.e. if I have 100 TS segment files, I want 100 MP4 fragment files, but all those fragment files to be part of the same "movie" (i.e. associated w/ a single 'moov' description). Ultimately, my goal is generate the following: seg001.ts -> init.mp4 (w/ 'moov' box) and seg001.m4s ('moof') seg002.ts -> seg002.m4s ('moof') seg003.ts -> seg003.m4s ('moof') etc From andrey.krieger.utkin at gmail.com Mon May 13 22:26:06 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Mon, 13 May 2013 23:26:06 +0300 Subject: [FFmpeg-user] Converting MPEG-2 TS segments into MP4 fragments In-Reply-To: References: Message-ID: 2013/5/13 Tom Distler : First, use reply action, not a new thread. >> I guess concat demuxer does what you need. > > Unfortunately, I'm not looking to concatenate all the segments into a > single file. I'm looking to generate a 1:1 relationship between seg*.ts -> > seg*.m4v... i.e. if I have 100 TS segment files, I want 100 MP4 fragment > files, but all those fragment files to be part of the same "movie" (i.e. > associated w/ a single 'moov' description). > > Ultimately, my goal is generate the following: > > seg001.ts -> init.mp4 (w/ 'moov' box) and seg001.m4s ('moof') > seg002.ts -> seg002.m4s ('moof') > seg003.ts -> seg003.m4s ('moof') > etc I am not sure I fully understand what the feature you need. Looking fast to available muxer options I didn't find something like that. If you understand MP4 internal structure well, maybe you could look inside libavformat/movenc.c to figure out how it behaves and what you could change. -- Andrey Utkin From avirex112 at hotmail.com Mon May 13 23:17:16 2013 From: avirex112 at hotmail.com (avirex) Date: Mon, 13 May 2013 14:17:16 -0700 (PDT) Subject: [FFmpeg-user] Help with error: "Non-monotonous DTS in output stream" In-Reply-To: References: <1368462678466-4659052.post@n4.nabble.com> Message-ID: <1368479836046-4659058.post@n4.nabble.com> Hi Andrey. First, thanks for your response. Yes, I am re-streaming an incoming RTMP stream (using librtmp) and pushing that out to my own localhost RTMP server. So actually I am not saving the stream. >From the end user perspective, when trying to watch the resultant stream coming from my RTMP server, as soon as these messages begin appearing the output video begins pausing and getting "stuck" while the audio continues flowing. The problem gets worse and worse until it is unwatchable. The interesting thing is, I have 4 other streams running using the exact same ffmpeg binary and coming from the exact same source, but they are not exhibiting this behavior at all. Very odd. Thanks again for any help. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Help-with-error-Non-monotonous-DTS-in-output-stream-tp4659052p4659058.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From blahblahblahblha303 at gmail.com Mon May 13 20:00:08 2013 From: blahblahblahblha303 at gmail.com (Steven Smith) Date: Tue, 14 May 2013 02:00:08 +0800 Subject: [FFmpeg-user] Combining multiple videos into a new multi-video-track file with the audio from the first video Message-ID: Good day :) I've been trying to combine three separate videos from different angles into a single file with all three video tracks, and the audio from the first one. I just now succeeded, as I was writing this. I'm documenting what I did because there's hardly any information about doing this. The main links that helped me are http://www.ehow.com/how_12014220_map-multiple-streams-ffmpeg.html and http://youmakemedia.com/2007/03/ffmpegx-tip-codec-type-mismatch/ . Here is the command I used: ffmpeg -i Alsmiffy.mp4 -i Djh3max.mp4 -i Trottimus.mp4 -map 0.0 -map 0.1 -map 1.0 -map 2.0 output.mp4 -newvideo -newvideo The main thing to remember is that the first two streams must be video/audio, then after that they can be just video. Also you have to add new video streams with -newvideo. The downside with this is that VLC doesn't let you select between the tracks properly, it just plays them all in separate windows. I'm fine with this, to be honest, as they're all synchronized with the audio. ----------------------------------- Update: I tried to get ffmpeg to copy the original video streams instead of re-encoding them in a much lower resolution with '-vcodec copy' but it seems to only work on the first stream, if it works at all. Can someone please suggest a better combination of options? http://paste.hasteb.in/?id=oXF Regards, Steven Smith stevensmith.ome at gmail.com From neltnerb at MIT.EDU Tue May 14 05:31:26 2013 From: neltnerb at MIT.EDU (Brian Neltner) Date: Mon, 13 May 2013 23:31:26 -0400 Subject: [FFmpeg-user] Strange Audio Rate Issues In-Reply-To: <1368420207.7737.13.camel@zeeman> References: <1368420207.7737.13.camel@zeeman> Message-ID: <1368502286.27454.11.camel@zeeman> Hello, I have tried adding -ar 44100 both before -i pulse, before -acodec libmp3lame, and both simultaneously. Similarly with 48000. Also the same issue with ac3 and pcm encoding (although pcm didn't like going into mp4). Even stranger because whether I tell it that the input is at 48000, 44100, or 22050, it always pitch shifts down on playback despite claiming to be at the chosen sample rate. The only thing I can think of is that it has some hardcoded assumption about the alsa sample rate that it's trying to then convert in software without actually checking it on the hardware. I'm going to try to figure out how to see what the default sample rate is in alsa or something, but I'm totally unfamiliar with that system. Brian On Mon, 2013-05-13 at 00:43 -0400, Brian Neltner wrote: > Dear FFMPEG Users, > > Apologies for the hopefully obvious question, but I've been struggling > with this for a few days and it's driving me nuts. > > I'm trying to do a screen capture from my desktop with captured audio. I > am starting with the most trivial command I can generate to do this: > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 15 -s 1920:1080 -i :0.0 > -acodec libmp3lame output.mp4 > > The issue is that when I use this command to simultaneously do a screen > capture along with audio capture from my pulseaudio capture port set to > monitor it does not record at the proper audio rate, but claims it did. > > Examples: > > Video: https://www.dropbox.com/s/13hwuxd2p725re6/output.mp4 > Audio: https://www.dropbox.com/s/vc15pvpvg74aj3q/output.mp3 > > The video clearly shows that the mp4 audio sample rate is 48000Hz, and > shows clearly that sox is generating a 440Hz tone at 48000Hz sample > rate. The audio file is directly outputting from sox into a file, and > accurately represents what I hear through my speakers. > > As you can see, the mp4 file (same issue with avi, FWIW) has a frequency > shifted sine wave from 440Hz and drifts out of audio sync rapidly. You > can clearly see the levels on the mixer showing that it's not playing > when it should be (along with watching the play command). > > This makes no sense to me; I've tried multiple audio codecs, multiple > output formats (avi and mp4), multiple manual audio rates, I tried > manually setting the video frame rate, but it all ends up the same. > Obviously, this makes recording a screen capture with correctly > synhronized audio in less constructed cases impossible. > > Can anyone explain to me what is going on? > > I am using ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1 > > Best regards, > Brian > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Tue May 14 11:20:31 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 14 May 2013 09:20:31 +0000 (UTC) Subject: [FFmpeg-user] Combining multiple videos into a new multi-video-track file with the audio from the first video References: Message-ID: Steven Smith gmail.com> writes: > ffmpeg -i Alsmiffy.mp4 -i Djh3max.mp4 -i Trottimus.mp4 > -map 0.0 -map 0.1 -map 1.0 -map 2.0 output.mp4 -newvideo > -newvideo There is no -newvideo option in FFmpeg for a very long time. Carl Eugen From cehoyos at ag.or.at Tue May 14 11:34:17 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 14 May 2013 09:34:17 +0000 (UTC) Subject: [FFmpeg-user] Combining multiple videos into a new multi-video-track file with the audio from the first video References: Message-ID: Steven Smith gmail.com> writes: > I tried to get ffmpeg to copy the original video streams > instead of re-encoding them in a much lower resolution > with '-vcodec copy' but it seems to only work on the first > stream, if it works at all. Can someone please suggest a > better combination of options? > http://paste.hasteb.in/?id=oXF (Please do not use external resources when asking for support here, always post all necessary information into the mail.) > ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1 This is not FFmpeg. It is an intentionally broken version that contains several hundred bugs not present in FFmpeg, some of them security relevant, please understand that we therefore cannot support it. Please see http://ffmpeg.org/download.html for supported versions (you probably need a "static build" if you don't want to compile yourself). Carl Eugen From andrey.krieger.utkin at gmail.com Tue May 14 12:03:59 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Tue, 14 May 2013 13:03:59 +0300 Subject: [FFmpeg-user] Help with error: "Non-monotonous DTS in output stream" In-Reply-To: <1368479836046-4659058.post@n4.nabble.com> References: <1368462678466-4659052.post@n4.nabble.com> <1368479836046-4659058.post@n4.nabble.com> Message-ID: 2013/5/14 avirex : > Yes, I am re-streaming an incoming RTMP stream (using librtmp) and pushing > that out to my own localhost RTMP server. So actually I am not saving the > stream. > > From the end user perspective, when trying to watch the resultant stream > coming from my RTMP server, as soon as these messages begin appearing the > output video begins pausing and getting "stuck" while the audio continues > flowing. The problem gets worse and worse until it is unwatchable. So it (ffmpeg as i understand) discards frames with non-monotonic timestamps. I'd make something to log all the timestamps into file, to investigate the pattern and make a strategy. You may need slightly modify ffmpeg sources for it, if it does not give it to you as is. You could also use (or add) some option to make ffmpeg exit on such error, so you could automatically restart it from script. > The interesting thing is, I have 4 other streams running using the exact > same ffmpeg binary and coming from the exact same source, but they are not > exhibiting this behavior at all. Very odd. Yes, it's weird. What if it is some "logics" of rtmp server, managing content sent to particular watcher? Maybe your server inserts commercials time to time, not for all watchers at once, but on particular watchers separately? Good luck fighting! -- Andrey Utkin From stevensmith.ome at gmail.com Tue May 14 12:18:26 2013 From: stevensmith.ome at gmail.com (Steven Smith) Date: Tue, 14 May 2013 18:18:26 +0800 Subject: [FFmpeg-user] Combining multiple videos into a new multi-video-track file with the audio from the first video In-Reply-To: References: Message-ID: Aha. I wasn't aware of this. I'll get an updated version and try again. Thanks. Steven On Tue, May 14, 2013 at 5:34 PM, Carl Eugen Hoyos wrote: > Steven Smith gmail.com> writes: > >> I tried to get ffmpeg to copy the original video streams >> instead of re-encoding them in a much lower resolution >> with '-vcodec copy' but it seems to only work on the first >> stream, if it works at all. Can someone please suggest a >> better combination of options? >> http://paste.hasteb.in/?id=oXF > > (Please do not use external resources when asking for > support here, always post all necessary information > into the mail.) > >> ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1 > > This is not FFmpeg. > It is an intentionally broken version that contains > several hundred bugs not present in FFmpeg, some of > them security relevant, please understand that we > therefore cannot support it. > Please see http://ffmpeg.org/download.html for > supported versions (you probably need a "static build" > if you don't want to compile yourself). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From andrey.krieger.utkin at gmail.com Tue May 14 12:31:16 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Tue, 14 May 2013 13:31:16 +0300 Subject: [FFmpeg-user] Strange Audio Rate Issues In-Reply-To: <1368502286.27454.11.camel@zeeman> References: <1368420207.7737.13.camel@zeeman> <1368502286.27454.11.camel@zeeman> Message-ID: Hi! As far as i got you, you have sound distorted in some way, is that correct? Let's first locate a problem. Drop the video recording, let's focus on just the audio. Use simplest options set you can to record your audio (and don't forget to use recent ffmpeg version and share with us the full console output with -loglevel debug). If problem is still here, check with other recording applications, maybe the problem is in your hardware or drivers. -- Andrey Utkin From ravindrapai34 at gmail.com Tue May 14 13:51:27 2013 From: ravindrapai34 at gmail.com (ravindra pai) Date: Tue, 14 May 2013 17:21:27 +0530 Subject: [FFmpeg-user] using ffmpeg , how to convert live rtp steam which has video encoded in VP8 and audio in iSAC to mpegts format Message-ID: Hi, I have a server which is sending audio and video stream on rtp(via udp) port. I want this stream to be input for ffmpeg and ffmpeg does transcoding of this to mpegts in real time. Can you guys please suggest a ffmpeg command for this? Thanks in advance, Ravindra From ravindrapai34 at gmail.com Tue May 14 13:34:00 2013 From: ravindrapai34 at gmail.com (ravindra pai) Date: Tue, 14 May 2013 17:04:00 +0530 Subject: [FFmpeg-user] using ffmpeg , how to convert live rtp steam which has video encoded in VP8 and audio in iSAC to mpegts format Message-ID: Hi, I have a server which is sending audio and video stream on rtp(via udp) port. I want this stream to be input for ffmpeg and ffmpeg does transcoding of this to mpegts in real time. Can you guys please suggest a ffmpeg command for this? Thanks in advance, Ravindra From belcampo at zonnet.nl Tue May 14 18:43:34 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Tue, 14 May 2013 18:43:34 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> <518DEFEF.9080000@walterebert.com> Message-ID: <4E881E98-1A00-454C-AB32-0C188F0BEE18@zonnet.nl> On May 13, 2013, at 11:02 AM, Andrew Sinclair wrote: > Hi All, > > Sorry to pipe in late but after spending a lot of time recently on Android > I can tell you there is no simple answer for HLS to work consistently > across all devices. The underlying issue is that every hardware variation > has a different video decoder chip and by nature this means that they all > have slightly different video players compiled which are then called via > JNI from the Android application layer. > > Now while many of these players are deriviatives of ffmpeg/ffplay they are > often from way old versions. > > Best bet is to only go with a single bitrate if you want it to work > reasonably well as multi bitrate will vary massively from device to device. > If you really want good Android support you need to go with a custom media > player and you can launch these via a webpage using an intent or just embed > them in an app. > > For maximum compatibility I have also found that some Android devices don't > like a lot of variation between what they get in the playlists and what > they see in the segments so you should force keyframes so that the segment > doesn't have chop on where the next I frame comes. I have been using a > wrapper around ffmpeg to generate the keyframe string > https://gist.github.com/sinkers/5567058 though should time permit I would > like to get this into the ffmpeg codebase. Suggestions to improve encoding speed and lowering bitrate by use of the crf function and anamorphic instead of a PAR of 1:1 By dividing build.sh in 5 pieces, 1 for each resolution, for example 1.sh - 5.sh. Remove the 2 pass solution to 1 pass In stead of -s 960x540 use 604x540 and for -s 1280x720 use 896x720 Run in parallel with time ./5.sh 2>/dev/null & time ./4.sh 2>/dev/null & time ./3.sh 2>/dev/null & time ./2.sh 2>/dev/null & time ./1.sh 2>/dev/null & On my 4-core machine encoding drops from user 8m49.890s to user 1m19.143s Total size of all encoded files drops from 30M tsorig ; original build.sh to 19M ts ; crf 22 instead of bitrate and anamorphic vs PAR 1:1 I don't know of anamorphic works on Android on Apple iPod Touch TV iPad all works perfect Henk > > However if anyone was to map which variations of HLS work and don't work on > the many many devices it would be quite useful! > > Regards, > Andrew > > > On 13 May 2013 15:14, Fing Cmo wrote: > >> Walter, >> >> Just to correct and add to the test list. >> I tested your HLS test page on the following devices on their Chrome >> browsers. >> Latest official OS/Firmware versions as of today. >> >> Galaxy Note 2 -------------------- 1st AND 4th video play (No Flash). >> Google Nexus 4 (Phone) ----- 1st AND 4th video play (No Flash). >> Google Nexus 7 (Tablet) ----- 1st AND 4th video play (No Flash). >> iPhone 4 --------------------------- All 4 HTML5 videos play (No Flash). >> iPhone 5 --------------------------- All 4 HTML5 videos play (No Flash). >> Google TV (Vizio VAP430) - ALL 5 videos play including the flash one. >> >> Note that for Google TV, it plays in spite of your disclaimer: >> >> "*Note:* AddType application/vnd.apple.mpegurl m3u8 #Does not work on >> Android >> >> So apparently it works on that Android :) >> >> Thanks, >> FC. >> ........................... >> >> >> On Sat, May 11, 2013 at 12:14 AM, Walter Ebert >> wrote: >> >>>> If you don't mind, can you provide the ffmpeg commands you used to >>>> generate the video segments? >>> >>> The commands are on Bitbucket: >>> https://bitbucket.org/walterebert/ffmpeg-hls/src >>> >>>> Do the exact segments play on iDevices as well? >>>> I guess I can test those later on iPhone :) >>> >>> The segments play on iOS devices. Although there is a problem on older >>> devices with a resolution of 480x360 pixels (and iOS 4.2): >>> - The first video can be started, but actually does not play because it >>> contains higher resolution streams. >>> - The 2nd and 3rd video cannot be started. >>> - The 4th video with the 480x270.m3u8 stream play just fine. >>> >>> I would have expected that the device would automatically select the >>> highest resolution it can play. >>> >>> On iPad the videos play without any problems. iPad 1 cannot play full HD >>> (1920x1080) or higher. That is why the highest resolution on test page >>> is 1280x720 pixels. >>> >>>>> I looked at your test page and found that your 3rd example has a typo >> in >>>>> the mime type: appplication/vnd.apple.mpegURL >>>>> >>>>> It should be application/vnd.apple.mpegURL >>>>> >>>>> (Note your mistaken triple "p") >>> >>> Thanks Timothy for catching that. I corrected the MIME type. >>> >>> Cheers, >>> Walter >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From matthew at lifandi.org Wed May 15 03:22:01 2013 From: matthew at lifandi.org (Matthew Morgan) Date: Tue, 14 May 2013 21:22:01 -0400 Subject: [FFmpeg-user] buffer underflow when muxing with ntsc-dvd Message-ID: <5192E339.9090702@lifandi.org> I've been using Cinelerra for a while to generate DVD's, and my workflow involves: rendering the audio and video separately from Cinelerra, muxing them with ffmpeg using -target ntsc-dvd, then following the normal dvd-author workflow after that. Up until recently there'd been a different bug that prevent me from using the latest ffmpeg for this, but that bug had been fixed. So, I did a git merge a few days ago and compiled the latest version of ffmpeg. Now I'm having a weird problem with the muxing process. The video file in question is actually a slideshow of still images with a crossfade transition between each, thus the stream doesn't demand a very high bitrate. When I try to mux that file with its corresponding audio, I get this: (note, in the example I'm using a shorter test version of the file - same results). ffmpeg -i test.m2v -i test.wav -target ntsc-dvd test.mpg ffmpeg version N-53018-ge70e258 Copyright (c) 2000-2013 the FFmpeg developers built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libv4l2 --enable-x11grab --enable-libvpx libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 65.100 / 3. 65.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpegvideo @ 0xa2b9d20] max_analyze_duration 5000000 reached at 5005000 microseconds Input #0, mpegvideo, from 'test.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc [wav @ 0xa413900] max_analyze_duration 5000000 reached at 5013333 microseconds Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'test.wav': Duration: 00:02:54.71, bitrate: 1536 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, dvd, to 'test.mpg': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video) Stream #1:0 -> #0:1 (pcm_s16le -> ac3) Press [q] to stop, [?] for help buffer underflow i=1 bufi=1657 size=1792B time=00:02:44.76 bitrate=2322.6kbits/s [dvd @ 0xa2ca900] buffer underflow i=1 bufi=1657 size=1792 Last message repeated 2 times buffer underflow i=1 bufi=1664 size=1792B time=00:02:52.85 bitrate=2270.1kbits/s [dvd @ 0xa2ca900] buffer underflow i=1 bufi=1664 size=1792 Last message repeated 2 times frame= 5236 fps=173 q=2.0 Lsize= 48212kB time=00:02:54.71 bitrate=2260.6kbits/s video:37146kB audio:9555kB subtitle:0 global headers:0kB muxing overhead 3.234747% Using the full version of the file, I get a LOT more of those buffer underflows, but you get the idea. It turns out that the older version of ffmpeg that I'd been using (0.10.6) had this problem too. A bit of research on google led me a to a post which suggested using `-minrate 1000k` after `-target ntsc-dvd` in my command line. This got rid of the buffer underflows in 0.10.6, but not my git build. With all this weirdness, I decided I'd better poke around the input file and see if I could figure out what was weird, and I just ran into more weirdness. Here's an ffprobe of the input file using my git version of ffmpeg: ffprobe version N-53018-ge70e258 Copyright (c) 2007-2013 the FFmpeg developers built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libv4l2 --enable-x11grab --enable-libvpx libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 65.100 / 3. 65.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpegvideo @ 0xa0929a0] max_analyze_duration 5000000 reached at 5005000 microseconds Input #0, mpegvideo, from 'test.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc What? It doesn't know what the bitrate is? Here's the output of ffprobe from 0.10.6: ffprobe version 0.10.6 Copyright (c) 2007-2012 the FFmpeg developers built on Mar 14 2013 20:38:10 with gcc 4.6.3 configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libv4l2 --enable-x11grab --enable-libvpx libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [mpegvideo @ 0x9ca6ce0] max_analyze_duration 5000000 reached at 5005000 [mpegvideo @ 0x9ca6ce0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegvideo, from 'test.m2v': Duration: 00:00:33.68, bitrate: 8999 kb/s Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s, 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc It works fine! The weirdest part of it all is that Cinelerra is actually using ffmpeg to create the m2v in the first place! The git version is what's in my path so it's using that. Here's the Cinelerra output from creating the m2v in the first place: ffmpeg version N-53018-ge70e258 Copyright (c) 2000-2013 the FFmpeg developers built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libv4l2 --enable-x11grab --enable-libvpx libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 65.100 / 3. 65.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, yuv4mpegpipe, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Assuming NTSC for target. Output #0, mpeg2video, to '/home/lytithwyn/Videos/grandma_memorial/test.m2v': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 10:11 DAR 15:11], q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg2video) frame= 5236 fps= 69 q=2.0 Lsize= 37003kB time=00:02:54.67 bitrate=1735.4kbits/s video:37003kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000% I hope I haven't overloaded you with command line output, but I didn't know what else to do. ;) Here are download links for the sample files: http://lifandi.org/ffmpeg/test.m2v (37 MB) http://lifandi.org/ffmpeg/test.wav (32 MB) From mail at walterebert.com Tue May 14 23:38:37 2013 From: mail at walterebert.com (Walter Ebert) Date: Tue, 14 May 2013 23:38:37 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <4E881E98-1A00-454C-AB32-0C188F0BEE18@zonnet.nl> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> <518DEFEF.9080000@walterebert.com> <4E881E98-1A00-454C-AB32-0C188F0BEE18@zonnet.nl> Message-ID: <1d09017f4c7d53c61b66fae52309ff0d@walterebert.com> Hi Henk, > Suggestions to improve encoding speed and lowering bitrate by use of > the crf function and anamorphic instead of a PAR of 1:1 > By dividing build.sh in 5 pieces, 1 for each resolution, for example > 1.sh - 5.sh. > Remove the 2 pass solution to 1 pass > In stead of -s 960x540 use 604x540 and for -s 1280x720 use 896x720 > Run in parallel with > time ./5.sh 2>/dev/null & time ./4.sh 2>/dev/null & time ./3.sh > 2>/dev/null & time ./2.sh 2>/dev/null & time ./1.sh 2>/dev/null & > On my 4-core machine encoding drops from > user 8m49.890s > to > user 1m19.143s > Total size of all encoded files drops from > 30M tsorig ; original build.sh > to > 19M ts ; crf 22 instead of bitrate and anamorphic vs PAR 1:1 > > I don't know of anamorphic works on Android on Apple iPod Touch TV > iPad all works perfect > I will take a closer look into your suggestions. But my script was written to get a working solution with good visual quality on Android. Encoding speed was not a consideration. At this point I am still learning by doing ;-) Cheers, Walter From belcampo at zonnet.nl Wed May 15 09:48:47 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Wed, 15 May 2013 09:48:47 +0200 Subject: [FFmpeg-user] Playback issues with HLS on Android In-Reply-To: <1d09017f4c7d53c61b66fae52309ff0d@walterebert.com> References: <04DB7686-2B70-4878-A986-48505D4AB50F@renecalles.de> <1C9120B1-7ED5-459B-A5AB-5DD9B167A0E0@renecalles.de> <104428fda2c989fd4027849dc0e40829@renecalles.de> <518D3D20.7040400@walterebert.com> <518DEFEF.9080000@walterebert.com> <4E881E98-1A00-454C-AB32-0C188F0BEE18@zonnet.nl> <1d09017f4c7d53c61b66fae52309ff0d@walterebert.com> Message-ID: On May 14, 2013, at 11:38 PM, Walter Ebert wrote: > Hi Henk, > >> Suggestions to improve encoding speed and lowering bitrate by use of >> the crf function and anamorphic instead of a PAR of 1:1 >> By dividing build.sh in 5 pieces, 1 for each resolution, for example >> 1.sh - 5.sh. >> Remove the 2 pass solution to 1 pass >> In stead of -s 960x540 use 604x540 and for -s 1280x720 use 896x720 >> Run in parallel with >> time ./5.sh 2>/dev/null & time ./4.sh 2>/dev/null & time ./3.sh >> 2>/dev/null & time ./2.sh 2>/dev/null & time ./1.sh 2>/dev/null & >> On my 4-core machine encoding drops from >> user 8m49.890s >> to >> user 1m19.143s >> Total size of all encoded files drops from >> 30M tsorig ; original build.sh >> to >> 19M ts ; crf 22 instead of bitrate and anamorphic vs PAR 1:1 >> >> I don't know of anamorphic works on Android on Apple iPod Touch TV >> iPad all works perfect >> > > I will take a closer look into your suggestions. But my script was written to get a working solution with good visual quality on Android. Which you succeeded at and I'm very grateful for that as it helped me a lot. Henk > Encoding speed was not a consideration. > > At this point I am still learning by doing ;-) > > Cheers, > Walter > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From blacktrash at gmx.net Wed May 15 11:10:38 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 15 May 2013 11:10:38 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image Message-ID: <20130515091038.GF31389@krille.blacktrash.org> Hi, How do I map the streams so that the overlay filter does not select the cover image of the input video as overlay? I thought I had deselected stream 0:2 by specifying -map 0:v:0? Adding -map 1 also has no effect. $ ffmpeg -i test.mp4 -i logo.png -map 0:v:0 -filter_complex overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 ffmpeg version N-52940-g43b6482 Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 22:07:16 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --enable-shared --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] stream 0, timescale not set [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : M4V minor_version : 1 compatible_brands: isomavc1M4A M4V mp42 creation_time : 2013-05-06 08:00:24 title : Test Duration: 00:04:14.38, start: 0.000000, bitrate: 784 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 728 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2013-05-06 08:00:24 handler_name : test Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 52 kb/s Metadata: creation_time : 2013-01-07 15:23:42 handler_name : test Stream #0:2: Video: mjpeg, yuvj420p, 512x384 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc Input #1, image2, from 'logo.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: png, rgba, 100x20, 25 tbr, 25 tbn, 25 tbc [libx264 @ 0x2818c20] using SAR=1/1 [libx264 @ 0x2818c20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x2818c20] profile High, level 3.0 [libx264 @ 0x2818c20] 264 - core 132 r2310 76a5c3a - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test.mp4': Metadata: major_brand : M4V minor_version : 1 compatible_brands: isomavc1M4A M4V mp42 title : Test encoder : Lavf55.4.101 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 12800 tbn, 25 tbc Stream mapping: Stream #0:0 (h264) -> overlay:main Stream #0:2 (mjpeg) -> overlay:overlay overlay -> Stream #0:0 (libx264) Press [q] to stop, [?] for help [Parsed_overlay_0 @ 0x220b800] Buffer queue overflow, dropping. Last message repeated 324 times Buffer queue overflow, dropping. 0kB time=00:00:00.00 bitrate=N/A [Parsed_overlay_0 @ 0x220b800] Buffer queue overflow, dropping. -- \black\trash movie _SAME TIME SAME PLACE_ --->> http://www.blacktrash.org/underdogma/stsp.php \black\trash audio _ANOTHER TIME ANOTHER PLACE_ --->> http://www.blacktrash.org/underdogma/atap.html From 921353606 at qq.com Wed May 15 11:42:38 2013 From: 921353606 at qq.com (=?gb18030?B?wO7QwsPx?=) Date: Wed, 15 May 2013 17:42:38 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file Message-ID: I tried to inspect 2 wmv files. The commond is "ffmpeg -i Screen.wmv". One of them met a question. the output is: ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg developers built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enablelibtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 19.100 / 52. 19.100 libavcodec 55. 0.100 / 55. 0.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 54. 4.100 / 54. 4.100 libavfilter 3. 45.103 / 3. 45.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [asf @ 02597ce0] Could not find codec parameters for stream 0 (Video: none (EJQV / 0x56514A45), 1920x1080, 167 kb/s): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Screen.wmv: could not find codec parameters; The other is ok. The output is: E:\video\ffmpeg -i Video.wmv ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg developers built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 19.100 / 52. 19.100 libavcodec 55. 0.100 / 55. 0.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 54. 4.100 / 54. 4.100 libavfilter 3. 45.103 / 3. 45.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [h264 @ 02598320] Missing reference picture, default is 0 [h264 @ 02598320] decode_slice_header error Input #0, flv, from 'Video.wmv': Duration: 00:43:32.98, start: 0.040000, bitrate: 3497 kb/s Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x720, 25 tbr, 1k tbn, 50 t bc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s At least one output file must be specified The wmv file with question is attached to this mail. Please help me. Thanks a lot for any help. From ecosta.tmp at gmail.com Wed May 15 12:03:32 2013 From: ecosta.tmp at gmail.com (Eduardo Costa) Date: Wed, 15 May 2013 11:03:32 +0100 Subject: [FFmpeg-user] From mp3 to fixed-length swf/flv/f4v Message-ID: Hi guys, I'm trying to convert mp3 files to swf (or f4v/flv, but haven't looked at these formats in depth, see below for my question regarding them). The point is being able to do http audio-streamming for a flash audio-player. So I started with a command like this: `ffmpeg -i input.mp3 -acodec copy -vcodec copy out.swf' Which gives me the mp3 cut at frame boundaries, and dispossed as swf frames. I could load the resulting file from flash and works like a charm. The only problem is that from within the swf file, I can see some (mp3) frames being 421 bytes long, others 422, randomly. This seems to be how the mp3 works, though I've read mp3's header has a padding bit. My question is, is it possible to force ffmpeg to output mp3 frames of same length? perhaps even adding whatever's necessary no-ops the last frame so even it is of same length as the rest? Regarding f4v/flv formats, I could also use these to contain my mp3 files, so here I'd be seeking for hints on wheter to use one or the other based on the following criteria: Whenever possible, I'd prefer to work based on fixed-length blocks. There's a cgi streamming these mp3's, and so it would be much ligther if it could just take byte offsets as input, than anything else forcing me to open and parse/seek until the desired block is found (which would happen for every client of this cgi). I've also seen another widely-used method which is embedding metadata on the resulting file, which is basically a mapping of blocks and it's sizes the player can use to build a proper request to the server. But I'd prefer avoiding such computational-overhead for the player, if possible. I don't actually understand why would anybody go this way instead of the former, at least for audio, unless for some reason, maximum granularity or control over the file is not wanted. Well, thanks for any hints, Regards, From rogat1y at gmail.com Wed May 15 12:21:39 2013 From: rogat1y at gmail.com (Maxim Kozlov) Date: Wed, 15 May 2013 14:21:39 +0400 Subject: [FFmpeg-user] using ffmpeg , how to convert live rtp steam which has video encoded in VP8 and audio in iSAC to mpegts format In-Reply-To: References: Message-ID: 2013/5/14 ravindra pai > Hi, > I have a server which is sending audio and video stream on rtp(via > udp) port. I want this stream to be input for ffmpeg and ffmpeg does > transcoding of this to mpegts in real time. > > Can you guys please suggest a ffmpeg command for this? > > Thanks in advance, > Ravindra > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > for example: ffmpeg -i rtp://x.x.x.x:1234 -c:v libx264 -profile:v baseline -s 640x360 -vb 1024k -x264opts level=31:fps=25:vbv_maxrate=1024:vbv_bufsize=1024 -aspect 16:9 -q:v 0 -c:a libvo_aacenc -ab 128k -ar 44100 -ac 2 -f mpegts udp://x.x.x.x:port From cehoyos at ag.or.at Wed May 15 12:22:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 10:22:49 +0000 (UTC) Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: Message-ID: ??? <921353606 qq.com> writes: > [asf 02597ce0] Could not find codec parameters > for stream 0 (Video: none (EJQV Please provide the sample, either upload it to http://www1.datafilehost.com/ or read http://ffmpeg.org/bugreports.html (there is no hard size limit). Carl Eugen From cehoyos at ag.or.at Wed May 15 12:29:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 10:29:57 +0000 (UTC) Subject: [FFmpeg-user] overlay filter uses unmapped cover image References: <20130515091038.GF31389@krille.blacktrash.org> Message-ID: Christian Ebert gmx.net> writes: > $ ffmpeg -i test.mp4 -i logo.png -map 0:v:0 -filter_complex > overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 -filter_complex [0:v][2:v]overlay One of the examples in http://ffmpeg.org/ffmpeg-filters.html#Examples-8 shows this syntax. Carl Eugen From 921353606 at qq.com Wed May 15 12:39:37 2013 From: 921353606 at qq.com (921353606@qq) Date: Wed, 15 May 2013 18:39:37 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , Message-ID: <201305151839344219833@qq.com> Thank you. But I can not visit http://www1.datafilehost.com/ Are there any easier way than reading http://ffmpeg.org/bugreports.html? since I'm not very good at English. 921353606 at qq From: Carl Eugen Hoyos Date: 2013-05-15 18:22 To: ffmpeg-user Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file ??? <921353606 qq.com> writes: > [asf 02597ce0] Could not find codec parameters > for stream 0 (Video: none (EJQV Please provide the sample, either upload it to http://www1.datafilehost.com/ or read http://ffmpeg.org/bugreports.html (there is no hard size limit). Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed May 15 12:51:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 10:51:05 +0000 (UTC) Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com> Message-ID: 921353606 qq <921353606 qq.com> writes: > Are there any easier way than reading > http://ffmpeg.org/bugreports.html? > since I'm not very good at English. Upload your sample to ftp://upload.ffmpeg.org/incoming Please do not top-post here, it is considered rude. Carl Eugen From 921353606 at qq.com Wed May 15 13:09:24 2013 From: 921353606 at qq.com (921353606@qq) Date: Wed, 15 May 2013 19:09:24 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, Message-ID: <201305151909218904297@qq.com> >From: Carl Eugen Hoyos >Date: 2013-05-15 18:51 >To: ffmpeg-user >Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file >921353606 qq <921353606 qq.com> writes: > Are there any easier way than reading > http://ffmpeg.org/bugreports.html? > since I'm not very good at English. >Upload your sample to ftp://upload.ffmpeg.org/incoming >Please do not top-post here, it is considered rude. >Carl Eugen _______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user I have upload the wmv file to ftp://upload.ffmpeg.org/incoming Its name is yj_Screen.wmv. Now I understand top-post, sorry for having done that. 921353606 at qq From blacktrash at gmx.net Wed May 15 13:09:34 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 15 May 2013 13:09:34 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image In-Reply-To: References: <20130515091038.GF31389@krille.blacktrash.org> Message-ID: <20130515110934.GG31389@krille.blacktrash.org> * Carl Eugen Hoyos on Wednesday, May 15, 2013 at 10:29:57 +0000 > Christian Ebert gmx.net> writes: >> $ ffmpeg -i test.mp4 -i logo.png -map 0:v:0 -filter_complex >> overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 > > -filter_complex [0:v][2:v]overlay > One of the examples in > http://ffmpeg.org/ffmpeg-filters.html#Examples-8 > shows this syntax. Thanks - it's [0:v][1:v] though - but I had already given up on that after: ffmpeg -i test.m4v -i logo.png -filter_complex scale=640:480,[0:v][1:v]overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 ffmpeg version N-52940-g43b6482 Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 22:07:16 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --enable-shared --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] stream 0, timescale not set [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.m4v': Metadata: major_brand : M4V minor_version : 1 compatible_brands: isomavc1M4A M4V mp42 creation_time : 2013-05-06 08:00:24 title : Test Duration: 00:04:14.38, start: 0.000000, bitrate: 784 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 728 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2013-05-06 08:00:24 handler_name : test Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 52 kb/s Metadata: creation_time : 2013-01-07 15:23:42 handler_name : test Stream #0:2: Video: mjpeg, yuvj420p, 512x384 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc Input #1, image2, from 'logo.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: png, rgba, 100x20, 25 tbr, 25 tbn, 25 tbc [AVFilterGraph @ 0x220d280] Too many inputs specified for the "overlay" filter. Error configuring filters. Does not give any errors when the overlay filter is at the beginning of the chain (I use other filters too), but I'd have to check the results. -- Was hei?t hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] free movies --->>> http://www.blacktrash.org/underdogma http://itunes.apple.com/podcast/underdogma-movies/id363423596 From blacktrash at gmx.net Wed May 15 13:34:28 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 15 May 2013 13:34:28 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image In-Reply-To: <20130515110934.GG31389@krille.blacktrash.org> References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> Message-ID: <20130515113428.GH31389@krille.blacktrash.org> * Christian Ebert on Wednesday, May 15, 2013 at 13:09:34 +0200 > * Carl Eugen Hoyos on Wednesday, May 15, 2013 at 10:29:57 +0000 >> Christian Ebert gmx.net> writes: >>> $ ffmpeg -i test.mp4 -i logo.png -map 0:v:0 -filter_complex >>> overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 >> >> -filter_complex [0:v][2:v]overlay >> One of the examples in >> http://ffmpeg.org/ffmpeg-filters.html#Examples-8 >> shows this syntax. > > Thanks - it's [0:v][1:v] though - but I had already given up on > that after: > > ffmpeg -i test.m4v -i logo.png -filter_complex scale=640:480,[0:v][1:v]overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 [...] > [AVFilterGraph @ 0x220d280] Too many inputs specified for the "overlay" filter. > Error configuring filters. > > Does not give any errors when the overlay filter is at the > beginning of the chain (I use other filters too), but I'd have to > check the results. Nah, I do want the overlay at the end of the chain - but fail miserably with this mapping stuff. There must be a way - if the input movie does not contain a cover image it works just fine at the end. -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From cehoyos at ag.or.at Wed May 15 13:42:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 11:42:40 +0000 (UTC) Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com> Message-ID: 921353606 qq <921353606 qq.com> writes: > >Upload your sample to ftp://upload.ffmpeg.org/incoming > >Please do not top-post here, it is considered rude. > > I have upload the wmv file to ftp://upload.ffmpeg.org/incoming > Its name is yj_Screen.wmv. Which player / codec supports this file? Carl Eugen From cehoyos at ag.or.at Wed May 15 13:44:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 11:44:20 +0000 (UTC) Subject: [FFmpeg-user] overlay filter uses unmapped cover image References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> Message-ID: Christian Ebert gmx.net> writes: > > -filter_complex [0:v][2:v]overlay > ffmpeg -i test.m4v -i logo.png -filter_complex > scale=640:480,[0:v][1:v]overlay Apart from the scale filter that changes your filter chain (the command line you are testing cannot work), you are still trying to feed the cover to the overlay filter. Carl Eugen From 921353606 at qq.com Wed May 15 13:50:36 2013 From: 921353606 at qq.com (921353606@qq) Date: Wed, 15 May 2013 19:50:36 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, Message-ID: <201305151950265780809@qq.com> From: Carl Eugen Hoyos Date: 2013-05-15 19:42 To: ffmpeg-user Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file 921353606 qq <921353606 qq.com> writes: > >Upload your sample to ftp://upload.ffmpeg.org/incoming > >Please do not top-post here, it is considered rude. > > I have upload the wmv file to ftp://upload.ffmpeg.org/incoming > Its name is yj_Screen.wmv. >Which player / codec supports this file? >Carl Eugen >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user I only know it was supported by window media player. From krueger at lesspain.de Wed May 15 13:55:33 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 13:55:33 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 Message-ID: Hi, I have remuxed an original XDCAM file created by an FCP7 export and the resulting file is no longer accepted by FCP7. I have not done this in quite a while and I was wondering if anyone else is using ffmpeg for generating FCP7-compatible XDCAM files or if they have all switched to ffmbc (which creates compatible files). I want to do this programmatically using libavformat but wanted to test on the command line first and was surprised it did not work, because I thought it had worked for years. Before I go through the files and compare atoms in the original and the remuxed file, I thought I'd ask if I'm missing something or what other people's experience is with ffmpeg-generated XDCAM-files and FCP7. Full command line and output: ffmpeg -i /Users/krueger/tmp/playground/transcoding/fcp7_xdcam_hd422_1080_25p_syncbeep_2s.mov -vcodec copy -acodec copy /Users/krueger/tmp/playground/transcoding/fcp7_xdcam_hd422_1080_25p_syncbeep_2s_ffmpeg_head.mov ffmpeg version N-53057-gbc1c90e Copyright (c) 2000-2013 the FFmpeg developers built on May 15 2013 08:57:21 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: libavutil 52. 31.100 / 52. 31.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 67.100 / 3. 67.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/krueger/tmp/playground/transcoding/fcp7_xdcam_hd422_1080_25p_syncbeep_2s.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-05-14 10:36:21 Duration: 00:00:02.00, start: 0.000000, bitrate: 52334 kb/s Stream #0:0(eng): Video: mpeg2video (4:2:2) (xd5e / 0x65356478), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 49994 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: creation_time : 2013-05-14 10:36:21 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s Metadata: creation_time : 2013-05-14 10:36:21 handler_name : Apple Alias-Datensteuerung Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2013-05-14 10:36:23 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Output #0, mov, to '/Users/krueger/tmp/playground/transcoding/fcp7_xdcam_hd422_1080_25p_syncbeep_2s_ffmpeg_head.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.7.100 Stream #0:0(eng): Video: mpeg2video (xd5e / 0x65356478), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 49994 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: creation_time : 2013-05-14 10:36:21 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, 2304 kb/s Metadata: creation_time : 2013-05-14 10:36:21 handler_name : Apple Alias-Datensteuerung Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 50 fps=0.0 q=-1.0 Lsize= 12771kB time=00:00:02.00 bitrate=52310.9kbits/s video:12206kB audio:562kB subtitle:0 global headers:0kB muxing overhead 0.024169% The resulting file did not play back correctly in Quicktime either. It skips the first two frames when played back and when pausing at the file's beginning and then stepping ahead frame by frame it starts at frame 7 but then it is possible to step back until frame 3. It seems something is wrong in the file's metadata (sample timings, edit list, I don't know, since I have not looked yet). I should probably create a trac issue for the latter alone. Best regards, Robert From blacktrash at gmx.net Wed May 15 13:57:10 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 15 May 2013 13:57:10 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image In-Reply-To: References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> Message-ID: <20130515115710.GI31389@krille.blacktrash.org> * Carl Eugen Hoyos on Wednesday, May 15, 2013 at 11:44:20 +0000 > Christian Ebert gmx.net> writes: >>> -filter_complex [0:v][2:v]overlay > >> ffmpeg -i test.m4v -i logo.png -filter_complex >> scale=640:480,[0:v][1:v]overlay > > Apart from the scale filter that changes your > filter chain (the command line you are testing > cannot work), Yes, ermh, I noticed. But how could overlay work at the end of the chain? > you are still trying to feed the > cover to the overlay filter. Ermh, I tested: [1:v] selects the logo and works at the beginning of the chain, [2:v] breaks: ffmpeg -i test.m4v -i logo.png -filter_complex [v:0][v:2]overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4 ffmpeg version N-52940-g43b6482 Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 22:07:16 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --enable-shared --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] stream 0, timescale not set [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.m4v': Metadata: major_brand : M4V minor_version : 1 compatible_brands: isomavc1M4A M4V mp42 creation_time : 2013-05-06 08:00:24 title : Test Duration: 00:04:14.38, start: 0.000000, bitrate: 784 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 728 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2013-05-06 08:00:24 handler_name : test Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 52 kb/s Metadata: creation_time : 2013-01-07 15:23:42 handler_name : test Stream #0:2: Video: mjpeg, yuvj420p, 512x384 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc Input #1, image2, from 'logo.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: png, rgba, 100x20, 25 tbr, 25 tbn, 25 tbc Stream specifier 'v:2' in filtergraph description [v:0][v:2]overlay=main_w-overlay_w-10:main_h-overlay_h-10 matches no streams. Which for once makes sense even to me. -- So dacht ich. N?chstens mehr. _H?LDERLIN: HYPERION_ --->> http://www.blacktrash.org/hyperion From cehoyos at ag.or.at Wed May 15 14:17:00 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 12:17:00 +0000 (UTC) Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, <201305151950265780809@qq.com> Message-ID: 921353606 qq <921353606 qq.com> writes: > > I have upload the wmv file to ftp://upload.ffmpeg.org/incoming > > Its name is yj_Screen.wmv. > > >Which player / codec supports this file? > > I only know it was supported by window media player. Doesn't work here. Carl Eugen From cehoyos at ag.or.at Wed May 15 14:18:27 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 12:18:27 +0000 (UTC) Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 References: Message-ID: Robert Kr?ger lesspain.de> writes: > I want to do this programmatically using libavformat > but wanted to test on the command line first and was > surprised it did not work, because I thought it had > worked for years. If you tell us the change that broke this, it should be easy to fix it. Carl Eugen From phil_rhodes at rocketmail.com Wed May 15 14:49:29 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 15 May 2013 05:49:29 -0700 (PDT) Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> > If you tell us the change that broke this, it should? > be easy to fix it. > Carl Eugen That's a very complicated question which could involve literally days of work compiling every single version of the software back to year zero to find out when it broke. Presumably the OP asked on the list in the hope that someone who'd worked on the relevant code would be able to give him a steer, and thereby save many hours of work. P From smarrocco at ringsidecreative.com Wed May 15 15:00:42 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Wed, 15 May 2013 09:00:42 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: <5190E8D2.6000407@ringsidecreative.com> References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> Message-ID: <519386FA.2060409@ringsidecreative.com> Is it possible to get the fourCC issue/fix committed so this can be fixed? sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From cehoyos at ag.or.at Wed May 15 15:10:53 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 13:10:53 +0000 (UTC) Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> Message-ID: Phil Rhodes rocketmail.com> writes: > > If you tell us the change that broke this, it should? > > be easy to fix it. > > That's a very complicated question which could involve > literally days of work It takes between 15 and 30 minutes. > compiling every single version of the software This is a lie. Carl Eugen From cehoyos at ag.or.at Wed May 15 15:16:36 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 13:16:36 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <519386FA.2060409@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > Is it possible to get the fourCC issue/fix committed > so this can be fixed? To fix what? FFmpeg currently does not support alpha in prores (4444). It does support encoding opaque 444 in prores and the resulting file plays fine with QT (afaict). Carl Eugen From cehoyos at ag.or.at Wed May 15 15:20:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 13:20:19 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > However as near as I can tell, the image quality does > seem to indicate that it is being created using 444 > (using a gradient that indicates banding more > predominantly when 422). Does that change if you change the "fourcc" (which does not exist in a mov file) with a hex editor? Carl Eugen From smarrocco at ringsidecreative.com Wed May 15 15:28:05 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Wed, 15 May 2013 09:28:05 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <519386FA.2060409@ringsidecreative.com> Message-ID: <51938D65.9060400@ringsidecreative.com> On 5/15/2013 9:16 AM, Carl Eugen Hoyos wrote: Sam Marrocco ringsidecreative.com> writes: Is it possible to get the fourCC issue/fix committed so this can be fixed? To fix what? FFmpeg currently does not support alpha in prores (4444). It does support encoding opaque 444 in prores and the resulting file plays fine with QT (afaict). I don't recall ever mentioning alpha support in prores (4444). You are confusing something Timothy G. brought up with the original issue of this thread. This thread, as revisited, was to restate the issue concerning the previously mentioned bug whereas quicktime movies encoded as prores 4444 with ffmpeg do not (apparently) have the fourCC set correctly. Thus, although the image contains the correct data and plays in quicktime player, quicktime player does *not* display the information regarding the file type correctly--it shows as Apple Prores 422 in the quicktime Movie Inspector, which apparently reads the fourcc value (which is incorrect). sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From tevans.uk at googlemail.com Wed May 15 15:38:05 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 15 May 2013 14:38:05 +0100 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> Message-ID: On Wed, May 15, 2013 at 1:49 PM, Phil Rhodes wrote: >> If you tell us the change that broke this, it should > >> be easy to fix it. >> Carl Eugen > > > That's a very complicated question which could involve literally days of work compiling every single version of the software back to year zero to find out when it broke. > > Presumably the OP asked on the list in the hope that someone who'd worked on the relevant code would be able to give him a steer, and thereby save many hours of work. > > P Using git bisect you can normally find the specific breaking revision within 7 recompiles. Google will explain more. Cheers Tom From blacktrash at gmx.net Wed May 15 15:44:01 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 15 May 2013 15:44:01 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image In-Reply-To: <20130515115710.GI31389@krille.blacktrash.org> References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> <20130515115710.GI31389@krille.blacktrash.org> Message-ID: <20130515134401.GJ31389@krille.blacktrash.org> * Christian Ebert on Wednesday, May 15, 2013 at 13:57:10 +0200 > Yes, ermh, I noticed. But how could overlay work at the end of > the chain? This seems to do the trick: ffmpeg -i test.m4v -i logo.png -filter_complex '[0:v]scale=640:480[tmp]; [tmp][1:v]overlay=main_w-overlay_w-10:main_h-overlay_h-10' test.mp4 -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From krueger at lesspain.de Wed May 15 15:47:39 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 15:47:39 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: maybe I should try a git bisect to check. I am not 100% sure that I have ever remuxed XDCAM mov to mov before transcoding I know, there's even a postring in the ML archives from 2008 that verifies this) but then again a git bisect will show rather quickly. Maybe this time I will try your suggestion to exclude all filters/formats/codecs and only put together a minimal build for the bisect. Do you know the configure command line for that off by heart? Otherwise I'll check configure. On Wed, May 15, 2013 at 2:18 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > I want to do this programmatically using libavformat > > but wanted to test on the command line first and was > > surprised it did not work, because I thought it had > > worked for years. > > If you tell us the change that broke this, it should > be easy to fix it. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tevans.uk at googlemail.com Wed May 15 15:52:57 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 15 May 2013 14:52:57 +0100 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: On Wed, May 15, 2013 at 2:47 PM, Robert Kr?ger wrote: > maybe I should try a git bisect to check. I am not 100% sure that I have > ever remuxed XDCAM mov to mov before transcoding I know, there's even a > postring in the ML archives from 2008 that verifies this) but then again a > git bisect will show rather quickly. Maybe this time I will try your > suggestion to exclude all filters/formats/codecs and only put together a > minimal build for the bisect. Do you know the configure command line for > that off by heart? Otherwise I'll check configure. > Hmm, in order to bisect, you will need to have a 'known good' and a 'known bad' (usually tip/now) to start from. If you don't have a known good version, you could attempt to look at some arbitrary point "a while ago" and see if that works. If it does, then bisecting will work well. If not? Cheers Tom From krueger at lesspain.de Wed May 15 15:53:20 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 15:53:20 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: On Wed, May 15, 2013 at 3:47 PM, Robert Kr?ger wrote: > maybe I should try a git bisect to check. I am not 100% sure that I have > ever remuxed XDCAM mov to mov before transcoding I know, there's even a > postring in the ML archives from 2008 that verifies this) but then again a > git bisect will show rather quickly. Maybe this time I will try your > suggestion to exclude all filters/formats/codecs and only put together a > minimal build for the bisect. Do you know the configure command line for > that off by heart? Otherwise I'll check configure. > > > On Wed, May 15, 2013 at 2:18 PM, Carl Eugen Hoyos wrote: > >> Robert Kr?ger lesspain.de> writes: >> >> > I want to do this programmatically using libavformat >> > but wanted to test on the command line first and was >> > surprised it did not work, because I thought it had >> > worked for years. >> >> If you tell us the change that broke this, it should >> be easy to fix it. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > ups, sorry for the top-posting. damn new gmail interface. From krueger at lesspain.de Wed May 15 15:54:45 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 15:54:45 +0200 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: <51938D65.9060400@ringsidecreative.com> References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <519386FA.2060409@ringsidecreative.com> <51938D65.9060400@ringsidecreative.com> Message-ID: On Wed, May 15, 2013 at 3:28 PM, Sam Marrocco < smarrocco at ringsidecreative.com> wrote: > > On 5/15/2013 9:16 AM, Carl Eugen Hoyos wrote: > > Sam Marrocco ringsidecreative.com> writes: > > > > Is it possible to get the fourCC issue/fix committed > > > > > > so this can be fixed? > > > > To fix what? > > FFmpeg currently does not support alpha in prores (4444). > It does support encoding opaque 444 in prores and the > resulting file plays fine with QT (afaict). > > > > > I don't recall ever mentioning alpha support in prores (4444). You are > confusing something Timothy G. brought up with the original issue of this > thread. > > This thread, as revisited, was to restate the issue concerning the > previously mentioned bug whereas quicktime movies encoded as prores 4444 > with ffmpeg do not (apparently) have the fourCC set correctly. Thus, > although the image contains the correct data and plays in quicktime player, > quicktime player does *not* display the information regarding the file type > correctly--it shows as Apple Prores 422 in the quicktime Movie Inspector, > which apparently reads the fourcc value (which is incorrect). > > > sam marrocco | chief technical officer > ringside.cutters.picnic.**moonlink > > 248 548 2500 w > 248 910 3344 c > > ringsidecreative.com > > > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > just post your command line and then run ffprobe on the prores file to see if the fourcc is correct and post this here. From krueger at lesspain.de Wed May 15 16:20:23 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 16:20:23 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: On Wed, May 15, 2013 at 3:52 PM, Tom Evans wrote: > On Wed, May 15, 2013 at 2:47 PM, Robert Kr?ger > wrote: > > maybe I should try a git bisect to check. I am not 100% sure that I have > > ever remuxed XDCAM mov to mov before transcoding I know, there's even a > > postring in the ML archives from 2008 that verifies this) but then again > a > > git bisect will show rather quickly. Maybe this time I will try your > > suggestion to exclude all filters/formats/codecs and only put together a > > minimal build for the bisect. Do you know the configure command line for > > that off by heart? Otherwise I'll check configure. > > > > Hmm, in order to bisect, you will need to have a 'known good' and a > 'known bad' (usually tip/now) to start from. If you don't have a known > good version, you could attempt to look at some arbitrary point "a > while ago" and see if that works. If it does, then bisecting will work > well. If not? > > Cheers > > Tom > > yeah, that's what I'll do. If I don't find a good version (since I'm not sure there ever was), I'll make a trac issue with e reproducible test case. From krueger at lesspain.de Wed May 15 16:46:08 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 16:46:08 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: On Wed, May 15, 2013 at 4:20 PM, Robert Kr?ger wrote: > > > > On Wed, May 15, 2013 at 3:52 PM, Tom Evans wrote: > >> On Wed, May 15, 2013 at 2:47 PM, Robert Kr?ger >> wrote: >> > maybe I should try a git bisect to check. I am not 100% sure that I have >> > ever remuxed XDCAM mov to mov before transcoding I know, there's even a >> > postring in the ML archives from 2008 that verifies this) but then >> again a >> > git bisect will show rather quickly. Maybe this time I will try your >> > suggestion to exclude all filters/formats/codecs and only put together a >> > minimal build for the bisect. Do you know the configure command line for >> > that off by heart? Otherwise I'll check configure. >> > >> >> Hmm, in order to bisect, you will need to have a 'known good' and a >> 'known bad' (usually tip/now) to start from. If you don't have a known >> good version, you could attempt to look at some arbitrary point "a >> while ago" and see if that works. If it does, then bisecting will work >> well. If not? >> >> Cheers >> >> Tom >> >> > yeah, that's what I'll do. If I don't find a good version (since I'm not > sure there ever was), I'll make a trac issue with e reproducible test case. > I did not find a working version. I filed this as trac ticket #2573. From battistel at gmail.com Wed May 15 16:46:38 2013 From: battistel at gmail.com (Massimo Battistel) Date: Wed, 15 May 2013 16:46:38 +0200 Subject: [FFmpeg-user] [FFmpeg user] Frame drops with file in ffplay Message-ID: hi, You can download file from here: http://www.sendspace.com/file/xq8q4v there is a frame drop problem in ffplay. VLC and LAV filters show the same behaviour. The only way for me to play it fine is using ffdshow tryouts (my revision is 4422) and changing the mpeg-2 library from libavcodec to libmpeg2 (men? -> supported codecs -> mpeg-2). ----------- ffplay "BAGUTTI CAREZZE.mpg" ffplay version N-50442-g4f0d4ac Copyright (c) 2003-2013 the FFmpeg developers built on Mar 2 2013 15:33:19 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.103 / 52. 17.103 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.102 / 54. 63.102 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 41.100 / 3. 41.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mpeg, from 'BAGUTTI CAREZZE.mpg': Duration: 00:04:18.62, start: 0.168444, bitrate: 8706 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s thanks From smarrocco at ringsidecreative.com Wed May 15 17:37:59 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Wed, 15 May 2013 11:37:59 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> Message-ID: <5193ABD7.9060605@ringsidecreative.com> On 5/15/2013 9:20 AM, Carl Eugen Hoyos wrote: Sam Marrocco ringsidecreative.com> writes: However as near as I can tell, the image quality does seem to indicate that it is being created using 444 (using a gradient that indicates banding more predominantly when 422). Does that change if you change the "fourcc" (which does not exist in a mov file) with a hex editor? ? If the fourcc does not exist in the mov file then how could I change it with a hex editor? I did a search within the file and found the string 'ApcH' and changed it to 'ap4h'. The file is still identified by QT Player as 422, so this does not correct the issue. I'll summarize the initial problem: ffmpeg with the kostya prores encoder seems unable to create a 444 prores quicktime movie that is correctly identified by Quicktime player as 444. Given a Prores 444 quicktime movie (in this case from an Alexa camera) a command line shows: ffmpeg -i C:\Server\Jobs\MediaConversionFormats\QT\Alexa\AlexaProRes4444QT_A.mov ffmpeg version N-52837-g399f6ef Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 01:14:14 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 29.100 / 52. 29.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Server\Jobs\MediaConversionFormats\QT\Alexa\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ARRI creation_time : 2011-01-15 07:46:24 timecode : 07:46:22:00 Duration: 00:00:01.63, start: 0.000000, bitrate: 228904 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 217573 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler timecode : 07:46:22:00 At least one output file must be specified This shows an identifier of ap4h (as expected). Conversion of this same file into another 444 prores with ffmpeg from the command line as follows: "C:\Server\CodeIP\TransFile_1.1.0002\bin\Debug\ffmpeg-20130507-git-399f6ef-win64-static\bin\ffmpeg.exe" -i "C:\Server\Jobs\MediaConversionFormats\QT\Alexa\AlexaProRes4444QT_A.mov" -vcodec prores_ks -pix_fmt yuv444p10le -profile:v 3 -acodec copy -f mov "C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov" ffmpeg version N-52837-g399f6ef Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 01:14:14 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 29.100 / 52. 29.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Server\Jobs\MediaConversionFormats\QT\Alexa\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ARRI creation_time : 2011-01-15 07:46:24 timecode : 07:46:22:00 Duration: 00:00:01.63, start: 0.000000, bitrate: 228904 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 217573 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler timecode : 07:46:22:00 Output #0, mov, to 'C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ARRI timecode : 07:46:22:00 encoder : Lavf55.4.101 Stream #0:0(eng): Video: prores (prores_ks) (apch / 0x68637061), yuv444p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 11988 tbn, 23.98 tbc Metadata: creation_time : 2011-01-15 07:46:24 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> prores_ks) Press [q] to stop, [?] for help frame= 39 fps=2.9 q=0.0 Lsize= 36753kB time=00:00:01.62 bitrate=185097.5kbits/s video:36752kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.004387% This seams to show the outgoing stream as apch. Taking this newly created file into ffmpeg again show the following info: ffprobe version N-52837-g399f6ef Copyright (c) 2007-2013 the FFmpeg developers built on May 7 2013 01:14:14 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 29.100 / 52. 29.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Server\Temp\Output\AlexaProRes4444QT_A\AlexaProRes4444QT_A.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf55.4.101 Duration: 00:00:01.63, start: 0.000000, bitrate: 185055 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv444p10le, 1920x1080, 185089 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 11988 tbc Metadata: handler_name : DataHandler timecode : 07:46:22:00 Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: handler_name : DataHandler timecode : 07:46:22:00 Unsupported codec with id 0 for input stream 1 This newly created QT is identified by Quicktime Player as Apple Prores 422 (HQ). If ffmpeg is creating a 444 prores per the provided arguments why wouldn't QT Player identify it as such? sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From cehoyos at ag.or.at Wed May 15 17:48:48 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 15:48:48 +0000 (UTC) Subject: [FFmpeg-user] [FFmpeg user] Frame drops with file in ffplay References: Message-ID: Massimo Battistel gmail.com> writes: > http://www.sendspace.com/file/xq8q4v > > there is a frame drop problem in ffplay. I opened ticket #2574 for the regression. Thank you for the report and the sample, Carl Eugen From cehoyos at ag.or.at Wed May 15 17:49:26 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 15:49:26 +0000 (UTC) Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> Message-ID: Tom Evans googlemail.com> writes: > Using git bisect you can normally find the specific > breaking revision within 7 recompiles. Make it twelve. Carl Eugen From cehoyos at ag.or.at Wed May 15 17:56:28 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 15:56:28 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <5193ABD7.9060605@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > If ffmpeg is creating a 444 prores per the provided > arguments why wouldn't QT Player identify it as such? Because there are some magic values that we don't know. As long as playback works, I don't think there is anything to worry at all. (Although you can still try to produce a prores4444 file with FCP that allows to see the difference when encoded with 422. Then reencode the original 4444 file with ffmpeg to test if it is decoded incorrectly.) Carl Eugen From battistel at gmail.com Wed May 15 18:09:19 2013 From: battistel at gmail.com (Massimo Battistel) Date: Wed, 15 May 2013 18:09:19 +0200 Subject: [FFmpeg-user] [FFmpeg user] Frame drops with file in ffplay In-Reply-To: References: Message-ID: Thanks for your quickness. Could you explain what is the issue that causes uneven playback and if there are known workarounds (working with ffmpeg). I tried transcoding the original video but this did not solved the problem. thanks From phil_rhodes at rocketmail.com Wed May 15 18:25:17 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 15 May 2013 09:25:17 -0700 (PDT) Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> Message-ID: <1368635117.89142.YahooMailNeo@web121104.mail.ne1.yahoo.com> >?Using git bisect you can normally find the specific breaking revision >?within 7 recompiles. Google will explain more. This does rather assume you're in a position to compile it, which most people aren't. P From cehoyos at ag.or.at Wed May 15 18:27:18 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 15 May 2013 16:27:18 +0000 (UTC) Subject: [FFmpeg-user] [FFmpeg user] Frame drops with file in ffplay References: Message-ID: Massimo Battistel gmail.com> writes: > Could you explain what is the issue that causes > uneven playback (Note that there is no "playback" but a "decoding" problem afaict.) If I knew, I would (probably) not have opened a ticket. > and if there are known workarounds Since this is a regression, there are (at least) two obvious work-arounds.... (going back and reverting) Carl Eugen From tevans.uk at googlemail.com Wed May 15 18:29:51 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 15 May 2013 17:29:51 +0100 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: <1368635117.89142.YahooMailNeo@web121104.mail.ne1.yahoo.com> References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> <1368635117.89142.YahooMailNeo@web121104.mail.ne1.yahoo.com> Message-ID: On Wed, May 15, 2013 at 5:25 PM, Phil Rhodes wrote: >> Using git bisect you can normally find the specific breaking revision >> within 7 recompiles. Google will explain more. > > This does rather assume you're in a position to compile it, which most people aren't. > > P Why, do they not have computers? From kondaveetiarungopal at gmail.com Wed May 15 12:31:21 2013 From: kondaveetiarungopal at gmail.com (Arun Gopal) Date: Wed, 15 May 2013 16:01:21 +0530 Subject: [FFmpeg-user] Problem Message-ID: HI, when iam using ffmpeg on raspberry pi it shows please use avconv......How to use avconv on raspbery pi and how to install avconv on raspberry pi..now iam trying to install ffmpeg on raspberry pi..iam trying to configure ffmpeg with arch and libv4l2 and iconv...it shows u r using newest version please contact to this mail id..so iam send mail to u..Please solve my problem as early as possible... Thanks&Regards, K.Arungopal From smarrocco at ringsidecreative.com Wed May 15 18:48:39 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Wed, 15 May 2013 12:48:39 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <5193ABD7.9060605@ringsidecreative.com> Message-ID: <5193BC67.5010504@ringsidecreative.com> On 5/15/2013 11:56 AM, Carl Eugen Hoyos wrote: Because there are some magic values that we don't know. As long as playback works, I don't think there is anything to worry at all. Perhaps not, but when you send someone who is not a programmer a quicktime and they check the properties in Quicktime player, the implication is that the file is incorrect. sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From smarrocco at ringsidecreative.com Wed May 15 18:48:39 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Wed, 15 May 2013 12:48:39 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <5193ABD7.9060605@ringsidecreative.com> Message-ID: <5193BC67.5010504@ringsidecreative.com> On 5/15/2013 11:56 AM, Carl Eugen Hoyos wrote: Because there are some magic values that we don't know. As long as playback works, I don't think there is anything to worry at all. Perhaps not, but when you send someone who is not a programmer a quicktime and they check the properties in Quicktime player, the implication is that the file is incorrect. sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From h.reindl at thelounge.net Wed May 15 18:49:18 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 15 May 2013 18:49:18 +0200 Subject: [FFmpeg-user] Problem In-Reply-To: References: Message-ID: <5193BC8E.8070004@thelounge.net> Am 15.05.2013 12:31, schrieb Arun Gopal: > when iam using ffmpeg on raspberry pi it shows please use avconv......How > to use avconv on raspbery pi and how to install avconv on raspberry pi avconv has *nothing* to do with ffmpeg you have *not* ffmpeg at all on your device "Libav" is a (unsuccessful) *fork* of ffmpeg http://libav.org/avconv.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Wed May 15 18:54:15 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 15 May 2013 18:54:15 +0200 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: <5193BC67.5010504@ringsidecreative.com> References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <5193ABD7.9060605@ringsidecreative.com> <5193BC67.5010504@ringsidecreative.com> Message-ID: <20130515165415.GA18880@sunshine.barsnick.net> On Wed, May 15, 2013 at 12:48:39 -0400, Sam Marrocco wrote: > On 5/15/2013 11:56 AM, Carl Eugen Hoyos wrote: > > Because there are some magic values that we don't know. At least there is magic which ffprobe does know, and that has the correct indicators. > Perhaps not, but when you send someone who is not a programmer a > quicktime and they check the properties in Quicktime player, the > implication is that the file is incorrect. To take a different "reference": What does "Mediainfo" say? I.e. does it happen to know the same indicators as Quicktime does? Moritz From krueger at lesspain.de Wed May 15 18:58:02 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 15 May 2013 18:58:02 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: <1368635117.89142.YahooMailNeo@web121104.mail.ne1.yahoo.com> References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> <1368635117.89142.YahooMailNeo@web121104.mail.ne1.yahoo.com> Message-ID: On Wed, May 15, 2013 at 6:25 PM, Phil Rhodes wrote: > > Using git bisect you can normally find the specific breaking revision > > within 7 recompiles. Google will explain more. > > This does rather assume you're in a position to compile it, which most > people aren't. > > I don't know about "most" when talking about readers on this list but sure, there are quite a few people who use ffmpeg by downloading builds and have never compiled software and don't know what git is and probably won't start learning that in such a case. But the fact that devs on this list are asking bug reporters to do as much as possible to prepare finding a bug has nothing to do with ignorance AFAICS but is simply due to the fact that the ratio of users reporting bugs/devs fixing them ist probably at least 1:100 and if only the people who can do that extra work, do this, this saves a significant portion of time of the few people keeping the code in this project working and thus makes sense to me. after all the vast majority of coding here is unpaid volunteer work. what's going to happen if someone doesn't do git bisect and just files a bug report? it's less likely to get fixed quickly but I doubt it is going to get ignored because of that. you cannot expect support processes like you get when you pay for a support contract of a product but I guess that has been mentioned before. From smarrocco at ringsidecreative.com Wed May 15 19:20:12 2013 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Wed, 15 May 2013 13:20:12 -0400 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: <20130515165415.GA18880@sunshine.barsnick.net> References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <5193ABD7.9060605@ringsidecreative.com> <5193BC67.5010504@ringsidecreative.com> <20130515165415.GA18880@sunshine.barsnick.net> Message-ID: <5193C3CC.8060801@ringsidecreative.com> > To take a different "reference": What does "Mediainfo" say? I.e. does > it happen to know the same indicators as Quicktime does? > > MediaInfo shows ap4h and 444 for the original quicktime. MediaInfo shows apch and 444 for the ffmpeg-created quicktime. sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From barsnick at gmx.net Wed May 15 19:43:41 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 15 May 2013 19:43:41 +0200 Subject: [FFmpeg-user] ffmpeg created prores 444 still not identified correctly by Quicktime player? In-Reply-To: <5193C3CC.8060801@ringsidecreative.com> References: <518BF3A9.9060306@ringsidecreative.com> <5190E8D2.6000407@ringsidecreative.com> <5193ABD7.9060605@ringsidecreative.com> <5193BC67.5010504@ringsidecreative.com> <20130515165415.GA18880@sunshine.barsnick.net> <5193C3CC.8060801@ringsidecreative.com> Message-ID: <20130515174341.GA19271@sunshine.barsnick.net> On Wed, May 15, 2013 at 13:20:12 -0400, Sam Marrocco wrote: > MediaInfo shows ap4h and 444 for the original quicktime. > MediaInfo shows apch and 444 for the ffmpeg-created quicktime. Okay, so same as ffprobe. Could there be a conflict in the content of the frame header's "frameFlags" vs. "src_pix_fmt"[1]? Moritz [1] http://wiki.multimedia.cx/index.php?title=Apple_ProRes From lou at lrcd.com Wed May 15 20:04:26 2013 From: lou at lrcd.com (Lou) Date: Wed, 15 May 2013 10:04:26 -0800 Subject: [FFmpeg-user] Problem In-Reply-To: References: Message-ID: <20130515100426.2e605f8b@lrcd.com> On Wed, 15 May 2013 16:01:21 +0530 Arun Gopal wrote: > HI, > > when iam using ffmpeg on raspberry pi it shows please use avconv......How > to use avconv on raspbery pi and how to install avconv on raspberry pi..now > iam trying to install ffmpeg on raspberry pi..iam trying to configure > ffmpeg with arch and libv4l2 and iconv...it shows u r using newest version > please contact to this mail id..so iam send mail to u..Please solve my > problem as early as possible... You are using an old, fake "ffmpeg" from a fork of the FFmpeg project. Unfortunately it is a confusing situation for users. See: Who can tell me the difference and relation between ffmpeg, libav, and avconv? http://stackoverflow.com/a/9477756/1109017 and The FFmpeg/Libav situation http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html If you want to use the real ffmpeg then you must compile it. If that is not something you want to do then I recommend using Arch Linux ARM which does provide real ffmpeg. Otherwise, if you want to continue using ffalse ffmpeg, then you will have to request help from libav. Lou From vkroutik at gmail.com Wed May 15 21:11:21 2013 From: vkroutik at gmail.com (Vlad Kroutik) Date: Wed, 15 May 2013 12:11:21 -0700 Subject: [FFmpeg-user] Decrease Latency In-Reply-To: <000001ce4dab$4275b600$c7612200$@com> References: <000001ce4dab$4275b600$c7612200$@com> Message-ID: HI, did you find a solution, what card do you use? On Fri, May 10, 2013 at 11:21 AM, Mazen wrote: > Hi all > > > > How to decrease latency while transcoding and streaming from live source > like DVB card (IPTV). > > > > When starting to watch , the audio begins before the video by 3 seconds. > > Any thing to do to fix it ? > > > > Thanks in advanced. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From anilj.mailing at gmail.com Thu May 16 00:35:53 2013 From: anilj.mailing at gmail.com (Anil J) Date: Wed, 15 May 2013 18:35:53 -0400 Subject: [FFmpeg-user] Video transcoding of the streamed data. Message-ID: Hi, In HTTP streaming case (e.g. watching youtube), in my use case, I want to adapt the video stream to suite my client requirement (e.g. codec conversion). I am using a proxy server to tap the HTTP response messages and in position to buffer the chunked video data. I am however want to understand how I can send this data to FFmpeg. I want to understand below: 1. How much of data (HTTP based video chunks) I need to buffer before I can invoke the FFmpeg? 2. I am not sure how the content server (youtube) chunks the video? Are these chunks logically independent of each other i.e. sliced at each I-Frame? OR they are just sliced to fit the IP packet size without getting into the video stream semantics. 3. In the case if they are just binary slices, how does FFmpeg would react to a data which may not be complete. Note that, even if I buffer the certain amount of chunks, I am not sure the validity of it, and whether FFmpeg will like it. Thanks, /anil. From phil_rhodes at rocketmail.com Thu May 16 00:43:47 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 15 May 2013 15:43:47 -0700 (PDT) Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: <1368622169.46522.YahooMailNeo@web121106.mail.ne1.yahoo.com> Message-ID: <1368657827.92779.YahooMailNeo@web121103.mail.ne1.yahoo.com> >?This is a lie. Maybe, but that doesn't make the job any easier if you aren't a professional software engineer. P From 921353606 at qq.com Thu May 16 02:50:40 2013 From: 921353606 at qq.com (921353606@qq) Date: Thu, 16 May 2013 08:50:40 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, <201305151950265780809@qq.com>, Message-ID: <201305160850296299251@qq.com> 921353606 at qq From: Carl Eugen Hoyos Date: 2013-05-15 20:17 To: ffmpeg-user Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file 921353606 qq <921353606 qq.com> writes: > >> I have upload the wmv file to ftp://upload.ffmpeg.org/incoming > > >Its name is yj_Screen.wmv. >> > >>Which player / codec supports this file? > > > >I only know it was supported by window media player. >Doesn't work here. >Carl Eugen It can be played by Windows Media Player 11.0.5721.5262 on Windows XP Professional Service Pack 3. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From bfsc.yb at gmail.com Thu May 16 18:26:42 2013 From: bfsc.yb at gmail.com (Xeslaro) Date: Thu, 16 May 2013 16:26:42 +0000 Subject: [FFmpeg-user] ffmpeg doesn't recognize the correct X resolusion when using x11grab Message-ID: <20130516162639.GA11807@Xeslaro> i'm currently running under resolusion 1366x768 as i can see from the output of xrandr: Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192 LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 174mm 1366x768 60.0*+ 1024x768 60.0 800x600 60.3 56.2 640x480 59.9 VGA1 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) DP1 disconnected (normal left inverted right x axis y axis) however, ffmpeg thinks that i'm under 640x480, ffmpeg -f x11grab -i :0 outputs: ffmpeg version N-53112-gd686517 Copyright (c) 2000-2013 the FFmpeg developers built on May 16 2013 09:15:01 with gcc 4.6.4 (GCC) configuration: --prefix=/home/xxx/p --enable-x11grab --enable-gpl libavutil 52. 32.100 / 52. 32.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 68.101 / 3. 68.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [x11grab @ 0x9bf7e00] device: :0 -> display: :0 x: 0 y: 0 width: 640 height: 480 [x11grab @ 0x9bf7e00] shared memory extension found Input #0, x11grab, from ':0': Duration: N/A, start: 1368721262.140415, bitrate: 294617 kb/s Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 640x480, 294617 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc At least one output file must be specified i'm running linux 3.9.0 with intel hd4000 graphic card, and the latest ffmpeg from git, and the 7.7 x.org release. anyone knows why this happens? From cehoyos at ag.or.at Thu May 16 10:54:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 16 May 2013 08:54:30 +0000 (UTC) Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, <201305151950265780809@qq.com>, <201305160850296299251@qq.com> Message-ID: 921353606 qq <921353606 qq.com> writes: > > >>Which player / codec supports this file? > > > > > >I only know it was supported by window media player. > > >Doesn't work here. > > It can be played by Windows Media Player 11.0.5721.5262 > on Windows XP Professional Service Pack 3. Does not work here. If you can find out which codec you installed that allows playback, we would at least have a name for the ticket I would open. Carl Eugen From onemda at gmail.com Thu May 16 12:31:12 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 16 May 2013 10:31:12 +0000 Subject: [FFmpeg-user] ffmpeg doesn't recognize the correct X resolusion when using x11grab In-Reply-To: <20130516162639.GA11807@Xeslaro> References: <20130516162639.GA11807@Xeslaro> Message-ID: On 5/16/13, Xeslaro wrote: > i'm currently running under resolusion 1366x768 as i can see from the > output of xrandr: > Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192 > LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) > 309mm x 174mm > 1366x768 60.0*+ > 1024x768 60.0 > 800x600 60.3 56.2 > 640x480 59.9 > VGA1 disconnected (normal left inverted right x axis y axis) > HDMI1 disconnected (normal left inverted right x axis y axis) > DP1 disconnected (normal left inverted right x axis y axis) > > however, ffmpeg thinks that i'm under 640x480, ffmpeg -f x11grab -i :0 > outputs: > ffmpeg version N-53112-gd686517 Copyright (c) 2000-2013 the FFmpeg > developers > built on May 16 2013 09:15:01 with gcc 4.6.4 (GCC) > configuration: --prefix=/home/xxx/p --enable-x11grab --enable-gpl > libavutil 52. 32.100 / 52. 32.100 > libavcodec 55. 9.100 / 55. 9.100 > libavformat 55. 7.100 / 55. 7.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 68.101 / 3. 68.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > [x11grab @ 0x9bf7e00] device: :0 -> display: :0 x: 0 y: 0 width: 640 height: > 480 > [x11grab @ 0x9bf7e00] shared memory extension found > Input #0, x11grab, from ':0': > Duration: N/A, start: 1368721262.140415, bitrate: 294617 kb/s > Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 640x480, 294617 > kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc > At least one output file must be specified > > i'm running linux 3.9.0 with intel hd4000 graphic card, and the latest > ffmpeg from git, and the 7.7 x.org release. > anyone knows why this happens? Your reasoning is invalid, ffmpeg does not think anything about your screen resolution. Defaults resolution (when -video_size is not set) that x11grab is using is vga aka 640x480. From francois.visagie at gmail.com Thu May 16 13:24:35 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Thu, 16 May 2013 13:24:35 +0200 Subject: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' In-Reply-To: <5188C3B5.9080004@yahoo.com> References: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> <5188C3B5.9080004@yahoo.com> Message-ID: <006301ce5227$f4f9d920$deed8b60$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Tim Nicholson > Sent: 07 May 2013 11:05 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' > > On 05/04/13 10:17, Francois Visagie wrote: > > Hi All, > > > > > > > > Just a heads-up for the odd DVD being authored in SD resolution still, > > there's a Catch-22 with the '-target pal-dvd' option. > > > > > > > > When encoding without that option, the (grantedly intermediate) output > > file's audio cannot be played by some DirectShow applications like > > Windows Media Player (see ticket 1720 > > > > ). > > > > > > > > The work-around is to apply '-target pal-dvd'. > > > > > > > > However, when encoding 704-wide Rec.601 source like DV (perfectly > > legal resolution for DVD), this option causes distortion by forcing > > horizontal resolution to 720 pixels (see ticket 2434 > > ). Some background on > > Rec.601 sources and 704-pixel horizontal resolution at > > http://en.wikipedia.org/wiki/Pixel_aspect_ratio. > > > > > > > > The work-around in this case is _not_ to use '-target pal-dvd' but to > > specify the DVD-compliant encode using individual options, e.g. > > > > '-codec:a ac3 -b:a 128000 -codec:v mpeg2video -g 15 -bf 2 -bufsize > > 1835000 -b:v 6090000 -maxrate 9800000 -muxrate 10080000'. > > > > It is easier to still specify -target pal-dvd then afterwards overide the size > with -s 704x576. That's an interesting suggestion, thanks. It would need to somehow go into my standard encode Windows batch process (used for both 720x576 as well as 704x576 encodes). It would need to determine at runtime when input is 704x576 and only specify the resize then. Could something like ffprobe be used for this detection in a batch file (my ffmpeg build came without it)? Also, I'm not familiar with the resizer's behaviour; would it still perform an unwanted resize when the source is already at 704x576? > > > > > > > In this case the output file's audio won't be playable by Windows > > Media Player and similar and can't be demuxed by e.g. Avidemux for > authoring. > > Work-arounds are remuxing the output in another application, and/or > > using another player like Media Player Classic, and/or demuxing for > > authoring with ffmpeg itself or another application. > > > > > > > > Cheers, > > > > Francois > > [...] > > > -- > Tim << snip >> From 921353606 at qq.com Thu May 16 13:43:27 2013 From: 921353606 at qq.com (=?gb18030?B?wO7QwsPx?=) Date: Thu, 16 May 2013 19:43:27 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file Message-ID: ------------------ Original ------------------From: "Carl Eugen Hoyos"; Date: May 16, 2013 To: "ffmpeg-user"; Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file 921353606 qq <921353606 qq.com> writes: > > >>Which player / codec supports this file? > > > > > >I only know it was supported by window media player. > > >Doesn't work here. > > It can be played by Windows Media Player 11.0.5721.5262 > on Windows XP Professional Service Pack 3. > Does not work here. > If you can find out which codec you installed that allows > playback, we would at least have a name for the ticket I > would open. > Carl Eugen I used mediainfo. (http://sourceforge.net/projects/mediainfo/) it said that was EJQV. General Complete name : E:\video\yj_Screen.wmv Format : Windows Media File size : 8.61 MiB Duration : 5mn 3s Overall bit rate mode : Variable Overall bit rate : 238 Kbps Maximum Overall bit rate : 7 037 Kbps Movie name : Sunrise Easyhao (Beijing) Technology Co. ,Ltd Performer : Sunrise Easyhao Encoded date : UTC 2012-11-28 10:07:52.280 Copyright : Sunrise Easyhao Comment : Sunrise Easyhao Rating : Rating Video ID : 2 Format : EJQV Codec ID : EJQV Duration : 5mn 3s Bit rate mode : Variable Bit rate : 232 Kbps Width : 1 024 pixels Height : 768 pixels Display aspect ratio : 4:3 Frame rate : 50 000.000 fps Resolution : 24 bits Bits/(Pixel*Frame) : 0.000 Stream size : 8.40 MiB (97%) Language : Chinese (CN) Does that mean something? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ryan.lindsay at gmail.com Thu May 16 13:58:19 2013 From: ryan.lindsay at gmail.com (ryan lindsay) Date: Thu, 16 May 2013 21:58:19 +1000 Subject: [FFmpeg-user] Live streaming Message-ID: Hi, I was wondering if I could get some advice. I have a hd camera that I want to use as a live feed. The camera is connected via hdmi to a black magic intensity card. The camera produces a 1080i stream at 50fps. I would like to stream the video, so it's viewable in a browser. And ideally at 1920x1080 size but I can live with 20-25fps. What are my options for best doing this? I see people mentioning using segmenters and Streaming over http . But can you do that with a live stream or does it work best with a recorded stream. Could I use webm or mpeg-dash? I have had a look at the docs on the ffmpeg website but I think I am just overwhelmed by all the options available. Any help would be appreciated From krueger at lesspain.de Thu May 16 14:04:31 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 16 May 2013 14:04:31 +0200 Subject: [FFmpeg-user] Remuxed XDCAM file no longer accepted by FCP7 In-Reply-To: References: Message-ID: On Wed, May 15, 2013 at 4:46 PM, Robert Kr?ger wrote: > > > > On Wed, May 15, 2013 at 4:20 PM, Robert Kr?ger wrote: > >> >> >> >> On Wed, May 15, 2013 at 3:52 PM, Tom Evans wrote: >> >>> On Wed, May 15, 2013 at 2:47 PM, Robert Kr?ger >>> wrote: >>> > maybe I should try a git bisect to check. I am not 100% sure that I >>> have >>> > ever remuxed XDCAM mov to mov before transcoding I know, there's even a >>> > postring in the ML archives from 2008 that verifies this) but then >>> again a >>> > git bisect will show rather quickly. Maybe this time I will try your >>> > suggestion to exclude all filters/formats/codecs and only put together >>> a >>> > minimal build for the bisect. Do you know the configure command line >>> for >>> > that off by heart? Otherwise I'll check configure. >>> > >>> >>> Hmm, in order to bisect, you will need to have a 'known good' and a >>> 'known bad' (usually tip/now) to start from. If you don't have a known >>> good version, you could attempt to look at some arbitrary point "a >>> while ago" and see if that works. If it does, then bisecting will work >>> well. If not? >>> >>> Cheers >>> >>> Tom >>> >>> >> yeah, that's what I'll do. If I don't find a good version (since I'm not >> sure there ever was), I'll make a trac issue with e reproducible test case. >> > > I did not find a working version. I filed this as trac ticket #2573. > > I think the explanation is the following. What I did do in the past is create files that where more or less XDCAM-compatible by transcoding using the mpeg-2 encoder. This did work at some point. I probably never remuxed an "original" XDCAM file with ffmpeg. XDCAM files generated by XDCAM cameras or when using the XDCAM export in FCP start with a frame sequence BB and then the normal gop pattern IBBPBBPBBPBBI (presentation order) potentially cuasing problems in ffmpeg (see http://ffmpeg.org/trac/ffmpeg/ticket/479) but the files created by the mpeg2 encoder in ffmpeg start with IBBP... so if the problem is indeed an incorrect edit list caused by this pattern (not sure, just guessing so far) then this explains why I did not find a working version and did not have problems with the muxer with XDCAM-like mpeg2 streams from ffmpeg in the past. Just posting this so someone find's it when googling for XDCAM problems with ffmpeg. Maybe it helps someone. From wxcvbn2006 at iol.ie Thu May 16 13:53:02 2013 From: wxcvbn2006 at iol.ie (MrNice) Date: Thu, 16 May 2013 04:53:02 -0700 (PDT) Subject: [FFmpeg-user] VHS to DVD conversion service (also, audio cassette to CDs) In-Reply-To: <201305051325.49987.rhkramer@gmail.com> References: <201305051325.49987.rhkramer@gmail.com> Message-ID: <1368705182686-4659131.post@n4.nabble.com> Could be good to know where you are based as you sources can't be send by e-mail. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/VHS-to-DVD-conversion-service-also-audio-cassette-to-CDs-tp4658879p4659131.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From 23liam at googlemail.com Thu May 16 15:30:26 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Thu, 16 May 2013 14:30:26 +0100 Subject: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' In-Reply-To: <006301ce5227$f4f9d920$deed8b60$@gmail.com> References: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> <5188C3B5.9080004@yahoo.com> <006301ce5227$f4f9d920$deed8b60$@gmail.com> Message-ID: > It would need to determine at runtime when input is > 704x576 and only specify the resize then. Could something like ffprobe be > used for this detection in a batch file (my ffmpeg build came without it)? Certainly; you would use something like: ffprobe -i input.file -show_streams -select_streams v:0 This would print information about the first video stream to STDOUT in key=value pairs. On Linux I would parse this with sed (to find the apropriate line & strip the key), I'm sure there's an equivalent for Windows. Check out the ffprobe documentation: http://ffmpeg.org/ffprobe.html From anilj.mailing at gmail.com Thu May 16 16:08:33 2013 From: anilj.mailing at gmail.com (Anil J) Date: Thu, 16 May 2013 10:08:33 -0400 Subject: [FFmpeg-user] Video transcoding of the streamed data. In-Reply-To: References: Message-ID: Hello List, Can someone please provide the comments on the below use case? How does FFmpeg handles the streamed video AFA conversion is concerned? Can I use the plain simple command line or FFmpeg provides some different tool set to process the live stream video? Thanks, /anil. On Wed, May 15, 2013 at 6:35 PM, Anil J wrote: > Hi, > > In HTTP streaming case (e.g. watching youtube), in my use case, I want to > adapt the video stream to suite my client requirement (e.g. codec > conversion). I am using a proxy server to tap the HTTP response messages > and in position to buffer the chunked video data. > > I am however want to understand how I can send this data to FFmpeg. I want > to understand below: > > 1. How much of data (HTTP based video chunks) I need to buffer before I > can invoke the FFmpeg? > 2. I am not sure how the content server (youtube) chunks the video? Are > these chunks logically independent of each other i.e. sliced at each > I-Frame? OR they are just sliced to fit the IP packet size without getting > into the video stream semantics. > 3. In the case if they are just binary slices, how does FFmpeg would react > to a data which may not be complete. Note that, even if I buffer the > certain amount of chunks, I am not sure the validity of it, and whether > FFmpeg will like it. > > Thanks, > /anil. > > From bfsc.yb at gmail.com Fri May 17 01:20:32 2013 From: bfsc.yb at gmail.com (Xeslaro) Date: Thu, 16 May 2013 23:20:32 +0000 Subject: [FFmpeg-user] ffmpeg doesn't recognize the correct X resolusion when using x11grab In-Reply-To: References: <20130516162639.GA11807@Xeslaro> Message-ID: <20130516232030.GA1433@Xeslaro> yeah sorry you're right, the reason that caused my problem is that i should put the -s option before the -i option so ffmpeg will consider it as an input option instead of an output option. On Thu, May 16, 2013 at 10:31:12AM +0000, Paul B Mahol wrote: > Your reasoning is invalid, ffmpeg does not think anything about your > screen resolution. > > Defaults resolution (when -video_size is not set) that x11grab is > using is vga aka 640x480. From doenerbudenchef at yahoo.de Thu May 16 18:38:59 2013 From: doenerbudenchef at yahoo.de (master yoda) Date: Thu, 16 May 2013 17:38:59 +0100 (BST) Subject: [FFmpeg-user] Encode two mono audio streams into one stereo stream Message-ID: <1368722339.84201.YahooMailNeo@web171503.mail.ir2.yahoo.com> Hi all, I have a mxf file with two discrete mono channels (Audio Channel 1: Left, Audio Channel 2: Right) and I want to encode them into one stereo stream. Is that possible with ffmpeg? Thanks in advance, Alex From onemda at gmail.com Thu May 16 18:51:42 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 16 May 2013 16:51:42 +0000 Subject: [FFmpeg-user] Encode two mono audio streams into one stereo stream In-Reply-To: <1368722339.84201.YahooMailNeo@web171503.mail.ir2.yahoo.com> References: <1368722339.84201.YahooMailNeo@web171503.mail.ir2.yahoo.com> Message-ID: On 5/16/13, master yoda wrote: > Hi all, > > I have a mxf file with two discrete mono channels (Audio Channel 1: Left, > Audio Channel 2: Right) and I want to encode them into one stereo stream. Is > that possible with ffmpeg? You seek for amerge audio filter. May the FFmpeg be with you. From doenerbudenchef at yahoo.de Thu May 16 18:56:59 2013 From: doenerbudenchef at yahoo.de (master yoda) Date: Thu, 16 May 2013 17:56:59 +0100 (BST) Subject: [FFmpeg-user] Encode two mono audio streams into one stereo stream In-Reply-To: References: <1368722339.84201.YahooMailNeo@web171503.mail.ir2.yahoo.com> Message-ID: <1368723419.46053.YahooMailNeo@web171502.mail.ir2.yahoo.com> Sounds awesome! Thanks! ________________________________ Von: Paul B Mahol An: FFmpeg user questions Gesendet: 18:51 Donnerstag, 16.Mai 2013 Betreff: Re: [FFmpeg-user] Encode two mono audio streams into one stereo stream On 5/16/13, master yoda wrote: > Hi all, > > I have a mxf file with two discrete mono channels (Audio Channel 1: Left, > Audio Channel 2: Right) and I want to encode them into one stereo stream. Is > that possible with ffmpeg? You seek for amerge audio filter. May the FFmpeg be with you. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jdevelop at gmail.com Thu May 16 22:11:24 2013 From: jdevelop at gmail.com (Eugene Dzhurinsky) Date: Thu, 16 May 2013 16:11:24 -0400 Subject: [FFmpeg-user] create an animated GIF from set of images Message-ID: <20130516201124.GA32743@devbox.ma.labs.intellij.net> Hello! I am wondering if there is a way to create animated GIF skipping the creation of AVI file? Most of resources found in google suggest 2-step conversion: images -> AVI AVI -> GIF I'd like to avoid step of creation AVI and create animated GIF from images, passed to STDIN. Is it possible? Thanks! -- Eugene N Dzhurinsky From guy.helmer at gmail.com Thu May 16 22:25:30 2013 From: guy.helmer at gmail.com (Guy Helmer) Date: Thu, 16 May 2013 15:25:30 -0500 Subject: [FFmpeg-user] Trouble converting MOD file to anything else Message-ID: I have tried a number of approaches to transcode a new set of MOD files to MPG, AVI, or MP4 to clean them up for use in iMovie but nothing has worked for me with ffmpeg 1.2.1 (it used to work with an older version of ffmpeg from roughly a year ago). I always receive these errors from libmodplug and the output file is extremely short. Any help would be appreciated. This is my latest try at a command line; adding a suggested -max_size option makes no difference: > ffmpeg -i MOV005.MOD -strict -2 -s 720x405 -vcodec mpeg4 -b:v 2300k -filter:v yadif -aspect 16:9 -acodec aac -ab 192k -ar 44100 MOV005.MP4 ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 15 2013 13:13:12 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [libmodplug @ 0x7fb5eb829c00] Max file size reach (see -max_size), allocating 5242880B but demuxing is likely to fail due to incomplete buffer [libmodplug @ 0x7fb5eb829c00] max_analyze_duration 5000000 reached at 5000000 microseconds Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, libmodplug, from 'MOV005.MOD': Metadata: name : ?D sample : ?D : ??? ????? ??: : 0panasonic0120201U01 : S dvdvrx010 : c0120201U01 SN Mdvd : nasonic0120201U01 M : Y? D b ( : dvdvrx010panasonic01 : SI extra info : 1 pattern, 4 channels, 9/15 samples Duration: 00:00:08.00, bitrate: 138487 kb/s Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Output #0, mp4, to 'MOV005.MP4': Metadata: name : ?D sample : ?D : ??? ????? ??: : 0panasonic0120201U01 : S dvdvrx010 : c0120201U01 SN Mdvd : nasonic0120201U01 M : Y? D b ( : dvdvrx010panasonic01 : SI extra info : 1 pattern, 4 channels, 9/15 samples encoder : Lavf54.63.104 Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> aac) Press [q] to stop, [?] for help size= 6kB time=00:00:05.38 bitrate= 9.4kbits/s video:0kB audio:2kB subtitle:0 global headers:0kB muxing overhead 205.725376% From andrey.krieger.utkin at gmail.com Thu May 16 22:36:52 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Thu, 16 May 2013 23:36:52 +0300 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: <20130516201124.GA32743@devbox.ma.labs.intellij.net> References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> Message-ID: 2013/5/16 Eugene Dzhurinsky : > Hello! > > I am wondering if there is a way to create animated GIF skipping the creation > of AVI file? Most of resources found in google suggest 2-step conversion: > > images -> AVI > AVI -> GIF > > I'd like to avoid step of creation AVI and create animated GIF from images, > passed to STDIN. > > Is it possible? It is possible. I guess you just found HOWTOs related to creation of animation from existing videos. I've just tried creating test.gif from test00.png, test01.png: ffmpeg -i test%02d.png test.gif What about taking input straightly from stdin, my fast tries didn't succeed: cat test*.png | ffmpeg -i - test.gif cat test*.gif | ffmpeg -i - -pix_fmt rgb24 test.gif And i believe the problem is with ffmpeg not quite understanding input, and involving intermediate AVI conversion is nonsense. But you can try to dig deeper and find out how to do, or stick with the way shown above. -- Andrey Utkin From DatDT4 at fsoft.com.vn Thu May 16 12:46:15 2013 From: DatDT4 at fsoft.com.vn (Duong Tuan Dat (FSU15.BU3)) Date: Thu, 16 May 2013 17:46:15 +0700 Subject: [FFmpeg-user] About license of FFmpeg Message-ID: Dear FFmpeg, I want to develop an application that uses FFmpeg, but I have not been clear about license of FFmpeg yet. So please help me with this question: I use FFmpeg to mux a video and an audio file together by calling FFmpeg.exe in my application (create new process for FFmpeg.exe and input command line to it). I have not modify anything of FFmpeg.exe. Can I use my application for commercial purpose? If I can, is there anything I have to do to not violate the license? Please give us the answer in 2 cases: (1) FFmpeg is built with "--enable-gpl" or "--enable-nonfree" (ex: download from http://ffmpeg.zeranoe.com/builds/) (2) FFmpeg is built without "--enable-gpl" and "--enable-nonfree". I understand that FFmpeg is under GPL in case (1), LGPL in case (2)? Is that true? Thank you very much for your support. Best Regards, Dat From ifticandoit at gmail.com Thu May 16 09:55:40 2013 From: ifticandoit at gmail.com (ifti24) Date: Thu, 16 May 2013 00:55:40 -0700 (PDT) Subject: [FFmpeg-user] Changing aspect ratio flag without re-encoding In-Reply-To: <4BBEFDA6.30903@alma.ch> References: <4BBEFDA6.30903@alma.ch> Message-ID: <1368690940558-4659125.post@n4.nabble.com> I just managed to change the PAR(Pixel Aspect Ratio) of a file using the following command - ffmpeg -i web1.webm -vf "setsar=2:1" web1.webm Is that what u wanted ?? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Changing-aspect-ratio-flag-without-re-encoding-tp1819392p4659125.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From jdevelop at gmail.com Thu May 16 22:46:36 2013 From: jdevelop at gmail.com (Eugene Dzhurinsky) Date: Thu, 16 May 2013 16:46:36 -0400 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> Message-ID: <20130516204636.GA5450@devbox.ma.labs.intellij.net> On Thu, May 16, 2013 at 11:36:52PM +0300, Andrey Utkin wrote: > And i believe the problem is with ffmpeg not quite understanding > input, and involving intermediate AVI conversion is nonsense. > But you can try to dig deeper and find out how to do, or stick with > the way shown above. What I found so far, is cat *.png | ffmpeg -c:v png -f image2pipe -r 10 -i - -y test.gif doesn't work, but cat *.png | ffmpeg -c:v png -f image2pipe -r 10 -i - -y test.avi does the trick - AVI file is created. So perhaps there's something to be specified for GIF output explicitly? -- Eugene N Dzhurinsky From h.reindl at thelounge.net Thu May 16 22:51:21 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 16 May 2013 22:51:21 +0200 Subject: [FFmpeg-user] About license of FFmpeg In-Reply-To: References: Message-ID: <519546C9.4090500@thelounge.net> Am 16.05.2013 12:46, schrieb Duong Tuan Dat (FSU15.BU3): > I want to develop an application that uses FFmpeg, but I have not been clear about license of FFmpeg yet. > So please help me with this question: > > I use FFmpeg to mux a video and an audio file together by calling FFmpeg.exe in my application (create new process for FFmpeg.exe and input command line to it). > I have not modify anything of FFmpeg.exe and so it does not matter if GPL, LGPL or whatever license because you are *not linking* by call a binary which *never* affects any *source license* > (1) FFmpeg is built with "--enable-gpl" or "--enable-nonfree" which makes the ffmpeg binary *non redistributeable* > (2) FFmpeg is built without "--enable-gpl" and "--enable-nonfree". > I understand that FFmpeg is under GPL in case (1), LGPL in case (2)? Is that true? GPL or LGPL is not relevant if you *only call the binary* as said "--enable-nonfree" are *npn distributeable* binaries so you better avoid to ship the ffmpeg-binary at all and distribute your application alone with the link to whatever ffmpeg-bin to be safe -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From andrey.krieger.utkin at gmail.com Thu May 16 22:57:50 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Thu, 16 May 2013 23:57:50 +0300 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: <20130516204636.GA5450@devbox.ma.labs.intellij.net> References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> Message-ID: 2013/5/16 Eugene Dzhurinsky : > What I found so far, is > > cat *.png | ffmpeg -c:v png -f image2pipe -r 10 -i - -y test.gif > > doesn't work, but > > cat *.png | ffmpeg -c:v png -f image2pipe -r 10 -i - -y test.avi > > does the trick - AVI file is created. > > So perhaps there's something to be specified for GIF output explicitly? In both cases i get same error pipe:: Input/output error But in both cases i get 2 frames written to output and output files valid. If you have other results, check your ffmpeg to be of recent version. -- Andrey Utkin From jdevelop at gmail.com Thu May 16 23:10:22 2013 From: jdevelop at gmail.com (Eugene Dzhurinsky) Date: Thu, 16 May 2013 17:10:22 -0400 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> Message-ID: <20130516211022.GA8845@devbox.ma.labs.intellij.net> On Thu, May 16, 2013 at 11:57:50PM +0300, Andrey Utkin wrote: > In both cases i get same error > pipe:: Input/output error > But in both cases i get 2 frames written to output and output files valid. > If you have other results, check your ffmpeg to be of recent version. I believe that I/O error comes from the fact that stream was closed. In my case for GIF I can see: =================================================================================== ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease) configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [image2pipe @ 0xfb2140] Estimating duration from bitrate, this may be inaccurate Input #0, image2pipe, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, pal8, 558x466, 10 fps, 10 tbr, 10 tbn, 10 tbc [gif @ 0xfbbbc0] ERROR: gif only handles the rgb24 pixel format. Use -pix_fmt rgb24. Output #0, gif, to 'test.gif': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: rawvideo, pal8, 558x466, q=2-31, 200 kb/s, 90k tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> rawvideo) Could not write header for output file #0 (incorrect codec parameters ?): Input/output error =================================================================================== and resulting GIF is 0-sized. ffmpeg version 1.2.1 -- Eugene N Dzhurinsky From ubitux at gmail.com Thu May 16 23:15:14 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 16 May 2013 23:15:14 +0200 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: <20130516211022.GA8845@devbox.ma.labs.intellij.net> References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> <20130516211022.GA8845@devbox.ma.labs.intellij.net> Message-ID: <20130516211514.GL26920@leki> On Thu, May 16, 2013 at 05:10:22PM -0400, Eugene Dzhurinsky wrote: > On Thu, May 16, 2013 at 11:57:50PM +0300, Andrey Utkin wrote: > > In both cases i get same error > > pipe:: Input/output error > > But in both cases i get 2 frames written to output and output files valid. > > If you have other results, check your ffmpeg to be of recent version. > > I believe that I/O error comes from the fact that stream was closed. > > In my case for GIF I can see: > > =================================================================================== > > ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers > built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease) > configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab > libavutil 52. 18.100 / 52. 18.100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [image2pipe @ 0xfb2140] Estimating duration from bitrate, this may be inaccurate > Input #0, image2pipe, from 'pipe:': > Duration: N/A, bitrate: N/A > Stream #0:0: Video: png, pal8, 558x466, 10 fps, 10 tbr, 10 tbn, 10 tbc > [gif @ 0xfbbbc0] ERROR: gif only handles the rgb24 pixel format. Use -pix_fmt rgb24. > Output #0, gif, to 'test.gif': > Metadata: > encoder : Lavf54.63.104 > Stream #0:0: Video: rawvideo, pal8, 558x466, q=2-31, 200 kb/s, 90k tbn, 10 tbc > Stream mapping: > Stream #0:0 -> #0:0 (png -> rawvideo) > Could not write header for output file #0 (incorrect codec parameters ?): Input/output error > > =================================================================================== > > and resulting GIF is 0-sized. > > ffmpeg version 1.2.1 > Please try FFmpeg git/master, various changes and improvements got in for GIF encoding. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From andrey.krieger.utkin at gmail.com Thu May 16 23:49:49 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 17 May 2013 00:49:49 +0300 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: <20130516211022.GA8845@devbox.ma.labs.intellij.net> References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> <20130516211022.GA8845@devbox.ma.labs.intellij.net> Message-ID: 2013/5/17 Eugene Dzhurinsky : > ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers Well, it is quite recent. For me _personally_ it is acceptable. > [gif @ 0xfbbbc0] ERROR: gif only handles the rgb24 pixel format. Use -pix_fmt rgb24. You missed this error with a hint. Add such option straight before output file name. -- Andrey Utkin From onemda at gmail.com Fri May 17 00:01:31 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 16 May 2013 22:01:31 +0000 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> <20130516211022.GA8845@devbox.ma.labs.intellij.net> Message-ID: On 5/16/13, Andrey Utkin wrote: > 2013/5/17 Eugene Dzhurinsky : >> ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers > > Well, it is quite recent. For me _personally_ it is acceptable. Its unacceptable version for gif encoding. That version creates suboptimal (very big, thus useless) gif files. If such encodings are acceptable for your personality, i'm ok with it too. > >> [gif @ 0xfbbbc0] ERROR: gif only handles the rgb24 pixel format. Use >> -pix_fmt rgb24. > > You missed this error with a hint. Add such option straight before > output file name. Invalid reasoning. Do not use it if there is better opinion. From jdevelop at gmail.com Fri May 17 00:23:56 2013 From: jdevelop at gmail.com (Eugene Dzhurinsky) Date: Thu, 16 May 2013 18:23:56 -0400 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> <20130516211022.GA8845@devbox.ma.labs.intellij.net> Message-ID: <20130516222356.GA17485@devbox.ma.labs.intellij.net> On Thu, May 16, 2013 at 10:01:31PM +0000, Paul B Mahol wrote: > Its unacceptable version for gif encoding. That version creates > suboptimal (very big, thus useless) gif files. > > If such encodings are acceptable for your personality, i'm ok with it too. Ok, I've got version N-53165-g3da726 from git (basically, AUR, if matters) now it is able to create GIF images from set of PNG images with no problem (except that warning about pipe:: Input/output error) So far looks great, thanks! -- Eugene N Dzhurinsky -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From ubitux at gmail.com Fri May 17 00:06:21 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Fri, 17 May 2013 00:06:21 +0200 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> <20130516211022.GA8845@devbox.ma.labs.intellij.net> Message-ID: <20130516220621.GP26920@leki> On Thu, May 16, 2013 at 10:01:31PM +0000, Paul B Mahol wrote: > On 5/16/13, Andrey Utkin wrote: > > 2013/5/17 Eugene Dzhurinsky : > >> ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers > > > > Well, it is quite recent. For me _personally_ it is acceptable. > > Its unacceptable version for gif encoding. That version creates > suboptimal (very big, thus useless) gif files. > > If such encodings are acceptable for your personality, i'm ok with it too. > It will also not produce decent visual output unless you trick with filters. And you will need to make the muxer do the encode. It will not perform well anyway. All of this is fixed in the development version. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From cehoyos at ag.or.at Fri May 17 00:46:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 16 May 2013 22:46:19 +0000 (UTC) Subject: [FFmpeg-user] About license of FFmpeg References: Message-ID: Duong Tuan Dat (FSU15.BU3 fsoft.com.vn> writes: > I use FFmpeg to mux a video and an audio file together > by calling FFmpeg.exe in my application If you choose to distribute a binary based on FFmpeg source code (like for example ffmpeg.exe), then please do not forget that you have to also distribute the (exact) source that was used to compile the binary. And please understand that if you choose to compile ffmpeg.exe with "--enable-nonfree" it means that you cannot legally distribute the resulting binary. Carl Eugen From cehoyos at ag.or.at Fri May 17 00:47:31 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 16 May 2013 22:47:31 +0000 (UTC) Subject: [FFmpeg-user] Trouble converting MOD file to anything else References: Message-ID: Guy Helmer gmail.com> writes: > I have tried a number of approaches to transcode a > new set of MOD files to MPG, AVI, or MP4 to clean > them up for use in iMovie but nothing has worked > for me with ffmpeg 1.2.1 (it used to work with an > older version of ffmpeg from roughly a year ago). Please provide an input sample. Carl Eugen From andrey.krieger.utkin at gmail.com Fri May 17 01:46:17 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 17 May 2013 02:46:17 +0300 Subject: [FFmpeg-user] create an animated GIF from set of images In-Reply-To: <20130516220621.GP26920@leki> References: <20130516201124.GA32743@devbox.ma.labs.intellij.net> <20130516204636.GA5450@devbox.ma.labs.intellij.net> <20130516211022.GA8845@devbox.ma.labs.intellij.net> <20130516220621.GP26920@leki> Message-ID: 2013/5/17 Cl?ment B?sch : > On Thu, May 16, 2013 at 10:01:31PM +0000, Paul B Mahol wrote: >> On 5/16/13, Andrey Utkin wrote: >> > 2013/5/17 Eugene Dzhurinsky : >> >> ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers >> > >> > Well, it is quite recent. For me _personally_ it is acceptable. >> >> Its unacceptable version for gif encoding. That version creates >> suboptimal (very big, thus useless) gif files. >> >> If such encodings are acceptable for your personality, i'm ok with it too. >> > > It will also not produce decent visual output unless you trick with > filters. And you will need to make the muxer do the encode. It will not > perform well anyway. All of this is fixed in the development version. Shame on me for voicing braindead opinions, while using recent builds from git by myself! It just felt much better than v0.5.something which happened sometimes in questions there :) -- Andrey Utkin From phpdev at ehrhardt.nl Fri May 17 02:54:16 2013 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Fri, 17 May 2013 02:54:16 +0200 Subject: [FFmpeg-user] Trouble converting MOD file to anything else References: Message-ID: Guy Helmer in gmane.comp.video.ffmpeg.user (Thu, 16 May 2013 15:25:30 -0500): >I have tried a number of approaches to transcode a new set of >MOD files to MPG, AVI, or MP4 to clean them up for use in iMovie but >nothing has worked for me with ffmpeg 1.2.1 (it used to work with an >older version of ffmpeg from roughly a year ago). I always receive >these errors from libmodplug and the output file is extremely short. >Any help would be appreciated. I tries the latest FFmpeg on MOD files from a JVC camcorder wothout problems. >ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers > built on May 15 2013 13:13:12 with Apple clang version 4.1 > (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) > configuration: --prefix=/opt/local --enable-swscale > --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus > --enable-libtheora --enable-libschroedinger --enable-libopenjpeg > --enable-libmodplug --enable-libvpx --enable-libspeex > --enable-libfreetype --mandir=/opt/local/share/man --enable-shared > --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm > --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid Was your previous FFmpeg also compiled with --enable-libmodplug? I do not need it for the JVC mod files. Can you compile FFmpeg without libmodplug? > sample : ?D > : ??? ????? ??: > : 0panasonic0120201U01 > : S dvdvrx010 > : c0120201U01 SN Mdvd > : nasonic0120201U01 M > : Y? D b ( > : dvdvrx010panasonic01 > : SI Do the Panasonic and DVD in this sample have anything to do with the origin of the files? Jan From phpdev at ehrhardt.nl Fri May 17 03:00:50 2013 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Fri, 17 May 2013 03:00:50 +0200 Subject: [FFmpeg-user] Trouble converting MOD file to anything else References: Message-ID: Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Fri, 17 May 2013 02:54:16 +0200): >I tries the latest FFmpeg on MOD files from a JVC camcorder wothout >problems. Oops. I should not reply too late in the evening. I tried the latest FFmpeg on MOD files from a JVC camcorder without problems. ,,, From 921353606 at qq.com Fri May 17 03:35:34 2013 From: 921353606 at qq.com (921353606@qq) Date: Fri, 17 May 2013 09:35:34 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, <201305151950265780809@qq.com>, <201305160850296299251@qq.com>, Message-ID: <201305170935326402882@qq.com> 921353606 at qq From: Carl Eugen Hoyos Date: 2013-05-16 16:54 To: ffmpeg-user Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file >921353606 qq <921353606 qq.com> writes: >> > >>Which player / codec supports this file? >> > > > >> >I only know it was supported by window media player. > > > >>Doesn't work here. >> >> It can be played by Windows Media Player 11.0.5721.5262 >> on Windows XP Professional Service Pack 3. >Does not work here. >If you can find out which codec you installed that allows >playback, we would at least have a name for the ticket I >would open. >Carl Eugen I tried it again with mencoder.exe to find some clue. It was failed and the ouput was: E:\tools\mplayer>mencoder.exe e:\video\yj_Screen.wmv -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o m7.avi MEncoder Redxii-SVN-r36265-4.6.3 (C) 2000-2013 MPlayer Team Custom build by Redxii, http://smplayer.sourceforge.net Compiled against FFmpeg version N-52985-gcbcc5cb Build date: Sat May 11 23:43:58 EDT 2013 success: format: 0 data: 0x0 - 0x89cd52 libavformat version 55.7.100 (internal) ASF file format detected. [asfheader] Video stream found, -vid 2 VIDEO: [EJQV] 1024x768 24bpp 1000.000 fps 232.1 kbps (28.3 kbyte/s) [V] filefmt:6 fourcc:0x56514A45 size:1024x768 fps:1000.000 ftime:=0.0010 xvid: using library version 1.3.2 (build xvid-1.3.2) Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Cannot find codec matching selected -vo and video format 0x56514A45. ========================================================================== Exiting... _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From anilj.mailing at gmail.com Fri May 17 05:37:20 2013 From: anilj.mailing at gmail.com (Anil J) Date: Thu, 16 May 2013 23:37:20 -0400 Subject: [FFmpeg-user] Video transcoding of the streamed data. In-Reply-To: References: Message-ID: Hello List, Can someone please comment on below scenario? How does FFmpeg handles the transcoding of real streamed video data? Are there any specific considerations. I am new to FFmpeg tool and do not know most of its features. /anil. On Thu, May 16, 2013 at 10:08 AM, Anil J wrote: > Hello List, > > Can someone please provide the comments on the below use case? How does > FFmpeg handles the streamed video AFA conversion is concerned? Can I use > the plain simple command line or FFmpeg provides some different tool set to > process the live stream video? > > Thanks, > /anil. > > > On Wed, May 15, 2013 at 6:35 PM, Anil J wrote: > >> Hi, >> >> In HTTP streaming case (e.g. watching youtube), in my use case, I want to >> adapt the video stream to suite my client requirement (e.g. codec >> conversion). I am using a proxy server to tap the HTTP response messages >> and in position to buffer the chunked video data. >> >> I am however want to understand how I can send this data to FFmpeg. I >> want to understand below: >> >> 1. How much of data (HTTP based video chunks) I need to buffer before I >> can invoke the FFmpeg? >> 2. I am not sure how the content server (youtube) chunks the video? Are >> these chunks logically independent of each other i.e. sliced at each >> I-Frame? OR they are just sliced to fit the IP packet size without getting >> into the video stream semantics. >> 3. In the case if they are just binary slices, how does FFmpeg would >> react to a data which may not be complete. Note that, even if I buffer the >> certain amount of chunks, I am not sure the validity of it, and whether >> FFmpeg will like it. >> >> Thanks, >> /anil. >> >> > From francois.visagie at gmail.com Fri May 17 08:39:32 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 17 May 2013 08:39:32 +0200 Subject: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' In-Reply-To: References: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> <5188C3B5.9080004@yahoo.com> <006301ce5227$f4f9d920$deed8b60$@gmail.com> Message-ID: <009a01ce52c9$4d5ae630$e810b290$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Liam Condron-Farnos > Sent: 16 May 2013 15:30 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' > > > It would need to determine at runtime when input is > > 704x576 and only specify the resize then. Could something like ffprobe > > be used for this detection in a batch file (my ffmpeg build came without it)? > > Certainly; you would use something like: > > ffprobe -i input.file -show_streams -select_streams v:0 > > This would print information about the first video stream to STDOUT in > key=value pairs. On Linux I would parse this with sed (to find the apropriate > line & strip the key), I'm sure there's an equivalent for Windows. find "string" (can pipe from STDIN and to STDOUT also) > Check out > the ffprobe documentation: > > http://ffmpeg.org/ffprobe.html Appreciated, thanks for your help. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From blacktrash at gmx.net Fri May 17 09:45:57 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Fri, 17 May 2013 09:45:57 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image In-Reply-To: <20130515134401.GJ31389@krille.blacktrash.org> References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> <20130515115710.GI31389@krille.blacktrash.org> <20130515134401.GJ31389@krille.blacktrash.org> Message-ID: <20130517074557.GF751@krille.blacktrash.org> * Christian Ebert on Wednesday, May 15, 2013 at 15:44:01 +0200 > * Christian Ebert on Wednesday, May 15, 2013 at 13:57:10 +0200 >> Yes, ermh, I noticed. But how could overlay work at the end of >> the chain? > > This seems to do the trick: > > ffmpeg -i test.m4v -i logo.png -filter_complex '[0:v]scale=640:480[tmp]; [tmp][1:v]overlay=main_w-overlay_w-10:main_h-overlay_h-10' test.mp4 To me it still feels like a bug that -filter_complex does not take -map 0:v:0 into account when specified before, i.e. chooses the 2nd video track of the first input - 0:v:1 - which has been explicitly deselected, instead of the first video track of the 2nd input - 1:v Does that mean that -map has no effect on filter_complex? -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From nichot20 at yahoo.com Fri May 17 10:13:01 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 17 May 2013 09:13:01 +0100 Subject: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' In-Reply-To: <006301ce5227$f4f9d920$deed8b60$@gmail.com> References: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> <5188C3B5.9080004@yahoo.com> <006301ce5227$f4f9d920$deed8b60$@gmail.com> Message-ID: <5195E68D.8080202@yahoo.com> On 16/05/13 12:24, Francois Visagie wrote: >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of Tim Nicholson >> Sent: 07 May 2013 11:05 >> To: FFmpeg user questions >> Subject: Re: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' >> >> On 05/04/13 10:17, Francois Visagie wrote: >>> Hi All, >>>[..] >>> However, when encoding 704-wide Rec.601 source like DV (perfectly >>> legal resolution for DVD), this option causes distortion by forcing >>> horizontal resolution to 720 pixels (see ticket 2434 >>> ). Some background on >>> Rec.601 sources and 704-pixel horizontal resolution at >>> http://en.wikipedia.org/wiki/Pixel_aspect_ratio. >>> >>> >>> >>> The work-around in this case is _not_ to use '-target pal-dvd' but to >>> specify the DVD-compliant encode using individual options, e.g. >>> >>> '-codec:a ac3 -b:a 128000 -codec:v mpeg2video -g 15 -bf 2 -bufsize >>> 1835000 -b:v 6090000 -maxrate 9800000 -muxrate 10080000'. >>> >> >> It is easier to still specify -target pal-dvd then afterwards overide the > size >> with -s 704x576. > > That's an interesting suggestion, thanks. It would need to somehow go into > my standard encode Windows batch process (used for both 720x576 as well as > 704x576 encodes). It would need to determine at runtime when input is > 704x576 and only specify the resize then. Could something like ffprobe be > used for this detection in a batch file (my ffmpeg build came without it)? > > Also, I'm not familiar with the resizer's behaviour; would it still perform > an unwanted resize when the source is already at 704x576? > >> [..] If the size is already correct then no resizing will happen, you might need to ensure you set the scalers interlace option correctly to ensure that any resizing doesn't blend frames. Note that auto inserted scalers default to progressive scaling. -- Tim From cehoyos at ag.or.at Fri May 17 10:13:00 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 17 May 2013 08:13:00 +0000 (UTC) Subject: [FFmpeg-user] overlay filter uses unmapped cover image References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> <20130515115710.GI31389@krille.blacktrash.org> <20130515134401.GJ31389@krille.blacktrash.org> <20130517074557.GF751@krille.blacktrash.org> Message-ID: Christian Ebert gmx.net> writes: > To me it still feels like a bug that -filter_complex > does not take -map 0:v:0 into account -map can only work on the *output* of the filter, it has no effect on its input. Carl Eugen From krueger at lesspain.de Fri May 17 11:42:43 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 17 May 2013 11:42:43 +0200 Subject: [FFmpeg-user] Status of two prores decoders/encoders Message-ID: Hi, is there a place where I can find out why there are two prores decoders (both LGPL) and two encoders (also both LGPL) and what the pros and cons of each are? I am asking because it is hard to decide which one to choose if one wanted to sponsor development of a certain feature (e.g. support for alpha). Btw, are there plans to get rid of the duplication at some point? Or is this not going to happen because of the merges from libav and there is a codec that is the one preferred by the ffmpeg project? Thanks in advance for any insight on this, Robert From cehoyos at ag.or.at Fri May 17 12:05:48 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 17 May 2013 10:05:48 +0000 (UTC) Subject: [FFmpeg-user] Status of two prores decoders/encoders References: Message-ID: Robert Kr?ger lesspain.de> writes: > is there a place where I can find out why there are > two prores decoders (both LGPL) and two encoders > (also both LGPL) http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html http://en.wikipedia.org/wiki/Not_invented_here > and what the pros and cons of each are? The "Anatoliy" encoder is faster. > I am asking because it is hard to decide which one to > choose if one wanted to sponsor development of a > certain feature (e.g. support for alpha). Please choose proresdec2.c and proresenc_anatoliy.c, everything else makes Michael's work harder. Carl Eugen From francois.visagie at gmail.com Fri May 17 12:13:48 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 17 May 2013 12:13:48 +0200 Subject: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' In-Reply-To: <5195E68D.8080202@yahoo.com> References: <004a01ce31de$6dfb9cb0$49f2d610$@gmail.com> <5188C3B5.9080004@yahoo.com> <006301ce5227$f4f9d920$deed8b60$@gmail.com> <5195E68D.8080202@yahoo.com> Message-ID: <010d01ce52e7$3bd411c0$b37c3540$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Tim Nicholson > Sent: 17 May 2013 10:13 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' > > On 16/05/13 12:24, Francois Visagie wrote: > >> -----Original Message----- > >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >> bounces at ffmpeg.org] On Behalf Of Tim Nicholson > >> Sent: 07 May 2013 11:05 > >> To: FFmpeg user questions > >> Subject: Re: [FFmpeg-user] [Bulk] Muxer Catch-22 with '-target pal-dvd' > >> > >> On 05/04/13 10:17, Francois Visagie wrote: > >>> Hi All, > >>>[..] > >>> However, when encoding 704-wide Rec.601 source like DV (perfectly > >>>legal resolution for DVD), this option causes distortion by forcing > >>>horizontal resolution to 720 pixels (see ticket 2434 > >>> ). Some background on > >>> Rec.601 sources and 704-pixel horizontal resolution at > >>>http://en.wikipedia.org/wiki/Pixel_aspect_ratio. > >>> > >>> > >>> > >>> The work-around in this case is _not_ to use '-target pal-dvd' but > >>> to specify the DVD-compliant encode using individual options, e.g. > >>> > >>> '-codec:a ac3 -b:a 128000 -codec:v mpeg2video -g 15 -bf 2 -bufsize > >>> 1835000 -b:v 6090000 -maxrate 9800000 -muxrate 10080000'. > >>> > >> > >> It is easier to still specify -target pal-dvd then afterwards overide > >> the > > size > >> with -s 704x576. > > > > That's an interesting suggestion, thanks. It would need to somehow go > > into my standard encode Windows batch process (used for both 720x576 > > as well as > > 704x576 encodes). It would need to determine at runtime when input is > > 704x576 and only specify the resize then. Could something like ffprobe > > be used for this detection in a batch file (my ffmpeg build came without it)? > > > > Also, I'm not familiar with the resizer's behaviour; would it still > > perform an unwanted resize when the source is already at 704x576? > > > >> [..] > > If the size is already correct then no resizing will happen, you might need to > ensure you set the scalers interlace option correctly to ensure that any > resizing doesn't blend frames. Note that auto inserted scalers default to > progressive scaling. That's good info, thanks, Tim. > -- > Tim << snip >> From dev at rarevision.com Fri May 17 13:10:40 2013 From: dev at rarevision.com (Thomas Worth) Date: Fri, 17 May 2013 04:10:40 -0700 Subject: [FFmpeg-user] Status of two prores decoders/encoders Message-ID: On Fri, May 17, 2013 at 3:05 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > is there a place where I can find out why there are > > two prores decoders (both LGPL) and two encoders > > (also both LGPL) > > http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > http://en.wikipedia.org/wiki/Not_invented_here > > > and what the pros and cons of each are? > > The "Anatoliy" encoder is faster. prores_aw (anatoliy) is up to 4x faster in my tests. However, prores_ks (kostya) compresses the data more efficiently (files are somewhat smaller for roughly the same quality). I'm not sure this is worth the massive slowdown, but for incredibly large files (several hundred GB), it might be helpful. From nichot20 at yahoo.com Fri May 17 13:27:27 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 17 May 2013 12:27:27 +0100 Subject: [FFmpeg-user] Status of two prores decoders/encoders In-Reply-To: References: Message-ID: <5196141F.7040300@yahoo.com> On 17/05/13 11:05, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> is there a place where I can find out why there are >> two prores decoders (both LGPL) and two encoders >> (also both LGPL) > > http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > http://en.wikipedia.org/wiki/Not_invented_here > >> and what the pros and cons of each are? > > The "Anatoliy" encoder is faster. > But I think only the Kostya supports interlace... >> I am asking because it is hard to decide which one to >> choose if one wanted to sponsor development of a >> certain feature (e.g. support for alpha). > > Please choose proresdec2.c and proresenc_anatoliy.c, > everything else makes Michael's work harder. > > Carl Eugen > > [...] -- Tim From blacktrash at gmx.net Fri May 17 13:27:57 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Fri, 17 May 2013 13:27:57 +0200 Subject: [FFmpeg-user] overlay filter uses unmapped cover image In-Reply-To: References: <20130515091038.GF31389@krille.blacktrash.org> <20130515110934.GG31389@krille.blacktrash.org> <20130515115710.GI31389@krille.blacktrash.org> <20130515134401.GJ31389@krille.blacktrash.org> <20130517074557.GF751@krille.blacktrash.org> Message-ID: <20130517112757.GH751@krille.blacktrash.org> * Carl Eugen Hoyos on Friday, May 17, 2013 at 08:13:00 +0000 > Christian Ebert gmx.net> writes: > >> To me it still feels like a bug that -filter_complex >> does not take -map 0:v:0 into account > > -map can only work on the *output* of the filter, it > has no effect on its input. OK, but then from the UI perspective I would expect the filters always to act on all inputs, but they don't: $ ffmpeg -i test.m4v -filter_complex scale=640:480 test.mp4 [...] Stream mapping: Stream #0:0 (h264) -> scale (graph 0) scale (graph 0) -> Stream #0:0 (libx264) Stream #0:1 -> #0:1 (aac -> libfaac) Stream 0:2 or 0:v:1 is silently discarded - fine with me, but it's surprising, don't you think? Is it that the overlay filter just selects the _next_ video stream regardless of whether a second -i input is given? -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From krueger at lesspain.de Fri May 17 14:22:58 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 17 May 2013 14:22:58 +0200 Subject: [FFmpeg-user] Status of two prores decoders/encoders In-Reply-To: <5196141F.7040300@yahoo.com> References: <5196141F.7040300@yahoo.com> Message-ID: On Fri, May 17, 2013 at 1:27 PM, Tim Nicholson wrote: > On 17/05/13 11:05, Carl Eugen Hoyos wrote: > > Robert Kr?ger lesspain.de> writes: > > > >> is there a place where I can find out why there are > >> two prores decoders (both LGPL) and two encoders > >> (also both LGPL) > > > > http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > > http://en.wikipedia.org/wiki/Not_invented_here > > > >> and what the pros and cons of each are? > > > > The "Anatoliy" encoder is faster. > > > > But I think only the Kostya supports interlace... > > >> I am asking because it is hard to decide which one to > >> choose if one wanted to sponsor development of a > >> certain feature (e.g. support for alpha). > > > > Please choose proresdec2.c and proresenc_anatoliy.c, > > everything else makes Michael's work harder. > > > > Carl Eugen > > > > [...] > > > -- > Tim > > Thanks for the valuable feedback, everyone! The interlaced support is indeed not unimportant (unfortunately). So probably the best thing for the ffmpeg project would be to have that ported to proresenc_anatoliy.c and then target other features and improvements for that one only. has anyone looked at the code bases to determine if porting stuff that is already in the kostya version is easier than developing from scratch? From onemda at gmail.com Fri May 17 14:41:24 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 17 May 2013 12:41:24 +0000 Subject: [FFmpeg-user] Status of two prores decoders/encoders In-Reply-To: <5196141F.7040300@yahoo.com> References: <5196141F.7040300@yahoo.com> Message-ID: On 5/17/13, Tim Nicholson wrote: > On 17/05/13 11:05, Carl Eugen Hoyos wrote: >> Robert Krueger lesspain.de> writes: >> >>> is there a place where I can find out why there are >>> two prores decoders (both LGPL) and two encoders >>> (also both LGPL) >> >> http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html >> http://en.wikipedia.org/wiki/Not_invented_here >> >>> and what the pros and cons of each are? >> >> The "Anatoliy" encoder is faster. >> > > But I think only the Kostya supports interlace... Proof? From cehoyos at ag.or.at Fri May 17 15:15:03 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 17 May 2013 13:15:03 +0000 (UTC) Subject: [FFmpeg-user] Status of two prores decoders/encoders References: <5196141F.7040300@yahoo.com> Message-ID: Paul B Mahol gmail.com> writes: > > But I think only the Kostya supports interlace... > > Proof? (What did you smoke today?) See c8e186f, the reason was the the author did not do enough research and didn't realize our encoder is faster. Carl Eugen From guy.helmer at gmail.com Fri May 17 16:00:26 2013 From: guy.helmer at gmail.com (Guy Helmer) Date: Fri, 17 May 2013 09:00:26 -0500 Subject: [FFmpeg-user] Trouble converting MOD file to anything else In-Reply-To: References: Message-ID: <8C979121-61B4-4BE8-84F6-CA396D50932A@gmail.com> On May 16, 2013, at 5:47 PM, Carl Eugen Hoyos wrote: > Guy Helmer gmail.com> writes: > >> I have tried a number of approaches to transcode a >> new set of MOD files to MPG, AVI, or MP4 to clean >> them up for use in iMovie but nothing has worked >> for me with ffmpeg 1.2.1 (it used to work with an >> older version of ffmpeg from roughly a year ago). > > Please provide an input sample. > > Carl Eugen I have made a 30-second sample file available at: https://dl.dropboxusercontent.com/u/3877340/MOV001.MOD ffmpeg output for this file: ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 15 2013 13:13:12 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [libmodplug @ 0x7fe1d9829c00] Max file size reach (see -max_size), allocating 5242880B but demuxing is likely to fail due to incomplete buffer [libmodplug @ 0x7fe1d9829c00] max_analyze_duration 5000000 reached at 5000000 microseconds Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, libmodplug, from 'MOV001.MOD': Metadata: name : ?D sample : ?D : ??? ????? ??: : 0panasonic0120201U01 : S dvdvrx010 : c0120201U01 SN Mdvd : nasonic0120201U01 M : Y? ' : dvdvrx010panasonic01 : SI extra info : 1 pattern, 4 channels, 9/15 samples Duration: 00:00:08.00, bitrate: 16939 kb/s Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Output #0, mp4, to 'MOV001.MP4': Metadata: name : ?D sample : ?D : ??? ????? ??: : 0panasonic0120201U01 : S dvdvrx010 : c0120201U01 SN Mdvd : nasonic0120201U01 M : Y? ' : dvdvrx010panasonic01 : SI extra info : 1 pattern, 4 channels, 9/15 samples encoder : Lavf54.63.104 Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> aac) Press [q] to stop, [?] for help size= 6kB time=00:00:05.38 bitrate= 9.4kbits/s video:0kB audio:2kB subtitle:0 global headers:0kB muxing overhead 205.725376% Thanks for any assistance! Guy From onemda at gmail.com Fri May 17 16:18:04 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 17 May 2013 14:18:04 +0000 Subject: [FFmpeg-user] Trouble converting MOD file to anything else In-Reply-To: References: Message-ID: On 5/16/13, Guy Helmer wrote: > I have tried a number of approaches to transcode a new set of MOD files to > MPG, AVI, or MP4 to clean them up for use in iMovie but nothing has worked > for me with ffmpeg 1.2.1 (it used to work with an older version of ffmpeg > from roughly a year ago). I always receive these errors from libmodplug and > the output file is extremely short. Any help would be appreciated. > > This is my latest try at a command line; adding a suggested -max_size option > makes no difference: How big are current mod files you use? > >> ffmpeg -i MOV005.MOD -strict -2 -s 720x405 -vcodec mpeg4 -b:v 2300k >> -filter:v yadif -aspect 16:9 -acodec aac -ab 192k -ar 44100 MOV005.MP4 > > ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers > built on May 15 2013 13:13:12 with Apple clang version 4.1 > (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) > configuration: --prefix=/opt/local --enable-swscale --enable-avfilter > --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora > --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug > --enable-libvpx --enable-libspeex --enable-libfreetype > --mandir=/opt/local/share/man --enable-shared --enable-pthreads > --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl > --enable-postproc --enable-libx264 --enable-libxvid > libavutil 52. 18.100 / 52. 18.100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [libmodplug @ 0x7fb5eb829c00] Max file size reach (see -max_size), > allocating 5242880B but demuxing is likely to fail due to incomplete buffer > [libmodplug @ 0x7fb5eb829c00] max_analyze_duration 5000000 reached at > 5000000 microseconds > Guessed Channel Layout for Input Stream #0.0 : stereo > Input #0, libmodplug, from 'MOV005.MOD': > Metadata: > name : ?D > sample : ?D > : ??? ????? ??: > : 0panasonic0120201U01 > : S dvdvrx010 > : c0120201U01 SN Mdvd > : nasonic0120201U01 M > : Y? D b ( > : dvdvrx010panasonic01 > : SI > extra info : 1 pattern, 4 channels, 9/15 samples > Duration: 00:00:08.00, bitrate: 138487 kb/s > Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s > Output #0, mp4, to 'MOV005.MP4': > Metadata: > name : ?D > sample : ?D > : ??? ????? ??: > : 0panasonic0120201U01 > : S dvdvrx010 > : c0120201U01 SN Mdvd > : nasonic0120201U01 M > : Y? D b ( > : dvdvrx010panasonic01 > : SI > extra info : 1 pattern, 4 channels, 9/15 samples > encoder : Lavf54.63.104 > Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, > fltp, 192 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (pcm_s16le -> aac) > Press [q] to stop, [?] for help > size= 6kB time=00:00:05.38 bitrate= 9.4kbits/s > video:0kB audio:2kB subtitle:0 global headers:0kB muxing overhead > 205.725376% > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From casey.bateman at hudl.com Fri May 17 16:20:11 2013 From: casey.bateman at hudl.com (Casey Bateman) Date: Fri, 17 May 2013 14:20:11 +0000 Subject: [FFmpeg-user] Colorbalance and Curves video filter produces unusable\unviewable output. Message-ID: <6808707A0F1F264390A8F15F548522745EB0CA@EXMBX09.netplexity.local> While using the following command the output video becomes unusable and unviewable. The video details from the input video are size of HD1280x720, and bitrate of 3000k. ffmpeg -y -i input.mp4 -vf "colorbalance=rs=-0.5:bs=0.5:bh=-0.5:rh=0.5" -vcodec libx264 -r 29.97 -bt 3000k outputvid.mp4 >From ffmpeg command line it appears to process appropriately. However the output video produced shows a video size of 16x160 and the video is shot. Any ideas? Any more information needed? From guy.helmer at gmail.com Fri May 17 16:22:25 2013 From: guy.helmer at gmail.com (Guy Helmer) Date: Fri, 17 May 2013 09:22:25 -0500 Subject: [FFmpeg-user] Trouble converting MOD file to anything else In-Reply-To: References: Message-ID: <1D88C7A0-FB52-4B0C-B55C-D0FF67BEE3A1@gmail.com> On May 17, 2013, at 9:18 AM, Paul B Mahol wrote: > On 5/16/13, Guy Helmer wrote: >> I have tried a number of approaches to transcode a new set of MOD files to >> MPG, AVI, or MP4 to clean them up for use in iMovie but nothing has worked >> for me with ffmpeg 1.2.1 (it used to work with an older version of ffmpeg >> from roughly a year ago). I always receive these errors from libmodplug and >> the output file is extremely short. Any help would be appreciated. >> >> This is my latest try at a command line; adding a suggested -max_size option >> makes no difference: > > How big are current mod files you use? The file I just posted (in message a few minutes ago) is 16.9MB. I had a short (1.9MB) file that didn't trigger the libmodplug "Max file size reach" error, but also did not give a valid output file. Other files ranged up to 40MB. Guy > >> >>> ffmpeg -i MOV005.MOD -strict -2 -s 720x405 -vcodec mpeg4 -b:v 2300k >>> -filter:v yadif -aspect 16:9 -acodec aac -ab 192k -ar 44100 MOV005.MP4 >> >> ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers >> built on May 15 2013 13:13:12 with Apple clang version 4.1 >> (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) >> configuration: --prefix=/opt/local --enable-swscale --enable-avfilter >> --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora >> --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug >> --enable-libvpx --enable-libspeex --enable-libfreetype >> --mandir=/opt/local/share/man --enable-shared --enable-pthreads >> --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl >> --enable-postproc --enable-libx264 --enable-libxvid >> libavutil 52. 18.100 / 52. 18.100 >> libavcodec 54. 92.100 / 54. 92.100 >> libavformat 54. 63.104 / 54. 63.104 >> libavdevice 54. 3.103 / 54. 3.103 >> libavfilter 3. 42.103 / 3. 42.103 >> libswscale 2. 2.100 / 2. 2.100 >> libswresample 0. 17.102 / 0. 17.102 >> libpostproc 52. 2.100 / 52. 2.100 >> [libmodplug @ 0x7fb5eb829c00] Max file size reach (see -max_size), >> allocating 5242880B but demuxing is likely to fail due to incomplete buffer >> [libmodplug @ 0x7fb5eb829c00] max_analyze_duration 5000000 reached at >> 5000000 microseconds >> Guessed Channel Layout for Input Stream #0.0 : stereo >> Input #0, libmodplug, from 'MOV005.MOD': >> Metadata: >> name : ?D >> sample : ?D >> : ??? ????? ??: >> : 0panasonic0120201U01 >> : S dvdvrx010 >> : c0120201U01 SN Mdvd >> : nasonic0120201U01 M >> : Y? D b ( >> : dvdvrx010panasonic01 >> : SI >> extra info : 1 pattern, 4 channels, 9/15 samples >> Duration: 00:00:08.00, bitrate: 138487 kb/s >> Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s >> Output #0, mp4, to 'MOV005.MP4': >> Metadata: >> name : ?D >> sample : ?D >> : ??? ????? ??: >> : 0panasonic0120201U01 >> : S dvdvrx010 >> : c0120201U01 SN Mdvd >> : nasonic0120201U01 M >> : Y? D b ( >> : dvdvrx010panasonic01 >> : SI >> extra info : 1 pattern, 4 channels, 9/15 samples >> encoder : Lavf54.63.104 >> Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, >> fltp, 192 kb/s >> Stream mapping: >> Stream #0:0 -> #0:0 (pcm_s16le -> aac) >> Press [q] to stop, [?] for help >> size= 6kB time=00:00:05.38 bitrate= 9.4kbits/s >> video:0kB audio:2kB subtitle:0 global headers:0kB muxing overhead >> 205.725376% >> From onemda at gmail.com Fri May 17 16:24:22 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 17 May 2013 14:24:22 +0000 Subject: [FFmpeg-user] Colorbalance and Curves video filter produces unusable\unviewable output. In-Reply-To: <6808707A0F1F264390A8F15F548522745EB0CA@EXMBX09.netplexity.local> References: <6808707A0F1F264390A8F15F548522745EB0CA@EXMBX09.netplexity.local> Message-ID: On 5/17/13, Casey Bateman wrote: > While using the following command the output video becomes unusable and > unviewable. The video details from the input video are size of HD1280x720, > and bitrate of 3000k. > > ffmpeg -y -i input.mp4 -vf "colorbalance=rs=-0.5:bs=0.5:bh=-0.5:rh=0.5" > -vcodec libx264 -r 29.97 -bt 3000k outputvid.mp4 I need full uncut console output. But lets play little guessing game: colorbalance works in rgb colorspace only and whatever you used to view video does not support such h264 profile, use something like this: ffmpeg -y -i input.mp4 -vf "colorbalance=rs=-0.5:bs=0.5:bh=-0.5:rh=0.5" -vcodec libx264 -r 29.97 -bt 3000k -pix_fmt yuv420p outputvid.mp4 > > From ffmpeg command line it appears to process appropriately. However the > output video produced shows a video size of 16x160 and the video is shot. > Any ideas? Any more information needed? > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From casey.bateman at hudl.com Fri May 17 16:34:23 2013 From: casey.bateman at hudl.com (Casey Bateman) Date: Fri, 17 May 2013 14:34:23 +0000 Subject: [FFmpeg-user] Colorbalance and Curves video filter produces unusable\unviewable output. In-Reply-To: Message-ID: <6808707A0F1F264390A8F15F548522745EB101@EXMBX09.netplexity.local> You were absolutely right, you are awesome! Thankyou very much! On 5/17/13 9:24 AM, "Paul B Mahol" wrote: >On 5/17/13, Casey Bateman wrote: >> While using the following command the output video becomes unusable and >> unviewable. The video details from the input video are size of >>HD1280x720, >> and bitrate of 3000k. >> >> ffmpeg -y -i input.mp4 -vf "colorbalance=rs=-0.5:bs=0.5:bh=-0.5:rh=0.5" >> -vcodec libx264 -r 29.97 -bt 3000k outputvid.mp4 > >I need full uncut console output. > >But lets play little guessing game: > >colorbalance works in rgb colorspace only and whatever you used to view >video >does not support such h264 profile, use something like this: > > ffmpeg -y -i input.mp4 -vf "colorbalance=rs=-0.5:bs=0.5:bh=-0.5:rh=0.5" > -vcodec libx264 -r 29.97 -bt 3000k -pix_fmt yuv420p outputvid.mp4 > >> >> From ffmpeg command line it appears to process appropriately. However >>the >> output video produced shows a video size of 16x160 and the video is >>shot. >> Any ideas? Any more information needed? >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user From timothygu99 at gmail.com Fri May 17 16:36:07 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Fri, 17 May 2013 07:36:07 -0700 Subject: [FFmpeg-user] Video transcoding of the streamed data. In-Reply-To: References: Message-ID: On May 16, 2013 8:37 PM, "Anil J" wrote: > > Hello List, > > Can someone please comment on below scenario? How does FFmpeg handles the > transcoding of real streamed video data? Are there any specific > considerations. I am new to FFmpeg tool and do not know most of its > features. You can see http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide for some info. Please do not top post here. Timothy From cehoyos at ag.or.at Fri May 17 16:38:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 17 May 2013 14:38:59 +0000 (UTC) Subject: [FFmpeg-user] Trouble converting MOD file to anything else References: <8C979121-61B4-4BE8-84F6-CA396D50932A@gmail.com> Message-ID: Guy Helmer gmail.com> writes: > https://dl.dropboxusercontent.com/u/3877340/MOV001.MOD Thank you for the sample, I opened ticket #2583. Possible work-arounds until a modplug probe function is written include: Do not use --enable-libmodplug Use ffmpeg -f mpeg -i MOV001.MOD Remove "mod" from the extensions list in libmodplug.c Carl Eugen From nichot20 at yahoo.com Fri May 17 17:55:09 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 17 May 2013 16:55:09 +0100 Subject: [FFmpeg-user] [Bulk] Re: Status of two prores decoders/encoders In-Reply-To: References: <5196141F.7040300@yahoo.com> Message-ID: <519652DD.9030800@yahoo.com> On 17/05/13 13:41, Paul B Mahol wrote: > On 5/17/13, Tim Nicholson wrote: >> On 17/05/13 11:05, Carl Eugen Hoyos wrote: >>> Robert Krueger lesspain.de> writes: >>> >>>> is there a place where I can find out why there are >>>> two prores decoders (both LGPL) and two encoders >>>> (also both LGPL) >>> >>> http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html >>> http://en.wikipedia.org/wiki/Not_invented_here >>> >>>> and what the pros and cons of each are? >>> >>> The "Anatoliy" encoder is faster. >>> >> >> But I think only the Kostya supports interlace... > > Proof? If you look at the code you will see that Kostya inspects the field order settings, and Anatoly does not. To confirm the consequences of this behaviour I made transcodes to mov using both versions, and with interlaced and non interlaced material. I then inspected the mov's with both Baton, Atom Inspector and ffmbc's ffprobe. in all cases the Kostya files flags adhered to the field order settings I had made, but all the Anatoly files were flagged as "progressive". Whilst I appreciate that the stream material may well have been interlaced in the Anatoly samples, they were not correctly flagged as such, and this led to problems of interpeting the files correctly in other processes, and rejection by broadcast industry standard testing equipment. Of course I may have missed a patch that fixed this behaviour, but it was sufficent proof for me at the time I conducted the tests. > [..] > -- Tim From cehoyos at ag.or.at Fri May 17 18:38:58 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 17 May 2013 16:38:58 +0000 (UTC) Subject: [FFmpeg-user] [Bulk] Re: Status of two prores decoders/encoders References: <5196141F.7040300@yahoo.com> <519652DD.9030800@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > Of course I may have missed a patch that fixed this behaviour Of course not, the limitation is known. Carl Eugen From anilj.mailing at gmail.com Fri May 17 18:56:02 2013 From: anilj.mailing at gmail.com (Anil J) Date: Fri, 17 May 2013 12:56:02 -0400 Subject: [FFmpeg-user] Video transcoding of the streamed data. In-Reply-To: References: Message-ID: > > You can see http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide for some > info. > > Most of the examples here assumes that the video stream is available from server. In my case, the proxy is receiving the video data in HTTP response packets in continuous manner. At proxy server, I can read the video data, buffer it if required, and pass it to FFmpeg for transcoding. Is this correct approach to do? I also want to put the transcoded video chunk back in the HTTP response to pass it further to the client. /anil. From compuvision.sr at gmail.com Fri May 17 22:51:57 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Fri, 17 May 2013 17:51:57 -0300 Subject: [FFmpeg-user] How to determine progression Message-ID: Hi there, I have created with Perl and FFmpeg transcode service on my server. All files in placed in a certain folder are queued for transcoding. What I'm missing is a kind of progress bar. Is there a way to retrieve the status of ffmpeg transcoding like fps or better percentage finished by querying to active process. I mean other than something like this. current filesize of destination file/(media length in sec of source *(audio bitrate+video bitrate)) And idea is nice. yours sincerely, Albert From timothygu99 at gmail.com Sat May 18 00:26:55 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Fri, 17 May 2013 15:26:55 -0700 Subject: [FFmpeg-user] Video transcoding of the streamed data. In-Reply-To: References: Message-ID: On May 17, 2013 9:56 AM, "Anil J" wrote: > > > > > You can see http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide for some > > info. > > > Most of the examples here assumes that the video stream is available from > server. In my case, the proxy is receiving the video data in HTTP response > packets in continuous manner. At proxy server, I can read the video data, > buffer it if required, and pass it to FFmpeg for transcoding. Is this > correct approach to do? > > I also want to put the transcoded video chunk back in the HTTP response to > pass it further to the client. Isn't that the same thing as the wiki? Just change the input and output to http. ffmpeg -f input-format -i http://input -c copy -f output-format http://output (I'm really not HTTP expert. If there is anything wrong, sorry.) Timothy From anilj.mailing at gmail.com Sat May 18 01:52:02 2013 From: anilj.mailing at gmail.com (Anil J) Date: Fri, 17 May 2013 19:52:02 -0400 Subject: [FFmpeg-user] Video transcoding of the streamed data. In-Reply-To: References: Message-ID: > > > At proxy server, I can read the video data, > > buffer it if required, and pass it to FFmpeg for transcoding. Is this > > correct approach to do? > > > > I also want to put the transcoded video chunk back in the HTTP response > to > > pass it further to the client. > > Isn't that the same thing as the wiki? Just change the input and output to > http. > > ffmpeg -f input-format -i http://input -c copy -f output-format > http://output It might work, I need to try that. BUT, my case is that at Proxy is the controller here, which is receiving video chunks in HTTP response messages. My thought is to take these video chunks and then invoke FFmpeg to process them. The processed output then would go back to the HTTP response (which is held by Proxy), and it would be sent to the HTTP client. This is typical of proxy functionality. The command line above imply that the stream is consumed by the FFmpeg without any control of proxy. However I can easily infer from above command line example, that FFmpeg has the functionality built into it to consume the HTTP streamed video chunks (may be buffer them), process them, and stream out them to a output http, all in realtime. If this is indeed true, I think there should be a way to invoke FFmpeg with buffered video data which Proxy would build, rather than leaving it to FFmpeg completely. I think this is really a detailed question to be discussed about FFmpeg. This piece of functionality or understanding of FFmpeg behavior in such scenario is very vital for my current work. I am new to this tool. I request for more inputs, comments from the folks out there. Thanks in advance. /anil. From krueger at lesspain.de Sat May 18 10:30:03 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 10:30:03 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: Hi, On Fri, May 17, 2013 at 10:51 PM, Albert Scholtalbers < compuvision.sr at gmail.com> wrote: > Hi there, > > I have created with Perl and FFmpeg transcode service on my server. > All files in placed in a certain folder are queued for transcoding. > What I'm missing is a kind of progress bar. > Is there a way to retrieve the status of ffmpeg transcoding like fps or > better percentage finished by querying to active process. > I mean other than something like this. > current filesize of destination file/(media length in sec of source > *(audio bitrate+video bitrate)) > > And idea is nice. > > yours sincerely, > > Albert attaching your perl process to ffmpeg's stdout and parsing the percentage that is output there is not what you want? It is of course not pretty and may break with any ffmpeg update but I think this works well for many people doing what you do. Cheers, Robert From danielmadrid19 at gmail.com Sat May 18 11:08:30 2013 From: danielmadrid19 at gmail.com (=?ISO-8859-1?Q?Daniel_Carrasco_Mar=EDn?=) Date: Sat, 18 May 2013 11:08:30 +0200 Subject: [FFmpeg-user] ffmpeg audio resample filter. Message-ID: Hi friends, I've found this command line to get higher quality conversion between samplerates and i want to know if someone can help me to understand how works and what is every option: -af aresample=osr=44100:filter_size=256:cutoff=1 I've tried to found some about filter_size in google and i've not found any interesting thing... I've found that -cutoff is for set bandwidth of audio but i always know that, i want to know how works: for example, what happen if i change cutoff=1 to cutoff=0.7 or cutoff=1.5, and how it affects to final audio quality. I want the same with filter_size, what happen if i change it to 200 or 300, and what osr mean in this command line?. Thanks in advance, im sorry for my english, and if somewone knows a good guide of audio conversions, would be nice to tell me where i can found it ;). From krueger at lesspain.de Sat May 18 15:44:58 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 15:44:58 +0200 Subject: [FFmpeg-user] Status of two prores decoders/encoders In-Reply-To: References: Message-ID: On Fri, May 17, 2013 at 12:05 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > is there a place where I can find out why there are > > two prores decoders (both LGPL) and two encoders > > (also both LGPL) > > http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > http://en.wikipedia.org/wiki/Not_invented_here > > > and what the pros and cons of each are? > > The "Anatoliy" encoder is faster. > > > I am asking because it is hard to decide which one to > > choose if one wanted to sponsor development of a > > certain feature (e.g. support for alpha). > > Please choose proresdec2.c and proresenc_anatoliy.c, > everything else makes Michael's work harder. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > I guess the situation has just changed a bit with commit cebdedca57d95834a8f8098c7b6a322a1163e26b adding alpha decoding support to proresdec_lgpl.c . Of course having alpha decoding support is a good thing but if this is not the code that is actively developed by ffmpeg devs, it adds to the duplication. I feel it may be a tricky subject but is there any _technical_ reason not to merge the two flavours of of prores code? From krueger at lesspain.de Sat May 18 15:52:34 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 15:52:34 +0200 Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha Message-ID: Hi, I just tested the new alpha support for prores_lgpl and it appears to work but funnily the pixfmt is not detected correctly (see command line output below). The two things in the output that caught my attention were: Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 40697 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc should be fmt:yuva444p10le and then Input stream #0:0 frame changed from size:1920x1080 fmt:yuv444p10le to size:1920x1080 fmt:yuva444p10le full command line and output: ffmpeg -vcodec prores_lgpl -i ~/samples/software/fcp_7/prores/fcp7_prores_hq444_1080_25p_1f_transparent_bg.mov -vframes 1 -pix_fmt rgba ~/tmp/prores4444-framedump-kostya-rgba.png ffmpeg version N-53244-ge1efacf Copyright (c) 2000-2013 the FFmpeg developers built on May 18 2013 15:34:19 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 10.101 / 55. 10.101 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 68.101 / 3. 68.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/krueger/samples/software/fcp_7/prores/fcp7_prores_hq444_1080_25p_1f_transparent_bg.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-05-07 13:52:34 Duration: 00:00:00.04, start: 0.000000, bitrate: 43467 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 40697 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2013-05-07 13:52:34 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2013-05-07 13:52:34 handler_name : Apple Alias-Datensteuerung Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2013-05-07 13:52:34 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Output #0, image2, to '/Users/krueger/tmp/prores4444-framedump-kostya-rgba.png': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.7.100 Stream #0:0(eng): Video: png, rgba, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2013-05-07 13:52:34 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Stream mapping: Stream #0:0 -> #0:0 (prores_lgpl -> png) Press [q] to stop, [?] for help Input stream #0:0 frame changed from size:1920x1080 fmt:yuv444p10le to size:1920x1080 fmt:yuva444p10le frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A video:64kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.033497% Is this a bug or me not understanding the internal workings well enough? Cheers, Robert From cehoyos at ag.or.at Sat May 18 16:04:24 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 14:04:24 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha References: Message-ID: Robert Kr?ger lesspain.de> writes: > I just tested the new alpha support for prores_lgpl > and it appears to work but funnily the pixfmt is not > detected correctly (see command line output below). I am working on this (but not finished yet). Carl Eugen From cehoyos at ag.or.at Sat May 18 16:05:25 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 14:05:25 +0000 (UTC) Subject: [FFmpeg-user] Status of two prores decoders/encoders References: Message-ID: Robert Kr?ger lesspain.de> writes: > I feel it may be a tricky subject but is there > any _technical_ reason not to merge the two > flavours of of prores code? The only reason is that you haven't sent a patch yet. Carl Eugen From andreas.gumm at gmx.de Sat May 18 17:14:55 2013 From: andreas.gumm at gmx.de (Andreas Gumm) Date: Sat, 18 May 2013 17:14:55 +0200 Subject: [FFmpeg-user] XYZ color space -> YUV/RGB conversion possible? In-Reply-To: References: Message-ID: <51979AEF.5030908@gmx.de> 'Hello' to the list, and sorry for taking your time & attention. :) Short question, is it possible to do a color space conversion from Cie XYZ to RGB or YUV color space? I was not able to find any command in FFMPEG help. Was it been implemented already? Thanks in advance for answering on that Andreas From phil_rhodes at rocketmail.com Sat May 18 17:31:01 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 18 May 2013 08:31:01 -0700 (PDT) Subject: [FFmpeg-user] Status of two prores decoders/encoders In-Reply-To: References: Message-ID: <1368891061.53470.YahooMailNeo@web121105.mail.ne1.yahoo.com> >> I feel it may be a tricky subject but is there >> any _technical_ reason not to merge the two >> flavours of of prores code? > The only reason is that you haven't sent a patch yet. Aaaand... neither have you. P From krueger at lesspain.de Sat May 18 17:39:36 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 17:39:36 +0200 Subject: [FFmpeg-user] Status of two prores decoders/encoders In-Reply-To: References: Message-ID: On Sat, May 18, 2013 at 4:05 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > I feel it may be a tricky subject but is there > > any _technical_ reason not to merge the two > > flavours of of prores code? > > The only reason is that you haven't sent a patch yet. > > thanks for the constructive answer! From krueger at lesspain.de Sat May 18 17:40:29 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 17:40:29 +0200 Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha In-Reply-To: References: Message-ID: On Sat, May 18, 2013 at 4:04 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > I just tested the new alpha support for prores_lgpl > > and it appears to work but funnily the pixfmt is not > > detected correctly (see command line output below). > > I am working on this (but not finished yet). > > great, thanks for the info! From cehoyos at ag.or.at Sat May 18 18:06:48 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 16:06:48 +0000 (UTC) Subject: [FFmpeg-user] XYZ color space -> YUV/RGB conversion possible? References: <51979AEF.5030908@gmx.de> Message-ID: Andreas Gumm gmx.de> writes: > Short question, is it possible to do a color > space conversion from Cie XYZ to RGB or YUV > color space? Yes / command line and complete, uncut console output missing. Please do not hijack threads, Carl Eugen From cehoyos at ag.or.at Sat May 18 18:07:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 16:07:50 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha References: Message-ID: Robert Kr?ger lesspain.de> writes: > I just tested the new alpha support for prores_lgpl > and it appears to work but funnily the pixfmt is not > detected correctly (see command line output below). Should be fixed, tests are very welcome! Carl Eugen From andreas.gumm at gmx.de Sat May 18 18:27:28 2013 From: andreas.gumm at gmx.de (Andreas Gumm) Date: Sat, 18 May 2013 18:27:28 +0200 Subject: [FFmpeg-user] XYZ color space -> YUV/RGB conversion possible? In-Reply-To: References: <51979AEF.5030908@gmx.de> Message-ID: <5197ABF0.4020603@gmx.de> What I did wrong? I have thought that asking for help about undocumented features is possible here. Why not? In this reason I still would think that I'm far away from hijacking threads when doing something. Due to the lack of finding the right command for XYZ color conversion I have no console output. Thanks for understanding my point Andreas Andreas Gumm gmx.de > writes: > Short question, is it possible to do a color > space conversion from Cie XYZ to RGB or YUV > color space? Yes / command line and complete, uncut console output missing. Please do not hijack threads, Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From krueger at lesspain.de Sat May 18 18:37:53 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 18:37:53 +0200 Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha In-Reply-To: References: Message-ID: On Sat, May 18, 2013 at 6:07 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > I just tested the new alpha support for prores_lgpl > > and it appears to work but funnily the pixfmt is not > > detected correctly (see command line output below). > > Should be fixed, tests are very welcome! > > Great, thank you! I repeated the test described above and now results are as expected. Output about the stream is now Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuva444p10le, 1920x1080, 40697 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc and the resulting png has the transparency where it is in the original video. Robert From cehoyos at ag.or.at Sat May 18 18:54:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 16:54:02 +0000 (UTC) Subject: [FFmpeg-user] XYZ color space -> YUV/RGB conversion possible? References: <51979AEF.5030908@gmx.de> <5197ABF0.4020603@gmx.de> Message-ID: Andreas Gumm gmx.de> writes: > In this reason I still would think that I'm far away > from hijacking threads when doing something. http://thread.gmane.org/gmane.comp.video.ffmpeg.user/45824/focus=45827 > Due to the lack of finding the right command for XYZ > color conversion I have no console output. $ ffmpeg -i input -qscale 2 out.avi $ ffmpeg -i input out%4d.png Please do not top-post here, it is (also) considered rude. Carl Eugen From cehoyos at ag.or.at Sat May 18 18:54:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 16:54:40 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha References: Message-ID: Robert Kr?ger lesspain.de> writes: > I repeated the test described above But you did test the default decoder this time? Carl Eugen From andreas.gumm at googlemail.com Sat May 18 18:58:05 2013 From: andreas.gumm at googlemail.com (Andreas Gumm) Date: Sat, 18 May 2013 18:58:05 +0200 Subject: [FFmpeg-user] XYZ color space -> YUV/RGB conversion possible? In-Reply-To: References: <51979AEF.5030908@gmx.de> <5197ABF0.4020603@gmx.de> Message-ID: <5197B31D.8060105@googlemail.com> Ooops, sorry! Now I got it! I was not aware that changing the subject will not create a new thread. Sorry again & thank you for your help. Andreas Am 18.05.2013 18:54, schrieb Carl Eugen Hoyos: > Andreas Gumm gmx.de> writes: > >> In this reason I still would think that I'm far away >> from hijacking threads when doing something. > http://thread.gmane.org/gmane.comp.video.ffmpeg.user/45824/focus=45827 > >> Due to the lack of finding the right command for XYZ >> color conversion I have no console output. > $ ffmpeg -i input -qscale 2 out.avi > $ ffmpeg -i input out%4d.png > > Please do not top-post here, it is (also) considered > rude. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From timothygu99 at gmail.com Sat May 18 19:17:57 2013 From: timothygu99 at gmail.com (Timothy Gu) Date: Sat, 18 May 2013 10:17:57 -0700 Subject: [FFmpeg-user] ffmpeg audio resample filter. In-Reply-To: References: Message-ID: On May 18, 2013 2:09 AM, "Daniel Carrasco Mar?n" wrote: > > Hi friends, > > I've found this command line to get higher quality conversion between > samplerates and i want to know if someone can help me to understand how > works and what is every option: > > -af aresample=osr=44100:filter_size=256:cutoff=1 > > I've tried to found some about filter_size in google and i've not found any > interesting thing... I've found that -cutoff is for set bandwidth of audio > but i always know that, i want to know how works: for example, what happen > if i change cutoff=1 to cutoff=0.7 or cutoff=1.5, and how it affects to > final audio quality. I want the same with filter_size, what happen if i > change it to 200 or 300, and what osr mean in this command line?. Did you read the documentation? http://ffmpeg.org/ffmpeg-filters.html#aresample-1 for the filter and http://ffmpeg.org/ffmpeg-resampler.html for the options meaning. Timothy G. From danielmadrid19 at gmail.com Sat May 18 19:30:00 2013 From: danielmadrid19 at gmail.com (=?ISO-8859-1?Q?Daniel_Carrasco_Mar=EDn?=) Date: Sat, 18 May 2013 19:30:00 +0200 Subject: [FFmpeg-user] ffmpeg audio resample filter. In-Reply-To: References: Message-ID: Thanks for reply, I've read the first link, but the second link is what i want ;). Thanks!! 2013/5/18 Timothy Gu > On May 18, 2013 2:09 AM, "Daniel Carrasco Mar?n" > > wrote: > > > > Hi friends, > > > > I've found this command line to get higher quality conversion between > > samplerates and i want to know if someone can help me to understand how > > works and what is every option: > > > > -af aresample=osr=44100:filter_size=256:cutoff=1 > > > > I've tried to found some about filter_size in google and i've not found > any > > interesting thing... I've found that -cutoff is for set bandwidth of > audio > > but i always know that, i want to know how works: for example, what > happen > > if i change cutoff=1 to cutoff=0.7 or cutoff=1.5, and how it affects to > > final audio quality. I want the same with filter_size, what happen if i > > change it to 200 or 300, and what osr mean in this command line?. > > Did you read the documentation? > > http://ffmpeg.org/ffmpeg-filters.html#aresample-1 > > for the filter and > > http://ffmpeg.org/ffmpeg-resampler.html > > for the options meaning. > > Timothy G. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From krueger at lesspain.de Sat May 18 19:47:29 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 18 May 2013 19:47:29 +0200 Subject: [FFmpeg-user] ffmpeg does not display correct pixfmt for prores 4444 with alpha In-Reply-To: References: Message-ID: On Sat, May 18, 2013 at 6:54 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > > I repeated the test described above > > But you did test the default decoder this time? > > no, because I had not looked at the code in your patch but now I did and it works as well :-). From compuvision.sr at gmail.com Sat May 18 22:37:12 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Sat, 18 May 2013 17:37:12 -0300 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: > attaching your perl process to ffmpeg's stdout and parsing the percentagethat is output there is not what you want? It is of course not > pretty and may break with any ffmpeg update but I think this works well for many > people doing what you do. Thx Robert, I will try that. Well ffmpeg suites my wishes at the moment, so no reason for updating for the coming years.... ;) Greets, Albert From h.reindl at thelounge.net Sat May 18 22:50:41 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 18 May 2013 22:50:41 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: <5197E9A1.8000104@thelounge.net> Am 18.05.2013 22:37, schrieb Albert Scholtalbers: > I will try that. Well ffmpeg suites my wishes at the moment, so no reason > for updating for the coming years.... ;) you are aware that security relevant bugfixes are happening very often for video related software? we write the year 2013 the times of "i do not update for years" are long gone -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From compuvision.sr at gmail.com Sat May 18 23:18:32 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Sat, 18 May 2013 18:18:32 -0300 Subject: [FFmpeg-user] How to determine progression In-Reply-To: <5197E9A1.8000104@thelounge.net> References: <5197E9A1.8000104@thelounge.net> Message-ID: > you are aware that security relevant bugfixes arehappening very often for video related software? > we write the year 2013 > the times of "i do not update for years" are long gone I mean I do upgrade the OS (Ubuntu) regular. I was talking about the ffmpeg application itself From h.reindl at thelounge.net Sat May 18 23:21:23 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 18 May 2013 23:21:23 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: <5197E9A1.8000104@thelounge.net> Message-ID: <5197F0D3.7040104@thelounge.net> Am 18.05.2013 23:18, schrieb Albert Scholtalbers: >> you are aware that security relevant bugfixes arehappening very often for > video related software? >> we write the year 2013 >> the times of "i do not update for years" are long gone > > I mean I do upgrade the OS (Ubuntu) regular. I was talking about the ffmpeg > application itself obviously you have no plan or how do you imagine a ffmpeg binary linked against a tons of libraries will work without upgrade itself after a dist-upgrade? hint: it can't can you can not link *all* static and even if you could you should not becasue these libraries may get security updates too and mostly will -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Sat May 18 23:24:23 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 18 May 2013 23:24:23 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: <5197F0D3.7040104@thelounge.net> References: <5197E9A1.8000104@thelounge.net> <5197F0D3.7040104@thelounge.net> Message-ID: <5197F187.2060500@thelounge.net> Am 18.05.2013 23:21, schrieb Reindl Harald: > > > Am 18.05.2013 23:18, schrieb Albert Scholtalbers: >>> you are aware that security relevant bugfixes arehappening very often for >> video related software? >>> we write the year 2013 >>> the times of "i do not update for years" are long gone >> >> I mean I do upgrade the OS (Ubuntu) regular. I was talking about the ffmpeg >> application itself > > obviously you have no plan or how do you imagine a ffmpeg binary > linked against a tons of libraries will work without upgrade itself > after a dist-upgrade? "i was talking about the ffmpeg application itself" is also naive not to say dumb http://www.ffmpeg.org/ - Several security fixes Fixes:CVE-2012-2772, CVE-2012-2774, CVE-2012-2775, CVE-2012-2776, CVE-2012-2777, CVE-2012-2779, CVE-2012-2782, CVE-2012-2783, CVE-2012-2784, CVE-2012-2785, CVE-2012-2786, CVE-2012-2787, CVE-2012-2788, CVE-2012-2789, CVE-2012-2790, CVE-2012-2791, CVE-2012-2792, CVE-2012-2793, CVE-2012-2794, CVE-2012-2795, CVE-2012-2796, CVE-2012-2797, CVE-2012-2798, CVE-2012-2799, CVE-2012-2800, Fixes: CVE-2012-0853, CVE-2012-0858, CVE-2011-3929, CVE-2011-3936, CVE-2011-3937, CVE-2011-3940, CVE-2011-3945, CVE-2011-3947 CVE-2012-2801, CVE-2012-2802, CVE-2012-2803, CVE-2012-2804, Several security issues that dont have CVE numbers. Fixes: CVE-2011-3929, CVE-2011-3934, CVE-2011-3935, CVE-2011-3936, CVE-2011-3937, CVE-2011-3940, CVE-2011-3941, CVE-2011-3944, CVE-2011-3945, CVE-2011-3946, CVE-2011-3947, CVE-2011-3949, CVE-2011-3950, CVE-2011-3951, CVE-2011-3952 We have made 4 new point releases, (0.5.7, 0.6.4, 0.7.9 and 0.8.8). They contain some bug fixes, minor changes and security fixes. Note, CVE-2011-4352, CVE-2011-4579, CVE-2011-4353, CVE-2011-4351, CVE-2011-4364 We have made 2 new point releases (0.7.8 and 0.8.7) that fix many bugs, several of which are security relevant please consider 0.7.7 which is ABI compatible and contains a huge number of security fixes that are missing in 0.6.*. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From andreas.gumm at googlemail.com Sat May 18 18:24:00 2013 From: andreas.gumm at googlemail.com (Andreas Gumm) Date: Sat, 18 May 2013 18:24:00 +0200 Subject: [FFmpeg-user] XYZ color space -> YUV/RGB conversion possible? In-Reply-To: References: <51979AEF.5030908@gmx.de> Message-ID: What I did wrong? I have thought that asking for help about undocumented features is possible here. Why not? In this reason I still would think that I'm far away from hijacking threads when doing something. Due to the lack of finding the right command for XYZ color conversion I have no console output. Thanks for understanding my point Andreas Andreas Gumm gmx.de> writes: > Short question, is it possible to do a color > space conversion from Cie XYZ to RGB or YUV > color space? Yes / command line and complete, uncut console output missing. Please do not hijack threads, Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sat May 18 23:58:15 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 21:58:15 +0000 (UTC) Subject: [FFmpeg-user] How to determine progression References: <5197E9A1.8000104@thelounge.net> <5197F0D3.7040104@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > a ffmpeg binary linked against a tons of libraries You mean libc ? FFmpeg typically does not need any external libraries except zlib (which you can link statically if you want). (Your argument that it may make sense to regularly update is of course valid depending on the use case.) Carl Eugen From h.reindl at thelounge.net Sun May 19 00:06:57 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 19 May 2013 00:06:57 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: <5197E9A1.8000104@thelounge.net> <5197F0D3.7040104@thelounge.net> Message-ID: <5197FB81.9050505@thelounge.net> Am 18.05.2013 23:58, schrieb Carl Eugen Hoyos: > Reindl Harald thelounge.net> writes: > >> a ffmpeg binary linked against a tons of libraries > > You mean libc ? > FFmpeg typically does not need any external libraries > except zlib (which you can link statically if you want). * it can H264 without x264? * it can WEBM without libvpx? * it can ogv/ogg without libogg/libvorbis/libtheora? * it can MP3 without libmplame? * it can FAAC without libfaac? in which ffmpeg version are all this codecs directly included which is unknown for me? and no, for most cases ffmpeg without at least H264/OGG/WEBM support is completly useless > (Your argument that it may make sense to regularly > update is of course valid depending on the use case) i know no usecase where security does not matter i only know cases where people learned the hard way that they where wrong -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Sun May 19 00:32:13 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 18 May 2013 22:32:13 +0000 (UTC) Subject: [FFmpeg-user] How to determine progression References: <5197E9A1.8000104@thelounge.net> <5197F0D3.7040104@thelounge.net> <5197FB81.9050505@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > * it can ogv/ogg without libogg/libvorbis/libtheora? Yes;-) And you will have a very hard time trying to link FFmpeg against libogg ;-)) > > (Your argument that it may make sense to regularly > > update is of course valid depending on the use case) > > i know no usecase where security does not matter All use cases where you provide the source files yourself... Carl Eugen From h.reindl at thelounge.net Sun May 19 00:57:13 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 19 May 2013 00:57:13 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: <5197E9A1.8000104@thelounge.net> <5197F0D3.7040104@thelounge.net> <5197FB81.9050505@thelounge.net> Message-ID: <51980749.4020209@thelounge.net> Am 19.05.2013 00:32, schrieb Carl Eugen Hoyos: > Reindl Harald thelounge.net> writes: > >> * it can ogv/ogg without libogg/libvorbis/libtheora? > > Yes;-) and the other much more important formats? > And you will have a very hard time trying to link > FFmpeg against libogg ;-)) not directly but it's loaded as ldd shows below however, the most important format is H264 with AAC audio [harry at srv-rhsoft:~]$ ldd /usr/local/bin/ffmpeg linux-vdso.so.1 => (0x00007fffeadfe000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5ac4104000) libxvidcore.so.4 => /lib64/libxvidcore.so.4 (0x00007f5ac3ded000) libvpx.so.1 => /lib64/libvpx.so.1 (0x00007f5ac3b4b000) libvorbisenc.so.2 => /lib64/libvorbisenc.so.2 (0x00007f5ac367c000) libvorbis.so.0 => /lib64/libvorbis.so.0 (0x00007f5ac344f000) libtheoraenc.so.1 => /lib64/libtheoraenc.so.1 (0x0000003c82c00000) libtheoradec.so.1 => /lib64/libtheoradec.so.1 (0x0000003c8e400000) libmp3lame.so.0 => /lib64/libmp3lame.so.0 (0x00007f5ac31c1000) libfaac.so.0 => /lib64/libfaac.so.0 (0x00007f5ac2fa7000) libm.so.6 => /lib64/libm.so.6 (0x00007f5ac2ca6000) libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f5ac2a96000) libz.so.1 => /lib64/libz.so.1 (0x00007f5ac287d000) libc.so.6 => /lib64/libc.so.6 (0x00007f5ac24c5000) /lib64/ld-linux-x86-64.so.2 (0x00007f5ac433a000) libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007f5ac22be000) libmp4v2.so.0 => /lib64/libmp4v2.so.0 (0x00007f5ac2008000) libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f5ac1df9000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f5ac1af6000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f5ac18df000) librt.so.1 => /lib64/librt.so.1 (0x00007f5ac16d7000) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From krueger at lesspain.de Sun May 19 10:22:29 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sun, 19 May 2013 10:22:29 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: On Sat, May 18, 2013 at 10:37 PM, Albert Scholtalbers < compuvision.sr at gmail.com> wrote: > > attaching your perl process to ffmpeg's stdout and parsing the > percentagethat is output there is not what you want? It is of course not > > pretty and may break with any ffmpeg update but I think this works well > for many > > people doing what you do. > > Thx Robert, > > I will try that. Well ffmpeg suites my wishes at the moment, so no reason > for updating for the coming years.... ;) > > Changes in the command line output that broke such a parsing algorithm have been very infrequent in the past and should lead to easy-to-catch errors in your application. so as long as you test your application after an ffmpeg update, you should be fine. I know of a few applications using that approach which have been running for years *and* updated ffmpeg regularly without this becoming a problem. From forumwt at gmail.com Sun May 19 17:09:40 2013 From: forumwt at gmail.com (Dragan) Date: Sun, 19 May 2013 08:09:40 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg problem with creating thumbnail Message-ID: <1368976180158-4659218.post@n4.nabble.com> I have a tube site and im using this function to generate thumbs from video file $thumbwidth = 240; //thumb width $thumbheight = 180; //thumb height $imagick_command = "-modulate 110,102,100 -sharpen 1x1 -enhance"; shell_exec("$ffmpeg_path -ss $first -i \"".$row[file]."\" -vcodec mjpeg -vframes 1 -an -f rawvideo -s ".$thumbwidth."x".$thumbheight." \"$image\""); shell_exec("/usr/local/bin/mogrify $imagick_command $image"); Here is thumbs result, this image is just what i need, no border and etc.. but sometimes *depending on video size* i have thumbs like this Whats the best way to remove this *black space* from thumbs, but need to keep thumb size 240x180 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-problem-with-creating-thumbnail-tp4659218.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Sun May 19 20:46:30 2013 From: lou at lrcd.com (Lou) Date: Sun, 19 May 2013 10:46:30 -0800 Subject: [FFmpeg-user] ffmpeg problem with creating thumbnail In-Reply-To: <1368976180158-4659218.post@n4.nabble.com> References: <1368976180158-4659218.post@n4.nabble.com> Message-ID: <1368989190.30080.140661233009669.02D971F0@webmail.messagingengine.com> On Sun, May 19, 2013, at 07:09 AM, Dragan wrote: > I have a tube site and im using this function to generate thumbs from > video > file > > $thumbwidth = 240; //thumb width > $thumbheight = 180; //thumb height > > $imagick_command = "-modulate 110,102,100 -sharpen 1x1 -enhance"; Experiment with ffmpeg filters (curves, hue, unsharp, hqdn3d/owdenise/dctdnoiz [I'm not sure which would denoise filter be best for stills]) instead of the additional usage of mogrify. Then you can do everything in one command. https://ffmpeg.org/ffmpeg-filters.html > shell_exec("$ffmpeg_path -ss $first -i \"".$row[file]."\" -vcodec mjpeg > -vframes 1 -an -f rawvideo -s ".$thumbwidth."x".$thumbheight." > \"$image\""); Please show a normal, unscripted ffmpeg command and the complete ffmpeg console output. From lian00jian at 163.com Mon May 20 07:01:46 2013 From: lian00jian at 163.com (lian88jian) Date: Sun, 19 May 2013 22:01:46 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg multiple output question Message-ID: <1369026106004-4659220.post@n4.nabble.com> hello, I'm using ffmpeg with following command: ffmpeg -threads 2 -y -i rtsp://192.168.22.10:8086 -f flv xx.flv -f rtp -an rtp://127.0.0.1:9999>xx.sdp the second output does not work.I test it by ( ffplay xx.sdp ?, it print error "xx.sdp: Invalid data found when processing input" is there any mistake with the command? if i use ffmpeg -y -i rtsp:192.168.22.10:8086 -f rtp -an rtp://127.0.0.1:9999>xx.sdp only one output, then ffplay this file(xx.sdp). it can work. please help me,thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-multiple-output-question-tp4659220.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From T.Xu at abus-sc.com Mon May 20 10:15:42 2013 From: T.Xu at abus-sc.com (Xu, Tim) Date: Mon, 20 May 2013 10:15:42 +0200 Subject: [FFmpeg-user] play RTSP steam in web browser Message-ID: Dear folks, We have an IPCamera, output H.264 RTSP streaming, I?d like to decode and display its? stream in different web browsers, The vendor provides us an ActiveX control, which can do the job only in IE browser. I can use ffplay to decode the stream perfectly. the questions is how can I build a plugin for other web browsers, such as Firefox and Chrome based on ffmpeg? Mit freundlichen Gr??en / With kind regards Tim Xu ABUS Security-Center Corp. T: +86 21 3175 0525 M: +86 138 1615 8613 E-Mail: t.xu at abus-sc.com http://www.asct.com.tw [cid:image001.png at 01CE5575.05667B60] ________________________________ Managing Director: Kevin Juan ABUS Security-Center Corp 4F No.49 Wu-Gong 6th Rd. Wu-Gu industrial park, Taipei County 248 Taiwan(R.O.C) VAT No.28092563 This e-mail is confidential and may also be legally privileged. If you are not the intended recipient or have received this message in error, please notify the sender immediately and delete this message and any attachments. Any unauthorized copying, disclosure or circulation of the message or the contents of this message ist strictly prohibited. -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 7040 bytes Desc: image001.png URL: From lian00jian at 163.com Mon May 20 10:49:11 2013 From: lian00jian at 163.com (lian88jian) Date: Mon, 20 May 2013 01:49:11 -0700 (PDT) Subject: [FFmpeg-user] play RTSP steam in web browser In-Reply-To: References: Message-ID: <1369039751427-4659222.post@n4.nabble.com> i think you can try this... http://www.activexffmpeg.com/ -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/play-RTSP-steam-in-web-browser-tp4659221p4659222.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From andrey.krieger.utkin at gmail.com Mon May 20 16:09:46 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Mon, 20 May 2013 17:09:46 +0300 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: I had a hope to read that now ffmpeg has some alternative, machine-readable ffmpeg output format like ffprobe has got :( -- Andrey Utkin From petervdh at gmail.com Mon May 20 16:10:46 2013 From: petervdh at gmail.com (Peter van Houten) Date: Mon, 20 May 2013 16:10:46 +0200 Subject: [FFmpeg-user] play RTSP steam in web browser In-Reply-To: References: Message-ID: <519A2EE6.5000107@gmail.com> On the 20/05/13 10:15, Xu, Tim wrote the following: > Dear folks, > > We have an IPCamera, output H.264 RTSP streaming, I?d like to decode and display its? stream in different web browsers, > The vendor provides us an ActiveX control, which can do the job only in IE browser. I can use ffplay to decode the stream perfectly. > the questions is how can I build a plugin for other web browsers, such as Firefox and Chrome based on ffmpeg? > > Mit freundlichen Gr??en / With kind regards > Tim Xu > ABUS Security-Center Corp. > T: +86 21 3175 0525 > M: +86 138 1615 8613 > E-Mail: t.xu at abus-sc.com > http://www.asct.com.tw > Try VLC, Bla Bla Webcam

Webcam


From fibarra at atnova.com Mon May 20 16:18:56 2013 From: fibarra at atnova.com (fibarra) Date: Mon, 20 May 2013 07:18:56 -0700 (PDT) Subject: [FFmpeg-user] Cutting at key frames with H.264 and FFmpeg Message-ID: <1369059536897-4659225.post@n4.nabble.com> I have videos generated with Flash Media Encoder and the VP6 codec. I'm able to edit these videos manipulating their tags with .NET, but I can only cut between key frames. I want a more precise manipulation, so, I'm looking into ffmpeg. It seems that I have only two codecs for FLV: Sorenson (which has a very low quality), and H.264. I'm trying with the H.264 codec, but something seems to be wrong with the re-encoded video and its key frames. ffprobe gives me different key frames than my .NET application, and when I try to cut using these frames without re-encoding, the image stays frozen from the begining to the next key frame. My conversi?n command: ffmpeg -i imput.flv -acodec mp3 -b:a 22k -vcodec libx264 -b:v 448k \ -r 12 -force_key_frames expr:gte(t,n_forced*5) -f flv output.flv -y My cut command: ffmpeg -i output.flv -ss 00:00:06.250 -t 00:00:10.00 -acodec copy -vcodec copy result.flv -y My ffprobe command: ffprobe -show_frames -select_streams v -print_format json=c=1 output.flv Part of the ffprobe result: { "media_type": "video", "key_frame": 0, "pkt_pts": 6250, "pkt_pts_time" : "6.250000", "pkt_dts": 6250, "pkt_dts_time": "6.250000", "pkt_duration": 83, " pkt_duration_time": "0.083000", "pkt_pos": "156571", "pkt_size": "5407", "width" : 684, "height": 512, "pix_fmt": "yuv420p", "pict_type": "P", "coded_picture_num ber": 42, "display_picture_number": 0, "interlaced_frame": 0, "top_field_first": 0, "repeat_pict": 0 }, { "media_type": "video", "key_frame": 1, "pkt_pts": 6333, "pkt_pts_time" : "6.333000", "pkt_dts": 6333, "pkt_dts_time": "6.333000", "pkt_duration": 83, " pkt_duration_time": "0.083000", "pkt_pos": "169303", "pkt_size": "89000", "width ": 684, "height": 512, "pix_fmt": "yuv420p", "pict_type": "I", "coded_picture_nu mber": 46, "display_picture_number": 0, "interlaced_frame": 0, "top_field_first" : 0, "repeat_pict": 0 } Am I missing something? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Cutting-at-key-frames-with-H-264-and-FFmpeg-tp4659225.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From anilj.mailing at gmail.com Mon May 20 19:57:57 2013 From: anilj.mailing at gmail.com (Anil J) Date: Mon, 20 May 2013 13:57:57 -0400 Subject: [FFmpeg-user] Processing of HTTP Progressively downloaded videos. Message-ID: Hi, In HTTP progressive download of video (youtube case) how can we achieve transcoding? I understand that progressive download clients rarely download on GOP boundaries, and most clients download data as incremental chunks; not all video payload in HTTP responses will begin with an IDR frames. If we have to adapt the video which progressively downloaded, what are the techniques currently being used? One approach I am thinking is to buffer the video chunks good enough to slice off the video stream at GOP boundaries so that every chunk starts with an I-Frame, and every chunk is independently decodable. After this, process/transcode as required. Will this approach work, or is there any different approach to deal with this scenario? What are the experiences? Thanks, /anil. From compuvision.sr at gmail.com Mon May 20 22:35:09 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Mon, 20 May 2013 17:35:09 -0300 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: Hi Robert, This is my output: frame= 1135 fps= 21 q=23.0 size= 11687kB time=00:00:37.80 bitrate=2532.5kbits/s No percentage there.... Does this depend on the version? >attaching your perl process to ffmpeg's stdout and parsing the percentage >that is output there is not what you want? It is of course not pretty and >may break with any ffmpeg update but I think this works well for many >people doing what you do. From tru083 at yahoo.com Tue May 21 01:39:43 2013 From: tru083 at yahoo.com (D D) Date: Mon, 20 May 2013 16:39:43 -0700 (PDT) Subject: [FFmpeg-user] Guidelines for streaming a live screen capture? Message-ID: <1369093183.42720.YahooMailNeo@web120704.mail.ne1.yahoo.com> Hi, I would like to stream a live screen capture to ffserver. ?The basic requirements are: ? ? - Lossless codec (or minimal loss) ? ? - High compression - very little bandwidth if no screen changes are occurring ? ? - No buffering (or limited buffering) at the client, in case the server connection is too slow Do you have any recommendations for which options should be used in the ffmpeg capture to satisfy these requirements? Also, is ffserver a good choice for distributing live screen captures? Thanks! David From cehoyos at ag.or.at Tue May 21 01:54:35 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 20 May 2013 23:54:35 +0000 (UTC) Subject: [FFmpeg-user] Guidelines for streaming a live screen capture? References: <1369093183.42720.YahooMailNeo@web120704.mail.ne1.yahoo.com> Message-ID: D D yahoo.com> writes: > ? ? - Lossless codec (or minimal loss) Afaict, these are two completely different things. Carl Eugen From T.Xu at abus-sc.com Tue May 21 05:19:00 2013 From: T.Xu at abus-sc.com (Xu, Tim) Date: Tue, 21 May 2013 05:19:00 +0200 Subject: [FFmpeg-user] =?utf-8?b?562U5aSNOiAgcGxheSBSVFNQIHN0ZWFtIGluIHdl?= =?utf-8?q?b_browser?= In-Reply-To: <519A2EE6.5000107@gmail.com> References: <519A2EE6.5000107@gmail.com> Message-ID: The problem is we can't guarantee that all customers have VLC installed -----????----- ???: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] ?? Peter van Houten ????: 2013?5?20? 22:11 ???: FFmpeg user questions ??: Re: [FFmpeg-user] play RTSP steam in web browser On the 20/05/13 10:15, Xu, Tim wrote the following: > Dear folks, > > We have an IPCamera, output H.264 RTSP streaming, I?d like to decode > and display its? stream in different web browsers, The vendor provides us an ActiveX control, which can do the job only in IE browser. I can use ffplay to decode the stream perfectly. > the questions is how can I build a plugin for other web browsers, such as Firefox and Chrome based on ffmpeg? > > Mit freundlichen Gr??en / With kind regards Tim Xu ABUS > Security-Center Corp. > T: +86 21 3175 0525 > M: +86 138 1615 8613 > E-Mail: t.xu at abus-sc.com > http://www.asct.com.tw > Try VLC, Bla Bla Webcam

Webcam


_______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Managing Director: Kevin Juan ABUS Security-Center Corp 4F No.49 Wu-Gong 6th Rd. Wu-Gu industrial park, Taipei County 248 Taiwan(R.O.C) VAT No.28092563 This e-mail is confidential and may also be legally privileged. If you are not the intended recipient or have received this message in error, please notify the sender immediately and delete this message and any attachments. Any unauthorized copying, disclosure or circulation of the message or the contents of this message ist strictly prohibited. From petervdh at gmail.com Tue May 21 09:47:08 2013 From: petervdh at gmail.com (Peter van Houten) Date: Tue, 21 May 2013 09:47:08 +0200 Subject: [FFmpeg-user] =?utf-8?b?562U5aSNOiAgcGxheSBSVFNQIHN0ZWFtIGluIHdl?= =?utf-8?q?b_browser?= In-Reply-To: References: <519A2EE6.5000107@gmail.com> Message-ID: <519B267C.6080805@gmail.com> On the 21/05/13 05:19, Xu, Tim wrote the following: > The problem is we can't guarantee that all customers have VLC installed > > -----????----- > ???: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] ?? Peter van Houten > ????: 2013?5?20? 22:11 > ???: FFmpeg user questions > ??: Re: [FFmpeg-user] play RTSP steam in web browser > > On the 20/05/13 10:15, Xu, Tim wrote the following: >> Dear folks, >> >> We have an IPCamera, output H.264 RTSP streaming, I?d like to decode >> and display its? stream in different web browsers, The vendor provides us an ActiveX control, which can do the job only in IE browser. I can use ffplay to decode the stream perfectly. >> the questions is how can I build a plugin for other web browsers, such as Firefox and Chrome based on ffmpeg? >> >> Mit freundlichen Gr??en / With kind regards Tim Xu ABUS >> Security-Center Corp. >> T: +86 21 3175 0525 >> M: +86 138 1615 8613 >> E-Mail: t.xu at abus-sc.com >> http://www.asct.com.tw >> > Try VLC, > > > > > Bla Bla Webcam > > > >
>

Webcam

>
>

> classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" > codebase="http://blabla.webcam.com/execs/vlc" > width="352" > height="288" > id="vlc" > events="true"> > value="rtsp://guest:guest at blabla.webcam.com:554/CH001.sdp"> > > > > > > name="vlc" > > mrl="rtsp://guest:guest at blabla.webcam.com:554/CH001.sdp" > width="352" > height="288" > autoplay="true" > autoloop="false" > showdisplay="true" > > pluginspage="http://blabla.webcam.com/execs/vlc"> > >

>
> > You are going to have to have some form of executable or plugin installed (ffmpeg, flash, quicktime, VLC, etc.) otherwise the stream won't be rendered. If the user doesn't have VLC installed and they click on the object above ("codebase="), VLC will be downloaded from your website and the user will be prompted to download; the plugin will be installed automatically. -- petervdh From gabri.ns at gmail.com Tue May 21 10:14:39 2013 From: gabri.ns at gmail.com (Gabri Shally) Date: Tue, 21 May 2013 15:14:39 +0700 Subject: [FFmpeg-user] play RTSP steam in web browser In-Reply-To: References: Message-ID: On May 20, 2013 3:16 PM, "Xu, Tim" wrote: > > Dear folks, > > We have an IPCamera, output H.264 RTSP streaming, I?d like to decode and display its? stream in different web browsers, > The vendor provides us an ActiveX control, which can do the job only in IE browser. I can use ffplay to decode the stream perfectly. > the questions is how can I build a plugin for other web browsers, such as Firefox and Chrome based on ffmpeg? > isn't it posible to use FFserver to transode on the fly? IPcamera ? FFserver ? client you can set FFserver to transcode the stream into format that supported by HTML5 or Flash Player. i've never done this, so sory i can not help you with how to. From andrey.smorkalov at gmail.com Tue May 21 10:20:27 2013 From: andrey.smorkalov at gmail.com (=?KOI8-R?B?4c7E0sXKIPPNz9LLwczP1w==?=) Date: Tue, 21 May 2013 12:20:27 +0400 Subject: [FFmpeg-user] Problems with videostreaming via ffmpeg Message-ID: Hello! We are integrating video streaming via ffmpeg into the virtual educational world vAcademia and are having difficulties with ffmpeg. Our application works on zero core of the CPU and sometimes uses other cores (typically it?s 10-15%). We set process affinity for the ffmpeg to exclude using of the zero core. We wrote two DirectShow filters for video and audio to give ffmpeg dynamic image and sound from our world. We run ffmpeg with command line like: ffmpeg.exe -y -f dshow -i video="vAcademiaCapture":audio="vAcademiaAudioCapture" -vcodec libx264 -preset medium -tune zerolatency -r 15 -s 318x240 -async 1 -acodec libmp3lame -ab 64k -ar 22050 -maxrate 1550k -rtbufsize 8000k -f flv rtmp://IP/livepkgr/livestream_46276 When CPU has 3 or 4 cores everything works fine. But if the CPU has only two cores video streaming doesn't work. We get black screen in the webplayer and via command line execution of ffmpeg we get errors like "Failed to compensate for timestamp". We checked timestamps: they are correct in both filters. If we disable synchronized audio and video and use ffmpeg with command line like: ffmpeg.exe -y -f dshow -i video="vAcademiaCapture" -f dshow ?i audio="vAcademiaAudioCapture" -vcodec libx264 -preset medium -tune zerolatency -r 15 -s 318x240 -async 1 -acodec libmp3lame -ab 64k -ar 22050 -maxrate 1550k -rtbufsize 8000k -f flv rtmp://IP/livepkgr/livestream_46281 everything is fine even if the CPU has 2 cores. We think that ffmpeg can't normally grab audio and video on only 1 free core. It seems like there is a bug in ffmpeg with synchronized grabbing of video and audio (race condition?). On some laptops with 2 cores CPU video streaming with sound doesn't work even if synchronized video and audio is disabled. We can see the video but there is no sound. We don?t get any errors in ffmpeg console. We are using precompiled ffmpeg from http://ffmpeg.zeranoe.com/builds/ Any ideas? with best regards, Andrey. From andrey.krieger.utkin at gmail.com Tue May 21 11:00:30 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Tue, 21 May 2013 12:00:30 +0300 Subject: [FFmpeg-user] Problems with videostreaming via ffmpeg In-Reply-To: References: Message-ID: > Any ideas? 1. Look suspiciously at your own code. 2. Run correct and problematic cases with -loglevel debug, post it here (but note that local guys don't like pastebin usage). -- Andrey Utkin From mollyrazormillions at gmail.com Tue May 21 12:00:39 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Tue, 21 May 2013 12:00:39 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: Well, redirect the output to a file: ffmpeg -i whatever.mp4 ....... output.mp4 >> '/var/tmp/convert/CONVERTID.log' 2>&1 And whenever you need to get the progress, just read the contents of /var/tmp/convert/CONVERTID.log. Getting the progress is done by parsing the Duration: at the very beginning. Duration: ***00:00:14.67***, start: 0.000000, bitrate: 989 kb/s Get the fps from the video stream: Stream #0:0(und): ***Video***: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x356, 862 kb/s, ***30 fps***, 30 tbr, 30 tbn, 60 tbc frame= ***1135*** fps= 21 q=23.0 size= 11687kB time=00:00:37.80 bitrate=2532.5kbits/s Convert Duration to frames, so you get the total amount of frames the video has and by looking at the latest frame= variable, now you can calculate just fine whats the actual progress... On Mon, May 20, 2013 at 10:35 PM, Albert Scholtalbers < compuvision.sr at gmail.com> wrote: > Hi Robert, > > This is my output: > frame= 1135 fps= 21 q=23.0 size= 11687kB time=00:00:37.80 > bitrate=2532.5kbits/s > > No percentage there.... > Does this depend on the version? > > > >attaching your perl process to ffmpeg's stdout and parsing the percentage > >that is output there is not what you want? It is of course not pretty and > >may break with any ffmpeg update but I think this works well for many > >people doing what you do. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From krueger at lesspain.de Tue May 21 12:49:40 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 21 May 2013 12:49:40 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: On Mon, May 20, 2013 at 10:35 PM, Albert Scholtalbers wrote: > Hi Robert, > > This is my output: > frame= 1135 fps= 21 q=23.0 size= 11687kB time=00:00:37.80 > bitrate=2532.5kbits/s > > No percentage there.... > Does this depend on the version? > If you know the total time you can compute that yourself. That's what I have done in applications that work with the command line but if you do not extract that information you may have a problem here. In all the applications I have been involved with, a metadata extraction step was performed first. To do that via Perl by invoking ffprobe should be trivial. From krueger at lesspain.de Tue May 21 12:51:28 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 21 May 2013 12:51:28 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: On Tue, May 21, 2013 at 12:00 PM, Molly Millions wrote: > Well, redirect the output to a file: > > ffmpeg -i whatever.mp4 ....... output.mp4 >> > '/var/tmp/convert/CONVERTID.log' 2>&1 > > And whenever you need to get the progress, just read the contents of > /var/tmp/convert/CONVERTID.log. > > Getting the progress is done by parsing the Duration: at the very beginning. > > Duration: ***00:00:14.67***, start: 0.000000, bitrate: 989 kb/s You're right. No need to do this in a separate step. From tevans.uk at googlemail.com Tue May 21 18:07:02 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Tue, 21 May 2013 17:07:02 +0100 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: On Tue, May 21, 2013 at 11:00 AM, Molly Millions wrote: > Well, redirect the output to a file: > > ffmpeg -i whatever.mp4 ....... output.mp4 >> > '/var/tmp/convert/CONVERTID.log' 2>&1 > > And whenever you need to get the progress, just read the contents of > /var/tmp/convert/CONVERTID.log. > > Getting the progress is done by parsing the Duration: at the very beginning. > > Duration: ***00:00:14.67***, start: 0.000000, bitrate: 989 kb/s > > Get the fps from the video stream: > Stream #0:0(und): ***Video***: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuv420p, 640x356, 862 kb/s, ***30 fps***, 30 tbr, 30 tbn, 60 > tbc > > frame= ***1135*** fps= 21 q=23.0 size= 11687kB time=00:00:37.80 > bitrate=2532.5kbits/s > > Convert Duration to frames, so you get the total amount of frames the video > has and by looking at the latest frame= variable, now you can calculate > just fine whats the actual progress... > Having done precisely this, there are some helpful hints I can suggest: FFmpeg outputs status lines ending with '\r', so that on the console it overwrites the current line. Most scripting languages have easy ways of reading lines, you can use tr to turn CR into a LF, eg in python: pffmpeg = Popen(self.args, stdout=PIPE, stderr=STDOUT, close_fds=True) ptr = Popen(['tr', '-u', '\\r', '\\n'], stdin=pffmpeg.stdout, stdout=PIPE) Parse and discard lines until you get one which mentions the duration: while True: line = ptr.stdout.readline() if not line: break if not self.duration: match = DURATION_RE.search(line) if match: self.duration = self.__hr_mins_secs_to_secs(match.groupdict()) elif self.debug: print u'ffmpeg pre-duration: %s' % (line,) continue Once you have a duration, parse and discard lines until you get lines with status information: match = FRAME_RE.search(line) if match: data = match.groupdict() frame = int(data['frames']) fps = int(data['fps']) time = self.__hr_mins_secs_to_secs(data) self.update_cache(frame, fps, time) Not shown here is my app storing the cache value in memcached, with a key based upon the assigned task id. This allows me to easily retrieve the status when drawing a web page of it. It also pushes the info out via AMQP/websockets pub/sub every couple of seconds to continually update open web pages, but that is a bit OTT. I did the timing/percentages based off time, not frames, as this doesn't always work if you have variable frame rate input or output. Cheers Tom From tevans.uk at googlemail.com Tue May 21 18:08:22 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Tue, 21 May 2013 17:08:22 +0100 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: On Tue, May 21, 2013 at 5:07 PM, Tom Evans wrote: > Having done precisely this, there are some helpful hints I can suggest: > I meant to include the regular expressions! Quoted to avoid getting wrapped, apologies for the long lines Cheers Tom > DURATION_RE = re.compile(r'Duration: (?P\d+):(?P\d+):(?P\d+)\.(?P\d+),') > FRAME_RE = re.compile(r'frame=\s*(?P\d+)\s+fps=\s*(?P\d+)\s+q=.*\s+size=.*\s+time=\s*(?P\d+):(?P\d+):(?P\d+)\.(?P\d+)') From krueger at lesspain.de Tue May 21 18:45:20 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 21 May 2013 18:45:20 +0200 Subject: [FFmpeg-user] Alpha not working as expected with geq filter Message-ID: Hi, I am trying to generate a test file using nullsrc and the geq filter to obtain an image that has color and alpha channel values defined by equations like so: ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png The generated png file does not contain any transparent pixels as far as I can see and I wonder what I have done wrong. I found trac ticket #2520 which has some similarities but it is marked as fixed. Full command line and output: ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png ffmpeg version N-53322-gb1bbd71 Copyright (c) 2000-2013 the FFmpeg developers built on May 21 2013 16:18:03 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --enable-gpl libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 10.101 / 55. 10.101 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.100 / 55. 1.100 libavfilter 3. 68.101 / 3. 68.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, lavfi, from 'nullsrc=s=256x256:d=0.01': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc [swscaler @ 0x7f9438803e00] No accelerated colorspace conversion found from yuv420p to gbrp. [swscaler @ 0x7f943881dc00] No accelerated colorspace conversion found from yuv420p to gbrp. [swscaler @ 0x7f9438825400] No accelerated colorspace conversion found from yuv420p to gbrp. Output #0, image2, to '/Users/krueger/tmp/generated-sd-alpha.png': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: png, rgba, 256x256 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> png) Press [q] to stop, [?] for help frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A video:145kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.014851% Thanks in advance, Robert From onemda at gmail.com Tue May 21 18:56:57 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 21 May 2013 16:56:57 +0000 Subject: [FFmpeg-user] Alpha not working as expected with geq filter In-Reply-To: References: Message-ID: On 5/21/13, Robert Krueger wrote: > Hi, > > I am trying to generate a test file using nullsrc and the geq filter > to obtain an image that has color and alpha channel values defined by > equations like so: > > ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf > scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' > -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png > > The generated png file does not contain any transparent pixels as far > as I can see and I wonder what I have done wrong. I found trac ticket > #2520 which has some similarities but it is marked as fixed. Full > command line and output: > > ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf > scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' > -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png > ffmpeg version N-53322-gb1bbd71 Copyright (c) 2000-2013 the FFmpeg > developers > built on May 21 2013 16:18:03 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) > configuration: --enable-gpl > libavutil 52. 33.100 / 52. 33.100 > libavcodec 55. 10.101 / 55. 10.101 > libavformat 55. 7.100 / 55. 7.100 > libavdevice 55. 1.100 / 55. 1.100 > libavfilter 3. 68.101 / 3. 68.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, lavfi, from 'nullsrc=s=256x256:d=0.01': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256 Input does not have any alpha, thus alpa can't be changed. > [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc > [swscaler @ 0x7f9438803e00] No accelerated colorspace conversion found > from yuv420p to gbrp. > [swscaler @ 0x7f943881dc00] No accelerated colorspace conversion found > from yuv420p to gbrp. > [swscaler @ 0x7f9438825400] No accelerated colorspace conversion found > from yuv420p to gbrp. > Output #0, image2, to '/Users/krueger/tmp/generated-sd-alpha.png': > Metadata: > encoder : Lavf55.7.100 > Stream #0:0: Video: png, rgba, 256x256 [SAR 1:1 DAR 1:1], q=2-31, > 200 kb/s, 90k tbn, 25 tbc > Stream mapping: > Stream #0:0 -> #0:0 (rawvideo -> png) > Press [q] to stop, [?] for help > frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A > video:145kB audio:0kB subtitle:0 global headers:0kB muxing overhead > -100.014851% > > Thanks in advance, > > Robert > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From krueger at lesspain.de Tue May 21 19:23:16 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 21 May 2013 19:23:16 +0200 Subject: [FFmpeg-user] Alpha not working as expected with geq filter In-Reply-To: References: Message-ID: On Tue, May 21, 2013 at 6:56 PM, Paul B Mahol wrote: > On 5/21/13, Robert Krueger wrote: >> Hi, >> >> I am trying to generate a test file using nullsrc and the geq filter >> to obtain an image that has color and alpha channel values defined by >> equations like so: >> >> ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf >> scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' >> -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png >> >> The generated png file does not contain any transparent pixels as far >> as I can see and I wonder what I have done wrong. I found trac ticket >> #2520 which has some similarities but it is marked as fixed. Full >> command line and output: >> >> ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf >> scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' >> -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png >> ffmpeg version N-53322-gb1bbd71 Copyright (c) 2000-2013 the FFmpeg >> developers >> built on May 21 2013 16:18:03 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) >> configuration: --enable-gpl >> libavutil 52. 33.100 / 52. 33.100 >> libavcodec 55. 10.101 / 55. 10.101 >> libavformat 55. 7.100 / 55. 7.100 >> libavdevice 55. 1.100 / 55. 1.100 >> libavfilter 3. 68.101 / 3. 68.101 >> libswscale 2. 3.100 / 2. 3.100 >> libswresample 0. 17.102 / 0. 17.102 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, lavfi, from 'nullsrc=s=256x256:d=0.01': >> Duration: N/A, start: 0.000000, bitrate: N/A >> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256 > > Input does not have any alpha, thus alpa can't be changed. I saw that but then I thought the geq filter would automatically use a format with alpha if an alpha expression was there, regardless of what was used in the previous member of the filter chain. Then I started looking for a way to force the source to have alpha. I tried - using -pix_fmt rgba as an input option but got an error message telling me that pixel format is an unsupported option - using color=0x80808080 as the source because I hoped setting an alpha value would somehow make it use a pixel format with alpha support So how do I force alpha to be there in the source other than generating a dummy video with alpha and using that as an input (which, of course I can do but I was looking for the more elegant solution first because I thought I must be missing some option to force a pixel format)? From onemda at gmail.com Tue May 21 19:34:29 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 21 May 2013 17:34:29 +0000 Subject: [FFmpeg-user] Alpha not working as expected with geq filter In-Reply-To: References: Message-ID: On 5/21/13, Robert Krueger wrote: > On Tue, May 21, 2013 at 6:56 PM, Paul B Mahol wrote: >> On 5/21/13, Robert Krueger wrote: >>> Hi, >>> >>> I am trying to generate a test file using nullsrc and the geq filter >>> to obtain an image that has color and alpha channel values defined by >>> equations like so: >>> >>> ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf >>> scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' >>> -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png >>> >>> The generated png file does not contain any transparent pixels as far >>> as I can see and I wonder what I have done wrong. I found trac ticket >>> #2520 which has some similarities but it is marked as fixed. Full >>> command line and output: >>> >>> ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf >>> scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' >>> -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png >>> ffmpeg version N-53322-gb1bbd71 Copyright (c) 2000-2013 the FFmpeg >>> developers >>> built on May 21 2013 16:18:03 with llvm-gcc 4.2.1 (LLVM build >>> 2336.11.00) >>> configuration: --enable-gpl >>> libavutil 52. 33.100 / 52. 33.100 >>> libavcodec 55. 10.101 / 55. 10.101 >>> libavformat 55. 7.100 / 55. 7.100 >>> libavdevice 55. 1.100 / 55. 1.100 >>> libavfilter 3. 68.101 / 3. 68.101 >>> libswscale 2. 3.100 / 2. 3.100 >>> libswresample 0. 17.102 / 0. 17.102 >>> libpostproc 52. 3.100 / 52. 3.100 >>> Input #0, lavfi, from 'nullsrc=s=256x256:d=0.01': >>> Duration: N/A, start: 0.000000, bitrate: N/A >>> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256 >> >> Input does not have any alpha, thus alpa can't be changed. > > I saw that but then I thought the geq filter would automatically use a > format with alpha if an alpha expression was there, regardless of what > was used in the previous member of the filter chain. Then I started > looking for a way to force the source to have alpha. I tried > - using -pix_fmt rgba as an input option but got an error message > telling me that pixel format is an unsupported option > - using color=0x80808080 as the source because I hoped setting an > alpha value would somehow make it use a pixel format with alpha > support > > So how do I force alpha to be there in the source other than > generating a dummy video with alpha and using that as an input (which, > of course I can do but I was looking for the more elegant solution > first because I thought I must be missing some option to force a pixel > format)? Add format filter before geq filter, like this: -vf format=rgba,geq..... From cehoyos at ag.or.at Tue May 21 19:44:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 21 May 2013 17:44:56 +0000 (UTC) Subject: [FFmpeg-user] Alpha not working as expected with geq filter References: Message-ID: Paul B Mahol gmail.com> writes: > Add format filter before geq filter, like this: -vf format=rgba,geq..... I suspect geq does not support rgba (it should work without the format filter if it did), format=gbrap (if that is the name of planar rgb alpha) should work. This may be a bug, Carl Eugen From onemda at gmail.com Tue May 21 19:56:41 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 21 May 2013 17:56:41 +0000 Subject: [FFmpeg-user] Alpha not working as expected with geq filter In-Reply-To: References: Message-ID: On 5/21/13, Carl Eugen Hoyos wrote: > Paul B Mahol gmail.com> writes: > >> Add format filter before geq filter, like this: -vf format=rgba,geq..... > > I suspect geq does not support rgba (it should work without the > format filter if it did), format=gbrap (if that is the name of planar > rgb alpha) should work. Not needed. > > This may be a bug, Carl Eugen Not, its not. > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From adam.pakula at gmail.com Mon May 20 22:32:51 2013 From: adam.pakula at gmail.com (=?ISO-8859-2?Q?Adam_Paku=B3a?=) Date: Mon, 20 May 2013 22:32:51 +0200 Subject: [FFmpeg-user] inter and intra matrix Message-ID: Hi, Is there any way to pass inter_matrix argument from file? I would like to write matrix in file and use it as argument for ffmpeg, because writing list of coefs every time is annoying. I need this, because I am doing some research about influence of quantization matrices to encoding quality. Adam Paku?a From pavi_elex at yahoo.com Tue May 21 09:32:19 2013 From: pavi_elex at yahoo.com (pavi_elex at yahoo.com) Date: Tue, 21 May 2013 15:32:19 +0800 (SGT) Subject: [FFmpeg-user] ffmpeg question about full form Message-ID: <1369121539.69744.YahooMailClassic@web193406.mail.sg3.yahoo.com> Hello, I want to know the full form of ffmpeg if mpeg is moving pictures expert group then what is ffmpeg. Please reply. ---Thanks & Regards Elex From jlopez at intelecom.org Tue May 21 20:37:00 2013 From: jlopez at intelecom.org (Joel) Date: Tue, 21 May 2013 18:37:00 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found Message-ID: Hi, I've been using this guide: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide I copy and paste the blocks of test and all seems to go well until the ffmpeg part. I get this error: "ERROR: libx264 not found" Any ideas on what could be going wrong? Here's the tail of my log file as well. Thanks, Joel gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -c -o /tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c /tmp/ffconf.r04RgI12.c: In function 'check_vpx_codec_vp9_cx': /tmp/ffconf.r04RgI12.c:3:51: error: 'vpx_codec_vp9_cx' undeclared (first use in this function) /tmp/ffconf.r04RgI12.c:3:51: note: each undeclared identifier is reported only once for each function it appears in check_lib x264.h x264_encoder_encode -lx264 check_header x264.h check_cpp BEGIN /tmp/ffconf.r04RgI12.c 1 #include 2 int x; END /tmp/ffconf.r04RgI12.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -E -o /tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c In file included from /tmp/ffconf.r04RgI12.c:1:0: /home/jlopez/ffmpeg_build/include/x264.h:36:4: warning: #warning You must include stdint.h or inttypes.h before x264.h [-Wcpp] check_func x264_encoder_encode -lx264 check_ld cc -lx264 check_cc BEGIN /tmp/ffconf.r04RgI12.c 1 extern int x264_encoder_encode(); 2 int main(void){ x264_encoder_encode(); } END /tmp/ffconf.r04RgI12.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -c -o /tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c gcc -L/home/jlopez/ffmpeg_build/lib -Wl,--as-needed -o /tmp/ffconf.oKYu26Qf /tmp/ffconf.PhBG0nPG.o -lx264 -lvpx -lvpx -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lopus -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lz /home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function `x264_opencl_load_library': opencl.c:(.text+0x46f): undefined reference to `dlopen' opencl.c:(.text+0x488): undefined reference to `dlsym' opencl.c:(.text+0x4a2): undefined reference to `dlsym' opencl.c:(.text+0x4bc): undefined reference to `dlsym' opencl.c:(.text+0x4d6): undefined reference to `dlsym' opencl.c:(.text+0x4f0): undefined reference to `dlsym' /home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o):opencl.c:(.text+0x50a): more undefined references to `dlsym' follow /home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function `x264_opencl_load_library': opencl.c:(.text+0x774): undefined reference to `dlclose' /home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function `x264_opencl_close_library': opencl.c:(.text+0x831): undefined reference to `dlclose' /home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function `x264_opencl_lookahead_init': opencl.c:(.text+0x13d3): undefined reference to `dlopen' opencl.c:(.text+0x13ec): undefined reference to `dlsym' opencl.c:(.text+0x13fc): undefined reference to `dlsym' opencl.c:(.text+0x140e): undefined reference to `dlsym' opencl.c:(.text+0x141e): undefined reference to `dlsym' opencl.c:(.text+0x147c): undefined reference to `dlclose' opencl.c:(.text+0x148c): undefined reference to `dlclose' opencl.c:(.text+0x1b7b): undefined reference to `dlclose' collect2: error: ld returned 1 exit status ERROR: libx264 not found From h.reindl at thelounge.net Tue May 21 20:45:39 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 21 May 2013 20:45:39 +0200 Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found In-Reply-To: References: Message-ID: <519BC0D3.3000509@thelounge.net> Am 21.05.2013 20:37, schrieb Joel: > I've been using this guide: > https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide > > I copy and paste the blocks of test and all seems to go well until the > ffmpeg part. I get this error: > > "ERROR: libx264 not found" > > Any ideas on what could be going wrong? yesterdays x264 update / snapshot is borked -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From jlopez at intelecom.org Tue May 21 20:57:08 2013 From: jlopez at intelecom.org (Joel) Date: Tue, 21 May 2013 18:57:08 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found References: <519BC0D3.3000509@thelounge.net> Message-ID: Is there anyway to use a previous version or do I have to wait until they fix it? From mollyrazormillions at gmail.com Tue May 21 21:00:11 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Tue, 21 May 2013 21:00:11 +0200 Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found In-Reply-To: <519BC0D3.3000509@thelounge.net> References: <519BC0D3.3000509@thelounge.net> Message-ID: Well, as it says, the x264 development files are missing. Did you compile x264 first? do you need the latest x264 or just the latest ffmpeg? If the latter then simply apt-get install libx264-dev Then compile ffmpeg from source. On Tue, May 21, 2013 at 8:45 PM, Reindl Harald wrote: > > > Am 21.05.2013 20:37, schrieb Joel: > > I've been using this guide: > > https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide > > > > I copy and paste the blocks of test and all seems to go well until the > > ffmpeg part. I get this error: > > > > "ERROR: libx264 not found" > > > > Any ideas on what could be going wrong? > > yesterdays x264 update / snapshot is borked > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From lou at lrcd.com Tue May 21 21:06:58 2013 From: lou at lrcd.com (Lou) Date: Tue, 21 May 2013 11:06:58 -0800 Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found In-Reply-To: References: <519BC0D3.3000509@thelounge.net> Message-ID: <20130521110658.20165334@lrcd.com> On Tue, 21 May 2013 18:57:08 +0000 (UTC) Joel wrote: > > Is there anyway to use a previous version or do I have to wait until they > fix it? cd ~/x264 make uninstall make distclean ./configure --enable-static --disable-opencl make make install Or use older source. From lou at lrcd.com Tue May 21 21:12:50 2013 From: lou at lrcd.com (Lou) Date: Tue, 21 May 2013 11:12:50 -0800 Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found In-Reply-To: <20130521110658.20165334@lrcd.com> References: <519BC0D3.3000509@thelounge.net> <20130521110658.20165334@lrcd.com> Message-ID: <20130521111250.4e1a45dd@lrcd.com> On Tue, 21 May 2013 11:06:58 -0800 Lou wrote: > On Tue, 21 May 2013 18:57:08 +0000 (UTC) > Joel wrote: > > > > > Is there anyway to use a previous version or do I have to wait until they > > fix it? > > cd ~/x264 Make that: cd ~/ffmpeg_sources/x264 From lou at lrcd.com Tue May 21 21:33:54 2013 From: lou at lrcd.com (Lou) Date: Tue, 21 May 2013 11:33:54 -0800 Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found In-Reply-To: References: <519BC0D3.3000509@thelounge.net> Message-ID: <20130521113354.7468f7d5@lrcd.com> On Tue, 21 May 2013 21:00:11 +0200 Molly Millions wrote: > apt-get install libx264-dev > > Then compile ffmpeg from source. It seems like a simple solution, but using libx264-dev is not recommended: * It is old. * It will not work with the compile guide as-is since ffmpeg will look for x264 in ~/ffmpeg_build/ Contributions to discussions are appreciated, but please do not top-post on this mailing list. From cehoyos at ag.or.at Tue May 21 21:59:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 21 May 2013 19:59:59 +0000 (UTC) Subject: [FFmpeg-user] Alpha not working as expected with geq filter References: Message-ID: Paul B Mahol gmail.com> writes: > >> Add format filter before geq filter, like this: > >>-vf format=rgba,geq..... > > > > I suspect geq does not support rgba (it should work > > without the format filter if it did), format=gbrap > > (if that is the name of planar rgb alpha) should work. > > Not needed. You mean apart from the fact that an additional third scaler is inserted with "format=rgba" which will have a performance impact on real data. Carl Eugen From cehoyos at ag.or.at Tue May 21 22:02:46 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 21 May 2013 20:02:46 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg question about full form References: <1369121539.69744.YahooMailClassic@web193406.mail.sg3.yahoo.com> Message-ID: yahoo.com> writes: > I want to know the full form of ffmpeg http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/28758/focus=28931 Please note that "FFmpeg" is the "full form". Carl Eugen From onemda at gmail.com Tue May 21 22:10:30 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 21 May 2013 20:10:30 +0000 Subject: [FFmpeg-user] Alpha not working as expected with geq filter In-Reply-To: References: Message-ID: On 5/21/13, Carl Eugen Hoyos wrote: > Paul B Mahol gmail.com> writes: > >> >> Add format filter before geq filter, like this: >> >>-vf format=rgba,geq..... >> > >> > I suspect geq does not support rgba (it should work >> > without the format filter if it did), format=gbrap >> > (if that is the name of planar rgb alpha) should work. >> >> Not needed. > > You mean apart from the fact that an additional > third scaler is inserted with "format=rgba" > which will have a performance impact on real > data. Impact would be irrelevant with geq. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jlopez at intelecom.org Wed May 22 01:54:07 2013 From: jlopez at intelecom.org (Joel) Date: Tue, 21 May 2013 23:54:07 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found References: <519BC0D3.3000509@thelounge.net> <20130521110658.20165334@lrcd.com> <20130521111250.4e1a45dd@lrcd.com> Message-ID: Tried it and still got the error ERROR: libx264 not found From jlopez at intelecom.org Wed May 22 01:55:08 2013 From: jlopez at intelecom.org (Joel) Date: Tue, 21 May 2013 23:55:08 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found References: <519BC0D3.3000509@thelounge.net> Message-ID: > apt-get install libx264-dev > > Then compile ffmpeg from source. Tried this first and still go the error From lou at lrcd.com Wed May 22 02:00:41 2013 From: lou at lrcd.com (Lou) Date: Tue, 21 May 2013 16:00:41 -0800 Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found In-Reply-To: References: <519BC0D3.3000509@thelounge.net> <20130521110658.20165334@lrcd.com> <20130521111250.4e1a45dd@lrcd.com> Message-ID: <20130521160041.70c78f0b@lrcd.com> On Tue, 21 May 2013 23:54:07 +0000 (UTC) Joel wrote: > > > Tried it and still got the error > > ERROR: libx264 not found Probably because the configure line should have been: ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" \ --enable-static --disable-opencl From jlopez at intelecom.org Wed May 22 02:03:50 2013 From: jlopez at intelecom.org (Joel) Date: Wed, 22 May 2013 00:03:50 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found References: <519BC0D3.3000509@thelounge.net> <20130521110658.20165334@lrcd.com> <20130521111250.4e1a45dd@lrcd.com> <20130521160041.70c78f0b@lrcd.com> Message-ID: Let me try that. Thanks Lou. Joel From jlopez at intelecom.org Wed May 22 02:01:30 2013 From: jlopez at intelecom.org (Joel) Date: Wed, 22 May 2013 00:01:30 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found References: <519BC0D3.3000509@thelounge.net> <20130521110658.20165334@lrcd.com> Message-ID: If I wanted to use an older version that would work how would I change this? git clone --depth 1 git://git.videolan.org/x264.git && \ Thanks, Joel From jlopez at intelecom.org Wed May 22 02:35:29 2013 From: jlopez at intelecom.org (Joel) Date: Wed, 22 May 2013 00:35:29 +0000 (UTC) Subject: [FFmpeg-user] Installing on Ubuntu Error: libx264 not found References: <519BC0D3.3000509@thelounge.net> <20130521110658.20165334@lrcd.com> <20130521111250.4e1a45dd@lrcd.com> <20130521160041.70c78f0b@lrcd.com> Message-ID: > ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" \ > --enable-static --disable-opencl You're the man Lou! ffmpeg version git-2013-05-22-8d9fa73 Copyright (c) 2000-2013 the FFmpeg developers Am I going to be missing anything? Should I reinstall again in a few days to see if the new release is better? Thanks, Joel From general at vultaire.net Wed May 22 07:33:48 2013 From: general at vultaire.net (Paul Goins) Date: Tue, 21 May 2013 22:33:48 -0700 Subject: [FFmpeg-user] Webcam capture with ffmpeg on Windows: need help with raw capture + preview window. Message-ID: <519C58BC.1090308@vultaire.net> Hi, I've been experimenting with ffmpeg as a replacement for the abysmal webcam software provided with my Logitech web cam. I'm not an ffmpeg pro by any means; I'm studying a lot though and have put in significant effort to try to figure this out myself. Pointers would be really helpful. Basically, I'm trying to do a "raw" 720p webcam/microphone capture via dshow, and am also trying to hook in a preview window via ffplay. My command line looks like this (line breaks inserted for readability): ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 \ -i video="Logicool HD Webcam C310":audio="??? (Realtek High Definition Au" \ -vcodec copy -acodec copy -r 30 -threads 4 output.avi \ -s 426x240 -pix_fmt yuv420p -f rawvideo - \ | ffplay -f rawvideo -pixel_format yuv420p -video_size 426x240 - And for completeness, my input streams look like: Input #0, dshow, from 'video=Logicool HD Webcam C310:audio=????? (Realtek High Definition Au': Duration: N/A, start: 175477.576000, bitrate: 1411 kb/s Stream #0:0: Video: rawvideo, bgr24, 1280x720, 30 tbr, 10000k tbn, 30 tbc Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Problems encountered are: 1. ffplay output is delayed by a second or two. 2. output.avi gets cut off prematurely; this does not happen if I omit piping to ffplay. 3. I get error messages such as "real-time buffer 62% full! frame dropped!" after about 40 seconds. Without the ffplay stream, I do not get this. I'm not sure I've provided enough info, but would any of you have suggestions for how to make this work? Thanks, - Paul Goins From xiaomou at gmail.com Wed May 22 07:42:45 2013 From: xiaomou at gmail.com (=?UTF-8?B?6IKW6LCL?=) Date: Wed, 22 May 2013 13:42:45 +0800 Subject: [FFmpeg-user] How to fix audio/video out of sync problem Message-ID: Hi, all. I have a mp4 file 1.mp4 in which the audio is about 2 seconds ahead of video. I want to fix this using ffmpeg without transcoding, just copy. My method is a little complicated. 1. use ffmpeg to split the video and audio into two mp4 file : ffmpeg -i 1.mp4 -acodec copy -vn video.mp4 ffmpeg -i 1.mp4 -vcodec copy -an audio.mp4 I found that the duration of the video.mp4 file is 74 seconds and that of the audio.mp4 is 72 seconds. 2. strip the first 2 seconds of the audio: ffmpeg -i audio.mp4 -ss 2 -acodec copy audio_stripped.mp4 3. merge audio_stripped.mp4 and video.mp4 into one mp4. And the resulting mp4 is a/v synced. So, my question is: is there a simple, effective, automated solution to fix this kind of problem. By the way, if the mp4 is transcoded, the resulting mp4 is also a/v synced. Thanks! Regards xiaomou From krueger at lesspain.de Wed May 22 08:58:56 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 22 May 2013 08:58:56 +0200 Subject: [FFmpeg-user] Alpha not working as expected with geq filter In-Reply-To: References: Message-ID: On Tue, May 21, 2013 at 7:34 PM, Paul B Mahol wrote: > On 5/21/13, Robert Krueger wrote: >> On Tue, May 21, 2013 at 6:56 PM, Paul B Mahol wrote: >>> On 5/21/13, Robert Krueger wrote: >>>> Hi, >>>> >>>> I am trying to generate a test file using nullsrc and the geq filter >>>> to obtain an image that has color and alpha channel values defined by >>>> equations like so: >>>> >>>> ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf >>>> scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' >>>> -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png >>>> >>>> The generated png file does not contain any transparent pixels as far >>>> as I can see and I wonder what I have done wrong. I found trac ticket >>>> #2520 which has some similarities but it is marked as fixed. Full >>>> command line and output: >>>> >>>> ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf >>>> scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' >>>> -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png >>>> ffmpeg version N-53322-gb1bbd71 Copyright (c) 2000-2013 the FFmpeg >>>> developers >>>> built on May 21 2013 16:18:03 with llvm-gcc 4.2.1 (LLVM build >>>> 2336.11.00) >>>> configuration: --enable-gpl >>>> libavutil 52. 33.100 / 52. 33.100 >>>> libavcodec 55. 10.101 / 55. 10.101 >>>> libavformat 55. 7.100 / 55. 7.100 >>>> libavdevice 55. 1.100 / 55. 1.100 >>>> libavfilter 3. 68.101 / 3. 68.101 >>>> libswscale 2. 3.100 / 2. 3.100 >>>> libswresample 0. 17.102 / 0. 17.102 >>>> libpostproc 52. 3.100 / 52. 3.100 >>>> Input #0, lavfi, from 'nullsrc=s=256x256:d=0.01': >>>> Duration: N/A, start: 0.000000, bitrate: N/A >>>> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256 >>> >>> Input does not have any alpha, thus alpa can't be changed. >> >> I saw that but then I thought the geq filter would automatically use a >> format with alpha if an alpha expression was there, regardless of what >> was used in the previous member of the filter chain. Then I started >> looking for a way to force the source to have alpha. I tried >> - using -pix_fmt rgba as an input option but got an error message >> telling me that pixel format is an unsupported option >> - using color=0x80808080 as the source because I hoped setting an >> alpha value would somehow make it use a pixel format with alpha >> support >> >> So how do I force alpha to be there in the source other than >> generating a dummy video with alpha and using that as an input (which, >> of course I can do but I was looking for the more elegant solution >> first because I thought I must be missing some option to force a pixel >> format)? > > Add format filter before geq filter, like this: -vf format=rgba,geq..... adding format=rgba or gbrap both worked and did what I was looking for. Thanks a lot! Sloppy research on my part. I was searching the docs for an option to the scale filter to specify the pixel format and did not even know that the format filter existed. From cehoyos at ag.or.at Wed May 22 11:24:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 22 May 2013 09:24:41 +0000 (UTC) Subject: [FFmpeg-user] How to fix audio/video out of sync problem References: Message-ID: ?? gmail.com> writes: > I have a mp4 file 1.mp4 in which the audio is about > 2 seconds ahead of video. I want to fix this using > ffmpeg without transcoding, just copy. -itsoffset may help: $ ffmpeg -i 1.mp4 -itsoffset 2 -i 1.mp4 -codec copy -map 0:0 -map 1:1 2.mp4 You may have to move the itsoffset (and change between 2 and -2). Carl Eugen From cehoyos at ag.or.at Wed May 22 11:28:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 22 May 2013 09:28:56 +0000 (UTC) Subject: [FFmpeg-user] Webcam capture with ffmpeg on Windows: need help with raw capture + preview window. References: <519C58BC.1090308@vultaire.net> Message-ID: Paul Goins vultaire.net> writes: > ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 \ > -i video="Logicool HD Webcam C310":audio="??? > (Realtek High Definition Au" \ > -vcodec copy -acodec copy -r 30 -threads 4 output.avi \ > -s 426x240 -pix_fmt yuv420p -f rawvideo - (Complete, uncut console output missing.) -threads 4 are definitely useless for -codec copy, I would actually expect that -threads 1 works (slightly) better. Why don't you use output.avi for the preview? -analyzeduration and -probesize may help with the delay. Carl Eugen From mailinglist at podiumbv.nl Wed May 22 11:34:00 2013 From: mailinglist at podiumbv.nl (Podium B.V.) Date: Wed, 22 May 2013 11:34:00 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: <5186DE41.9060909@ewetel.net> References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> Message-ID: <519C9108.9080909@podiumbv.nl> My college also had problems with FFMpeg, WebM and FireFox (when Chromium was perfect)... He gave me the following URL (from the Dutch National Television Website): http://kenniscentrum.publiekeomroep.nl/pilot/WebM/wiki/WebmVod.html Maybe it's something!? On 06-05-13 00:33, Hartmut wrote: > I have written my command-line 2 posts ago with hope that somebody > might try it with a new version, because I am not a compiler-type. I > get my ffmpeg-version from packman and if I get to know, that webm > with Firefox works with a new version then I will mail this knowledge > to Packman. > > Hartmut > From battistel at gmail.com Wed May 22 12:36:33 2013 From: battistel at gmail.com (Massimo Battistel) Date: Wed, 22 May 2013 12:36:33 +0200 Subject: [FFmpeg-user] Confusion between PAR and SAR Message-ID: Hello, maybe this has already been discussed here: https://ffmpeg.org/trac/ffmpeg/ticket/1776 but I think there is still something wrong. I think ffmpeg confuses PAR with SAR. See the output below. The video is an SD 16:9, DAR is correct, but 64:45 is the PAR. SAR is 720/576=1.25. ffmpeg and ffprobe show the same behaviour. ffplay version N-50442-g4f0d4ac Copyright (c) 2003-2013 the FFmpeg developers built on Mar 2 2013 15:33:19 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.103 / 52. 17.103 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.102 / 54. 63.102 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 41.100 / 3. 41.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg @ 0000000000601b40] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'SPOT BANDA LARGA 3M.mpg': Duration: 00:02:59.32, start: 0.193189, bitrate: 6184 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s -- Massimo Battistel. From matthew at lifandi.org Wed May 22 13:08:05 2013 From: matthew at lifandi.org (Matthew Morgan) Date: Wed, 22 May 2013 07:08:05 -0400 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd Message-ID: <519CA715.5000600@lifandi.org> I'm having trouble with some material I'm converting to DVD with ffmpeg; there is significant ghosting on some players, and some google searches have pointed out that this is often related to interlacing. The source materialis interlaced, top-field dominant, but when I run it throughffmpeg using "-target ntsc-dvd", mediainfo shows the output as being progressive. Here is my ffmpeg command line: ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target ntsc-dvd -b:v 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018-ge70e258 Copyright (c) 2000-2013 the FFmpeg developers built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libv4l2 --enable-x11grab --enable-libvpx libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 65.100 / 3. 65.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 microseconds [NULL @ 0xa43b780] start time is not set in estimate_timings_from_pts Input #0, mpeg, from 'dora_fairytale_cut.mpg': Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' already exists. Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) Stream #0:1 -> #0:1 (ac3 -> ac3) Press [q] to stop, [?] for help frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 bitrate=4546.2kbits/s dup=8 drop=0 video:1375112kB audio:154016kB subtitle:0 global headers:0kB muxing overhead 2.209759% My question is, should I be specifying any kind of options to make the deinterlacing happen correctly? Is this even likely to be my problem? If you need it, I can also post mediainfo output for the source and output files. From james.darnley at gmail.com Wed May 22 13:24:22 2013 From: james.darnley at gmail.com (James Darnley) Date: Wed, 22 May 2013 13:24:22 +0200 Subject: [FFmpeg-user] Confusion between PAR and SAR In-Reply-To: References: Message-ID: <519CAAE6.5000305@gmail.com> On 2013-05-22 12:36, Massimo Battistel wrote: > Hello, > maybe this has already been discussed here: > > https://ffmpeg.org/trac/ffmpeg/ticket/1776 > > but I think there is still something wrong. > I think ffmpeg confuses PAR with SAR. > See the output below. The video is an SD 16:9, DAR is correct, but 64:45 is > the PAR. > SAR is 720/576=1.25. Just forget about this stupid concept of "Storage Aspect Ratio". In H.264 terms, SAR is Sample Aspect Ratio which is the same as PAR or Pixel Aspect Ratio which is used in other standards (I think). That link explains it quite well. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 553 bytes Desc: OpenPGP digital signature URL: From francois.visagie at gmail.com Wed May 22 14:06:42 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Wed, 22 May 2013 14:06:42 +0200 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd In-Reply-To: <519CA715.5000600@lifandi.org> References: <519CA715.5000600@lifandi.org> Message-ID: <00ea01ce56e4$d5cae820$8160b860$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Matthew Morgan > Sent: 22 May 2013 13:08 > To: ffmpeg > Subject: [FFmpeg-user] deinterlacing with ntsc-dvd > > I'm having trouble with some material I'm converting to DVD with ffmpeg; > there is significant ghosting on some players, and some google searches have > pointed out that this is often related to interlacing. > > The source materialis interlaced, top-field dominant, but when I run it > throughffmpeg using "-target ntsc-dvd", mediainfo shows the output as > being progressive. > > Here is my ffmpeg command line: > > ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K > /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target ntsc-dvd -b:v > 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018- > ge70e258 Copyright (c) 2000-2013 the FFmpeg developers > built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable- > libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable- > libv4l2 --enable-x11grab --enable-libvpx > libavutil 52. 30.100 / 52. 30.100 > libavcodec 55. 9.100 / 55. 9.100 > libavformat 55. 7.100 / 55. 7.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 65.100 / 3. 65.100 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 > microseconds [NULL @ 0xa43b780] start time is not set in > estimate_timings_from_pts Input #0, mpeg, from 'dora_fairytale_cut.mpg': > Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s > Stream #0:0[0x1bf]: Data: dvd_nav_packet > Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s > Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 > DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' already exists. > Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': > Metadata: > encoder : Lavf55.7.100 > Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2- > 31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc > Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: > Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) > Stream #0:1 -> #0:1 (ac3 -> ac3) > Press [q] to stop, [?] for help > frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 > bitrate=4546.2kbits/s dup=8 drop=0 > video:1375112kB audio:154016kB subtitle:0 global headers:0kB muxing > overhead 2.209759% > > My question is, should I be specifying any kind of options to make the > deinterlacing happen correctly? Yes ' -flags ildct+ilme' (on both passes) is what I use. > Is this even likely to be my problem? If you > need it, I can also post mediainfo output for the source and output files. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Wed May 22 14:08:36 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Wed, 22 May 2013 14:08:36 +0200 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd In-Reply-To: <519CA715.5000600@lifandi.org> References: <519CA715.5000600@lifandi.org> Message-ID: <00eb01ce56e5$1a3cba10$4eb62e30$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Matthew Morgan > Sent: 22 May 2013 13:08 > To: ffmpeg > Subject: [FFmpeg-user] deinterlacing with ntsc-dvd > > I'm having trouble with some material I'm converting to DVD with ffmpeg; > there is significant ghosting on some players, and some google searches have > pointed out that this is often related to interlacing. > > The source materialis interlaced, top-field dominant, but when I run it > throughffmpeg using "-target ntsc-dvd", mediainfo shows the output as > being progressive. > > Here is my ffmpeg command line: > > ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K > /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target ntsc-dvd -b:v > 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018- > ge70e258 Copyright (c) 2000-2013 the FFmpeg developers > built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable- > libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable- > libv4l2 --enable-x11grab --enable-libvpx > libavutil 52. 30.100 / 52. 30.100 > libavcodec 55. 9.100 / 55. 9.100 > libavformat 55. 7.100 / 55. 7.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 65.100 / 3. 65.100 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 > microseconds [NULL @ 0xa43b780] start time is not set in > estimate_timings_from_pts Input #0, mpeg, from 'dora_fairytale_cut.mpg': > Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s > Stream #0:0[0x1bf]: Data: dvd_nav_packet > Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s > Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 > DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' already exists. > Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': > Metadata: > encoder : Lavf55.7.100 > Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2- > 31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc > Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: > Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) > Stream #0:1 -> #0:1 (ac3 -> ac3) > Press [q] to stop, [?] for help > frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 > bitrate=4546.2kbits/s dup=8 drop=0 > video:1375112kB audio:154016kB subtitle:0 global headers:0kB muxing > overhead 2.209759% > > My question is, should I be specifying any kind of options to make the > deinterlacing happen correctly? Is this even likely to be my problem? If you > need it, I can also post mediainfo output for the source and output files. PS. The options ' -flags ildct+ilme' _preserve_ interlacing. This is accepted by the DVD standard and incurs least quality loss. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From matthew at lifandi.org Wed May 22 14:41:24 2013 From: matthew at lifandi.org (Matthew Morgan) Date: Wed, 22 May 2013 08:41:24 -0400 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd In-Reply-To: <00eb01ce56e5$1a3cba10$4eb62e30$@gmail.com> References: <519CA715.5000600@lifandi.org> <00eb01ce56e5$1a3cba10$4eb62e30$@gmail.com> Message-ID: <519CBCF4.6050302@lifandi.org> On 05/22/2013 08:08 AM, Francois Visagie wrote: >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of Matthew Morgan >> Sent: 22 May 2013 13:08 >> To: ffmpeg >> Subject: [FFmpeg-user] deinterlacing with ntsc-dvd >> >> I'm having trouble with some material I'm converting to DVD with ffmpeg; >> there is significant ghosting on some players, and some google searches > have >> pointed out that this is often related to interlacing. >> >> The source materialis interlaced, top-field dominant, but when I run it >> throughffmpeg using "-target ntsc-dvd", mediainfo shows the output as >> being progressive. >> >> Here is my ffmpeg command line: >> >> ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K >> /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target ntsc-dvd > -b:v >> 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018- >> ge70e258 Copyright (c) 2000-2013 the FFmpeg developers >> built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) >> configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl > --enable- >> libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree --enable- >> libv4l2 --enable-x11grab --enable-libvpx >> libavutil 52. 30.100 / 52. 30.100 >> libavcodec 55. 9.100 / 55. 9.100 >> libavformat 55. 7.100 / 55. 7.100 >> libavdevice 55. 0.100 / 55. 0.100 >> libavfilter 3. 65.100 / 3. 65.100 >> libswscale 2. 3.100 / 2. 3.100 >> libswresample 0. 17.102 / 0. 17.102 >> libpostproc 52. 3.100 / 52. 3.100 >> [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 >> microseconds [NULL @ 0xa43b780] start time is not set in >> estimate_timings_from_pts Input #0, mpeg, from 'dora_fairytale_cut.mpg': >> Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s >> Stream #0:0[0x1bf]: Data: dvd_nav_packet >> Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s >> Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR > 8:9 >> DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' > already exists. >> Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': >> Metadata: >> encoder : Lavf55.7.100 >> Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], > q=2- >> 31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc >> Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream > mapping: >> Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) >> Stream #0:1 -> #0:1 (ac3 -> ac3) >> Press [q] to stop, [?] for help >> frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 >> bitrate=4546.2kbits/s dup=8 drop=0 >> video:1375112kB audio:154016kB subtitle:0 global headers:0kB muxing >> overhead 2.209759% >> >> My question is, should I be specifying any kind of options to make the >> deinterlacing happen correctly? Is this even likely to be my problem? If > you >> need it, I can also post mediainfo output for the source and output files. > PS. The options ' -flags ildct+ilme' _preserve_ interlacing. This is > accepted by the DVD standard and incurs least quality loss. Thanks! Where in the command line should I put this? After `-target ntsc-dvd`? > >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Wed May 22 17:29:33 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Wed, 22 May 2013 17:29:33 +0200 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd In-Reply-To: <519CBCF4.6050302@lifandi.org> References: <519CA715.5000600@lifandi.org> <00eb01ce56e5$1a3cba10$4eb62e30$@gmail.com> <519CBCF4.6050302@lifandi.org> Message-ID: <002701ce5701$2cc513a0$864f3ae0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Matthew Morgan > Sent: 22 May 2013 14:41 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] deinterlacing with ntsc-dvd > > On 05/22/2013 08:08 AM, Francois Visagie wrote: > >> -----Original Message----- > >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >> bounces at ffmpeg.org] On Behalf Of Matthew Morgan > >> Sent: 22 May 2013 13:08 > >> To: ffmpeg > >> Subject: [FFmpeg-user] deinterlacing with ntsc-dvd > >> > >> I'm having trouble with some material I'm converting to DVD with > >> ffmpeg; there is significant ghosting on some players, and some > >> google searches > > have > >> pointed out that this is often related to interlacing. > >> > >> The source materialis interlaced, top-field dominant, but when I run > >> it throughffmpeg using "-target ntsc-dvd", mediainfo shows the output > >> as being progressive. > >> > >> Here is my ffmpeg command line: > >> > >> ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K > >> /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target > >> ntsc-dvd > > -b:v > >> 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018- > >> ge70e258 Copyright (c) 2000-2013 the FFmpeg developers > >> built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > >> configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl > > --enable- > >> libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree > >> --enable- > >> libv4l2 --enable-x11grab --enable-libvpx > >> libavutil 52. 30.100 / 52. 30.100 > >> libavcodec 55. 9.100 / 55. 9.100 > >> libavformat 55. 7.100 / 55. 7.100 > >> libavdevice 55. 0.100 / 55. 0.100 > >> libavfilter 3. 65.100 / 3. 65.100 > >> libswscale 2. 3.100 / 2. 3.100 > >> libswresample 0. 17.102 / 0. 17.102 > >> libpostproc 52. 3.100 / 52. 3.100 > >> [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 > >> microseconds [NULL @ 0xa43b780] start time is not set in > >> estimate_timings_from_pts Input #0, mpeg, from > 'dora_fairytale_cut.mpg': > >> Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s > >> Stream #0:0[0x1bf]: Data: dvd_nav_packet > >> Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s > >> Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 > >> [SAR > > 8:9 > >> DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' > > already exists. > >> Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': > >> Metadata: > >> encoder : Lavf55.7.100 > >> Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR > >> 4:3], > > q=2- > >> 31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc > >> Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream > > mapping: > >> Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) > >> Stream #0:1 -> #0:1 (ac3 -> ac3) > >> Press [q] to stop, [?] for help > >> frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 > >> bitrate=4546.2kbits/s dup=8 drop=0 video:1375112kB audio:154016kB > >> subtitle:0 global headers:0kB muxing overhead 2.209759% > >> > >> My question is, should I be specifying any kind of options to make > >> the deinterlacing happen correctly? Is this even likely to be my > >> problem? If > > you > >> need it, I can also post mediainfo output for the source and output files. > > PS. The options ' -flags ildct+ilme' _preserve_ interlacing. This is > > accepted by the DVD standard and incurs least quality loss. > Thanks! Where in the command line should I put this? After `-target ntsc- > dvd`? I normally do, to prevent my options being overridden by macro settings such as -target. > > > >> _______________________________________________ > >> ffmpeg-user mailing list > >> ffmpeg-user at ffmpeg.org > >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From virginia975 at gmail.com Wed May 22 17:47:21 2013 From: virginia975 at gmail.com (Virginia) Date: Wed, 22 May 2013 11:47:21 -0400 Subject: [FFmpeg-user] Transmux H.264 MP4 to MPEG-TS? Message-ID: I have MP4 multiple bitrate (MBR) files that I need to keep the H.264/AAC streams and transmux into MPEG-TS so that I can package them as HLS packages. Does anyone know if this is possible with FFmpeg and how I would pass through the basename to the output as well? Thanks in advance. From spieluhr at ewetel.net Wed May 22 18:14:19 2013 From: spieluhr at ewetel.net (Hartmut) Date: Wed, 22 May 2013 18:14:19 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: <519C9108.9080909@podiumbv.nl> References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> Message-ID: <519CEEDB.7030806@ewetel.net> What should the page under the link tell us? Hartmut Am 22.05.2013 11:34, schrieb Podium B.V.: > > My college also had problems with FFMpeg, WebM and FireFox (when > Chromium was perfect)... > He gave me the following URL (from the Dutch National Television > Website): > > http://kenniscentrum.publiekeomroep.nl/pilot/WebM/wiki/WebmVod.html > > Maybe it's something!? > > > On 06-05-13 00:33, Hartmut wrote: >> I have written my command-line 2 posts ago with hope that somebody >> might try it with a new version, because I am not a compiler-type. I >> get my ffmpeg-version from packman and if I get to know, that webm >> with Firefox works with a new version then I will mail this knowledge >> to Packman. >> >> Hartmut >> > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From anyelongling at hotmail.com Wed May 22 04:49:56 2013 From: anyelongling at hotmail.com (=?utf-8?B?5pqX5aSc6b6Z5YeM?=) Date: Wed, 22 May 2013 10:49:56 +0800 Subject: [FFmpeg-user] About audio convert Message-ID: Firstly, I am costing your time,but it?s really emergency. I am developing a program about audio convert?it?s my graduation design for my university. I use C# call avconv to work it out,but it?s not work. Here is my call function: public static void ExcuteProcess(string exe, string arg) { System.Diagnostics.ProcessStartInfo p = new System.Diagnostics.ProcessStartInfo(exe, arg); p.UseShellExecute = false; p.CreateNoWindow = true; p.RedirectStandardError = true; p.RedirectStandardOutput = true; System.Diagnostics.Process listFiles; listFiles = System.Diagnostics.Process.Start(p); System.IO.StreamReader myOutput = listFiles.StandardOutput; System.IO.StreamReader myOut = listFiles.StandardError; listFiles.WaitForExit(); if (listFiles.HasExited) { output = myOutput.ReadToEnd(); errorput = myOut.ReadToEnd(); } } Here is my code: string in_file = "D:\\One.mp3"; string out_file = "D:\\test.wav"; //Boolean ret = false; //ret = convertAudio(in_file, out_file); //if (!ret) // MessageBox.Show("failed!"); //else // MessageBox.Show("succeed!"); try { ExcuteProcess("ffmpeg.exe", String.Format("avconv -i {0} -ar 44100 {1}", in_file,out_file)); //???? MessageBox.Show("????"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } textBox1.Text = output+errorput; And the output be null,errorput not null when I debug the program, the debug information: avconv version 9.5, Copyright (c) 2000-2013 the Libav developers built on Apr 21 2013 23:16:50 with gcc 4.7.2 (Gentoo 4.7.2 p1.3, pie-0.5.5) [mp3 @ 0225F960] max_analyze_duration reached Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, mp3, from 'D:\One.mp3': Metadata: title : Only One album : Only One (The 7th Album) artist : BoA Duration: 00:03:37.20, start: 0.000000, bitrate: 128 kb/s Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Unable to find a suitable output format for 'avconv' I don?t understand why it find output format for ?avconv',so would you please help me work it out? P.S.:when I run the program separately with cmd.exe,it?s work for converting,so I think it?s wired. Looking forward to your reply. Sincerely Lulu Lei From samyhugon at gmail.com Wed May 22 14:43:52 2013 From: samyhugon at gmail.com (hugon samy) Date: Wed, 22 May 2013 14:43:52 +0200 Subject: [FFmpeg-user] command line for use microphone stream Message-ID: Dear User, I would like to drawn your attention about ffmpeg. Here, I would like to know the command line that allows me to capture my live microphone and able to diffuse through an IP. BR, From tevans.uk at googlemail.com Wed May 22 22:22:23 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 22 May 2013 21:22:23 +0100 Subject: [FFmpeg-user] Transmux H.264 MP4 to MPEG-TS? In-Reply-To: References: Message-ID: On Wed, May 22, 2013 at 4:47 PM, Virginia wrote: > I have MP4 multiple bitrate (MBR) files that I need to keep the H.264/AAC > streams and transmux into MPEG-TS so that I can package them as HLS > packages. Does anyone know if this is possible with FFmpeg and how I would > pass through the basename to the output as well? > > Thanks in advance. ffmpeg can do that, it can also do the entire hls packaging including m3u8 creation. Check out the example in the docs (the final example in the section): http://www.ffmpeg.org/ffmpeg-formats.html#Examples Cheers Tom From lou at lrcd.com Thu May 23 02:00:53 2013 From: lou at lrcd.com (Lou) Date: Wed, 22 May 2013 16:00:53 -0800 Subject: [FFmpeg-user] About audio convert In-Reply-To: References: Message-ID: <20130522160053.3ef45675@lrcd.com> On Wed, 22 May 2013 10:49:56 +0800 ???? wrote: > Firstly, I am costing your time,but it?s really emergency. > I am developing a program about audio convert?it?s my graduation design for my university. > I use C# call avconv to work it out,but it?s not work. avconv is not from FFmpeg, so it is not supported here. From ajsinclair at gmail.com Thu May 23 06:42:04 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Thu, 23 May 2013 14:42:04 +1000 Subject: [FFmpeg-user] Getting multi rate HLS to play Message-ID: Hi All, I am having issues getting ffplay to a multi bitrate AppleHTTP/HLS stream, the stream opens but it never plays yet the individual variant streams play fine. Any ideas on how to get a multirate HLS file to play? ./ffplay http://iphonestreaming.abc.net.au/news24/news24.m3u8 -loglevel debug ffplay version N-53359-gc54a156 Copyright (c) 2003-2013 the FFmpeg developers built on May 23 2013 14:25:14 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --enable-libx264 --enable-libfaac --enable-nonfree --enable-gpl libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 10.101 / 55. 10.101 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.100 / 3. 69.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [hls,applehttp @ 0x7ff79b80f200] Format hls,applehttp probed with size=2048 and score=100 [AVIOContext @ 0x7ff799420c40] Statistics: 1152 bytes read, 0 seeks [AVIOContext @ 0x7ff79a21aaa0] Statistics: 1130 bytes read, 0 seeks [AVIOContext @ 0x7ff79a33d280] Statistics: 1152 bytes read, 0 seeks [AVIOContext @ 0x7ff79a341720] Statistics: 1130 bytes read, 0 seeks [AVIOContext @ 0x7ff799420c40] Statistics: 1218 bytes read, 0 seeks Format mpegts probed with size=2048 and score=100 sq= 0B f=0/0 [mpegts @ 0x7ff79b004600] stream=0 stream_type=1b pid=1e1 prog_reg_desc= [mpegts @ 0x7ff79b004600] stream=1 stream_type=f pid=1e2 prog_reg_desc= [mpegts @ 0x7ff79b004600] File position before avformat_find_stream_info() is 0 [h264 @ 0x7ff799817600] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7ff79b004600] All info foundq= 0KB sq= 0B f=0/0 [mpegts @ 0x7ff79b004600] File position after avformat_find_stream_info() is 34028 Format mpegts probed with size=2048 and score=100 sq= 0B f=0/0 [mpegts @ 0x7ff799863000] stream=0 stream_type=1b pid=1e1 prog_reg_desc= [mpegts @ 0x7ff799863000] stream=1 stream_type=f pid=1e2 prog_reg_desc= [mpegts @ 0x7ff799863000] File position before avformat_find_stream_info() is 0 [h264 @ 0x7ff79a816200] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7ff799863000] All info foundq= 0KB sq= 0B f=0/0 [mpegts @ 0x7ff799863000] File position after avformat_find_stream_info() is 47188 Format mpegts probed with size=2048 and score=100 sq= 0B f=0/0 [mpegts @ 0x7ff799866e00] stream=0 stream_type=1b pid=1e1 prog_reg_desc= [mpegts @ 0x7ff799866e00] stream=1 stream_type=f pid=1e2 prog_reg_desc= [mpegts @ 0x7ff799866e00] File position before avformat_find_stream_info() is 0 [h264 @ 0x7ff799869400] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7ff799866e00] All info foundq= 0KB sq= 0B f=0/0 [mpegts @ 0x7ff799866e00] File position after avformat_find_stream_info() is 68432 Format mpegts probed with size=2048 and score=100 sq= 0B f=0/0 [mpegts @ 0x7ff7998c0c00] stream=0 stream_type=1b pid=1e1 prog_reg_desc= [mpegts @ 0x7ff7998c0c00] stream=1 stream_type=f pid=1e2 prog_reg_desc= [mpegts @ 0x7ff7998c0c00] File position before avformat_find_stream_info() is 0 [h264 @ 0x7ff7998c1200] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7ff7998c0c00] All info foundq= 0KB sq= 0B f=0/0 [mpegts @ 0x7ff7998c0c00] File position after avformat_find_stream_info() is 87232 [AVIOContext @ 0x7ff79942fdc0] Statistics: 1218 bytes read, 0 seeks [AVIOContext @ 0x7ff79a220060] Statistics: 1218 bytes read, 0 seeks [AVIOContext @ 0x7ff79942fdc0] Statistics: 1218 bytes read, 0 seeks [AVIOContext @ 0x7ff79a2112a0] Statistics: 1218 bytes read, 0 seeks Regards, Andrew From xiaomou at gmail.com Thu May 23 07:26:08 2013 From: xiaomou at gmail.com (=?UTF-8?B?6IKW6LCL?=) Date: Thu, 23 May 2013 13:26:08 +0800 Subject: [FFmpeg-user] How to fix audio/video out of sync problem In-Reply-To: References: Message-ID: Thanks. But if i don't know the offset, how can I get that in an effective way. Generating two intermediate files will degrade system i/o performance. Regards xiaomou On Wed, May 22, 2013 at 5:24 PM, Carl Eugen Hoyos wrote: > ?? gmail.com> writes: > > > I have a mp4 file 1.mp4 in which the audio is about > > 2 seconds ahead of video. I want to fix this using > > ffmpeg without transcoding, just copy. > > -itsoffset may help: > $ ffmpeg -i 1.mp4 -itsoffset 2 -i 1.mp4 -codec copy -map 0:0 -map 1:1 2.mp4 > > You may have to move the itsoffset (and change between 2 and -2). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From andrey.smorkalov at gmail.com Thu May 23 08:19:52 2013 From: andrey.smorkalov at gmail.com (=?KOI8-R?B?4c7E0sXKIPPNz9LLwczP1w==?=) Date: Thu, 23 May 2013 10:19:52 +0400 Subject: [FFmpeg-user] Problems with videostreaming via ffmpeg In-Reply-To: References: Message-ID: Hello again, When video with audio didn't work (in both cases, when we use synchronized audio and video and when asynchronous) we see these messages in console: Failed to compensate for timestamp delta of 62947.737062 frame= 3008 fps=8.8 q=14.0 size= 42kB time=00:05:46.66 bitrate= 1.0kbits/ frame= 3014 fps=8.8 q=14.0 size= 42kB time=00:05:47.19 bitrate= 1.0kbits/ Failed to compensate for timestamp delta of 62950.762422 frame= 3019 fps=8.8 q=13.0 size= 42kB time=00:05:47.66 bitrate= 1.0kbits/ frame= 3022 fps=8.8 q=13.0 size= 42kB time=00:05:48.13 bitrate= 1.0kbits/ Failed to compensate for timestamp delta of 62953.839282 frame= 3027 fps=8.8 q=16.0 size= 42kB time=00:05:48.73 bitrate= 1.0kbits/ frame= 3031 fps=8.8 q=16.0 size= 42kB time=00:05:49.26 bitrate= 1.0kbits/ In case when everything is ok, we didn't see message about "timestamp delta" and have correct bitrate (200-500 kbits/s) in console. Filling buffer with audio code from our DirectShow audio filter: HRESULT CVAcademiaStream::FillBuffer(IMediaSample *pms) { CheckPointer(pms,E_POINTER); BYTE *pData; long lDataLen; pms->GetPointer(&pData); lDataLen = pms->GetSize(); CRefTime rtStart = m_rtSampleTime; int waitTime = m_timer.elapsed(); while (!m_isFirstFill && m_iRepeatTime*1000 - waitTime > 0) { Sleep(1); waitTime = m_timer.elapsed(); } ZeroMemory(pData, lDataLen); for (int i=0; iCopyAudioDataBufferForRead(); haveEnoughForCapture = StreamHaveEnoughData(captureObject, lDataLen); if (haveEnoughForCapture) { FillBufferFromStream(captureObject, pData, lDataLen); } } m_fillCnt++; int currTime = timeGetTime(); int deltaTime = currTime - m_startTime; // Increment to find the finish time if (m_isFirstFill) m_rtSampleTime += (LONG)m_iRepeatTime; else { m_rtSampleTime += (__int64)m_timer.elapsed()*10; } pms->SetTime((REFERENCE_TIME *) &rtStart,(REFERENCE_TIME *) &m_rtSampleTime); pms->SetSyncPoint(TRUE); m_isFirstFill = false; m_timer.restart(); return NOERROR; } // FillBuffer We compared our audio filter with some other open-source and tried to make some changes to get ffmpeg works stable (but unsuccessfully). Any ideas what can be wrong? With best regards, Andrey. 2013/5/21 Andrey Utkin : >> Any ideas? > > 1. Look suspiciously at your own code. > 2. Run correct and problematic cases with -loglevel debug, post it > here (but note that local guys don't like pastebin usage). > > -- > Andrey Utkin > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From evwielinga at podiumbv.nl Thu May 23 08:50:31 2013 From: evwielinga at podiumbv.nl (E.V.Wielinga [Podium B.V.]) Date: Thu, 23 May 2013 08:50:31 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: <519CEEDB.7030806@ewetel.net> References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> <519CEEDB.7030806@ewetel.net> Message-ID: <519DBC37.9000003@podiumbv.nl> I guess that: Chrome / Chromium are very "easy" on the WebM specs. And Firefox is very hard on the specs and doesn't give a (proper) error warning, only a loading "wheel"... But I see now 2 things! 1.) I send the wrong URL... Oeps... Sorry! 2.) It's for live WebM streaming... http://kenniscentrum.publiekeomroep.nl/pilot/WebM/wiki/WebmLive.html On 22-05-13 18:14, Hartmut wrote: > What should the page under the link tell us? > > Hartmut > > Am 22.05.2013 11:34, schrieb Podium B.V.: >> My college also had problems with FFMpeg, WebM and FireFox (when >> Chromium was perfect)... >> He gave me the following URL (from the Dutch National Television >> Website): >> >> http://kenniscentrum.publiekeomroep.nl/pilot/WebM/wiki/WebmVod.html >> >> Maybe it's something!? >> >> On 06-05-13 00:33, Hartmut wrote: >>> I have written my command-line 2 posts ago with hope that somebody >>> might try it with a new version, because I am not a compiler-type. I >>> get my ffmpeg-version from packman and if I get to know, that webm >>> with Firefox works with a new version then I will mail this >>> knowledge to Packman. >>> >>> Hartmut >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Thu May 23 11:20:53 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 23 May 2013 09:20:53 +0000 (UTC) Subject: [FFmpeg-user] How to fix audio/video out of sync problem References: Message-ID: ?? gmail.com> writes: > But if i don't know the offset, how can I get > that in an effective way. I am not sure I understand you: How is it supposed to work if you don't know the offset? > Generating two intermediate files will degrade > system i/o performance. My sample command did not produce an intermediate file. Please do not top-post here, Carl Eugen From cehoyos at ag.or.at Thu May 23 12:18:23 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 23 May 2013 10:18:23 +0000 (UTC) Subject: [FFmpeg-user] How can I use the fieldmatch filter to detelecine? References: Message-ID: L. Lee sbcglobal.net> writes: > My ffmpeg is the ancillary configuration > provided by the MPlayer build process. I may misunderstand this sentence but you cannot use / compile / run / whatever FFmpeg from inside the MPlayer directory. (afaict) Just checkout current FFmpeg as explained on http://ffmpeg.org/download.html and build it with ./configure --enable-gpl && make Carl Eugen PS: If you get no response on this mailing list, consider to "ping" your mail. From luc.juggery at gmail.com Thu May 23 11:34:06 2013 From: luc.juggery at gmail.com (Luc Juggery) Date: Thu, 23 May 2013 11:34:06 +0200 Subject: [FFmpeg-user] Cannot configure FFmpeg for iOS Message-ID: Hello, When following the tutorial at http://www.tangentsoftworks.com/blog/2012/11/12/how-to-prepare-your-mac-for-ios-development-with-ffmpeg-libraries/ I have the following error when running the first command (configuring FFmpeg for armv7 build) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc is unable to create an executable file. C compiler test failed. The config.log outputs: BEGIN /var/folders/9v/m1dp_kbx74g2bc22n0v7x8zm0000gn/T//ffconf.cMInVtLn.c 1 int main(void){ return 0; } END /var/folders/9v/m1dp_kbx74g2bc22n0v7x8zm0000gn/T//ffconf.cMInVtLn.c /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mfpu=neon -miphoneos-version-min=6.0 -mcpu=cortex-a9 -c -o /var/folders/9v/m1dp_kbx74g2bc22n0v7x8zm0000gn/T//ffconf.ZgZSNQOI.o /var/folders/9v/m1dp_kbx74g2bc22n0v7x8zm0000gn/T//ffconf.cMInVtLn.c /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=6.0 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -o /var/folders/9v/m1dp_kbx74g2bc22n0v7x8zm0000gn/T//ffconf.xD0kxN7e /var/folders/9v/m1dp_kbx74g2bc22n0v7x8zm0000gn/T//ffconf.ZgZSNQOI.o ld: library not found for -lcrt1.3.1.o collect2: ld returned 1 exit status C compiler test failed. Any idea of this problem ? Thanks and Regards, Luc From spieluhr at ewetel.net Thu May 23 20:52:49 2013 From: spieluhr at ewetel.net (Hartmut) Date: Thu, 23 May 2013 20:52:49 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: <519DBC37.9000003@podiumbv.nl> References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> <519CEEDB.7030806@ewetel.net> <519DBC37.9000003@podiumbv.nl> Message-ID: <519E6581.9030401@ewetel.net> I think you are right with Firefox and Chrome. And that doesn't irritate the developers of ffmpeg ... Hartmut Am 23.05.2013 08:50, schrieb E.V.Wielinga [Podium B.V.]: > > I guess that: > Chrome / Chromium are very "easy" on the WebM specs. > > And Firefox is very hard on the specs and doesn't give a (proper) > error warning, only a loading "wheel"... > > But I see now 2 things! > 1.) I send the wrong URL... Oeps... Sorry! > 2.) It's for live WebM streaming... > > http://kenniscentrum.publiekeomroep.nl/pilot/WebM/wiki/WebmLive.html > > > On 22-05-13 18:14, Hartmut wrote: >> What should the page under the link tell us? >> >> Hartmut >> >> Am 22.05.2013 11:34, schrieb Podium B.V.: >>> My college also had problems with FFMpeg, WebM and FireFox (when >>> Chromium was perfect)... >>> He gave me the following URL (from the Dutch National Television >>> Website): >>> >>> http://kenniscentrum.publiekeomroep.nl/pilot/WebM/wiki/WebmVod.html >>> >>> Maybe it's something!? >>> >>> On 06-05-13 00:33, Hartmut wrote: >>>> I have written my command-line 2 posts ago with hope that somebody >>>> might try it with a new version, because I am not a compiler-type. >>>> I get my ffmpeg-version from packman and if I get to know, that >>>> webm with Firefox works with a new version then I will mail this >>>> knowledge to Packman. >>>> >>>> Hartmut >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From compuvision.sr at gmail.com Thu May 23 21:31:07 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Thu, 23 May 2013 16:31:07 -0300 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: > I meant to include the regular expressions! Quoted to avoid getting > wrapped, apologies for the long lines >Cheers >Tom Excellent help. Is there also a way to tell if ffmpeg crashed or couldn't finish? I ask this as the last 'time stamp' was not 100% equal to duration. From onemda at gmail.com Thu May 23 23:33:27 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 23 May 2013 21:33:27 +0000 Subject: [FFmpeg-user] ffmpeg problem with creating thumbnail In-Reply-To: <1368976180158-4659218.post@n4.nabble.com> References: <1368976180158-4659218.post@n4.nabble.com> Message-ID: On 5/19/13, Dragan wrote: > I have a tube site and im using this function to generate thumbs from video > file > > $thumbwidth = 240; //thumb width > $thumbheight = 180; //thumb height > > $imagick_command = "-modulate 110,102,100 -sharpen 1x1 -enhance"; > > shell_exec("$ffmpeg_path -ss $first -i \"".$row[file]."\" -vcodec mjpeg > -vframes 1 -an -f rawvideo -s ".$thumbwidth."x".$thumbheight." > \"$image\""); > > shell_exec("/usr/local/bin/mogrify $imagick_command $image"); > > > Here is thumbs result, this image is just what i need, no border and etc.. > > > > but sometimes *depending on video size* i have thumbs like this > > > > Whats the best way to remove this *black space* from thumbs, but need to > keep thumb size 240x180 crop filter, if you want to remove black pixels, which will change height of video too. Nice filter would be to auto detect such black rectangles, and pass such metadata to crop filter. From nicolas.george at normalesup.org Thu May 23 23:34:51 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 23 May 2013 23:34:51 +0200 Subject: [FFmpeg-user] How to determine progression In-Reply-To: References: Message-ID: <20130523213451.GA13646@phare.normalesup.org> Le quartidi 4 prairial, an CCXXI, Albert Scholtalbers a ?crit?: > Excellent help. Did you have a look at the -report option? > Is there also a way to tell if ffmpeg crashed or couldn't finish? I ask > this as the last 'time stamp' was not 100% equal to duration. The exit code of ffmpeg is accurate. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From onemda at gmail.com Thu May 23 23:39:35 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 23 May 2013 21:39:35 +0000 Subject: [FFmpeg-user] Guidelines for streaming a live screen capture? In-Reply-To: References: <1369093183.42720.YahooMailNeo@web120704.mail.ne1.yahoo.com> Message-ID: On 5/20/13, Carl Eugen Hoyos wrote: > D D yahoo.com> writes: > >> - Lossless codec (or minimal loss) > > Afaict, these are two completely different > things. Well i think than any codec like h264, vp8 will be good, the only limitation is speed of hardware that is doing encoding vs compression ratio. (More compression - better performance is needed) Lossless only codecs usually do not have that high compression (that may be mandatory in your scenario) to be considered useful IMHO, From matthew at lifandi.org Fri May 24 02:59:30 2013 From: matthew at lifandi.org (Matthew Morgan) Date: Thu, 23 May 2013 20:59:30 -0400 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd In-Reply-To: <002701ce5701$2cc513a0$864f3ae0$@gmail.com> References: <519CA715.5000600@lifandi.org> <00eb01ce56e5$1a3cba10$4eb62e30$@gmail.com> <519CBCF4.6050302@lifandi.org> <002701ce5701$2cc513a0$864f3ae0$@gmail.com> Message-ID: <519EBB72.4090303@lifandi.org> On 05/22/2013 11:29 AM, Francois Visagie wrote: >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of Matthew Morgan >> Sent: 22 May 2013 14:41 >> To: FFmpeg user questions >> Subject: Re: [FFmpeg-user] deinterlacing with ntsc-dvd >> >> On 05/22/2013 08:08 AM, Francois Visagie wrote: >>>> -----Original Message----- >>>> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >>>> bounces at ffmpeg.org] On Behalf Of Matthew Morgan >>>> Sent: 22 May 2013 13:08 >>>> To: ffmpeg >>>> Subject: [FFmpeg-user] deinterlacing with ntsc-dvd >>>> >>>> I'm having trouble with some material I'm converting to DVD with >>>> ffmpeg; there is significant ghosting on some players, and some >>>> google searches >>> have >>>> pointed out that this is often related to interlacing. >>>> >>>> The source materialis interlaced, top-field dominant, but when I run >>>> it throughffmpeg using "-target ntsc-dvd", mediainfo shows the output >>>> as being progressive. >>>> >>>> Here is my ffmpeg command line: >>>> >>>> ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K >>>> /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target >>>> ntsc-dvd >>> -b:v >>>> 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018- >>>> ge70e258 Copyright (c) 2000-2013 the FFmpeg developers >>>> built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro >>> 4.6.3-1ubuntu5) >>>> configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl >>> --enable- >>>> libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree >>>> --enable- >>>> libv4l2 --enable-x11grab --enable-libvpx >>>> libavutil 52. 30.100 / 52. 30.100 >>>> libavcodec 55. 9.100 / 55. 9.100 >>>> libavformat 55. 7.100 / 55. 7.100 >>>> libavdevice 55. 0.100 / 55. 0.100 >>>> libavfilter 3. 65.100 / 3. 65.100 >>>> libswscale 2. 3.100 / 2. 3.100 >>>> libswresample 0. 17.102 / 0. 17.102 >>>> libpostproc 52. 3.100 / 52. 3.100 >>>> [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 >>>> microseconds [NULL @ 0xa43b780] start time is not set in >>>> estimate_timings_from_pts Input #0, mpeg, from >> 'dora_fairytale_cut.mpg': >>>> Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s >>>> Stream #0:0[0x1bf]: Data: dvd_nav_packet >>>> Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s >>>> Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 >>>> [SAR >>> 8:9 >>>> DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' >>> already exists. >>>> Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': >>>> Metadata: >>>> encoder : Lavf55.7.100 >>>> Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR >>>> 4:3], >>> q=2- >>>> 31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc >>>> Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream >>> mapping: >>>> Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) >>>> Stream #0:1 -> #0:1 (ac3 -> ac3) >>>> Press [q] to stop, [?] for help >>>> frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 >>>> bitrate=4546.2kbits/s dup=8 drop=0 video:1375112kB audio:154016kB >>>> subtitle:0 global headers:0kB muxing overhead 2.209759% >>>> >>>> My question is, should I be specifying any kind of options to make >>>> the deinterlacing happen correctly? Is this even likely to be my >>>> problem? If >>> you >>>> need it, I can also post mediainfo output for the source and output > files. >>> PS. The options ' -flags ildct+ilme' _preserve_ interlacing. This is >>> accepted by the DVD standard and incurs least quality loss. >> Thanks! Where in the command line should I put this? After `-target > ntsc- >> dvd`? > I normally do, to prevent my options being overridden by macro settings such > as -target. > Just in case anyone else on this list has had the same ghosting problem, preserving the interlacing DOES fix it! I did have to add `-top 1` to get it to mark it as top-field-first, but otherwise Francois' flags were perfect. So it's all in one place, here's my command now: ffmpeg -y -i dora_map_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K -flags ildct+ilme -top 1 /dev/null && ffmpeg -y -i dora_map_cut.mpg -pass 2 -target ntsc-dvd -b:v 4000K -flags ildct+ilme -top 1 dora_map_cut_compressed.mpg My question now is what do these flags actually do: prevent a deinterlacing filter from being run, or simply change what the header info says? Without the flags is the output video still interlaced but incorrectly marked as progressive? From ajsinclair at gmail.com Fri May 24 07:04:54 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Fri, 24 May 2013 15:04:54 +1000 Subject: [FFmpeg-user] Guidelines for streaming a live screen capture? In-Reply-To: References: <1369093183.42720.YahooMailNeo@web120704.mail.ne1.yahoo.com> Message-ID: h264 with UDP will be your fastest on a local LAN or managed WAN, if you want fast startup you will also need to keep your keyframes close. If pushing out onto a TCP network then go RTSP or RTMP for low latency. Note that player side buffering is also a big issue for this. I did some experiments with super low latency HLS for going to Ipad and could get latency down to about 2 secs but no lower. On 24 May 2013 07:39, Paul B Mahol wrote: > On 5/20/13, Carl Eugen Hoyos wrote: > > D D yahoo.com> writes: > > > >> - Lossless codec (or minimal loss) > > > > Afaict, these are two completely different > > things. > > Well i think than any codec like h264, vp8 will be good, > the only limitation is speed of hardware that is doing encoding vs > compression ratio. > (More compression - better performance is needed) > > Lossless only codecs usually do not have that high compression (that > may be mandatory in your scenario) to be > considered useful IMHO, > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From francois.visagie at gmail.com Fri May 24 09:27:23 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 24 May 2013 09:27:23 +0200 Subject: [FFmpeg-user] deinterlacing with ntsc-dvd In-Reply-To: <519EBB72.4090303@lifandi.org> References: <519CA715.5000600@lifandi.org> <00eb01ce56e5$1a3cba10$4eb62e30$@gmail.com> <519CBCF4.6050302@lifandi.org> <002701ce5701$2cc513a0$864f3ae0$@gmail.com> <519EBB72.4090303@lifandi.org> Message-ID: <011e01ce5850$287fdfa0$797f9ee0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Matthew Morgan > Sent: 24 May 2013 03:00 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] deinterlacing with ntsc-dvd > > On 05/22/2013 11:29 AM, Francois Visagie wrote: > >> -----Original Message----- > >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >> bounces at ffmpeg.org] On Behalf Of Matthew Morgan > >> Sent: 22 May 2013 14:41 > >> To: FFmpeg user questions > >> Subject: Re: [FFmpeg-user] deinterlacing with ntsc-dvd > >> > >> On 05/22/2013 08:08 AM, Francois Visagie wrote: > >>>> -----Original Message----- > >>>> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >>>> bounces at ffmpeg.org] On Behalf Of Matthew Morgan > >>>> Sent: 22 May 2013 13:08 > >>>> To: ffmpeg > >>>> Subject: [FFmpeg-user] deinterlacing with ntsc-dvd > >>>> > >>>> I'm having trouble with some material I'm converting to DVD with > >>>> ffmpeg; there is significant ghosting on some players, and some > >>>> google searches > >>> have > >>>> pointed out that this is often related to interlacing. > >>>> > >>>> The source materialis interlaced, top-field dominant, but when I > >>>> run it throughffmpeg using "-target ntsc-dvd", mediainfo shows the > >>>> output as being progressive. > >>>> > >>>> Here is my ffmpeg command line: > >>>> > >>>> ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v > >>>> 4000K /dev/null && ffmpeg -i dora_fairytale_cut.mpg -pass 2 -target > >>>> ntsc-dvd > >>> -b:v > >>>> 4000K dora_fairytale_cut_compressed.mpg ffmpeg version N-53018- > >>>> ge70e258 Copyright (c) 2000-2013 the FFmpeg developers > >>>> built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro > >>> 4.6.3-1ubuntu5) > >>>> configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl > >>> --enable- > >>>> libtheora --enable-libmp3lame --enable-libfaac --enable-nonfree > >>>> --enable- > >>>> libv4l2 --enable-x11grab --enable-libvpx > >>>> libavutil 52. 30.100 / 52. 30.100 > >>>> libavcodec 55. 9.100 / 55. 9.100 > >>>> libavformat 55. 7.100 / 55. 7.100 > >>>> libavdevice 55. 0.100 / 55. 0.100 > >>>> libavfilter 3. 65.100 / 3. 65.100 > >>>> libswscale 2. 3.100 / 2. 3.100 > >>>> libswresample 0. 17.102 / 0. 17.102 > >>>> libpostproc 52. 3.100 / 52. 3.100 > >>>> [mpeg @ 0xa43ae00] max_analyze_duration 5000000 reached at > 5024000 > >>>> microseconds [NULL @ 0xa43b780] start time is not set in > >>>> estimate_timings_from_pts Input #0, mpeg, from > >> 'dora_fairytale_cut.mpg': > >>>> Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s > >>>> Stream #0:0[0x1bf]: Data: dvd_nav_packet > >>>> Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s > >>>> Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 > >>>> [SAR > >>> 8:9 > >>>> DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc File '/dev/null' > >>> already exists. > >>>> Overwrite ? [y/N] y Output #0, dvd, to '/dev/null': > >>>> Metadata: > >>>> encoder : Lavf55.7.100 > >>>> Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR > >>>> 4:3], > >>> q=2- > >>>> 31, pass 1, 4000 kb/s, 90k tbn, 29.97 tbc > >>>> Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s > >>>> Stream > >>> mapping: > >>>> Stream #0:2 -> #0:0 (mpeg2video -> mpeg2video) > >>>> Stream #0:1 -> #0:1 (ac3 -> ac3) > >>>> Press [q] to stop, [?] for help > >>>> frame=84404 fps=107 q=3.4 Lsize= 1562918kB time=00:46:56.28 > >>>> bitrate=4546.2kbits/s dup=8 drop=0 video:1375112kB audio:154016kB > >>>> subtitle:0 global headers:0kB muxing overhead 2.209759% > >>>> > >>>> My question is, should I be specifying any kind of options to make > >>>> the deinterlacing happen correctly? Is this even likely to be my > >>>> problem? If > >>> you > >>>> need it, I can also post mediainfo output for the source and output > > files. > >>> PS. The options ' -flags ildct+ilme' _preserve_ interlacing. This is > >>> accepted by the DVD standard and incurs least quality loss. > >> Thanks! Where in the command line should I put this? After `-target > > ntsc- > >> dvd`? > > I normally do, to prevent my options being overridden by macro > > settings such as -target. > > > Just in case anyone else on this list has had the same ghosting problem, > preserving the interlacing DOES fix it! I did have to add `-top 1` to get it to > mark it as top-field-first, but otherwise Francois' flags were perfect. So it's all > in one place, here's my command now: > > ffmpeg -y -i dora_map_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K -flags > ildct+ilme -top 1 /dev/null && ffmpeg -y -i dora_map_cut.mpg -pass 2 - > target ntsc-dvd -b:v 4000K -flags ildct+ilme -top 1 > dora_map_cut_compressed.mpg > > My question now is what do these flags actually do: prevent a deinterlacing > filter from being run, or simply change what the header info says? Without > the flags is the output video still interlaced but incorrectly marked as > progressive? >From 'ffmpeg -h': ... ilme E.V.. interlaced motion estimation ... ildct E.V.. use interlaced dct ... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tevans.uk at googlemail.com Fri May 24 10:49:54 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Fri, 24 May 2013 09:49:54 +0100 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: <519E6581.9030401@ewetel.net> References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> <519CEEDB.7030806@ewetel.net> <519DBC37.9000003@podiumbv.nl> <519E6581.9030401@ewetel.net> Message-ID: On Thu, May 23, 2013 at 7:52 PM, Hartmut wrote: > I think you are right with Firefox and Chrome. And that doesn't irritate the > developers of ffmpeg ... > Hartmut Carl informed you that the version of ffmpeg you are using is too old. Have you updated to the latest version and verified this bug even exists still? If you're not willing to do any work to fix a problem you are reporting, why should anyone else? Cheers Tom From soho123.2012 at gmail.com Fri May 24 10:51:01 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 24 May 2013 16:51:01 +0800 Subject: [FFmpeg-user] Fwd: ffserver parse ffm header got wrong size and stream index, then no any video data output In-Reply-To: References: Message-ID: Hi Carl, the issue is the same as :http://roundup.libav.org/issue855 ffserver hangs when feeding it via http Do you have any idea? ================================================== hi All, I got the error when I using vlc to connect ffserver to get video stream, the video data is from usb webcam. video stream will stop when the error is occur the ffserver conf: Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoCodec mjpeg Noaudio ffserver command : ffserver -f /etc/ffserver.conf & ffmpeg command: ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm the output log: ==================================================== ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-c flags=-I/users/stream_server/ShareLib_Install/bin/../include --extra-libs='-L/users/stream_server/Shar eLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Wed May 8 11:17:50 2013 FFserver started. ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -v codec copy http://localhost:8090/feed1.ffm ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/users/stream_server/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-c flags=-I/users/stream_server/ShareLib_Install/bin/../include --extra-libs='-L/users/stream_server/Shar eLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [video4linux2,v4l2 @ 0x68d650] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 38.490000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc Wed May 8 11:18:06 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf54.63.104 Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=2-31, -5 kb/s, 30 fps, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 18 fps=0.0 q=-1.0 size= 1076kB time=00:00:00.80 bitrate=11018.2kbits/s frame= 34 fps= 33 q=-1.0 size= 2244kB time=00:00:01.34 bitrate=13718.5kbits/s frame= 49 fps= 32 q=-1.0 size= 3336kB time=00:00:01.84 bitrate=14852.4kbits/s frame= 64 fps= 32 q=-1.0 size= 4376kB time=00:00:02.34 bitrate=15319.7kbits/s frame= 79 fps= 31 q=-1.0 size= 5468kB time=00:00:02.84 bitrate=15772.5kbits/s frame= 94 fps= 31 q=-1.0 size= 6624kB time=00:00:03.34 bitrate=16246.6kbits/s frame= 109 fps= 31 q=-1.0 size= 7788kB time=00:00:03.84 bitrate=16614.4kbits/s frame= 124 fps= 31 q=-1.0 size= 8960kB time=00:00:04.34 bitrate=16912.5kbits/s frame= 139 fps= 31 q=-1.0 size= 10128kB time=00:00:04.84 bitrate=17142.3kbits/s frame= 154 fps= 31 q=-1.0 size= 11296kB time=00:00:05.34 bitrate=17329.0kbits/s frame= 168 fps= 30 q=-1.0 size= 12384kB time=00:00:05.81 bitrate=17461.2kbits/s frame= 183 fps= 30 q=-1.0 size= 13544kB time=00:00:06.31 bitrate=17583.6kbits/s frame= 198 fps= 30 q=-1.0 size= 14704kB time=00:00:06.81 bitrate=17688.0kbits/s frame= 213 fps= 30 q=-1.0 size= 15860kB time=00:00:07.31 bitrate=17773.6kbits/s frame= 228 fps= 30 q=-1.0 size= 17020kB time=00:00:07.81 bitrate=17852.5kbits/s frame= 243 fps= 30 q=-1.0 size= 18180kB time=00:00:08.31 bitrate=17921.8kbits/s frame= 258 fps= 30 q=-1.0 size= 19340kB time=00:00:08.81 bitrate=17983.3kbits/s frame= 273 fps= 30 q=-1.0 size= 20500kB time=00:00:09.31 bitrate=18038.2kbits/s frame= 288 fps= 30 q=-1.0 size= 21656kB time=00:00:09.81 bitrate=18084.2kbits/s frame= 303 fps= 30 q=-1.0 size= 22816kB time=00:00:10.31 bitrate=18128.9kbits/s frame= 318 fps= 30 q=-1.0 size= 23972kB time=00:00:10.81 bitrate=18166.4kbits/s Wed May 8 11:18:17 2013 [ffm @ 0x663a20]invalid stream index 90 frame= 333 fps= 30 q=-1.0 size= 25132kB time=00:00:11.31 bitrate=18203.5kbits/s Wed May 8 11:18:18 2013 [ffm @ 0x663a20]invalid stream index 120 frame= 348 fps= 30 q=-1.0 size= 26288kB time=00:00:11.81 bitrate=18234.7kbits/s frame= 363 fps= 30 q=-1.0 size= 27448kB time=00:00:12.31 bitrate=18266.0kbits/s frame= 378 fps= 30 q=-1.0 size= 28604kB time=00:00:12.82 bitrate=18278.0kbits/s frame= 393 fps= 30 q=-1.0 size= 29768kB time=00:00:13.32 bitrate=18307.8kbits/s frame= 408 fps= 30 q=-1.0 size= 30936kB time=00:00:13.82 bitrate=18337.7kbits/s frame= 423 fps= 30 q=-1.0 size= 32108kB time=00:00:14.32 bitrate=18367.9kbits/s frame= 438 fps= 30 q=-1.0 size= 33276kB time=00:00:14.82 bitrate=18393.9kbits/s frame= 453 fps= 30 q=-1.0 size= 34444kB time=00:00:15.32 bitrate=18418.1kbits/s frame= 468 fps= 30 q=-1.0 size= 35612kB time=00:00:15.82 bitrate=18440.8kbits/s frame= 483 fps= 30 q=-1.0 size= 36780kB time=00:00:16.32 bitrate=18462.1kbits/s frame= 498 fps= 30 q=-1.0 size= 37948kB time=00:00:16.82 bitrate=18482.2kbits/s frame= 513 fps= 30 q=-1.0 size= 39116kB time=00:00:17.32 bitrate=18501.1kbits/s frame= 528 fps= 30 q=-1.0 size= 40284kB time=00:00:17.82 bitrate=18518.9kbits/s frame= 543 fps= 30 q=-1.0 size= 41448kB time=00:00:18.32 bitrate=18534.0kbits/s frame= 558 fps= 30 q=-1.0 size= 42612kB time=00:00:18.82 bitrate=18548.2kbits/s frame= 573 fps= 30 q=-1.0 size= 43780kB time=00:00:19.32 bitrate=18563.4kbits/s Wed May 8 11:18:25 2013 192.168.1.100 - - [GET] "/test.mjpeg HTTP/1.1" 200 1499094 frame= 588 fps= 30 q=-1.0 size= 44944kB time=00:00:19.82 bitrate=18576.2kbits/s frame= 603 fps= 30 q=-1.0 size= 46108kB time=00:00:20.32 bitrate=18588.4kbits/s frame= 618 fps= 30 q=-1.0 size= 47272kB time=00:00:20.82 bitrate=18600.0kbits/s frame= 633 fps= 30 q=-1.0 size= 48436kB time=00:00:21.32 bitrate=18611.1kbits/s frame= 648 fps= 30 q=-1.0 size= 49604kB time=00:00:21.82 bitrate=18623.1kbits/s frame= 663 fps= 30 q=-1.0 size= 50760kB time=00:00:22.32 bitrate=18630.2kbits/s frame= 678 fps= 30 q=-1.0 size= 51896kB time=00:00:22.82 bitrate=18629.8kbits/s frame= 693 fps= 30 q=-1.0 size= 53024kB time=00:00:23.32 bitrate=18626.6kbits/s frame= 708 fps= 30 q=-1.0 size= 54144kB time=00:00:23.82 bitrate=18620.8kbits/s frame= 723 fps= 30 q=-1.0 size= 55264kB time=00:00:24.32 bitrate=18615.2kbits/s frame= 738 fps= 30 q=-1.0 size= 56388kB time=00:00:24.82 bitrate=18611.2kbits/s frame= 753 fps= 30 q=-1.0 size= 57508kB time=00:00:25.32 bitrate=18606.1kbits/s frame= 768 fps= 30 q=-1.0 size= 58628kB time=00:00:25.82 bitrate=18601.1kbits/s frame= 783 fps= 30 q=-1.0 size= 59748kB time=00:00:26.32 bitrate=18596.3kbits/s frame= 798 fps= 30 q=-1.0 size= 60876kB time=00:00:26.82 bitrate=18594.2kbits/s frame= 808 fps= 30 q=-1.0 Lsize= 61628kB time=00:00:27.16 bitrate=18588.2kbits/s video:61400kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.371715% Wed May 8 11:18:33 2013 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 63107072 Received signal 2: terminating. # ================================================== ffmpeg seems keep running, but no any video data output by ffserver, the "invalid stream index" is print out from /libavformat/fmdec.c, function ffm_read_packet(), and I also get the error, function ffm_read_packet(), case READ_DATA: size = AV_RB24(ffm->header + 2); the value of size is very very large, then ffm_is_avail_data() will return EAGAIN, such that there is no any video data can be output. Does anyone have idea? Any input is very appreciated! Best Regards, Soho From tevans.uk at googlemail.com Fri May 24 10:55:31 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Fri, 24 May 2013 09:55:31 +0100 Subject: [FFmpeg-user] Guidelines for streaming a live screen capture? In-Reply-To: <1369093183.42720.YahooMailNeo@web120704.mail.ne1.yahoo.com> References: <1369093183.42720.YahooMailNeo@web120704.mail.ne1.yahoo.com> Message-ID: On Tue, May 21, 2013 at 12:39 AM, D D wrote: > Hi, > > I would like to stream a live screen capture to ffserver. The basic requirements are: > - Lossless codec (or minimal loss) > > - High compression - very little bandwidth if no screen changes are occurring > - No buffering (or limited buffering) at the client, in case the server connection is too slow > > Do you have any recommendations for which options should be used in the ffmpeg capture > to satisfy these requirements? > > Also, is ffserver a good choice for distributing live screen captures? > > Thanks! > David So, a lossless compression algorithm that has high compression ratios and can run in real time. Let me know when you find it! (this is like the old software development maxim, "fast, good, cheap: pick two"). Cheers Tom From soho123.2012 at gmail.com Fri May 24 11:24:56 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 24 May 2013 17:24:56 +0800 Subject: [FFmpeg-user] how to co-work between ffserver and ffmpeg Message-ID: Hi all, Can anyone give some comments about : how to co-work between ffserver and ffmpeg? When ffmpeg is started, I can see ffserver receive data , but the source ip address is 127.0.0.1. and when I use VLC from remote host with the url: http://:8090/test.asf then ffserver can output video stream to the VLC client. but I confused about: ffmpeg will keep write video data to feed, and ffserver should read video data from feed with the format of feed, ffmpeg may corrupt the content of feed if ffserver is reading at the same time. then ffserver can not parse the ffm header. Can someone give some comments about this mechanism? the command I use: ffserver.conf for the stream: Feed feed1.ffm Format asf AVOptionVideo flags +global_header VideoSize 1280x720 VideoFrameRate 12 VideoCodec libx264 NoAudio ffserver -f /etc/ffserver.conf & ffmpeg -f video4linux2 -r 30 -s 1280x720 -input_format h264 -i /dev/video1 -vcodec copy http://localhost:8090/feed1.ffm > /dev/null 2>&1 & From mailinglist at podiumbv.nl Fri May 24 11:30:29 2013 From: mailinglist at podiumbv.nl (Podium B.V.) Date: Fri, 24 May 2013 11:30:29 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> <519CEEDB.7030806@ewetel.net> <519DBC37.9000003@podiumbv.nl> <519E6581.9030401@ewetel.net> Message-ID: <519F3335.2040707@podiumbv.nl> I will checkout the lastest version of FFMpeg this weekend! (and the latest libvpx / libtheora libaries) We have (at the moment) a perfect test environment where an digital cable tuner is connected (by HDMI) to an Blackmagic Decklink Card and a test Ubuntu installation. Also we have a test Ubuntu Server with FFServer installed... So monday I post the results (live streaming WebM)! @Hartmut: Do I also have to test something special for you? Ed On 24-05-13 10:49, Tom Evans wrote: > On Thu, May 23, 2013 at 7:52 PM, Hartmut wrote: >> I think you are right with Firefox and Chrome. And that doesn't irritate the >> developers of ffmpeg ... >> Hartmut > Carl informed you that the version of ffmpeg you are using is too old. > Have you updated to the latest version and verified this bug even > exists still? > > If you're not willing to do any work to fix a problem you are > reporting, why should anyone else? > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From 921353606 at qq.com Fri May 24 11:43:19 2013 From: 921353606 at qq.com (921353606@qq) Date: Fri, 24 May 2013 17:43:19 +0800 Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, <201305151950265780809@qq.com>, <201305160850296299251@qq.com>, , <201305170935326402882@qq.com> Message-ID: <201305241743184688634@qq.com> From: Carl Eugen Hoyos Date: 2013-05-16 16:54 To: ffmpeg-user Subject: Re: [FFmpeg-user] meet a question for inspecting a wmv file >921353606 qq <921353606 qq.com> writes: >> > >>Which player / codec supports this file? >> > > > >> >I only know it was supported by window media player. > > > >>Doesn't work here. >> >> It can be played by Windows Media Player 11.0.5721.5262 >> on Windows XP Professional Service Pack 3. >Does not work here. >If you can find out which codec you installed that allows >playback, we would at least have a name for the ticket I >would open. >Carl Eugen >I tried it again with mencoder.exe to find some clue. It was failed and the ouput was: >E:\tools\mplayer>mencoder.exe e:\video\yj_Screen.wmv -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o m7.avi >MEncoder Redxii-SVN-r36265-4.6.3 (C) 2000-2013 MPlayer Team >Custom build by Redxii, http://smplayer.sourceforge.net >Compiled against FFmpeg version N-52985-gcbcc5cb >Build date: Sat May 11 23:43:58 EDT 2013 >success: format: 0 data: 0x0 - 0x89cd52 >libavformat version 55.7.100 (internal) >ASF file format detected. >[asfheader] Video stream found, -vid 2 >VIDEO: [EJQV] 1024x768 24bpp 1000.000 fps 232.1 kbps (28.3 kbyte/s) >[V] filefmt:6 fourcc:0x56514A45 size:1024x768 fps:1000.000 ftime:=0.0010 >xvid: using library version 1.3.2 (build xvid-1.3.2) >Opening video filter: [expand osd=1] >Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== >Cannot find codec matching selected -vo and video format 0x56514A45. ========================================================================== >Exiting... Now I am sure the video can be played in windows media player because I installed an application of a third party. The application supports an especial codec which can be used by windows media player. Can FFmpeg work with the dll of the especial codec if I find it, Or I have to get the sourcecode of the codec and complile it with FFmpeg? Please give me an idea and thanks a lot for any help. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Fri May 24 13:20:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 24 May 2013 11:20:38 +0000 (UTC) Subject: [FFmpeg-user] meet a question for inspecting a wmv file References: , <201305151839344219833@qq.com>, <201305151909218904297@qq.com>, <201305151950265780809@qq.com>, <201305160850296299251@qq.com>, , <201305170935326402882@qq.com> <201305241743184688634@qq.com> Message-ID: 921353606 qq <921353606 qq.com> writes: > Now I am sure the video can be played in windows > media player because I installed an application > of a third party. The application supports an > especial codec which can be used by windows media > player. (My question was:) What is the name of the third party application / what is the name of the codec? Carl Eugen From soho123.2012 at gmail.com Fri May 24 13:43:16 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 24 May 2013 19:43:16 +0800 Subject: [FFmpeg-user] ffserver can not get valid ffm header around ffm file size Message-ID: Hi All, I got the problem about ffserver can not get a valid ffm header. Such that ffserver can not get correct packet size and stream index around all ffm file size. how to reset the index for ffserver read video data for output stream? Does anyone have idea? From nichot20 at yahoo.com Fri May 24 16:46:04 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 24 May 2013 15:46:04 +0100 Subject: [FFmpeg-user] ffmpeg problem with creating thumbnail In-Reply-To: References: <1368976180158-4659218.post@n4.nabble.com> Message-ID: <519F7D2C.6040501@yahoo.com> On 23/05/13 22:33, Paul B Mahol wrote: > On 5/19/13, Dragan wrote: >> I have a tube site and im using this function to generate thumbs from video >> file >> >> $thumbwidth = 240; //thumb width >> $thumbheight = 180; //thumb height >> >> $imagick_command = "-modulate 110,102,100 -sharpen 1x1 -enhance"; >> >> shell_exec("$ffmpeg_path -ss $first -i \"".$row[file]."\" -vcodec mjpeg >> -vframes 1 -an -f rawvideo -s ".$thumbwidth."x".$thumbheight." >> \"$image\""); >> >> shell_exec("/usr/local/bin/mogrify $imagick_command $image"); >> >> >> Here is thumbs result, this image is just what i need, no border and etc.. >> >> >> >> but sometimes *depending on video size* i have thumbs like this >> >> >> >> Whats the best way to remove this *black space* from thumbs, but need to >> keep thumb size 240x180 > > crop filter, if you want to remove black pixels, which will change > height of video too. > > Nice filter would be to auto detect such black rectangles, and pass > such metadata to crop filter. cropdetect will give you parsable output you can use in a second pass.. > _______________________________________________ > [...] -- Tim From forumwt at gmail.com Fri May 24 02:40:56 2013 From: forumwt at gmail.com (Dragan) Date: Thu, 23 May 2013 17:40:56 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg problem with creating thumbnail In-Reply-To: References: <1368976180158-4659218.post@n4.nabble.com> Message-ID: <1369356056687-4659295.post@n4.nabble.com> @Paul B Mahol thanks for answer, can you give me example for "auto detect" ? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-problem-with-creating-thumbnail-tp4659218p4659295.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mohussein22 at gmail.com Fri May 24 11:46:52 2013 From: mohussein22 at gmail.com (Mohamed Hussein) Date: Fri, 24 May 2013 05:46:52 -0400 Subject: [FFmpeg-user] player Message-ID: how can i get the player to go to full screen From spieluhr at ewetel.net Fri May 24 21:01:59 2013 From: spieluhr at ewetel.net (Hartmut) Date: Fri, 24 May 2013 21:01:59 +0200 Subject: [FFmpeg-user] player In-Reply-To: References: Message-ID: <519FB927.8030404@ewetel.net> f Am 24.05.2013 11:46, schrieb Mohamed Hussein: > how can i get the player to go to full screen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From spieluhr at ewetel.net Fri May 24 21:04:01 2013 From: spieluhr at ewetel.net (Hartmut) Date: Fri, 24 May 2013 21:04:01 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: <519F3335.2040707@podiumbv.nl> References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> <519CEEDB.7030806@ewetel.net> <519DBC37.9000003@podiumbv.nl> <519E6581.9030401@ewetel.net> <519F3335.2040707@podiumbv.nl> Message-ID: <519FB9A1.1050701@ewetel.net> Thanks, I don't need live streaming, but webm-Files played by Firefox like last year ... Hartmut Am 24.05.2013 11:30, schrieb Podium B.V.: > I will checkout the lastest version of FFMpeg this weekend! > (and the latest libvpx / libtheora libaries) > > We have (at the moment) a perfect test environment where > an digital cable tuner is connected (by HDMI) to an Blackmagic > Decklink Card and a test Ubuntu installation. > Also we have a test Ubuntu Server with FFServer installed... > > So monday I post the results (live streaming WebM)! > > @Hartmut: Do I also have to test something special for you? > > Ed > > > On 24-05-13 10:49, Tom Evans wrote: >> On Thu, May 23, 2013 at 7:52 PM, Hartmut wrote: >>> I think you are right with Firefox and Chrome. And that doesn't >>> irritate the >>> developers of ffmpeg ... >>> Hartmut >> Carl informed you that the version of ffmpeg you are using is too old. >> Have you updated to the latest version and verified this bug even >> exists still? >> >> If you're not willing to do any work to fix a problem you are >> reporting, why should anyone else? >> >> Cheers >> >> Tom >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From spieluhr at ewetel.net Fri May 24 21:12:35 2013 From: spieluhr at ewetel.net (Hartmut) Date: Fri, 24 May 2013 21:12:35 +0200 Subject: [FFmpeg-user] FFmpeg, webm and Firefox In-Reply-To: References: <5179160D.5090905@ewetel.net> <517927A6.6090705@ewetel.net> <518620BF.7070005@ewetel.net> <5186DE41.9060909@ewetel.net> <519C9108.9080909@podiumbv.nl> <519CEEDB.7030806@ewetel.net> <519DBC37.9000003@podiumbv.nl> <519E6581.9030401@ewetel.net> Message-ID: <519FBBA3.2000406@ewetel.net> I get my ffmpeg-packages from packman and I informed Carl, that I'm not a compiling-type. What I want from the developers, is something like: "Yes, it is like you told us and we are working on it" or "We can not confirm that" or "We already know but it does not bother us" or "We found the bug and fixed it" or so. If the last message arives, then I will inform packman, until then I will wait. The developers of FFMpeg can not ignore Firefox ... Regards Hartmut Am 24.05.2013 10:49, schrieb Tom Evans: > On Thu, May 23, 2013 at 7:52 PM, Hartmut wrote: >> I think you are right with Firefox and Chrome. And that doesn't irritate the >> developers of ffmpeg ... >> Hartmut > Carl informed you that the version of ffmpeg you are using is too old. > Have you updated to the latest version and verified this bug even > exists still? > > If you're not willing to do any work to fix a problem you are > reporting, why should anyone else? > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- ------------------------------------------------------------------------ "Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig." (Einstein) From zsq20030710 at gmail.com Sat May 25 02:30:53 2013 From: zsq20030710 at gmail.com (stanley zhang) Date: Sat, 25 May 2013 08:30:53 +0800 Subject: [FFmpeg-user] Weird issue when to link libraries of ffmpeg. Message-ID: Hi, All, I want to build myself application based on ffmpeg libraries. What I did are very simple: (1) Configure, build and install latest ffmpeg; (2) Copy ffplay.c (changed to play.c), cmdutils.c, config.h, cmdutils_common_opts.h, and cmdutils.h from the parent directory of ffmpeg to my self directory. (3) Create a simple Makefile as the followings: all: play play:play.c cmdutils.c gcc -o play play.c cmdutils.c -lSDL -lavcodec -lavformat -lavutil -lswscale -lavfilter -lpostproc -lswresample (4) Build it. The errors can be met as the followings: ~/fftest/play$ make gcc -o play play.c cmdutils.c -lSDL -lavcodec -lavformat -lavutil -lswscale -lavfilter -lpostproc -lswresample /usr/local/lib/libavfilter.a(buffersink.o): In function `read_from_fifo': /home/stanley/ffmpeg/libavfilter/buffersink.c:166: undefined reference to `av_audio_fifo_read' ...(Some other logs are omitted) But I am sure the right libraries are linked and the function "read_from_fifo" are defined in the library libavutil.a: stanley at stanley-P31-ES3G:~/fftest/play$ objdump /usr/local/lib/libavutil.a -t |grep av_audio_fifo_size 00000480 g F .text 00000008 av_audio_fifo_size stanley at stanley-P31-ES3G:~/fftest/play$ objdump /usr/local/lib/libavfilter.a -t|grep av_buffersink_get_samples 00000790 g F .text 000001d3 av_buffersink_get_samples It seems not to be version issue. Is there anyone meeting the similar issue? Who can give some hints? Thanks a lot! From ajsinclair at gmail.com Sat May 25 04:11:15 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Sat, 25 May 2013 12:11:15 +1000 Subject: [FFmpeg-user] Getting multi rate HLS to play In-Reply-To: References: Message-ID: On 23 May 2013 14:42, Andrew Sinclair wrote: > Hi All, > > I am having issues getting ffplay to a multi bitrate AppleHTTP/HLS stream, > the stream opens but it never plays yet the individual variant streams play > fine. > > Any ideas on how to get a multirate HLS file to play? > > Can anyone just test these URLs on ffplay as well and let me know what kind of playback experience you have? http://iphonestreaming.abc.net.au/news24/news24.m3u8 (this one has multiple variant playlists, on Akamai so should play OK in multiple countries once going) http://iphonestreaming.abc.net.au/news24/news24_hi.m3u8 (one of the indiviudal variants) http://iphone.envivio.com/iphone/downloads/ch6/index.m3u8 (another one with multiple variant lists) I need to check the hls.c (I assume this is the correct location) in more detail but the behaviour I am seeing which is odd is: Downloads master playlist Downloads variant playlists Downloads the 2nd l last ts from each playlist Downloads the lowest rate playlist Does a lot of waiting Eventually plays after long delay From audionuma at gmail.com Sat May 25 08:59:29 2013 From: audionuma at gmail.com (Manu N) Date: Sat, 25 May 2013 08:59:29 +0200 Subject: [FFmpeg-user] Getting multi rate HLS to play In-Reply-To: References: Message-ID: 2013/5/25 Andrew Sinclair > On 23 May 2013 14:42, Andrew Sinclair wrote: > > > Hi All, > > > Hello, > > I am having issues getting ffplay to a multi bitrate AppleHTTP/HLS > stream, > > the stream opens but it never plays yet the individual variant streams > play > > fine. > > > > Any ideas on how to get a multirate HLS file to play? > > > > > Can anyone just test these URLs on ffplay as well and let me know what kind > of playback experience you have? > Did some tests from a French IP. Unfortunately, my message has been refused because of size too large, so here's a link to the output : https://www.dropbox.com/s/42kny4g4xbutvu9/ffplayoutput.txt Not ideal but I didn't want to cut meaningful parts of the ffplay output. Manuel From pkoshevoy at gmail.com Sat May 25 13:39:55 2013 From: pkoshevoy at gmail.com (Pavel Koshevoy) Date: Sat, 25 May 2013 05:39:55 -0600 Subject: [FFmpeg-user] Weird issue when to link libraries of ffmpeg. In-Reply-To: References: Message-ID: <51A0A30B.2080001@gmail.com> On 5/24/13 6:30 PM, stanley zhang wrote: > Hi, All, > > I want to build myself application based on ffmpeg libraries. What I did > are very simple: > (1) Configure, build and install latest ffmpeg; > (2) Copy ffplay.c (changed to play.c), cmdutils.c, config.h, > cmdutils_common_opts.h, and cmdutils.h from the parent directory of ffmpeg > to my self directory. > (3) Create a simple Makefile as the followings: > all: play > play:play.c cmdutils.c > gcc -o play play.c cmdutils.c -lSDL -lavcodec -lavformat -lavutil > -lswscale -lavfilter -lpostproc -lswresample > > (4) Build it. The errors can be met as the followings: > ~/fftest/play$ make > gcc -o play play.c cmdutils.c -lSDL -lavcodec -lavformat -lavutil -lswscale > -lavfilter -lpostproc -lswresample > /usr/local/lib/libavfilter.a(buffersink.o): In function `read_from_fifo': > /home/stanley/ffmpeg/libavfilter/buffersink.c:166: undefined reference to > `av_audio_fifo_read' > ...(Some other logs are omitted) > > But I am sure the right libraries are linked and the function > "read_from_fifo" are defined in the library libavutil.a: > stanley at stanley-P31-ES3G:~/fftest/play$ objdump /usr/local/lib/libavutil.a > -t |grep av_audio_fifo_size > 00000480 g F .text 00000008 av_audio_fifo_size > stanley at stanley-P31-ES3G:~/fftest/play$ objdump > /usr/local/lib/libavfilter.a -t|grep av_buffersink_get_samples > 00000790 g F .text 000001d3 av_buffersink_get_samples > > It seems not to be version issue. > > You are linking to static libraries, therefore the order in which you link to each library matters. avfilter probably depends on avutil, so try putting -lavutil after -lavfilter Pavel. From francois.visagie at gmail.com Sat May 25 13:59:37 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sat, 25 May 2013 13:59:37 +0200 Subject: [FFmpeg-user] How to add padding silence for MP4 container? Message-ID: <022801ce593f$57283e70$0578bb50$@gmail.com> Hi All, I'm trying to help someone who needs to delay his audio stream by 2s: he got given a .mp4 file containing only video and a .aac file with audio which he needs to mux together delaying the audio by 2s. This works perfectly for MKV: ffmpeg -i invideo.mp4 -itsoffset 00:00:02.000 -i inaudio.aac -codec:v copy -codec:a copy out.mkv However, he'd prefer the MP4 container format. Although the ffmpeg command completes perfectly, no player on my machine respects the MP4 timestamps and I've seen this reported elsewhere also. So instead of using timestamps with MP4, is there a way to tell ffmpeg to insert 2s of silence at the beginning of the audio? Many thanks, Francois Francois Visagie T: +27 (83) 326-4358 F: +27 (86) 511-3490 E: francois.visagie at gmail.com From horsley1953 at gmail.com Sat May 25 14:45:45 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Sat, 25 May 2013 08:45:45 -0400 Subject: [FFmpeg-user] How to add padding silence for MP4 container? In-Reply-To: <022801ce593f$57283e70$0578bb50$@gmail.com> References: <022801ce593f$57283e70$0578bb50$@gmail.com> Message-ID: <20130525084545.4b9f446c@zooty> > So instead of using timestamps with MP4, is there a way to tell ffmpeg to > insert 2s of silence at the beginning of the audio? I don't know about using ffmpeg itself, but I fiddle with audio sync problems all the time and I use sox to generate silence when I need it. For example: sox -n -r 48000 -c 2 -e signed-integer -b 16 quiet.wav trim 0 2.0 That will generate 2 seconds of silence in a 16 bit stereo PCM .wav file format. You can then concatenate that with another audio file like so: sox quiet.wav main.wav delayed.wav I've only ever done this with uncompressed PCM files, don't know if audio compression might introduce other problems. I tend to do the mp3 or aac compression as the last step when muxing the audio and video together with ffmpeg. See all my trails and tribulations archiving TV shows off my TiVo (and correcting audio sync) at: http://home.comcast.net/~tomhorsley/game/ffmpeg.html From onemda at gmail.com Sat May 25 15:03:17 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sat, 25 May 2013 13:03:17 +0000 Subject: [FFmpeg-user] How to add padding silence for MP4 container? In-Reply-To: <022801ce593f$57283e70$0578bb50$@gmail.com> References: <022801ce593f$57283e70$0578bb50$@gmail.com> Message-ID: On 5/25/13, Francois Visagie wrote: > Hi All, > > > > I'm trying to help someone who needs to delay his audio stream by 2s: he > got > given a .mp4 file containing only video and a .aac file with audio which he > needs to mux together delaying the audio by 2s. > > > > This works perfectly for MKV: > > > > ffmpeg -i invideo.mp4 -itsoffset 00:00:02.000 -i > inaudio.aac > -codec:v copy -codec:a copy out.mkv > > > > However, he'd prefer the MP4 container format. Although the ffmpeg command > completes perfectly, no player on my machine respects the MP4 timestamps > and > I've seen this reported elsewhere also. > > > > So instead of using timestamps with MP4, is there a way to tell ffmpeg to > insert 2s of silence at the beginning of the audio? ffmpeg -i input -af aresample=firts_pts=X where X is 2 * sample_rate of your audio stream. you can't use -codec:a copy to insert real silence. > > > > Many thanks, > > Francois > > > > Francois Visagie > > > > > > T: +27 (83) 326-4358 > > F: +27 (86) 511-3490 > > E: francois.visagie at gmail.com > > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From 23liam at googlemail.com Sat May 25 15:18:14 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sat, 25 May 2013 14:18:14 +0100 Subject: [FFmpeg-user] How to add padding silence for MP4 container? In-Reply-To: <20130525084545.4b9f446c@zooty> References: <022801ce593f$57283e70$0578bb50$@gmail.com> <20130525084545.4b9f446c@zooty> Message-ID: On 25 May 2013 13:45, Tom Horsley wrote: >> So instead of using timestamps with MP4, is there a way to tell ffmpeg to >> insert 2s of silence at the beginning of the audio? > > I don't know about using ffmpeg itself, but I fiddle with audio > sync problems all the time and I use sox to generate silence > when I need it. For example: To generate silence with ffmpeg, use the aevalsrc audio filter http://ffmpeg.org/ffmpeg-all.html#aevalsrc Then, you can use either the concat demuxer (for which you'll have to generate the sound separately, ad then prepend it to your existing audio in two distinct commands) or the concat filter (requires re-encoding, but will allow you to work with a single ffmpeg command). ffmpeg -filter_complex 'aevalsrc=0:d=2' silence.aac ffmpeg -f concat -i <(for f in silence.aac audio.aac; do echo file "'$f'"; done) -c copy out-audio.aac OR: ffmpeg -i audio.aac -filter_complex 'aevalsrc=0:d=2[slug];[slug][0]concat=n=2:v=0:a=1[out]' -map '[out]' -c:a libfdk_aac -vbr 3 out-audio.aac (change depending on the AAC encoder you have) http://ffmpeg.org/trac/ffmpeg/wiki/How to concatenate (join, merge) media files From onemda at gmail.com Sat May 25 15:21:57 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sat, 25 May 2013 13:21:57 +0000 Subject: [FFmpeg-user] How to add padding silence for MP4 container? In-Reply-To: References: <022801ce593f$57283e70$0578bb50$@gmail.com> <20130525084545.4b9f446c@zooty> Message-ID: On 5/25/13, Liam Condron-Farnos <23liam at googlemail.com> wrote: > On 25 May 2013 13:45, Tom Horsley wrote: >>> So instead of using timestamps with MP4, is there a way to tell ffmpeg >>> to >>> insert 2s of silence at the beginning of the audio? >> >> I don't know about using ffmpeg itself, but I fiddle with audio >> sync problems all the time and I use sox to generate silence >> when I need it. For example: > > To generate silence with ffmpeg, use the aevalsrc audio filter > > http://ffmpeg.org/ffmpeg-all.html#aevalsrc > > Then, you can use either the concat demuxer (for which you'll have to > generate the sound separately, ad then prepend it to your existing > audio in two distinct commands) or the concat filter (requires > re-encoding, but will allow you to work with a single ffmpeg command). > > ffmpeg -filter_complex 'aevalsrc=0:d=2' silence.aac > ffmpeg -f concat -i <(for f in silence.aac audio.aac; do echo file > "'$f'"; done) -c copy out-audio.aac > > OR: > > ffmpeg -i audio.aac -filter_complex > 'aevalsrc=0:d=2[slug];[slug][0]concat=n=2:v=0:a=1[out]' -map '[out]' > -c:a libfdk_aac -vbr 3 out-audio.aac > > (change depending on the AAC encoder you have) > > http://ffmpeg.org/trac/ffmpeg/wiki/How to concatenate (join, merge) media > files That is veeery complicated way to do something when there is very fast and easy way. From onemda at gmail.com Sat May 25 15:28:18 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sat, 25 May 2013 13:28:18 +0000 Subject: [FFmpeg-user] How to add padding silence for MP4 container? In-Reply-To: References: <022801ce593f$57283e70$0578bb50$@gmail.com> Message-ID: On 5/25/13, Paul B Mahol wrote: > On 5/25/13, Francois Visagie wrote: >> Hi All, >> >> >> >> I'm trying to help someone who needs to delay his audio stream by 2s: he >> got >> given a .mp4 file containing only video and a .aac file with audio which >> he >> needs to mux together delaying the audio by 2s. >> >> >> >> This works perfectly for MKV: >> >> >> >> ffmpeg -i invideo.mp4 -itsoffset 00:00:02.000 -i >> inaudio.aac >> -codec:v copy -codec:a copy out.mkv >> >> >> >> However, he'd prefer the MP4 container format. Although the ffmpeg >> command >> completes perfectly, no player on my machine respects the MP4 timestamps >> and >> I've seen this reported elsewhere also. >> >> >> >> So instead of using timestamps with MP4, is there a way to tell ffmpeg to >> insert 2s of silence at the beginning of the audio? > > ffmpeg -i input -af aresample=firts_pts=X > > where X is 2 * sample_rate of your audio stream. > > you can't use -codec:a copy to insert real silence. Well, you actually can, and that is "complicated" way, that others have mentioned. Note that in such case: creating silence, encoding silence into aac, and than concatenating silence and audio into another stream without transcoding, you can not have always exact precision, so 2s delay may be possible or may not (i never tried so dunno). From zsq20030710 at gmail.com Sat May 25 15:48:59 2013 From: zsq20030710 at gmail.com (stanley zhang) Date: Sat, 25 May 2013 21:48:59 +0800 Subject: [FFmpeg-user] Weird issue when to link libraries of ffmpeg. In-Reply-To: <51A0A30B.2080001@gmail.com> References: <51A0A30B.2080001@gmail.com> Message-ID: I just tried and it worked through adjusting the order of the libraries. Thanks a lot, Pavel. Stanley On Sat, May 25, 2013 at 7:39 PM, Pavel Koshevoy wrote: > On 5/24/13 6:30 PM, stanley zhang wrote: > >> Hi, All, >> >> I want to build myself application based on ffmpeg libraries. What I did >> are very simple: >> (1) Configure, build and install latest ffmpeg; >> (2) Copy ffplay.c (changed to play.c), cmdutils.c, config.h, >> cmdutils_common_opts.h, and cmdutils.h from the parent directory of >> ffmpeg >> to my self directory. >> (3) Create a simple Makefile as the followings: >> all: play >> play:play.c cmdutils.c >> gcc -o play play.c cmdutils.c -lSDL -lavcodec -lavformat -lavutil >> -lswscale -lavfilter -lpostproc -lswresample >> >> (4) Build it. The errors can be met as the followings: >> ~/fftest/play$ make >> gcc -o play play.c cmdutils.c -lSDL -lavcodec -lavformat -lavutil >> -lswscale >> -lavfilter -lpostproc -lswresample >> /usr/local/lib/libavfilter.a(**buffersink.o): In function >> `read_from_fifo': >> /home/stanley/ffmpeg/**libavfilter/buffersink.c:166: undefined reference >> to >> `av_audio_fifo_read' >> ...(Some other logs are omitted) >> >> But I am sure the right libraries are linked and the function >> "read_from_fifo" are defined in the library libavutil.a: >> stanley at stanley-P31-ES3G:~/**fftest/play$ objdump >> /usr/local/lib/libavutil.a >> -t |grep av_audio_fifo_size >> 00000480 g F .text 00000008 av_audio_fifo_size >> stanley at stanley-P31-ES3G:~/**fftest/play$ objdump >> /usr/local/lib/libavfilter.a -t|grep av_buffersink_get_samples >> 00000790 g F .text 000001d3 av_buffersink_get_samples >> >> It seems not to be version issue. >> >> >> > You are linking to static libraries, therefore the order in which you link > to each library matters. avfilter probably depends on avutil, so try > putting -lavutil after -lavfilter > > Pavel. > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > From Nathaniel.Iverson at utoledo.edu Sat May 25 17:47:29 2013 From: Nathaniel.Iverson at utoledo.edu (Iverson, Nathaniel M) Date: Sat, 25 May 2013 15:47:29 +0000 Subject: [FFmpeg-user] 12.04 Ubuntu Compilation Guide Message-ID: <084649EFCFBF164AB7D11832FF4CEB7A019363@msgdb11.utad.utoledo.edu> On the page https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideQuantal I believe there is a dependency for librtmp-dev that should also be added to the Ubuntu desktop users. An error comes up in the ./configure step for ffmpeg. Otherwise, very nice set of instructions thank you very much :) Best, -Nate Iverson From 23liam at googlemail.com Sat May 25 19:25:32 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sat, 25 May 2013 18:25:32 +0100 Subject: [FFmpeg-user] 12.04 Ubuntu Compilation Guide In-Reply-To: <084649EFCFBF164AB7D11832FF4CEB7A019363@msgdb11.utad.utoledo.edu> References: <084649EFCFBF164AB7D11832FF4CEB7A019363@msgdb11.utad.utoledo.edu> Message-ID: On 25 May 2013 16:47, Iverson, Nathaniel M wrote: > On the page > > https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideQuantal > > I believe there is a dependency for librtmp-dev that should also be added to the Ubuntu desktop users. > > An error comes up in the ./configure step for ffmpeg. > > Otherwise, very nice set of instructions thank you very much :) You know, it *is* a wiki ;) That said, I'm currently compiling using that exact guide (by complete coincidence) so if I get the same error I'll add that to the guide myself. From lou at lrcd.com Sat May 25 19:31:41 2013 From: lou at lrcd.com (Lou) Date: Sat, 25 May 2013 09:31:41 -0800 Subject: [FFmpeg-user] 12.04 Ubuntu Compilation Guide In-Reply-To: <084649EFCFBF164AB7D11832FF4CEB7A019363@msgdb11.utad.utoledo.edu> References: <084649EFCFBF164AB7D11832FF4CEB7A019363@msgdb11.utad.utoledo.edu> Message-ID: <1369503101.24958.140661235637313.50E972D2@webmail.messagingengine.com> On Sat, May 25, 2013, at 07:47 AM, Iverson, Nathaniel M wrote: > On the page > > https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideQuantal > > I believe there is a dependency for librtmp-dev that should also be added > to the Ubuntu desktop users. > > An error comes up in the ./configure step for ffmpeg. > > Otherwise, very nice set of instructions thank you very much :) > > Best, > > -Nate Iverson Fixed. Thanks. Changelog: * remove librtmp (native support exists) * remove libfaac (use libfdk_aac instead) * keep pkg-config (installed by default IIRC, other non-ffmpeg stuff depends) From francois.visagie at gmail.com Sun May 26 10:49:40 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sun, 26 May 2013 10:49:40 +0200 Subject: [FFmpeg-user] Is this a bug? (2) Message-ID: <000301ce59ed$fa6b99c0$ef42cd40$@gmail.com> Hi All, When using an audio bitstream filter to change audio beginning timestamp, it does not take effect when muxing copied streams, only when the audio is also being re-encoded. Is this a bug? In the 2nd example below ffprobe shows that the 2s clip was lengthened to 4s by delaying the 2s audio by 2s. Playback confirms that this was done correctly. In the first example where only muxing was done audio wasn't delayed. C:\Users\fvisagie\Videos\Home Videos\Testing\MKV>ffmpeg -i DV.avi -codec:v copy -codec:a copy -af asetpts=PTS+2/TB asetptsmuxed.mkv ffmpeg version N-53380-g0fb7fef Copyright (c) 2000-2013 the FFmpeg developers built on May 23 2013 14:19:35 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 11.100 / 55. 11.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.101 / 3. 69.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 039ee920] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'DV.avi': Duration: 00:00:02.00, start: 0.000000, bitrate: 49663 kb/s Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, matroska, to 'asetptsmuxed.mkv': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, q=2-31, 1k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 50 fps=0.0 q=-1.0 Lsize= 12116kB time=00:00:02.00 bitrate=49627.4kbits/s video:11738kB audio:375kB subtitle:0 global headers:0kB muxing overhead 0.026750% C:\Users\fvisagie\Videos\Home Videos\Testing\MKV>ffprobe asetptsmuxed.mkv ffprobe version N-53380-g0fb7fef Copyright (c) 2007-2013 the FFmpeg developers built on May 23 2013 14:19:35 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 11.100 / 55. 11.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.101 / 3. 69.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, matroska,webm, from 'asetptsmuxed.mkv': Metadata: ENCODER : Lavf55.7.100 Duration: 00:00:02.00, start: 0.000000, bitrate: 49627 kb/s Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, SAR 1:1 DAR 5:4, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s (default) C:\Users\fvisagie\Videos\Home Videos\Testing\MKV>ffmpeg -i DV.avi -codec:v copy -af asetpts=PTS+2/TB asetptsencoded.mkv ffmpeg version N-53380-g0fb7fef Copyright (c) 2000-2013 the FFmpeg developers built on May 23 2013 14:19:35 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 11.100 / 55. 11.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.101 / 3. 69.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 00267a20] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'DV.avi': Duration: 00:00:02.00, start: 0.000000, bitrate: 49663 kb/s Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, matroska, to 'asetptsencoded.mkv': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, q=2-31, 1k tbn, 25 tbc Stream #0:1: Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, stereo, fltp Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (pcm_s16le -> libvorbis) Press [q] to stop, [?] for help frame= 50 fps=0.0 q=-1.0 Lsize= 11770kB time=00:00:03.99 bitrate=24110.8kbits/s video:11738kB audio:25kB subtitle:0 global headers:4kB muxing overhead 0.027869% C:\Users\fvisagie\Videos\Home Videos\Testing\MKV>ffprobe asetptsencoded.mkv ffprobe version N-53380-g0fb7fef Copyright (c) 2007-2013 the FFmpeg developers built on May 23 2013 14:19:35 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 11.100 / 55. 11.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.101 / 3. 69.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [matroska,webm @ 0259d240] Stream #1: not enough frames to estimate rate; consider increasing probesize Input #0, matroska,webm, from 'asetptsencoded.mkv': Metadata: ENCODER : Lavf55.7.100 Duration: 00:00:04.00, start: 0.000000, bitrate: 24104 kb/s Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, SAR 1:1 DAR 5:4, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp (default) Thanks, Francois Francois Visagie T: +27 (83) 326-4358 F: +27 (86) 511-3490 E: francois.visagie at gmail.com From francois.visagie at gmail.com Sun May 26 10:49:40 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sun, 26 May 2013 10:49:40 +0200 Subject: [FFmpeg-user] Is this a bug? (1) Message-ID: <000e01ce59ee$030571a0$091054e0$@gmail.com> Hi All, When specifying a container DAR for MKV, it does not take effect when muxing copied streams, only when the video is also being re-encoded. Is this a bug? C:\Users\fvisagie\Videos\Home Videos\Testing\MKV>ffmpeg -i DV.avi -codec:v copy -codec:a copy -vf setdar=dar=4/3 darmuxed.mkv ffmpeg version N-53380-g0fb7fef Copyright (c) 2000-2013 the FFmpeg developers built on May 23 2013 14:19:35 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 11.100 / 55. 11.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.101 / 3. 69.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 0243b200] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'DV.avi': Duration: 00:00:02.00, start: 0.000000, bitrate: 49663 kb/s Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, matroska, to 'darmuxed.mkv': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, q=2-31, 1k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 50 fps=0.0 q=-1.0 Lsize= 12116kB time=00:00:02.00 bitrate=49627.4kbits/s video:11738kB audio:375kB subtitle:0 global headers:0kB muxing overhead 0.026750% C:\Users\fvisagie\Videos\Home Videos\Testing\MKV>ffmpeg -i DV.avi -codec:a copy -vf setdar=dar=4/3 darencoded.mkv ffmpeg version N-53380-g0fb7fef Copyright (c) 2000-2013 the FFmpeg developers built on May 23 2013 14:19:35 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 11.100 / 55. 11.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 69.101 / 3. 69.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 023b79e0] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'DV.avi': Duration: 00:00:02.00, start: 0.000000, bitrate: 49663 kb/s Stream #0:0: Video: lagarith (LAGS / 0x5347414C), yuv420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s [libx264 @ 03e0a660] using SAR=16/15 [libx264 @ 03e0a660] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 03e0a660] profile High, level 3.0 [libx264 @ 03e0a660] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin= 0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'darencoded.mkv': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=-1--1, 1k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (lagarith -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 50 fps= 37 q=-1.0 Lsize= 669kB time=00:00:02.00 bitrate=2739.4kbits/s video:292kB audio:375kB subtitle:0 global headers:0kB muxing overhead 0.246353% [libx264 @ 03e0a660] frame I:1 Avg QP:24.92 size: 27683 [libx264 @ 03e0a660] frame P:23 Avg QP:25.26 size: 9327 [libx264 @ 03e0a660] frame B:26 Avg QP:28.09 size: 2163 [libx264 @ 03e0a660] consecutive B-frames: 2.0% 80.0% 18.0% 0.0% [libx264 @ 03e0a660] mb I I16..4: 20.1% 71.2% 8.6% [libx264 @ 03e0a660] mb P I16..4: 0.3% 0.7% 0.0% P16..4: 47.1% 14.2% 11.2% 0.0% 0.0% skip:26.4% [libx264 @ 03e0a660] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 47.4% 3.6% 0.8% direct: 1.1% skip:47.1% L0:44.9% L1:48.9% BI: 6.2% [libx264 @ 03e0a660] 8x8 transform intra:70.2% inter:74.0% [libx264 @ 03e0a660] coded y,uvDC,uvAC intra: 68.5% 77.8% 19.5% inter: 15.3% 26.1% 0.3% [libx264 @ 03e0a660] i16 v,h,dc,p: 9% 37% 7% 47% [libx264 @ 03e0a660] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 34% 22% 4% 5% 4% 7% 4% 12% [libx264 @ 03e0a660] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 38% 12% 5% 4% 4% 8% 3% 11% [libx264 @ 03e0a660] i8c dc,h,v,p: 40% 36% 18% 6% [libx264 @ 03e0a660] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 03e0a660] ref P L0: 52.8% 14.4% 22.2% 10.6% [libx264 @ 03e0a660] ref B L0: 64.4% 34.4% 1.2% [libx264 @ 03e0a660] ref B L1: 96.7% 3.3% [libx264 @ 03e0a660] kb/s:1193.74 Thanks, Francois Francois Visagie T: +27 (83) 326-4358 F: +27 (86) 511-3490 E: francois.visagie at gmail.com From francois.visagie at gmail.com Sun May 26 11:13:32 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sun, 26 May 2013 11:13:32 +0200 Subject: [FFmpeg-user] How to add padding silence for MP4 container? In-Reply-To: References: <022801ce593f$57283e70$0578bb50$@gmail.com> Message-ID: <001f01ce59f1$4e3ca230$eab5e690$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Paul B Mahol > Sent: 25 May 2013 15:28 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] How to add padding silence for MP4 container? > > On 5/25/13, Paul B Mahol wrote: > > On 5/25/13, Francois Visagie wrote: > >> Hi All, > >> > >> > >> > >> I'm trying to help someone who needs to delay his audio stream by 2s: he > >> got > >> given a .mp4 file containing only video and a .aac file with audio which > >> he > >> needs to mux together delaying the audio by 2s. > >> > >> > >> > >> This works perfectly for MKV: > >> > >> > >> > >> ffmpeg -i invideo.mp4 -itsoffset 00:00:02.000 -i > >> inaudio.aac > >> -codec:v copy -codec:a copy out.mkv > >> > >> > >> > >> However, he'd prefer the MP4 container format. Although the ffmpeg > >> command > >> completes perfectly, no player on my machine respects the MP4 > timestamps > >> and > >> I've seen this reported elsewhere also. > >> > >> > >> > >> So instead of using timestamps with MP4, is there a way to tell ffmpeg to > >> insert 2s of silence at the beginning of the audio? > > > > ffmpeg -i input -af aresample=firts_pts=X > > > > where X is 2 * sample_rate of your audio stream. > > > > you can't use -codec:a copy to insert real silence. > > Well, you actually can, and that is "complicated" way, that others > have mentioned. > > Note that in such case: creating silence, encoding silence into aac, > and than concatenating > silence and audio into another stream without transcoding, you can not > have always exact > precision, so 2s delay may be possible or may not (i never tried so dunno). Thanks for all the inputs, much appreciated! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sun May 26 12:47:58 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 26 May 2013 10:47:58 +0000 (UTC) Subject: [FFmpeg-user] Is this a bug? (2) References: <000301ce59ed$fa6b99c0$ef42cd40$@gmail.com> Message-ID: Francois Visagie gmail.com> writes: > > Hi All, > > When using an audio bitstream filter In your command line you are not using a bitstream filter - which would allow to change a bitstream using -codec copy - but an audio filter, ... > to change audio beginning timestamp, it does not take > effect when muxing copied streams, only when the > audio is also being re-encoded. Is this a bug? ... and all filters (including audio filters) can only work on actually processed data, not with -codec copy. Carl Eugen From cehoyos at ag.or.at Sun May 26 12:45:32 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 26 May 2013 10:45:32 +0000 (UTC) Subject: [FFmpeg-user] Is this a bug? (1) References: <000e01ce59ee$030571a0$091054e0$@gmail.com> Message-ID: Francois Visagie gmail.com> writes: > When specifying a container DAR for MKV, it does > not take effect when muxing copied streams (I don't think this is related to mkv, or do I miss something?) This is ticket #2046 Apparently somebody decided to write a patch and did not want to post it to ffmpeg-devel (nor did he setup a git clone and asked for a merge). Carl Eugen From francois.visagie at gmail.com Sun May 26 13:12:30 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sun, 26 May 2013 13:12:30 +0200 Subject: [FFmpeg-user] Is this a bug? (1) In-Reply-To: References: <000e01ce59ee$030571a0$091054e0$@gmail.com> Message-ID: <000001ce5a01$ecab4ec0$c601ec40$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: 26 May 2013 12:46 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Is this a bug? (1) > > Francois Visagie gmail.com> writes: > > > When specifying a container DAR for MKV, it does not take effect when > > muxing copied streams > > (I don't think this is related to mkv, or do I miss something?) No, not necessarily specific to MKV; MKV was simply the container format in which I was hoping to get this working. > This is ticket > #2046 Apparently somebody decided to write a patch and did not want to > post it to ffmpeg-devel (nor did he setup a git clone and asked for a merge). Thanks for your response. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Sun May 26 13:12:30 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sun, 26 May 2013 13:12:30 +0200 Subject: [FFmpeg-user] Is this a bug? (2) In-Reply-To: References: <000301ce59ed$fa6b99c0$ef42cd40$@gmail.com> Message-ID: <000101ce5a01$edc6a9d0$c953fd70$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: 26 May 2013 12:48 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Is this a bug? (2) > > Francois Visagie gmail.com> writes: > > > > > Hi All, > > > > When using an audio bitstream filter > > In your command line you are not using a bitstream > filter - which would allow to change a bitstream > using -codec copy - but an audio filter, ... > > > to change audio beginning timestamp, it does not take > > effect when muxing copied streams, only when the > > audio is also being re-encoded. Is this a bug? > > ... and all filters (including audio filters) can only > work on actually processed data, not with -codec copy. Thanks for the explanation, Carl Eugen. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From andrey.aleksandrovich at googlemail.com Sun May 26 15:28:34 2013 From: andrey.aleksandrovich at googlemail.com (Andrey Aleksandrovich) Date: Sun, 26 May 2013 16:28:34 +0300 Subject: [FFmpeg-user] Is this a bug? (1) In-Reply-To: <000001ce5a01$ecab4ec0$c601ec40$@gmail.com> References: <000e01ce59ee$030571a0$091054e0$@gmail.com> <000001ce5a01$ecab4ec0$c601ec40$@gmail.com> Message-ID: Try '-aspect 4/3' On 5/26/13, Francois Visagie wrote: >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos >> Sent: 26 May 2013 12:46 >> To: ffmpeg-user at ffmpeg.org >> Subject: Re: [FFmpeg-user] Is this a bug? (1) >> >> Francois Visagie gmail.com> writes: >> >> > When specifying a container DAR for MKV, it does not take effect when >> > muxing copied streams >> >> (I don't think this is related to mkv, or do I miss something?) > > No, not necessarily specific to MKV; MKV was simply the container format in > which I was hoping to get this working. > >> This is ticket >> #2046 Apparently somebody decided to write a patch and did not want to >> post it to ffmpeg-devel (nor did he setup a git clone and asked for a > merge). > > Thanks for your response. > >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From francois.visagie at gmail.com Sun May 26 16:01:35 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Sun, 26 May 2013 16:01:35 +0200 Subject: [FFmpeg-user] Is this a bug? (1) In-Reply-To: References: <000e01ce59ee$030571a0$091054e0$@gmail.com> <000001ce5a01$ecab4ec0$c601ec40$@gmail.com> Message-ID: <000001ce5a19$8b5c0930$a2141b90$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Andrey Aleksandrovich > Sent: 26 May 2013 15:29 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Is this a bug? (1) > > Try '-aspect 4/3' Thanks, on my August 2012 build this wasn't working yet, and I hadn't retried it with the latest Zeranoe build used for the email below, my bad... > > On 5/26/13, Francois Visagie wrote: > >> -----Original Message----- > >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >> bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > >> Sent: 26 May 2013 12:46 > >> To: ffmpeg-user at ffmpeg.org > >> Subject: Re: [FFmpeg-user] Is this a bug? (1) > >> > >> Francois Visagie gmail.com> writes: > >> > >> > When specifying a container DAR for MKV, it does not take effect > >> > when muxing copied streams > >> > >> (I don't think this is related to mkv, or do I miss something?) > > > > No, not necessarily specific to MKV; MKV was simply the container > > format in which I was hoping to get this working. > > > >> This is ticket > >> #2046 Apparently somebody decided to write a patch and did not want > >> to post it to ffmpeg-devel (nor did he setup a git clone and asked > >> for a > > merge). > > > > Thanks for your response. > > > >> > >> Carl Eugen > >> > >> _______________________________________________ > >> ffmpeg-user mailing list > >> ffmpeg-user at ffmpeg.org > >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mazen at pnettv.com Sun May 26 20:23:59 2013 From: mazen at pnettv.com (Mazen) Date: Sun, 26 May 2013 20:23:59 +0200 Subject: [FFmpeg-user] Time shift Message-ID: <000001ce5a3e$3159bd40$940d37c0$@com> Dear all I need help to make FFmpeg do Time shift. Any help please? Regards From andrey.krieger.utkin at gmail.com Mon May 27 08:04:49 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Mon, 27 May 2013 09:04:49 +0300 Subject: [FFmpeg-user] Time shift In-Reply-To: <000001ce5a3e$3159bd40$940d37c0$@com> References: <000001ce5a3e$3159bd40$940d37c0$@com> Message-ID: 2013/5/26 Mazen : > Dear all > > > > I need help to make FFmpeg do Time shift. > > > > Any help please? I think "time shift" means getting to future or past, right? FFmpeg cannot take you to furure or past, unfortunately. But it can do that for particular elementary media stream, see setpts filter. -- Andrey Utkin From pb at das-werkstatt.com Mon May 27 08:56:10 2013 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 27 May 2013 08:56:10 +0200 Subject: [FFmpeg-user] FFv1 interlaced Message-ID: <51A3038A.7040401@das-werkstatt.com> Hello, I wanted to compare FFv1's compression between interlaced and progressive mode, but the output-files' MD5 checksums are identical. The documentation I found online only mentions "ilme" and "ildct" [1], which I presume are meant for lossy encoding. Tim Nicholson once mentioned to use "-top 0/1" to enable interlaced encoding. However, the files produced with and without "-top" produce identical files: ------------- 77d97dc84a5b62b493526576f1804e98 output-bff.nut 77d97dc84a5b62b493526576f1804e98 output-progressive.nut 77d97dc84a5b62b493526576f1804e98 output-tff.nut ------------- Since Derf's collection only contains deinterlaced material, I've chosen to use interlaced Digibeta material from our archive [2]. Am I missing any flag, or doing something else wrong? Any hints/info appreciated. Thank you very much, Peter B. == References: [1] http://ffmpeg.org/faq.html#Interlaced-video-looks-very-bad-when-encoded-with-ffmpeg_002c-what-is-wrong_003f [2] http://ffmpeg.org/pipermail/ffmpeg-devel/2013-February/138882.html [3] http://download.das-werkstatt.com/pb/mthk/FFv1-Examples/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi Used commandline and complete, uncut console output here: //--------------------------- $ ffmpeg_git -i /home/pb/JobsToDo/Mediathek/DVA-Profession/testvideos/mthk/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi -an -vcodec ffv1 -level 3 -strict experimental -slices 24 -coder 0 -context 0 -g 1 output-progressive.nut //--------------------------- ffmpeg version N-53487-g53ec1c8 Copyright (c) 2000-2013 the FFmpeg developers built on May 27 2013 08:48:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.100 / 55. 12.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 70.101 / 3. 70.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 0x168ef40] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from '/home/pb/JobsToDo/Mediathek/DVA-Profession/testvideos/mthk/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi': Metadata: date : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf52.111.0 Duration: 00:01:00.00, start: 0.000000, bitrate: 79300 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, nut, to 'output-progressive.nut': Metadata: X-CreationTime : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf55.7.100 Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, q=2-31, 200 kb/s, 51200 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> ffv1) Press [q] to stop, [?] for help frame= 1500 fps=111 q=-1.0 Lsize= 580683kB time=00:01:00.00 bitrate=79282.6kbits/s video:580631kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.008949% //--------------------------- $ ffmpeg_git -i /home/pb/JobsToDo/Mediathek/DVA-Profession/testvideos/mthk/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi -an -vcodec ffv1 -level 3 -strict experimental -slices 24 -coder 0 -context 0 -g 1 -top 0 output-bff.nut //--------------------------- ffmpeg version N-53487-g53ec1c8 Copyright (c) 2000-2013 the FFmpeg developers built on May 27 2013 08:48:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.100 / 55. 12.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 70.101 / 3. 70.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 0x2144f40] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from '/home/pb/JobsToDo/Mediathek/DVA-Profession/testvideos/mthk/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi': Metadata: date : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf52.111.0 Duration: 00:01:00.00, start: 0.000000, bitrate: 79300 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, nut, to 'output-bff.nut': Metadata: X-CreationTime : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf55.7.100 Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, q=2-31, 200 kb/s, 51200 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> ffv1) Press [q] to stop, [?] for help frame= 1500 fps=110 q=-1.0 Lsize= 580683kB time=00:01:00.00 bitrate=79282.6kbits/s video:580631kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.008949% //--------------------------- $ ffmpeg_git -i /home/pb/JobsToDo/Mediathek/DVA-Profession/testvideos/mthk/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi -an -vcodec ffv1 -level 3 -strict experimental -slices 24 -coder 0 -context 0 -g 1 -top 1 output-tff.nut //--------------------------- ffmpeg version N-53487-g53ec1c8 Copyright (c) 2000-2013 the FFmpeg developers built on May 27 2013 08:48:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.100 / 55. 12.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 70.101 / 3. 70.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [avi @ 0x3167f40] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from '/home/pb/JobsToDo/Mediathek/DVA-Profession/testvideos/mthk/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi': Metadata: date : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf52.111.0 Duration: 00:01:00.00, start: 0.000000, bitrate: 79300 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, nut, to 'output-tff.nut': Metadata: X-CreationTime : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf55.7.100 Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, q=2-31, 200 kb/s, 51200 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> ffv1) Press [q] to stop, [?] for help frame= 1500 fps=110 q=-1.0 Lsize= 580683kB time=00:01:00.00 bitrate=79282.6kbits/s video:580631kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.008949% pb at pb-combat:/media/MyBook_3TB/ffv1_tests/interlaced$ ffplay_git output-bff.nut ffplay version N-53487-g53ec1c8 Copyright (c) 2003-2013 the FFmpeg developers built on May 27 2013 08:48:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.100 / 55. 12.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 70.101 / 3. 70.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, nut, from 'output-bff.nut':B vq= 0KB sq= 0B f=0/0 Metadata: date : 2012-03-01T22:16:10+01:00 encoded_by : ?sterreichische Mediathek Wien IARL : vx-04988_01 title : Feste Biomasse [In: Erneuerbare Energie [Enthalten in: Erneuerbare Energie] ; 01] encoder : Lavf55.7.100 Duration: 00:00:59.96, start: 0.000000, bitrate: 79335 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 25 fps, 25 tbr, 51200 tbn, 51200 tbc 14.36 A-V: 0.000 fd= 1 aq= 0KB vq= 2118KB sq= 0B f=0/0 From mattkazee at hotmail.com Mon May 27 10:29:40 2013 From: mattkazee at hotmail.com (Roku Coder) Date: Mon, 27 May 2013 08:29:40 +0000 (UTC) Subject: [FFmpeg-user] Transcoding for the Roku with recent ffmpeg References: <50E43DA1.2090208@seiner.com> Message-ID: Yan Seiner seiner.com> writes: > > I'm having trouble transcoding into h264 with recent (1.0) ffmpeg. > > Older versions (0.8?) did fine using this command line: > > ffmpeg -i input.vob -acodec libfaac -ab 128k -vcodec libx264 -vpre > normal -s 854x480 -crf 22 -threads 0 -f mp4 output.mp4 > > the newer versions fail with: > > Undefined constant or missing '(' in 'wpred' > [NULL 0x177ca80] Unable to parse option value > "wpred+dct8x8+fastpskip+mbtree" > [NULL 0x177ca80] Error setting option flags2 to value > +wpred+dct8x8+fastpskip+mbtree. > > Based on the little bit of research I did, I should replace -vpre normal > with something like > > -vcodec libx264 -c:v libx264 -preset fast -profile:v baseline > > which results in this command line: > > ffmpeg -i input.vob -acodec libfaac -ab 128k -vcodec libx264 -c:v > libx264 -preset fast -profile:v baseline -s 854x480 -crf 22 -threads 0 > -f mp4 output.mp4 > > the video transcodes fine, but will not play on the Roku. It plays > about 30 seconds, then stops and the Roku starts buffering > indefinitely. It also shows lower quality connection, and my apache > logs fill up with: > > (104)Connection reset by peer: core_output_filter: writing data to the > network > > Indicating that the Roku is resetting the connection. > > Anyone transcoding for the Roku? Any suggestions? > The Roku preset provided with the Roku 4.1 SDK is old and outdated. They really need to update the SDK Encoding Guide with better examples. Make a new ffpreset libx264-roku.ffpreset with this: coder=1 flags=+loop cmp=chroma partitions=+parti8x8+parti4x4+partp8x8+partb8x8 me_method=umh subq=8 me_range=16 g=250 keyint_min=25 sc_threshold=40 i_qfactor=0.71 b_strategy=2 qcomp=0.6 qmin=10 qmax=51 qdiff=4 bf=4 refs=4 direct-pred=3 trellis=1 8x8dct=1 fast-pskip=1 mixed-refs=1 then save that preset here /usr/local/share/ffmpeg/ or to your local ffmpeg preset folder. Technically Roku can play video in other resolutions other than 480p 720p or 1080p but it doesn't like it. I would recommend using 720x480 instead of 854x480. Roku 1 doesn't like the new ffmpeg however it works fine for Roku 2 and Roku 3. It will still work on roku 1 but not as good. Try the encode with the latest version of ffmpeg and use the preset above like this for 16x9 vob files ffmpeg -i input.vob -f mp4 -aspect 16:9 -vf yadif=0:1 -vcodec libx264 -bufsize 2000k -profile:v high -level 4.0 -s 720x480 -vb 1000k -acodec libfaac -ab 128k -vpre roku -r 29.97 -adrift_threshold 0.01 -threads 0 output.mp4 for encoding avi,mpg,mp4 or mov files to roku you will need to remove the '-vf yadif=0:1' 2 pass looks better for lower bit rates. For variant stream playback using Apple ios HLS you would need to encode using the same preset like this ffmpeg -i input.vob -f mpegts -aspect 16:9 -vf yadif=0:1 -vcodec libx264 -bufsize 2000k -profile:v high -level 4.0 -s 720x480 -vb 1000k -acodec libfaac -ab 128k -vpre roku -r 29.97 -vbsf h264_mp4toannexb -adrift_threshold 0.01 -threads 0 output.1.ts This will work decently on Roku1 and perfectly on Roku2 and Roku3 Cheers! From mollyrazormillions at gmail.com Mon May 27 11:54:32 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Mon, 27 May 2013 11:54:32 +0200 Subject: [FFmpeg-user] *** glibc detected *** /usr/bin/ffmpeg: invalid fastbin entry Message-ID: Hi! Our sysadmins compiled a new ffmpeg, but it fails with the following. Any ideas what went wrong? Thanks! ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 24 2013 18:53:07 with gcc 4.7 (Debian 4.7.2-5) configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-libaacplus --enable-libopus --enable-libfdk-aac --disable-altivec --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis WARNING: library configuration mismatch avcodec configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a avformat configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a avdevice configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a avfilter configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a swscale configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a swresample configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a postproc configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-a libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 59.100 libavformat 54. 63.104 / 54. 29.104 libavdevice 54. 3.103 / 54. 2.101 libavfilter 3. 42.103 / 3. 17.100 libswscale 2. 2.100 / 2. 1.101 libswresample 0. 17.102 / 0. 15.100 libpostproc 52. 2.100 / 52. 0.100 Input #0, flv, from '/var/local/whatever/000/342/798/Video006.3gp.flv': Duration: 00:01:14.86, start: 0.000000, bitrate: 609 kb/s Stream #0:0: Video: flv1, yuv420p, 320x240, 450 kb/s, 24 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s *** glibc detected *** /usr/bin/ffmpeg: invalid fastbin entry (free): 0x0000000001def0e0 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x76d76)[0x7f0f9b384d76] /lib/x86_64-linux-gnu/libc.so.6(+0x7a9c4)[0x7f0f9b3889c4] /lib/x86_64-linux-gnu/libc.so.6(__libc_memalign+0xc2)[0x7f0f9b38a0f2] /lib/x86_64-linux-gnu/libc.so.6(posix_memalign+0x39)[0x7f0f9b38a349] /usr/lib/x86_64-linux-gnu/libavutil.so.51(av_malloc+0x4a)[0x7f0f9b0f392a] /usr/lib/x86_64-linux-gnu/libavutil.so.51(av_mallocz+0x16)[0x7f0f9b0f3a66] /usr/lib/x86_64-linux-gnu/libavfilter.so.3(avfilter_open+0x2d)[0x7f0f9d6c670d] /usr/lib/x86_64-linux-gnu/libavfilter.so.3(avfilter_graph_create_filter+0x29)[0x7f0f9d6c6dd9] /usr/bin/ffmpeg[0x4107a7] /usr/bin/ffmpeg[0x411703] /usr/bin/ffmpeg[0x411d8b] /usr/bin/ffmpeg[0x418e1f] /usr/bin/ffmpeg[0x408072] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7f0f9b32cead] /usr/bin/ffmpeg[0x408df5] ======= Memory map: ======== 00400000-0042a000 r-xp 00000000 fd:03 582607 /usr/bin/ffmpeg 00629000-0062c000 rw-p 00029000 fd:03 582607 /usr/bin/ffmpeg 01dab000-01eae000 rw-p 00000000 00:00 0 [heap] 7f0f88000000-7f0f88021000 rw-p 00000000 00:00 0 7f0f88021000-7f0f8c000000 ---p 00000000 00:00 0 7f0f8eb2b000-7f0f8eb3e000 r-xp 00000000 fd:03 589992 /lib/x86_64-linux-gnu/libresolv-2.13.so 7f0f8eb3e000-7f0f8ed3d000 ---p 00013000 fd:03 589992 /lib/x86_64-linux-gnu/libresolv-2.13.so 7f0f8ed3d000-7f0f8ed3e000 r--p 00012000 fd:03 589992 /lib/x86_64-linux-gnu/libresolv-2.13.so 7f0f8ed3e000-7f0f8ed3f000 rw-p 00013000 fd:03 589992 /lib/x86_64-linux-gnu/libresolv-2.13.so 7f0f8ed3f000-7f0f8ed41000 rw-p 00000000 00:00 0 7f0f8ed41000-7f0f8ed8c000 r-xp 00000000 fd:03 746657 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0 7f0f8ed8c000-7f0f8ef8b000 ---p 0004b000 fd:03 746657 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0 7f0f8ef8b000-7f0f8ef8c000 r--p 0004a000 fd:03 746657 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0 7f0f8ef8c000-7f0f8ef8d000 rw-p 0004b000 fd:03 746657 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0 7f0f8ef8d000-7f0f8efa2000 r-xp 00000000 fd:03 589994 /lib/x86_64-linux-gnu/libnsl-2.13.so 7f0f8efa2000-7f0f8f1a1000 ---p 00015000 fd:03 589994 /lib/x86_64-linux-gnu/libnsl-2.13.so 7f0f8f1a1000-7f0f8f1a2000 r--p 00014000 fd:03 589994 /lib/x86_64-linux-gnu/libnsl-2.13.so 7f0f8f1a2000-7f0f8f1a3000 rw-p 00015000 fd:03 589994 /lib/x86_64-linux-gnu/libnsl-2.13.so 7f0f8f1a3000-7f0f8f1a5000 rw-p 00000000 00:00 0 7f0f8f1a5000-7f0f8f1b3000 r-xp 00000000 fd:03 748594 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 7f0f8f1b3000-7f0f8f3b3000 ---p 0000e000 fd:03 748594 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 7f0f8f3b3000-7f0f8f3b4000 rw-p 0000e000 fd:03 748594 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 7f0f8f3b4000-7f0f8f3b8000 r-xp 00000000 fd:03 590041 /lib/x86_64-linux-gnu/libuuid.so.1.3.0 7f0f8f3b8000-7f0f8f5b7000 ---p 00004000 fd:03 590041 /lib/x86_64-linux-gnu/libuuid.so.1.3.0 7f0f8f5b7000-7f0f8f5b8000 r--p 00003000 fd:03 590041 /lib/x86_64-linux-gnu/libuuid.so.1.3.0 7f0f8f5b8000-7f0f8f5b9000 rw-p 00004000 fd:03 590041 /lib/x86_64-linux-gnu/libuuid.so.1.3.0 7f0f8f5b9000-7f0f8f5bd000 r-xp 00000000 fd:03 590094 /lib/x86_64-linux-gnu/libattr.so.1.1.0 7f0f8f5bd000-7f0f8f7bc000 ---p 00004000 fd:03 590094 /lib/x86_64-linux-gnu/libattr.so.1.1.0 7f0f8f7bc000-7f0f8f7bd000 r--p 00003000 fd:03 590094 /lib/x86_64-linux-gnu/libattr.so.1.1.0 7f0f8f7bd000-7f0f8f7be000 rw-p 00004000 fd:03 590094 /lib/x86_64-linux-gnu/libattr.so.1.1.0 7f0f8f7be000-7f0f8f7c3000 r-xp 00000000 fd:03 746647 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f0f8f7c3000-7f0f8f9c2000 ---p 00005000 fd:03 746647 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f0f8f9c2000-7f0f8f9c3000 rw-p 00004000 fd:03 746647 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f0f8f9c3000-7f0f8fa24000 r-xp 00000000 fd:03 746700 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f0f8fa24000-7f0f8fc23000 ---p 00061000 fd:03 746700 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f0f8fc23000-7f0f8fc25000 r--p 00060000 fd:03 746700 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f0f8fc25000-7f0f8fc26000 rw-p 00062000 fd:03 746700 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f0f8fc26000-7f0f8fc2a000 rw-p 00000000 00:00 0 7f0f8fc2a000-7f0f8fc33000 r-xp 00000000 fd:03 589829 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f0f8fc33000-7f0f8fe32000 ---p 00009000 fd:03 589829 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f0f8fe32000-7f0f8fe33000 r--p 00008000 fd:03 589829 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f0f8fe33000-7f0f8fe34000 rw-p 00009000 fd:03 589829 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f0f8fe34000-7f0f8fe35000 rw-p 00000000 00:00 0 7f0f8fe35000-7f0f8fe3a000 r-xp 00000000 fd:03 746709 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0 7f0f8fe3a000-7f0f90039000 ---p 00005000 fd:03 746709 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0 7f0f90039000-7f0f9003a000 rw-p 00004000 fd:03 746709 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0 7f0f9003a000-7f0f90041000 r-xp 00000000 fd:03 746127 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1 7f0f90041000-7f0f90240000 ---p 00007000 fd:03 746127 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1Aborted From 89.yavuz at gmail.com Mon May 27 12:50:19 2013 From: 89.yavuz at gmail.com (Mustafa Yavuz) Date: Mon, 27 May 2013 13:50:19 +0300 Subject: [FFmpeg-user] svfVfy parameter in ffmpeg Message-ID: Hi, Is there any option similar to swfVfy, used in rtmpdump, for ffmpeg script. Since svfUrl does not work all time I need this paramater and I had to use svfVfy. Thanks.. Mustafa Yavuz From onemda at gmail.com Mon May 27 12:54:54 2013 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 27 May 2013 10:54:54 +0000 Subject: [FFmpeg-user] svfVfy parameter in ffmpeg In-Reply-To: References: Message-ID: On 5/27/13, Mustafa Yavuz <89.yavuz at gmail.com> wrote: > Hi, > Is there any option similar to swfVfy, used in rtmpdump, for ffmpeg > script. Since svfUrl does not work all time I need this paramater and > I had to use svfVfy. > Thanks.. There is documentation, see rtmp_swfverify in: http://ffmpeg.org/ffmpeg-protocols.html#rtmp > > Mustafa Yavuz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From 89.yavuz at gmail.com Mon May 27 13:01:39 2013 From: 89.yavuz at gmail.com (Mustafa Yavuz) Date: Mon, 27 May 2013 14:01:39 +0300 Subject: [FFmpeg-user] svfVfy parameter in ffmpeg In-Reply-To: References: Message-ID: Sorry, I asked wrong question, I had seen rtmp_swfverify later, my problem was with rtmpe protocol that it seems ffmpeg does not support this protocol while rtmpdump does so. Is there any working for this issue? 2013/5/27 Paul B Mahol : > On 5/27/13, Mustafa Yavuz <89.yavuz at gmail.com> wrote: >> Hi, >> Is there any option similar to swfVfy, used in rtmpdump, for ffmpeg >> script. Since svfUrl does not work all time I need this paramater and >> I had to use svfVfy. >> Thanks.. > > There is documentation, see rtmp_swfverify in: > > http://ffmpeg.org/ffmpeg-protocols.html#rtmp > >> >> Mustafa Yavuz >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From 89.yavuz at gmail.com Mon May 27 13:04:39 2013 From: 89.yavuz at gmail.com (Mustafa Yavuz) Date: Mon, 27 May 2013 14:04:39 +0300 Subject: [FFmpeg-user] svfVfy parameter in ffmpeg In-Reply-To: References: Message-ID: I see rtmpe protocol in documentation you sent, however in my ffmpeg version I have not. My ffmpeg version is N-52554-gb691bc4, I download the latest I think :S 2013/5/27 Mustafa Yavuz <89.yavuz at gmail.com>: > Sorry, I asked wrong question, I had seen rtmp_swfverify later, my > problem was with rtmpe protocol that it seems ffmpeg does not support > this protocol while rtmpdump does so. Is there any working for this > issue? > > 2013/5/27 Paul B Mahol : >> On 5/27/13, Mustafa Yavuz <89.yavuz at gmail.com> wrote: >>> Hi, >>> Is there any option similar to swfVfy, used in rtmpdump, for ffmpeg >>> script. Since svfUrl does not work all time I need this paramater and >>> I had to use svfVfy. >>> Thanks.. >> >> There is documentation, see rtmp_swfverify in: >> >> http://ffmpeg.org/ffmpeg-protocols.html#rtmp >> >>> >>> Mustafa Yavuz >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user From onemda at gmail.com Mon May 27 13:23:52 2013 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 27 May 2013 11:23:52 +0000 Subject: [FFmpeg-user] svfVfy parameter in ffmpeg In-Reply-To: References: Message-ID: On 5/27/13, Mustafa Yavuz <89.yavuz at gmail.com> wrote: > I see rtmpe protocol in documentation you sent, however in my ffmpeg > version I have not. My ffmpeg version is N-52554-gb691bc4, I download > the latest I think :S You need to compile it with openssl/gnutls enabled. From 89.yavuz at gmail.com Mon May 27 13:29:03 2013 From: 89.yavuz at gmail.com (Mustafa Yavuz) Date: Mon, 27 May 2013 14:29:03 +0300 Subject: [FFmpeg-user] svfVfy parameter in ffmpeg In-Reply-To: References: Message-ID: It works now! Thank you Paul. 2013/5/27 Paul B Mahol : > On 5/27/13, Mustafa Yavuz <89.yavuz at gmail.com> wrote: >> I see rtmpe protocol in documentation you sent, however in my ffmpeg >> version I have not. My ffmpeg version is N-52554-gb691bc4, I download >> the latest I think :S > > You need to compile it with openssl/gnutls enabled. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Mon May 27 13:52:31 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 27 May 2013 11:52:31 +0000 (UTC) Subject: [FFmpeg-user] *** glibc detected *** /usr/bin/ffmpeg: invalid fastbin entry References: Message-ID: Molly Millions gmail.com> writes: > Our sysadmins compiled a new ffmpeg, but it fails with > the following. > Any ideas what went wrong? (Command line missing) > WARNING: library configuration mismatch This indicates a broken build but please feel free to run with valgrind and / or provde Video006.3gp.flv for testing. Carl Eugen From cehoyos at ag.or.at Mon May 27 14:07:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 27 May 2013 12:07:57 +0000 (UTC) Subject: [FFmpeg-user] FFv1 interlaced References: <51A3038A.7040401@das-werkstatt.com> Message-ID: Peter B. das-werkstatt.com> writes: > I wanted to compare FFv1's compression between interlaced > and progressive mode Looking at the source, I don't think there is an interlaced mode when encoding ffv1. You can test if such a mode would help compression: $ ffmpeg -i interlaced -vcodec ffv1 out1.avi $ ffmpeg -i interlaced -vf il=d:d -vcodec ffv1 out2.avi If out2.avi is smaller than out1.avi, that would indicate that an interlaced mode would help. The following should allow you to verify that the encoding was lossless (and therefore equivalent): $ ffmpeg -i out2.avi -vf il=i:i -f framecrc - Tests afaict very welcome! Carl Eugen From mollyrazormillions at gmail.com Mon May 27 14:27:38 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Mon, 27 May 2013 14:27:38 +0200 Subject: [FFmpeg-user] *** glibc detected *** /usr/bin/ffmpeg: invalid fastbin entry In-Reply-To: References: Message-ID: Looks like it dies with every video :)). I'll kick them in the arse and get back if everything crumbles :P. On Mon, May 27, 2013 at 1:52 PM, Carl Eugen Hoyos wrote: > Molly Millions gmail.com> writes: > > > Our sysadmins compiled a new ffmpeg, but it fails with > > the following. > > > Any ideas what went wrong? > > (Command line missing) > > > WARNING: library configuration mismatch > > This indicates a broken build but please feel free to > run with valgrind and / or provde Video006.3gp.flv > for testing. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From epkuson at gmail.com Mon May 27 14:30:16 2013 From: epkuson at gmail.com (ulf johansson) Date: Mon, 27 May 2013 08:30:16 -0400 Subject: [FFmpeg-user] ffmpeg segmenter starves when using -re and high bitrate Message-ID: Hello, I would need some help with ffmpeg. Project: I'm trying to configure ffmpeg to provide live TV HLS streaming and transcoding to my Ipad in my home. Input: Video source: Hauppauge HD PVR(CBR) - analogue Component + OPTICAL => h264 AAC mpegts CPU: quadcore when full transcoding is used~ 19-39-% load on all cores. (the lower bitrate => higher CPU load ) OS: LInux Ubuntu I had to break down the streaming in two steps. (I had some problem with buffer handling, i.e. the HD PVR stopped streaming, when I performed transcoding directly from /dev/video0) 1.) Record input stream to file and store the file in a mpeg TS file. $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y ~/repository/recorded_stream.ts Approx. 10s delay until starting transcoding process on 'ts' file. 2.)Transcode 'ts' and stream using HLS of live TV to IPAD. $/usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts stream%05d.ts Problem Description: =============== When performing transcoding and using bitrate of approx > 1.2 M (b:v 1000k), the live streaming to the IPAD starves after approximately a few minutes when new segments are not produced quick enough, i.e. playing the segments catches up with the available segments from the playlist even if the player is not started until 3-4 segments are available in playlist. The QOE result in a short stalls of the live video, and can be reduced by using pause for a while , but will eventually catch up again and the stalls resumes. When the higher bitrate is selected the transcoding FPS goes down 25-27, which I believe could be the reason for starving the client. TV signal is NTSC 1080i 59.94 interlaced, or 29.97 FPS, so I would expect the FPS output to also be 30 FPS for the live transcoded HLS segments. When I use 1M bitrate an output of 30 FPS is achieved and I don't experience the starving of file segments. The same problem can be re-produced with using VLC for viewing the HLS stream. I've tried to use forced FPS '-r 30' or '-r 29.97' on the transcoding process but it seems to have no affect when higher bitrates are used. E.g. if I set it to -r 32 it will only take affect if bitrate is < 1M. Would truly appreciate some help to solve the starving file segments since is significantly impacts the QOE for the end user. ============================ 1) Recording file $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y ~/repository/recorded_stream.ts ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 25.100 / 52. 25.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 50.100 / 3. 50.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x29eefc0] max_analyze_duration 5000000 reached at 5013333 microseconds Input #0, mpegts, from '/dev/video0': Duration: N/A, start: 0.387044, bitrate: 130 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s Output #0, mpegts, to '/home/jocho/repository/recorded_stream.ts': Metadata: encoder : Lavf55.1.100 Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 130 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=10219 fps= 62 q=-1.0 Lsize= 150029kB time=00:02:50.53 bitrate=7206.8kbits/s video:135224kB audio:2719kB subtitle:0 global headers:0kB muxing overhead 8.760707% $ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 2.1) bitrate 1M, "no starve", no -r, FPS stats => 30 FPS (below 29FPS which was the last stat output) $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec libx264 -b:v 1000k -acodec copy -s 1024x768 -aspect 4:3 -flags -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts stream%05d.ts ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 25.100 / 52. 25.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 50.100 / 3. 50.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x2c4e760] max_analyze_duration 5000000 reached at 5003333 microseconds Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 118 kb/s [libx264 @ 0x2c549a0] using SAR=1/1 [libx264 @ 0x2c549a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x2c549a0] profile High, level 3.1 [segment @ 0x2c53f00] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x2c53f00] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf55.1.100 Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], q=-1--1, 1000 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 118 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1105 fps= 29 q=32766.0 Lsize=N/A time=00:00:36.84 bitrate=N/A dup=1 drop=0 video:4368kB audio:588kB subtitle:0 global headers:0kB muxing overhead -100.000434% [libx264 @ 0x2c549a0] frame I:22 Avg QP:20.97 size: 18575 [libx264 @ 0x2c549a0] frame P:474 Avg QP:22.31 size: 6433 [libx264 @ 0x2c549a0] frame B:609 Avg QP:23.91 size: 1666 [libx264 @ 0x2c549a0] consecutive B-frames: 14.7% 27.3% 24.7% 33.3% [libx264 @ 0x2c549a0] mb I I16..4: 41.2% 50.9% 8.0% [libx264 @ 0x2c549a0] mb P I16..4: 6.8% 6.8% 0.6% P16..4: 30.3% 5.2% 3.1% 0.0% 0.0% skip:47.2% [libx264 @ 0x2c549a0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 23.2% 0.9% 0.2% direct: 1.0% skip:74.2% L0:36.7% L1:61.4% BI: 1.9% [libx264 @ 0x2c549a0] final ratefactor: 22.56 [libx264 @ 0x2c549a0] 8x8 transform intra:48.6% inter:91.1% [libx264 @ 0x2c549a0] coded y,uvDC,uvAC intra: 30.9% 34.7% 7.6% inter: 6.1% 9.0% 0.3% [libx264 @ 0x2c549a0] i16 v,h,dc,p: 36% 36% 4% 24% [libx264 @ 0x2c549a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 25% 3% 5% 6% 5% 5% 4% [libx264 @ 0x2c549a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 11% 3% 5% 6% 4% 4% 2% [libx264 @ 0x2c549a0] i8c dc,h,v,p: 65% 18% 14% 3% [libx264 @ 0x2c549a0] Weighted P-Frames: Y:1.9% UV:0.4% [libx264 @ 0x2c549a0] ref P L0: 66.4% 8.2% 18.6% 6.8% 0.0% [libx264 @ 0x2c549a0] ref B L0: 81.7% 16.0% 2.3% [libx264 @ 0x2c549a0] ref B L1: 94.4% 5.6% [libx264 @ 0x2c549a0] kb/s:970.43 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 2.2) bitrate 2M, "starve", no -r, FPS stats => 26-28 FPS (below 27FPS which was the last stat output, but alternating 26-28 throughout the trasnscoding) $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts stream%05d.ts ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 25.100 / 52. 25.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 50.100 / 3. 50.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x1cb5760] max_analyze_duration 5000000 reached at 5003333 microseconds Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 118 kb/s [libx264 @ 0x1cbb9a0] using SAR=1/1 [libx264 @ 0x1cbb9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x1cbb9a0] profile High, level 3.1 [segment @ 0x1cbaf00] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x1cbaf00] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf55.1.100 Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], q=-1--1, 2000 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 118 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 649 fps= 27 q=32766.0 Lsize=N/A time=00:00:21.71 bitrate=N/A dup=1 drop=0 video:5349kB audio:346kB subtitle:0 global headers:0kB muxing overhead -100.000377% [libx264 @ 0x1cbb9a0] frame I:15 Avg QP:17.04 size: 27166 [libx264 @ 0x1cbb9a0] frame P:301 Avg QP:18.57 size: 12511 [libx264 @ 0x1cbb9a0] frame B:333 Avg QP:20.28 size: 3916 [libx264 @ 0x1cbb9a0] consecutive B-frames: 18.2% 30.8% 28.2% 22.8% [libx264 @ 0x1cbb9a0] mb I I16..4: 31.2% 53.9% 15.0% [libx264 @ 0x1cbb9a0] mb P I16..4: 6.9% 10.2% 1.7% P16..4: 36.1% 11.1% 5.2% 0.0% 0.0% skip:28.7% [libx264 @ 0x1cbb9a0] mb B I16..4: 0.6% 0.4% 0.1% B16..8: 31.3% 2.9% 0.5% direct: 2.6% skip:61.6% L0:37.8% L1:57.2% BI: 5.1% [libx264 @ 0x1cbb9a0] final ratefactor: 18.84 [libx264 @ 0x1cbb9a0] 8x8 transform intra:53.4% inter:86.7% [libx264 @ 0x1cbb9a0] coded y,uvDC,uvAC intra: 44.7% 47.5% 18.7% inter: 13.8% 13.3% 1.2% [libx264 @ 0x1cbb9a0] i16 v,h,dc,p: 29% 35% 4% 31% [libx264 @ 0x1cbb9a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 19% 3% 5% 6% 5% 5% 4% [libx264 @ 0x1cbb9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 35% 12% 2% 4% 4% 3% 3% 2% [libx264 @ 0x1cbb9a0] i8c dc,h,v,p: 59% 20% 17% 3% [libx264 @ 0x1cbb9a0] Weighted P-Frames: Y:2.7% UV:0.7% [libx264 @ 0x1cbb9a0] ref P L0: 65.2% 7.0% 20.1% 7.6% 0.1% [libx264 @ 0x1cbb9a0] ref B L0: 79.6% 18.4% 1.9% [libx264 @ 0x1cbb9a0] ref B L1: 93.8% 6.2% [libx264 @ 0x1cbb9a0] kb/s:2023.47 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 2.3) bitrate 4M, "starve", no -r, FPS stats => 22-24 FPS (below 21FPS which was the last stat output, but alternating 21-24 throughout the transcoding) $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec libx264 -b:v 4000k -acodec copy -s 1024x768 -aspect 4:3 -flags -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts stream%05d.ts ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 25.100 / 52. 25.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 50.100 / 3. 50.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x301a760] max_analyze_duration 5000000 reached at 5003333 microseconds Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 118 kb/s [libx264 @ 0x30209a0] using SAR=1/1 [libx264 @ 0x30209a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x30209a0] profile High, level 3.1 [segment @ 0x301ff00] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x301ff00] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf55.1.100 Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], q=-1--1, 4000 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 118 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 484 fps= 21 q=32766.0 Lsize=N/A time=00:00:16.10 bitrate=N/A dup=1 drop=0 video:8041kB audio:257kB subtitle:0 global headers:0kB muxing overhead -100.000259% [libx264 @ 0x30209a0] frame I:10 Avg QP:12.15 size: 45657 [libx264 @ 0x30209a0] frame P:231 Avg QP:13.81 size: 24621 [libx264 @ 0x30209a0] frame B:243 Avg QP:15.47 size: 8599 [libx264 @ 0x30209a0] consecutive B-frames: 18.8% 33.1% 29.1% 19.0% [libx264 @ 0x30209a0] mb I I16..4: 24.8% 58.3% 16.9% [libx264 @ 0x30209a0] mb P I16..4: 6.2% 15.3% 3.5% P16..4: 31.4% 19.2% 9.5% 0.0% 0.0% skip:14.9% [libx264 @ 0x30209a0] mb B I16..4: 0.8% 0.7% 0.2% B16..8: 32.3% 9.2% 2.2% direct: 7.5% skip:47.2% L0:39.1% L1:49.7% BI:11.3% [libx264 @ 0x30209a0] final ratefactor: 14.08 [libx264 @ 0x30209a0] 8x8 transform intra:59.8% inter:71.0% [libx264 @ 0x30209a0] coded y,uvDC,uvAC intra: 65.1% 63.2% 43.7% inter: 26.2% 18.8% 3.4% [libx264 @ 0x30209a0] i16 v,h,dc,p: 26% 30% 5% 39% [libx264 @ 0x30209a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 23% 18% 3% 4% 6% 4% 5% 4% [libx264 @ 0x30209a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 33% 12% 2% 4% 4% 3% 3% 2% [libx264 @ 0x30209a0] i8c dc,h,v,p: 56% 20% 19% 4% [libx264 @ 0x30209a0] Weighted P-Frames: Y:2.6% UV:0.9% [libx264 @ 0x30209a0] ref P L0: 65.6% 5.7% 20.9% 7.7% 0.1% [libx264 @ 0x30209a0] ref B L0: 80.2% 18.3% 1.5% [libx264 @ 0x30209a0] ref B L1: 93.7% 6.3% [libx264 @ 0x30209a0] kb/s:4078.74 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 2.4) bitrate 2M, "starve", -r 30 , FPS stats => 26-28 FPS (below 28FPS which was the last stat output, but alternating 26-28 throughout the transcoding) OBS, same result as 2.2 without -r 30 $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 30 -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts stream%05d.ts ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 25.100 / 52. 25.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 50.100 / 3. 50.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x37db780] max_analyze_duration 5000000 reached at 5003333 microseconds Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 118 kb/s [libx264 @ 0x37e1d20] using SAR=1/1 [libx264 @ 0x37e1d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x37e1d20] profile High, level 3.1 [segment @ 0x37e1060] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x37e1060] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf55.1.100 Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], q=-1--1, 2000 kb/s, 90k tbn, 30 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 118 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 851 fps= 28 q=32766.0 Lsize=N/A time=00:00:28.30 bitrate=N/A dup=2 drop=0 video:6738kB audio:451kB subtitle:0 global headers:0kB muxing overhead -100.000299% [libx264 @ 0x37e1d20] frame I:18 Avg QP:16.76 size: 30818 [libx264 @ 0x37e1d20] frame P:370 Avg QP:18.19 size: 12310 [libx264 @ 0x37e1d20] frame B:463 Avg QP:19.80 size: 3867 [libx264 @ 0x37e1d20] consecutive B-frames: 15.5% 27.0% 26.4% 31.0% [libx264 @ 0x37e1d20] mb I I16..4: 28.9% 55.1% 16.0% [libx264 @ 0x37e1d20] mb P I16..4: 6.6% 9.3% 1.6% P16..4: 36.1% 11.1% 5.5% 0.0% 0.0% skip:29.9% [libx264 @ 0x37e1d20] mb B I16..4: 0.6% 0.5% 0.1% B16..8: 30.8% 2.7% 0.5% direct: 2.7% skip:62.2% L0:38.6% L1:56.9% BI: 4.5% [libx264 @ 0x37e1d20] final ratefactor: 18.40 [libx264 @ 0x37e1d20] 8x8 transform intra:53.0% inter:86.6% [libx264 @ 0x37e1d20] coded y,uvDC,uvAC intra: 44.7% 48.5% 20.8% inter: 13.2% 13.7% 1.3% [libx264 @ 0x37e1d20] i16 v,h,dc,p: 31% 36% 5% 28% [libx264 @ 0x37e1d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 22% 20% 3% 5% 6% 5% 5% 4% [libx264 @ 0x37e1d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 34% 13% 3% 4% 4% 4% 3% 2% [libx264 @ 0x37e1d20] i8c dc,h,v,p: 59% 20% 18% 3% [libx264 @ 0x37e1d20] Weighted P-Frames: Y:2.2% UV:0.5% [libx264 @ 0x37e1d20] ref P L0: 65.1% 6.6% 20.4% 7.8% 0.0% [libx264 @ 0x37e1d20] ref B L0: 79.4% 18.3% 2.3% [libx264 @ 0x37e1d20] ref B L1: 93.2% 6.8% [libx264 @ 0x37e1d20] kb/s:1946.00 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 2.5) bitrate 512k, "no starve", -r 32 , FPS stats => 32 FPS (below 31 FPS which was the last stat output, but after initially a few around 29, it stabilized to 32 fairly quickly. It shows that FPS can be forced. $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 32 -vcodec libx264 -b:v 512k -acodec copy -s 1024x768 -aspect 4:3 -flags -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts stream%05d.ts ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 25.100 / 52. 25.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 50.100 / 3. 50.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x1dda780] max_analyze_duration 5000000 reached at 5003333 microseconds Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 118 kb/s [libx264 @ 0x1de0d20] using SAR=1/1 [libx264 @ 0x1de0d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x1de0d20] profile High, level 3.1 [segment @ 0x1de0060] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x1de0060] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf55.1.100 Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], q=-1--1, 512 kb/s, 90k tbn, 32 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 118 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 914 fps= 31 q=32766.0 Lsize=N/A time=00:00:28.60 bitrate=N/A dup=59 drop=0 video:1654kB audio:456kB subtitle:0 global headers:0kB muxing overhead -100.001018% [libx264 @ 0x1de0d20] frame I:18 Avg QP:27.26 size: 10046 [libx264 @ 0x1de0d20] frame P:407 Avg QP:29.04 size: 2918 [libx264 @ 0x1de0d20] frame B:489 Avg QP:31.59 size: 665 [libx264 @ 0x1de0d20] consecutive B-frames: 18.2% 24.3% 21.7% 35.9% [libx264 @ 0x1de0d20] mb I I16..4: 53.8% 42.9% 3.3% [libx264 @ 0x1de0d20] mb P I16..4: 7.1% 4.7% 0.3% P16..4: 18.2% 2.0% 0.8% 0.0% 0.0% skip:66.8% [libx264 @ 0x1de0d20] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 13.5% 0.4% 0.1% direct: 0.2% skip:85.5% L0:30.1% L1:68.9% BI: 1.1% [libx264 @ 0x1de0d20] final ratefactor: 28.13 [libx264 @ 0x1de0d20] 8x8 transform intra:40.7% inter:92.4% [libx264 @ 0x1de0d20] coded y,uvDC,uvAC intra: 19.6% 19.0% 1.5% inter: 2.0% 1.9% 0.0% [libx264 @ 0x1de0d20] i16 v,h,dc,p: 43% 33% 5% 19% [libx264 @ 0x1de0d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 26% 3% 4% 5% 4% 5% 3% [libx264 @ 0x1de0d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 27% 11% 3% 4% 6% 4% 5% 2% [libx264 @ 0x1de0d20] i8c dc,h,v,p: 80% 11% 9% 1% [libx264 @ 0x1de0d20] Weighted P-Frames: Y:2.0% UV:0.5% [libx264 @ 0x1de0d20] ref P L0: 66.6% 11.2% 16.4% 5.8% 0.0% [libx264 @ 0x1de0d20] ref B L0: 85.0% 12.6% 2.4% [libx264 @ 0x1de0d20] ref B L1: 96.2% 3.8% [libx264 @ 0x1de0d20] kb/s:474.38 !!!!!!! Would truly appreciate some help to solve the starving file segments since is significantly impacts the QOE for the end user. best regard uffe From ruffsobel at web.de Mon May 27 15:07:22 2013 From: ruffsobel at web.de (Raphael Sobel) Date: Mon, 27 May 2013 15:07:22 +0200 (CEST) Subject: [FFmpeg-user] overlaying two streams with blend filter Message-ID: A non-text attachment was scrubbed... Name: bottom+top+mix.jpg Type: image/jpeg Size: 26578 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: top.jpg Type: image/jpeg Size: 11031 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bottom.jpg Type: image/jpeg Size: 29396 bytes Desc: not available URL: From pb at das-werkstatt.com Mon May 27 15:17:16 2013 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 27 May 2013 15:17:16 +0200 Subject: [FFmpeg-user] FFv1 interlaced In-Reply-To: References: <51A3038A.7040401@das-werkstatt.com> Message-ID: <20130527151716.13053kd9q6hz1ivw@webmail.tuwien.ac.at> Quoting Carl Eugen Hoyos : > Peter B. das-werkstatt.com> writes: > >> I wanted to compare FFv1's compression between interlaced >> and progressive mode > > Looking at the source, I don't think there is an interlaced > mode when encoding ffv1. Aha. Ok. > You can test if such a mode would help compression: > $ ffmpeg -i interlaced -vcodec ffv1 out1.avi > $ ffmpeg -i interlaced -vf il=d:d -vcodec ffv1 out2.avi Interesting filter. Didn't know that one. Will check this. Thanks! Pb From mediastream at gmail.com Mon May 27 17:54:24 2013 From: mediastream at gmail.com (Dennis) Date: Mon, 27 May 2013 11:54:24 -0400 Subject: [FFmpeg-user] Macroblock artifact detection. Message-ID: Anyone has an idea of a method on detecting macroblock artifacts aka "blockiness", "tiling effect" ? Similar to ftp://vqeg.its.bldrdoc.gov/Documents/Meetings/orlando_2001/Sci2001/SCI2001_3.pdf From leelacade at centurylink.net Tue May 28 00:43:32 2013 From: leelacade at centurylink.net (Zarathustra) Date: Mon, 27 May 2013 15:43:32 -0700 (PDT) Subject: [FFmpeg-user] "error, non monotone timestamps" In-Reply-To: <1351564327210-4654534.post@n4.nabble.com> References: <4BCD181E.9050406@gmail.com> <4BCE0A21.7030706@gmail.com> <4BCE0D0C.5030103@googlemail.com> <4BCE1BDD.3050708@gmail.com> <4BCEAB92.3080602@googlemail.com> <1351413873812-4654479.post@n4.nabble.com> <1351564327210-4654534.post@n4.nabble.com> Message-ID: <1369694612022-4659354.post@n4.nabble.com> And a big thank-you to me... Ran into the problem again today and didn't remember the answer was to not code "-acodec copy", but "-acodec libmp3lame" or whatever you like. Fixed it again. Meanwhile, no movement on the bug fix. AND WHY, EXACTLY, IS THAT NOT A SOLUTION??? This is sooooo typical. You have a bug report for this when one is encoding a mkv, and every thread it's mentioned says stuff like, "have you opened a report for mp4", etc. This is real simple. The error message is wrong. If you're going to throw everything up in the air and quit, then explain why. As it stands the error handler closes the file and the caller says, "Oh, can't write to file" and exits. THAT is something that is not a solution. Oh, might want to sit down. This will be a huge shock. *whispers* (You could ignore the error and continue coding with the sync params from before the error and it would work just fine! But you'd rather have the program fail so that you KNOW there was a glitch of no consequence in the source. Wouldn't you? Hey, the programmer know more about what you want to do than you do!) -async 1 is a special case where only the start of the audio stream is corrected without any later correction. It is often helpful when you have audio and video out of sync, but the streams are the correct (same) length, and you just want it to start together and then keeping writing at that rate without trying to "help you". Yeah, it's one of the few examples where you can turn off the wonderful feature that doesn't work. This is how MS works. Why improve your product when you can dominate the market and define professionalism so that no one tries to do any better? I worked on that crap from version 0.1 in 1981 until the late '80s and what I'm seeing in the Linux community now feels like we're going exactly the same way. Yeah, I know that's out of left field, but...never mind. You'll never get it. Yeah, it's different. Ever noticed Calculator, Notepad and Paintbrush aren't like the rest of Windoze? Strong central metaphor about how to use it leveraging everyday experience, ability to think about your work, not the tool, didactic GUI... That was me. People who don't really get what I'm talking about have accepted the Microshaft philosophy. And a thread is relevant until the bug is fixed. Groids. (For the linguistically challenged that think anything not in Urban Dictionary is a neologism, it's a nerd without the socially acceptable spin) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/error-non-monotone-timestamps-tp2016807p4659354.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mindbuilder2 at hotmail.com Tue May 28 01:39:35 2013 From: mindbuilder2 at hotmail.com (mind builder) Date: Mon, 27 May 2013 16:39:35 -0700 Subject: [FFmpeg-user] Ffmpeg accessing gnome-keyring - Am I pwned? Message-ID: I was using ffmpeg to trim a video and it worked but every time I run it the top of the terminal output starts with the error: "WARNING: gnome-keyring:: couldn't connect to: /run/user/mindbuilder/keyring-jAd74z/pkcs11: No such file or directory" Does ffmpeg normally access the gnome-keyring or has my ffmpeg been trojaned to steal my encryption keys or what? I don't see why trimming a video would require access to my keyring. I'm using ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1 under xubuntu 12.10 amd64. Xubuntu uses the Xfce desktop without gnome and so may not have gnome-keyring installed completely or even partially. But then I don't see why ffmpeg should need it installed at all. From thuytel at yahoo.com Mon May 27 11:54:18 2013 From: thuytel at yahoo.com (hanal) Date: Mon, 27 May 2013 02:54:18 -0700 (PDT) Subject: [FFmpeg-user] problem updating avcodec_decode_video Message-ID: <1369648458075-4659339.post@n4.nabble.com> Hi guys, I have a problem when updating ffmpeg. I used avcodec_decode_video before, i now avcodec_decode_video2 instead. But my programme can not decode the images. It has only the sound. Can you please, tell me how i can do ? Thank you for your help. Regards -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/problem-updating-avcodec-decode-video-tp4659339.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Tue May 28 02:44:09 2013 From: lou at lrcd.com (Lou) Date: Mon, 27 May 2013 16:44:09 -0800 Subject: [FFmpeg-user] Ffmpeg accessing gnome-keyring - Am I pwned? In-Reply-To: References: Message-ID: <1369701849.2291.140661236395777.754198D8@webmail.messagingengine.com> On Mon, May 27, 2013, at 03:39 PM, mind builder wrote: > > I'm using ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1 under xubuntu > 12.10 amd64. Unfortunately you're using a fake "ffmpeg" that is not a product of the FFmpeg project, and therefore is not supported here. It is a confusing situation for users, but see the following links for some explanation: From soho123.2012 at gmail.com Tue May 28 08:13:05 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 28 May 2013 14:13:05 +0800 Subject: [FFmpeg-user] format of video stream for WindowsMedia player Message-ID: Hi all, Does anyone know which format of video stream that ffserver can output can be played by windows media player? such that I can modify my fferver.conf. thanks! From cehoyos at ag.or.at Tue May 28 09:12:24 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 May 2013 07:12:24 +0000 (UTC) Subject: [FFmpeg-user] "error, non monotone timestamps" References: <4BCD181E.9050406@gmail.com> <4BCE0A21.7030706@gmail.com> <4BCE0D0C.5030103@googlemail.com> <4BCE1BDD.3050708@gmail.com> <4BCEAB92.3080602@googlemail.com> <1351413873812-4654479.post@n4.nabble.com> <1351564327210-4654534.post@n4.nabble.com> <1369694612022-4659354.post@n4.nabble.com> Message-ID: Zarathustra centurylink.net> writes: > You could ignore the error and continue coding > with the sync params from before the error and > it would work just fine! No, it (unfortunately) wouldn't ;-( 1: As said, please do generally not reply to 30-months old threads, this is very rarely a good idea and certainly not in this case (where the problem always was unreproducible). 2: I am not a native speaker and I absolutely may miss something, but I did neither find a bug report nor a feature request in your mail but I have a (tiny) feeling that there is something you want to tell us. If I am right, please provide the command line that fails for your together with the complete uncut console output (that is everything ffmpeg prints on the screen including the command line you used). Carl Eugen From cehoyos at ag.or.at Tue May 28 09:17:35 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 May 2013 07:17:35 +0000 (UTC) Subject: [FFmpeg-user] overlaying two streams with blend filter References: Message-ID: Raphael Sobel web.de> writes: [nothing] If you want support on this mailing list, please provide your failing command line together with the complete, uncut console output. Carl Eugen From cehoyos at ag.or.at Tue May 28 09:15:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 May 2013 07:15:09 +0000 (UTC) Subject: [FFmpeg-user] Ffmpeg accessing gnome-keyring - Am I pwned? References: Message-ID: mind builder hotmail.com> writes: > I'm using ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1 I cannot answer your original question (I don't know) but please understand that the creators of this intentionally broken version of FFmpeg claim that it is exploitable. (Debian and Ubuntu apparently do not care about security, there are rumors that the same is nowadays true for vlc.) Please see http://ffmpeg.org/download.html for supported versions. Carl Eugen From francois.visagie at gmail.com Tue May 28 09:29:02 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 28 May 2013 09:29:02 +0200 Subject: [FFmpeg-user] Can -b-pyramid be used for --bluray-compat? Message-ID: <005501ce5b75$095e9da0$1c1bd8e0$@gmail.com> Hi All, I'm trying to help another person in an area where I have little expertise (BluRay encoding) ;-). The question is: "Is there a way to set x264 flags like --bluray-compat directly?" Does http://www.ffmpeg.org/ffmpeg-codecs.html#toc-Private-Options: "'-b-pyramid integer' Keep some B-frames as references. Possible values: 'none' 'strict' Strictly hierarchical pyramid. 'normal' Non-strict (not Blu-ray compatible). " provide the answer? If not, please tell me the correct answer? Thanks, Francois Francois Visagie T: +27 (83) 326-4358 F: +27 (86) 511-3490 E: francois.visagie at gmail.com From soho123.2012 at gmail.com Tue May 28 11:28:27 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 28 May 2013 17:28:27 +0800 Subject: [FFmpeg-user] ffserver can not get valid ffm header around ffm file size In-Reply-To: References: Message-ID: Hi All, ffserver will hang since there are not available ffm header in packet->buffer. does anyone have idea? 2013/5/24 Soho Soho123 > Hi All, > > I got the problem about ffserver can not get a valid ffm header. > Such that ffserver can not get correct packet size and stream index around > all ffm file size. > how to reset the index for ffserver read video data for output stream? > Does anyone have idea? > > > > > > From nichot20 at yahoo.com Tue May 28 11:45:48 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 28 May 2013 10:45:48 +0100 Subject: [FFmpeg-user] Can -b-pyramid be used for --bluray-compat? In-Reply-To: <005501ce5b75$095e9da0$1c1bd8e0$@gmail.com> References: <005501ce5b75$095e9da0$1c1bd8e0$@gmail.com> Message-ID: <51A47CCC.1070209@yahoo.com> On 28/05/13 08:29, Francois Visagie wrote: > Hi All, > > > > I'm trying to help another person in an area where I have little expertise > (BluRay encoding) ;-). > > > > The question is: "Is there a way to set x264 flags like --bluray-compat > directly?" > Yes! use "-x264opts bluray-compat=1 multiple options should be separated with a colon ":" but no spaces. > > > [..] -- Tim From francois.visagie at gmail.com Tue May 28 12:43:14 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 28 May 2013 12:43:14 +0200 Subject: [FFmpeg-user] Can -b-pyramid be used for --bluray-compat? In-Reply-To: <51A47CCC.1070209@yahoo.com> References: <005501ce5b75$095e9da0$1c1bd8e0$@gmail.com> <51A47CCC.1070209@yahoo.com> Message-ID: <00bd01ce5b90$2ab13d80$8013b880$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Tim Nicholson > Sent: 28 May 2013 11:46 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Can -b-pyramid be used for --bluray-compat? > > On 28/05/13 08:29, Francois Visagie wrote: > > Hi All, > > > > > > > > I'm trying to help another person in an area where I have little > > expertise (BluRay encoding) ;-). > > > > > > > > The question is: "Is there a way to set x264 flags like > > --bluray-compat directly?" > > > > Yes! use "-x264opts bluray-compat=1 > > multiple options should be separated with a colon ":" but no spaces. Thank you, Tim! > [..] From soho123.2012 at gmail.com Tue May 28 13:14:17 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 28 May 2013 19:14:17 +0800 Subject: [FFmpeg-user] ffm file layout Message-ID: Hi all, I see the example of ffserver.conf that describes tmp file about feed # File=/tmp/feed_name.ffm FileMaxSize=5M Could someone explain the layout of /tmp/feed_name.ffm? how to map the struct FFMContext to the file? Because I got the serious problem about header in struct FFMContext that are corrupt. ffserver can not find the valid data content of struct FFMContext. Does someone have idea? From mollyrazormillions at gmail.com Tue May 28 14:13:22 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Tue, 28 May 2013 14:13:22 +0200 Subject: [FFmpeg-user] Tile produce erroneous output Message-ID: HI! The newest ffmpeg produces an invalid image tile, after executing the following: $ ffmpeg -i 00002.MTS -an -vsync 0 -vf 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\,2),scale=90:45,tile=10x9' -qscale:v 3 'f%03d.jpg' ffmpeg version N-39939-gc8e9c92 Copyright (c) 2000-2013 the FFmpeg developers built on May 26 2013 12:29:28 with gcc 4.7 (Debian 4.7.3-4) configuration: --extra-cflags=-I../static/include --extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3 --enable-static --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.100 / 55. 12.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 70.101 / 3. 70.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from '00002.MTS': Duration: 00:00:19.78, start: 1.000033, bitrate: 16138 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090) Output #0, image2, to 'f%03d.jpg': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: mjpeg, yuvj420p, 900x405 [SAR 8:9 DAR 160:81], q=2-31, 200 kb/s, 90k tbn, 0.28 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help frame= 1 fps=0.2 q=0.0 Lsize=N/A time=00:00:03.60 bitrate=N/A video:28kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.077345% Image tile: http://imgur.com/rxHfr3k An older version with the same command produces a correct result: $ ffmpeg -i 00002.MTS -an -vsync 0 -vf 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\,2),scale=90:45,tile=10x9' -qscale:v 3 'f%03d.jpg' ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers built on Oct 8 2012 03:05:27 with gcc 4.4.5 (Debian 4.4.5-8) configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mpegts, from '00002.MTS': Duration: 00:00:19.78, start: 1.000033, bitrate: 16138 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 256 kb/s Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090) Output #0, image2, to 'f%03d.jpg': Metadata: encoder : Lavf54.29.104 Stream #0:0: Video: mjpeg, yuvj420p, 900x405 [SAR 8:9 DAR 160:81], q=2-31, 200 kb/s, 90k tbn, 0.56 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help frame= 1 fps=0.1 q=0.0 Lsize= 0kB time=00:00:01.80 bitrate= 0.0kbits/s video:16kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000% http://imgur.com/MOiHDvO Any ideas what could be wrong? Thanks! From cehoyos at ag.or.at Tue May 28 14:20:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 May 2013 12:20:38 +0000 (UTC) Subject: [FFmpeg-user] Tile produce erroneous output References: Message-ID: Molly Millions gmail.com> writes: > The newest ffmpeg produces an invalid image tile, > after executing the following: > > $ ffmpeg -i 00002.MTS If you cannot run git bisect, please provide the input sample 00002.MTS Carl Eugen From onemda at gmail.com Tue May 28 14:37:17 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 28 May 2013 12:37:17 +0000 Subject: [FFmpeg-user] Tile produce erroneous output In-Reply-To: References: Message-ID: On 5/28/13, Carl Eugen Hoyos wrote: > Molly Millions gmail.com> writes: > >> The newest ffmpeg produces an invalid image tile, >> after executing the following: >> >> $ ffmpeg -i 00002.MTS > > If you cannot run git bisect, please provide the input > sample 00002.MTS Not needed, as same (green lines) happens here with first video stream i picked. From soho123.2012 at gmail.com Tue May 28 15:08:05 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 28 May 2013 21:08:05 +0800 Subject: [FFmpeg-user] ffserver parse ffm header got wrong size and stream index, then no any video data output In-Reply-To: References: Message-ID: Hi All, Does anyone have any idea about this issue? I got this problem for a long time. I can not get any progress by myself. Need your help !!! Thanks! 2013/5/24 Soho Soho123 > Hi Carl, > > the issue is the same as :http://roundup.libav.org/issue855 > > ffserver hangs when feeding it via http > Do you have any idea? > > > > > ================================================== > > hi All, > > I got the error when I using vlc to connect ffserver to get video stream, > the video data is from usb webcam. > video stream will stop when the error is occur > > the ffserver conf: > > Feed feed1.ffm > Format mjpeg > VideoSize 640x480 > VideoFrameRate 30 > VideoCodec mjpeg > Noaudio > > ffserver command : > ffserver -f /etc/ffserver.conf & > ffmpeg command: > ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i > /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm > > the output log: > ==================================================== > ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers > built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) > configuration: --enable-cross-compile --cross-prefix=sdk-linux- > --arch=mips --target-os=linux --disable > -doc --disable-htmlpages --disable-manpages --disable-podpages > --disable-txtpages --disable-mips32r2 --dis > able-ffplay --disable-postproc --disable-runtime-cpudetect > --disable-swscale-alpha --disable-mipsdspr1 --d > isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs > --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl > --enable-libx264 --extra-c > flags=-I/users/stream_server/ShareLib_Install/bin/../include > --extra-libs='-L/users/stream_server/Shar > eLib_Install/bin/../lib -lx264' > --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d > isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' > libavutil 52. 18.100 / 52. 18. > 100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > Wed May 8 11:17:50 2013 FFserver started. > ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i > /dev/video0 -v > codec copy http://localhost:8090/feed1.ffm > ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers > built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) > configuration: --enable-cross-compile --cross-prefix=sdk-linux- > --arch=mips --target-os=linux --disable > -doc --disable-htmlpages --disable-manpages --disable-podpages > --disable-txtpages --disable-mips32r2 --dis > able-ffplay --disable-postproc --disable-runtime-cpudetect > --disable-swscale-alpha --disable-mipsdspr1 --d > isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs > --bindir=/users/stream_server/ffmpeg/romfs --disable-bsfs --disable-filters > --enable-gpl --enable-libx264 --extra-c > flags=-I/users/stream_server/ShareLib_Install/bin/../include > --extra-libs='-L/users/stream_server/Shar > eLib_Install/bin/../lib -lx264' > --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d > isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' > libavutil 52. 18.100 / 52. 18. > 100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > [video4linux2,v4l2 @ 0x68d650] Estimating duration from bitrate, this may > be inaccurate > Input #0, video4linux2,v4l2, from '/dev/video0': > Duration: N/A, start: 38.490000, bitrate: N/A > Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 fps, 30 tbr, > 1000k tbn, 1000k tbc > Wed May 8 11:18:06 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 > 4175 > Output #0, ffm, to 'http://localhost:8090/feed1.ffm': > Metadata: > creation_time : now > encoder : Lavf54.63.104 > Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=2-31, -5 kb/s, 30 fps, > 1000k tbn, 1000k tbc > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Press [q] to stop, [?] for help > frame= 18 fps=0.0 q=-1.0 size= 1076kB time=00:00:00.80 > bitrate=11018.2kbits/s > frame= 34 fps= 33 q=-1.0 size= 2244kB time=00:00:01.34 > bitrate=13718.5kbits/s frame= 49 fps= 32 q=-1.0 size= 3336kB > time=00:00:01.84 bitrate=14852.4kbits/s frame= 64 fps= 32 q=-1.0 > size= 4376kB time=00:00:02.34 bitrate=15319.7kbits/s frame= 79 fps= > 31 q=-1.0 size= 5468kB time=00:00:02.84 bitrate=15772.5kbits/s > frame= 94 fps= 31 q=-1.0 size= 6624kB time=00:00:03.34 > bitrate=16246.6kbits/s frame= 109 fps= 31 q=-1.0 size= 7788kB > time=00:00:03.84 bitrate=16614.4kbits/s frame= 124 fps= 31 q=-1.0 > size= 8960kB time=00:00:04.34 bitrate=16912.5kbits/s frame= 139 fps= > 31 q=-1.0 size= 10128kB time=00:00:04.84 bitrate=17142.3kbits/s > frame= 154 fps= 31 q=-1.0 size= 11296kB time=00:00:05.34 > bitrate=17329.0kbits/s frame= 168 fps= 30 q=-1.0 size= 12384kB > time=00:00:05.81 bitrate=17461.2kbits/s frame= 183 fps= 30 q=-1.0 > size= 13544kB time=00:00:06.31 bitrate=17583.6kbits/s frame= 198 fps= > 30 q=-1.0 size= 14704kB time=00:00:06.81 bitrate=17688.0kbits/s > frame= 213 fps= 30 q=-1.0 size= 15860kB time=00:00:07.31 > bitrate=17773.6kbits/s frame= 228 fps= 30 q=-1.0 size= 17020kB > time=00:00:07.81 bitrate=17852.5kbits/s frame= 243 fps= 30 q=-1.0 > size= 18180kB time=00:00:08.31 bitrate=17921.8kbits/s frame= 258 fps= > 30 q=-1.0 size= 19340kB time=00:00:08.81 bitrate=17983.3kbits/s > frame= 273 fps= 30 q=-1.0 size= 20500kB time=00:00:09.31 > bitrate=18038.2kbits/s frame= 288 fps= 30 q=-1.0 size= 21656kB > time=00:00:09.81 bitrate=18084.2kbits/s frame= 303 fps= 30 q=-1.0 > size= 22816kB time=00:00:10.31 bitrate=18128.9kbits/s frame= 318 fps= > 30 q=-1.0 size= 23972kB time=00:00:10.81 bitrate=18166.4kbits/s Wed > May 8 11:18:17 2013 [ffm @ 0x663a20]invalid stream index 90 > frame= 333 fps= 30 q=-1.0 size= 25132kB time=00:00:11.31 > bitrate=18203.5kbits/s Wed May 8 11:18:18 2013 [ffm @ 0x663a20]invalid > stream index 120 > frame= 348 fps= 30 q=-1.0 size= 26288kB time=00:00:11.81 > bitrate=18234.7kbits/s frame= 363 fps= 30 q=-1.0 size= 27448kB > time=00:00:12.31 bitrate=18266.0kbits/s frame= 378 fps= 30 q=-1.0 > size= 28604kB time=00:00:12.82 bitrate=18278.0kbits/s frame= 393 fps= > 30 q=-1.0 size= 29768kB time=00:00:13.32 bitrate=18307.8kbits/s > frame= 408 fps= 30 q=-1.0 size= 30936kB time=00:00:13.82 > bitrate=18337.7kbits/s frame= 423 fps= 30 q=-1.0 size= 32108kB > time=00:00:14.32 bitrate=18367.9kbits/s frame= 438 fps= 30 q=-1.0 > size= 33276kB time=00:00:14.82 bitrate=18393.9kbits/s frame= 453 fps= > 30 q=-1.0 size= 34444kB time=00:00:15.32 bitrate=18418.1kbits/s > frame= 468 fps= 30 q=-1.0 size= 35612kB time=00:00:15.82 > bitrate=18440.8kbits/s frame= 483 fps= 30 q=-1.0 size= 36780kB > time=00:00:16.32 bitrate=18462.1kbits/s frame= 498 fps= 30 q=-1.0 > size= 37948kB time=00:00:16.82 bitrate=18482.2kbits/s frame= 513 fps= > 30 q=-1.0 size= 39116kB time=00:00:17.32 bitrate=18501.1kbits/s > frame= 528 fps= 30 q=-1.0 size= 40284kB time=00:00:17.82 > bitrate=18518.9kbits/s frame= 543 fps= 30 q=-1.0 size= 41448kB > time=00:00:18.32 bitrate=18534.0kbits/s frame= 558 fps= 30 q=-1.0 > size= 42612kB time=00:00:18.82 bitrate=18548.2kbits/s frame= 573 fps= > 30 q=-1.0 size= 43780kB time=00:00:19.32 bitrate=18563.4kbits/s Wed > May 8 11:18:25 2013 192.168.1.100 - - [GET] "/test.mjpeg HTTP/1.1" 200 > 1499094 > frame= 588 fps= 30 q=-1.0 size= 44944kB time=00:00:19.82 > bitrate=18576.2kbits/s frame= 603 fps= 30 q=-1.0 size= 46108kB > time=00:00:20.32 bitrate=18588.4kbits/s frame= 618 fps= 30 q=-1.0 > size= 47272kB time=00:00:20.82 bitrate=18600.0kbits/s frame= 633 fps= > 30 q=-1.0 size= 48436kB time=00:00:21.32 bitrate=18611.1kbits/s > frame= 648 fps= 30 q=-1.0 size= 49604kB time=00:00:21.82 > bitrate=18623.1kbits/s frame= 663 fps= 30 q=-1.0 size= 50760kB > time=00:00:22.32 bitrate=18630.2kbits/s frame= 678 fps= 30 q=-1.0 > size= 51896kB time=00:00:22.82 bitrate=18629.8kbits/s frame= 693 fps= > 30 q=-1.0 size= 53024kB time=00:00:23.32 bitrate=18626.6kbits/s > frame= 708 fps= 30 q=-1.0 size= 54144kB time=00:00:23.82 > bitrate=18620.8kbits/s frame= 723 fps= 30 q=-1.0 size= 55264kB > time=00:00:24.32 bitrate=18615.2kbits/s frame= 738 fps= 30 q=-1.0 > size= 56388kB time=00:00:24.82 bitrate=18611.2kbits/s frame= 753 fps= > 30 q=-1.0 size= 57508kB time=00:00:25.32 bitrate=18606.1kbits/s > frame= 768 fps= 30 q=-1.0 size= 58628kB time=00:00:25.82 > bitrate=18601.1kbits/s frame= 783 fps= 30 q=-1.0 size= 59748kB > time=00:00:26.32 bitrate=18596.3kbits/s frame= 798 fps= 30 q=-1.0 > size= 60876kB time=00:00:26.82 bitrate=18594.2kbits/s frame= 808 fps= > 30 q=-1.0 Lsize= 61628kB time=00:00:27.16 bitrate=18588.2kbits/s > video:61400kB audio:0kB subtitle:0 global headers:0kB muxing overhead > 0.371715% > Wed May 8 11:18:33 2013 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 > 63107072 > Received signal 2: terminating. > # > ================================================== > > ffmpeg seems keep running, > but no any video data output by ffserver, > the "invalid stream index" is print out from > /libavformat/fmdec.c, function ffm_read_packet(), > and I also get the error, > function ffm_read_packet(), > case READ_DATA: > size = AV_RB24(ffm->header + 2); > the value of size is very very large, then ffm_is_avail_data() will return > EAGAIN, > such that there is no any video data can be output. > Does anyone have idea? > Any input is very appreciated! > > > Best Regards, > Soho > > From ubitux at gmail.com Tue May 28 15:10:25 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Tue, 28 May 2013 15:10:25 +0200 Subject: [FFmpeg-user] Tile produce erroneous output In-Reply-To: References: Message-ID: <20130528131025.GL12526@leki> On Tue, May 28, 2013 at 12:37:17PM +0000, Paul B Mahol wrote: > On 5/28/13, Carl Eugen Hoyos wrote: > > Molly Millions gmail.com> writes: > > > >> The newest ffmpeg produces an invalid image tile, > >> after executing the following: > >> > >> $ ffmpeg -i 00002.MTS > > > > If you cannot run git bisect, please provide the input > > sample 00002.MTS > > Not needed, as same (green lines) happens here with first video stream i picked. Patch on the devel mailing list. It would be nice to see which commit introduced the regression though. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From mollyrazormillions at gmail.com Tue May 28 15:36:27 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Tue, 28 May 2013 15:36:27 +0200 Subject: [FFmpeg-user] Tile produce erroneous output In-Reply-To: <20130528131025.GL12526@leki> References: <20130528131025.GL12526@leki> Message-ID: Thanks for the quick fix! On Tue, May 28, 2013 at 3:10 PM, Cl?ment B?sch wrote: > On Tue, May 28, 2013 at 12:37:17PM +0000, Paul B Mahol wrote: > > On 5/28/13, Carl Eugen Hoyos wrote: > > > Molly Millions gmail.com> writes: > > > > > >> The newest ffmpeg produces an invalid image tile, > > >> after executing the following: > > >> > > >> $ ffmpeg -i 00002.MTS > > > > > > If you cannot run git bisect, please provide the input > > > sample 00002.MTS > > > > Not needed, as same (green lines) happens here with first video stream i > picked. > > Patch on the devel mailing list. > > It would be nice to see which commit introduced the regression though. > > -- > Cl?ment B. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From tevans.uk at googlemail.com Tue May 28 15:57:45 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Tue, 28 May 2013 14:57:45 +0100 Subject: [FFmpeg-user] Time shift In-Reply-To: References: <000001ce5a3e$3159bd40$940d37c0$@com> Message-ID: On Mon, May 27, 2013 at 7:04 AM, Andrey Utkin wrote: > I think "time shift" means getting to future or past, right? > FFmpeg cannot take you to furure or past, unfortunately. This is not completely true, every time I sit down to play with FFmpeg, I look up at the clock and find I have been transported in to the future, usually by at least several hours. Tom From pb at das-werkstatt.com Tue May 28 16:04:13 2013 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 28 May 2013 16:04:13 +0200 Subject: [FFmpeg-user] FFv1 interlaced In-Reply-To: <20130527151716.13053kd9q6hz1ivw@webmail.tuwien.ac.at> References: <51A3038A.7040401@das-werkstatt.com> <20130527151716.13053kd9q6hz1ivw@webmail.tuwien.ac.at> Message-ID: <20130528160413.20563k7xlr4x4cil@webmail.tuwien.ac.at> Quoting "Peter B." : > Quoting Carl Eugen Hoyos : >> You can test if such a mode would help compression: >> $ ffmpeg -i interlaced -vcodec ffv1 out1.avi >> $ ffmpeg -i interlaced -vf il=d:d -vcodec ffv1 out2.avi > > Interesting filter. Didn't know that one. > Will check this. I've tested compression performance and the files are sometimes smaller, sometimes bigger. I ran it on 4 files: 1) 1min documentary (anamorphic Digibeta material) [1] - (9 MB bigger) 2) 1min interview (anamorphic Digibeta material) - (5 MB bigger) 3) 1min low-motion "Heldenplatz" (VHS) [2] - (15 MB smaller) 4) 10min holiday/family video (many cuts) (VHS) - (300 MB smaller) Encoding the deinterleaved fields were bigger with Digibeta and smaller with VHS. Therefore I concur with you, that with this kind of compression the impact of differing between progressive/interlaced encoding seem negligible. I've also compared FFv1.1 vs FFv1.3: Approximately same results. The compression gained there is probably not worth the hassle of having an interlaced-mode. Regards, Pb == References: [1] http://download.das-werkstatt.com/pb/mthk/FFv1-Examples/vx-04988_01-1min-ffv1-DIGIBETA-anamorphic.avi [2] http://download.das-werkstatt.com/pb/mthk/FFv1-Examples/v-02357_01-1min-ffv1-VHS.avi From soho123.2012 at gmail.com Tue May 28 16:53:52 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 28 May 2013 22:53:52 +0800 Subject: [FFmpeg-user] why ffserver receive data from 127.0.0.1 repeately Message-ID: hi All, I got the error when I using vlc to connect ffserver to get video stream, the video data is from usb webcam. video stream will stop when the error is occur. I can see ffserver receive data from 127.0.0.1 and ffserver will write data to /tmp/feed1.ffm it seems ffserver just write packet "data" of struct FFMContext , no header to /tmp/feed1.ffm. but I do not know where is the data about the element "header" of struct FFMContext. Because I do not see, ffmpeg write data to socket 127.0.0.1 ffmpeg seems keep running,but no any video data output by ffserver,the "invalid stream index" is print out from /libavformat/fmdec.c, function ffm_read_packet(), and I also get the error, function ffm_read_packet(), case READ_DATA: size = AV_RB24(ffm->header + 2); the value of size is very very large, then ffm_is_avail_data() will return EAGAIN, such that there is no any video data can be output. Does anyone have idea? Any input is very appreciated! =============================================================== the ffserver conf: Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoCodec mjpeg Noaudio ffserver command : ffserver -f /etc/ffserver.conf & ffmpeg command: ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm the output log: ==================================================== ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-c flags=-I/users/stream_server/ShareLib_Install/bin/../include --extra-libs='-L/users/stream_server/Shar eLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Wed May 8 11:17:50 2013 FFserver started. ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -v codec copy http://localhost:8090/feed1.ffm ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 13:35:34 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/users/stream_server/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-c flags=-I/users/stream_server/ShareLib_Install/bin/../include --extra-libs='-L/users/stream_server/Shar eLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps,framestep,resample' --d isable-encoders --enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4' libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [video4linux2,v4l2 @ 0x68d650] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 38.490000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc Wed May 8 11:18:06 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf54.63.104 Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=2-31, -5 kb/s, 30 fps, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 18 fps=0.0 q=-1.0 size= 1076kB time=00:00:00.80 bitrate=11018.2kbits/s frame= 34 fps= 33 q=-1.0 size= 2244kB time=00:00:01.34 bitrate=13718.5kbits/s frame= 49 fps= 32 q=-1.0 size= 3336kB time=00:00:01.84 bitrate=14852.4kbits/s frame= 64 fps= 32 q=-1.0 size= 4376kB time=00:00:02.34 bitrate=15319.7kbits/s frame= 79 fps= 31 q=-1.0 size= 5468kB time=00:00:02.84 bitrate=15772.5kbits/s frame= 94 fps= 31 q=-1.0 size= 6624kB time=00:00:03.34 bitrate=16246.6kbits/s frame= 109 fps= 31 q=-1.0 size= 7788kB time=00:00:03.84 bitrate=16614.4kbits/s frame= 124 fps= 31 q=-1.0 size= 8960kB time=00:00:04.34 bitrate=16912.5kbits/s frame= 139 fps= 31 q=-1.0 size= 10128kB time=00:00:04.84 bitrate=17142.3kbits/s frame= 154 fps= 31 q=-1.0 size= 11296kB time=00:00:05.34 bitrate=17329.0kbits/s frame= 168 fps= 30 q=-1.0 size= 12384kB time=00:00:05.81 bitrate=17461.2kbits/s frame= 183 fps= 30 q=-1.0 size= 13544kB time=00:00:06.31 bitrate=17583.6kbits/s frame= 198 fps= 30 q=-1.0 size= 14704kB time=00:00:06.81 bitrate=17688.0kbits/s frame= 213 fps= 30 q=-1.0 size= 15860kB time=00:00:07.31 bitrate=17773.6kbits/s frame= 228 fps= 30 q=-1.0 size= 17020kB time=00:00:07.81 bitrate=17852.5kbits/s frame= 243 fps= 30 q=-1.0 size= 18180kB time=00:00:08.31 bitrate=17921.8kbits/s frame= 258 fps= 30 q=-1.0 size= 19340kB time=00:00:08.81 bitrate=17983.3kbits/s frame= 273 fps= 30 q=-1.0 size= 20500kB time=00:00:09.31 bitrate=18038.2kbits/s frame= 288 fps= 30 q=-1.0 size= 21656kB time=00:00:09.81 bitrate=18084.2kbits/s frame= 303 fps= 30 q=-1.0 size= 22816kB time=00:00:10.31 bitrate=18128.9kbits/s frame= 318 fps= 30 q=-1.0 size= 23972kB time=00:00:10.81 bitrate=18166.4kbits/s Wed May 8 11:18:17 2013 [ffm @ 0x663a20]invalid stream index 90 frame= 333 fps= 30 q=-1.0 size= 25132kB time=00:00:11.31 bitrate=18203.5kbits/s Wed May 8 11:18:18 2013 [ffm @ 0x663a20]invalid stream index 120 frame= 348 fps= 30 q=-1.0 size= 26288kB time=00:00:11.81 bitrate=18234.7kbits/s frame= 363 fps= 30 q=-1.0 size= 27448kB time=00:00:12.31 bitrate=18266.0kbits/s frame= 378 fps= 30 q=-1.0 size= 28604kB time=00:00:12.82 bitrate=18278.0kbits/s frame= 393 fps= 30 q=-1.0 size= 29768kB time=00:00:13.32 bitrate=18307.8kbits/s frame= 408 fps= 30 q=-1.0 size= 30936kB time=00:00:13.82 bitrate=18337.7kbits/s frame= 423 fps= 30 q=-1.0 size= 32108kB time=00:00:14.32 bitrate=18367.9kbits/s frame= 438 fps= 30 q=-1.0 size= 33276kB time=00:00:14.82 bitrate=18393.9kbits/s frame= 453 fps= 30 q=-1.0 size= 34444kB time=00:00:15.32 bitrate=18418.1kbits/s frame= 468 fps= 30 q=-1.0 size= 35612kB time=00:00:15.82 bitrate=18440.8kbits/s frame= 483 fps= 30 q=-1.0 size= 36780kB time=00:00:16.32 bitrate=18462.1kbits/s frame= 498 fps= 30 q=-1.0 size= 37948kB time=00:00:16.82 bitrate=18482.2kbits/s frame= 513 fps= 30 q=-1.0 size= 39116kB time=00:00:17.32 bitrate=18501.1kbits/s frame= 528 fps= 30 q=-1.0 size= 40284kB time=00:00:17.82 bitrate=18518.9kbits/s frame= 543 fps= 30 q=-1.0 size= 41448kB time=00:00:18.32 bitrate=18534.0kbits/s frame= 558 fps= 30 q=-1.0 size= 42612kB time=00:00:18.82 bitrate=18548.2kbits/s frame= 573 fps= 30 q=-1.0 size= 43780kB time=00:00:19.32 bitrate=18563.4kbits/s Wed May 8 11:18:25 2013 192.168.1.100 - - [GET] "/test.mjpeg HTTP/1.1" 200 1499094 frame= 588 fps= 30 q=-1.0 size= 44944kB time=00:00:19.82 bitrate=18576.2kbits/s frame= 603 fps= 30 q=-1.0 size= 46108kB time=00:00:20.32 bitrate=18588.4kbits/s frame= 618 fps= 30 q=-1.0 size= 47272kB time=00:00:20.82 bitrate=18600.0kbits/s frame= 633 fps= 30 q=-1.0 size= 48436kB time=00:00:21.32 bitrate=18611.1kbits/s frame= 648 fps= 30 q=-1.0 size= 49604kB time=00:00:21.82 bitrate=18623.1kbits/s frame= 663 fps= 30 q=-1.0 size= 50760kB time=00:00:22.32 bitrate=18630.2kbits/s frame= 678 fps= 30 q=-1.0 size= 51896kB time=00:00:22.82 bitrate=18629.8kbits/s frame= 693 fps= 30 q=-1.0 size= 53024kB time=00:00:23.32 bitrate=18626.6kbits/s frame= 708 fps= 30 q=-1.0 size= 54144kB time=00:00:23.82 bitrate=18620.8kbits/s frame= 723 fps= 30 q=-1.0 size= 55264kB time=00:00:24.32 bitrate=18615.2kbits/s frame= 738 fps= 30 q=-1.0 size= 56388kB time=00:00:24.82 bitrate=18611.2kbits/s frame= 753 fps= 30 q=-1.0 size= 57508kB time=00:00:25.32 bitrate=18606.1kbits/s frame= 768 fps= 30 q=-1.0 size= 58628kB time=00:00:25.82 bitrate=18601.1kbits/s frame= 783 fps= 30 q=-1.0 size= 59748kB time=00:00:26.32 bitrate=18596.3kbits/s frame= 798 fps= 30 q=-1.0 size= 60876kB time=00:00:26.82 bitrate=18594.2kbits/s frame= 808 fps= 30 q=-1.0 Lsize= 61628kB time=00:00:27.16 bitrate=18588.2kbits/s video:61400kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.371715% Wed May 8 11:18:33 2013 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 63107072 Received signal 2: terminating. # ================================================== From ubitux at gmail.com Tue May 28 19:31:05 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Tue, 28 May 2013 19:31:05 +0200 Subject: [FFmpeg-user] Tile produce erroneous output In-Reply-To: References: <20130528131025.GL12526@leki> Message-ID: <20130528173105.GN12526@leki> On Tue, May 28, 2013 at 03:36:27PM +0200, Molly Millions wrote: > Thanks for the quick fix! > Patch is applied. Feel free to git pull and try again. Thanks for the report. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From epkuson at gmail.com Tue May 28 19:43:15 2013 From: epkuson at gmail.com (ulf johansson) Date: Tue, 28 May 2013 13:43:15 -0400 Subject: [FFmpeg-user] ffmpeg segmenter starves when using -re and high bitrate In-Reply-To: References: Message-ID: Hi again, anyone have any ideas to isolate/remedy the problem? br uffe On Mon, May 27, 2013 at 8:30 AM, ulf johansson wrote: > Hello, > I would need some help with ffmpeg. > > > Project: > I'm trying to configure ffmpeg to provide live TV HLS streaming and > transcoding to my Ipad in my home. > > Input: > Video source: Hauppauge HD PVR(CBR) - analogue Component + OPTICAL => h264 > AAC mpegts > CPU: quadcore when full transcoding is used~ 19-39-% load on all cores. > (the lower bitrate => higher CPU load ) > OS: LInux Ubuntu > > I had to break down the streaming in two steps. (I had some problem with > buffer handling, i.e. the HD PVR stopped streaming, when I performed > transcoding directly from /dev/video0) > > 1.) Record input stream to file and store the file in a mpeg TS file. > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > ~/repository/recorded_stream.ts > > > Approx. 10s delay until starting transcoding process on 'ts' file. > > 2.)Transcode 'ts' and stream using HLS of live TV to IPAD. > $/usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > stream%05d.ts > > Problem Description: > =============== > When performing transcoding and using bitrate of approx > 1.2 M (b:v > 1000k), the live streaming to the IPAD starves after approximately a few > minutes when new segments are not produced quick enough, i.e. playing the > segments catches up with the available segments from the playlist even if > the player is not started until 3-4 segments are available in playlist. The > QOE result in a short stalls of the live video, and can be reduced by using > pause for a while , but will eventually catch up again and the stalls > resumes. > > When the higher bitrate is selected the transcoding FPS goes down 25-27, > which I believe could be the reason for starving the client. TV signal is > NTSC 1080i 59.94 interlaced, or 29.97 FPS, so I would expect the FPS output > to also be 30 FPS for the live transcoded HLS segments. > When I use 1M bitrate an output of 30 FPS is achieved and I don't > experience the starving of file segments. > > The same problem can be re-produced with using VLC for viewing the HLS > stream. > > I've tried to use forced FPS '-r 30' or '-r 29.97' on the transcoding > process but it seems to have no affect when higher bitrates are used. E.g. > if I set it to -r 32 it will only take affect if bitrate is < 1M. > > Would truly appreciate some help to solve the starving file segments since > is significantly impacts the QOE for the end user. > > ============================ > 1) Recording file > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > ~/repository/recorded_stream.ts > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > developers > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 --enable-nonfree --enable-version3 > libavutil 52. 25.100 / 52. 25.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 50.100 / 3. 50.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mpegts @ 0x29eefc0] max_analyze_duration 5000000 reached at 5013333 > microseconds > Input #0, mpegts, from '/dev/video0': > Duration: N/A, start: 0.387044, bitrate: 130 kb/s > Program 1 > Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p, > 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc > Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, fltp, 130 kb/s > Output #0, mpegts, to '/home/jocho/repository/recorded_stream.ts': > Metadata: > encoder : Lavf55.1.100 > Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR > 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > 130 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame=10219 fps= 62 q=-1.0 Lsize= 150029kB time=00:02:50.53 > bitrate=7206.8kbits/s > video:135224kB audio:2719kB subtitle:0 global headers:0kB muxing overhead > 8.760707% > $ > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > 2.1) bitrate 1M, "no starve", no -r, FPS stats => 30 FPS (below 29FPS > which was the last stat output) > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > libx264 -b:v 1000k -acodec copy -s 1024x768 -aspect 4:3 -flags > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > stream%05d.ts > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > developers > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 --enable-nonfree --enable-version3 > libavutil 52. 25.100 / 52. 25.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 50.100 / 3. 50.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mpegts @ 0x2c4e760] max_analyze_duration 5000000 reached at 5003333 > microseconds > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 > tbc > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, fltp, 118 kb/s > [libx264 @ 0x2c549a0] using SAR=1/1 > [libx264 @ 0x2c549a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > Cache64 > [libx264 @ 0x2c549a0] profile High, level 3.1 > [segment @ 0x2c53f00] Codec for stream 0 does not use global headers but > container format requires global headers > [segment @ 0x2c53f00] Codec for stream 1 does not use global headers but > container format requires global headers > Output #0, segment, to 'stream%05d.ts': > Metadata: > encoder : Lavf55.1.100 > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > q=-1--1, 1000 kb/s, 90k tbn, 29.97 tbc > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > 118 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 1105 fps= 29 q=32766.0 Lsize=N/A time=00:00:36.84 bitrate=N/A dup=1 > drop=0 > video:4368kB audio:588kB subtitle:0 global headers:0kB muxing overhead > -100.000434% > [libx264 @ 0x2c549a0] frame I:22 Avg QP:20.97 size: 18575 > [libx264 @ 0x2c549a0] frame P:474 Avg QP:22.31 size: 6433 > [libx264 @ 0x2c549a0] frame B:609 Avg QP:23.91 size: 1666 > [libx264 @ 0x2c549a0] consecutive B-frames: 14.7% 27.3% 24.7% 33.3% > [libx264 @ 0x2c549a0] mb I I16..4: 41.2% 50.9% 8.0% > [libx264 @ 0x2c549a0] mb P I16..4: 6.8% 6.8% 0.6% P16..4: 30.3% 5.2% > 3.1% 0.0% 0.0% skip:47.2% > [libx264 @ 0x2c549a0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 23.2% 0.9% > 0.2% direct: 1.0% skip:74.2% L0:36.7% L1:61.4% BI: 1.9% > [libx264 @ 0x2c549a0] final ratefactor: 22.56 > [libx264 @ 0x2c549a0] 8x8 transform intra:48.6% inter:91.1% > [libx264 @ 0x2c549a0] coded y,uvDC,uvAC intra: 30.9% 34.7% 7.6% inter: > 6.1% 9.0% 0.3% > [libx264 @ 0x2c549a0] i16 v,h,dc,p: 36% 36% 4% 24% > [libx264 @ 0x2c549a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 25% 3% 5% > 6% 5% 5% 4% > [libx264 @ 0x2c549a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 11% 3% 5% > 6% 4% 4% 2% > [libx264 @ 0x2c549a0] i8c dc,h,v,p: 65% 18% 14% 3% > [libx264 @ 0x2c549a0] Weighted P-Frames: Y:1.9% UV:0.4% > [libx264 @ 0x2c549a0] ref P L0: 66.4% 8.2% 18.6% 6.8% 0.0% > [libx264 @ 0x2c549a0] ref B L0: 81.7% 16.0% 2.3% > [libx264 @ 0x2c549a0] ref B L1: 94.4% 5.6% > [libx264 @ 0x2c549a0] kb/s:970.43 > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > 2.2) bitrate 2M, "starve", no -r, FPS stats => 26-28 FPS (below 27FPS > which was the last stat output, but alternating 26-28 throughout the > trasnscoding) > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > stream%05d.ts > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > developers > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 --enable-nonfree --enable-version3 > libavutil 52. 25.100 / 52. 25.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 50.100 / 3. 50.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mpegts @ 0x1cb5760] max_analyze_duration 5000000 reached at 5003333 > microseconds > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 > tbc > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, fltp, 118 kb/s > [libx264 @ 0x1cbb9a0] using SAR=1/1 > [libx264 @ 0x1cbb9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > Cache64 > [libx264 @ 0x1cbb9a0] profile High, level 3.1 > [segment @ 0x1cbaf00] Codec for stream 0 does not use global headers but > container format requires global headers > [segment @ 0x1cbaf00] Codec for stream 1 does not use global headers but > container format requires global headers > Output #0, segment, to 'stream%05d.ts': > Metadata: > encoder : Lavf55.1.100 > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > q=-1--1, 2000 kb/s, 90k tbn, 29.97 tbc > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > 118 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 649 fps= 27 q=32766.0 Lsize=N/A time=00:00:21.71 bitrate=N/A dup=1 > drop=0 > video:5349kB audio:346kB subtitle:0 global headers:0kB muxing overhead > -100.000377% > [libx264 @ 0x1cbb9a0] frame I:15 Avg QP:17.04 size: 27166 > [libx264 @ 0x1cbb9a0] frame P:301 Avg QP:18.57 size: 12511 > [libx264 @ 0x1cbb9a0] frame B:333 Avg QP:20.28 size: 3916 > [libx264 @ 0x1cbb9a0] consecutive B-frames: 18.2% 30.8% 28.2% 22.8% > [libx264 @ 0x1cbb9a0] mb I I16..4: 31.2% 53.9% 15.0% > [libx264 @ 0x1cbb9a0] mb P I16..4: 6.9% 10.2% 1.7% P16..4: 36.1% 11.1% > 5.2% 0.0% 0.0% skip:28.7% > [libx264 @ 0x1cbb9a0] mb B I16..4: 0.6% 0.4% 0.1% B16..8: 31.3% 2.9% > 0.5% direct: 2.6% skip:61.6% L0:37.8% L1:57.2% BI: 5.1% > [libx264 @ 0x1cbb9a0] final ratefactor: 18.84 > [libx264 @ 0x1cbb9a0] 8x8 transform intra:53.4% inter:86.7% > [libx264 @ 0x1cbb9a0] coded y,uvDC,uvAC intra: 44.7% 47.5% 18.7% inter: > 13.8% 13.3% 1.2% > [libx264 @ 0x1cbb9a0] i16 v,h,dc,p: 29% 35% 4% 31% > [libx264 @ 0x1cbb9a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 19% 3% 5% > 6% 5% 5% 4% > [libx264 @ 0x1cbb9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 35% 12% 2% 4% > 4% 3% 3% 2% > [libx264 @ 0x1cbb9a0] i8c dc,h,v,p: 59% 20% 17% 3% > [libx264 @ 0x1cbb9a0] Weighted P-Frames: Y:2.7% UV:0.7% > [libx264 @ 0x1cbb9a0] ref P L0: 65.2% 7.0% 20.1% 7.6% 0.1% > [libx264 @ 0x1cbb9a0] ref B L0: 79.6% 18.4% 1.9% > [libx264 @ 0x1cbb9a0] ref B L1: 93.8% 6.2% > [libx264 @ 0x1cbb9a0] kb/s:2023.47 > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > 2.3) bitrate 4M, "starve", no -r, FPS stats => 22-24 FPS (below 21FPS > which was the last stat output, but alternating 21-24 throughout the > transcoding) > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > libx264 -b:v 4000k -acodec copy -s 1024x768 -aspect 4:3 -flags > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > stream%05d.ts > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > developers > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 --enable-nonfree --enable-version3 > libavutil 52. 25.100 / 52. 25.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 50.100 / 3. 50.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mpegts @ 0x301a760] max_analyze_duration 5000000 reached at 5003333 > microseconds > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 > tbc > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, fltp, 118 kb/s > [libx264 @ 0x30209a0] using SAR=1/1 > [libx264 @ 0x30209a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > Cache64 > [libx264 @ 0x30209a0] profile High, level 3.1 > [segment @ 0x301ff00] Codec for stream 0 does not use global headers but > container format requires global headers > [segment @ 0x301ff00] Codec for stream 1 does not use global headers but > container format requires global headers > Output #0, segment, to 'stream%05d.ts': > Metadata: > encoder : Lavf55.1.100 > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > q=-1--1, 4000 kb/s, 90k tbn, 29.97 tbc > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > 118 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 484 fps= 21 q=32766.0 Lsize=N/A time=00:00:16.10 bitrate=N/A dup=1 > drop=0 > video:8041kB audio:257kB subtitle:0 global headers:0kB muxing overhead > -100.000259% > [libx264 @ 0x30209a0] frame I:10 Avg QP:12.15 size: 45657 > [libx264 @ 0x30209a0] frame P:231 Avg QP:13.81 size: 24621 > [libx264 @ 0x30209a0] frame B:243 Avg QP:15.47 size: 8599 > [libx264 @ 0x30209a0] consecutive B-frames: 18.8% 33.1% 29.1% 19.0% > [libx264 @ 0x30209a0] mb I I16..4: 24.8% 58.3% 16.9% > [libx264 @ 0x30209a0] mb P I16..4: 6.2% 15.3% 3.5% P16..4: 31.4% 19.2% > 9.5% 0.0% 0.0% skip:14.9% > [libx264 @ 0x30209a0] mb B I16..4: 0.8% 0.7% 0.2% B16..8: 32.3% 9.2% > 2.2% direct: 7.5% skip:47.2% L0:39.1% L1:49.7% BI:11.3% > [libx264 @ 0x30209a0] final ratefactor: 14.08 > [libx264 @ 0x30209a0] 8x8 transform intra:59.8% inter:71.0% > [libx264 @ 0x30209a0] coded y,uvDC,uvAC intra: 65.1% 63.2% 43.7% inter: > 26.2% 18.8% 3.4% > [libx264 @ 0x30209a0] i16 v,h,dc,p: 26% 30% 5% 39% > [libx264 @ 0x30209a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 23% 18% 3% 4% > 6% 4% 5% 4% > [libx264 @ 0x30209a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 33% 12% 2% 4% > 4% 3% 3% 2% > [libx264 @ 0x30209a0] i8c dc,h,v,p: 56% 20% 19% 4% > [libx264 @ 0x30209a0] Weighted P-Frames: Y:2.6% UV:0.9% > [libx264 @ 0x30209a0] ref P L0: 65.6% 5.7% 20.9% 7.7% 0.1% > [libx264 @ 0x30209a0] ref B L0: 80.2% 18.3% 1.5% > [libx264 @ 0x30209a0] ref B L1: 93.7% 6.3% > [libx264 @ 0x30209a0] kb/s:4078.74 > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > 2.4) bitrate 2M, "starve", -r 30 , FPS stats => 26-28 FPS (below 28FPS > which was the last stat output, but alternating 26-28 throughout the > transcoding) > OBS, same result as 2.2 without -r 30 > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 30 > -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > stream%05d.ts > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > developers > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 --enable-nonfree --enable-version3 > libavutil 52. 25.100 / 52. 25.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 50.100 / 3. 50.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mpegts @ 0x37db780] max_analyze_duration 5000000 reached at 5003333 > microseconds > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 > tbc > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, fltp, 118 kb/s > [libx264 @ 0x37e1d20] using SAR=1/1 > [libx264 @ 0x37e1d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > Cache64 > [libx264 @ 0x37e1d20] profile High, level 3.1 > [segment @ 0x37e1060] Codec for stream 0 does not use global headers but > container format requires global headers > [segment @ 0x37e1060] Codec for stream 1 does not use global headers but > container format requires global headers > Output #0, segment, to 'stream%05d.ts': > Metadata: > encoder : Lavf55.1.100 > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > q=-1--1, 2000 kb/s, 90k tbn, 30 tbc > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > 118 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 851 fps= 28 q=32766.0 Lsize=N/A time=00:00:28.30 bitrate=N/A dup=2 > drop=0 > video:6738kB audio:451kB subtitle:0 global headers:0kB muxing overhead > -100.000299% > [libx264 @ 0x37e1d20] frame I:18 Avg QP:16.76 size: 30818 > [libx264 @ 0x37e1d20] frame P:370 Avg QP:18.19 size: 12310 > [libx264 @ 0x37e1d20] frame B:463 Avg QP:19.80 size: 3867 > [libx264 @ 0x37e1d20] consecutive B-frames: 15.5% 27.0% 26.4% 31.0% > [libx264 @ 0x37e1d20] mb I I16..4: 28.9% 55.1% 16.0% > [libx264 @ 0x37e1d20] mb P I16..4: 6.6% 9.3% 1.6% P16..4: 36.1% 11.1% > 5.5% 0.0% 0.0% skip:29.9% > [libx264 @ 0x37e1d20] mb B I16..4: 0.6% 0.5% 0.1% B16..8: 30.8% 2.7% > 0.5% direct: 2.7% skip:62.2% L0:38.6% L1:56.9% BI: 4.5% > [libx264 @ 0x37e1d20] final ratefactor: 18.40 > [libx264 @ 0x37e1d20] 8x8 transform intra:53.0% inter:86.6% > [libx264 @ 0x37e1d20] coded y,uvDC,uvAC intra: 44.7% 48.5% 20.8% inter: > 13.2% 13.7% 1.3% > [libx264 @ 0x37e1d20] i16 v,h,dc,p: 31% 36% 5% 28% > [libx264 @ 0x37e1d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 22% 20% 3% 5% > 6% 5% 5% 4% > [libx264 @ 0x37e1d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 34% 13% 3% 4% > 4% 4% 3% 2% > [libx264 @ 0x37e1d20] i8c dc,h,v,p: 59% 20% 18% 3% > [libx264 @ 0x37e1d20] Weighted P-Frames: Y:2.2% UV:0.5% > [libx264 @ 0x37e1d20] ref P L0: 65.1% 6.6% 20.4% 7.8% 0.0% > [libx264 @ 0x37e1d20] ref B L0: 79.4% 18.3% 2.3% > [libx264 @ 0x37e1d20] ref B L1: 93.2% 6.8% > [libx264 @ 0x37e1d20] kb/s:1946.00 > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > 2.5) bitrate 512k, "no starve", -r 32 , FPS stats => 32 FPS (below 31 FPS > which was the last stat output, but after initially a few around 29, it > stabilized to 32 fairly quickly. > > It shows that FPS can be forced. > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 32 > -vcodec libx264 -b:v 512k -acodec copy -s 1024x768 -aspect 4:3 -flags > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > stream%05d.ts > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > developers > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > --enable-libx264 --enable-nonfree --enable-version3 > libavutil 52. 25.100 / 52. 25.100 > libavcodec 55. 2.100 / 55. 2.100 > libavformat 55. 1.100 / 55. 1.100 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 50.100 / 3. 50.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mpegts @ 0x1dda780] max_analyze_duration 5000000 reached at 5003333 > microseconds > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 > tbc > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, fltp, 118 kb/s > [libx264 @ 0x1de0d20] using SAR=1/1 > [libx264 @ 0x1de0d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > Cache64 > [libx264 @ 0x1de0d20] profile High, level 3.1 > [segment @ 0x1de0060] Codec for stream 0 does not use global headers but > container format requires global headers > [segment @ 0x1de0060] Codec for stream 1 does not use global headers but > container format requires global headers > Output #0, segment, to 'stream%05d.ts': > Metadata: > encoder : Lavf55.1.100 > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > q=-1--1, 512 kb/s, 90k tbn, 32 tbc > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > 118 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 914 fps= 31 q=32766.0 Lsize=N/A time=00:00:28.60 bitrate=N/A > dup=59 drop=0 > video:1654kB audio:456kB subtitle:0 global headers:0kB muxing overhead > -100.001018% > [libx264 @ 0x1de0d20] frame I:18 Avg QP:27.26 size: 10046 > [libx264 @ 0x1de0d20] frame P:407 Avg QP:29.04 size: 2918 > [libx264 @ 0x1de0d20] frame B:489 Avg QP:31.59 size: 665 > [libx264 @ 0x1de0d20] consecutive B-frames: 18.2% 24.3% 21.7% 35.9% > [libx264 @ 0x1de0d20] mb I I16..4: 53.8% 42.9% 3.3% > [libx264 @ 0x1de0d20] mb P I16..4: 7.1% 4.7% 0.3% P16..4: 18.2% 2.0% > 0.8% 0.0% 0.0% skip:66.8% > [libx264 @ 0x1de0d20] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 13.5% 0.4% > 0.1% direct: 0.2% skip:85.5% L0:30.1% L1:68.9% BI: 1.1% > [libx264 @ 0x1de0d20] final ratefactor: 28.13 > [libx264 @ 0x1de0d20] 8x8 transform intra:40.7% inter:92.4% > [libx264 @ 0x1de0d20] coded y,uvDC,uvAC intra: 19.6% 19.0% 1.5% inter: > 2.0% 1.9% 0.0% > [libx264 @ 0x1de0d20] i16 v,h,dc,p: 43% 33% 5% 19% > [libx264 @ 0x1de0d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 26% 3% 4% > 5% 4% 5% 3% > [libx264 @ 0x1de0d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 27% 11% 3% 4% > 6% 4% 5% 2% > [libx264 @ 0x1de0d20] i8c dc,h,v,p: 80% 11% 9% 1% > [libx264 @ 0x1de0d20] Weighted P-Frames: Y:2.0% UV:0.5% > [libx264 @ 0x1de0d20] ref P L0: 66.6% 11.2% 16.4% 5.8% 0.0% > [libx264 @ 0x1de0d20] ref B L0: 85.0% 12.6% 2.4% > [libx264 @ 0x1de0d20] ref B L1: 96.2% 3.8% > [libx264 @ 0x1de0d20] kb/s:474.38 > > !!!!!!! > > Would truly appreciate some help to solve the starving file segments since > is significantly impacts the QOE for the end user. > best regard > uffe > > From fingcmo at gmail.com Tue May 28 20:14:27 2013 From: fingcmo at gmail.com (Fing Cmo) Date: Tue, 28 May 2013 11:14:27 -0700 Subject: [FFmpeg-user] ffmpeg segmenter starves when using -re and high bitrate In-Reply-To: References: Message-ID: ulf, Have you tried using the "-hls*" options instead of -segment.* options? e.g. ffmpeg -re -i VIDSOURCE -y -c:v libx264 -b:v BITRATE -vprofile baseline -preset medium -x264opts level=41 -threads 4 -s RESOLUTION -map 0:v -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 -hls_list_size 6 -hls_wrap 18 -start_number 1 stream.m3u8 Would be curious to see if it changes anything. FC. ............................... On Tue, May 28, 2013 at 10:43 AM, ulf johansson wrote: > Hi again, > anyone have any ideas to isolate/remedy the problem? > br > uffe > > > On Mon, May 27, 2013 at 8:30 AM, ulf johansson wrote: > > > Hello, > > I would need some help with ffmpeg. > > > > > > Project: > > I'm trying to configure ffmpeg to provide live TV HLS streaming and > > transcoding to my Ipad in my home. > > > > Input: > > Video source: Hauppauge HD PVR(CBR) - analogue Component + OPTICAL => > h264 > > AAC mpegts > > CPU: quadcore when full transcoding is used~ 19-39-% load on all cores. > > (the lower bitrate => higher CPU load ) > > OS: LInux Ubuntu > > > > I had to break down the streaming in two steps. (I had some problem with > > buffer handling, i.e. the HD PVR stopped streaming, when I performed > > transcoding directly from /dev/video0) > > > > 1.) Record input stream to file and store the file in a mpeg TS file. > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > > ~/repository/recorded_stream.ts > > > > > > Approx. 10s delay until starting transcoding process on 'ts' file. > > > > 2.)Transcode 'ts' and stream using HLS of live TV to IPAD. > > $/usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > stream%05d.ts > > > > Problem Description: > > =============== > > When performing transcoding and using bitrate of approx > 1.2 M (b:v > > 1000k), the live streaming to the IPAD starves after approximately a few > > minutes when new segments are not produced quick enough, i.e. playing the > > segments catches up with the available segments from the playlist even if > > the player is not started until 3-4 segments are available in playlist. > The > > QOE result in a short stalls of the live video, and can be reduced by > using > > pause for a while , but will eventually catch up again and the stalls > > resumes. > > > > When the higher bitrate is selected the transcoding FPS goes down 25-27, > > which I believe could be the reason for starving the client. TV signal is > > NTSC 1080i 59.94 interlaced, or 29.97 FPS, so I would expect the FPS > output > > to also be 30 FPS for the live transcoded HLS segments. > > When I use 1M bitrate an output of 30 FPS is achieved and I don't > > experience the starving of file segments. > > > > The same problem can be re-produced with using VLC for viewing the HLS > > stream. > > > > I've tried to use forced FPS '-r 30' or '-r 29.97' on the transcoding > > process but it seems to have no affect when higher bitrates are used. > E.g. > > if I set it to -r 32 it will only take affect if bitrate is < 1M. > > > > Would truly appreciate some help to solve the starving file segments > since > > is significantly impacts the QOE for the end user. > > > > ============================ > > 1) Recording file > > > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > > ~/repository/recorded_stream.ts > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) > > configuration: --enable-gpl --enable-libass --enable-libfaac > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 25.100 / 52. 25.100 > > libavcodec 55. 2.100 / 55. 2.100 > > libavformat 55. 1.100 / 55. 1.100 > > libavdevice 55. 0.100 / 55. 0.100 > > libavfilter 3. 50.100 / 3. 50.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [mpegts @ 0x29eefc0] max_analyze_duration 5000000 reached at 5013333 > > microseconds > > Input #0, mpegts, from '/dev/video0': > > Duration: N/A, start: 0.387044, bitrate: 130 kb/s > > Program 1 > > Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p, > > 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc > > Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > stereo, fltp, 130 kb/s > > Output #0, mpegts, to '/home/jocho/repository/recorded_stream.ts': > > Metadata: > > encoder : Lavf55.1.100 > > Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR > > 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > 130 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (copy) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame=10219 fps= 62 q=-1.0 Lsize= 150029kB time=00:02:50.53 > > bitrate=7206.8kbits/s > > video:135224kB audio:2719kB subtitle:0 global headers:0kB muxing overhead > > 8.760707% > > $ > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > 2.1) bitrate 1M, "no starve", no -r, FPS stats => 30 FPS (below 29FPS > > which was the last stat output) > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > libx264 -b:v 1000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > stream%05d.ts > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) > > configuration: --enable-gpl --enable-libass --enable-libfaac > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 25.100 / 52. 25.100 > > libavcodec 55. 2.100 / 55. 2.100 > > libavformat 55. 1.100 / 55. 1.100 > > libavdevice 55. 0.100 / 55. 0.100 > > libavfilter 3. 50.100 / 3. 50.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [mpegts @ 0x2c4e760] max_analyze_duration 5000000 reached at 5003333 > > microseconds > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > Program 1 > > Metadata: > > service_name : Service01 > > service_provider: FFmpeg > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > 59.94 > > tbc > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > stereo, fltp, 118 kb/s > > [libx264 @ 0x2c549a0] using SAR=1/1 > > [libx264 @ 0x2c549a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > > Cache64 > > [libx264 @ 0x2c549a0] profile High, level 3.1 > > [segment @ 0x2c53f00] Codec for stream 0 does not use global headers but > > container format requires global headers > > [segment @ 0x2c53f00] Codec for stream 1 does not use global headers but > > container format requires global headers > > Output #0, segment, to 'stream%05d.ts': > > Metadata: > > encoder : Lavf55.1.100 > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > q=-1--1, 1000 kb/s, 90k tbn, 29.97 tbc > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > 118 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (h264 -> libx264) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame= 1105 fps= 29 q=32766.0 Lsize=N/A time=00:00:36.84 bitrate=N/A > dup=1 > > drop=0 > > video:4368kB audio:588kB subtitle:0 global headers:0kB muxing overhead > > -100.000434% > > [libx264 @ 0x2c549a0] frame I:22 Avg QP:20.97 size: 18575 > > [libx264 @ 0x2c549a0] frame P:474 Avg QP:22.31 size: 6433 > > [libx264 @ 0x2c549a0] frame B:609 Avg QP:23.91 size: 1666 > > [libx264 @ 0x2c549a0] consecutive B-frames: 14.7% 27.3% 24.7% 33.3% > > [libx264 @ 0x2c549a0] mb I I16..4: 41.2% 50.9% 8.0% > > [libx264 @ 0x2c549a0] mb P I16..4: 6.8% 6.8% 0.6% P16..4: 30.3% > 5.2% > > 3.1% 0.0% 0.0% skip:47.2% > > [libx264 @ 0x2c549a0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 23.2% > 0.9% > > 0.2% direct: 1.0% skip:74.2% L0:36.7% L1:61.4% BI: 1.9% > > [libx264 @ 0x2c549a0] final ratefactor: 22.56 > > [libx264 @ 0x2c549a0] 8x8 transform intra:48.6% inter:91.1% > > [libx264 @ 0x2c549a0] coded y,uvDC,uvAC intra: 30.9% 34.7% 7.6% inter: > > 6.1% 9.0% 0.3% > > [libx264 @ 0x2c549a0] i16 v,h,dc,p: 36% 36% 4% 24% > > [libx264 @ 0x2c549a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 25% 3% 5% > > 6% 5% 5% 4% > > [libx264 @ 0x2c549a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 11% 3% 5% > > 6% 4% 4% 2% > > [libx264 @ 0x2c549a0] i8c dc,h,v,p: 65% 18% 14% 3% > > [libx264 @ 0x2c549a0] Weighted P-Frames: Y:1.9% UV:0.4% > > [libx264 @ 0x2c549a0] ref P L0: 66.4% 8.2% 18.6% 6.8% 0.0% > > [libx264 @ 0x2c549a0] ref B L0: 81.7% 16.0% 2.3% > > [libx264 @ 0x2c549a0] ref B L1: 94.4% 5.6% > > [libx264 @ 0x2c549a0] kb/s:970.43 > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > 2.2) bitrate 2M, "starve", no -r, FPS stats => 26-28 FPS (below 27FPS > > which was the last stat output, but alternating 26-28 throughout the > > trasnscoding) > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > stream%05d.ts > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) > > configuration: --enable-gpl --enable-libass --enable-libfaac > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 25.100 / 52. 25.100 > > libavcodec 55. 2.100 / 55. 2.100 > > libavformat 55. 1.100 / 55. 1.100 > > libavdevice 55. 0.100 / 55. 0.100 > > libavfilter 3. 50.100 / 3. 50.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [mpegts @ 0x1cb5760] max_analyze_duration 5000000 reached at 5003333 > > microseconds > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > Program 1 > > Metadata: > > service_name : Service01 > > service_provider: FFmpeg > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > 59.94 > > tbc > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > stereo, fltp, 118 kb/s > > [libx264 @ 0x1cbb9a0] using SAR=1/1 > > [libx264 @ 0x1cbb9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > > Cache64 > > [libx264 @ 0x1cbb9a0] profile High, level 3.1 > > [segment @ 0x1cbaf00] Codec for stream 0 does not use global headers but > > container format requires global headers > > [segment @ 0x1cbaf00] Codec for stream 1 does not use global headers but > > container format requires global headers > > Output #0, segment, to 'stream%05d.ts': > > Metadata: > > encoder : Lavf55.1.100 > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > q=-1--1, 2000 kb/s, 90k tbn, 29.97 tbc > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > 118 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (h264 -> libx264) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame= 649 fps= 27 q=32766.0 Lsize=N/A time=00:00:21.71 bitrate=N/A > dup=1 > > drop=0 > > video:5349kB audio:346kB subtitle:0 global headers:0kB muxing overhead > > -100.000377% > > [libx264 @ 0x1cbb9a0] frame I:15 Avg QP:17.04 size: 27166 > > [libx264 @ 0x1cbb9a0] frame P:301 Avg QP:18.57 size: 12511 > > [libx264 @ 0x1cbb9a0] frame B:333 Avg QP:20.28 size: 3916 > > [libx264 @ 0x1cbb9a0] consecutive B-frames: 18.2% 30.8% 28.2% 22.8% > > [libx264 @ 0x1cbb9a0] mb I I16..4: 31.2% 53.9% 15.0% > > [libx264 @ 0x1cbb9a0] mb P I16..4: 6.9% 10.2% 1.7% P16..4: 36.1% > 11.1% > > 5.2% 0.0% 0.0% skip:28.7% > > [libx264 @ 0x1cbb9a0] mb B I16..4: 0.6% 0.4% 0.1% B16..8: 31.3% > 2.9% > > 0.5% direct: 2.6% skip:61.6% L0:37.8% L1:57.2% BI: 5.1% > > [libx264 @ 0x1cbb9a0] final ratefactor: 18.84 > > [libx264 @ 0x1cbb9a0] 8x8 transform intra:53.4% inter:86.7% > > [libx264 @ 0x1cbb9a0] coded y,uvDC,uvAC intra: 44.7% 47.5% 18.7% inter: > > 13.8% 13.3% 1.2% > > [libx264 @ 0x1cbb9a0] i16 v,h,dc,p: 29% 35% 4% 31% > > [libx264 @ 0x1cbb9a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 19% 3% 5% > > 6% 5% 5% 4% > > [libx264 @ 0x1cbb9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 35% 12% 2% 4% > > 4% 3% 3% 2% > > [libx264 @ 0x1cbb9a0] i8c dc,h,v,p: 59% 20% 17% 3% > > [libx264 @ 0x1cbb9a0] Weighted P-Frames: Y:2.7% UV:0.7% > > [libx264 @ 0x1cbb9a0] ref P L0: 65.2% 7.0% 20.1% 7.6% 0.1% > > [libx264 @ 0x1cbb9a0] ref B L0: 79.6% 18.4% 1.9% > > [libx264 @ 0x1cbb9a0] ref B L1: 93.8% 6.2% > > [libx264 @ 0x1cbb9a0] kb/s:2023.47 > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > 2.3) bitrate 4M, "starve", no -r, FPS stats => 22-24 FPS (below 21FPS > > which was the last stat output, but alternating 21-24 throughout the > > transcoding) > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > libx264 -b:v 4000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > stream%05d.ts > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) > > configuration: --enable-gpl --enable-libass --enable-libfaac > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 25.100 / 52. 25.100 > > libavcodec 55. 2.100 / 55. 2.100 > > libavformat 55. 1.100 / 55. 1.100 > > libavdevice 55. 0.100 / 55. 0.100 > > libavfilter 3. 50.100 / 3. 50.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [mpegts @ 0x301a760] max_analyze_duration 5000000 reached at 5003333 > > microseconds > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > Program 1 > > Metadata: > > service_name : Service01 > > service_provider: FFmpeg > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > 59.94 > > tbc > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > stereo, fltp, 118 kb/s > > [libx264 @ 0x30209a0] using SAR=1/1 > > [libx264 @ 0x30209a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > > Cache64 > > [libx264 @ 0x30209a0] profile High, level 3.1 > > [segment @ 0x301ff00] Codec for stream 0 does not use global headers but > > container format requires global headers > > [segment @ 0x301ff00] Codec for stream 1 does not use global headers but > > container format requires global headers > > Output #0, segment, to 'stream%05d.ts': > > Metadata: > > encoder : Lavf55.1.100 > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > q=-1--1, 4000 kb/s, 90k tbn, 29.97 tbc > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > 118 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (h264 -> libx264) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame= 484 fps= 21 q=32766.0 Lsize=N/A time=00:00:16.10 bitrate=N/A > dup=1 > > drop=0 > > video:8041kB audio:257kB subtitle:0 global headers:0kB muxing overhead > > -100.000259% > > [libx264 @ 0x30209a0] frame I:10 Avg QP:12.15 size: 45657 > > [libx264 @ 0x30209a0] frame P:231 Avg QP:13.81 size: 24621 > > [libx264 @ 0x30209a0] frame B:243 Avg QP:15.47 size: 8599 > > [libx264 @ 0x30209a0] consecutive B-frames: 18.8% 33.1% 29.1% 19.0% > > [libx264 @ 0x30209a0] mb I I16..4: 24.8% 58.3% 16.9% > > [libx264 @ 0x30209a0] mb P I16..4: 6.2% 15.3% 3.5% P16..4: 31.4% > 19.2% > > 9.5% 0.0% 0.0% skip:14.9% > > [libx264 @ 0x30209a0] mb B I16..4: 0.8% 0.7% 0.2% B16..8: 32.3% > 9.2% > > 2.2% direct: 7.5% skip:47.2% L0:39.1% L1:49.7% BI:11.3% > > [libx264 @ 0x30209a0] final ratefactor: 14.08 > > [libx264 @ 0x30209a0] 8x8 transform intra:59.8% inter:71.0% > > [libx264 @ 0x30209a0] coded y,uvDC,uvAC intra: 65.1% 63.2% 43.7% inter: > > 26.2% 18.8% 3.4% > > [libx264 @ 0x30209a0] i16 v,h,dc,p: 26% 30% 5% 39% > > [libx264 @ 0x30209a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 23% 18% 3% 4% > > 6% 4% 5% 4% > > [libx264 @ 0x30209a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 33% 12% 2% 4% > > 4% 3% 3% 2% > > [libx264 @ 0x30209a0] i8c dc,h,v,p: 56% 20% 19% 4% > > [libx264 @ 0x30209a0] Weighted P-Frames: Y:2.6% UV:0.9% > > [libx264 @ 0x30209a0] ref P L0: 65.6% 5.7% 20.9% 7.7% 0.1% > > [libx264 @ 0x30209a0] ref B L0: 80.2% 18.3% 1.5% > > [libx264 @ 0x30209a0] ref B L1: 93.7% 6.3% > > [libx264 @ 0x30209a0] kb/s:4078.74 > > > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > 2.4) bitrate 2M, "starve", -r 30 , FPS stats => 26-28 FPS (below 28FPS > > which was the last stat output, but alternating 26-28 throughout the > > transcoding) > > OBS, same result as 2.2 without -r 30 > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 30 > > -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > stream%05d.ts > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) > > configuration: --enable-gpl --enable-libass --enable-libfaac > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 25.100 / 52. 25.100 > > libavcodec 55. 2.100 / 55. 2.100 > > libavformat 55. 1.100 / 55. 1.100 > > libavdevice 55. 0.100 / 55. 0.100 > > libavfilter 3. 50.100 / 3. 50.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [mpegts @ 0x37db780] max_analyze_duration 5000000 reached at 5003333 > > microseconds > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > Program 1 > > Metadata: > > service_name : Service01 > > service_provider: FFmpeg > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > 59.94 > > tbc > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > stereo, fltp, 118 kb/s > > [libx264 @ 0x37e1d20] using SAR=1/1 > > [libx264 @ 0x37e1d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > > Cache64 > > [libx264 @ 0x37e1d20] profile High, level 3.1 > > [segment @ 0x37e1060] Codec for stream 0 does not use global headers but > > container format requires global headers > > [segment @ 0x37e1060] Codec for stream 1 does not use global headers but > > container format requires global headers > > Output #0, segment, to 'stream%05d.ts': > > Metadata: > > encoder : Lavf55.1.100 > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > q=-1--1, 2000 kb/s, 90k tbn, 30 tbc > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > 118 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (h264 -> libx264) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame= 851 fps= 28 q=32766.0 Lsize=N/A time=00:00:28.30 bitrate=N/A > dup=2 > > drop=0 > > video:6738kB audio:451kB subtitle:0 global headers:0kB muxing overhead > > -100.000299% > > [libx264 @ 0x37e1d20] frame I:18 Avg QP:16.76 size: 30818 > > [libx264 @ 0x37e1d20] frame P:370 Avg QP:18.19 size: 12310 > > [libx264 @ 0x37e1d20] frame B:463 Avg QP:19.80 size: 3867 > > [libx264 @ 0x37e1d20] consecutive B-frames: 15.5% 27.0% 26.4% 31.0% > > [libx264 @ 0x37e1d20] mb I I16..4: 28.9% 55.1% 16.0% > > [libx264 @ 0x37e1d20] mb P I16..4: 6.6% 9.3% 1.6% P16..4: 36.1% > 11.1% > > 5.5% 0.0% 0.0% skip:29.9% > > [libx264 @ 0x37e1d20] mb B I16..4: 0.6% 0.5% 0.1% B16..8: 30.8% > 2.7% > > 0.5% direct: 2.7% skip:62.2% L0:38.6% L1:56.9% BI: 4.5% > > [libx264 @ 0x37e1d20] final ratefactor: 18.40 > > [libx264 @ 0x37e1d20] 8x8 transform intra:53.0% inter:86.6% > > [libx264 @ 0x37e1d20] coded y,uvDC,uvAC intra: 44.7% 48.5% 20.8% inter: > > 13.2% 13.7% 1.3% > > [libx264 @ 0x37e1d20] i16 v,h,dc,p: 31% 36% 5% 28% > > [libx264 @ 0x37e1d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 22% 20% 3% 5% > > 6% 5% 5% 4% > > [libx264 @ 0x37e1d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 34% 13% 3% 4% > > 4% 4% 3% 2% > > [libx264 @ 0x37e1d20] i8c dc,h,v,p: 59% 20% 18% 3% > > [libx264 @ 0x37e1d20] Weighted P-Frames: Y:2.2% UV:0.5% > > [libx264 @ 0x37e1d20] ref P L0: 65.1% 6.6% 20.4% 7.8% 0.0% > > [libx264 @ 0x37e1d20] ref B L0: 79.4% 18.3% 2.3% > > [libx264 @ 0x37e1d20] ref B L1: 93.2% 6.8% > > [libx264 @ 0x37e1d20] kb/s:1946.00 > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > 2.5) bitrate 512k, "no starve", -r 32 , FPS stats => 32 FPS (below 31 FPS > > which was the last stat output, but after initially a few around 29, it > > stabilized to 32 fairly quickly. > > > > It shows that FPS can be forced. > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 32 > > -vcodec libx264 -b:v 512k -acodec copy -s 1024x768 -aspect 4:3 -flags > > -global_header -map 0 -f segment -segment_time 10 -segment_list test.m3u8 > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > stream%05d.ts > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the FFmpeg > > developers > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > 4.6.3-1ubuntu5) > > configuration: --enable-gpl --enable-libass --enable-libfaac > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 25.100 / 52. 25.100 > > libavcodec 55. 2.100 / 55. 2.100 > > libavformat 55. 1.100 / 55. 1.100 > > libavdevice 55. 0.100 / 55. 0.100 > > libavfilter 3. 50.100 / 3. 50.100 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > [mpegts @ 0x1dda780] max_analyze_duration 5000000 reached at 5003333 > > microseconds > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > Program 1 > > Metadata: > > service_name : Service01 > > service_provider: FFmpeg > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > 59.94 > > tbc > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > stereo, fltp, 118 kb/s > > [libx264 @ 0x1de0d20] using SAR=1/1 > > [libx264 @ 0x1de0d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 > > Cache64 > > [libx264 @ 0x1de0d20] profile High, level 3.1 > > [segment @ 0x1de0060] Codec for stream 0 does not use global headers but > > container format requires global headers > > [segment @ 0x1de0060] Codec for stream 1 does not use global headers but > > container format requires global headers > > Output #0, segment, to 'stream%05d.ts': > > Metadata: > > encoder : Lavf55.1.100 > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > q=-1--1, 512 kb/s, 90k tbn, 32 tbc > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > 118 kb/s > > Stream mapping: > > Stream #0:0 -> #0:0 (h264 -> libx264) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame= 914 fps= 31 q=32766.0 Lsize=N/A time=00:00:28.60 bitrate=N/A > > dup=59 drop=0 > > video:1654kB audio:456kB subtitle:0 global headers:0kB muxing overhead > > -100.001018% > > [libx264 @ 0x1de0d20] frame I:18 Avg QP:27.26 size: 10046 > > [libx264 @ 0x1de0d20] frame P:407 Avg QP:29.04 size: 2918 > > [libx264 @ 0x1de0d20] frame B:489 Avg QP:31.59 size: 665 > > [libx264 @ 0x1de0d20] consecutive B-frames: 18.2% 24.3% 21.7% 35.9% > > [libx264 @ 0x1de0d20] mb I I16..4: 53.8% 42.9% 3.3% > > [libx264 @ 0x1de0d20] mb P I16..4: 7.1% 4.7% 0.3% P16..4: 18.2% > 2.0% > > 0.8% 0.0% 0.0% skip:66.8% > > [libx264 @ 0x1de0d20] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 13.5% > 0.4% > > 0.1% direct: 0.2% skip:85.5% L0:30.1% L1:68.9% BI: 1.1% > > [libx264 @ 0x1de0d20] final ratefactor: 28.13 > > [libx264 @ 0x1de0d20] 8x8 transform intra:40.7% inter:92.4% > > [libx264 @ 0x1de0d20] coded y,uvDC,uvAC intra: 19.6% 19.0% 1.5% inter: > > 2.0% 1.9% 0.0% > > [libx264 @ 0x1de0d20] i16 v,h,dc,p: 43% 33% 5% 19% > > [libx264 @ 0x1de0d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 26% 3% 4% > > 5% 4% 5% 3% > > [libx264 @ 0x1de0d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 27% 11% 3% 4% > > 6% 4% 5% 2% > > [libx264 @ 0x1de0d20] i8c dc,h,v,p: 80% 11% 9% 1% > > [libx264 @ 0x1de0d20] Weighted P-Frames: Y:2.0% UV:0.5% > > [libx264 @ 0x1de0d20] ref P L0: 66.6% 11.2% 16.4% 5.8% 0.0% > > [libx264 @ 0x1de0d20] ref B L0: 85.0% 12.6% 2.4% > > [libx264 @ 0x1de0d20] ref B L1: 96.2% 3.8% > > [libx264 @ 0x1de0d20] kb/s:474.38 > > > > !!!!!!! > > > > Would truly appreciate some help to solve the starving file segments > since > > is significantly impacts the QOE for the end user. > > best regard > > uffe > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From lou at lrcd.com Tue May 28 22:31:40 2013 From: lou at lrcd.com (Lou) Date: Tue, 28 May 2013 12:31:40 -0800 Subject: [FFmpeg-user] format of video stream for WindowsMedia player In-Reply-To: References: Message-ID: <20130528123140.0f3f56f2@lrcd.com> On Tue, 28 May 2013 14:13:05 +0800 Soho Soho123 wrote: > Hi all, > > Does anyone know which format of video stream that ffserver can output can > be played by windows media player? > > such that I can modify my fferver.conf. Did you perform a search? Information about the Multimedia file types that Windows Media Player supports http://support.microsoft.com/kb/316992 From epkuson at gmail.com Wed May 29 06:15:50 2013 From: epkuson at gmail.com (ulf johansson) Date: Wed, 29 May 2013 00:15:50 -0400 Subject: [FFmpeg-user] ffmpeg segmenter starves when using -re and high bitrate In-Reply-To: References: Message-ID: Hi FC, No I haven't, and I just tried the "hls" option and preliminary it looks like it's working. Great stuff!! I had to remove parameter "start_number 1" since it caused the IPAD to go back to old segments. Need to read up on this HLS in the ffmpeg documentation, since I truly thought that the segmenter was ffmpeg:s HLS streamer. Thanks again FC, truly appreciate your help! br uffe On Tue, May 28, 2013 at 2:14 PM, Fing Cmo wrote: > ulf, > > Have you tried using the "-hls*" options instead of -segment.* options? > > e.g. > > ffmpeg -re -i VIDSOURCE -y -c:v libx264 -b:v BITRATE -vprofile baseline > -preset medium -x264opts level=41 -threads 4 -s RESOLUTION -map 0:v > -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 > -hls_list_size 6 -hls_wrap 18 -start_number 1 stream.m3u8 > > Would be curious to see if it changes anything. > > FC. > ............................... > > > On Tue, May 28, 2013 at 10:43 AM, ulf johansson wrote: > > > Hi again, > > anyone have any ideas to isolate/remedy the problem? > > br > > uffe > > > > > > On Mon, May 27, 2013 at 8:30 AM, ulf johansson > wrote: > > > > > Hello, > > > I would need some help with ffmpeg. > > > > > > > > > Project: > > > I'm trying to configure ffmpeg to provide live TV HLS streaming and > > > transcoding to my Ipad in my home. > > > > > > Input: > > > Video source: Hauppauge HD PVR(CBR) - analogue Component + OPTICAL => > > h264 > > > AAC mpegts > > > CPU: quadcore when full transcoding is used~ 19-39-% load on all cores. > > > (the lower bitrate => higher CPU load ) > > > OS: LInux Ubuntu > > > > > > I had to break down the streaming in two steps. (I had some problem > with > > > buffer handling, i.e. the HD PVR stopped streaming, when I performed > > > transcoding directly from /dev/video0) > > > > > > 1.) Record input stream to file and store the file in a mpeg TS file. > > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > > > ~/repository/recorded_stream.ts > > > > > > > > > Approx. 10s delay until starting transcoding process on 'ts' file. > > > > > > 2.)Transcode 'ts' and stream using HLS of live TV to IPAD. > > > $/usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > test.m3u8 > > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > > stream%05d.ts > > > > > > Problem Description: > > > =============== > > > When performing transcoding and using bitrate of approx > 1.2 M (b:v > > > 1000k), the live streaming to the IPAD starves after approximately a > few > > > minutes when new segments are not produced quick enough, i.e. playing > the > > > segments catches up with the available segments from the playlist even > if > > > the player is not started until 3-4 segments are available in playlist. > > The > > > QOE result in a short stalls of the live video, and can be reduced by > > using > > > pause for a while , but will eventually catch up again and the stalls > > > resumes. > > > > > > When the higher bitrate is selected the transcoding FPS goes down > 25-27, > > > which I believe could be the reason for starving the client. TV signal > is > > > NTSC 1080i 59.94 interlaced, or 29.97 FPS, so I would expect the FPS > > output > > > to also be 30 FPS for the live transcoded HLS segments. > > > When I use 1M bitrate an output of 30 FPS is achieved and I don't > > > experience the starving of file segments. > > > > > > The same problem can be re-produced with using VLC for viewing the HLS > > > stream. > > > > > > I've tried to use forced FPS '-r 30' or '-r 29.97' on the transcoding > > > process but it seems to have no affect when higher bitrates are used. > > E.g. > > > if I set it to -r 32 it will only take affect if bitrate is < 1M. > > > > > > Would truly appreciate some help to solve the starving file segments > > since > > > is significantly impacts the QOE for the end user. > > > > > > ============================ > > > 1) Recording file > > > > > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > > > ~/repository/recorded_stream.ts > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > FFmpeg > > > developers > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > > --enable-libx264 --enable-nonfree --enable-version3 > > > libavutil 52. 25.100 / 52. 25.100 > > > libavcodec 55. 2.100 / 55. 2.100 > > > libavformat 55. 1.100 / 55. 1.100 > > > libavdevice 55. 0.100 / 55. 0.100 > > > libavfilter 3. 50.100 / 3. 50.100 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > libpostproc 52. 2.100 / 52. 2.100 > > > [mpegts @ 0x29eefc0] max_analyze_duration 5000000 reached at 5013333 > > > microseconds > > > Input #0, mpegts, from '/dev/video0': > > > Duration: N/A, start: 0.387044, bitrate: 130 kb/s > > > Program 1 > > > Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), > yuv420p, > > > 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc > > > Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > > stereo, fltp, 130 kb/s > > > Output #0, mpegts, to '/home/jocho/repository/recorded_stream.ts': > > > Metadata: > > > encoder : Lavf55.1.100 > > > Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 > [SAR > > > 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > > 130 kb/s > > > Stream mapping: > > > Stream #0:0 -> #0:0 (copy) > > > Stream #0:1 -> #0:1 (copy) > > > Press [q] to stop, [?] for help > > > frame=10219 fps= 62 q=-1.0 Lsize= 150029kB time=00:02:50.53 > > > bitrate=7206.8kbits/s > > > video:135224kB audio:2719kB subtitle:0 global headers:0kB muxing > overhead > > > 8.760707% > > > $ > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > 2.1) bitrate 1M, "no starve", no -r, FPS stats => 30 FPS (below 29FPS > > > which was the last stat output) > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > > libx264 -b:v 1000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > test.m3u8 > > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > > stream%05d.ts > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > FFmpeg > > > developers > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > > --enable-libx264 --enable-nonfree --enable-version3 > > > libavutil 52. 25.100 / 52. 25.100 > > > libavcodec 55. 2.100 / 55. 2.100 > > > libavformat 55. 1.100 / 55. 1.100 > > > libavdevice 55. 0.100 / 55. 0.100 > > > libavfilter 3. 50.100 / 3. 50.100 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > libpostproc 52. 2.100 / 52. 2.100 > > > [mpegts @ 0x2c4e760] max_analyze_duration 5000000 reached at 5003333 > > > microseconds > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > Program 1 > > > Metadata: > > > service_name : Service01 > > > service_provider: FFmpeg > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > 59.94 > > > tbc > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > > stereo, fltp, 118 kb/s > > > [libx264 @ 0x2c549a0] using SAR=1/1 > > > [libx264 @ 0x2c549a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > SSE4.1 > > > Cache64 > > > [libx264 @ 0x2c549a0] profile High, level 3.1 > > > [segment @ 0x2c53f00] Codec for stream 0 does not use global headers > but > > > container format requires global headers > > > [segment @ 0x2c53f00] Codec for stream 1 does not use global headers > but > > > container format requires global headers > > > Output #0, segment, to 'stream%05d.ts': > > > Metadata: > > > encoder : Lavf55.1.100 > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > q=-1--1, 1000 kb/s, 90k tbn, 29.97 tbc > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > > 118 kb/s > > > Stream mapping: > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > Stream #0:1 -> #0:1 (copy) > > > Press [q] to stop, [?] for help > > > frame= 1105 fps= 29 q=32766.0 Lsize=N/A time=00:00:36.84 bitrate=N/A > > dup=1 > > > drop=0 > > > video:4368kB audio:588kB subtitle:0 global headers:0kB muxing overhead > > > -100.000434% > > > [libx264 @ 0x2c549a0] frame I:22 Avg QP:20.97 size: 18575 > > > [libx264 @ 0x2c549a0] frame P:474 Avg QP:22.31 size: 6433 > > > [libx264 @ 0x2c549a0] frame B:609 Avg QP:23.91 size: 1666 > > > [libx264 @ 0x2c549a0] consecutive B-frames: 14.7% 27.3% 24.7% 33.3% > > > [libx264 @ 0x2c549a0] mb I I16..4: 41.2% 50.9% 8.0% > > > [libx264 @ 0x2c549a0] mb P I16..4: 6.8% 6.8% 0.6% P16..4: 30.3% > > 5.2% > > > 3.1% 0.0% 0.0% skip:47.2% > > > [libx264 @ 0x2c549a0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 23.2% > > 0.9% > > > 0.2% direct: 1.0% skip:74.2% L0:36.7% L1:61.4% BI: 1.9% > > > [libx264 @ 0x2c549a0] final ratefactor: 22.56 > > > [libx264 @ 0x2c549a0] 8x8 transform intra:48.6% inter:91.1% > > > [libx264 @ 0x2c549a0] coded y,uvDC,uvAC intra: 30.9% 34.7% 7.6% inter: > > > 6.1% 9.0% 0.3% > > > [libx264 @ 0x2c549a0] i16 v,h,dc,p: 36% 36% 4% 24% > > > [libx264 @ 0x2c549a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 25% 3% > 5% > > > 6% 5% 5% 4% > > > [libx264 @ 0x2c549a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 11% 3% > 5% > > > 6% 4% 4% 2% > > > [libx264 @ 0x2c549a0] i8c dc,h,v,p: 65% 18% 14% 3% > > > [libx264 @ 0x2c549a0] Weighted P-Frames: Y:1.9% UV:0.4% > > > [libx264 @ 0x2c549a0] ref P L0: 66.4% 8.2% 18.6% 6.8% 0.0% > > > [libx264 @ 0x2c549a0] ref B L0: 81.7% 16.0% 2.3% > > > [libx264 @ 0x2c549a0] ref B L1: 94.4% 5.6% > > > [libx264 @ 0x2c549a0] kb/s:970.43 > > > > > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > 2.2) bitrate 2M, "starve", no -r, FPS stats => 26-28 FPS (below 27FPS > > > which was the last stat output, but alternating 26-28 throughout the > > > trasnscoding) > > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > test.m3u8 > > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > > stream%05d.ts > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > FFmpeg > > > developers > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > > --enable-libx264 --enable-nonfree --enable-version3 > > > libavutil 52. 25.100 / 52. 25.100 > > > libavcodec 55. 2.100 / 55. 2.100 > > > libavformat 55. 1.100 / 55. 1.100 > > > libavdevice 55. 0.100 / 55. 0.100 > > > libavfilter 3. 50.100 / 3. 50.100 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > libpostproc 52. 2.100 / 52. 2.100 > > > [mpegts @ 0x1cb5760] max_analyze_duration 5000000 reached at 5003333 > > > microseconds > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > Program 1 > > > Metadata: > > > service_name : Service01 > > > service_provider: FFmpeg > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > 59.94 > > > tbc > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > > stereo, fltp, 118 kb/s > > > [libx264 @ 0x1cbb9a0] using SAR=1/1 > > > [libx264 @ 0x1cbb9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > SSE4.1 > > > Cache64 > > > [libx264 @ 0x1cbb9a0] profile High, level 3.1 > > > [segment @ 0x1cbaf00] Codec for stream 0 does not use global headers > but > > > container format requires global headers > > > [segment @ 0x1cbaf00] Codec for stream 1 does not use global headers > but > > > container format requires global headers > > > Output #0, segment, to 'stream%05d.ts': > > > Metadata: > > > encoder : Lavf55.1.100 > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > q=-1--1, 2000 kb/s, 90k tbn, 29.97 tbc > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > > 118 kb/s > > > Stream mapping: > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > Stream #0:1 -> #0:1 (copy) > > > Press [q] to stop, [?] for help > > > frame= 649 fps= 27 q=32766.0 Lsize=N/A time=00:00:21.71 bitrate=N/A > > dup=1 > > > drop=0 > > > video:5349kB audio:346kB subtitle:0 global headers:0kB muxing overhead > > > -100.000377% > > > [libx264 @ 0x1cbb9a0] frame I:15 Avg QP:17.04 size: 27166 > > > [libx264 @ 0x1cbb9a0] frame P:301 Avg QP:18.57 size: 12511 > > > [libx264 @ 0x1cbb9a0] frame B:333 Avg QP:20.28 size: 3916 > > > [libx264 @ 0x1cbb9a0] consecutive B-frames: 18.2% 30.8% 28.2% 22.8% > > > [libx264 @ 0x1cbb9a0] mb I I16..4: 31.2% 53.9% 15.0% > > > [libx264 @ 0x1cbb9a0] mb P I16..4: 6.9% 10.2% 1.7% P16..4: 36.1% > > 11.1% > > > 5.2% 0.0% 0.0% skip:28.7% > > > [libx264 @ 0x1cbb9a0] mb B I16..4: 0.6% 0.4% 0.1% B16..8: 31.3% > > 2.9% > > > 0.5% direct: 2.6% skip:61.6% L0:37.8% L1:57.2% BI: 5.1% > > > [libx264 @ 0x1cbb9a0] final ratefactor: 18.84 > > > [libx264 @ 0x1cbb9a0] 8x8 transform intra:53.4% inter:86.7% > > > [libx264 @ 0x1cbb9a0] coded y,uvDC,uvAC intra: 44.7% 47.5% 18.7% inter: > > > 13.8% 13.3% 1.2% > > > [libx264 @ 0x1cbb9a0] i16 v,h,dc,p: 29% 35% 4% 31% > > > [libx264 @ 0x1cbb9a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 19% 3% > 5% > > > 6% 5% 5% 4% > > > [libx264 @ 0x1cbb9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 35% 12% 2% > 4% > > > 4% 3% 3% 2% > > > [libx264 @ 0x1cbb9a0] i8c dc,h,v,p: 59% 20% 17% 3% > > > [libx264 @ 0x1cbb9a0] Weighted P-Frames: Y:2.7% UV:0.7% > > > [libx264 @ 0x1cbb9a0] ref P L0: 65.2% 7.0% 20.1% 7.6% 0.1% > > > [libx264 @ 0x1cbb9a0] ref B L0: 79.6% 18.4% 1.9% > > > [libx264 @ 0x1cbb9a0] ref B L1: 93.8% 6.2% > > > [libx264 @ 0x1cbb9a0] kb/s:2023.47 > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > 2.3) bitrate 4M, "starve", no -r, FPS stats => 22-24 FPS (below 21FPS > > > which was the last stat output, but alternating 21-24 throughout the > > > transcoding) > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -vcodec > > > libx264 -b:v 4000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > test.m3u8 > > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > > stream%05d.ts > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > FFmpeg > > > developers > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > > --enable-libx264 --enable-nonfree --enable-version3 > > > libavutil 52. 25.100 / 52. 25.100 > > > libavcodec 55. 2.100 / 55. 2.100 > > > libavformat 55. 1.100 / 55. 1.100 > > > libavdevice 55. 0.100 / 55. 0.100 > > > libavfilter 3. 50.100 / 3. 50.100 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > libpostproc 52. 2.100 / 52. 2.100 > > > [mpegts @ 0x301a760] max_analyze_duration 5000000 reached at 5003333 > > > microseconds > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > Program 1 > > > Metadata: > > > service_name : Service01 > > > service_provider: FFmpeg > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > 59.94 > > > tbc > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > > stereo, fltp, 118 kb/s > > > [libx264 @ 0x30209a0] using SAR=1/1 > > > [libx264 @ 0x30209a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > SSE4.1 > > > Cache64 > > > [libx264 @ 0x30209a0] profile High, level 3.1 > > > [segment @ 0x301ff00] Codec for stream 0 does not use global headers > but > > > container format requires global headers > > > [segment @ 0x301ff00] Codec for stream 1 does not use global headers > but > > > container format requires global headers > > > Output #0, segment, to 'stream%05d.ts': > > > Metadata: > > > encoder : Lavf55.1.100 > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > q=-1--1, 4000 kb/s, 90k tbn, 29.97 tbc > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > > 118 kb/s > > > Stream mapping: > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > Stream #0:1 -> #0:1 (copy) > > > Press [q] to stop, [?] for help > > > frame= 484 fps= 21 q=32766.0 Lsize=N/A time=00:00:16.10 bitrate=N/A > > dup=1 > > > drop=0 > > > video:8041kB audio:257kB subtitle:0 global headers:0kB muxing overhead > > > -100.000259% > > > [libx264 @ 0x30209a0] frame I:10 Avg QP:12.15 size: 45657 > > > [libx264 @ 0x30209a0] frame P:231 Avg QP:13.81 size: 24621 > > > [libx264 @ 0x30209a0] frame B:243 Avg QP:15.47 size: 8599 > > > [libx264 @ 0x30209a0] consecutive B-frames: 18.8% 33.1% 29.1% 19.0% > > > [libx264 @ 0x30209a0] mb I I16..4: 24.8% 58.3% 16.9% > > > [libx264 @ 0x30209a0] mb P I16..4: 6.2% 15.3% 3.5% P16..4: 31.4% > > 19.2% > > > 9.5% 0.0% 0.0% skip:14.9% > > > [libx264 @ 0x30209a0] mb B I16..4: 0.8% 0.7% 0.2% B16..8: 32.3% > > 9.2% > > > 2.2% direct: 7.5% skip:47.2% L0:39.1% L1:49.7% BI:11.3% > > > [libx264 @ 0x30209a0] final ratefactor: 14.08 > > > [libx264 @ 0x30209a0] 8x8 transform intra:59.8% inter:71.0% > > > [libx264 @ 0x30209a0] coded y,uvDC,uvAC intra: 65.1% 63.2% 43.7% inter: > > > 26.2% 18.8% 3.4% > > > [libx264 @ 0x30209a0] i16 v,h,dc,p: 26% 30% 5% 39% > > > [libx264 @ 0x30209a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 23% 18% 3% > 4% > > > 6% 4% 5% 4% > > > [libx264 @ 0x30209a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 33% 12% 2% > 4% > > > 4% 3% 3% 2% > > > [libx264 @ 0x30209a0] i8c dc,h,v,p: 56% 20% 19% 4% > > > [libx264 @ 0x30209a0] Weighted P-Frames: Y:2.6% UV:0.9% > > > [libx264 @ 0x30209a0] ref P L0: 65.6% 5.7% 20.9% 7.7% 0.1% > > > [libx264 @ 0x30209a0] ref B L0: 80.2% 18.3% 1.5% > > > [libx264 @ 0x30209a0] ref B L1: 93.7% 6.3% > > > [libx264 @ 0x30209a0] kb/s:4078.74 > > > > > > > > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > 2.4) bitrate 2M, "starve", -r 30 , FPS stats => 26-28 FPS (below 28FPS > > > which was the last stat output, but alternating 26-28 throughout the > > > transcoding) > > > OBS, same result as 2.2 without -r 30 > > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 30 > > > -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > test.m3u8 > > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > > stream%05d.ts > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > FFmpeg > > > developers > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > > --enable-libx264 --enable-nonfree --enable-version3 > > > libavutil 52. 25.100 / 52. 25.100 > > > libavcodec 55. 2.100 / 55. 2.100 > > > libavformat 55. 1.100 / 55. 1.100 > > > libavdevice 55. 0.100 / 55. 0.100 > > > libavfilter 3. 50.100 / 3. 50.100 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > libpostproc 52. 2.100 / 52. 2.100 > > > [mpegts @ 0x37db780] max_analyze_duration 5000000 reached at 5003333 > > > microseconds > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > Program 1 > > > Metadata: > > > service_name : Service01 > > > service_provider: FFmpeg > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > 59.94 > > > tbc > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > > stereo, fltp, 118 kb/s > > > [libx264 @ 0x37e1d20] using SAR=1/1 > > > [libx264 @ 0x37e1d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 > SSE4.1 > > > Cache64 > > > [libx264 @ 0x37e1d20] profile High, level 3.1 > > > [segment @ 0x37e1060] Codec for stream 0 does not use global headers > but > > > container format requires global headers > > > [segment @ 0x37e1060] Codec for stream 1 does not use global headers > but > > > container format requires global headers > > > Output #0, segment, to 'stream%05d.ts': > > > Metadata: > > > encoder : Lavf55.1.100 > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > q=-1--1, 2000 kb/s, 90k tbn, 30 tbc > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > > 118 kb/s > > > Stream mapping: > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > Stream #0:1 -> #0:1 (copy) > > > Press [q] to stop, [?] for help > > > frame= 851 fps= 28 q=32766.0 Lsize=N/A time=00:00:28.30 bitrate=N/A > > dup=2 > > > drop=0 > > > video:6738kB audio:451kB subtitle:0 global headers:0kB muxing overhead > > > -100.000299% > > > [libx264 @ 0x37e1d20] frame I:18 Avg QP:16.76 size: 30818 > > > [libx264 @ 0x37e1d20] frame P:370 Avg QP:18.19 size: 12310 > > > [libx264 @ 0x37e1d20] frame B:463 Avg QP:19.80 size: 3867 > > > [libx264 @ 0x37e1d20] consecutive B-frames: 15.5% 27.0% 26.4% 31.0% > > > [libx264 @ 0x37e1d20] mb I I16..4: 28.9% 55.1% 16.0% > > > [libx264 @ 0x37e1d20] mb P I16..4: 6.6% 9.3% 1.6% P16..4: 36.1% > > 11.1% > > > 5.5% 0.0% 0.0% skip:29.9% > > > [libx264 @ 0x37e1d20] mb B I16..4: 0.6% 0.5% 0.1% B16..8: 30.8% > > 2.7% > > > 0.5% direct: 2.7% skip:62.2% L0:38.6% L1:56.9% BI: 4.5% > > > [libx264 @ 0x37e1d20] final ratefactor: 18.40 > > > [libx264 @ 0x37e1d20] 8x8 transform intra:53.0% inter:86.6% > > > [libx264 @ 0x37e1d20] coded y,uvDC,uvAC intra: 44.7% 48.5% 20.8% inter: > > > 13.2% 13.7% 1.3% > > > [libx264 @ 0x37e1d20] i16 v,h,dc,p: 31% 36% 5% 28% > > > [libx264 @ 0x37e1d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 22% 20% 3% > 5% > > > 6% 5% 5% 4% > > > [libx264 @ 0x37e1d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 34% 13% 3% > 4% > > > 4% 4% 3% 2% > > > [libx264 @ 0x37e1d20] i8c dc,h,v,p: 59% 20% 18% 3% > > > [libx264 @ 0x37e1d20] Weighted P-Frames: Y:2.2% UV:0.5% > > > [libx264 @ 0x37e1d20] ref P L0: 65.1% 6.6% 20.4% 7.8% 0.0% > > > [libx264 @ 0x37e1d20] ref B L0: 79.4% 18.3% 2.3% > > > [libx264 @ 0x37e1d20] ref B L1: 93.2% 6.8% > > > [libx264 @ 0x37e1d20] kb/s:1946.00 > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > 2.5) bitrate 512k, "no starve", -r 32 , FPS stats => 32 FPS (below 31 > FPS > > > which was the last stat output, but after initially a few around 29, it > > > stabilized to 32 fairly quickly. > > > > > > It shows that FPS can be forced. > > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 32 > > > -vcodec libx264 -b:v 512k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > test.m3u8 > > > -segment_list_flags live -segment_list_size 0 -y -segment_format mpegts > > > stream%05d.ts > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > FFmpeg > > > developers > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > 4.6.3-1ubuntu5) > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab > > > --enable-libx264 --enable-nonfree --enable-version3 > > > libavutil 52. 25.100 / 52. 25.100 > > > libavcodec 55. 2.100 / 55. 2.100 > > > libavformat 55. 1.100 / 55. 1.100 > > > libavdevice 55. 0.100 / 55. 0.100 > > > libavfilter 3. 50.100 / 3. 50.100 > > > libswscale 2. 2.100 / 2. 2.100 > > > libswresample 0. 17.102 / 0. 17.102 > > > libpostproc 52. 2.100 / 52. 2.100 > > > [mpegts @ 0x1dda780] max_analyze_duration 5000000 reached at 5003333 > > > microseconds > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > Program 1 > > > Metadata: > > > service_name : Service01 > > > service_provider: FFmpeg > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > 59.94 > > > tbc > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > > > stereo, fltp, 118 kb/s > > > [libx264 @ 0x1de0d20] using SAR=1/1 > > > [libx264 @ 0x1de0d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 > SSE4.1 > > > Cache64 > > > [libx264 @ 0x1de0d20] profile High, level 3.1 > > > [segment @ 0x1de0060] Codec for stream 0 does not use global headers > but > > > container format requires global headers > > > [segment @ 0x1de0060] Codec for stream 1 does not use global headers > but > > > container format requires global headers > > > Output #0, segment, to 'stream%05d.ts': > > > Metadata: > > > encoder : Lavf55.1.100 > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > q=-1--1, 512 kb/s, 90k tbn, 32 tbc > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, > > > 118 kb/s > > > Stream mapping: > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > Stream #0:1 -> #0:1 (copy) > > > Press [q] to stop, [?] for help > > > frame= 914 fps= 31 q=32766.0 Lsize=N/A time=00:00:28.60 bitrate=N/A > > > dup=59 drop=0 > > > video:1654kB audio:456kB subtitle:0 global headers:0kB muxing overhead > > > -100.001018% > > > [libx264 @ 0x1de0d20] frame I:18 Avg QP:27.26 size: 10046 > > > [libx264 @ 0x1de0d20] frame P:407 Avg QP:29.04 size: 2918 > > > [libx264 @ 0x1de0d20] frame B:489 Avg QP:31.59 size: 665 > > > [libx264 @ 0x1de0d20] consecutive B-frames: 18.2% 24.3% 21.7% 35.9% > > > [libx264 @ 0x1de0d20] mb I I16..4: 53.8% 42.9% 3.3% > > > [libx264 @ 0x1de0d20] mb P I16..4: 7.1% 4.7% 0.3% P16..4: 18.2% > > 2.0% > > > 0.8% 0.0% 0.0% skip:66.8% > > > [libx264 @ 0x1de0d20] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 13.5% > > 0.4% > > > 0.1% direct: 0.2% skip:85.5% L0:30.1% L1:68.9% BI: 1.1% > > > [libx264 @ 0x1de0d20] final ratefactor: 28.13 > > > [libx264 @ 0x1de0d20] 8x8 transform intra:40.7% inter:92.4% > > > [libx264 @ 0x1de0d20] coded y,uvDC,uvAC intra: 19.6% 19.0% 1.5% inter: > > > 2.0% 1.9% 0.0% > > > [libx264 @ 0x1de0d20] i16 v,h,dc,p: 43% 33% 5% 19% > > > [libx264 @ 0x1de0d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 26% 3% > 4% > > > 5% 4% 5% 3% > > > [libx264 @ 0x1de0d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 27% 11% 3% > 4% > > > 6% 4% 5% 2% > > > [libx264 @ 0x1de0d20] i8c dc,h,v,p: 80% 11% 9% 1% > > > [libx264 @ 0x1de0d20] Weighted P-Frames: Y:2.0% UV:0.5% > > > [libx264 @ 0x1de0d20] ref P L0: 66.6% 11.2% 16.4% 5.8% 0.0% > > > [libx264 @ 0x1de0d20] ref B L0: 85.0% 12.6% 2.4% > > > [libx264 @ 0x1de0d20] ref B L1: 96.2% 3.8% > > > [libx264 @ 0x1de0d20] kb/s:474.38 > > > > > > !!!!!!! > > > > > > Would truly appreciate some help to solve the starving file segments > > since > > > is significantly impacts the QOE for the end user. > > > best regard > > > uffe > > > > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From soho123.2012 at gmail.com Wed May 29 07:38:35 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 29 May 2013 13:38:35 +0800 Subject: [FFmpeg-user] how ffmpeg send video data to ffserver Message-ID: Hi All, the command line I use: ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm after trace ffmpeg code, I see in do_streamcopy(), do_streamcopy() will call write_frame(), and next write_frame() will call av_interleaved_write_frame(), I do not see the code about socket write. Because I see ffserver will keep receive data from socket. Does anyone have idea about this question? where is the code that help ffmpeg to send data to ffserver? From fingcmo at gmail.com Wed May 29 08:24:24 2013 From: fingcmo at gmail.com (Fing Cmo) Date: Tue, 28 May 2013 23:24:24 -0700 Subject: [FFmpeg-user] ffmpeg segmenter starves when using -re and high bitrate In-Reply-To: References: Message-ID: No prob. Please share your final working command when done :) FC. On Tue, May 28, 2013 at 9:15 PM, ulf johansson wrote: > Hi FC, > No I haven't, and I just tried the "hls" option and preliminary it looks > like it's working. Great stuff!! > I had to remove parameter "start_number 1" since it caused the IPAD to go > back to old segments. > Need to read up on this HLS in the ffmpeg documentation, since I truly > thought that the segmenter was ffmpeg:s HLS streamer. > Thanks again FC, truly appreciate your help! > br > uffe > > > > On Tue, May 28, 2013 at 2:14 PM, Fing Cmo wrote: > > > ulf, > > > > Have you tried using the "-hls*" options instead of -segment.* options? > > > > e.g. > > > > ffmpeg -re -i VIDSOURCE -y -c:v libx264 -b:v BITRATE -vprofile baseline > > -preset medium -x264opts level=41 -threads 4 -s RESOLUTION -map 0:v > > -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10 > > -hls_list_size 6 -hls_wrap 18 -start_number 1 stream.m3u8 > > > > Would be curious to see if it changes anything. > > > > FC. > > ............................... > > > > > > On Tue, May 28, 2013 at 10:43 AM, ulf johansson > wrote: > > > > > Hi again, > > > anyone have any ideas to isolate/remedy the problem? > > > br > > > uffe > > > > > > > > > On Mon, May 27, 2013 at 8:30 AM, ulf johansson > > wrote: > > > > > > > Hello, > > > > I would need some help with ffmpeg. > > > > > > > > > > > > Project: > > > > I'm trying to configure ffmpeg to provide live TV HLS streaming and > > > > transcoding to my Ipad in my home. > > > > > > > > Input: > > > > Video source: Hauppauge HD PVR(CBR) - analogue Component + OPTICAL => > > > h264 > > > > AAC mpegts > > > > CPU: quadcore when full transcoding is used~ 19-39-% load on all > cores. > > > > (the lower bitrate => higher CPU load ) > > > > OS: LInux Ubuntu > > > > > > > > I had to break down the streaming in two steps. (I had some problem > > with > > > > buffer handling, i.e. the HD PVR stopped streaming, when I performed > > > > transcoding directly from /dev/video0) > > > > > > > > 1.) Record input stream to file and store the file in a mpeg TS file. > > > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > > > > ~/repository/recorded_stream.ts > > > > > > > > > > > > Approx. 10s delay until starting transcoding process on 'ts' file. > > > > > > > > 2.)Transcode 'ts' and stream using HLS of live TV to IPAD. > > > > $/usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts > -vcodec > > > > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > > test.m3u8 > > > > -segment_list_flags live -segment_list_size 0 -y -segment_format > mpegts > > > > stream%05d.ts > > > > > > > > Problem Description: > > > > =============== > > > > When performing transcoding and using bitrate of approx > 1.2 M (b:v > > > > 1000k), the live streaming to the IPAD starves after approximately a > > few > > > > minutes when new segments are not produced quick enough, i.e. playing > > the > > > > segments catches up with the available segments from the playlist > even > > if > > > > the player is not started until 3-4 segments are available in > playlist. > > > The > > > > QOE result in a short stalls of the live video, and can be reduced by > > > using > > > > pause for a while , but will eventually catch up again and the stalls > > > > resumes. > > > > > > > > When the higher bitrate is selected the transcoding FPS goes down > > 25-27, > > > > which I believe could be the reason for starving the client. TV > signal > > is > > > > NTSC 1080i 59.94 interlaced, or 29.97 FPS, so I would expect the FPS > > > output > > > > to also be 30 FPS for the live transcoded HLS segments. > > > > When I use 1M bitrate an output of 30 FPS is achieved and I don't > > > > experience the starving of file segments. > > > > > > > > The same problem can be re-produced with using VLC for viewing the > HLS > > > > stream. > > > > > > > > I've tried to use forced FPS '-r 30' or '-r 29.97' on the transcoding > > > > process but it seems to have no affect when higher bitrates are used. > > > E.g. > > > > if I set it to -r 32 it will only take affect if bitrate is < 1M. > > > > > > > > Would truly appreciate some help to solve the starving file segments > > > since > > > > is significantly impacts the QOE for the end user. > > > > > > > > ============================ > > > > 1) Recording file > > > > > > > > $ /usr/local/bin/ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y > > > > ~/repository/recorded_stream.ts > > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > > FFmpeg > > > > developers > > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > > 4.6.3-1ubuntu5) > > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > > --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-x11grab > > > > --enable-libx264 --enable-nonfree --enable-version3 > > > > libavutil 52. 25.100 / 52. 25.100 > > > > libavcodec 55. 2.100 / 55. 2.100 > > > > libavformat 55. 1.100 / 55. 1.100 > > > > libavdevice 55. 0.100 / 55. 0.100 > > > > libavfilter 3. 50.100 / 3. 50.100 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > libpostproc 52. 2.100 / 52. 2.100 > > > > [mpegts @ 0x29eefc0] max_analyze_duration 5000000 reached at 5013333 > > > > microseconds > > > > Input #0, mpegts, from '/dev/video0': > > > > Duration: N/A, start: 0.387044, bitrate: 130 kb/s > > > > Program 1 > > > > Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), > > yuv420p, > > > > 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 > tbc > > > > Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 > Hz, > > > > stereo, fltp, 130 kb/s > > > > Output #0, mpegts, to '/home/jocho/repository/recorded_stream.ts': > > > > Metadata: > > > > encoder : Lavf55.1.100 > > > > Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 > > [SAR > > > > 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc > > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, > > > > 130 kb/s > > > > Stream mapping: > > > > Stream #0:0 -> #0:0 (copy) > > > > Stream #0:1 -> #0:1 (copy) > > > > Press [q] to stop, [?] for help > > > > frame=10219 fps= 62 q=-1.0 Lsize= 150029kB time=00:02:50.53 > > > > bitrate=7206.8kbits/s > > > > video:135224kB audio:2719kB subtitle:0 global headers:0kB muxing > > overhead > > > > 8.760707% > > > > $ > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > 2.1) bitrate 1M, "no starve", no -r, FPS stats => 30 FPS (below 29FPS > > > > which was the last stat output) > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts > -vcodec > > > > libx264 -b:v 1000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > > test.m3u8 > > > > -segment_list_flags live -segment_list_size 0 -y -segment_format > mpegts > > > > stream%05d.ts > > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > > FFmpeg > > > > developers > > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > > 4.6.3-1ubuntu5) > > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > > --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-x11grab > > > > --enable-libx264 --enable-nonfree --enable-version3 > > > > libavutil 52. 25.100 / 52. 25.100 > > > > libavcodec 55. 2.100 / 55. 2.100 > > > > libavformat 55. 1.100 / 55. 1.100 > > > > libavdevice 55. 0.100 / 55. 0.100 > > > > libavfilter 3. 50.100 / 3. 50.100 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > libpostproc 52. 2.100 / 52. 2.100 > > > > [mpegts @ 0x2c4e760] max_analyze_duration 5000000 reached at 5003333 > > > > microseconds > > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > > Program 1 > > > > Metadata: > > > > service_name : Service01 > > > > service_provider: FFmpeg > > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > > 59.94 > > > > tbc > > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 > Hz, > > > > stereo, fltp, 118 kb/s > > > > [libx264 @ 0x2c549a0] using SAR=1/1 > > > > [libx264 @ 0x2c549a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > > SSE4.1 > > > > Cache64 > > > > [libx264 @ 0x2c549a0] profile High, level 3.1 > > > > [segment @ 0x2c53f00] Codec for stream 0 does not use global headers > > but > > > > container format requires global headers > > > > [segment @ 0x2c53f00] Codec for stream 1 does not use global headers > > but > > > > container format requires global headers > > > > Output #0, segment, to 'stream%05d.ts': > > > > Metadata: > > > > encoder : Lavf55.1.100 > > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > > q=-1--1, 1000 kb/s, 90k tbn, 29.97 tbc > > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, > > > > 118 kb/s > > > > Stream mapping: > > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > > Stream #0:1 -> #0:1 (copy) > > > > Press [q] to stop, [?] for help > > > > frame= 1105 fps= 29 q=32766.0 Lsize=N/A time=00:00:36.84 bitrate=N/A > > > dup=1 > > > > drop=0 > > > > video:4368kB audio:588kB subtitle:0 global headers:0kB muxing > overhead > > > > -100.000434% > > > > [libx264 @ 0x2c549a0] frame I:22 Avg QP:20.97 size: 18575 > > > > [libx264 @ 0x2c549a0] frame P:474 Avg QP:22.31 size: 6433 > > > > [libx264 @ 0x2c549a0] frame B:609 Avg QP:23.91 size: 1666 > > > > [libx264 @ 0x2c549a0] consecutive B-frames: 14.7% 27.3% 24.7% 33.3% > > > > [libx264 @ 0x2c549a0] mb I I16..4: 41.2% 50.9% 8.0% > > > > [libx264 @ 0x2c549a0] mb P I16..4: 6.8% 6.8% 0.6% P16..4: 30.3% > > > 5.2% > > > > 3.1% 0.0% 0.0% skip:47.2% > > > > [libx264 @ 0x2c549a0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 23.2% > > > 0.9% > > > > 0.2% direct: 1.0% skip:74.2% L0:36.7% L1:61.4% BI: 1.9% > > > > [libx264 @ 0x2c549a0] final ratefactor: 22.56 > > > > [libx264 @ 0x2c549a0] 8x8 transform intra:48.6% inter:91.1% > > > > [libx264 @ 0x2c549a0] coded y,uvDC,uvAC intra: 30.9% 34.7% 7.6% > inter: > > > > 6.1% 9.0% 0.3% > > > > [libx264 @ 0x2c549a0] i16 v,h,dc,p: 36% 36% 4% 24% > > > > [libx264 @ 0x2c549a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 25% 3% > > 5% > > > > 6% 5% 5% 4% > > > > [libx264 @ 0x2c549a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 11% 3% > > 5% > > > > 6% 4% 4% 2% > > > > [libx264 @ 0x2c549a0] i8c dc,h,v,p: 65% 18% 14% 3% > > > > [libx264 @ 0x2c549a0] Weighted P-Frames: Y:1.9% UV:0.4% > > > > [libx264 @ 0x2c549a0] ref P L0: 66.4% 8.2% 18.6% 6.8% 0.0% > > > > [libx264 @ 0x2c549a0] ref B L0: 81.7% 16.0% 2.3% > > > > [libx264 @ 0x2c549a0] ref B L1: 94.4% 5.6% > > > > [libx264 @ 0x2c549a0] kb/s:970.43 > > > > > > > > > > > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > > > 2.2) bitrate 2M, "starve", no -r, FPS stats => 26-28 FPS (below 27FPS > > > > which was the last stat output, but alternating 26-28 throughout the > > > > trasnscoding) > > > > > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts > -vcodec > > > > libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > > test.m3u8 > > > > -segment_list_flags live -segment_list_size 0 -y -segment_format > mpegts > > > > stream%05d.ts > > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > > FFmpeg > > > > developers > > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > > 4.6.3-1ubuntu5) > > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > > --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-x11grab > > > > --enable-libx264 --enable-nonfree --enable-version3 > > > > libavutil 52. 25.100 / 52. 25.100 > > > > libavcodec 55. 2.100 / 55. 2.100 > > > > libavformat 55. 1.100 / 55. 1.100 > > > > libavdevice 55. 0.100 / 55. 0.100 > > > > libavfilter 3. 50.100 / 3. 50.100 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > libpostproc 52. 2.100 / 52. 2.100 > > > > [mpegts @ 0x1cb5760] max_analyze_duration 5000000 reached at 5003333 > > > > microseconds > > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > > Program 1 > > > > Metadata: > > > > service_name : Service01 > > > > service_provider: FFmpeg > > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > > 59.94 > > > > tbc > > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 > Hz, > > > > stereo, fltp, 118 kb/s > > > > [libx264 @ 0x1cbb9a0] using SAR=1/1 > > > > [libx264 @ 0x1cbb9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > > SSE4.1 > > > > Cache64 > > > > [libx264 @ 0x1cbb9a0] profile High, level 3.1 > > > > [segment @ 0x1cbaf00] Codec for stream 0 does not use global headers > > but > > > > container format requires global headers > > > > [segment @ 0x1cbaf00] Codec for stream 1 does not use global headers > > but > > > > container format requires global headers > > > > Output #0, segment, to 'stream%05d.ts': > > > > Metadata: > > > > encoder : Lavf55.1.100 > > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > > q=-1--1, 2000 kb/s, 90k tbn, 29.97 tbc > > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, > > > > 118 kb/s > > > > Stream mapping: > > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > > Stream #0:1 -> #0:1 (copy) > > > > Press [q] to stop, [?] for help > > > > frame= 649 fps= 27 q=32766.0 Lsize=N/A time=00:00:21.71 bitrate=N/A > > > dup=1 > > > > drop=0 > > > > video:5349kB audio:346kB subtitle:0 global headers:0kB muxing > overhead > > > > -100.000377% > > > > [libx264 @ 0x1cbb9a0] frame I:15 Avg QP:17.04 size: 27166 > > > > [libx264 @ 0x1cbb9a0] frame P:301 Avg QP:18.57 size: 12511 > > > > [libx264 @ 0x1cbb9a0] frame B:333 Avg QP:20.28 size: 3916 > > > > [libx264 @ 0x1cbb9a0] consecutive B-frames: 18.2% 30.8% 28.2% 22.8% > > > > [libx264 @ 0x1cbb9a0] mb I I16..4: 31.2% 53.9% 15.0% > > > > [libx264 @ 0x1cbb9a0] mb P I16..4: 6.9% 10.2% 1.7% P16..4: 36.1% > > > 11.1% > > > > 5.2% 0.0% 0.0% skip:28.7% > > > > [libx264 @ 0x1cbb9a0] mb B I16..4: 0.6% 0.4% 0.1% B16..8: 31.3% > > > 2.9% > > > > 0.5% direct: 2.6% skip:61.6% L0:37.8% L1:57.2% BI: 5.1% > > > > [libx264 @ 0x1cbb9a0] final ratefactor: 18.84 > > > > [libx264 @ 0x1cbb9a0] 8x8 transform intra:53.4% inter:86.7% > > > > [libx264 @ 0x1cbb9a0] coded y,uvDC,uvAC intra: 44.7% 47.5% 18.7% > inter: > > > > 13.8% 13.3% 1.2% > > > > [libx264 @ 0x1cbb9a0] i16 v,h,dc,p: 29% 35% 4% 31% > > > > [libx264 @ 0x1cbb9a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 19% 3% > > 5% > > > > 6% 5% 5% 4% > > > > [libx264 @ 0x1cbb9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 35% 12% 2% > > 4% > > > > 4% 3% 3% 2% > > > > [libx264 @ 0x1cbb9a0] i8c dc,h,v,p: 59% 20% 17% 3% > > > > [libx264 @ 0x1cbb9a0] Weighted P-Frames: Y:2.7% UV:0.7% > > > > [libx264 @ 0x1cbb9a0] ref P L0: 65.2% 7.0% 20.1% 7.6% 0.1% > > > > [libx264 @ 0x1cbb9a0] ref B L0: 79.6% 18.4% 1.9% > > > > [libx264 @ 0x1cbb9a0] ref B L1: 93.8% 6.2% > > > > [libx264 @ 0x1cbb9a0] kb/s:2023.47 > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > > > 2.3) bitrate 4M, "starve", no -r, FPS stats => 22-24 FPS (below 21FPS > > > > which was the last stat output, but alternating 21-24 throughout the > > > > transcoding) > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts > -vcodec > > > > libx264 -b:v 4000k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > > test.m3u8 > > > > -segment_list_flags live -segment_list_size 0 -y -segment_format > mpegts > > > > stream%05d.ts > > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > > FFmpeg > > > > developers > > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > > 4.6.3-1ubuntu5) > > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > > --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-x11grab > > > > --enable-libx264 --enable-nonfree --enable-version3 > > > > libavutil 52. 25.100 / 52. 25.100 > > > > libavcodec 55. 2.100 / 55. 2.100 > > > > libavformat 55. 1.100 / 55. 1.100 > > > > libavdevice 55. 0.100 / 55. 0.100 > > > > libavfilter 3. 50.100 / 3. 50.100 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > libpostproc 52. 2.100 / 52. 2.100 > > > > [mpegts @ 0x301a760] max_analyze_duration 5000000 reached at 5003333 > > > > microseconds > > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > > Program 1 > > > > Metadata: > > > > service_name : Service01 > > > > service_provider: FFmpeg > > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > > 59.94 > > > > tbc > > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 > Hz, > > > > stereo, fltp, 118 kb/s > > > > [libx264 @ 0x30209a0] using SAR=1/1 > > > > [libx264 @ 0x30209a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > > SSE4.1 > > > > Cache64 > > > > [libx264 @ 0x30209a0] profile High, level 3.1 > > > > [segment @ 0x301ff00] Codec for stream 0 does not use global headers > > but > > > > container format requires global headers > > > > [segment @ 0x301ff00] Codec for stream 1 does not use global headers > > but > > > > container format requires global headers > > > > Output #0, segment, to 'stream%05d.ts': > > > > Metadata: > > > > encoder : Lavf55.1.100 > > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > > q=-1--1, 4000 kb/s, 90k tbn, 29.97 tbc > > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, > > > > 118 kb/s > > > > Stream mapping: > > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > > Stream #0:1 -> #0:1 (copy) > > > > Press [q] to stop, [?] for help > > > > frame= 484 fps= 21 q=32766.0 Lsize=N/A time=00:00:16.10 bitrate=N/A > > > dup=1 > > > > drop=0 > > > > video:8041kB audio:257kB subtitle:0 global headers:0kB muxing > overhead > > > > -100.000259% > > > > [libx264 @ 0x30209a0] frame I:10 Avg QP:12.15 size: 45657 > > > > [libx264 @ 0x30209a0] frame P:231 Avg QP:13.81 size: 24621 > > > > [libx264 @ 0x30209a0] frame B:243 Avg QP:15.47 size: 8599 > > > > [libx264 @ 0x30209a0] consecutive B-frames: 18.8% 33.1% 29.1% 19.0% > > > > [libx264 @ 0x30209a0] mb I I16..4: 24.8% 58.3% 16.9% > > > > [libx264 @ 0x30209a0] mb P I16..4: 6.2% 15.3% 3.5% P16..4: 31.4% > > > 19.2% > > > > 9.5% 0.0% 0.0% skip:14.9% > > > > [libx264 @ 0x30209a0] mb B I16..4: 0.8% 0.7% 0.2% B16..8: 32.3% > > > 9.2% > > > > 2.2% direct: 7.5% skip:47.2% L0:39.1% L1:49.7% BI:11.3% > > > > [libx264 @ 0x30209a0] final ratefactor: 14.08 > > > > [libx264 @ 0x30209a0] 8x8 transform intra:59.8% inter:71.0% > > > > [libx264 @ 0x30209a0] coded y,uvDC,uvAC intra: 65.1% 63.2% 43.7% > inter: > > > > 26.2% 18.8% 3.4% > > > > [libx264 @ 0x30209a0] i16 v,h,dc,p: 26% 30% 5% 39% > > > > [libx264 @ 0x30209a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 23% 18% 3% > > 4% > > > > 6% 4% 5% 4% > > > > [libx264 @ 0x30209a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 33% 12% 2% > > 4% > > > > 4% 3% 3% 2% > > > > [libx264 @ 0x30209a0] i8c dc,h,v,p: 56% 20% 19% 4% > > > > [libx264 @ 0x30209a0] Weighted P-Frames: Y:2.6% UV:0.9% > > > > [libx264 @ 0x30209a0] ref P L0: 65.6% 5.7% 20.9% 7.7% 0.1% > > > > [libx264 @ 0x30209a0] ref B L0: 80.2% 18.3% 1.5% > > > > [libx264 @ 0x30209a0] ref B L1: 93.7% 6.3% > > > > [libx264 @ 0x30209a0] kb/s:4078.74 > > > > > > > > > > > > > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > > > 2.4) bitrate 2M, "starve", -r 30 , FPS stats => 26-28 FPS (below > 28FPS > > > > which was the last stat output, but alternating 26-28 throughout the > > > > transcoding) > > > > OBS, same result as 2.2 without -r 30 > > > > > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 30 > > > > -vcodec libx264 -b:v 2000k -acodec copy -s 1024x768 -aspect 4:3 > -flags > > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > > test.m3u8 > > > > -segment_list_flags live -segment_list_size 0 -y -segment_format > mpegts > > > > stream%05d.ts > > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > > FFmpeg > > > > developers > > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > > 4.6.3-1ubuntu5) > > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > > --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-x11grab > > > > --enable-libx264 --enable-nonfree --enable-version3 > > > > libavutil 52. 25.100 / 52. 25.100 > > > > libavcodec 55. 2.100 / 55. 2.100 > > > > libavformat 55. 1.100 / 55. 1.100 > > > > libavdevice 55. 0.100 / 55. 0.100 > > > > libavfilter 3. 50.100 / 3. 50.100 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > libpostproc 52. 2.100 / 52. 2.100 > > > > [mpegts @ 0x37db780] max_analyze_duration 5000000 reached at 5003333 > > > > microseconds > > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > > Program 1 > > > > Metadata: > > > > service_name : Service01 > > > > service_provider: FFmpeg > > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > > 59.94 > > > > tbc > > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 > Hz, > > > > stereo, fltp, 118 kb/s > > > > [libx264 @ 0x37e1d20] using SAR=1/1 > > > > [libx264 @ 0x37e1d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 > > SSE4.1 > > > > Cache64 > > > > [libx264 @ 0x37e1d20] profile High, level 3.1 > > > > [segment @ 0x37e1060] Codec for stream 0 does not use global headers > > but > > > > container format requires global headers > > > > [segment @ 0x37e1060] Codec for stream 1 does not use global headers > > but > > > > container format requires global headers > > > > Output #0, segment, to 'stream%05d.ts': > > > > Metadata: > > > > encoder : Lavf55.1.100 > > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > > q=-1--1, 2000 kb/s, 90k tbn, 30 tbc > > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, > > > > 118 kb/s > > > > Stream mapping: > > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > > Stream #0:1 -> #0:1 (copy) > > > > Press [q] to stop, [?] for help > > > > frame= 851 fps= 28 q=32766.0 Lsize=N/A time=00:00:28.30 bitrate=N/A > > > dup=2 > > > > drop=0 > > > > video:6738kB audio:451kB subtitle:0 global headers:0kB muxing > overhead > > > > -100.000299% > > > > [libx264 @ 0x37e1d20] frame I:18 Avg QP:16.76 size: 30818 > > > > [libx264 @ 0x37e1d20] frame P:370 Avg QP:18.19 size: 12310 > > > > [libx264 @ 0x37e1d20] frame B:463 Avg QP:19.80 size: 3867 > > > > [libx264 @ 0x37e1d20] consecutive B-frames: 15.5% 27.0% 26.4% 31.0% > > > > [libx264 @ 0x37e1d20] mb I I16..4: 28.9% 55.1% 16.0% > > > > [libx264 @ 0x37e1d20] mb P I16..4: 6.6% 9.3% 1.6% P16..4: 36.1% > > > 11.1% > > > > 5.5% 0.0% 0.0% skip:29.9% > > > > [libx264 @ 0x37e1d20] mb B I16..4: 0.6% 0.5% 0.1% B16..8: 30.8% > > > 2.7% > > > > 0.5% direct: 2.7% skip:62.2% L0:38.6% L1:56.9% BI: 4.5% > > > > [libx264 @ 0x37e1d20] final ratefactor: 18.40 > > > > [libx264 @ 0x37e1d20] 8x8 transform intra:53.0% inter:86.6% > > > > [libx264 @ 0x37e1d20] coded y,uvDC,uvAC intra: 44.7% 48.5% 20.8% > inter: > > > > 13.2% 13.7% 1.3% > > > > [libx264 @ 0x37e1d20] i16 v,h,dc,p: 31% 36% 5% 28% > > > > [libx264 @ 0x37e1d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 22% 20% 3% > > 5% > > > > 6% 5% 5% 4% > > > > [libx264 @ 0x37e1d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 34% 13% 3% > > 4% > > > > 4% 4% 3% 2% > > > > [libx264 @ 0x37e1d20] i8c dc,h,v,p: 59% 20% 18% 3% > > > > [libx264 @ 0x37e1d20] Weighted P-Frames: Y:2.2% UV:0.5% > > > > [libx264 @ 0x37e1d20] ref P L0: 65.1% 6.6% 20.4% 7.8% 0.0% > > > > [libx264 @ 0x37e1d20] ref B L0: 79.4% 18.3% 2.3% > > > > [libx264 @ 0x37e1d20] ref B L1: 93.2% 6.8% > > > > [libx264 @ 0x37e1d20] kb/s:1946.00 > > > > > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 > > > > > > > > 2.5) bitrate 512k, "no starve", -r 32 , FPS stats => 32 FPS (below 31 > > FPS > > > > which was the last stat output, but after initially a few around 29, > it > > > > stabilized to 32 fairly quickly. > > > > > > > > It shows that FPS can be forced. > > > > > > > > > > > > $ /usr/local/bin/ffmpeg -re -i ~/repository/recorded_stream.ts -r 32 > > > > -vcodec libx264 -b:v 512k -acodec copy -s 1024x768 -aspect 4:3 -flags > > > > -global_header -map 0 -f segment -segment_time 10 -segment_list > > test.m3u8 > > > > -segment_list_flags live -segment_list_size 0 -y -segment_format > mpegts > > > > stream%05d.ts > > > > ffmpeg version git-2013-04-10-2383068 Copyright (c) 2000-2013 the > > FFmpeg > > > > developers > > > > built on Apr 10 2013 00:29:02 with gcc 4.6 (Ubuntu/Linaro > > > 4.6.3-1ubuntu5) > > > > configuration: --enable-gpl --enable-libass --enable-libfaac > > > > --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb --enable-libspeex --enable-librtmp > > > > --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-x11grab > > > > --enable-libx264 --enable-nonfree --enable-version3 > > > > libavutil 52. 25.100 / 52. 25.100 > > > > libavcodec 55. 2.100 / 55. 2.100 > > > > libavformat 55. 1.100 / 55. 1.100 > > > > libavdevice 55. 0.100 / 55. 0.100 > > > > libavfilter 3. 50.100 / 3. 50.100 > > > > libswscale 2. 2.100 / 2. 2.100 > > > > libswresample 0. 17.102 / 0. 17.102 > > > > libpostproc 52. 2.100 / 52. 2.100 > > > > [mpegts @ 0x1dda780] max_analyze_duration 5000000 reached at 5003333 > > > > microseconds > > > > Input #0, mpegts, from '/home/jocho/repository/recorded_stream.ts': > > > > Duration: 00:02:50.60, start: 1.400000, bitrate: 7204 kb/s > > > > Program 1 > > > > Metadata: > > > > service_name : Service01 > > > > service_provider: FFmpeg > > > > Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > > > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, > > > 59.94 > > > > tbc > > > > Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 > Hz, > > > > stereo, fltp, 118 kb/s > > > > [libx264 @ 0x1de0d20] using SAR=1/1 > > > > [libx264 @ 0x1de0d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 > > SSE4.1 > > > > Cache64 > > > > [libx264 @ 0x1de0d20] profile High, level 3.1 > > > > [segment @ 0x1de0060] Codec for stream 0 does not use global headers > > but > > > > container format requires global headers > > > > [segment @ 0x1de0060] Codec for stream 1 does not use global headers > > but > > > > container format requires global headers > > > > Output #0, segment, to 'stream%05d.ts': > > > > Metadata: > > > > encoder : Lavf55.1.100 > > > > Stream #0:0: Video: h264, yuv420p, 1024x768 [SAR 1:1 DAR 4:3], > > > > q=-1--1, 512 kb/s, 90k tbn, 32 tbc > > > > Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, > stereo, > > > > 118 kb/s > > > > Stream mapping: > > > > Stream #0:0 -> #0:0 (h264 -> libx264) > > > > Stream #0:1 -> #0:1 (copy) > > > > Press [q] to stop, [?] for help > > > > frame= 914 fps= 31 q=32766.0 Lsize=N/A time=00:00:28.60 bitrate=N/A > > > > dup=59 drop=0 > > > > video:1654kB audio:456kB subtitle:0 global headers:0kB muxing > overhead > > > > -100.001018% > > > > [libx264 @ 0x1de0d20] frame I:18 Avg QP:27.26 size: 10046 > > > > [libx264 @ 0x1de0d20] frame P:407 Avg QP:29.04 size: 2918 > > > > [libx264 @ 0x1de0d20] frame B:489 Avg QP:31.59 size: 665 > > > > [libx264 @ 0x1de0d20] consecutive B-frames: 18.2% 24.3% 21.7% 35.9% > > > > [libx264 @ 0x1de0d20] mb I I16..4: 53.8% 42.9% 3.3% > > > > [libx264 @ 0x1de0d20] mb P I16..4: 7.1% 4.7% 0.3% P16..4: 18.2% > > > 2.0% > > > > 0.8% 0.0% 0.0% skip:66.8% > > > > [libx264 @ 0x1de0d20] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 13.5% > > > 0.4% > > > > 0.1% direct: 0.2% skip:85.5% L0:30.1% L1:68.9% BI: 1.1% > > > > [libx264 @ 0x1de0d20] final ratefactor: 28.13 > > > > [libx264 @ 0x1de0d20] 8x8 transform intra:40.7% inter:92.4% > > > > [libx264 @ 0x1de0d20] coded y,uvDC,uvAC intra: 19.6% 19.0% 1.5% > inter: > > > > 2.0% 1.9% 0.0% > > > > [libx264 @ 0x1de0d20] i16 v,h,dc,p: 43% 33% 5% 19% > > > > [libx264 @ 0x1de0d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 26% 3% > > 4% > > > > 5% 4% 5% 3% > > > > [libx264 @ 0x1de0d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 27% 11% 3% > > 4% > > > > 6% 4% 5% 2% > > > > [libx264 @ 0x1de0d20] i8c dc,h,v,p: 80% 11% 9% 1% > > > > [libx264 @ 0x1de0d20] Weighted P-Frames: Y:2.0% UV:0.5% > > > > [libx264 @ 0x1de0d20] ref P L0: 66.6% 11.2% 16.4% 5.8% 0.0% > > > > [libx264 @ 0x1de0d20] ref B L0: 85.0% 12.6% 2.4% > > > > [libx264 @ 0x1de0d20] ref B L1: 96.2% 3.8% > > > > [libx264 @ 0x1de0d20] kb/s:474.38 > > > > > > > > !!!!!!! > > > > > > > > Would truly appreciate some help to solve the starving file segments > > > since > > > > is significantly impacts the QOE for the end user. > > > > best regard > > > > uffe > > > > > > > > > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tdl at kickitwith.com Wed May 29 17:14:40 2013 From: tdl at kickitwith.com (iTechGeek12) Date: Wed, 29 May 2013 08:14:40 -0700 (PDT) Subject: [FFmpeg-user] transcoding a live stream into an rtmp stream which uses h264 and aac codec Message-ID: <1369840479992-4659382.post@n4.nabble.com> Basically we are transcoding a live stream into an rtmp stream which uses h264 and aac codec. It works fine for the first 13 minutes but after that it crashes and automatically closes the conversion. After the research, it seems like it is a duplexing issue.Here is the complete dumped error is attached to this post, and also a link to pastbin: http://pastebin.com/3WHGcfdj 3WHGcfdj.txt Please have anyone here experienced this type of error ? That can actually offer us some sort of advice in what to do, to solve this issue... ----- We like to Talk about Cyber Security & Web Programming With everyone interested.. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/transcoding-a-live-stream-into-an-rtmp-stream-which-uses-h264-and-aac-codec-tp4659382.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Wed May 29 19:07:51 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 May 2013 17:07:51 +0000 (UTC) Subject: [FFmpeg-user] transcoding a live stream into an rtmp stream which uses h264 and aac codec References: <1369840479992-4659382.post@n4.nabble.com> Message-ID: iTechGeek12 kickitwith.com> writes: > Basically we are transcoding a live stream > into an rtmp stream which uses h264 and aac > codec. It works fine for the first 13 minutes > but after that it crashes Command line, complete, uncut console output and backtrace etc. missing, please read http://ffmpeg.org/bugreports.html Carl Eugen From honestgold at gmail.com Wed May 29 20:14:56 2013 From: honestgold at gmail.com (Lei Chen) Date: Wed, 29 May 2013 14:14:56 -0400 Subject: [FFmpeg-user] problem with subtitle fonts. Message-ID: I want to burn subtitle with chinese fonts and it is using the arial, getting ascii binary instead of chinese fonts, How can I tell it to use some other fonts? I am running in Freebsd or Linux. Getting the error: [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) ffmpeg1 -i Bluray.720p.AC3.x264-CHD.mkv -sameq -vcodec libx264 -threads 26 -y -vf ass=a.ass fare.mp4 ffmpeg version 1.0.5 Copyright (c) 2000-2012 the FFmpeg developers built on May 28 2013 19:38:07 with gcc 4.2.2 (GCC) 20070831 prerelease [FreeBSD] configuration: --enable-x11grab --prefix=/usr/local --mandir=/usr/local/man --incdir=/usr/local/include/ffmpeg1 --libdir=/usr/local/lib/ffmpeg1 --shlibdir=/usr/local/lib/ffmpeg1 --datadir=/usr/local/share/ffmpeg1 --build-suffix=1 --progs-suffix=1 --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-libcdio --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-libbluray --enable-libv4l2 --enable-libmodplug --enable-openal --enable-libopencv --enable-libopenjpeg --disable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --e libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, matroska,webm, from 'Bluray.720p.AC3.x264-CHD.mkv': Metadata: title : ???????????? by renqian creation_time : 2011-10-06 14:49:26 Duration: 02:44:25.66, start: 0.000000, bitrate: 5689 kb/s Chapter #0.0: start 0.000000, end 597.480000 Metadata: title : Chapter 1 Chapter #0.1: start 597.480000, end 1106.200000 Metadata: title : Chapter 2 Chapter #0.2: start 1106.200000, end 1470.640000 Metadata: title : Chapter 3 Chapter #0.3: start 1470.640000, end 1829.279000 Metadata: title : Chapter 4 Chapter #0.4: start 1829.279000, end 2198.800000 Metadata: title : Chapter 5 Chapter #0.5: start 2198.800000, end 2467.599000 Metadata: title : Chapter 6 Chapter #0.6: start 2467.599000, end 2839.199000 Metadata: title : Chapter 7 Chapter #0.7: start 2839.199000, end 3106.079000 Metadata: title : Chapter 8 Chapter #0.8: start 3106.079000, end 3445.840000 Metadata: title : Chapter 9 Chapter #0.9: start 3445.840000, end 3725.400000 Metadata: title : Chapter 10 Chapter #0.10: start 3725.400000, end 4218.560000 Metadata: title : Chapter 11 Chapter #0.11: start 4218.560000, end 4674.239000 Metadata: title : Chapter 12 Chapter #0.12: start 4674.239000, end 5362.319000 Metadata: title : Chapter 13 Chapter #0.13: start 5362.319000, end 5869.920000 Metadata: title : Chapter 14 Chapter #0.14: start 5869.920000, end 6268.600000 Metadata: title : Chapter 15 Chapter #0.15: start 6268.600000, end 6561.399000 Metadata: title : Chapter 16 Chapter #0.16: start 6561.399000, end 6872.680000 Metadata: title : Chapter 17 Chapter #0.17: start 6872.680000, end 7418.680000 Metadata: title : Chapter 18 Chapter #0.18: start 7418.680000, end 7808.000000 Metadata: title : Chapter 19 Chapter #0.19: start 7808.000000, end 8314.479000 Metadata: title : Chapter 20 Chapter #0.20: start 8314.479000, end 8945.920000 Metadata: title : Chapter 23 Chapter #0.21: start 8945.920000, end 9349.840000 Metadata: title : Chapter 24 Chapter #0.22: start 9349.840000, end 9738.239000 Metadata: title : Chapter 25 Stream #0:0(chi): Video: h264 (High), yuv420p, 1280x692 [SAR 1:1 DAR 320:173], 25 fps, 25 tbr, 1k tbn, 50 tbc (default) Stream #0:1(chi): Audio: ac3, 48000 Hz, stereo, s16, 640 kb/s (default) [Parsed_ass_0 @ 0x80ae2e7a0] Added subtitle file: 'a.ass' (2 styles, 1350 events) [libx264 @ 0x80ae63c20] Application has requested 26 threads. Using a thread count greater than 16 is not recommended. [libx264 @ 0x80ae63c20] using SAR=1/1 [libx264 @ 0x80ae63c20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x80ae63c20] profile High, level 3.1 [libx264 @ 0x80ae63c20] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=26 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'fare.mp4': Metadata: title : ???????????? by renqian encoder : Lavf54.29.104 Chapter #0.0: start 0.000000, end 597.480000 Metadata: title : Chapter 1 Chapter #0.1: start 597.480000, end 1106.200000 Metadata: title : Chapter 2 Chapter #0.2: start 1106.200000, end 1470.640000 Metadata: title : Chapter 3 Chapter #0.3: start 1470.640000, end 1829.279000 Metadata: title : Chapter 4 Chapter #0.4: start 1829.279000, end 2198.800000 Metadata: title : Chapter 5 Chapter #0.5: start 2198.800000, end 2467.599000 Metadata: title : Chapter 6 Chapter #0.6: start 2467.599000, end 2839.199000 Metadata: title : Chapter 7 Chapter #0.7: start 2839.199000, end 3106.079000 Metadata: title : Chapter 8 Chapter #0.8: start 3106.079000, end 3445.840000 Metadata: title : Chapter 9 Chapter #0.9: start 3445.840000, end 3725.400000 Metadata: title : Chapter 10 Chapter #0.10: start 3725.400000, end 4218.560000 Metadata: title : Chapter 11 Chapter #0.11: start 4218.560000, end 4674.239000 Metadata: title : Chapter 12 Chapter #0.12: start 4674.239000, end 5362.319000 Metadata: title : Chapter 13 Chapter #0.13: start 5362.319000, end 5869.920000 Metadata: title : Chapter 14 Chapter #0.14: start 5869.920000, end 6268.600000 Metadata: title : Chapter 15 Chapter #0.15: start 6268.600000, end 6561.399000 Metadata: title : Chapter 16 Chapter #0.16: start 6561.399000, end 6872.680000 Metadata: title : Chapter 17 Chapter #0.17: start 6872.680000, end 7418.680000 Metadata: title : Chapter 18 Chapter #0.18: start 7418.680000, end 7808.000000 Metadata: title : Chapter 19 Chapter #0.19: start 7808.000000, end 8314.479000 Metadata: title : Chapter 20 Chapter #0.20: start 8314.479000, end 8945.920000 Metadata: title : Chapter 23 Chapter #0.21: start 8945.920000, end 9349.840000 Metadata: title : Chapter 24 Chapter #0.22: start 9349.840000, end 9738.239000 Metadata: title : Chapter 25 Stream #0:0(chi): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x692 [SAR 1:1 DAR 320:173], q=-1--1, 25 tbn, 25 tbc (default) Stream #0:1(chi): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (ac3 -> libfaac) Press [q] to stop, [?] for help [Parsed_ass_0 @ 0x80ae2e7a0] Neither PlayResX nor PlayResY defined. Assuming 384x288 fontconfig: Selected font is not the requested one: 'AR PL KaitiM GB' != 'Arial's [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0xB8 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] fontconfig: Selected font is not the requested one: 'Bitstream Vera Sans' != 'Arial' [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0)te=1219.0kbits/s [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font for (Arial, 80, 0) Glyph 0x53A not found, selecting one more font for (Arial, 80, 0)te=1204.4kbits/s [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) Glyph 0x53A not found, selecting one more font for (Arial, 80, 0)te=1182.4kbits/s [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font for (Arial, 80, 0) frame= 1460 fps= 74 q=-1.0 Lsize= 8781kB time=00:00:59.39 bitrate=1211.2kbits/s video:8410kB audio:330kB subtitle:0 global headers:0kB muxing overhead 0.472094% [libx264 @ 0x80ae63c20] frame I:25 Avg QP:18.78 size: 22697 [libx264 @ 0x80ae63c20] frame P:1024 Avg QP:22.67 size: 6808 [libx264 @ 0x80ae63c20] frame B:411 Avg QP:23.42 size: 2610 [libx264 @ 0x80ae63c20] consecutive B-frames: 44.3% 54.1% 1.0% 0.5% [libx264 @ 0x80ae63c20] mb I I16..4: 20.5% 72.1% 7.4% [libx264 @ 0x80ae63c20] mb P I16..4: 1.3% 3.2% 0.1% P16..4: 41.3% 5.2% 4.5% 0.0% 0.0% skip:44.4% [libx264 @ 0x80ae63c20] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 44.1% 0.8% 0.1% direct: 0.8% skip:54.2% L0:42.2% L1:56.7% BI: 1.1% [libx264 @ 0x80ae63c20] 8x8 transform intra:70.0% inter:89.8% [libx264 @ 0x80ae63c20] coded y,uvDC,uvAC intra: 40.8% 43.9% 5.3% inter: 11.9% 17.4% 0.1% [libx264 @ 0x80ae63c20] i16 v,h,dc,p: 50% 16% 7% 27% [libx264 @ 0x80ae63c20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 12% 42% 4% 5% 6% 5% 4% 4% [libx264 @ 0x80ae63c20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 15% 27% 5% 6% 5% 4% 3% 2% [libx264 @ 0x80ae63c20] i8c dc,h,v,p: 64% 18% 17% 2% [libx264 @ 0x80ae63c20] Weighted P-Frames: Y:8.5% UV:2.1% [libx264 @ 0x80ae63c20] ref P L0: 61.3% 11.0% 17.2% 9.6% 0.8% [libx264 @ 0x80ae63c20] ref B L0: 79.2% 20.7% 0.1% [libx264 @ 0x80ae63c20] ref B L1: 99.9% 0.1% [libx264 @ 0x80ae63c20] kb/s:1179.61 Received signal 2: terminating. From andrey.krieger.utkin at gmail.com Wed May 29 20:53:27 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Wed, 29 May 2013 21:53:27 +0300 Subject: [FFmpeg-user] Time shift In-Reply-To: References: <000001ce5a3e$3159bd40$940d37c0$@com> Message-ID: 2013/5/28 Tom Evans : > On Mon, May 27, 2013 at 7:04 AM, Andrey Utkin > wrote: >> I think "time shift" means getting to future or past, right? >> FFmpeg cannot take you to furure or past, unfortunately. > > This is not completely true, every time I sit down to play with > FFmpeg, I look up at the clock and find I have been transported in to > the future, usually by at least several hours. :) But regarding the issue, was my advice helpful? -- Andrey Utkin From mark at hahnca.com Wed May 29 20:54:41 2013 From: mark at hahnca.com (Mark Hahn) Date: Wed, 29 May 2013 11:54:41 -0700 Subject: [FFmpeg-user] iphone auto-rotation? Message-ID: I run a service that publishes videos. Amazon does the actual conversion to h264 but I'm using ffmpeg to capture frames to make thumbnails. I have a problem now where iPhone 4 videos have a weird rotation that amazon handles properly but ffmpeg is ignoring. So i'm getting rotated thumbnails. I checked the file with mediainfo and the metadata says there is a 90 degree rotation. What can I do to get ffmpeg to auto-rotate using this information? My version info is ... > ffmpeg -version ffmpeg version git-2013-01-17-b454c64 built on Jan 17 2013 05:46:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 15.100 / 52. 15.100 libavcodec 54. 89.100 / 54. 89.100 libavformat 54. 60.101 / 54. 60.101 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Any help would be greatly appreciated ... From anatol2002 at gmail.com Wed May 29 21:26:11 2013 From: anatol2002 at gmail.com (Anatol) Date: Wed, 29 May 2013 22:26:11 +0300 Subject: [FFmpeg-user] iphone auto-rotation? In-Reply-To: References: Message-ID: if($vid->_rotation==180) $fltStr.= " -vf vflip,hflip"; else if($vid->_rotation==90) $fltStr.= " -vf transpose=1"; else if($vid->_rotation==270 || $vid->_rotation==-90) $fltStr.=" -vf transpose=2"; On Wed, May 29, 2013 at 9:54 PM, Mark Hahn wrote: > I run a service that publishes videos. Amazon does the actual conversion > to h264 but I'm using ffmpeg to capture frames to make thumbnails. I have > a problem now where iPhone 4 videos have a weird rotation that amazon > handles properly but ffmpeg is ignoring. So i'm getting rotated > thumbnails. > > I checked the file with mediainfo and the metadata says there is a 90 > degree rotation. What can I do to get ffmpeg to auto-rotate using this > information? > > My version info is ... > > > ffmpeg -version > > ffmpeg version git-2013-01-17-b454c64 > built on Jan 17 2013 05:46:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libass --enable-libfaac > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx > --enable-libx264 --enable-nonfree --enable-version3 > > libavutil 52. 15.100 / 52. 15.100 > libavcodec 54. 89.100 / 54. 89.100 > libavformat 54. 60.101 / 54. 60.101 > libavdevice 54. 3.102 / 54. 3.102 > libavfilter 3. 32.100 / 3. 32.100 > libswscale 2. 1.103 / 2. 1.103 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > > Any help would be greatly appreciated ... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tstrike34 at gmail.com Wed May 29 22:44:14 2013 From: tstrike34 at gmail.com (JT Edwards) Date: Wed, 29 May 2013 15:44:14 -0500 Subject: [FFmpeg-user] Newbie to FFMPEG-User: rtmpdump Message-ID: Hi folks, I am trying to compile rtmpdump with the latest FFMPEG from git. I am getting compilation errors regard libraries linking. Here is my version: ffmpeg version N-52953-g50e6672 Copyright (c) 2000-2013 the FFmpeg developers built on May 10 2013 14:16:15 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54) configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-gpl --enable-postproc --enable-nonfree libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Here is the errors I am getting: LD ffmpeg_g /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read_seek': /root/src/ffmpeg/libavformat/librtmp.c:148: undefined reference to `RTMP_SendSeek' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read_pause': /root/src/ffmpeg/libavformat/librtmp.c:130: undefined reference to `RTMP_Pause' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_close': /root/src/ffmpeg/libavformat/librtmp.c:52: undefined reference to `RTMP_Close' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_open': /root/src/ffmpeg/libavformat/librtmp.c:87: undefined reference to `RTMP_LogSetLevel' /root/src/ffmpeg/libavformat/librtmp.c:88: undefined reference to `RTMP_LogSetCallback' /root/src/ffmpeg/libavformat/librtmp.c:90: undefined reference to `RTMP_Init' /root/src/ffmpeg/libavformat/librtmp.c:91: undefined reference to `RTMP_SetupURL' /root/src/ffmpeg/libavformat/librtmp.c:99: undefined reference to `RTMP_Connect' /root/src/ffmpeg/libavformat/librtmp.c:99: undefined reference to `RTMP_ConnectStream' /root/src/ffmpeg/libavformat/librtmp.c:97: undefined reference to `RTMP_EnableWrite' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_get_file_handle': /root/src/ffmpeg/libavformat/librtmp.c:157: undefined reference to `RTMP_Socket' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_write': /root/src/ffmpeg/libavformat/librtmp.c:116: undefined reference to `RTMP_Write' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read': /root/src/ffmpeg/libavformat/librtmp.c:123: undefined reference to `RTMP_Read' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 What am I missing? Thanks in advance. From mazen at pnettv.com Wed May 29 22:49:16 2013 From: mazen at pnettv.com (Mazen) Date: Wed, 29 May 2013 22:49:16 +0200 Subject: [FFmpeg-user] Time shift In-Reply-To: References: <000001ce5a3e$3159bd40$940d37c0$@com> Message-ID: <000601ce5cad$fccaa680$f65ff380$@com> Thanks for the reply I have this thread http://web.archiveorange.com/archive/v/5ib7t5z2wyI44VR2d7dN Do you think it really works for live streaming to have a time shift? Thanks again -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Andrey Utkin Sent: Wednesday, May 29, 2013 8:53 PM To: FFmpeg user questions Subject: Re: [FFmpeg-user] Time shift 2013/5/28 Tom Evans : > On Mon, May 27, 2013 at 7:04 AM, Andrey Utkin > wrote: >> I think "time shift" means getting to future or past, right? >> FFmpeg cannot take you to furure or past, unfortunately. > > This is not completely true, every time I sit down to play with > FFmpeg, I look up at the clock and find I have been transported in to > the future, usually by at least several hours. :) But regarding the issue, was my advice helpful? -- Andrey Utkin _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nitinsagar22 at gmail.com Wed May 29 08:03:23 2013 From: nitinsagar22 at gmail.com (NITIN SAGAR) Date: Wed, 29 May 2013 11:33:23 +0530 Subject: [FFmpeg-user] VP8 encode need help! Message-ID: Hi all, I am using the following command: ffmpeg -i -c:v libvpx -b:v 5M -slices 1 -r 30 -s 1920x1080 -c:a libvorbis -ac 2 -b:a 128K -ar 48K -t 60 out.webm I have encoded 15 and 60 fps content as well by changing the values on -r Now, when i check the generated output files, when i divide the number of frames of the generated clip and divide with clip duration. It still shows that the clip is 23.98 fps which is equivalent to that of the source content. Can anyone please help me on this. Thanks Nitin From lou at lrcd.com Thu May 30 00:15:18 2013 From: lou at lrcd.com (Lou) Date: Wed, 29 May 2013 14:15:18 -0800 Subject: [FFmpeg-user] VP8 encode need help! In-Reply-To: References: Message-ID: <20130529141518.36f796f1@lrcd.com> On Wed, 29 May 2013 11:33:23 +0530 NITIN SAGAR wrote: > Hi all, > > I am using the following command: > ffmpeg -i -c:v libvpx -b:v 5M -slices 1 -r 30 -s 1920x1080 > -c:a libvorbis -ac 2 -b:a 128K -ar 48K -t 60 out.webm > > I have encoded 15 and 60 fps content as well by changing the values on -r > > Now, when i check the generated output files, when i divide the number of > frames of the generated clip and divide with clip duration. It still shows > that the clip is 23.98 fps which is equivalent to that of the source > content. > > Can anyone please help me on this. Please show the complete ffmpeg console output that results from your ffmpeg command. From mark at hahnca.com Thu May 30 00:27:48 2013 From: mark at hahnca.com (Mark Hahn) Date: Wed, 29 May 2013 15:27:48 -0700 Subject: [FFmpeg-user] iphone auto-rotation? In-Reply-To: References: Message-ID: Awesome. Thanks. I don't have PHP. Is there any other language I could use that supports ffmpeg? Something that I can use in Linux? I have a node module running ffmpeg (fffmpeg) but it only talks to the ffmpeg command-line. Perl, Python, bash, java, ruby, javascript? I would hate to install and support PHP for just this. From tstrike34 at gmail.com Thu May 30 00:50:25 2013 From: tstrike34 at gmail.com (JT Edwards) Date: Wed, 29 May 2013 17:50:25 -0500 Subject: [FFmpeg-user] rtmpdump Message-ID: Hi folks, I am trying to compile rtmpdump with the latest FFMPEG from git. I am getting compilation errors regard libraries linking. Here is my version: ffmpeg version N-52953-g50e6672 Copyright (c) 2000-2013 the FFmpeg developers built on May 10 2013 14:16:15 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54) configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-gpl --enable-postproc --enable-nonfree libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Here is the errors I am getting: LD ffmpeg_g /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read_seek': /root/src/ffmpeg/libavformat/librtmp.c:148: undefined reference to `RTMP_SendSeek' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read_pause': /root/src/ffmpeg/libavformat/librtmp.c:130: undefined reference to `RTMP_Pause' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_close': /root/src/ffmpeg/libavformat/librtmp.c:52: undefined reference to `RTMP_Close' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_open': /root/src/ffmpeg/libavformat/librtmp.c:87: undefined reference to `RTMP_LogSetLevel' /root/src/ffmpeg/libavformat/librtmp.c:88: undefined reference to `RTMP_LogSetCallback' /root/src/ffmpeg/libavformat/librtmp.c:90: undefined reference to `RTMP_Init' /root/src/ffmpeg/libavformat/librtmp.c:91: undefined reference to `RTMP_SetupURL' /root/src/ffmpeg/libavformat/librtmp.c:99: undefined reference to `RTMP_Connect' /root/src/ffmpeg/libavformat/librtmp.c:99: undefined reference to `RTMP_ConnectStream' /root/src/ffmpeg/libavformat/librtmp.c:97: undefined reference to `RTMP_EnableWrite' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_get_file_handle': /root/src/ffmpeg/libavformat/librtmp.c:157: undefined reference to `RTMP_Socket' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_write': /root/src/ffmpeg/libavformat/librtmp.c:116: undefined reference to `RTMP_Write' /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read': /root/src/ffmpeg/libavformat/librtmp.c:123: undefined reference to `RTMP_Read' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 What am I missing? Thanks in advance. From andrey.krieger.utkin at gmail.com Thu May 30 01:07:46 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Thu, 30 May 2013 02:07:46 +0300 Subject: [FFmpeg-user] Time shift In-Reply-To: <000601ce5cad$fccaa680$f65ff380$@com> References: <000001ce5a3e$3159bd40$940d37c0$@com> <000601ce5cad$fccaa680$f65ff380$@com> Message-ID: 2013/5/29 Mazen : > Thanks for the reply > > I have this thread > > http://web.archiveorange.com/archive/v/5ib7t5z2wyI44VR2d7dN > > Do you think it really works for live streaming to have a time shift? > > Thanks again I don't have anything to help you, i just want to say that likely i have understood what you mean as "time shift" - it's seeking. You want to enable seeking back up to 1 hour on a live stream. Is that correct? Not being aware of any smarter solution, i'd say this task requires developing special application using libavformat. -- Andrey Utkin From anatol2002 at gmail.com Thu May 30 05:20:49 2013 From: anatol2002 at gmail.com (Anatol) Date: Thu, 30 May 2013 06:20:49 +0300 Subject: [FFmpeg-user] iphone auto-rotation? In-Reply-To: References: Message-ID: It has nothing to do with PHP, this is just a simple heuristics how to build the ffmpeg command line to fix the orientation of the images that u grab - for rotation 180 add " -vf vflip,hflip", for 90 add "..." , etc. The source rotation data can be retrieved with mediainfo of ffprobe. On Thu, May 30, 2013 at 1:27 AM, Mark Hahn wrote: > Awesome. Thanks. > > I don't have PHP. Is there any other language I could use that supports > ffmpeg? Something that I can use in Linux? I have a node module running > ffmpeg (fffmpeg) but it only talks to the ffmpeg command-line. Perl, > Python, bash, java, ruby, javascript? > > I would hate to install and support PHP for just this. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tstrike34 at gmail.com Thu May 30 06:01:22 2013 From: tstrike34 at gmail.com (JT Edwards) Date: Wed, 29 May 2013 23:01:22 -0500 Subject: [FFmpeg-user] rtmpdump In-Reply-To: References: Message-ID: I am still getting this problem. I am running this on Centos 5.9. I have goggled the heck out of this situation. Is there a way to search the archives? Thanks! On Wed, May 29, 2013 at 5:50 PM, JT Edwards wrote: > Hi folks, > > I am trying to compile rtmpdump with the latest FFMPEG from git. > > I am getting compilation errors regard libraries linking. > > Here is my version: > > ffmpeg version N-52953-g50e6672 Copyright (c) 2000-2013 the FFmpeg > developers > built on May 10 2013 14:16:15 with gcc 4.1.2 (GCC) 20080704 (Red Hat > 4.1.2-54) > configuration: --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libvpx --enable-libfaac > --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid > --enable-gpl --enable-postproc --enable-nonfree > libavutil 52. 30.100 / 52. 30.100 > libavcodec 55. 7.100 / 55. 7.100 > libavformat 55. 4.101 / 55. 4.101 > libavdevice 55. 0.100 / 55. 0.100 > libavfilter 3. 63.101 / 3. 63.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > > > Here is the errors I am getting: > > LD ffmpeg_g > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_read_seek': > /root/src/ffmpeg/libavformat/librtmp.c:148: undefined reference to > `RTMP_SendSeek' > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_read_pause': > /root/src/ffmpeg/libavformat/librtmp.c:130: undefined reference to > `RTMP_Pause' > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_close': > /root/src/ffmpeg/libavformat/librtmp.c:52: undefined reference to > `RTMP_Close' > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_open': > /root/src/ffmpeg/libavformat/librtmp.c:87: undefined reference to > `RTMP_LogSetLevel' > /root/src/ffmpeg/libavformat/librtmp.c:88: undefined reference to > `RTMP_LogSetCallback' > /root/src/ffmpeg/libavformat/librtmp.c:90: undefined reference to > `RTMP_Init' > /root/src/ffmpeg/libavformat/librtmp.c:91: undefined reference to > `RTMP_SetupURL' > /root/src/ffmpeg/libavformat/librtmp.c:99: undefined reference to > `RTMP_Connect' > /root/src/ffmpeg/libavformat/librtmp.c:99: undefined reference to > `RTMP_ConnectStream' > /root/src/ffmpeg/libavformat/librtmp.c:97: undefined reference to > `RTMP_EnableWrite' > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_get_file_handle': > /root/src/ffmpeg/libavformat/librtmp.c:157: undefined reference to > `RTMP_Socket' > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_write': > /root/src/ffmpeg/libavformat/librtmp.c:116: undefined reference to > `RTMP_Write' > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_read': > /root/src/ffmpeg/libavformat/librtmp.c:123: undefined reference to > `RTMP_Read' > collect2: ld returned 1 exit status > make: *** [ffmpeg_g] Error 1 > > What am I missing? > > Thanks in advance. > > > From soho123.2012 at gmail.com Thu May 30 06:31:17 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 30 May 2013 12:31:17 +0800 Subject: [FFmpeg-user] Can ffmpeg+ffserver save video data to local disk and send out to network simultaneously ? Message-ID: Hi All, If I would like to implement a stream server and it have to save video data to local disk simultaneously when ffserver output the video stream, is it possible to use ffmpeg +ffserver? From mark at hahnca.com Thu May 30 06:41:29 2013 From: mark at hahnca.com (Mark Hahn) Date: Wed, 29 May 2013 21:41:29 -0700 Subject: [FFmpeg-user] iphone auto-rotation? In-Reply-To: References: Message-ID: Thanks again. I think I've got it now. On Wed, May 29, 2013 at 8:20 PM, Anatol wrote: > It has nothing to do with PHP, this is just a simple heuristics how to > build the ffmpeg command line to fix the orientation of the images that u > grab - > for rotation 180 add " -vf vflip,hflip", for 90 add "..." , etc. > The source rotation data can be retrieved with mediainfo of ffprobe. > > On Thu, May 30, 2013 at 1:27 AM, Mark Hahn wrote: > > > Awesome. Thanks. > > > > I don't have PHP. Is there any other language I could use that supports > > ffmpeg? Something that I can use in Linux? I have a node module running > > ffmpeg (fffmpeg) but it only talks to the ffmpeg command-line. Perl, > > Python, bash, java, ruby, javascript? > > > > I would hate to install and support PHP for just this. > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tevans.uk at googlemail.com Thu May 30 12:20:17 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Thu, 30 May 2013 11:20:17 +0100 Subject: [FFmpeg-user] Can ffmpeg+ffserver save video data to local disk and send out to network simultaneously ? In-Reply-To: References: Message-ID: On Thu, May 30, 2013 at 5:31 AM, Soho Soho123 wrote: > Hi All, > > > If I would like to implement a stream server and it have to save video data > to local disk simultaneously when ffserver output the video stream, > is it possible to use ffmpeg +ffserver? ffmpeg -i ? -f mpegts - | ffmpeg -i - -c copy backup.ts -c copy rtsp://? Cheers Tom From spurmohseni at yahoo.com Thu May 30 13:25:35 2013 From: spurmohseni at yahoo.com (sajjad purmohseni) Date: Thu, 30 May 2013 04:25:35 -0700 (PDT) Subject: [FFmpeg-user] Where to find ffserver static for linux Message-ID: <1369913135.60150.YahooMailNeo@web162103.mail.bf1.yahoo.com> I need just to download ffserver static file for using in linux(ubuntu 12.04 x64), with libx264 library. I don't want to challenge compilation task on Linux and have just a portable static file.?I have spent long time searching for that. Can anybody guide me? ? -------------------------------------------------- kind regards; ? ? ? ??Sajad Pourmohseni From barsnick at gmx.net Thu May 30 15:08:43 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 30 May 2013 15:08:43 +0200 Subject: [FFmpeg-user] rtmpdump In-Reply-To: References: Message-ID: <20130530130843.GB16880@sunshine.barsnick.net> On Wed, May 29, 2013 at 17:50:25 -0500, JT Edwards wrote: > What am I missing? A proper description of your problem? > I am trying to compile rtmpdump with the latest FFMPEG from git. rtmpdump does not require ffmpeg to build. > I am getting compilation errors regard libraries linking. > Here is my version: > > ffmpeg version N-52953-g50e6672 Copyright (c) 2000-2013 the FFmpeg developers [...] > Here is the errors I am getting: > > LD ffmpeg_g I don't get it. You can't link ffmpeg successfully, but you have a binary to show us which reports its version? Then it must have been linked. You see, I don't understand the problem. Even if you were trying to compile ffmpeg with librtmp support (the other way around from what your first sentence says), where do you have that binary from? > Here is the errors I am getting: > > LD ffmpeg_g > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function `rtmp_read_seek': > /root/src/ffmpeg/libavformat/librtmp.c:148: undefined reference to `RTMP_SendSeek' Are you sure that did a "make clean" before running ./configure with new options? This seems like librtmp was found at configure time 8and possibly compile time), but not at link time. Your installation of librtmp may be borked, e.g. by two conflicting versions. A good start would be to show us the full command line and output of your ./configure call. Then there may be some hints in config.log. Moritz From mollyrazormillions at gmail.com Thu May 30 15:59:54 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Thu, 30 May 2013 15:59:54 +0200 Subject: [FFmpeg-user] FFmpeg coloured output Message-ID: Hi! Is it safe to assume, that whenever an unrecoverable error occured, the colored output line will contain the following color definition? .[1;31mWhatever blabla I need this, because when using multiple outputs, if the "main" output succeeds, but the secondary one fails, then the ffmpeg exit code is still 0. Molly From ruslan.khusnullin at gmail.com Thu May 30 16:35:41 2013 From: ruslan.khusnullin at gmail.com (Ruslan Khusnullin) Date: Thu, 30 May 2013 18:35:41 +0400 Subject: [FFmpeg-user] ffplay feature request: advanced mouse control Message-ID: Hello! I use ffplay very often, thanks to all developers and maintainers. There is one thing breaking happy everyday usage: accidental mouse clicks in fullscreen mode, it seeks to a random place. It would be nice to have advanced mouse control interface also: pause/play and zoom. I have an idea about an interface and hope you will comment it. Left mouse button (LMB): click - restore zoom to 100% push, select region, unpush - zoom to the selected region Right mouse button (or Alt+LMB): click - pause/unpause Middle mouse button (LMB+RMB on 2-buttons-mice or Ctrl+LMB or Shift+LMB) click - seek (as left mouse button acts now) Middle mouse button click is less accidental than Left mouse button click for most users. All these Key+Mouse combos are needed by people with 1-button-mice. Thanks in advance, please share your opinion. From ubitux at gmail.com Thu May 30 16:49:51 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 30 May 2013 16:49:51 +0200 Subject: [FFmpeg-user] ffplay feature request: advanced mouse control In-Reply-To: References: Message-ID: <20130530144951.GV12526@leki> On Thu, May 30, 2013 at 06:35:41PM +0400, Ruslan Khusnullin wrote: > Hello! > > I use ffplay very often, thanks to all developers and maintainers. > There is one thing breaking happy everyday usage: accidental mouse > clicks in fullscreen mode, it seeks to a random place. > clicking on the left seek toward the beginning, clicking on the right seek toward the end, etc. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From mollyrazormillions at gmail.com Thu May 30 18:24:26 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Thu, 30 May 2013 18:24:26 +0200 Subject: [FFmpeg-user] Repeating image tiles Message-ID: Hi! I use the following command line to convert flv movies to mp4 and also create a 10x9 image tile. Each tile gets written at 2 second intervals, so a full image tile should be written after every 3 minutes. My problem is, that with the followinging 9 minute video, ffmpeg creates a lot (100+) of repeating (md5 sums match) tiles. Any idea what might be the problem? Source video file: https://www.dropbox.com/s/9uiup4uc9u3pdg7/v20.flv.flv $ ffmpeg -i v20.flv.flv -y -movflags faststart -vf 'scale=320:240' 'video-20.360.mp4' -vf 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\,2),scale=90:45,tile=10x9' -qscale:v 3 'f%03d.jpg' ffmpeg version N-53613-g4d2825a Copyright (c) 2000-2013 the FFmpeg developers built on May 29 2013 05:24:41 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.102 / 55. 12.102 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 72.100 / 3. 72.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, flv, from 'v20.flv.flv': Metadata: hasKeyframes : true hasVideo : true canSeekToEnd : false datasize : 24360527 lasttimestamp : 594 audiosize : 5176996 hasAudio : true audiodelay : 0 videosize : 19177783 metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2 lastkeyframetimestamp: 586 hasMetadata : true hasCuePoints : false Duration: 00:09:54.46, start: 0.000000, bitrate: 330 kb/s Stream #0:0: Video: flv1, yuv420p, 320x240, 261 kb/s, 29.97 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: mp3, 22050 Hz, mono, s16p, 67 kb/s [libx264 @ 0x36b3f40] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x36b3f40] profile High, level 1.3 [libx264 @ 0x36b3f40] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'video-20.360.mp4': Metadata: hasKeyframes : true hasVideo : true canSeekToEnd : false datasize : 24360527 lasttimestamp : 594 audiosize : 5176996 hasAudio : true audiodelay : 0 videosize : 19177783 metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2 lastkeyframetimestamp: 586 hasMetadata : true hasCuePoints : false encoder : Lavf55.7.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x240, q=-1--1, 30k tbn, 29.97 tbc Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 22050 Hz, mono, s16, 128 kb/s Output #1, image2, to 'f%03d.jpg': Metadata: hasKeyframes : true hasVideo : true canSeekToEnd : false datasize : 24360527 lasttimestamp : 594 audiosize : 5176996 hasAudio : true audiodelay : 0 videosize : 19177783 metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2 lastkeyframetimestamp: 586 hasMetadata : true hasCuePoints : false encoder : Lavf55.7.100 Stream #1:0: Video: mjpeg, yuvj420p, 900x405, q=2-31, 200 kb/s, 90k tbn, 0.33 tbc Stream mapping: Stream #0:0 -> #0:0 (flv -> libx264) Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc) Stream #0:0 -> #1:0 (flv -> mjpeg) Press [q] to stop, [?] for help Stream discovered after head already parsed207kB time=00:09:50.87 bitrate= 529.7kbits/s dup=118 drop=0 [flv @ 0x36ac8a0] New data stream 0:2 at pos:24480465 and DTS:593.427s [mp4 @ 0x36af720] Starting second pass: moving header on top of the file frame=17816 fps=298 q=-1.0 Lq=0.0 size= 38876kB time=00:09:54.54 bitrate= 535.7kbits/s dup=177 drop=0 video:47808kB audio:9291kB subtitle:0 global headers:0kB muxing overhead -31.913943% [libx264 @ 0x36b3f40] frame I:142 Avg QP:20.94 size: 9935 [libx264 @ 0x36b3f40] frame P:16981 Avg QP:25.18 size: 1673 [libx264 @ 0x36b3f40] frame B:693 Avg QP:29.51 size: 179 [libx264 @ 0x36b3f40] consecutive B-frames: 94.5% 0.7% 0.5% 4.3% [libx264 @ 0x36b3f40] mb I I16..4: 9.6% 85.3% 5.1% [libx264 @ 0x36b3f40] mb P I16..4: 0.7% 2.3% 0.1% P16..4: 38.7% 13.1% 11.9% 0.0% 0.0% skip:33.1% [libx264 @ 0x36b3f40] mb B I16..4: 0.2% 0.3% 0.0% B16..8: 19.7% 1.7% 0.5% direct: 0.6% skip:77.1% L0:44.4% L1:48.7% BI: 6.9% [libx264 @ 0x36b3f40] 8x8 transform intra:75.3% inter:82.6% [libx264 @ 0x36b3f40] coded y,uvDC,uvAC intra: 68.1% 63.1% 8.4% inter: 22.9% 12.2% 0.4% [libx264 @ 0x36b3f40] i16 v,h,dc,p: 34% 35% 25% 6% [libx264 @ 0x36b3f40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 21% 35% 3% 3% 3% 3% 3% 7% [libx264 @ 0x36b3f40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 21% 16% 4% 5% 5% 6% 4% 5% [libx264 @ 0x36b3f40] i8c dc,h,v,p: 49% 26% 23% 2% [libx264 @ 0x36b3f40] Weighted P-Frames: Y:0.3% UV:0.1% [libx264 @ 0x36b3f40] ref P L0: 80.1% 11.2% 6.5% 2.2% 0.0% [libx264 @ 0x36b3f40] ref B L0: 86.9% 10.9% 2.2% [libx264 @ 0x36b3f40] ref B L1: 95.2% 4.8% [libx264 @ 0x36b3f40] kb/s:402.90 [libvo_aacenc @ 0x37270e0] 1 frames left in the queue on closing Thanks! From nicolas.george at normalesup.org Thu May 30 19:04:44 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 30 May 2013 19:04:44 +0200 Subject: [FFmpeg-user] Repeating image tiles In-Reply-To: References: Message-ID: <20130530170444.GA26728@phare.normalesup.org> Le primidi 11 prairial, an CCXXI, Molly Millions a ?crit?: > I use the following command line to convert flv movies to mp4 and also > create a 10x9 image tile. Each tile gets written at 2 second intervals, so > a full image tile should be written after every 3 minutes. My problem is, > that with the followinging 9 minute video, ffmpeg creates a lot (100+) of > repeating (md5 sums match) tiles. Any idea what might be the problem? Since you are using the select filter, it is probably the image2 muxer behaving in constant frame rate. Try adding -vsync vfr. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From mazen at pnettv.com Thu May 30 19:12:39 2013 From: mazen at pnettv.com (Mazen) Date: Thu, 30 May 2013 19:12:39 +0200 Subject: [FFmpeg-user] Can ffmpeg+ffserver save video data to local disk and send out to network simultaneously ? In-Reply-To: References: Message-ID: <000901ce5d58$e467b4b0$ad371e10$@com> Hi Can this backup.ts file controlled by time or by size? Thanks -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Tom Evans Sent: Thursday, May 30, 2013 12:20 PM To: FFmpeg user questions Subject: Re: [FFmpeg-user] Can ffmpeg+ffserver save video data to local disk and send out to network simultaneously ? On Thu, May 30, 2013 at 5:31 AM, Soho Soho123 wrote: > Hi All, > > > If I would like to implement a stream server and it have to save video data > to local disk simultaneously when ffserver output the video stream, > is it possible to use ffmpeg +ffserver? ffmpeg -i ? -f mpegts - | ffmpeg -i - -c copy backup.ts -c copy rtsp://? Cheers Tom _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From onemda at gmail.com Thu May 30 20:00:04 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 30 May 2013 18:00:04 +0000 Subject: [FFmpeg-user] FFmpeg coloured output In-Reply-To: References: Message-ID: On 5/30/13, Molly Millions wrote: > Hi! > > Is it safe to assume, that whenever an unrecoverable error occured, the > colored output line will contain the following color definition? > > .[1;31mWhatever blabla If if true in some cases (when termianl supports colors) that is hardly right thing to do. > > > I need this, because when using multiple outputs, if the "main" output > succeeds, but the secondary one fails, then the ffmpeg exit code is still > 0. Then open feature request / bug on bug tracker. > > Molly > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tstrike34 at gmail.com Thu May 30 20:12:08 2013 From: tstrike34 at gmail.com (JT Edwards) Date: Thu, 30 May 2013 13:12:08 -0500 Subject: [FFmpeg-user] rtmpdump In-Reply-To: <20130530130843.GB16880@sunshine.barsnick.net> References: <20130530130843.GB16880@sunshine.barsnick.net> Message-ID: Hey Mortiz, Thanks a lot for your help. To be more specific, I had already compiled ffmpeg. I wanted to recompile ffmpeg with rtmpdump support. I apologize for my inexperience regarding ffmpeg. I have rtmpsump already compiled and installed. How should I clean up my librtmp installation? Best Regards. On Thu, May 30, 2013 at 8:08 AM, Moritz Barsnick wrote: > On Wed, May 29, 2013 at 17:50:25 -0500, JT Edwards wrote: > > What am I missing? > > A proper description of your problem? > > > I am trying to compile rtmpdump with the latest FFMPEG from git. > > rtmpdump does not require ffmpeg to build. > > > I am getting compilation errors regard libraries linking. > > Here is my version: > > > > ffmpeg version N-52953-g50e6672 Copyright (c) 2000-2013 the FFmpeg > developers > [...] > > Here is the errors I am getting: > > > > LD ffmpeg_g > > I don't get it. You can't link ffmpeg successfully, but you have a > binary to show us which reports its version? Then it must have been > linked. > > You see, I don't understand the problem. Even if you were trying to > compile ffmpeg with librtmp support (the other way around from what > your first sentence says), where do you have that binary from? > > > Here is the errors I am getting: > > > > LD ffmpeg_g > > /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_read_seek': > > /root/src/ffmpeg/libavformat/librtmp.c:148: undefined reference to > `RTMP_SendSeek' > > Are you sure that did a "make clean" before running ./configure with > new options? This seems like librtmp was found at configure time 8and > possibly compile time), but not at link time. Your installation of > librtmp may be borked, e.g. by two conflicting versions. > > A good start would be to show us the full command line and output of > your ./configure call. Then there may be some hints in config.log. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From spurmohseni at yahoo.com Thu May 30 20:25:24 2013 From: spurmohseni at yahoo.com (sajjad purmohseni) Date: Thu, 30 May 2013 11:25:24 -0700 (PDT) Subject: [FFmpeg-user] rtmpdump In-Reply-To: References: <20130530130843.GB16880@sunshine.barsnick.net> Message-ID: <1369938324.7455.YahooMailNeo@web162106.mail.bf1.yahoo.com> Hi edwards. I think you want to have ffmpeg that supporting rtmp input. Previously I had an experience with rtmpdump; piping it's output to the VLC; then VLC could play it. maybe ffmpeg also work as this. Also?I am so excited to receive rtmp stream directly by ffmpeg. I'll follow this post.? -------------------------------------------------- kind regards; ? ? ? ??Sajad Pourmohseni ? ________________________________ From: JT Edwards To: FFmpeg user questions Sent: Thursday, May 30, 2013 10:42 PM Subject: Re: [FFmpeg-user] rtmpdump Hey Mortiz, Thanks a lot for your help. To be more specific, I had already compiled ffmpeg. I wanted to recompile ffmpeg with rtmpdump support. I apologize for my inexperience regarding ffmpeg. I have rtmpsump already compiled and installed. How should I clean up my librtmp installation? Best Regards. On Thu, May 30, 2013 at 8:08 AM, Moritz Barsnick wrote: > On Wed, May 29, 2013 at 17:50:25 -0500, JT Edwards wrote: > >? What am I missing? > > A proper description of your problem? > > > I am trying to compile rtmpdump with the latest FFMPEG from git. > > rtmpdump does not require ffmpeg to build. > > > I am getting compilation errors regard libraries linking. > > Here is my version: > > > > ffmpeg version N-52953-g50e6672 Copyright (c) 2000-2013 the FFmpeg > developers > [...] > > Here is the errors I am getting: > > > > LD? ffmpeg_g > > I don't get it. You can't link ffmpeg successfully, but you have a > binary to show us which reports its version? Then it must have been > linked. > > You see, I don't understand the problem. Even if you were trying to > compile ffmpeg with librtmp support (the other way around from what > your first sentence says), where do you have that binary from? > > > Here is the errors I am getting: > > > > LD? ffmpeg_g > >? ? /root/src/ffmpeg/libavformat/libavformat.a(librtmp.o): In function > `rtmp_read_seek': > >? ? /root/src/ffmpeg/libavformat/librtmp.c:148: undefined reference to > `RTMP_SendSeek' > > Are you sure that did a "make clean" before running ./configure with > new options? This seems like librtmp was found at configure time 8and > possibly compile time), but not at link time. Your installation of > librtmp may be borked, e.g. by two conflicting versions. > > A good start would be to show us the full command line and output of > your ./configure call. Then there may be some hints in config.log. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mollyrazormillions at gmail.com Thu May 30 20:30:49 2013 From: mollyrazormillions at gmail.com (Molly Millions) Date: Thu, 30 May 2013 20:30:49 +0200 Subject: [FFmpeg-user] Repeating image tiles In-Reply-To: <20130530170444.GA26728@phare.normalesup.org> References: <20130530170444.GA26728@phare.normalesup.org> Message-ID: That solved the problem. Thanks a lot Nicolas! On Thu, May 30, 2013 at 7:04 PM, Nicolas George < nicolas.george at normalesup.org> wrote: > Le primidi 11 prairial, an CCXXI, Molly Millions a ?crit : > > I use the following command line to convert flv movies to mp4 and also > > create a 10x9 image tile. Each tile gets written at 2 second intervals, > so > > a full image tile should be written after every 3 minutes. My problem is, > > that with the followinging 9 minute video, ffmpeg creates a lot (100+) of > > repeating (md5 sums match) tiles. Any idea what might be the problem? > > Since you are using the select filter, it is probably the image2 muxer > behaving in constant frame rate. Try adding -vsync vfr. > > Regards, > > -- > Nicolas George > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From hj113 at k1k.eu Thu May 30 18:27:56 2013 From: hj113 at k1k.eu (Florian) Date: Thu, 30 May 2013 18:27:56 +0200 Subject: [FFmpeg-user] Stripping TrueHD / DTS-MA and leaving only the core Message-ID: <51A77E0C.2090705@k1k.eu> Hello, I have M2TS-files with TrueHD and DTS-MA audio tracks. Is it possible to strip these extensions so that the audio is only AC-3 and/or plain DTS? I looked at the list of bitstream filters, but couldn't find anything... Thanks, Florian From rblakeslee at netrinsics.net Thu May 30 09:54:48 2013 From: rblakeslee at netrinsics.net (Ryan Blakeslee) Date: Thu, 30 May 2013 00:54:48 -0700 Subject: [FFmpeg-user] ffmpeg and ffserver to transcode and stream rtsm to rtmp? Please Help me. Message-ID: <80693865dc254dd7127841eb96408501@mail.gmail.com> Hello, On Debian 6, I am trying to use ffmpeg and ffserver to transcode and stream an rtsp feed from an IP camera in order for visitors to play via browser. It's a brand new camera - I'm struggling to make this work, and I am not familiar enough with it to know what I am doing wrong. I have tested the camera by successfully viewing the rtsp feed in VLC as well as a hosted streaming provider. This all works, so I know the camera and rtsp is functioning. Flow looks like this: [IP Cam] --> RSTP h.264 stream (rtsp://192.168.0.25:554/cam0_0) --> [FFMPEG] --> [FFSERVER] (Port 9999, Feed1.ffm) --> Web Browser I am using ffmpeg/ffserver installed from Debian repositories via apt-get install ffmpeg. It seems as though it's running, but when I either try to browse to http://host:9999/test.swf or I try to use VLC to open the network stream, I get a white screen. When I stop ffmpeg, I get this very faint, ghostly (near indistinguishable) outline of a still of the video. I'm working on a project for a customer, and I would like to know how to do make this work and to be able to repeat it so I can use it in the future on other projects as well. I've spend a ridiculous amount of time on this and I've reached a dead end. I would be willing to hire an expert to help me with this if this is possible to do and I can't do it on my own. (I don't want to use a solution like Red5 or Wazoo -- I want to know how to do this and be able to do this with ffmpeg. Not because I'm cheap - I'm willing to spend money for help, but I want to have control of the tools I use for my customers.) Please help! --- Is what I am trying to do even possible in this configuration? --- My ffserver.conf file looks like this: Port 9999 # bind to all IPs aliased or not BindAddress 0.0.0.0 # max number of simultaneous clients MaxClients 1000 # max bandwidth per-client (kb/s) MaxBandwidth 10000 # Suppress that if you want to launch ffserver as a daemon. NoDaemon File /tmp/feed1.ffm FileMaxSize 5M ACL allow 127.0.0.1 Feed feed1.ffm Format swf VideoCodec flv VideoFrameRate 30 VideoBufferSize 80000 VideoBitRate 100 VideoQMin 1 VideoQMax 5 VideoSize 704x480 PreRoll 0 Noaudio --- 1. I run the following command: ffserver & ffmpeg -i rtsp://192.168.0.25:554/cam0_0 -vcodec http://localhost:9999/feed1.ffm 1A. (I also run ffserver from one console session and ffmpeg from another -- same results.) 1B. I get the following ffmpeg output: [NULL @ 0x92bd330]non-existing PPS referenced [h264 @ 0x92bd330]number of reference frames exceeds max (probably corrupt input), discarding one Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2) Last message repeated 12 times Input #0, rtsp, from 'rtsp://192.168.0.25:554/cam0_0': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 704x480, 90k tbr, 90k tbn, 180k tbc Output #0, ffm, to 'http://localhost:9999/feed1.ffm': Stream #0.0: Video: 0x0000, yuv420p, 704x480, q=1-5, 1000k tbn, 90k tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 2350 fps=101 q=-1.0 size= 7008kB time=0.03 bitrate=2219927.1kbits/s 1C. I get the following output on ffserver: ffserver FFserver version SVN-r0.5.10-4:0.5.10-1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.10-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Feb 16 2013 10:09:50, gcc: 4.4.5 [NULL @ 0x87832f0]error, non monotone timestamps -829980193100065088 >= -829980193100065088 Last message repeated 640 times SWF muxer only supports VP6, FLV1 and MJPEG --- From lou at lrcd.com Thu May 30 20:41:00 2013 From: lou at lrcd.com (Lou) Date: Thu, 30 May 2013 10:41:00 -0800 Subject: [FFmpeg-user] rtmpdump In-Reply-To: <1369938324.7455.YahooMailNeo@web162106.mail.bf1.yahoo.com> References: <20130530130843.GB16880@sunshine.barsnick.net> <1369938324.7455.YahooMailNeo@web162106.mail.bf1.yahoo.com> Message-ID: <20130530104100.54331810@lrcd.com> On Thu, 30 May 2013 11:25:24 -0700 (PDT) sajjad purmohseni wrote: > Hi edwards. > > I think you want to have ffmpeg that supporting rtmp input. Previously I had an experience with rtmpdump; piping it's output to the VLC; then VLC could play it. maybe ffmpeg also work as this. Also?I am so excited to receive rtmp stream directly by ffmpeg. I'll follow this post.? ffmpeg has native support for RTMP (both input and output), and can also support librtmp but I'm not sure why you would need that. See "ffmpeg -protcols" and the docs: http://ffmpeg.org/ffmpeg-protocols.html#rtmp From tstrike34 at gmail.com Thu May 30 20:58:50 2013 From: tstrike34 at gmail.com (JT Edwards) Date: Thu, 30 May 2013 13:58:50 -0500 Subject: [FFmpeg-user] rtmpdump In-Reply-To: <20130530104100.54331810@lrcd.com> References: <20130530130843.GB16880@sunshine.barsnick.net> <1369938324.7455.YahooMailNeo@web162106.mail.bf1.yahoo.com> <20130530104100.54331810@lrcd.com> Message-ID: I am trying to compile FFMPEG with RTMP support for Serviio. Apparently it needs that piece for various feeds and such. Sajjad makes a great point, that is precisely what I was trying to get at (I apologize for the misrepresentation). On Thu, May 30, 2013 at 1:41 PM, Lou wrote: > On Thu, 30 May 2013 11:25:24 -0700 (PDT) > sajjad purmohseni wrote: > > > Hi edwards. > > > > I think you want to have ffmpeg that supporting rtmp input. Previously I > had an experience with rtmpdump; piping it's output to the VLC; then VLC > could play it. maybe ffmpeg also work as this. Also I am so excited to > receive rtmp stream directly by ffmpeg. I'll follow this post. > > ffmpeg has native support for RTMP (both input and output), and can > also support librtmp but I'm not sure why you would need that. See > "ffmpeg -protcols" and the docs: > > http://ffmpeg.org/ffmpeg-protocols.html#rtmp > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From onemda at gmail.com Thu May 30 21:13:41 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 30 May 2013 19:13:41 +0000 Subject: [FFmpeg-user] Stripping TrueHD / DTS-MA and leaving only the core In-Reply-To: <51A77E0C.2090705@k1k.eu> References: <51A77E0C.2090705@k1k.eu> Message-ID: On 5/30/13, Florian wrote: > Hello, > > I have M2TS-files with TrueHD and DTS-MA audio tracks. > Is it possible to strip these extensions so that the audio is only AC-3 > and/or plain DTS? > > I looked at the list of bitstream filters, but couldn't find anything... There is already open feature request for DTS core extraction. > > Thanks, > Florian > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Thu May 30 21:46:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 30 May 2013 19:46:50 +0000 (UTC) Subject: [FFmpeg-user] Stripping TrueHD / DTS-MA and leaving only the core References: <51A77E0C.2090705@k1k.eu> Message-ID: Florian k1k.eu> writes: > I have M2TS-files with TrueHD and DTS-MA audio > tracks. Is it possible to strip these extensions > so that the audio is only AC-3 FFmpeg always strips AC-3 from TrueHD / it is not possible not to strip with FFmpeg. Carl Eugen From ruslan.khusnullin at gmail.com Thu May 30 23:16:40 2013 From: ruslan.khusnullin at gmail.com (Ruslan Khusnullin) Date: Fri, 31 May 2013 01:16:40 +0400 Subject: [FFmpeg-user] ffplay feature request: advanced mouse control In-Reply-To: <20130530144951.GV12526@leki> References: <20130530144951.GV12526@leki> Message-ID: On Thu, May 30, 2013 at 6:49 PM, Cl?ment B?sch wrote: >> There is one thing breaking happy everyday usage: accidental mouse >> clicks in fullscreen mode, it seeks to a random place. > > clicking on the left seek toward the beginning, clicking on the right seek > toward the end, etc. Really? I always thought that "invisible" horizontal axis for seeking is made of all window and mouse click seeks to the clicked position. man ffplay: mouse click Seek to percentage in file corresponding to fraction of width. From tstrike34 at gmail.com Fri May 31 00:23:09 2013 From: tstrike34 at gmail.com (tstrike34) Date: Thu, 30 May 2013 15:23:09 -0700 (PDT) Subject: [FFmpeg-user] rtmpdump In-Reply-To: References: <20130530130843.GB16880@sunshine.barsnick.net> <1369938324.7455.YahooMailNeo@web162106.mail.bf1.yahoo.com> <20130530104100.54331810@lrcd.com> Message-ID: <1369952589844-4659419.post@n4.nabble.com> Question: I recompiled FFMPEG just fine. If I want to recompile FFMPEG with rtmpdump, do I have to clear things out with" [code] make clean [/code] Then recompile rtmpdump support? Sorry for the dumb question. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/rtmpdump-tp4659393p4659419.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ddhung at vasc.com.vn Fri May 31 03:25:05 2013 From: ddhung at vasc.com.vn (=?UTF-8?B?xJDhurduZyDEkOG7qWMgSMawbmc=?=) Date: Fri, 31 May 2013 08:25:05 +0700 Subject: [FFmpeg-user] Effective bit rate of video Message-ID: <001a01ce5d9d$b1e1b190$15a514b0$@vasc.com.vn> Hi. This is a command line of ffmpeg which I use -i udp://233.19.205.56:5501 -filter:v yadif=0:0:0,fps=25 -vcodec libx264 -vprofile main -level 30 -g 64 -maxrate 1400k -bufsize 2800k -s: 720x576 -r 25 -crf 1 -ac 2 -ar 48000 -b:a 128k -filter:a volume=2 -f mpegts udp://230.1.1.1:5501?pkt_size=1316 When I run this command, I saw that on cmd the output bit rate is over 1400k about 1600k and I play on VLC the input bitrate video is not 1400k. The bit rate video is always change <1400k or >1400k. So how to force the ouput bit rate video is constant or at least constant around 1400k. Thanks your support. Best Regards From soho123.2012 at gmail.com Fri May 31 03:59:40 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 31 May 2013 09:59:40 +0800 Subject: [FFmpeg-user] Can ffmpeg+ffserver save video data to local disk and send out to network simultaneously ? In-Reply-To: References: Message-ID: > > If I would like to implement a stream server and it have to save video > data > > to local disk simultaneously when ffserver output the video stream, > > is it possible to use ffmpeg +ffserver? > > > ffmpeg -i ? -f mpegts - | ffmpeg -i - -c copy backup.ts -c copy rtsp://? > > Do you mean ffmpeg can output rtsp stream and save to backup.ts, right? then ffserver is not necessary? if my ffmpeg command is : ffmpeg -f video4linux2 -r %d -s 1280x720 -input_format h264 -i /dev/video1 -vcodec copy http://localhost:8090/feed1.ffm > /dev/null 2>&1 & and I also to start ffserver for http service, then how to get the result I want? From general at vultaire.net Fri May 31 08:42:44 2013 From: general at vultaire.net (Paul Goins) Date: Thu, 30 May 2013 23:42:44 -0700 Subject: [FFmpeg-user] Possible to use named pipe between ffmpeg and ffplay on Windows? Message-ID: <51A84664.9050304@vultaire.net> Hi, Let's say I have two named pipes: "\\.\pipe\piper_in" and "\\.\pipe\piper_out". The pipes are being managed through an intermediate process, basically working as a poor man's mkfifo on Windows. The intent is to have ffmpeg write to \\.\pipe\piper_in, and ffplay read from \\.\pipe\piper_out. ffplay seems to work fine with this. I connect it first via: ffplay -f rawvideo -pixel_format bgr24 -s 1280x720 -i \\.\pipe\piper_out The problem comes when I try to run ffmpeg with the named pipe as output. Command line: ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 -i video="Logicool HD Webcam C310" -f rawvideo -vcodec copy -an \\.\pipe\piper_in This results in the following: File '\\.\pipe\piper_in' already exists. Overwrite ? [y/N] y \\.\pipe\piper_in: No such file or directory Basically: rather than writing to the pipe, ffmpeg attempts to create a new file. Is there any way to make this work? Or is this sounding like a feature request for the devs? Best Regards, Paul Goins From nichot20 at yahoo.com Fri May 31 11:05:21 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 31 May 2013 10:05:21 +0100 Subject: [FFmpeg-user] Problem with amerge Message-ID: <51A867D1.3000802@yahoo.com> Been updating some of my scripts to use amerge with filter_complex instead of -f lavfi and hit an issue. The following command line works properly (except that seeking is not frame accurate, but thats another issue):- ffmpeg -f lavfi -i \ "amovie='Pipeline_test/BPR10407_01.mov':si=2 [a1]; amovie='Pipeline_test/BPR10407_01.mov':si=3 [a2]; [a1][a2] amerge, aformat=sample_fmts=s16:channel_layouts=stereo" \ -i 'Pipeline_test/BPR10407_01.mov' \ -map 1:v -map 0:a \ -vf "crop=720:576:0:32, setdar=4/3, scale=720:576:interl=1 [scaled]; movie='dog-.png' [logo]; [scaled][logo] overlay=80:60" \ -target pal-dvd -b:v 8000k -minrate 8000k -maxrate 8000k \ -flags +ildct+ilme -top 1 \ -b:a 192k -ar 44100 \ -ss 1089.280 -t 53.20 \ -y 'coded/out.mpg' However the updated version produces an error and the resulting file has a large "echo" offset between the 2 audio channels. I have highlighted the error line which is near the bottom:- ffmpeg \ > -i 'Pipeline_test/BPR10407_01.mov' \ > -filter_complex "crop=720:576:0:32, setdar=4/3, scale=720:576:interl=1 [scaled]; > movie='dog.png' [logo]; [scaled][logo] overlay=80:60 [v_out]; > [0:2][0:3] amerge=inputs=2, aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" \ > -map '[v_out]' -map '[a_out]' \ > -target pal-dvd -b:v 8000k -minrate 8000k -maxrate 8000k \ > -flags +ildct+ilme -top 1 \ > -b:a 192k -ar 44100 \ > -ss 1089.280 -t 53.20 \ > -y 'out.mpg' ffmpeg version N-53704-g9d56ccf-by_Tim Copyright (c) 2000-2013 the FFmpeg developers built on May 31 2013 08:54:31 with gcc 4.7 (SUSE Linux) configuration: --extra-version=by_Tim --enable-static --disable-shared --enable-gpl --enable-nonfree --enable-version3 --prefix=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local --libdir=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64 --samples=../fate-suite/ --enable-runtime-cpudetect --extra-cflags='-static -I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include' --extra-ldflags='-static -L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64' --progs-suffix=_May-31 --disable-ffserver --enable-libfaac --enable-libfdk-aac --enable-libx264 --enable-libfreetype --disable-ffplay libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.102 / 55. 12.102 libavformat 55. 8.102 / 55. 8.102 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 73.100 / 3. 73.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2724bc0] Stream #0: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2724bc0] Stream #2: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2724bc0] Stream #3: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2724bc0] Stream #4: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2724bc0] Stream #5: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2724bc0] Stream #6: not enough frames to estimate rate; consider increasing probesize Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Guessed Channel Layout for Input Stream #0.5 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/EON-1/Media_hub/Yad_Vashem/Pipeline_test/BPR10407_01.mov': Metadata: major_brand : qt minor_version : 537134592 compatible_brands: qt creation_time : 2013-05-24 14:45:19 Duration: 00:23:56.76, start: 0.000000, bitrate: 53152 kb/s Stream #0:0(eng): Data: none (tmcd / 0x64636D74) Metadata: timecode : 00:02:40:20 Stream #0:1(eng): Video: mpeg2video (4:2:2) (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 152:135 DAR 4:3], 50073 kb/s, SAR 16:15 DAR 24:19, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: timecode : 00:02:40:20 Stream #0:2(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: timecode : 00:02:40:20 Stream #0:3(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: timecode : 00:02:40:20 Stream #0:4(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: timecode : 00:02:40:20 Stream #0:5(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: timecode : 00:02:40:20 Stream #0:6(eng): Subtitle: eia_608 (c608 / 0x38303663) [Parsed_amerge_5 @ 0x2736b20] No channel layout for input 1 [Parsed_amerge_5 @ 0x2736b20] Input channel layouts overlap: output layout will be determined by the number of distinct input channels Output #0, dvd, to 'out.mpg': Metadata: major_brand : qt minor_version : 537134592 compatible_brands: qt encoder : Lavf55.8.102 Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 8000 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s Stream mapping: Stream #0:1 (mpeg2video) -> crop Stream #0:2 (pcm_s16be) -> amerge:in0 Stream #0:3 (pcm_s16be) -> amerge:in1 overlay -> Stream #0:0 (mpeg2video) aformat -> Stream #0:1 (ac3) Press [q] to stop, [?] for help Error while decoding stream #0:2: Cannot allocate memory <------ERROR Last message repeated 6 times ac-tex damaged at 43 131.6 size= 54070kB time=00:00:53.17 bitrate=8329.2kbits/s [mpeg2video @ 0x27271e0] Warning MVs not available [mpeg2video @ 0x27271e0] concealing 1082 DC, 1082 AC, 1082 MV errors in I frame frame= 1330 fps=5.0 q=21.8 Lsize= 54218kB time=00:00:53.21 bitrate=8346.5kbits/s video:52056kB audio:1247kB subtitle:0 global headers:0kB muxing overhead 1.715243% -- Tim From cehoyos at ag.or.at Fri May 31 11:11:54 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 31 May 2013 09:11:54 +0000 (UTC) Subject: [FFmpeg-user] Possible to use named pipe between ffmpeg and ffplay on Windows? References: <51A84664.9050304@vultaire.net> Message-ID: Paul Goins vultaire.net> writes: > ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 > -i video="Logicool HD Webcam C310" > -f rawvideo -vcodec copy -an > \\.\pipe\piper_in Does it work with pipe://pipe/piper_in ? FFmpeg assumes piper_in is a file (that it overwrites) if you don't specify anything else. Carl Eugen From rogat1y at gmail.com Fri May 31 12:18:38 2013 From: rogat1y at gmail.com (Maxim Kozlov) Date: Fri, 31 May 2013 14:18:38 +0400 Subject: [FFmpeg-user] Possible to use named pipe between ffmpeg and ffplay on Windows? In-Reply-To: References: <51A84664.9050304@vultaire.net> Message-ID: Try this command: ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 -i video="Logicool HD Webcam C310" -an -c:v libx264 -q 0 -f h264 - | ffmpeg -f h264 -i - -c copy -f mp4 c:\file.mp4 -f copy pipe:play | ffplay -i pipe:play 1st instance of ffmpeg will capture wideo from webcam, encodes it to x264 and sends to a pipe. 2nd instance of ffmpeg grabs stream from pipe, saves it to file and sends stream to pipe:play From ralawa at yahoo.fr Fri May 31 15:41:47 2013 From: ralawa at yahoo.fr (Rala Wa) Date: Fri, 31 May 2013 14:41:47 +0100 (BST) Subject: [FFmpeg-user] How to optimize transcoding cpu usage Message-ID: <1370007707.27202.YahooMailNeo@web133203.mail.ir2.yahoo.com> Hi, I am currently trying to transcode an udp TS stream which contains 1 video stream and 4 audio streams. I'm using this command line: ffmpeg -i "udp://239.255.0.10:1234?fifo_size=1000000" \ ? ? -map 0:0 -codec:v libx264 -s 1280x720 -profile:v baseline -preset:v superfast -g 125 -vb 1500k -map 0:1 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/720p \ ? ? -map 0:0 -codec:v libx264 -s 800x450 -profile:v baseline -preset:v superfast -g 125 -vb 800k -map 0:1 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/450p \ ? ? -map 0:0 -codec:v libx264 -s 384x216 -profile:v baseline -preset:v superfast -g 125 -vb 300k -map 0:1 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/216p \ ? ? -map 0:0 -codec:v libx264 -s 1280x720 -profile:v baseline -preset:v superfast -g 125 -vb 1500k -map 0:2 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/720p \ ? ? -map 0:0 -codec:v libx264 -s 800x450 -profile:v baseline -preset:v superfast -g 125 -vb 800k -map 0:2 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/450p \ ? ? -map 0:0 -codec:v libx264 -s 384x216 -profile:v baseline -preset:v superfast -g 125 -vb 300k -map 0:2 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/216p ? ?? With this command line I encode 6 streams, 3 quality for 2 langs. In this command line I, for example, transcode two times the 1280x720 video resolution which I think is not optimized. Can you tell me, if it is possible to encode only one time the video and add different languages to this video? In fact, to optimize cpu usage I would like to encode only once each video resolution ? ? ? ? ? ---- 1280x720 ------> 3 outputs with audio 0:1, 0:2, 0:3 ... ? ? ? ? ?| TS input --------- 800x450 -------> 3 outputs with audio 0:1, 0:2, 0:3 ... ? ? ? ? ?| ? ? ? ? ?----- 384x216 ------> 2 output with audio 0:1, 0:2, 0:3 ... I am also surprised by the cpu usage of this command line. With a 8 cores X3450, this command line use 30% on all cores. When I add 3 outputs the cpu usage increase slightly but ffmpeg is not able to do 25 fps transcoding and then I see buffering on the output streams. I tried to nice ffmpeg but It is not better. I hoped to encode more streams with this CPU.? ?? Regards, From h.reindl at thelounge.net Fri May 31 16:10:45 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 31 May 2013 16:10:45 +0200 Subject: [FFmpeg-user] How to optimize transcoding cpu usage In-Reply-To: <1370007707.27202.YahooMailNeo@web133203.mail.ir2.yahoo.com> References: <1370007707.27202.YahooMailNeo@web133203.mail.ir2.yahoo.com> Message-ID: <51A8AF65.8030107@thelounge.net> Am 31.05.2013 15:41, schrieb Rala Wa: > I am also surprised by the cpu usage of this command line. With a 8 cores X3450, this > command line use 30% on all cores. When I add 3 outputs the cpu usage increase slightly > but ffmpeg is not able to do 25 fps transcoding and then I see buffering on the output > streams. I tried to nice ffmpeg but It is not better. I hoped to encode more streams > with this CPU. what do you want? more cpu usage or less? "I tried to nice ffmpeg" and "I hoped to encode more streams with this CPU" is the exactly opposite! with "-threads 1" you would only use one core with "-threads 8" you would have 8 parallel encodings but however, not all an be encoded in parallel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From stefan52a at gmail.com Fri May 31 16:51:51 2013 From: stefan52a at gmail.com (Stefan) Date: Fri, 31 May 2013 16:51:51 +0200 Subject: [FFmpeg-user] How to optimize transcoding cpu usage In-Reply-To: <1370007707.27202.YahooMailNeo@web133203.mail.ir2.yahoo.com> References: <1370007707.27202.YahooMailNeo@web133203.mail.ir2.yahoo.com> Message-ID: <51A8B907.5010306@gmail.com> Shouldn't you use -threads 0 for libx264 to get maximum multi-core usage? Op 31/05/2013 15:41, Rala Wa schreef: > Hi, > > > I am currently trying to transcode an udp TS stream which contains 1 video stream and 4 audio streams. > > I'm using this command line: > > ffmpeg -i "udp://239.255.0.10:1234?fifo_size=1000000" \ > -map 0:0 -codec:v libx264 -s 1280x720 -profile:v baseline -preset:v superfast -g 125 -vb 1500k -map 0:1 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/720p \ > -map 0:0 -codec:v libx264 -s 800x450 -profile:v baseline -preset:v superfast -g 125 -vb 800k -map 0:1 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/450p \ > -map 0:0 -codec:v libx264 -s 384x216 -profile:v baseline -preset:v superfast -g 125 -vb 300k -map 0:1 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/216p \ > -map 0:0 -codec:v libx264 -s 1280x720 -profile:v baseline -preset:v superfast -g 125 -vb 1500k -map 0:2 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/720p \ > -map 0:0 -codec:v libx264 -s 800x450 -profile:v baseline -preset:v superfast -g 125 -vb 800k -map 0:2 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/450p \ > -map 0:0 -codec:v libx264 -s 384x216 -profile:v baseline -preset:v superfast -g 125 -vb 300k -map 0:2 -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/216p > > > With this command line I encode 6 streams, 3 quality for 2 langs. > In this command line I, for example, transcode two times the 1280x720 video resolution which I think is not optimized. > > Can you tell me, if it is possible to encode only one time the video and add different languages to this video? > > In fact, to optimize cpu usage I would like to encode only once each video resolution > > ---- 1280x720 ------> 3 outputs with audio 0:1, 0:2, 0:3 ... > | > TS input --------- 800x450 -------> 3 outputs with audio 0:1, 0:2, 0:3 ... > | > ----- 384x216 ------> 2 output with audio 0:1, 0:2, 0:3 ... > > I am also surprised by the cpu usage of this command line. With a 8 cores X3450, this command line use 30% on all cores. When I add 3 outputs the cpu usage increase slightly but ffmpeg is not able to do 25 fps transcoding and then I see buffering on the output streams. I tried to nice ffmpeg but It is not better. I hoped to encode more streams with this CPU. > > > Regards, > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From h.reindl at thelounge.net Fri May 31 17:39:22 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 31 May 2013 17:39:22 +0200 Subject: [FFmpeg-user] How to optimize transcoding cpu usage In-Reply-To: <51A8B907.5010306@gmail.com> References: <1370007707.27202.YahooMailNeo@web133203.mail.ir2.yahoo.com> <51A8B907.5010306@gmail.com> Message-ID: <51A8C42A.6030305@thelounge.net> why should you do this? it uses as much cores as available *as default* but not all can be done in parallel and since the OP refers to nice at the same time as "more with this CPU" nobody knows if he wants his CPU more or less used Am 31.05.2013 16:51, schrieb Stefan: > Shouldn't you use -threads 0 for libx264 to get maximum multi-core usage? > > Op 31/05/2013 15:41, Rala Wa schreef: >> Hi, >> >> >> I am currently trying to transcode an udp TS stream which contains 1 video stream and 4 audio streams. >> >> I'm using this command line: >> >> ffmpeg -i "udp://239.255.0.10:1234?fifo_size=1000000" \ >> -map 0:0 -codec:v libx264 -s 1280x720 -profile:v baseline -preset:v superfast -g 125 -vb 1500k -map 0:1 >> -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/720p \ >> -map 0:0 -codec:v libx264 -s 800x450 -profile:v baseline -preset:v superfast -g 125 -vb 800k -map 0:1 >> -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/450p \ >> -map 0:0 -codec:v libx264 -s 384x216 -profile:v baseline -preset:v superfast -g 125 -vb 300k -map 0:1 >> -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/1/216p \ >> -map 0:0 -codec:v libx264 -s 1280x720 -profile:v baseline -preset:v superfast -g 125 -vb 1500k -map 0:2 >> -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/720p \ >> -map 0:0 -codec:v libx264 -s 800x450 -profile:v baseline -preset:v superfast -g 125 -vb 800k -map 0:2 >> -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/450p \ >> -map 0:0 -codec:v libx264 -s 384x216 -profile:v baseline -preset:v superfast -g 125 -vb 300k -map 0:2 >> -codec:a aac -ab 64000 -ar 48000 -ac 2 -strict experimental -f flv rtmp://host/2/216p >> >> With this command line I encode 6 streams, 3 quality for 2 langs. >> In this command line I, for example, transcode two times the 1280x720 video resolution which I think is not >> optimized. >> >> Can you tell me, if it is possible to encode only one time the video and add different languages to this video? >> >> In fact, to optimize cpu usage I would like to encode only once each video resolution >> >> ---- 1280x720 ------> 3 outputs with audio 0:1, 0:2, 0:3 ... >> | >> TS input --------- 800x450 -------> 3 outputs with audio 0:1, 0:2, 0:3 ... >> | >> ----- 384x216 ------> 2 output with audio 0:1, 0:2, 0:3 ... >> >> I am also surprised by the cpu usage of this command line. With a 8 cores X3450, this command line use 30% on all >> cores. When I add 3 outputs the cpu usage increase slightly but ffmpeg is not able to do 25 fps transcoding and >> then I see buffering on the output streams. I tried to nice ffmpeg but It is not better. I hoped to encode more >> streams with this CPU -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: