From stefasab at gmail.com Sat Sep 1 00:09:44 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Sat, 1 Sep 2012 00:09:44 +0200 Subject: [FFmpeg-user] asetnsamples loses channel layout? In-Reply-To: References: Message-ID: <20120831220944.GJ14441@arborea> On date Thursday 2012-08-30 14:45:06 -0600, Roger Pack encoded: > Hello. > I noticed that: > > ffmpeg.exe -filter_complex "amovie=mono.wav [l] ; amovie=mono.wav [r] > ; [l] [r] amerge" -y yo.wav > > works fine, but if I add "setnsamples" into each audio stream, I get > the following: > > $ ffmpeg.exe -filter_complex "amovie=mono.wav [l] ; amovie=mono.wav > [r] ; [l] asetnsamples=n=1000 [l1]; [r] asetnsamples=n=1000 [r1]; [l1] > [r1] amerge" -y yo.wav This is actually a bug in amerge, it is the same if you change asetnsamples with anull. -- ffmpeg-user random tip #0 Please try to use a reasonably recent version of ffmpeg before asking questions to ffmpeg-user: older versions aren't supported here! From dielsonscarvalho at gmail.com Sat Sep 1 00:11:18 2012 From: dielsonscarvalho at gmail.com (Dielson Sales) Date: Fri, 31 Aug 2012 19:11:18 -0300 Subject: [FFmpeg-user] Need code to convert MP4 to DivX AVI In-Reply-To: <50389D93.301@AleksandrSolzhenitsyn.net> References: <5035817D.9040207@AleksandrSolzhenitsyn.net> <50389D93.301@AleksandrSolzhenitsyn.net> Message-ID: 2012/8/25 . > Thanks. > > I'm trying to convert mp4's and put them on my Eclipse T2800 in avi > format. Sadly, the code line below didn't work. Oh well, what do I > expect from a mp3/avi player that cost $42? > Using "-vcodec mpeg4" and "-vtag xvid" works fine for me to play it on DVD. Some resolutions, though, can't be played. So I'd suggest you to use predefined resolutions like vga, svga, sxga etc. From bbutscheidt at yahoo.de Sat Sep 1 11:20:19 2012 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sat, 1 Sep 2012 10:20:19 +0100 (BST) Subject: [FFmpeg-user] How do I encode DVB Subtitles? In-Reply-To: References: <1345392218.32091.YahooMailNeo@web132104.mail.ird.yahoo.com> Message-ID: <1346491219.18248.YahooMailNeo@web132105.mail.ird.yahoo.com> ________________________________ > From: Roger Pack >To: FFmpeg user questions >Sent: Monday, August 20, 2012 6:07 PM >Subject: Re: [FFmpeg-user] How do I encode DVB Subtitles? > >> Complete output at the end - so far - no errors. FFmpeg used to complain in my memories when trying to remux subtitles. But even mediainfo showing that there is a subtitle stream, I cannot visualize it neither with mplayer, vlc or xine or demux it with ProjectX (which is possible using the uncut original recording). > >what about ffplay? :) >-r Sorry for the long delay. Here is another example using ffplay: 1. ffplay output playing the source file. DVBsubs are shown! 2. the cutting with ffmpeg 3. ffplay output of the cut file. A subtitle stream is shown but the streams seems to empty (no subtitles are shown on the screen). ==================================== 1. ffplay output playing the source file. DVBsubs are shown! ./ffplay_g /w_LD2/ProjectX/Break_up_smart.ts ffplay version 0.11.1.git Copyright (c) 2003-2012 the FFmpeg developers ? built on Sep? 1 2012 10:49:23 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r ? libavutil????? 51. 70.100 / 51. 70.100 ? libavcodec???? 54. 55.100 / 54. 55.100 ? libavformat??? 54. 25.104 / 54. 25.104 ? libavdevice??? 54.? 2.100 / 54.? 2.100 ? libavfilter???? 3. 15.101 /? 3. 15.101 ? libswscale????? 2.? 1.101 /? 2.? 1.101 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [mpegts @ 0x2c56de0] max_analyze_duration 5000000 reached at 5000000 Input #0, mpegts, from '/w_LD2/ProjectX/Break_up_smart.ts': ? Duration: 01:39:25.09, start: 43067.989300, bitrate: 9116 kb/s ? Program 132 ??? Stream #0:0[0x93a]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 49 fps, 50 tbr, 90k tbn, 50 tbc ??? Stream #0:1[0x941]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16, 192 kb/s ??? Stream #0:2[0x93b](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s ??? Stream #0:3[0x924](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Frame changed from size:0x0 to size:1920x1080KB vq= 4616KB sq=??? 0B f=0/0?? [h264 @ 0x2dcdbc0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 0x2d66d60] mmco: unref short failure4929KB sq=??? 0B f=0/0?? [h264 @ 0x2c8c6c0] mmco: unref short failure 43070.81 A-V: -0.008 fd=? 10 aq=? 422KB vq=14927KB sq=??? 0B f=1/0? ========================================================= 2. the cutting with ffmpeg ./ffmpeg_g -i /w_LD2/ProjectX/Break_up_smart.ts -map 0:0 -vcodec copy -map 0:2 -acodec copy -map 0:3 -scodec copy -ss 0:04:57.31 -t 00:01:30.850 Break_up_smart_cut_1.ts ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers ? built on Sep? 1 2012 10:49:23 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r ? libavutil????? 51. 70.100 / 51. 70.100 ? libavcodec???? 54. 55.100 / 54. 55.100 ? libavformat??? 54. 25.104 / 54. 25.104 ? libavdevice??? 54.? 2.100 / 54.? 2.100 ? libavfilter???? 3. 15.101 /? 3. 15.101 ? libswscale????? 2.? 1.101 /? 2.? 1.101 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [mpegts @ 0x33d4240] max_analyze_duration 5000000 reached at 5000000 Input #0, mpegts, from 'Break_up_smart.ts': ? Duration: 01:39:25.09, start: 43067.989300, bitrate: 9116 kb/s ? Program 132 ??? Stream #0:0[0x93a]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 49 fps, 50 tbr, 90k tbn, 50 tbc ??? Stream #0:1[0x941]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16, 192 kb/s ??? Stream #0:2[0x93b](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s ??? Stream #0:3[0x924](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) [mpegts @ 0x33dbf60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'Break_up_smart_cut_1.ts': ? Metadata: ??? encoder???????? : Lavf54.25.104 ??? Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 49 fps, 90k tbn, 25 tbc ??? Stream #0:1(eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, 256 kb/s ??? Stream #0:2(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream mapping: ? Stream #0:0 -> #0:0 (copy) ? Stream #0:2 -> #0:1 (copy) ? Stream #0:3 -> #0:2 (copy) Press [q] to stop, [?] for help frame= 4541 fps=408 q=-1.0 Lsize=?? 87471kB time=00:01:30.87 bitrate=7885.2kbits/s??? video:77383kB audio:2839kB subtitle:242 global headers:0kB muxing overhead 8.708271% ========================================================== ffplay output of the cut file. A subtitle stream is shown but the streams seems to empty (no subtitles are shown on the screen). ./ffplay_g /w_LD2/ProjectX/Break_up_smart_cut_1.ts ffplay version 0.11.1.git Copyright (c) 2003-2012 the FFmpeg developers ? built on Sep? 1 2012 10:49:23 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r ? libavutil????? 51. 70.100 / 51. 70.100 ? libavcodec???? 54. 55.100 / 54. 55.100 ? libavformat??? 54. 25.104 / 54. 25.104 ? libavdevice??? 54.? 2.100 / 54.? 2.100 ? libavfilter???? 3. 15.101 /? 3. 15.101 ? libswscale????? 2.? 1.101 /? 2.? 1.101 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [h264 @ 0x2b2cdc0] mmco: unref short failure ??? Last message repeated 5 times [mpegts @ 0x2b0bd20] max_analyze_duration 5000000 reached at 5000000 [NULL @ 0x2b0b1a0] start time is not set in estimate_timings_from_pts Input #0, mpegts, from '/w_LD2/ProjectX/Break_up_smart_cut_1.ts': ? Duration: 00:01:30.94, start: 1.426711, bitrate: 7879 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], 50 fps, 50 tbr, 90k tbn, 50 tbc ??? Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, s16, 256 kb/s ??? Stream #0:2[0x102](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) [h264 @ 0x2c30d60] mmco: unref short failureKB vq= 3410KB sq=??? 0B f=0/0?? ??? Last message repeated 1 times 0 aq=? 307KB vq= 5952KB sq=??? 0B f=0/0?? [h264 @ 0x2bec0c0] mmco: unref short failure ??? Last message repeated 3 times 0 aq=? 728KB vq=14637KB sq=??? 0B f=0/0?? Frame changed from size:0x0 to size:1920x1080 ? 79.01 A-V:? 0.010 fd=? 14 aq=? 452KB vq=14722KB sq=??? 0B f=0/0?? f=0/0 From pinakee at vvidiacom.com Sat Sep 1 12:02:25 2012 From: pinakee at vvidiacom.com (Biswas, Pinakee) Date: Sat, 1 Sep 2012 15:32:25 +0530 Subject: [FFmpeg-user] H.263v3 (H.263++ or H.263 2000) Message-ID: <004b01cd8828$e5e03d40$b1a0b7c0$@vvidiacom.com> Hi, Could you please let me know if there is a way to encode or convert videos to H.263++ (H.263 2000) codec in a 3gp container? I am not sure if it can be done using ffmpeg. Most of the mobile devices support (also as per 3GPP PSS spec) H.263-2000 codec. Looking forward to your response. Thanks, Pinakee P Please don't print this e-mail unless you really need to, this will preserve trees on planet earth. ----------------------------Disclaimer-------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- --------- The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Please note that e-mails are susceptible to change and malwares. VVIDIA COMMUNICATIONS PVT LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. ---------------------------------------------------------------------------- ---------------------------------------------Disclaimer--------------------- ---------------------------------------------------------------------------- --------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 168 bytes Desc: not available URL: From ttguy1 at gmail.com Sat Sep 1 14:42:00 2012 From: ttguy1 at gmail.com (Roger Morton) Date: Sat, 01 Sep 2012 22:42:00 +1000 Subject: [FFmpeg-user] rtmpdump works / ffmpeg fails - swf verification and saving a stream Message-ID: <1346503320.19408.20.camel@DESKTOP-TOYROOM> I have a rtmpdump command that succeeds in downloading a stream from ABCtv Austalias iView service rtmpdump -V --rtmp rtmp://cp53909.edgefcs.net:1935 --app 'ondemand?auth=daEd5bbb.djagdyb5cNcNblcidmb0b3atbV-bqqFvX-8-qlm_tHAnL&aifp=v001' --playpath mp4:flash/playback/_definst_/catalyst_13_15.mp4 --swfVfy http://www.abc.net.au/iview/images/iview.jpg -o /home/god/Videos/catalyst3.mp4 The above command downloads the whole file. But when I try and convert it to a similar command for use with ffmpeg [below] it fails. (I need to use ffmpeg because I am writing a plugin for the Serviio media server) ffmpeg -report -i "rtmp://cp53909.edgefcs.net:1935/mp4:flash/playback/_definst_/catalyst_13_15.mp4 app='ondemand?auth=daEbQaza1aTbSa7dZbXdTavcLa9dVcEdhdX-bqqFHH-8-lkq_uEwoJ&aifp=v001' playpath=mp4:flash/playback/_definst_/catalyst_13_15.mp4 swfUrl=http://www.abc.net.au/iview/images/iview.jpg swfVfy=1" /home/god/Videos/catalyst3.mp4 I few points about these commands. I need to to swfVerification on these streams and I am using http://www.abc.net.au/iview/images/iview.jpg as the .swf file to verify against. The syntax in rtmpdump for --swfVfy switch is "--swfVfy|-W url URL to player swf file, compute hash/size automatically" Normally the swfVfy URL would be a .swf file. But I believe this service has renamed a .swf file to a .jpg to obfuscate a bit. There are 3 reasons why I believe the verification URL is the iview.jpg 1. The file is not really a jpg - will not display in the browser as one 2. Using it works in rtmpdump 3. Not using it but using a swfsize and swfhash matching it also works. To reproduce this issue you might need to live in Australia (geo blocking on the iView stuff). And you need to get auth tokens from http://tviview.abc.net.au/iview/auth/?v2 Is this difference in behavior between rtmpdump and ffmpeg an issue with my translation of the commands - annoyingly it appears the parameter named swfVfy is a URL in rtmpdump but a true/false switch in ffmpeg - so I might have stuffed up something. Or does this difference reflect some sort of issue with ffmpeg - perhaps how it behaves when ask to do swf verification on a file without a .swf file extension? * * * * * * * * * * Successful rtmpdump command rtmpdump -V --rtmp rtmp://cp53909.edgefcs.net:1935 --app 'ondemand?auth=daEd5bbb.djagdyb5cNcNblcidmb0b3atbV-bqqFvX-8-qlm_tHAnL&aifp=v001' --playpath mp4:flash/playback/_definst_/catalyst_13_15.mp4 --swfVfy http://www.abc.net.au/iview/images/iview.jpg -o /home/god/Videos/catalyst3.mp4 RTMPDump v2.4 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL DEBUG: Parsing... DEBUG: Parsed protocol: 0 DEBUG: Parsed host : cp53909.edgefcs.net WARNING: No application or playpath in URL! DEBUG: Protocol : RTMP DEBUG: Hostname : cp53909.edgefcs.net DEBUG: Port : 1935 DEBUG: Playpath : mp4:flash/playback/_definst_/catalyst_13_15.mp4 DEBUG: tcUrl : rtmp://cp53909.edgefcs.net:1935/ondemand?auth=daEd5bbb.djagdyb5cNcNblcidmb0b3atbV-bqqFvX-8-qlm_tHAnL&aifp=v001 DEBUG: swfUrl : http://www.abc.net.au/iview/images/iview.jpg DEBUG: app : ondemand?auth=daEd5bbb.djagdyb5cNcNblcidmb0b3atbV-bqqFvX-8-qlm_tHAnL&aifp=v001 DEBUG: live : no DEBUG: timeout : 30 sec DEBUG: SWFSHA256: DEBUG: 96 cc 76 f1 d5 38 5f b5 cd a6 e2 ce 5c 73 32 3a DEBUG: 39 90 43 d0 bb 6c 68 7e dd 80 7e 5c 73 c4 2b 37 DEBUG: SWFSize : 2122 DEBUG: Setting buffer time to: 36000000ms Connecting ... DEBUG: RTMP_Connect1, ... connected, handshaking DEBUG: HandShake: Client type: 03 DEBUG: HandShake: Client digest offset: 430 DEBUG: HandShake: Initial client digest: DEBUG: 09 ef b9 33 72 d1 96 9b c5 65 de e8 09 3c 3d b3 DEBUG: a2 d7 c5 9f 40 d2 3e aa c6 3c 90 eb ee 8d a3 26 DEBUG: HandShake: Type Answer : 03 DEBUG: HandShake: Server Uptime : 1014319344 DEBUG: HandShake: FMS Version : 3.5.7.1 DEBUG: HandShake: Calculated digest key from secure key and server digest: DEBUG: a0 77 7e ff 5a 97 8e 29 38 ab 2a 4d 4f 62 da ff DEBUG: 42 4e 37 e6 55 77 23 d5 d9 e9 ff 93 1a f1 86 b6 DEBUG: HandShake: Client signature calculated: DEBUG: 05 5e 2a 23 cd bc 9c 9a 60 ef 38 ed 6b 65 5d f9 DEBUG: c3 a9 35 58 f9 e5 4f 1b 71 23 57 83 58 2f 0e 60 DEBUG: HandShake: Server sent signature: DEBUG: f5 de e4 87 8d 2c 94 f6 d6 fe 10 7b bc df 90 c3 DEBUG: b4 e1 04 cb 88 1d 26 e4 69 67 3d 1d 80 00 3c a8 DEBUG: HandShake: Digest key: DEBUG: 62 fc 85 f4 c9 b7 64 fe df 0f 11 c4 2f 89 c0 36 DEBUG: 01 1d 09 85 0f c7 03 cd c7 3c ff 30 53 7f 69 41 DEBUG: HandShake: Signature calculated: DEBUG: f5 de e4 87 8d 2c 94 f6 d6 fe 10 7b bc df 90 c3 DEBUG: b4 e1 04 cb 88 1d 26 e4 69 67 3d 1d 80 00 3c a8 DEBUG: HandShake: Genuine Adobe Flash Media Server DEBUG: HandShake: Handshaking finished.... DEBUG: RTMP_Connect1, handshaked DEBUG: Invoking connect INFO: Connected... DEBUG: HandleServerBW: server BW = 1250000 DEBUG: HandleClientBW: client BW = 1250000 2 DEBUG: HandleCtrl, received ctrl. type: 26, len: 3 DEBUG: HandleCtrl, SWFVerification ping received: DEBUG: sending ctrl. type: 0x001b DEBUG: Sending SWFVerification response: DEBUG: 00 1b 01 01 00 00 08 4a 00 00 08 4a 91 b0 91 20 DEBUG: 8f 46 07 c4 32 5c 71 e9 a3 43 a0 89 8b fc cf f0 DEBUG: ec 85 6c d8 55 35 1d 21 91 28 2e 07 DEBUG: RTMP_ClientPacket, received: invoke 242 bytes DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object end) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object begin) DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: (object end) DEBUG: HandleInvoke, server invoking <_result> DEBUG: HandleInvoke, received result for method call DEBUG: sending ctrl. type: 0x0003 DEBUG: Invoking createStream DEBUG: RTMP_ClientPacket, received: invoke 21 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object end) DEBUG: HandleInvoke, server invoking DEBUG: Invoking _checkbw DEBUG: RTMP_ClientPacket, received: invoke 29 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object end) DEBUG: HandleInvoke, server invoking <_result> DEBUG: HandleInvoke, received result for method call DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:flash/playback/_definst_/catalyst_13_15.mp4 DEBUG: Invoking play DEBUG: sending ctrl. type: 0x0003 DEBUG: RTMP_ClientPacket, received: invoke 10275 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object end) DEBUG: HandleInvoke, server invoking <_onbwcheck> DEBUG: Invoking _result DEBUG: HandleChangeChunkSize, received: chunk size change to 4096 DEBUG: HandleCtrl, received ctrl. type: 4, len: 6 DEBUG: HandleCtrl, Stream IsRecorded 1 DEBUG: HandleCtrl, received ctrl. type: 0, len: 6 DEBUG: HandleCtrl, Stream Begin 1 DEBUG: RTMP_ClientPacket, received: invoke 228 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: HandleInvoke, server invoking DEBUG: HandleInvoke, onStatus: NetStream.Play.Reset DEBUG: RTMP_ClientPacket, received: invoke 222 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: HandleInvoke, server invoking DEBUG: HandleInvoke, onStatus: NetStream.Play.Start Starting download at: 0.000 kB DEBUG: RTMP_ClientPacket, received: notify 24 bytes DEBUG: (object begin) DEBUG: (object end) DEBUG: ignoring too small audio packet: size: 0 DEBUG: RTMP_ClientPacket, received: notify 44 bytes DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: RTMP_ClientPacket, received: invoke 57 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object end) DEBUG: HandleInvoke, server invoking DEBUG: RTMP_ClientPacket, received: invoke 20 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object end) DEBUG: HandleInvoke, server invoking <_result> DEBUG: HandleInvoke, received result id 0 without matching request DEBUG: RTMP_ClientPacket, received: notify 592 bytes DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: (object end) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: (object end) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object begin) DEBUG: (object end) DEBUG: (object end) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object begin) DEBUG: (object end) DEBUG: (object end) DEBUG: (object end) DEBUG: (object end) DEBUG: (object end) INFO: Metadata: INFO: duration 1624.33 INFO: moovPosition 36.00 INFO: width 640.00 INFO: height 360.00 INFO: videocodecid avc1 INFO: audiocodecid mp4a INFO: avcprofile 77.00 INFO: avclevel 31.00 INFO: aacaot 2.00 INFO: videoframerate 25.00 INFO: audiosamplerate 44100.00 INFO: audiochannels 2.00 INFO: trackinfo: INFO: length 974616.00 INFO: timescale 600.00 INFO: sampledescription: INFO: sampletype avc1 INFO: length 71632858.00 INFO: timescale 44100.00 INFO: sampledescription: INFO: sampletype mp4a INFO: length 600.00 INFO: timescale 600.00 INFO: sampledescription: INFO: length 600.00 INFO: timescale 600.00 INFO: sampledescription: 131117.779 kB / 1622.16 sec (99.8%) DEBUG: ignoring too small audio packet: size: 0 DEBUG: RTMP_ClientPacket, received: notify 102 bytes DEBUG: (object begin) DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: HandleCtrl, received ctrl. type: 1, len: 6 DEBUG: HandleCtrl, Stream EOF 1 DEBUG: RTMP_ClientPacket, received: invoke 232 bytes DEBUG: (object begin) DEBUG: Property: NULL DEBUG: (object begin) DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: Property: DEBUG: (object end) DEBUG: (object end) DEBUG: HandleInvoke, server invoking DEBUG: HandleInvoke, onStatus: NetStream.Play.Stop DEBUG: Invoking deleteStream DEBUG: Got Play.Complete or Play.Stop from server. Assuming stream is complete 131293.627 kB / 1624.33 sec (100.0%) DEBUG: RTMP_Read returned: 0 Download complete DEBUG: Closing connection. * * * ** * * ** * * ** * * ** * * ** * * ** * * ** * * ** * * ** * * ** failing ffmpeg command ffmpeg -report -i "rtmp://cp53909.edgefcs.net:1935/mp4:flash/playback/_definst_/catalyst_13_15.mp4 app='ondemand?auth=daEbQaza1aTbSa7dZbXdTavcLa9dVcEdhdX-bqqFHH-8-lkq_uEwoJ&aifp=v001' playpath=mp4:flash/playback/_definst_/catalyst_13_15.mp4 swfUrl=http://www.abc.net.au/iview/images/iview.jpg swfVfy=1" /home/god/Videos/catalyst3.mp4 libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 54.100 / 54. 54.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 11.101 / 3. 11.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Parsing... Parsed protocol: 0 Parsed host : cp53909.edgefcs.net Parsed app : mp4:flash/playback RTMP_Connect1, ... connected, handshaking HandShake: Client type: 03 HandShake: Client digest offset: 430 HandShake: Initial client digest: f1 01 dc 10 3f 74 4c 08 93 bd b8 eb 05 d4 31 f7 90 f5 98 f6 03 d5 1b 86 18 ca 88 84 b0 b6 e0 2c HandShake: Type Answer : 03 HandShake: Server Uptime : 1014766743 HandShake: FMS Version : 3.5.7.1 HandShake: Calculated digest key from secure key and server digest: 13 60 f5 58 84 85 ec 1f a8 a0 53 71 26 69 d5 8b c1 5d 50 67 7b 8a 0e 9f 7c 7c a7 70 91 1c 32 57 HandShake: Client signature calculated: 9c 48 ce 3b 6d 78 07 c9 56 a2 87 f0 d9 3b 96 35 f4 2e 5d 7a c1 fa c0 92 8c 7b 2a da 7e e5 9a fe HandShake: Server sent signature: da 57 70 71 63 d8 09 62 d1 17 6a 26 28 d0 39 8c 60 50 38 50 e8 28 4d 1a 24 13 eb 75 3e 1a af 2d HandShake: Digest key: 0e 18 1d b5 0b b1 ef 45 3c b3 e9 98 d2 8c 4f 54 9c 74 e7 a9 fa 63 a7 d2 2b b0 8e fc 5d 3d 16 b2 HandShake: Signature calculated: da 57 70 71 63 d8 09 62 d1 17 6a 26 28 d0 39 8c 60 50 38 50 e8 28 4d 1a 24 13 eb 75 3e 1a af 2d HandShake: Genuine Adobe Flash Media Server HandShake: Handshaking finished.... RTMP_Connect1, handshaked Invoking connect RTMP_ClientPacket, received: invoke 134 bytes (object begin) Property: Property: Property: NULL Property: (object begin) Property: Property: Property: (object end) (object end) HandleInvoke, server invoking <_error> rtmp server sent error RTMP_ClientPacket, received: invoke 18 bytes (object begin) Property: Property: Property: NULL (object end) HandleInvoke, server invoking rtmp server requested close -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: From cehoyos at ag.or.at Sat Sep 1 19:51:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 1 Sep 2012 17:51:09 +0000 (UTC) Subject: [FFmpeg-user] H.263v3 (H.263++ or H.263 2000) References: <004b01cd8828$e5e03d40$b1a0b7c0$@vvidiacom.com> Message-ID: Biswas, Pinakee vvidiacom.com> writes: > Could you please let me know if there is a way to encode > or convert videos to H.263++ (H.263 2000) codec in a 3gp > container? Which specific feature of H263v3 do you need? [...] > The information contained in this message (including any > attachments) is confidential and may be privileged. This makes no sense for mails sent to a public mailing list. Carl Eugen From mylaneza at gmail.com Sun Sep 2 00:23:14 2012 From: mylaneza at gmail.com (Ignacio Gonzalez) Date: Sat, 1 Sep 2012 17:23:14 -0500 Subject: [FFmpeg-user] I need to know how to check when a file ends to display Message-ID: Hello everybody, i am trying to create a waitForPlayDone( ) function, but i am not having good results, ffplay with only the file to play as a parameter does not tell us when the file ends to play. I took ffplay as my base code. Thanks. From blackmental09 at yahoo.de Sat Sep 1 03:27:30 2012 From: blackmental09 at yahoo.de (blacky94) Date: Fri, 31 Aug 2012 18:27:30 -0700 (PDT) Subject: [FFmpeg-user] Unknown encoder 'libx264' Message-ID: <1346462850189-4653121.post@n4.nabble.com> Hi, I have a problem with ffmpeg, always when i try to encode a video with this line: ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 "output.mp4" on my vserver (debian 6.0), the error message Unknown encoder 'libx264' appears. I used this tutorial to install ffmpeg http://www.zoharbabin.com/build-and-install-ffmpeg-and-x264-on-debian-squeeze-the-dumb-guide. Here is the full output of the console: ~/mov# ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 "output.mp4" ffmpeg version git-2012-08-31-dfb4757 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 31 2012 23:32:29 with gcc 4.4.5 (Debian 4.4.5-8) configuration: --enable-shared libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.101 / 3. 15.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 Input #0, matroska,webm, from 'mov.mkv': Metadata: creation_time : 2012-08-31 18:53:58 Duration: 00:24:05.24, start: 0.000000, bitrate: 1865 kb/s Chapter #0.0: start 0.333000, end 53.136000 Metadata: title : Intro Chapter #0.1: start 53.136000, end 143.143000 Metadata: title : OP Chapter #0.2: start 143.143000, end 643.101000 Metadata: title : Part A Chapter #0.3: start 643.101000, end 1355.145000 Metadata: title : Part B Chapter #0.4: start 1355.145000, end 1445.247000 Metadata: title : ED Stream #0:0(eng): Video: h264 (High 10), yuv420p10le, 1024x576, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) Stream #0:2: Subtitle: ssa (default) Codec 0x18000 is not in the full list. Stream #0:3: Attachment: unknown_codec Metadata: filename : Baskerville_Old_Face.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:4: Attachment: unknown_codec Metadata: filename : karet.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:5: Attachment: unknown_codec Metadata: filename : LTFinnegan_Medium.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:6: Attachment: unknown_codec Metadata: filename : LTFinnegan_MediumItalic.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:7: Attachment: unknown_codec Metadata: filename : arabtype.ttf mimetype : application/x-truetype-font Please use -b:a or -b:v, -b is ambiguous Unknown encoder 'libx264' I hope you can help me. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Unknown-encoder-libx264-tp4653121.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefasab at gmail.com Sun Sep 2 01:14:10 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 2 Sep 2012 01:14:10 +0200 Subject: [FFmpeg-user] Unknown encoder 'libx264' In-Reply-To: <1346462850189-4653121.post@n4.nabble.com> References: <1346462850189-4653121.post@n4.nabble.com> Message-ID: <20120901231410.GB2253@arborea> On date Friday 2012-08-31 18:27:30 -0700, blacky94 encoded: > Hi, > > I have a problem with ffmpeg, always when i try to encode a video with this > line: > ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 "output.mp4" > on my vserver (debian 6.0), the error message Unknown encoder 'libx264' > appears. > I used this tutorial to install ffmpeg > http://www.zoharbabin.com/build-and-install-ffmpeg-and-x264-on-debian-squeeze-the-dumb-guide. > > Here is the full output of the console: > > ~/mov# ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 "output.mp4" > ffmpeg version git-2012-08-31-dfb4757 Copyright (c) 2000-2012 the FFmpeg > developers > built on Aug 31 2012 23:32:29 with gcc 4.4.5 (Debian 4.4.5-8) > configuration: --enable-shared You need to compile with --enable-libx264. [...] -- ffmpeg-user random tip #15 Please submit bugreports to: https://ffmpeg.org/trac/ffmpeg/report instead of this mailinglist. From Joshua.Tidsbury at bellmedia.ca Sun Sep 2 01:15:19 2012 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Sat, 1 Sep 2012 23:15:19 +0000 Subject: [FFmpeg-user] Unknown encoder 'libx264' In-Reply-To: <1346462850189-4653121.post@n4.nabble.com> References: <1346462850189-4653121.post@n4.nabble.com> Message-ID: On 2012-09-01, at 6:59 PM, "blacky94" wrote: > Hi, > > I have a problem with ffmpeg, always when i try to encode a video with this > line: > ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 "output.mp4" > on my vserver (debian 6.0), the error message Unknown encoder 'libx264' > appears. > I used this tutorial to install ffmpeg > http://www.zoharbabin.com/build-and-install-ffmpeg-and-x264-on-debian-squeeze-the-dumb-guide. The tutorial has errors and is not including libx264 when compiling. The configure line when setting up for the ffmpeg compile needs to include "--enable-libx264" Josh From lou at lrcd.com Sun Sep 2 01:19:40 2012 From: lou at lrcd.com (Lou Logan) Date: Sat, 01 Sep 2012 15:19:40 -0800 Subject: [FFmpeg-user] Unknown encoder 'libx264' In-Reply-To: <1346462850189-4653121.post@n4.nabble.com> References: <1346462850189-4653121.post@n4.nabble.com> Message-ID: <1346541580.20813.140661122490209.764269C5@webmail.messagingengine.com> On Fri, Aug 31, 2012, at 05:27 PM, blacky94 wrote: > Hi, > > I have a problem with ffmpeg, always when i try to encode a video with > this line: ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 > "output.mp4" on my vserver (debian 6.0), the error message Unknown > encoder 'libx264' appears. I used this tutorial to install ffmpeg > http://www.zoharbabin.com/build-and-install-ffmpeg-and-x264-on-debian-squeeze-the-dumb-guide. This is a terrible guide: * Development packages for x264 and ffmpeg are listed as dependencies although you are going to be compiling x264 and ffmpeg from source. * It installs stuff outside of the package management system. * '--enable-shared' is used for almost everything for no apparent reason. * Several useless packages are installed (libfaad-dev) and some external libraries are very questionable as to their usefulness for the general public. Most importantly (and the reason for your error): * None of the many external libraries that are installed are actually enabled in the ffmpeg configure step! To enable libx264 you need '--enable- gpl' and '--enable-libx264'. I recommend reverting everything the guide does and adapting this sane guide for Ubuntu: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide ...or the Hardy version might be more suitable for you (I'm not sure of the status of Yasm in Squeeze): http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideHardy From guerra.rossana at gmail.com Sun Sep 2 01:21:34 2012 From: guerra.rossana at gmail.com (Rossana Guerra) Date: Sat, 1 Sep 2012 20:21:34 -0300 Subject: [FFmpeg-user] Unknown encoder 'libx264' In-Reply-To: References: <1346462850189-4653121.post@n4.nabble.com> Message-ID: 2012/9/1 Joshua Tidsbury > On 2012-09-01, at 6:59 PM, "blacky94" wrote: > > > Hi, > > > > I have a problem with ffmpeg, always when i try to encode a video with > this > > line: > > ffmpeg -i "mov.mkv" -an -b 700k -r 25 -vcodec libx264 "output.mp4" > > on my vserver (debian 6.0), the error message Unknown encoder 'libx264' > > appears. > > I used this tutorial to install ffmpeg > > > http://www.zoharbabin.com/build-and-install-ffmpeg-and-x264-on-debian-squeeze-the-dumb-guide > . > > The tutorial has errors and is not including libx264 when compiling. > > The configure line when setting up for the ffmpeg compile needs to include > "--enable-libx264" > > Josh > I thinks you need the libavcodec-extra-52 from multiverse repository. greets _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From lou at lrcd.com Sun Sep 2 01:29:09 2012 From: lou at lrcd.com (Lou Logan) Date: Sat, 01 Sep 2012 15:29:09 -0800 Subject: [FFmpeg-user] Unknown encoder 'libx264' In-Reply-To: References: <1346462850189-4653121.post@n4.nabble.com> Message-ID: <1346542149.22271.140661122494909.0D049ACD@webmail.messagingengine.com> On Sat, Sep 1, 2012, at 03:21 PM, Rossana Guerra wrote: > > I thinks you need the libavcodec-extra-52 from multiverse repository. This package is unnecessary if ffmpeg is going to be compiled from source. libavcodec-extra- 5* is only recommended if you are insistent on using the crappy version of "ffmpeg" from the Ubuntu repository. From guerra.rossana at gmail.com Sun Sep 2 01:31:17 2012 From: guerra.rossana at gmail.com (Rossana Guerra) Date: Sat, 1 Sep 2012 20:31:17 -0300 Subject: [FFmpeg-user] Unknown encoder 'libx264' In-Reply-To: <1346542149.22271.140661122494909.0D049ACD@webmail.messagingengine.com> References: <1346462850189-4653121.post@n4.nabble.com> <1346542149.22271.140661122494909.0D049ACD@webmail.messagingengine.com> Message-ID: 2012/9/1 Lou Logan > On Sat, Sep 1, 2012, at 03:21 PM, Rossana Guerra wrote: > > > > I thinks you need the libavcodec-extra-52 from multiverse repository. > > This package is unnecessary if ffmpeg is going to be compiled from > source. libavcodec-extra- 5* is only recommended if you are insistent on > using the crappy version of "ffmpeg" from the Ubuntu repository. > _______________________________________________ > ok, good advise. thanks > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From davorj at live.com Sun Sep 2 01:33:49 2012 From: davorj at live.com (Davor Josipovic) Date: Sun, 2 Sep 2012 01:33:49 +0200 Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed Message-ID: I am encoding ?dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s? to ?ac3, 48000 Hz, 5.1(side), flt, 640 kb/s? with this command: ffmpeg -i %tmp_orig_audio% -c:a ac3 -ab 640k -q:a 0 %tmp_enc_audio% Now, on an Intel i3 machine using only one core, approximately 60sec of this DTS stream is converted each second. It is almost as fast as the disk can write and read. Is this encoding speed normal or am I doing something wrong? I remember that encoding stereo with LAME on high compression was much much slower. So I wonder whether the quality of the resulting AC-3 stream is optimal? Can it be tweaked? From 103730258b at gmail.com Sun Sep 2 02:58:02 2012 From: 103730258b at gmail.com (maujhsn) Date: Sat, 1 Sep 2012 17:58:02 -0700 Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: References: Message-ID: Roger this a very good idea. A tutorial about this subject matter would be helpful...thanks! On Wed, Aug 29, 2012 at 7:02 AM, Roger Pack wrote: > Hello all. Is there any canonical "getting started with libav" (as a > library) documentation page? I see a link to a tutorial but nothing > else? I was tempted to start a wiki page with getting started > instructions...but thought I'd ask here first. > Thanks! > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Sun Sep 2 05:36:43 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 1 Sep 2012 21:36:43 -0600 Subject: [FFmpeg-user] I need to know how to check when a file ends to display In-Reply-To: References: Message-ID: > Hello everybody, i am trying to create a waitForPlayDone( ) function, but > i am not having good results, ffplay with only the file to play as a > parameter does not tell us when the file ends to play. I took ffplay as my > base code. ffplay has a -autoexit parameter if that helps at all :) -r From rogerdpack2 at gmail.com Sun Sep 2 05:38:52 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 1 Sep 2012 21:38:52 -0600 Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed In-Reply-To: References: Message-ID: > ffmpeg -i %tmp_orig_audio% -c:a ac3 -ab 640k -q:a 0 %tmp_enc_audio% > > Now, on an Intel i3 machine using only one core, approximately 60sec of > this DTS stream is converted each second. It is almost as fast as the disk > can write and read. > > Is this encoding speed normal or am I doing something wrong? What's your full command line and uncut console output? -r From rogerdpack2 at gmail.com Sun Sep 2 06:53:21 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 1 Sep 2012 22:53:21 -0600 Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: References: Message-ID: > Roger this a very good idea. A tutorial about this subject matter would be > helpful...thanks! > > On Wed, Aug 29, 2012 at 7:02 AM, Roger Pack wrote: > >> Hello all. Is there any canonical "getting started with libav" (as a >> library) documentation page? I see a link to a tutorial but nothing >> else? I was tempted to start a wiki page with getting started >> instructions...but thought I'd ask here first. Ok created a first pass of it here: http://ffmpeg.org/trac/ffmpeg/wiki/Using%20libav* feedback welcome :) -r From andycivil at gmail.com Sun Sep 2 07:15:40 2012 From: andycivil at gmail.com (Andy Civil) Date: Sun, 02 Sep 2012 01:15:40 -0400 Subject: [FFmpeg-user] Cutting video at i-frames to avoid recoding In-Reply-To: <003c01cd7e1c$91453b70$b3cfb250$@gmail.com> References: <5030096D.2090300@gmail.com> <20120818214306.GZ2276@arborea> <50304A44.8020901@gmail.com> <003c01cd7e1c$91453b70$b3cfb250$@gmail.com> Message-ID: <5042EB7C.3060203@gmail.com> On 2012-08-19 11:08 AM, Francois Visagie wrote: > > Experiment? You came up with some pretty decent-looking suggestions > yourself. I suspect your concern is whether ffmpeg will ensure that start > time and duration coincide in some way with I-frames. In the end, that's what I did. I'm reporting back, for anyone who searches the archives for the same information. Things got a bit easier when I found that 'ffprobe -show_frames' would give tons of information about frame types and times. My source file had i-frames at regular 0.5s intervals, and only p-frames otherwise, so I didn't have the complication of b-frames. To create an artificially bad situation, I used FFmpeg to produce a 30s file with a GOP of 300 (an i-frame every 10s at 30fps). I then asked it to 'copy' the file starting at 5 seconds in. What I got out was very interesting. The sound frames started at the beginning of the file at 0s, from 5s into the original just as I had asked. There were NO video frames at all until the first i-frame, which was originally timed at 10s, but was now timed at 5s in the new file because of my cut. In a way, this makes perfect sense, but it seemed odd that I now had a video file which had five seconds of sound with no picture at the start! (As a side issue, I noticed that FFmpeg had re-ordered the frames, the original had a bunch of audio frames, followed by a bunch of video frames; FFmpeg interleaved them more chronologically.) I was curious to know how this file would play. VLC obediently played the sound right from the start (at the 5s point of the original, of course) and continued to show its orange cone logo on the screen. At the 5s point when the first i-frame came along, the logo was replaced with the video. It was perfectly synchronised. This is obviously a good result. My only remaining concern was that my video editor (I use Vegas) would mess up, and ignore the frame times, leaving me with audio and video that were 5s out of synch. When I loaded the file in, I noticed that there was no missing 5s of video, as there had been on VLC. However, Vegas did not go out of synch, nor did it cut off the first five seconds of sound: what it did do was to grab that first i-frame and stretch it back to the start of the file. So the video was 'freeze framed' for five seconds while the audio was playing, then at the 5s point it continued perfectly. After these experiments, I'm confident to use FFmpeg to cut the garbage out of my 'original' footage, but knowing how this works, and having observed the 0.5s GOP on my original, I will also specify a start time that causes an i-frame to occur at the start of the cut file, for the cleanest result. -- Andy From phil_rhodes at rocketmail.com Sun Sep 2 19:46:58 2012 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sun, 2 Sep 2012 10:46:58 -0700 (PDT) Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: Message-ID: <1346608018.78313.YahooMailClassic@web121106.mail.ne1.yahoo.com> Might I suggest that this is a good exa --- On Sun, 2/9/12, Roger Pack wrote: > From: Roger Pack > Subject: Re: [FFmpeg-user] "getting started" for libav users > To: "FFmpeg user questions" > Date: Sunday, 2 September, 2012, 5:53 > > Roger this a very good idea. A > tutorial about this subject matter would be > > helpful...thanks! > > > > On Wed, Aug 29, 2012 at 7:02 AM, Roger Pack > wrote: > > > >> Hello all. Is there any canonical "getting started > with libav" (as a > >> library) documentation page? I see a link to a > tutorial but nothing > >> else? I was tempted to start a wiki page with > getting started > >> instructions...but thought I'd ask here first. > > Ok created a first pass of it here: > http://ffmpeg.org/trac/ffmpeg/wiki/Using%20libav* > feedback welcome :) > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From phil_rhodes at rocketmail.com Sun Sep 2 19:50:07 2012 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sun, 2 Sep 2012 10:50:07 -0700 (PDT) Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: Message-ID: <1346608207.13242.YahooMailClassic@web121102.mail.ne1.yahoo.com> As I was saying before the cat walked on the keyboard... Can I suggest that this is a good example of the way documentation should go: http://msdn.microsoft.com/en-us/library/windows/desktop/dd390352(v=vs.85).aspx I cite this not because it describes software that has a similar purpose to ffmpeg (though that doesn't hurt), but because I was able to understand and use directshow using that in a matter of a few hours, and directshow is a notoriously complex beast. Yes, I know it's Microsoft, and I know they're spawn of satan, etc, but MSDN is a thing of extreme beauty (in parts at least) and it's hard to argue with them on a documentation front. Useful as a function list is, it doesn't describe how to use the thing. Each function needs examples and a writeup on likely use cases. I occasionally make money as a technical writer and I would be pleased to help out with this - if I had the slightest idea how it was all supposed to work. P From davorj at live.com Sun Sep 2 21:15:48 2012 From: davorj at live.com (Davor Josipovic) Date: Sun, 02 Sep 2012 21:15:48 +0200 Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed In-Reply-To: References: Message-ID: <5043B064.1070902@live.com> On 2/09/2012 5:38, Roger Pack wrote: >> ffmpeg -i %tmp_orig_audio% -c:a ac3 -ab 640k -q:a 0 %tmp_enc_audio% >> >> Now, on an Intel i3 machine using only one core, approximately 60sec of >> this DTS stream is converted each second. It is almost as fast as the disk >> can write and read. >> >> Is this encoding speed normal or am I doing something wrong? > > What's your full command line and uncut console output? > -r > The command line is as noted in the original post with extra options: -y -analyzeduration 100M The console output: ffmpeg version N-40301-gc1fe2db Copyright (c) 2000-2012 the FFmpeg developers built on May 3 2012 11:42:19 with gcc 4.6.3 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzli b --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb -- enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lam e --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --en able-libxavs --enable-libxvid --enable-zlib libavutil 51. 49.100 / 51. 49.100 libavcodec 54. 17.101 / 54. 17.101 libavformat 54. 3.100 / 54. 3.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.104 / 2. 72.104 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, matroska,webm, from 'W:\transcode\tmp\tmp_orig_audio.mkv': Metadata: title : Test creation_time : 2012-09-01 21:31:06 Duration: 02:12:28.97, start: 0.000000, bitrate: 1506 kb/s Stream #0:0(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (def ault) Metadata: title : 5.1 Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' strptime() unavailable on this system, cannot convert the date string. Output #0, matroska, to 'W:\transcode\tmp\tmp_enc_audio.mkv': Metadata: title : Test creation_time : 2012-09-01 21:31:06 encoder : Lavf54.3.100 Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), flt, 640 kb/s (default) Metadata: title : 5.1 Stream mapping: Stream #0:0 -> #0:0 (dca -> ac3) Press [q] to stop, [?] for help size= 622740kB time=02:12:28.98 bitrate= 641.8kbits/s video:0kB audio:621015kB global headers:0kB muxing overhead 0.277795% From harald.jordan at redstream.at Sun Sep 2 22:10:29 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Sun, 2 Sep 2012 22:10:29 +0200 Subject: [FFmpeg-user] libavcodec aac encoding with AV_SAMPLE_FMT_FLT In-Reply-To: References: <5035FCB9.6080807@yahoo.com><50372D03.70002@yahoo.com><222BC6ECFE74443EB2C0927967F6597B@redstream.at> Message-ID: <2325CD03A38C43DAB6757E5D275B64A8@redstream.at> Thanks rodger, i didnt know that there is a libavcodec list too. Anyway, your comment that 1024 may be just some default brought me on the right way again! It seems that one can set the framesize but you may not vary with it, depending on the capabilities of your encoder. I will solve the problem by having some audio queue that is able to deliver as much samples as the default frame_size of the codec wants to have. cheers, harald -----Urspr?ngliche Nachricht----- From: Roger Pack Sent: Friday, August 31, 2012 3:11 PM To: FFmpeg user questions Subject: Re: [FFmpeg-user] libavcodec aac encoding with AV_SAMPLE_FMT_FLT > I am using libavcodec within a cpp project. Basically the program runs > without any problem, as long as i can use AV_SAMPLE_FMT_S16 for the audio > encoding part. > Now when it comes to aac, the aac codec only supports the FLT Sample > format > and here comes the problem: at S16, the frame_size of the audio codec is > automatically set to bitrate/framerate. > At 8000 Samples/sec input this means for S16 a framesize of 320. (dec) > The initial frame_size for AV_SAMPLE_FMT_FLT a framesize of 1024. > I tried setting the framesize to 320, but this didnt work. So the question > is: why is the initial framesize of FMT_FLT 1024, i mean 1024 has nothing > to > do with my Sample Rate of 8000, nor with any other known sample rate > usually > used. I think it's just some default. > After Resampling the S16 to FLT, the number of samples did not increase, > so > what is the catch here? You may get more help from the libav-user group. As a note I recently used the asetnsamples filter to force a specific sample size, if that helps at all. Cheers! -r _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From andycivil at gmail.com Sun Sep 2 23:26:13 2012 From: andycivil at gmail.com (Andy Civil) Date: Sun, 02 Sep 2012 17:26:13 -0400 Subject: [FFmpeg-user] libvo-aacenc Message-ID: <5043CEF5.20601@gmail.com> I'm having trouble encoding with aac. It seems that the current working version is "libvo-aacenc", and it's listed as enabled, but it's complaining that it's an unknown encoder. This time, I'm posting the whole command/output because I might have made a mistake - anyone? P.S. I'm not fussy, I'll take ANY method of encoding AAC that actually works, even if it's crap. Thanks Andy E:\Temp\xxxxxxtest>c:\ffmpeg\bin\ffmpeg -i input.mkv -sn -acodec libvo-aacenc -a b 128k -ac 2 -vcodec copy -f mp4 output.mp4 ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass - -enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib libavutil 51. 69.100 / 51. 69.100 libavcodec 54. 52.100 / 54. 52.100 libavformat 54. 23.101 / 54. 23.101 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 9.100 / 3. 9.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 'input.mkv': Metadata: title : title creation_time : 2007-01-30 04:33:31 Duration: 00:22:59.75, start: 0.000000, bitrate: 1428 kb/s Chapter #0.0: start 0.000000, end 90.400000 Metadata: title : Chapter 1 Chapter #0.1: start 90.400000, end 532.334000 Metadata: title : Chapter 2 Chapter #0.2: start 532.334000, end 1299.801000 Metadata: title : Chapter 3 Chapter #0.3: start 1299.801000, end 1359.334000 Metadata: title : Chapter 4 Chapter #0.4: start 1359.334000, end 1379.754000 Metadata: title : Chapter 5 Stream #0:0(eng): Audio: aac, 48000 Hz, stereo, s16 (default) Metadata: title : Audio Stream #0:1(jpn): Audio: aac, 48000 Hz, stereo, s16 Metadata: title : Audio Stream #0:2(eng): Subtitle: text (default) Metadata: title : Subtitles Stream #0:3(jpn): Video: h264 (High), yuv420p, 720x480, SAR 8:9 DAR 4:3, 29. 97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) Metadata: title : Video Unknown encoder 'libvo-aacenc' E:\Temp\xxxxxxtest> From batguano999 at hotmail.com Mon Sep 3 00:41:27 2012 From: batguano999 at hotmail.com (bat guano) Date: Sun, 2 Sep 2012 22:41:27 +0000 Subject: [FFmpeg-user] libvo-aacenc In-Reply-To: <5043CEF5.20601@gmail.com> References: <5043CEF5.20601@gmail.com> Message-ID: > > I'm having trouble encoding with aac. It seems that the current working version > is "libvo-aacenc", and it's listed as enabled, but it's complaining that it's an > unknown encoder. This time, I'm posting the whole command/output because I might > have made a mistake - anyone? > Hi In the FFmpeg command libvo-aacenc needs an underscore(_), not a hyphen(-). ffmpeg -i input.mkv -sn -c:a libvo_aacenc -b:a 128k -ac 2 -c:v copy output.mp4 From cehoyos at ag.or.at Mon Sep 3 01:05:46 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 2 Sep 2012 23:05:46 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed References: Message-ID: Davor Josipovic live.com> writes: > ffmpeg -i %tmp_orig_audio% -c:a ac3 -ab 640k -q:a 0 %tmp_enc_audio% > > Now, on an Intel i3 machine using only one core, approximately 60sec of > this DTS stream is converted each second. It is almost as fast as the disk > can write and read. If you need slower encoding speed, try building with --disable-asm or --disable-optimizations or both. Carl Eugen From cehoyos at ag.or.at Mon Sep 3 01:07:47 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 2 Sep 2012 23:07:47 +0000 (UTC) Subject: [FFmpeg-user] Unknown encoder 'libx264' References: <1346462850189-4653121.post@n4.nabble.com> Message-ID: Rossana Guerra gmail.com> writes: > I thinks you need the libavcodec-extra-52 from multiverse repository. Please remember that this version of FFmpeg is intentionally broken, has several hundred regressions and since some of them are possibly security relevant, this version cannot be supported on this mailing list. Carl Eugen From cehoyos at ag.or.at Mon Sep 3 01:10:10 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 2 Sep 2012 23:10:10 +0000 (UTC) Subject: [FFmpeg-user] suggestion: ffmpeg rpm... References: Message-ID: alberto momeale live.it> writes: > My boss wants rpm. I don't think there is anything wrong with installing current git head as a rpm and it should be easy to include qt-faststart. Carl Eugen From andycivil at gmail.com Mon Sep 3 01:32:41 2012 From: andycivil at gmail.com (Andy Civil) Date: Sun, 02 Sep 2012 19:32:41 -0400 Subject: [FFmpeg-user] libvo-aacenc In-Reply-To: References: <5043CEF5.20601@gmail.com> Message-ID: <5043EC99.10604@gmail.com> On 2012-09-02 6:41 PM, bat guano wrote: > In the FFmpeg command libvo-aacenc needs an underscore(_), not a hyphen(-). Well, that's a clear as mud. Even now you've told me, I can't imagine why, given that it's declared with a hyphen in the output. (I was a victim of google, btw; because of the way I searched for help, I found only broken examples. My bad. And this is the first codec I've used that has a word break.) I tried loads of permutations of "libvo-aacenc" but never had any inkling to change the hyphen... Thanks. Works now. -- Andy From vadim.lungu at radiocom.md Mon Sep 3 07:19:42 2012 From: vadim.lungu at radiocom.md (radiocm) Date: Sun, 2 Sep 2012 22:19:42 -0700 (PDT) Subject: [FFmpeg-user] live real time stream transcoding In-Reply-To: References: <1345636030933-4652823.post@n4.nabble.com> Message-ID: <1346649582557-4653149.post@n4.nabble.com> I was trying different options for -r , starting from 16 to 50, still remain the same. I'm able to stream maximum the 200 frames then it's crashing. ----- Best regards, Vadim. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/live-real-time-stream-transcoding-tp4652823p4653149.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From francois.visagie at gmail.com Mon Sep 3 09:13:35 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Mon, 3 Sep 2012 09:13:35 +0200 Subject: [FFmpeg-user] Cutting video at i-frames to avoid recoding In-Reply-To: <5042EB7C.3060203@gmail.com> References: <5030096D.2090300@gmail.com> <20120818214306.GZ2276@arborea> <50304A44.8020901@gmail.com> <003c01cd7e1c$91453b70$b3cfb250$@gmail.com> <5042EB7C.3060203@gmail.com> Message-ID: <01ba01cd89a3$a599b140$f0cd13c0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Andy Civil > Sent: 02 September 2012 07:16 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Cutting video at i-frames to avoid recoding > > On 2012-08-19 11:08 AM, Francois Visagie wrote: > > > > Experiment? You came up with some pretty decent-looking suggestions > > yourself. I suspect your concern is whether ffmpeg will ensure that > > start time and duration coincide in some way with I-frames. > > In the end, that's what I did. I'm reporting back, for anyone who searches the > archives for the same information. Great stuff. > Things got a bit easier when I found that 'ffprobe -show_frames' would give > tons of information about frame types and times. > > My source file had i-frames at regular 0.5s intervals, and only p-frames > otherwise, so I didn't have the complication of b-frames. > > To create an artificially bad situation, I used FFmpeg to produce a 30s file with > a GOP of 300 (an i-frame every 10s at 30fps). I then asked it to 'copy' the file > starting at 5 seconds in. > > What I got out was very interesting. The sound frames started at the > beginning of the file at 0s, from 5s into the original just as I had asked. There > were NO video frames at all until the first i-frame, which was originally timed > at 10s, but was now timed at 5s in the new file because of my cut. In a way, > this makes perfect sense, but it seemed odd that I now had a video file which > had five seconds of sound with no picture at the start! > > (As a side issue, I noticed that FFmpeg had re-ordered the frames, the > original had a bunch of audio frames, followed by a bunch of video frames; > FFmpeg interleaved them more chronologically.) > > I was curious to know how this file would play. VLC obediently played the > sound right from the start (at the 5s point of the original, of course) and > continued to show its orange cone logo on the screen. At the 5s point when > the first i-frame came along, the logo was replaced with the video. It was > perfectly synchronised. This is obviously a good result. > > My only remaining concern was that my video editor (I use Vegas) would > mess up, and ignore the frame times, leaving me with audio and video that > were 5s out of synch. When I loaded the file in, I noticed that there was no > missing 5s of video, as there had been on VLC. However, Vegas did not go > out of synch, nor did it cut off the first five seconds of sound: what it did do > was to grab that first i-frame and stretch it back to the start of the file. So the > video was 'freeze framed' for five seconds while the audio was playing, then > at the 5s point it continued perfectly. This kind of behaviour is often configurable in the player or editor. I.e. there might not always be a sure-fire way of determining player behaviour in the encoder, just bear that in mind. > After these experiments, I'm confident to use FFmpeg to cut the garbage out > of my 'original' footage, but knowing how this works, and having observed > the 0.5s GOP on my original, I will also specify a start time that causes an i- > frame to occur at the start of the cut file, for the cleanest result. > > -- > Andy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Mon Sep 3 09:13:35 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Mon, 3 Sep 2012 09:13:35 +0200 Subject: [FFmpeg-user] Can we merge slices of two videos ? In-Reply-To: References: <1346058947.31528.YahooMailNeo@web122506.mail.ne1.yahoo.com> <1346168805.65785.YahooMailNeo@web122501.mail.ne1.yahoo.com> Message-ID: <01bb01cd89a3$a7520fa0$f5f62ee0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Roger Pack > Sent: 31 August 2012 15:17 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Can we merge slices of two videos ? > > > So ultimately I want to merge two live videos which are taken as two input > and I am expecting merged single video as an output. > > (I dont want fixed size videos as an inputs). > > So creating an "interleaved" new video? I'm unaware of a filter that does > that, but you could probably write one (and if you do, submit it for > inclusion)...if that's what you want anyway :) -r If all else (with ffmpeg) fails, Avisynth's Interleave filter should do the job: "Interleave "Interleave (clip1, clip2 [, ...]) "Interleave interleaves frames from several clips on a frame-by-frame basis, so for example if you give three arguments, the first three frames of the output video are the first frames of the three source clips, the next three frames are the second frames of the source clips, and so on." From davorj at live.com Mon Sep 3 09:24:52 2012 From: davorj at live.com (Davor Josipovic) Date: Mon, 03 Sep 2012 09:24:52 +0200 Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed In-Reply-To: References: Message-ID: <50445B44.6060101@live.com> On 3/09/2012 1:05, Carl Eugen Hoyos wrote: > Davor Josipovic live.com> writes: > >> ffmpeg -i %tmp_orig_audio% -c:a ac3 -ab 640k -q:a 0 %tmp_enc_audio% >> >> Now, on an Intel i3 machine using only one core, approximately 60sec of >> this DTS stream is converted each second. It is almost as fast as the disk >> can write and read. > > If you need slower encoding speed, try building with --disable-asm or > --disable-optimizations or both. > > Carl Eugen > Yes, but then I will not use any CPU optimizations, so the quality will be the same. My question is rather whether I can _improve_ quality of the resulting AC-3 stream by possibly reducing the encoding speed. From timothyb89 at gmail.com Mon Sep 3 08:54:51 2012 From: timothyb89 at gmail.com (timothyb89) Date: Mon, 3 Sep 2012 00:54:51 -0600 Subject: [FFmpeg-user] Audio delay with captured audio and video Message-ID: I apologize if this has been asked/answered before but searching the lists didn't turn up anything useful that I hadn't already tried. I'm trying to use ffmpeg in a screencasting setup where I take 2 pulse inputs (microphone and system audio), video with x11grab, and then output to an RTMP server. I use the filter_complex parameter with amix to mix the 2 audio streams, and the async filter to prevent audio desync. The async filter appears to be working properly as I had issues with increasing desync before (it was roughly 0.5 seconds of added delay per minute), and adding the filter resolved that issue in limited testing. However, the audio is still consistently 1 second behind the video. My base command was this: $ ffmpeg -f x11grab -s 1920x1080 -r 25 -i :0.0+1280,0 -f pulse -i monitor_device -f pulse -i mic_device -vcodec libx264 -preset:v faster -x264opts crf=30 -s 1920x1080 -acodec libmp3lame -ab 128k -ar 44100 -threads 0 -f flv -pix_fmt yuyv422 -filter_complex amix=inputs=2:duration=first:dropout_transition=3 -af asyncts=compensate=1 rtmp://live.justin.tv/app/[cut] -loglevel verbose I tried using -itsoffset to delay the video by 1 second: $ ffmpeg -itsoffset 1.0 -f x11grab -s 1920x1080 -r 25 -i :0.0+1280,0 [...] ... however values for -itsoffset seemed to make the delay fall further behind, as if it was applying it persistently to the audio stream rather than the video stream. Normally I'd just adjust the delay manually after the fact but unfortunately that's not possible to do while streaming. So, is there some way to either: a) fix/prevent the initial audio delay between the mixed pulse devices and the video; or b) account for it with some sort of offset? Thanks in advance for any help! From cehoyos at ag.or.at Mon Sep 3 11:51:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 3 Sep 2012 09:51:12 +0000 (UTC) Subject: [FFmpeg-user] libvo-aacenc References: <5043CEF5.20601@gmail.com> <5043EC99.10604@gmail.com> Message-ID: Andy Civil gmail.com> writes: > > In the FFmpeg command libvo-aacenc needs an underscore(_), > > not a hyphen(-). > > Well, that's a clear as mud. Even now you've told me, I can't > imagine why, given that it's declared with a hyphen in the output. Could you elaborate? I can't test at the moment, but I didn't find "libvo-aacenc" in the sources, so that is hard to understand. Carl Eugen From cehoyos at ag.or.at Mon Sep 3 11:59:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 3 Sep 2012 09:59:09 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed References: <50445B44.6060101@live.com> Message-ID: Davor Josipovic live.com> writes: > My question is rather whether I can _improve_ quality of the resulting > AC-3 stream by possibly reducing the encoding speed. (Was that really your original question?) Iirc, the ac-3 encoder takes exactly one quality option: -ab Perhaps one of the options that you see with ffmpeg -h ("AC-3 Encoder AVOptions") also affects quality, I am not sure. Carl Eugen From davorj at live.com Mon Sep 3 12:52:46 2012 From: davorj at live.com (Davor Josipovic) Date: Mon, 03 Sep 2012 12:52:46 +0200 Subject: [FFmpeg-user] ffmpeg ac-3 encoding speed In-Reply-To: References: <50445B44.6060101@live.com> Message-ID: <50448BFE.5050901@live.com> On 3/09/2012 11:59, Carl Eugen Hoyos wrote: > Davor Josipovic live.com> writes: > >> My question is rather whether I can _improve_ quality of the resulting >> AC-3 stream by possibly reducing the encoding speed. > > (Was that really your original question?) > > Iirc, the ac-3 encoder takes exactly one quality option: -ab > Perhaps one of the options that you see with ffmpeg -h > ("AC-3 Encoder AVOptions") also affects quality, I am not sure. > > Carl Eugen > (Yes, that was the original question... or at least what I meant.) Afais, the options that might effect quality per bit in a positive way are enabled by default. From nichot20 at yahoo.com Mon Sep 3 13:50:07 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 03 Sep 2012 12:50:07 +0100 Subject: [FFmpeg-user] [Bulk] Re: Handling uyvy files has changed. In-Reply-To: References: <5035FCB9.6080807@yahoo.com> <50375507.3000900@yahoo.com> Message-ID: <5044996F.1060708@yahoo.com> On 25/08/12 06:45, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >> Stream #0:0: Video: rawvideo (raw / 0x20776172), uyvy422, > > This also writes " raw" so it is hard to believe that the > output file works any better... > > Could you try -vtag 2vuy ? OK it works with this setting (on an updated git HEAD), but not with my original, or with no vtag set at all. Must just have been fortuitous that it worked before.... > (I am still convinced that this is just a typo on your side, Not a typo in that its what I intended, Since the file is uyvy422 it seemed logical to keep the same uv order in the 4CC! > please convince me that I am wrong;-) ) ;P (Thanks) > > Carl Eugen > > [..] -- Tim From codecomplete at free.fr Mon Sep 3 16:00:29 2012 From: codecomplete at free.fr (Gilles) Date: Mon, 03 Sep 2012 16:00:29 +0200 Subject: [FFmpeg-user] Combining multiple MP3's? Message-ID: Hello I google for this but it doesn't work. It might be a Windows-specific issue: ============ C:\>ffmpeg.N-37208-g01fcbdf.exe -i concat:"Dummy01.mp3\|Dummy02.mp3\|Dummy03.mp3\|Dummy04.mp3\|Dummy05.mp3\|Dummy06.mp3\|Dummy07.mp3" -acodec copy Dummy.mp3 concat:Dummy01.mp3\|Dummy02.mp3\|Dummy03.mp3\|Dummy04.mp3\|Dummy05.mp3\|Dummy06.mp3\|Dummy07.mp3: Invalid argument ============ C:\>ffmpeg.N-37208-g01fcbdf.exe -i concat:Dummy01.mp3|Dummy02.mp3|Dummy03.mp3|Dummy04.mp3|Dummy05.mp3|Dummy06.mp3|Dummy07.mp3 -acodec copy Dummy.mp3 At least one output file must be specified ============ What is the right syntax? Thank you. From paulj at fastmail.es Mon Sep 3 16:41:50 2012 From: paulj at fastmail.es (paulj at fastmail.es) Date: Mon, 03 Sep 2012 16:41:50 +0200 Subject: [FFmpeg-user] Problems dumping H264 stream from Axis camera In-Reply-To: References: <50362728.6411.A33C18@paulj.fastmail.es>, <5040C2F1.2106.F3E9E6@paulj.fastmail.es>, Message-ID: <5044C1AE.30781.E741C5@paulj.fastmail.es> > So if you build current git head, it doesn't work. Then you revert > 2107009e7d351ff83a87fda161cc5269d2752428 from head and it starts > working? That commit looks totally benign...odd. > > I wonder if the "1.1e-05" is the problem: > > demuxer -> ist_index:0 type:video next_dts:NOPTS next_dts_time:NOPTS > next_pts:NOPTS > next_pts_time:NOPTS pkt_pts:NOPTS pkt_pts_time:NOPTS pkt_dts:NOPTS > pkt_dts_time:NOPTS off:-99878 > demuxer -> ist_index:0 type:video next_dts:11 next_dts_time:1.1e-05 next_pts:11 > next_pts_time:1.1e-05 pkt_pts:0 pkt_pts_time:0 pkt_dts:NOPTS > pkt_dts_time:NOPTS off:- > 99878 > [mp4 @ 0xaa9f360] pts (0) < dts (1) in stream 0 > > I wonder if the 1.1e-05 is "actually" 0 but something rounding up? > > Also try with > -analyzeduration 0 > -r Nope, it doesn't work either. [paulo at webserver ffmpeg]$ ./ffmpeg -rtsp_transport tcp -i rtsp://root:root at 192.168.1.129:554/axis-media/media.amp?streamprofile=Media?tcp -analyzeduration 0 -vcodec copy -acodec copy ../axis.mp4 ffmpeg version N-43928-g60924df Copyright (c) 2000-2012 the FFmpeg developers built on Sep 3 2012 16:33:43 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-50) configuration: --enable-encoder=libx264 --enable-libx264 --enable-runtime-cpudetect --enable-libmp3lame --enable-gpl --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 54.100 / 54. 54.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 13.101 / 3. 13.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rtsp @ 0x970c5c0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://root:root at 192.168.1.129:554/axis-media/media.amp?streamprofile=Media?tcp': Metadata: title : Media Presentation Duration: N/A, start: 0.099878, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 30.08 tbr, 90k tbn, 180k tbc Output #0, mp4, to '../axis.mp4': Metadata: title : Media Presentation encoder : Lavf54.25.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mp4 @ 0x984dba0] pts (0) < dts (1) in stream 0 av_interleaved_write_frame(): Invalid argument Paulo. ------------------------------------------- "Oh, don't worry kids. Most of you will never fall in love. You'll just marry for fear of dying alone." The Simpsons. ------------------------------------------- From andycivil at gmail.com Mon Sep 3 16:43:56 2012 From: andycivil at gmail.com (Andy Civil) Date: Mon, 03 Sep 2012 10:43:56 -0400 Subject: [FFmpeg-user] libvo-aacenc In-Reply-To: References: <5043CEF5.20601@gmail.com> <5043EC99.10604@gmail.com> Message-ID: <5044C22C.9080800@gmail.com> On 2012-09-03 5:51 AM, Carl Eugen Hoyos wrote: > Andy Civil gmail.com> writes: > >>> In the FFmpeg command libvo-aacenc needs an underscore(_), >>> not a hyphen(-). >> >> Well, that's a clear as mud. Even now you've told me, I can't >> imagine why, given that it's declared with a hyphen in the output. > > Could you elaborate? > I can't test at the moment, but I didn't find "libvo-aacenc" in > the sources, so that is hard to understand. Sure. It's actually there in my original post. Here is a section of the output: ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass - -enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib I observe that the configuration includes "--enable-libx264" and "libx264" is the name of the codec used in a command. Therefore, when I observe that the configuation includes "--enable-libvo-aacenc" I deduce that "libvo-aacenc" is the name of the codec to use in the command. As someone who understands configuration, compilation and library issues, it's probably so obvious to you why this happens (I have no doubt it arises from different conventions on whitespace substitution) that you didn't even notice; but to me as a user, it's confusing. Thank you. -- Andy From cehoyos at ag.or.at Mon Sep 3 17:51:20 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 3 Sep 2012 15:51:20 +0000 (UTC) Subject: [FFmpeg-user] [Bulk] Re: Handling uyvy files has changed. References: <5035FCB9.6080807@yahoo.com> <50375507.3000900@yahoo.com> <5044996F.1060708@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > On 25/08/12 06:45, Carl Eugen Hoyos wrote: > > Tim Nicholson yahoo.com> writes: > > > >> Stream #0:0: Video: rawvideo (raw / 0x20776172), uyvy422, > > > > This also writes " raw" so it is hard to believe that the > > output file works any better... > > > > Could you try -vtag 2vuy ? > > OK it works with this setting (on an updated git HEAD), but > not with my original, or with no vtag set at all. > > Must just have been fortuitous that it worked before.... > > > (I am still convinced that this is just a typo on your side, The version you posted had local patches (at least I can't checkout the version here), I believed that I looked again at this issue after my last post, and it seems completely impossible to me that this has ever worked the way I understand your posts. Note the "raw " above that simply means that no software has any chance to guess what you stored in your file. Carl Eugen From cehoyos at ag.or.at Mon Sep 3 17:54:45 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 3 Sep 2012 15:54:45 +0000 (UTC) Subject: [FFmpeg-user] libvo-aacenc References: <5043CEF5.20601@gmail.com> <5043EC99.10604@gmail.com> <5044C22C.9080800@gmail.com> Message-ID: Andy Civil gmail.com> writes: > Sure. It's actually there in my original post. Here is a > section of the output: > > ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers > built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC) > configuration: > --enable-libvo-aacenc Strictly speaking, this is not "output" but input, because it is the configure line used by the person who compiled your binary (you?), underscores are not used in FFmpeg's configure script (I don't remember why). The relevant command line to find out the names of the aac encoders would be: $ ffmpeg -encoders|grep aac (or ffmpeg -codecs with older versions) Carl Eugen From nichot20 at yahoo.com Mon Sep 3 18:39:19 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 03 Sep 2012 17:39:19 +0100 Subject: [FFmpeg-user] [Bulk] Re: [Bulk] Re: Handling uyvy files has changed. In-Reply-To: References: <5035FCB9.6080807@yahoo.com> <50375507.3000900@yahoo.com> <5044996F.1060708@yahoo.com> Message-ID: <5044DD37.4000305@yahoo.com> On 03/09/12 16:51, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >> On 25/08/12 06:45, Carl Eugen Hoyos wrote: >>> Tim Nicholson yahoo.com> writes: >>> >>>> Stream #0:0: Video: rawvideo (raw / 0x20776172), uyvy422, >>> >>> This also writes " raw" so it is hard to believe that the >>> output file works any better... >>> >>> Could you try -vtag 2vuy ? >> >> OK it works with this setting (on an updated git HEAD), but >> not with my original, or with no vtag set at all. >> >> Must just have been fortuitous that it worked before.... >> >>> (I am still convinced that this is just a typo on your side, > > The version you posted had local patches (at least I can't > checkout the version here), Oops, that would probably have been a couple of doc tweaks, or maybe forced interlaced scaling. But going by the build date and number it would have been based around 13ba872a2a7f > I believed that I looked again at > this issue after my last post, and it seems completely > impossible to me that this has ever worked the way I understand > your posts. Note the "raw " above that simply means that no > software has any chance to guess what you stored in your file. > As the parameters were in a script (to avoid inconsistencies due to typos) ;) I know it wasn't a one off, but to be honest as its working now I am more curious as to why the 4CC lists the vectors in the wrong order compared to the way they are packed, it seems a tad inconsistent! > Carl Eugen > [..] -- Tim From westonruter at gmail.com Mon Sep 3 19:16:46 2012 From: westonruter at gmail.com (Weston Ruter) Date: Mon, 3 Sep 2012 10:16:46 -0700 Subject: [FFmpeg-user] Creating time-lapse from more than a thousand images In-Reply-To: References: Message-ID: I've had success making time-lapse videos from still images, but only when the number of input stills is less than ~1000. Is there a way around this limitation? Here's the command I'm using: ffmpeg -r 30 -q:v 2 -i '%*.jpg' timelapse.mp4 -- Weston Ruter http://weston.ruter.net/ @westonruter - Facebook- Google+ - LinkedIn From lou at lrcd.com Mon Sep 3 20:42:10 2012 From: lou at lrcd.com (Lou) Date: Mon, 03 Sep 2012 10:42:10 -0800 Subject: [FFmpeg-user] Creating time-lapse from more than a thousand images In-Reply-To: References: Message-ID: <1346697730.31962.140661123119817.71F1910D@webmail.messagingengine.com> On Mon, Sep 3, 2012, at 09:16 AM, Weston Ruter wrote: > I've had success making time-lapse videos from still images, but only > when the number of input stills is less than ~1000. Is there a way > around this limitation? Here's the command I'm using: > > ffmpeg -r 30 -q:v 2 -i '%*.jpg' timelapse.mp4 Complete ffmpeg console output is missing. Also, you're applying -q:v 2 as an input option. Option placement matters. From andycivil at gmail.com Mon Sep 3 21:07:58 2012 From: andycivil at gmail.com (Andy Civil) Date: Mon, 03 Sep 2012 15:07:58 -0400 Subject: [FFmpeg-user] Creating time-lapse from more than a thousand images In-Reply-To: References: Message-ID: <5045000E.3010703@gmail.com> On 2012-09-03 1:16 PM, Weston Ruter wrote: > I've had success making time-lapse videos from still images, but only when > the number of input stills is less than ~1000. Is there a way around this > limitation? Here's the command I'm using: > > ffmpeg -r 30 -q:v 2 -i '%*.jpg' timelapse.mp4 > I'm wondering if you've made a command line that's just too long by using the single-quote syntax. Could you use something like ffmpeg -f image2 -i IMG_%04d.jpg -r 30 -q:v 2 timelapse.mp4 because I believe that makes FFmpeg do the expansion, not the shell. (There was once a restriction on how the files were numbered, i.e. starting from 0000 or 0001, not sure if that's still valid. Untested command example.) -- Andy From westonruter at gmail.com Mon Sep 3 21:31:37 2012 From: westonruter at gmail.com (Weston Ruter) Date: Mon, 3 Sep 2012 12:31:37 -0700 Subject: [FFmpeg-user] Creating time-lapse from more than a thousand images In-Reply-To: <5045000E.3010703@gmail.com> References: <5045000E.3010703@gmail.com> Message-ID: Thank you for the replies. My filenames are in the format YYYYYY-MM-DD-HHMMSS.jpg, for example 2012-09-03-121544.jpg. So I didn't want to have to rename (or make hard links) in the format %04d.jpg. I found that ffmpeg can do globbing via http://murphyrandle.com/blog/2012/08/03/ffmpeg-can-handle-the-globs/ However, it turns out that the problem is with my input data. The ~1000th image was corrupted (zero bytes) and so it seems ffmpeg aborted due to that. I deleted the malformed image and re-ran the command `ffmpeg -i '%*.jpg' -r 30 -q:v 2 timelapse.mp4`, and it worked perfectly. Thanks! On Mon, Sep 3, 2012 at 12:07 PM, Andy Civil wrote: > On 2012-09-03 1:16 PM, Weston Ruter wrote: > >> I've had success making time-lapse videos from still images, but only when >> the number of input stills is less than ~1000. Is there a way around this >> limitation? Here's the command I'm using: >> >> ffmpeg -r 30 -q:v 2 -i '%*.jpg' timelapse.mp4 >> >> > I'm wondering if you've made a command line that's just too long by using > the single-quote syntax. Could you use something like > > ffmpeg -f image2 -i IMG_%04d.jpg -r 30 -q:v 2 timelapse.mp4 > > because I believe that makes FFmpeg do the expansion, not the shell. > > (There was once a restriction on how the files were numbered, i.e. > starting from 0000 or 0001, not sure if that's still valid. Untested > command example.) > > -- > Andy > > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > -- Weston Ruter http://weston.ruter.net/ @westonruter - Facebook- Google+ - LinkedIn From cehoyos at ag.or.at Mon Sep 3 23:49:50 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 3 Sep 2012 21:49:50 +0000 (UTC) Subject: [FFmpeg-user] [Bulk] Re: [Bulk] Re: Handling uyvy files has changed. References: <5035FCB9.6080807@yahoo.com> <50375507.3000900@yahoo.com> <5044996F.1060708@yahoo.com> <5044DD37.4000305@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > As the parameters were in a script (to avoid inconsistencies due to > typos) ;) I know it wasn't a one off, but to be honest as its working > now I am more curious as to why the 4CC lists the vectors in the wrong > order compared to the way they are packed, it seems a tad inconsistent! (I may be wrong but I suspect you just found out how 4CCs are defined.) I just tested (again) to encode uyvy422 rawvideo to mov using current git head and an ancient version: In both cases, it worked as expected with -vtag 2vuy and did not work without -vtag. Please understand that FFmpeg developers are generally very interested in regressions, but I cannot reproduce a regression in this case and I especially can't imagine one so far. If there really is a regression, please provide command line and complete, uncut console output for a revision that I can checkout. Carl Eugen From david at davidfavor.com Tue Sep 4 03:34:16 2012 From: david at davidfavor.com (David Favor) Date: Mon, 03 Sep 2012 20:34:16 -0500 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip Message-ID: <50455A98.2070602@davidfavor.com> Attempting to demux (copy) two video streams from one video to another, dropping the audio. These video clips are Skype recordings with one video and one audio track per each caller in a group call. The audio has to be extracted + normalized, which works fine. Problem is the video. The source video plays/previews in QuickTime with each video side-by-side. The source video also works great dropping into other video editors like ScreenFlow or iMovie. Attempting to copy only video streams (audio dropped) produces an output file with all the videos stacked on top of each other. The output video is uneditable by any software I have. No way to move videos from off the top of each other. There's a copy of the source video here: http://DavidFavor.com/private/2012/foo.skype.mov There's a YouTube video detailing the challenge here: http://YouTube.com/watch?v=eabMRPb5zEQ The command I'm using for the extraction is: ffmpeg -y -i foo.skype.mov -an -vcodec copy -map 0:2 -map 0:3 foo.video.mov The output stream mapping appears correct: ... ... ... Stream mapping: Stream #0:2 -> #0:0 (copy) Stream #0:3 -> #0:1 (copy) ... ... ... Here's a stream dump of the source video and a complete dump of the ffmpeg output from the extraction command. I'd appreciate an ffmpeg guru passing along the correct syntax. Thanks! _______ David-Favor-iMac> ffmpeg -i foo.skype.mov ffmpeg version 0.11.1.git-56ae592 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 3 2012 11:56:20 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 41.100 / 54. 41.100 libavformat 54. 17.100 / 54. 17.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 2.100 / 3. 2.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Guessed Channel Layout for Input Stream #0.0 : mono Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.skype.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-02-25 16:50:37 Duration: 00:08:17.90, start: 0.000000, bitrate: 5388 kb/s Stream #0:0(eng): Audio: pcm_f32le (fl32 / 0x32336C66), 44100 Hz, mono, flt, 1411 kb/s Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_f32le (fl32 / 0x32336C66), 44100 Hz, stereo, flt, 2822 kb/s Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:2(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480, 350 kb/s, 15 fps, 15.08 tbr, 1k tbn, 2k tbc Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:3(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480, 801 kb/s, 15 fps, 15.08 tbr, 1k tbn, 2k tbc Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler At least one output file must be specified _______ David-Favor-iMac> ffmpeg -y -i foo.skype.mov -an -vcodec copy -map 0:2 -map 0:3 foo.video.mov ffmpeg version 0.11.1.git-56ae592 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 3 2012 11:56:20 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 41.100 / 54. 41.100 libavformat 54. 17.100 / 54. 17.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 2.100 / 3. 2.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Guessed Channel Layout for Input Stream #0.0 : mono Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.skype.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-02-25 16:50:37 Duration: 00:08:17.90, start: 0.000000, bitrate: 5388 kb/s Stream #0:0(eng): Audio: pcm_f32le (fl32 / 0x32336C66), 44100 Hz, mono, flt, 1411 kb/s Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_f32le (fl32 / 0x32336C66), 44100 Hz, stereo, flt, 2822 kb/s Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:2(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480, 350 kb/s, 15 fps, 15.08 tbr, 1k tbn, 2k tbc Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:3(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480, 801 kb/s, 15 fps, 15.08 tbr, 1k tbn, 2k tbc Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Output #0, mov, to 'foo.video.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf54.17.100 Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x480, q=2-31, 350 kb/s, 15 fps, 1k tbn, 1k tbc Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream #0:1(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x480, q=2-31, 801 kb/s, 15 fps, 1k tbn, 1k tbc Metadata: creation_time : 2011-02-25 16:50:37 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:2 -> #0:0 (copy) Stream #0:3 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 7469 fps=5148 q=-1.0 Lq=-1.0 size= 70195kB time=00:08:17.74 bitrate=1155.3kbits/s video:70007kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.267434% -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From andycivil at gmail.com Tue Sep 4 07:41:47 2012 From: andycivil at gmail.com (Andy Civil) Date: Tue, 04 Sep 2012 01:41:47 -0400 Subject: [FFmpeg-user] Need code to convert MP4 to DivX AVI In-Reply-To: <50389D93.301@AleksandrSolzhenitsyn.net> References: <5035817D.9040207@AleksandrSolzhenitsyn.net> <50389D93.301@AleksandrSolzhenitsyn.net> Message-ID: <5045949B.5030906@gmail.com> On 2012-08-25 5:40 AM, . wrote: > > I'm trying to convert mp4's and put them on my Eclipse T2800 in avi > format. Sadly, the code line below didn't work. Oh well, what do I > expect from a mp3/avi player that cost $42? I've just been battling the same thing with a Philips DivX player, the DVP3140. I wouldn't have started if I'd known how many hours and blank DVDs I'd waste. I won't bore you with the saga, but the bottom line is that this kind of player is quite fussy (since I have a life outside video conversion, I forgot what this player would take, vs. my WD Media Player which is more versatile). It refused to even TRY to play anything until I set the FourCC to "DIVX" (I think it accepts XVID too) then it would fail. (Symptoms were that it would appear to start, blank screen, time counter would "race" at many times real time; I think it was reading the file flat out, looking at frames and displaying the time, but not finding a frame it liked. Pressing "stop" restored the menu.) The breakthrough for me was discovering that there was an actual codec named "libxvid" whereas I'd been trying mpeg-4 because I thought that's what DivX was. Just for the record, the command that worked for me was: c:\ffmpeg\bin\ffmpeg -i input.mkv -sn -c:a libmp3lame -ar 48000 -ab 128k -ac 2 -c:v libxvid -crf 24 -vtag DIVX -vf scale=640:480 -aspect 4:3 -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 30 -vb 1500k output.avi (This was for an old TV show, to be displayed on a CRT 4:3 screen; a different scale and aspect would probably be better for modern stuff.) I can't say this will work for anyone else, just saying it worked for me on what is now a 'dated' and fussy DivX player. -- Andy From falcon.sheep at gmail.com Tue Sep 4 07:42:01 2012 From: falcon.sheep at gmail.com (falcon sheep) Date: Tue, 4 Sep 2012 09:42:01 +0400 Subject: [FFmpeg-user] seek issue for realmedia files Message-ID: Hi, I'm facing an issue with seek in real media files. I have reported back the bug in ticket 1605. Is there a chance to have this solved in the next maintenance release? From hiteshc531 at gmail.com Tue Sep 4 08:17:56 2012 From: hiteshc531 at gmail.com (hitesh) Date: Mon, 3 Sep 2012 23:17:56 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg h.264 multithreading Message-ID: <1346739476954-4653172.post@n4.nabble.com> HI all, I am new to ffmpeg. I want to know the implementation of ffmpeg h.264 frame/slice level multithreading. Is there any document for this(please provide me link) ? Thanks in advance. regards, hitesh -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-h-264-multithreading-tp4653172.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ibantxo28 at gmail.com Tue Sep 4 09:08:03 2012 From: ibantxo28 at gmail.com (Iban Garcia) Date: Tue, 4 Sep 2012 09:08:03 +0200 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: <4FF45CCA.30503@ukfsn.org> References: <4FE42890.7040101@yahoo.com> <4FF32096.1010400@ukfsn.org> <4FF45CCA.30503@ukfsn.org> Message-ID: Hi, I go on with searching the best way to convert HD-1080i content to SD-576i content, with losing the minimun detail... :-O Well... I have making some new tests... but when transcoding from HD 1080i to SD-PAL the video loses a lot of detail (i.e., 720x576i video is a little bit blurred) I have tested with this option UNSHARP filter in order to get a SHARPer SD content: $comando="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv411p -aspect 16:9 -vf \"scale=720:576:interl=1,fieldorder=bff,unsharp=7:7:2.5\" -vcodec dvvideo -map 0:v -map 0:a:2 -ac 2 ".$output_file.".dv"; But there is a problem... unsharp filter is acting with frames and not with fields. So, the video after filtering gets a wrong output: blinking. Is there any way to use "sharp filter" with fields and not with frames? Many Thanks in advance!! Iban 2012/7/4 Andy Furniss > Iban Garcia wrote: > >> Hi Andy, >> >> First of all, thank you for your interest and help. >> > > Hi, I re-added list cc as I don't really know what I am talking about :-) > > Why DVCPRO? >> The reason for getting an DVCPRO50 interlaced is because I need to play it >> in a Mediaport (OMNEON) --> >> http://www.omneon.com/**downloads/specsheets/Spec_DV_** >> MPEG_IMX_MediaPort.pdf >> > > OK. > > I am looking for the best way to transcode 1080i (DVCPRO-Intra) to >> DVCPRO50 >> (interlaced). >> I think that there are two keys to achieve the best resoults in >> transcoding: >> - Image scaling (http://en.wikipedia.org/wiki/**Image_scaling >> ) >> - Unsharping after down-scaling >> > > I see googling around, that final unsharp and prefiltering high frequency > before the scale is the way people downsize photos. > > I think there will be a problem if you unsharp a weaved frame, so I guess > you'll need to try and work with fields if that's possible. > > You should also keep in mind what I said about sharp interlace - you don't > really want to have fine detail that only appears in one field or you run > the risk of getting twitter. > > I am not familiar enough with ffmpeg to give direct examples, or even know > all that's available. Maybe someone else knows how to soften before scaling. > > >> DVCPRO is bff, but... fieldorder=tff is a way to get after transcoding, a >> dvcpro with the correct fieldorder. I remember that if I set up >> "fieldorder=bff" the fields played in a bad way. >> >> For now, I am looking for the best command to get it, something like this, >> but with good parameters ;-): >> #-----------------------------****----------------------------**--** >> ----------------------- >> $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt >> yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1,****fieldorder=tff\" >> -sws_flags lanczos -vcodec dvvideo -an ".$output_file.".dv"; >> #-----------------------------****----------------------------** >> --**---------------------- >> > > For some reason I see the opposite to you - I have a tff source and if I > encode with fieldorder=tff I get a dv that ffplay or mplayer assumes is bff > - so any field rate deinterlace will judder unless I override (mplayer) > with field-dominance 0. > > However if I encode it with fieldorder=bff then it really does seem to > produce bff weave, so things work by default and specifying field-dominance > 0 produces the wrong output. > > > From nichot20 at yahoo.com Tue Sep 4 09:21:31 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 04 Sep 2012 08:21:31 +0100 Subject: [FFmpeg-user] [Bulk] Re: [Bulk] Re: Handling uyvy files has changed. In-Reply-To: References: <5035FCB9.6080807@yahoo.com> <50375507.3000900@yahoo.com> <5044996F.1060708@yahoo.com> <5044DD37.4000305@yahoo.com> Message-ID: <5045ABFB.4060107@yahoo.com> On 03/09/12 22:49, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >> As the parameters were in a script (to avoid inconsistencies due to >> typos) ;) I know it wasn't a one off, but to be honest as its working >> now I am more curious as to why the 4CC lists the vectors in the wrong >> order compared to the way they are packed, it seems a tad inconsistent! > > (I may be wrong but I suspect you just found out how 4CCs are > defined.) > I just tested (again) to encode uyvy422 rawvideo to mov using > current git head and an ancient version: In both cases, it worked > as expected with -vtag 2vuy and did not work without -vtag. > I have never got it to work without the vtag, but as per below with the wrong vtag on the revision I previously mentioned, but not with the wrong vtag on more recent builds. > Please understand that FFmpeg developers are generally very > interested in regressions, but I cannot reproduce a regression > in this case and I especially can't imagine one so far. > If there really is a regression, please provide command line and > complete, uncut console output for a revision that I can checkout. > ffmpeg_bisect -pix_fmt uyvy422 -s 1920x1080 -i smpte_hd.yuv -c:v copy -vtag 2uvy -y ./smpte_hd-bisect.mov ffmpeg version N-41820-g13ba872-by_Tim Copyright (c) 2000-2012 the FFmpeg developers built on Sep 4 2012 08:05:55 with gcc 4.6.2 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=_bisect --enable-libfaac --enable-libx264 --enable-libfree libavutil 51. 60.100 / 51. 60.100 libavcodec 54. 29.100 / 54. 29.100 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 82.100 / 2. 82.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 0x1805ae0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'smpte_hd.yuv': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, 25 tbr, 25 tbn, 25 tbc Output #0, mov, to './smpte_hd-bisect.mov': Metadata: encoder : Lavf54.11.100 Stream #0:0: Video: rawvideo (raw / 0x20776172), uyvy422, 1920x1080, q=2-31, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help Truncating packet of size 4147200 to 1 frame= 1 fps=0.0 q=-1.0 Lsize= 4051kB time=00:00:00.04 bitrate=829583.2kbits/s video:4050kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.017265% Then plays with an almost current ffplay........ ffplay smpte_hd-bisect.mov ffplay version N-44123-g5d55830-by_Tim Copyright (c) 2003-2012 the FFmpeg developers built on Sep 3 2012 11:00:04 with gcc 4.6 (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 --enable-runtime-cpudetect --extra-cflags=-I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include --extra-ldflags=-L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64 --progs-suffix=_Sep-03 --disable-ffserver --disable-ffmpeg --disable-ffprobe libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'smpte_hd-bisect.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.11.100 Duration: 00:00:00.04, start: 0.000000, bitrate: 829583 kb/s Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 1920x1080, 829440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: handler_name : DataHandler Frame changed from size:0x0 to size:1920x1080 8.22 A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 0/0 > Carl Eugen > > [..] -- Tim From cehoyos at ag.or.at Tue Sep 4 10:40:18 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 4 Sep 2012 08:40:18 +0000 (UTC) Subject: [FFmpeg-user] seek issue for realmedia files References: Message-ID: falcon sheep gmail.com> writes: > I'm facing an issue with seek in real media files. > I have reported back the bug in ticket 1605. The problem has not been fixed yet. Carl Eugen From dev at rarevision.com Tue Sep 4 10:51:24 2012 From: dev at rarevision.com (Thomas Worth) Date: Tue, 4 Sep 2012 01:51:24 -0700 Subject: [FFmpeg-user] [Bulk] Re: [Bulk] Re: Handling uyvy files has changed. In-Reply-To: <5045ABFB.4060107@yahoo.com> References: <5035FCB9.6080807@yahoo.com> <50375507.3000900@yahoo.com> <5044996F.1060708@yahoo.com> <5044DD37.4000305@yahoo.com> <5045ABFB.4060107@yahoo.com> Message-ID: On Tue, Sep 4, 2012 at 12:21 AM, Tim Nicholson wrote: > On 03/09/12 22:49, Carl Eugen Hoyos wrote: >> Tim Nicholson yahoo.com> writes: >> >>> As the parameters were in a script (to avoid inconsistencies due to >>> typos) ;) I know it wasn't a one off, but to be honest as its working >>> now I am more curious as to why the 4CC lists the vectors in the wrong >>> order compared to the way they are packed, it seems a tad inconsistent! >> >> (I may be wrong but I suspect you just found out how 4CCs are >> defined.) >> I just tested (again) to encode uyvy422 rawvideo to mov using >> current git head and an ancient version: In both cases, it worked >> as expected with -vtag 2vuy and did not work without -vtag. >> > > I have never got it to work without the vtag, but as per below with the > wrong vtag on the revision I previously mentioned, but not with the > wrong vtag on more recent builds. If I recall correctly, the default vtag/FourCC for 4:2:2 UYVY in FFmpeg is "HDYC," which is the FourCC for the AVI format. However, QuickTime/MOV uses "2vuy" which is why the MOV muxer fails when you don't force the vtag to "2vuy." In fact, Blackmagic released a simple app a while back called "FourCC Changer" for Mac that did nothing but change the FourCC from HDYC to 2vuy in case you wanted to open a Blackmagic 8 bit uncompressed AVI in a QuickTime application. From raresp at axz.ro Tue Sep 4 10:56:39 2012 From: raresp at axz.ro (Rares Pop) Date: Tue, 4 Sep 2012 11:56:39 +0300 Subject: [FFmpeg-user] align audio and video using PTS Message-ID: Fellow ffmpeg users, I have 2 TS files that have been split (by a vdr recorder): file1.ts and file2.ts. file1.ts ends with x miliseconds of video that don't have audio packets because they are actually at the beginning of file2.ts. How can I use ffmpeg to construct a synchronized file1 by taking the missing audio from file2.ts ? I hope this could be done intelligently by using the PTS information in each file, I just don't know how. Please bare in mind that x is variable for every split. Your help would be greatly appreciated. Thanks for your time, Rares -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From tower119 at gmail.com Tue Sep 4 11:04:05 2012 From: tower119 at gmail.com (Park) Date: Tue, 4 Sep 2012 02:04:05 -0700 (PDT) Subject: [FFmpeg-user] MPEG TS mutilple channls muxing Message-ID: <1346749445870-4653178.post@n4.nabble.com> Hi, Can anyone tell me if ffmpeg is capable of creating multiple programs in an mpeg TS? Has created two kinds of TS videos, I give the options below. #VideoOption 1 ./ffmpeg -i ../ts/tt.wmv -c copy -mpegts_original_network_id 0x1122 -mpegts_transport_stream_id 0x3344 -mpegts_service_id 0x5566 -mpegts_pmt_start_pid 0x1500 -mpegts_start_pid 0x150 -metadata service_provider="Some provider" -metadata service_name="Some Channel" -y output/out.ts #VideoOption 2 ./ffmpeg -i ../ts/tt.wmv -c copy -mpegts_original_network_id 0x156E -mpegts_transport_stream_id 0x339E -mpegts_service_id 0x55CA -mpegts_pmt_start_pid 0x1564 -mpegts_start_pid 0x1B4 -metadata service_provider="Some provider1" -metadata service_name="Some Channel1" -y output/out1.ts So the out.ts, out1.ts ts file to one of the files I'd like to create. I would like to know the options. Sorry I failed to figure this out through the ffmpeg documentation. Thanks for any advice js, Park -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MPEG-TS-mutilple-channls-muxing-tp4653178.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Tue Sep 4 11:42:21 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 4 Sep 2012 09:42:21 +0000 (UTC) Subject: [FFmpeg-user] Handling uyvy files has changed. References: <5035FCB9.6080807@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > ffmpeg -pix_fmt uyvy422 -s 1920x1080 -i HD-bars-709.yuv > -c:v copy -vtag 2uvy -y ./HD-bars-709.mov Regression since c5f23d (I originally failed to see the problem because -vtag is completely superfluous in above command line and one could even argue ffmpeg should protest when given an invalid vtag instead of silently ignoring/overriding it.) Thank you for the report! Carl Eugen From cehoyos at ag.or.at Tue Sep 4 12:10:28 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 4 Sep 2012 10:10:28 +0000 (UTC) Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? References: <4FE42890.7040101@yahoo.com> <4FF32096.1010400@ukfsn.org> <4FF45CCA.30503@ukfsn.org> Message-ID: Andy Furniss ukfsn.org> writes: > I think there will be a problem if you unsharp a weaved frame, so I > guess you'll need to try and work with fields if that's possible. MPlayer has the "il" filter to deinterleave (and after unsharpening interleave) fields. It has not yet been ported natively to FFmpeg, but you could use -vf mp=il=d to deinterleave. Unfortunately, afaict it needs yuv422 input to work correctly, so you will have to do additional scaling... (Or fix the filter.) Carl Eugen From nichot20 at yahoo.com Tue Sep 4 12:14:15 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 04 Sep 2012 11:14:15 +0100 Subject: [FFmpeg-user] [Bulk] Re: Handling uyvy files has changed. In-Reply-To: References: <5035FCB9.6080807@yahoo.com> Message-ID: <5045D477.8000003@yahoo.com> On 04/09/12 10:42, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >> ffmpeg -pix_fmt uyvy422 -s 1920x1080 -i HD-bars-709.yuv >> -c:v copy -vtag 2uvy -y ./HD-bars-709.mov > > Regression since c5f23d You just beat me on the bisect, must have a faster machine....:( > (I originally failed to see the problem because -vtag is > completely superfluous in above command line and one > could even argue ffmpeg should protest when given an > invalid vtag instead of silently ignoring/overriding it.) > I would agree that would be a more sensible approach to warn. I only just spotted it was being silently corrected/ignored in the versions that worked. However if the vtag is superfluous how come the file wont play unless it is included? > Thank you for the report! > > Carl Eugen > > [...] -- Tim From cehoyos at ag.or.at Tue Sep 4 12:28:32 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 4 Sep 2012 10:28:32 +0000 (UTC) Subject: [FFmpeg-user] [Bulk] Re: Handling uyvy files has changed. References: <5035FCB9.6080807@yahoo.com> <5045D477.8000003@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > >> ffmpeg -pix_fmt uyvy422 -s 1920x1080 -i HD-bars-709.yuv > >> -c:v copy -vtag 2uvy -y ./HD-bars-709.mov > > > > Regression since c5f23d > > You just beat me on the bisect, must have a faster machine....:( E8400 (but I probably have more experience using --disable-everything) [...] > However if the vtag is superfluous how come the > file wont play unless it is included? This is exactly the regression we found... Carl Eugen From thyenhong at gmail.com Tue Sep 4 16:16:13 2012 From: thyenhong at gmail.com (Thyen Hong Guedes Chang) Date: Tue, 4 Sep 2012 11:16:13 -0300 Subject: [FFmpeg-user] Trouble compiling mp4 with two pass encoding Message-ID: Hello, I'm having trouble compiling a .avi file into a .mp4 file with two pass encoding. I'm following this tutorial http://h264.code-shop.com/trac/wiki/Encoding and receiving the results: infile ="video.avi" tmpfile="video_tmp.mp4" outfile="video.mp4" options="-vcodec libx264 -b 512k -flags +loop+mv4 -cmp 256 \ -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 \ -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \ -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 \ -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10\ -qmax 51 -qdiff 4" ffmpeg -y -i "$infile" -an -pass 1 -threads 2 $options "$tmpfile" It returns me: ffmpeg version git-2012-09-04-9de7622 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 4 2012 10:24:49 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 libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.103 / 3. 15.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from 'a.avi': Duration: 00:00:30.00, start: 0.000000, bitrate: 25994 kb/s Stream #0:0: Video: msrle ([1][0][0][0] / 0x0001), pal8, 790x704, 10 tbr, 10 tbn, 10 tbc Please use -b:a or -b:v, -b is ambiguous [NULL @ 0xa95abe0] [Eval @ 0xbfd58fa8] Undefined constant or missing '(' in 'bpyramid' [NULL @ 0xa95abe0] Unable to parse option value "bpyramid+wpred+mixed_refs+dct8x8" [NULL @ 0xa95abe0] Error setting option flags2 to value +bpyramid+wpred+mixed_refs+dct8x8. Output #0, mp4, to 'a_tmp.mp4': Stream #0:0: Video: none, yuv444p, 790x704, q=-1--1, pass 1, 512 kb/s, 90k tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (msrle -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Any help? -- Thyen Hong Guedes Chang Bacharelando em Ci?ncias da Computa??o Universidade Federal de Goi?s From anatol2002 at gmail.com Tue Sep 4 16:39:38 2012 From: anatol2002 at gmail.com (Anatol) Date: Tue, 4 Sep 2012 17:39:38 +0300 Subject: [FFmpeg-user] Trouble compiling mp4 with two pass encoding In-Reply-To: References: Message-ID: There are error messages in your printout. Try to solve them first: [NULL @ 0xa95abe0] [Eval @ 0xbfd58fa8] Undefined constant or missing '(' in 'bpyramid' [NULL @ 0xa95abe0] Unable to parse option value "bpyramid+wpred+mixed_refs+dct8x8" [NULL @ 0xa95abe0] Error setting option flags2 to value +bpyramid+wpred+mixed_refs+dct8x8. On Tue, Sep 4, 2012 at 5:16 PM, Thyen Hong Guedes Chang wrote: > Hello, > > I'm having trouble compiling a .avi file into a .mp4 file with two pass > encoding. > I'm following this tutorial http://h264.code-shop.com/trac/wiki/Encodingand > receiving the results: > > infile ="video.avi" > tmpfile="video_tmp.mp4" > outfile="video.mp4" > options="-vcodec libx264 -b 512k -flags +loop+mv4 -cmp 256 \ > -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 \ > -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \ > -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 > \ > -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10\ > -qmax 51 -qdiff 4" > > ffmpeg -y -i "$infile" -an -pass 1 -threads 2 $options "$tmpfile" > > > It returns me: > > ffmpeg version git-2012-09-04-9de7622 Copyright (c) 2000-2012 the > FFmpeg developers > built on Sep 4 2012 10:24:49 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 > libavutil 51. 70.100 / 51. 70.100 > libavcodec 54. 55.100 / 54. 55.100 > libavformat 54. 25.104 / 54. 25.104 > libavdevice 54. 2.100 / 54. 2.100 > libavfilter 3. 15.103 / 3. 15.103 > libswscale 2. 1.101 / 2. 1.101 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > Input #0, avi, from 'a.avi': > Duration: 00:00:30.00, start: 0.000000, bitrate: 25994 kb/s > Stream #0:0: Video: msrle ([1][0][0][0] / 0x0001), pal8, 790x704, > 10 tbr, 10 tbn, 10 tbc > Please use -b:a or -b:v, -b is ambiguous > [NULL @ 0xa95abe0] [Eval @ 0xbfd58fa8] Undefined constant or missing > '(' in 'bpyramid' > [NULL @ 0xa95abe0] Unable to parse option value > "bpyramid+wpred+mixed_refs+dct8x8" > [NULL @ 0xa95abe0] Error setting option flags2 to value > +bpyramid+wpred+mixed_refs+dct8x8. > Output #0, mp4, to 'a_tmp.mp4': > Stream #0:0: Video: none, yuv444p, 790x704, q=-1--1, pass 1, 512 > kb/s, 90k tbn, 10 tbc > Stream mapping: > Stream #0:0 -> #0:0 (msrle -> libx264) > Error while opening encoder for output stream #0:0 - maybe incorrect > parameters such as bit_rate, rate, width or height > > > Any help? > > -- > Thyen Hong Guedes Chang > Bacharelando em Ci?ncias da Computa??o > Universidade Federal de Goi?s > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nicolas.george at normalesup.org Tue Sep 4 18:37:12 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Tue, 4 Sep 2012 18:37:12 +0200 Subject: [FFmpeg-user] astreamsync freezes? In-Reply-To: References: <20120830062557.GA21734@phare.normalesup.org> Message-ID: <20120904163712.GE31768@phare.normalesup.org> Le quartidi 14 fructidor, an CCXX, Roger Pack a ?crit?: > I believe I do. > It may be useful for a filter I'm trying to implement that does audio > cancelling (speex). > > Basically if the input could be guaranteed to receive the "send" > timestamped audio before "receive" timestamped audio then it I could > simplify its internal logic. > > My original goal was to do something like > > $ ffmpeg -i stream1 -i stream2 -filter_complex "[0] asetnsamples=n=100 > [a]; [1] asetnsamples=n=100 [b]; [a] [b] astreamsync [a2] [b2]; [a2] > [b2] aechocancel" > > So that I could have lots of small'ish audio packets sent into the > audio cancel filters, but in approximately the right order (small > packet from a, then small packet from b, interleaved). This might > allow the echo cancel filter to more simply be able to operate on > "small packets" instead of having to do its own internal buffering, > etc. which may allow it to use a smaller "internal buffer" which, > according to the speex docu, is supposedly more effective (and save > cpu, etc.) > > If that makes any sense at all. It does indeed make sense. This is not the preferred design at this time, though: currently, filters with several inputs are expected to work by themselves to ensure proper sync. Actually, "preferred" is a bit of a stretch, there are currently only three filters with that kind of features: overlay, amerge (work like that) and alphamerge (requires frame-exactness, fix in TODO list). Of course, it can be discussed, but I am affraid that an API to do that kind of thing automatically with additional filters would be very hard to design, especially if it must be nimble enough to allow various combinations. I believe that having queues inside the private context of the filters and a set of well-thought helper functions to handle the various cases is a simpler and more robust approach. 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 lou at lrcd.com Tue Sep 4 19:43:11 2012 From: lou at lrcd.com (Lou) Date: Tue, 4 Sep 2012 09:43:11 -0800 Subject: [FFmpeg-user] Trouble compiling mp4 with two pass encoding In-Reply-To: References: Message-ID: <20120904094311.28f6d99f@lrcd.com> On Tue, 4 Sep 2012 11:16:13 -0300 Thyen Hong Guedes Chang wrote: > Hello, > > I'm having trouble compiling a .avi file into a .mp4 file with two pass > encoding. > I'm following this tutorial http://h264.code-shop.com/trac/wiki/Encoding and > receiving the results: > > infile ="video.avi" > tmpfile="video_tmp.mp4" > outfile="video.mp4" > options="-vcodec libx264 -b 512k -flags +loop+mv4 -cmp 256 \ > -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 \ > -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \ > -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 \ > -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10\ > -qmax 51 -qdiff 4" [trimmed] That guide is outdated and uses the really old, messy way of encoding with libx264. It is recommended to use the libx264 encoding presets instead of declaring each (depreciated) option. See examples here: https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide From info at softcontrol.it Tue Sep 4 15:26:04 2012 From: info at softcontrol.it (Dott Ferrari Beniamino) Date: Tue, 4 Sep 2012 15:26:04 +0200 Subject: [FFmpeg-user] Hi Problem Compilng FFMPEG Message-ID: Hi I am compiling FFMPEG android-ndk-r5b in cygwin. I reports the config.log I attach the file. Thanks Best regards Beniamino Ferrari -- Softcontrol di Ferrari Beniamino www.softcontrol.it / info at softcontrol.it P.IVA 01466300199 Via Gorizia, 20 - 26013 Crema (CR) Italy Tel +393291238807 Le informazioni contenute in questo messaggio di posta elettronica o negli allegati sono da considerarsi strettamente riservate. Il loro utilizzo ? consentito esclusivamente al destinatario del messaggio, per le finalit? indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, o utilizzarlo per finalit? diverse. The information in this communication (which includes any documents with it) is confidential and may also be legally privileged. It is intended for the addressee only. Access to this e-mail by anyone else is unauthorised. It is not to be relied upon by any person other than the addressee, except with our prior written approval. If you received this message please send an email to the sender. -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 61186 bytes Desc: not available URL: From jeduardo07 at hotmail.es Tue Sep 4 17:23:29 2012 From: jeduardo07 at hotmail.es (Jeison Eduardo) Date: Tue, 4 Sep 2012 10:23:29 -0500 Subject: [FFmpeg-user] ffmpeg problem Message-ID: jeison at jeison-laptop:~/ffmpeg$ ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab ERROR: libx264 version must be >= 0.99. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to theffmpeg-user at mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will helpsolving the problem. jeison at jeison-laptop:~/ffmpeg$ make libavcodec/libvorbis.c:257: warning: initialization discards qualifiers from pointer target typeCC libavcodec/libx264.olibavcodec/libx264.c: In function ?X264_frame?:libavcodec/libx264.c:92: error: implicit declaration of function ?x264_picture_init?libavcodec/libx264.c:104: error: ?X264_TYPE_KEYFRAME? undeclared (first use in this function)libavcodec/libx264.c:104: error: (Each undeclared identifier is reported only oncelibavcodec/libx264.c:104: error: for each function it appears in.)libavcodec/libx264.c: In function ?X264_init?:libavcodec/libx264.c:177: error: ?struct ? has no member named ?f_rf_constant_max?make: *** [libavcodec/libx264.o] Error 1 JEVG From lou at lrcd.com Tue Sep 4 20:03:38 2012 From: lou at lrcd.com (Lou) Date: Tue, 4 Sep 2012 10:03:38 -0800 Subject: [FFmpeg-user] ffmpeg problem In-Reply-To: References: Message-ID: <20120904100338.09280e15@lrcd.com> On Tue, 4 Sep 2012 10:23:29 -0500 Jeison Eduardo wrote: > > > jeison at jeison-laptop:~/ffmpeg$ ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab > ERROR: libx264 version must be >= 0.99. > > If you think configure made a mistake, make sure you are using the latest version from SVN. You're using old source. FFmpeg has not used SVN since 2011-01-19. See a compiling guide if you need help: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide From lists.davep at gmail.com Tue Sep 4 21:25:41 2012 From: lists.davep at gmail.com (Dave P) Date: Tue, 4 Sep 2012 15:25:41 -0400 Subject: [FFmpeg-user] align audio and video using PTS In-Reply-To: References: Message-ID: On Sep 4, 2012 4:57 AM, "Rares Pop" wrote: > > Fellow ffmpeg users, > > I have 2 TS files that have been split (by a vdr recorder): file1.ts and file2.ts. > file1.ts ends with x miliseconds of video that don't have audio packets because they are actually at the beginning of file2.ts. > > How can I use ffmpeg to construct a synchronized file1 by taking the missing audio from file2.ts ? > I hope this could be done intelligently by using the PTS information in each file, I just don't know how. Please bare in mind that x is variable for every split. > > Your help would be greatly appreciated. > > Thanks for your time, > Rares > On windows I would use "copy /b file1.ts+file2.ts file3.ts" and then use ffmpeg to process file3. I'm not sure of the bash equivalent. "xxd -b" ? From andyqos at ukfsn.org Tue Sep 4 21:49:05 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Tue, 04 Sep 2012 20:49:05 +0100 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: References: <4FE42890.7040101@yahoo.com> <4FF32096.1010400@ukfsn.org> <4FF45CCA.30503@ukfsn.org> Message-ID: <50465B31.60405@ukfsn.org> Iban Garcia wrote: > Hi, > > I go on with searching the best way to convert HD-1080i content to SD-576i > content, with losing the minimun detail... :-O > > Well... I have making some new tests... but when transcoding from HD 1080i > to SD-PAL the video loses a lot of detail (i.e., 720x576i video is a little > bit blurred) > > I have tested with this option UNSHARP filter in order to get a SHARPer SD > content: $comando="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt > yuv411p -aspect 16:9 -vf > \"scale=720:576:interl=1,fieldorder=bff,unsharp=7:7:2.5\" -vcodec dvvideo > -map 0:v -map 0:a:2 -ac 2 ".$output_file.".dv"; > > But there is a problem... unsharp filter is acting with frames and not with > fields. So, the video after filtering gets a wrong output: blinking. > > Is there any way to use "sharp filter" with fields and not with frames? > > Many Thanks in advance!! I'm still not sure that sharpening is a good idea on interlaced, but it's not my video and I suppose it's more likely not to be played on a "real" interlaced display than in the past. Prompted by this thread I had a look at what the BBC scale was like by recording HD and SD channels showing F1 at the same time. TBH their SD looked quite soft and I could get something sharper looking at the same bitrate just using lanczos. For some strange reason my version also deinterlaced better than theirs - I maybe lucked into that one. Sometime I am going to repeat and see. From lbrtchx at gmail.com Tue Sep 4 22:24:56 2012 From: lbrtchx at gmail.com (Albretch Mueller) Date: Tue, 4 Sep 2012 16:24:56 -0400 Subject: [FFmpeg-user] file corruption: youtube, youtube-dl, or what? Message-ID: As I have been noticing youtube-dl downloads were corrupted way more often than I would think if attributed to random download corruption ~ Other users had noticed it as well ~ https://github.com/rg3/youtube-dl/issues/411 ~ How could ffmpeg (probably probably in tandem with scanning/binary comparison utilities) be used to check how (the metadata and/or the payload) of those media files differ? ~ thanks lbrtchx From rogerdpack2 at gmail.com Tue Sep 4 23:56:25 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 15:56:25 -0600 Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: <1346608207.13242.YahooMailClassic@web121102.mail.ne1.yahoo.com> References: <1346608207.13242.YahooMailClassic@web121102.mail.ne1.yahoo.com> Message-ID: > Can I suggest that this is a good example of the way documentation should go: > > http://msdn.microsoft.com/en-us/library/windows/desktop/dd390352(v=vs.85).aspx > > I cite this not because it describes software that has a similar purpose to ffmpeg (though that doesn't hurt), but because I was able to understand and use directshow using that in a matter of a few hours, and directshow is a notoriously complex beast. Yeah. I kind of lack expertise to add more in depth instructions...if somebody else has more knowledge then please by all means help us flesh the page out :) -r From rogerdpack2 at gmail.com Tue Sep 4 23:58:02 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 15:58:02 -0600 Subject: [FFmpeg-user] Problems dumping H264 stream from Axis camera In-Reply-To: <5044C1AE.30781.E741C5@paulj.fastmail.es> References: <50362728.6411.A33C18@paulj.fastmail.es> <5040C2F1.2106.F3E9E6@paulj.fastmail.es> <5044C1AE.30781.E741C5@paulj.fastmail.es> Message-ID: >> So if you build current git head, it doesn't work. Then you revert >> 2107009e7d351ff83a87fda161cc5269d2752428 from head and it starts >> working? That commit looks totally benign...odd. >> Also try with >> -analyzeduration 0 > Nope, it doesn't work either. And my initial question? -r From rogerdpack2 at gmail.com Wed Sep 5 00:14:31 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:14:31 -0600 Subject: [FFmpeg-user] live real time stream transcoding In-Reply-To: <1346649582557-4653149.post@n4.nabble.com> References: <1345636030933-4652823.post@n4.nabble.com> <1346649582557-4653149.post@n4.nabble.com> Message-ID: > I was trying different options for -r , starting from 16 to 50, still remain > the same. I'm able to stream maximum the 200 frames then it's crashing. If VLC works ok with it but ffmpeg not, and you have an easy way to reproduce it, I'd file a trac ticket. -r From rogerdpack2 at gmail.com Wed Sep 5 00:15:48 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:15:48 -0600 Subject: [FFmpeg-user] Audio delay with captured audio and video In-Reply-To: References: Message-ID: > ... however values for -itsoffset seemed to make the delay fall > further behind, as if it was applying it persistently to the audio > stream rather than the video stream. Normally I'd just adjust the > delay manually after the fact but unfortunately that's not possible to > do while streaming. This might be a bug. > So, is there some way to either: > a) fix/prevent the initial audio delay between the mixed pulse devices > and the video; or > b) account for it with some sort of offset? b) asetpts maybe? From rogerdpack2 at gmail.com Wed Sep 5 00:18:30 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:18:30 -0600 Subject: [FFmpeg-user] Combining multiple MP3's? In-Reply-To: References: Message-ID: On Mon, Sep 3, 2012 at 8:00 AM, Gilles wrote: > Hello > > I google for this but it doesn't work. It might be a Windows-specific > issue: > > ============ > C:\>ffmpeg.N-37208-g01fcbdf.exe -i > concat:"Dummy01.mp3\|Dummy02.mp3\|Dummy03.mp3\|Dummy04.mp3\|Dummy05.mp3\|Dummy06.mp3\|Dummy07.mp3" > -acodec copy Dummy.mp3 > > concat:Dummy01.mp3\|Dummy02.mp3\|Dummy03.mp3\|Dummy04.mp3\|Dummy05.mp3\|Dummy06.mp3\|Dummy07.mp3: > Invalid argument This works for me in windows: ffmpeg -i concat:"lame1.mp3|lame2.mp3" -acodec copy yo.mp3 So my guess is you don't want to escape those pipes. -r From rogerdpack2 at gmail.com Wed Sep 5 00:43:19 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:43:19 -0600 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip In-Reply-To: <50455A98.2070602@davidfavor.com> References: <50455A98.2070602@davidfavor.com> Message-ID: > Attempting to copy only video streams (audio dropped) > produces an output file with all the videos stacked > on top of each other. What if you include the audio? > The output video is uneditable by any software I have. > No way to move videos from off the top of each other. It seems from your youtube that it only "sees one side" in playback, is that right? > The command I'm using for the extraction is: > > ffmpeg -y -i foo.skype.mov -an -vcodec copy -map 0:2 -map 0:3 > foo.video.mov What if you try .mkv? What is the output of mediainfo for the resultant file? Cheers! -r From rogerdpack2 at gmail.com Wed Sep 5 00:45:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:45:55 -0600 Subject: [FFmpeg-user] MPEG TS mutilple channls muxing In-Reply-To: <1346749445870-4653178.post@n4.nabble.com> References: <1346749445870-4653178.post@n4.nabble.com> Message-ID: > Can anyone tell me if ffmpeg is capable of creating multiple programs in an > mpeg TS? > > Has created two kinds of TS videos, I give the options below. So you want to combine the 2 streams into a single TS? From rogerdpack2 at gmail.com Wed Sep 5 00:49:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:49:55 -0600 Subject: [FFmpeg-user] astreamsync freezes? In-Reply-To: <20120904163712.GE31768@phare.normalesup.org> References: <20120830062557.GA21734@phare.normalesup.org> <20120904163712.GE31768@phare.normalesup.org> Message-ID: >> If that makes any sense at all. > > It does indeed make sense. This is not the preferred design at this time, > though: currently, filters with several inputs are expected to work by > themselves to ensure proper sync. Actually, "preferred" is a bit of a > stretch, there are currently only three filters with that kind of features: > overlay, amerge (work like that) and alphamerge (requires frame-exactness, > fix in TODO list). > > Of course, it can be discussed, but I am affraid that an API to do that kind > of thing automatically with additional filters would be very hard to design, > especially if it must be nimble enough to allow various combinations. Yeah. I was kind of hoping the astreamsync filter would be enough for this particular case, when combined with asetnsamples. Except the latter is buggy so it definitely isn't enough today :) > I believe that having queues inside the private context of the filters and a > set of well-thought helper functions to handle the various cases is a > simpler and more robust approach. Yeah that would help. I suppose I'll work around it for now. Thanks! -r From rogerdpack2 at gmail.com Wed Sep 5 00:51:16 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:51:16 -0600 Subject: [FFmpeg-user] Hi Problem Compilng FFMPEG In-Reply-To: References: Message-ID: > I reports the config.log > > I attach the file. I presume the file has an error in it? Anyway, I see this at the end: ./configure: line 572: arm-linux-androideabi-gcc: command not found C compiler test failed. So I imagine you've got your path setup wrong... -r From rogerdpack2 at gmail.com Wed Sep 5 00:52:16 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:52:16 -0600 Subject: [FFmpeg-user] align audio and video using PTS In-Reply-To: References: Message-ID: > I have 2 TS files that have been split (by a vdr recorder): file1.ts and file2.ts. > file1.ts ends with x miliseconds of video that don't have audio packets because they are actually at the beginning of file2.ts. > > How can I use ffmpeg to construct a synchronized file1 by taking the missing audio from file2.ts ? > I hope this could be done intelligently by using the PTS information in each file, I just don't know how. Please bare in mind that x is variable for every split. You may be able to use ffprobe -show_packets and use its extracted output. -r From sheen.andy at googlemail.com Wed Sep 5 00:52:26 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 04 Sep 2012 23:52:26 +0100 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip In-Reply-To: References: <50455A98.2070602@davidfavor.com> Message-ID: <5046862A.8020706@googlemail.com> Roger Pack wrote on Tue 04 Sep at 23:43 UK time >> The output video is uneditable by any software I have. >> No way to move videos from off the top of each other. > > It seems from your youtube that it only "sees one side" in playback, > is that right? > >> The command I'm using for the extraction is: >> >> ffmpeg -y -i foo.skype.mov -an -vcodec copy -map 0:2 -map 0:3 >> foo.video.mov > > What if you try .mkv? > What is the output of mediainfo for the resultant file? > I had a quick look and it looks to me that the two videos would need some form of pan & scan vectors to be able to be two separate streams and appear side by side in the original capture. I'm not in any way familiar with the formats in use (is there anything other than H.264 and .mkvs teehee) but that's where I'd look to see if they were being dropped when the stream were copied. You'd get both videos decoding, but displaying on top of each other. This would match the fact you have 2 video streams, but only one plays. I don't know if mediainfo has this level of detail (or even if the streams are capable of supporting P&S in this way). > Cheers! > -r Andy From rogerdpack2 at gmail.com Wed Sep 5 00:54:13 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 16:54:13 -0600 Subject: [FFmpeg-user] file corruption: youtube, youtube-dl, or what? In-Reply-To: References: Message-ID: > Other users had noticed it as well > ~ > https://github.com/rg3/youtube-dl/issues/411 > ~ > How could ffmpeg (probably probably in tandem with scanning/binary > comparison utilities) be used to check how (the metadata and/or the > payload) of those media files differ? Did you see my answer to your previous post? -r From tower119 at gmail.com Wed Sep 5 01:08:25 2012 From: tower119 at gmail.com (Park) Date: Tue, 4 Sep 2012 16:08:25 -0700 (PDT) Subject: [FFmpeg-user] MPEG TS mutilple channls muxing In-Reply-To: References: <1346749445870-4653178.post@n4.nabble.com> Message-ID: <1346800105615-4653206.post@n4.nabble.com> Yes, http://www.pjdaniel.org.uk/mpeg/downloads/mux1-cp.zip URL Sample TS file multiple channels of BBC, is made of a single TS stream file. Sample as one of the TS stream file, and I want to have multiple Programs. I would like to know the option to create one TS file into more than two video. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MPEG-TS-mutilple-channls-muxing-tp4653178p4653206.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rogerdpack2 at gmail.com Wed Sep 5 02:06:03 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 18:06:03 -0600 Subject: [FFmpeg-user] MPEG TS mutilple channls muxing In-Reply-To: <1346800105615-4653206.post@n4.nabble.com> References: <1346749445870-4653178.post@n4.nabble.com> <1346800105615-4653206.post@n4.nabble.com> Message-ID: > URL Sample TS file multiple channels of BBC, is made of a single TS stream > file. Ok so multiple channels into a single TS file. I know you can include multiple channels with the -map method, however I'm not sure about setting TS program ID's... -r From rogerdpack2 at gmail.com Wed Sep 5 02:28:42 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Sep 2012 18:28:42 -0600 Subject: [FFmpeg-user] asetnsamples loses channel layout? In-Reply-To: <20120831220944.GJ14441@arborea> References: <20120831220944.GJ14441@arborea> Message-ID: >> $ ffmpeg.exe -filter_complex "amovie=mono.wav [l] ; amovie=mono.wav >> [r] ; [l] asetnsamples=n=1000 [l1]; [r] asetnsamples=n=1000 [r1]; [l1] >> [r1] amerge" -y yo.wav > > This is actually a bug in amerge, it is the same if you change > asetnsamples with anull. Should I file a JIRA for these after mentioning them here, do you think? Is that preferable? -r From tower119 at gmail.com Wed Sep 5 03:05:47 2012 From: tower119 at gmail.com (Park) Date: Tue, 4 Sep 2012 18:05:47 -0700 (PDT) Subject: [FFmpeg-user] MPEG TS mutilple channls muxing In-Reply-To: References: <1346749445870-4653178.post@n4.nabble.com> <1346800105615-4653206.post@n4.nabble.com> Message-ID: <1346807147698-4653209.post@n4.nabble.com> Thank you. But I do not know how to use -map. Doc listed in the-map option, do not know how to add a channel. I'm sorry, but for the additional channel-map option, I would like to know how to use. And set changes, the PID is difficult ............... :'( Or If you have a constant index for each channel so you know when to demux. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MPEG-TS-mutilple-channls-muxing-tp4653178p4653209.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tony.bartcim at gmail.com Wed Sep 5 04:36:02 2012 From: tony.bartcim at gmail.com (Tony Bartolucci) Date: Tue, 4 Sep 2012 22:36:02 -0400 Subject: [FFmpeg-user] ffmpeg adds edts atom's? Message-ID: Hello, Can you please confirm that FFMPEG's default behavior is to always add a edts atom especially when splitting a file regardless of any vcodec or acodec copy params? ie ffmpeg -i file.mp4 -vcodec copy -acodec copy -ss 00:06:00 -t 600 C:\Desktop\sample_split.mp4" Atom edts @ 110497568 of size: 36, ends @ 110497604 Atom elst @ 110497576 of size: 28, ends @ 110497604 Atom edts @ 110658628 of size: 36, ends @ 110658664 Atom elst @ 110658636 of size: 28, ends @ 110658664 From mbradshaw at sorensonmedia.com Wed Sep 5 07:02:48 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 4 Sep 2012 23:02:48 -0600 Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: References: <1346608207.13242.YahooMailClassic@web121102.mail.ne1.yahoo.com> Message-ID: On Tue, Sep 4, 2012 at 3:56 PM, Roger Pack wrote: >> Can I suggest that this is a good example of the way documentation should go: >> >> http://msdn.microsoft.com/en-us/library/windows/desktop/dd390352(v=vs.85).aspx >> >> I cite this not because it describes software that has a similar purpose to ffmpeg (though that doesn't hurt), but because I was able to understand and use directshow using that in a matter of a few hours, and directshow is a notoriously complex beast. > > Yeah. I kind of lack expertise to add more in depth instructions...if > somebody else has more knowledge then please by all means help us > flesh the page out :) Out of curiosity, what are peoples' thoughts on adding some basic crash course "getting started" stuff on what (raw) video and audio is and how they work, what codecs are and how they work, and what format containers are and how they work? This would be a significant addition (as in time consuming to do a good job), but I think it would help people have a one-stop intro to using libav* (plus the info wouldn't get outdated as libav* progresses). I've met a lot of people who expected video/audio to be simpler when they wanted to add it to their application and got lost in the midst of trying to understand both video and libav* (or whatever other libs they were using). --Michael From francois.visagie at gmail.com Wed Sep 5 07:59:11 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Wed, 5 Sep 2012 07:59:11 +0200 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: <50465B31.60405@ukfsn.org> References: <4FE42890.7040101@yahoo.com> <4FF32096.1010400@ukfsn.org> <4FF45CCA.30503@ukfsn.org> <50465B31.60405@ukfsn.org> Message-ID: <00a501cd8b2b$94b29ac0$be17d040$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Andy Furniss > Sent: 04 September 2012 21:49 > To: FFmpeg user questions > Cc: Iban Garcia > Subject: Re: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 > DV? > > Iban Garcia wrote: > > Hi, > > > > I go on with searching the best way to convert HD-1080i content to > > SD-576i content, with losing the minimun detail... :-O > > > > Well... I have making some new tests... but when transcoding from HD > > 1080i to SD-PAL the video loses a lot of detail (i.e., 720x576i video > > is a little bit blurred) > > > > I have tested with this option UNSHARP filter in order to get a > > SHARPer SD > > content: $comando="ffmpeg -y -threads 8 -i ".$input_file.".mxf > > -pix_fmt yuv411p -aspect 16:9 -vf > > \"scale=720:576:interl=1,fieldorder=bff,unsharp=7:7:2.5\" -vcodec > > dvvideo -map 0:v -map 0:a:2 -ac 2 ".$output_file.".dv"; > > > > But there is a problem... unsharp filter is acting with frames and not > > with fields. So, the video after filtering gets a wrong output: blinking. > > > > Is there any way to use "sharp filter" with fields and not with frames? > > > > Many Thanks in advance!! > > I'm still not sure that sharpening is a good idea on interlaced, but it's not my > video and I suppose it's more likely not to be played on a "real" interlaced > display than in the past. I agree. If you absolutely MUST sharpen, what usually works best is to use a specialist deinterlacer > sharpen > re-interlace. A good example of such an interlacer would be Avisynth's QTGMC. But in my limited experience with DV, perceived loss of detail is usually caused by less-than-optimal resizing or (unexpected) colourspace conversions and/or imagination! Remember, chances are you're watching the interlaced output on a progressive display as suggested by Andy. With a player lacking dedicated interlaced support this will make the output look worse than it is. > > Prompted by this thread I had a look at what the BBC scale was like by > recording HD and SD channels showing F1 at the same time. > > TBH their SD looked quite soft and I could get something sharper looking at > the same bitrate just using lanczos. > > For some strange reason my version also deinterlaced better than theirs > - I maybe lucked into that one. Sometime I am going to repeat and see. > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Wed Sep 5 08:20:56 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Wed, 5 Sep 2012 08:20:56 +0200 Subject: [FFmpeg-user] Trouble compiling mp4 with two pass encoding In-Reply-To: References: Message-ID: <00af01cd8b2e$a45b5d60$ed121820$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Thyen Hong Guedes Chang > Sent: 04 September 2012 16:16 > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] Trouble compiling mp4 with two pass encoding > > Hello, > > I'm having trouble compiling a .avi file into a .mp4 file with two pass encoding. > I'm following this tutorial http://h264.code-shop.com/trac/wiki/Encoding and > receiving the results: > > infile ="video.avi" > tmpfile="video_tmp.mp4" > outfile="video.mp4" > options="-vcodec libx264 -b 512k -flags +loop+mv4 -cmp 256 \ > -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 \ > -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \ > -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range > 16 \ > -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10\ > -qmax 51 -qdiff 4" > > ffmpeg -y -i "$infile" -an -pass 1 -threads 2 $options "$tmpfile" > > > It returns me: > > ffmpeg version git-2012-09-04-9de7622 Copyright (c) 2000-2012 the FFmpeg > developers > built on Sep 4 2012 10:24:49 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 > libavutil 51. 70.100 / 51. 70.100 > libavcodec 54. 55.100 / 54. 55.100 > libavformat 54. 25.104 / 54. 25.104 > libavdevice 54. 2.100 / 54. 2.100 > libavfilter 3. 15.103 / 3. 15.103 > libswscale 2. 1.101 / 2. 1.101 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > Input #0, avi, from 'a.avi': > Duration: 00:00:30.00, start: 0.000000, bitrate: 25994 kb/s > Stream #0:0: Video: msrle ([1][0][0][0] / 0x0001), pal8, 790x704, > 10 tbr, 10 tbn, 10 tbc > Please use -b:a or -b:v, -b is ambiguous [NULL @ 0xa95abe0] [Eval @ > 0xbfd58fa8] Undefined constant or missing '(' in 'bpyramid' > [NULL @ 0xa95abe0] Unable to parse option value > "bpyramid+wpred+mixed_refs+dct8x8" > [NULL @ 0xa95abe0] Error setting option flags2 to value > +bpyramid+wpred+mixed_refs+dct8x8. > Output #0, mp4, to 'a_tmp.mp4': > Stream #0:0: Video: none, yuv444p, 790x704, q=-1--1, pass 1, 512 kb/s, 90k > tbn, 10 tbc Stream mapping: > Stream #0:0 -> #0:0 (msrle -> libx264) Error while opening encoder for > output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, > width or height Those messages are caused by using old syntax on a newer version ffmpeg. The best route forward is to optimise your command line using the guide Lou suggested. The quick and dirty way is to add the :a and :v specifiers as suggested above, and to substitute current option names for the ones giving errors. Between the documentation and command line help I could find them all except one I had to look up in the code, hopefully you don't use that one ;-). The only one I'm unsure of is whether wpred is equivalent to weightb, perhaps someone can confirm. > > > Any help? > > -- > Thyen Hong Guedes Chang > Bacharelando em Ci?ncias da Computa??o > Universidade Federal de Goi?s > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Wed Sep 5 08:20:56 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Wed, 5 Sep 2012 08:20:56 +0200 Subject: [FFmpeg-user] MPEG TS mutilple channls muxing In-Reply-To: <1346807147698-4653209.post@n4.nabble.com> References: <1346749445870-4653178.post@n4.nabble.com> <1346800105615-4653206.post@n4.nabble.com> <1346807147698-4653209.post@n4.nabble.com> Message-ID: <00b001cd8b2e$a5d37e70$f17a7b50$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Park > Sent: 05 September 2012 03:06 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] MPEG TS mutilple channls muxing > > Thank you. > > But I do not know how to use -map. > Doc listed in the-map option, do not know how to add a channel. This should help: http://www.ffmpeg.org/ffmpeg.html#Stream-selection and http://www.ffmpeg.org/ffmpeg.html#Stream-specifiers-1 This brings me to a question however. According to the command line, usage is: -map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_s set input stream mapping What is that [-] used for? > > I'm sorry, but > for the additional channel-map option, I would like to know how to use. > > And set changes, the PID is difficult ............... :'( > > Or If you have a constant index for each channel so you know when to > demux. > > > > -- > View this message in context: http://ffmpeg- > users.933282.n4.nabble.com/MPEG-TS-mutilple-channls-muxing- > tp4653178p4653209.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 From wtfux.dev at googlemail.com Wed Sep 5 17:54:16 2012 From: wtfux.dev at googlemail.com (wtfux) Date: Wed, 5 Sep 2012 17:54:16 +0200 Subject: [FFmpeg-user] Problems decoding h264 from Blu-ray Message-ID: Hello, I have trouble decoding the H.264/AVC stream of an unprotected Blu-ray (m2ts container) with ffmpeg (on Windows). I tried the zeranoe's Windows build and my own. Both fail to decode the stream *at different positions* with errors like these: cabac decode of qscale diff failed at 62 61 [h264 @ 0000000003985840] error while decoding MB 62 61, bytestream (59232) [h264 @ 0000000003985840] concealing 827 DC, 827 AC, 827 MV errors in I frame [h264 @ 0000000003985840] left block unavailable for requested intra mode at 0 60 [h264 @ 0000000003985840] error while decoding MB 0 60, bytestream (78993) [h264 @ 0000000003985840] concealing 1009 DC, 1009 AC, 1009 MV errors in I frame top block unavailable for requested intra mode at 97 16 [h264 @ 0000000003985840] error while decoding MB 97 16, bytestream (202101) [h264 @ 0000000003985840] concealing 2112 DC, 2112 AC, 2112 MV errors in I frame These errors result in blocky image errors in the output file. Command line: ffmpeg.exe -i 00000.m2ts -report -loglevel verbose -codec:v libx264 -preset:v veryslow -profile:v high10 -tune:v animation -level:v 5.1 -refs:v 16 -subq:v 11 -me_range:v 24 -bf:v 16 -trellis:v 2 -x264opts "rc_lookahead=160:psy-rd=0.4,0.15:aq-mode=2:aq-strength=0.6" -chromaoffset:v -3 -crf:v 15 -codec:a libfdk_aac -b:a 200k -sn -threads 4 asa-10.mkv m2ts info: http://pastie.org/4668776 Full ffmpeg log (canceled after errors occurred): Warning: large (3MB) https://dl.dropbox.com/u/17527004/ffmpeg-20120905-152133.log The video plays fine in VLC player and MPC (using codec: ffdshow libavcodec h264) and the decoding errors appear at different positions so I think the input video should be fine. Does anyone have an idea why the decoding fails and how to fix it? Thanks! From rogerdpack2 at gmail.com Wed Sep 5 18:17:01 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 10:17:01 -0600 Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: References: <1346608207.13242.YahooMailClassic@web121102.mail.ne1.yahoo.com> Message-ID: > Out of curiosity, what are peoples' thoughts on adding some basic > crash course "getting started" stuff on what (raw) video and audio is > and how they work, what codecs are and how they work, and what format > containers are and how they work? This would be a significant addition > (as in time consuming to do a good job), but I think it would help > people have a one-stop intro to using libav* (plus the info wouldn't > get outdated as libav* progresses). I've met a lot of people who > expected video/audio to be simpler when they wanted to add it to their > application and got lost in the midst of trying to understand both > video and libav* (or whatever other libs they were using). Yeah some intro would be helpful. From phil_rhodes at rocketmail.com Wed Sep 5 18:48:17 2012 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 5 Sep 2012 09:48:17 -0700 (PDT) Subject: [FFmpeg-user] "getting started" for libav users In-Reply-To: Message-ID: <1346863697.67201.YahooMailClassic@web121106.mail.ne1.yahoo.com> > > Out of curiosity, what are > peoples' thoughts on adding some basic > > crash course "getting started" stuff on what (raw) > video and audio is > > and how they work, what codecs are and how they work, > and what format > > containers are and how they work? That I certainly can write - in fact, I've written that sort of intro many times before for various people. There are a couple of problems, though, mainly that I'd like to see a decent amount of progress on the API technical side of it before committing the time. P From rogerdpack2 at gmail.com Wed Sep 5 20:56:43 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 12:56:43 -0600 Subject: [FFmpeg-user] pkg-config --static ? Message-ID: Hello. I noticed that "by default" when I compile fontconfig as a static library, then enable it in ffmpeg with --enable-fontconfig, I get these: /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcxml.o): In function `FcConfigMessage': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:504: undefined reference to `XML_GetCurrentLineNumber' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:507: undefined reference to `XML_GetCurrentLineNumber' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2928: undefined reference to `XML_ParserCreate' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2940: undefined reference to `XML_SetUserData' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2942: undefined reference to `XML_SetDoctypeDeclHandler' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2943: undefined reference to `XML_SetElementHandler' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2944: undefined reference to `XML_SetCharacterDataHandler' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2950: undefined reference to `XML_GetBuffer' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2967: undefined reference to `XML_ParseBuffer' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2979: undefined reference to `XML_ParserFree' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2970: undefined reference to `XML_GetErrorCode' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcxml.c:2970: undefined reference to `XML_ErrorString' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeUseNames': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2068: undefined reference to `FT_Has_PS_Glyph_Names' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeCheckGlyph': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2256: undefined reference to `FT_Load_Glyph' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeCharSetAndSpacingForSize': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2319: undefined reference to `FT_Select_Size' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2330: undefined reference to `FT_Select_Charmap' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2342: undefined reference to `FT_Get_Char_Index' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2455: undefined reference to `FT_Get_Glyph_Name' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2389: undefined reference to `FT_Get_First_Char' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2428: undefined reference to `FT_Get_Next_Char' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeCharIndex': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2202: undefined reference to `FT_Select_Charmap' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2212: undefined reference to `FT_Get_Char_Index' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeGlyphNameIndex': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2151: undefined reference to `FT_Get_Glyph_Name' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeCharSetAndSpacing': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2535: undefined reference to `FT_Get_Sfnt_Table' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1144: undefined reference to `FT_Get_Sfnt_Table' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1164: undefined reference to `FT_Get_Sfnt_Name_Count' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1188: undefined reference to `FT_Get_Sfnt_Name' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1391: undefined reference to `FT_Get_Sfnt_Table' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFontCapabilities': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:2705: undefined reference to `FT_Load_Sfnt_Table' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1495: undefined reference to `FT_Get_PS_Font_Info' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1649: undefined reference to `FT_Get_BDF_Property' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1670: undefined reference to `FT_Get_BDF_Property' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcGetPixelSize': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1034: undefined reference to `FT_Get_BDF_Property' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1530: undefined reference to `FT_Get_BDF_Property' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1537: undefined reference to `FT_Get_BDF_Property' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o):/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1560: more undefined references to `FT_Get_BDF_Property' follow /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1495: undefined reference to `FT_Get_PS_Font_Info' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1709: undefined reference to `FT_Get_X11_Font_Format' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQuery': /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1740: undefined reference to `FT_Init_FreeType' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1743: undefined reference to `FT_New_Face' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1752: undefined reference to `FT_Done_FreeType' /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/win32/fontconfig-2.10.1/src/fcfreetype.c:1750: undefined reference to `FT_Done_Face' presumably, because it is running pkg-config like this: $ pkgconfig pkg-config --libs fontconfig which outputs: -L/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib -lfontconfig after consulting the fontconfig people, they suggest this work around: $ pkg-config --static --libs fontconfig which outputs this: -L/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32/lib -lfontconfig -lexpat -lfreetype and works. So the question is, if it would be possible to call it like that instead somehow? Anyway just wondering. Thanks! -r From c.racey1 at gmail.com Wed Sep 5 12:46:09 2012 From: c.racey1 at gmail.com (Chris Racey) Date: Wed, 5 Sep 2012 11:46:09 +0100 Subject: [FFmpeg-user] Selecting/cutting small sections of videos with ffmpeg Message-ID: I'm very much a novice user of ffmpeg, and I'm using it with the windows command prompt. I have 7 second long, 25fps, mp4 videos and I'm tyring to cut out small 2 second sections of them using ffmpeg. The problem I'm having is I cant get it to cut properly if I specify a start point other than the beginning of the video. Originally I was running this command:- Code: ffmpeg -i full.mp4 -ss 3 -t 2 -vcodec copy -acodec copy cut.mp4 This fails with errors saying I should (check -ss / -t / -frames parameters if used) (paste bin of the error: http://pastebin.com/RWJ6wFZ1). If i set -ss to 0 this cuts 2 seconds from the start and works fine. Following some advice from IRC I tried this:- Code: ffmpeg -i full.mp4 -vf select='gte(t\,3)*lte(t\,5)' -vcodec copy -acodec copy test.mp4 This ignores the specified window and copies over the whole 7 seconds. Could anyone tell me where I'm going wrong? Many thanks, Chris From mrgralich at yahoo.it Wed Sep 5 17:08:20 2012 From: mrgralich at yahoo.it (MrGralich) Date: Wed, 5 Sep 2012 08:08:20 -0700 (PDT) Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <20120203103323.GA31477@leki> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> Message-ID: <1346857700757-4653216.post@n4.nabble.com> >If you meant to add a timecode code track in the mov, this is not >supported at the moment: http://ffmpeg.org/general.html#Timecode. You can >extract the current timecode from the tmcd track with ffprobe though. Cl?ment, now, after some months, it seems supported: "MOV X X" but I can't make it work, and I've been searching and studying all day... The command I'm trying to apply is: ffmpeg -i -acodec copy -vcodec copy -metadata timecode=15:14:13:00 but I get nothing... Do you have some advice? Thank you very much Gianluca -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4653216.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Wed Sep 5 21:20:49 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 5 Sep 2012 21:20:49 +0200 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <1346857700757-4653216.post@n4.nabble.com> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1346857700757-4653216.post@n4.nabble.com> Message-ID: <20120905192049.GD6874@leki> On Wed, Sep 05, 2012 at 08:08:20AM -0700, MrGralich wrote: > >If you meant to add a timecode code track in the mov, this is not > >supported at the moment: http://ffmpeg.org/general.html#Timecode. You can > >extract the current timecode from the tmcd track with ffprobe though. > > Cl?ment, now, after some months, it seems supported: > > "MOV X X" > > but I can't make it work, and I've been searching and studying all day... > > The command I'm trying to apply is: > ffmpeg -i -acodec copy -vcodec copy -metadata > timecode=15:14:13:00 > but I get nothing... > > Do you have some advice? > Try -timecode 15:14:13:00? If it doesn't work, please paste the command line and full output, as well as the output of ffprobe output.mov. [...] -- 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 rogerdpack2 at gmail.com Wed Sep 5 21:23:11 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 13:23:11 -0600 Subject: [FFmpeg-user] Selecting/cutting small sections of videos with ffmpeg In-Reply-To: References: Message-ID: > Originally I was running this command:- > > Code: ffmpeg -i full.mp4 -ss 3 -t 2 -vcodec copy -acodec copy cut.mp4 $ ffmpeg -i sintel.mpg -ss 3 -t 2 -vcodec copy -acodec copy cut.mp4 works for me here. When you do $ ffprobe -show_packets full.mp4 what is an example output? -r From andycivil at gmail.com Wed Sep 5 21:36:18 2012 From: andycivil at gmail.com (Andy Civil) Date: Wed, 05 Sep 2012 15:36:18 -0400 Subject: [FFmpeg-user] Selecting/cutting small sections of videos with ffmpeg In-Reply-To: References: Message-ID: <5047A9B2.3050301@gmail.com> The problem is that a MP4 file contains "I Frames" which are self contained, and other frames which are only differences, they're (usually) calculated from previous frames. A MP4 file may be entirely I frames, or at the extreme, may have only one I frame at the start, and then P frames (difference frames) from there on. If you want to copy a file without recoding it, then you can ONLY cut it to start at an I frame. (You can finish anywhere.) The behaviour of FFmpeg is that if you ask to cut at a certain time with -ss then it will scan through the file to that point, then continue to scan forward until it finds an I frame, and then copy from that point on. Unless you carefully calculate your start point to coincide with an I frame, then you will lose some video. Your clip is so short that I suspect that there isn't even a single I frame between your start point (3 seconds) and your end point (2 seconds later). In this case you will get no video at all, which is exactly what your error says. Thank you for posting your output, I guess the other respondant didn't notice the link. -- Andy On 2012-09-05 6:46 AM, Chris Racey wrote: > I'm very much a novice user of ffmpeg, and I'm using it with the windows > command prompt. I have 7 second long, 25fps, mp4 videos and I'm tyring to > cut out small 2 second sections of them using ffmpeg. > > The problem I'm having is I cant get it to cut properly if I specify a > start point other than the beginning of the video. > > Originally I was running this command:- > > Code: ffmpeg -i full.mp4 -ss 3 -t 2 -vcodec copy -acodec copy cut.mp4 > > This fails with errors saying I should (check -ss / -t / -frames parameters > if used) (paste bin of the error: http://pastebin.com/RWJ6wFZ1). > > If i set -ss to 0 this cuts 2 seconds from the start and works fine. > > Following some advice from IRC I tried this:- > > Code: ffmpeg -i full.mp4 -vf select='gte(t\,3)*lte(t\,5)' -vcodec copy > -acodec copy test.mp4 > > This ignores the specified window and copies over the whole 7 seconds. > > Could anyone tell me where I'm going wrong? > > Many thanks, > Chris > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Wed Sep 5 21:42:17 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 13:42:17 -0600 Subject: [FFmpeg-user] qtrle in an avi results in "non video" playback In-Reply-To: References: Message-ID: >> Does this mean that the avi mixer should "reject" qtrle > > No, because you may choose a fourcc - for example RogP - that > ffmpeg will happily write for your avi, but that will create > more files that are unplayable with anything outside the > FFmpeg / MPlayer universe, which we try to avoid. > Otoh, if you find an avi with qtrle in the wild, we will > probably support it (and I agree with you, > at least a warning would be fine). I assume this is the same problem when one tries to put an x264 in a .mpg container? Thanks! -r output: ffmpeg -y -i sintel_trailer-480p.mp4 -vcodec copy -acodec copy out.mpg ffmpeg version N-44022-g048522f Copyright (c) 2000-2012 the FFmpeg developers built on Aug 30 2012 17:30:51 with gcc 4.7.1 (GCC) configuration: --enable-memalign-hack --arch=x86 --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --target-os=mingw32 --cross-prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-libmp3lame --enable-version3 --enable-libvo-aacenc --enable-libvpx --extra-libs=-lws2_32 --extra-libs=-lpthread --enable-zlib --extra-libs=-lwinmm --extra-libs=-lgdi32 --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --disable-optimizations --enable-mmx --disable-postproc --enable-runtime-cpudetect libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 54.100 / 54. 54.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 14.100 / 3. 14.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sintel_trailer-480p.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 1970-01-01 00:00:00 title : Sintel Trailer artist : Durian Open Movie Team encoder : Lavf52.62.0 copyright : (c) copyright Blender Foundation | durian.blender.org description : Trailer for the Sintel open movie project Duration: 00:00:52.20, start: 0.000000, bitrate: 669 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480, 537 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 126 kb/s Metadata: creation_time : 1970-01-01 00:00:00 handler_name : SoundHandler [mpeg @ 01FF6DE0] VBV buffer size not set, muxing may fail Output #0, mpeg, to 'out.mpg': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 description : Trailer for the Sintel open movie project title : Sintel Trailer artist : Durian Open Movie Team copyright : (c) copyright Blender Foundation | durian.blender.org encoder : Lavf54.25.104 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 854x480, q=2-31, 537 kb/s, 24 fps, 90k tbn, 24 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 126 kb/s Metadata: creation_time : 1970-01-01 00:00:00 handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1253 fps=0.0 q=-1.0 Lsize= 4268kB time=00:00:52.12 bitrate= 670.8kbits/s video:3428kB audio:803kB subtitle:0 global headers:0kB muxing overhead 0.866931% c:\vids>ffplay out.mpg ffplay version N-43886-g5ac603d Copyright (c) 2003-2012 the FFmpeg developers built on Aug 29 2012 06:12:51 with gcc 4.7.1 (GCC) configuration: --enable-memalign-hack --arch=x86 --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --target-os=mingw32 --cross-prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-libmp3lame --enable-version3 --enable-libvo-aacenc --enable-libvpx --extra-libs=-lws2_32 --extra-libs=-lpthread --enable-zlib --extra-libs=-lwinmm --extra-libs=-lgdi32 --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-runtime-cpudetect libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 54.100 / 54. 54.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 13.101 / 3. 13.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 02273CE0] probed stream 0 failed [mp1 @ 0228CC20] Header missing Last message repeated 639 times [mpeg @ 02273CE0] Could not find codec parameters for stream 0 (Video: none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpeg @ 02273CE0] decoding for stream 1 failed [mpeg @ 02273CE0] Could not find codec parameters for stream 1 (Audio: mp1, 0 channels, s16): unspecified sample size Consider increasing the value for the 'analyzeduration' and 'probesize' options out.mpg: could not find codec parameters From rogerdpack2 at gmail.com Wed Sep 5 22:03:08 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 14:03:08 -0600 Subject: [FFmpeg-user] acodec copy creates file with unplayable audio? In-Reply-To: References: Message-ID: > Hello. > I noticed with this file: > > http://rogerdpack.t28.net/incoming/sintel.mpg > > and this command: > > $ ffmpeg -y -i sintel.mpg -t 60 -vcodec copy -acodec copy out.mpg > ffmpeg version N-43577-g045f8dd Copyright (c) 2000-2012 the FFmpeg developers > built on Aug 15 2012 14:10:50 with gcc 4.7.1 (GCC) > configuration: --enable-memalign-hack --arch=x86 --enable-gpl > --enable-libx264 --enable-avisynth --enable-libxvid > --target-os=mingw32 > --cross-prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/bin/i686-w64-mingw32- > --pkg-config=pkg-config --enable-libmp3lame --enable-version3 > --enable-libvo-aacenc --enable-libvpx --extra-libs=-lws2_32 > --extra-libs=-lpthread --enable-zlib --extra-libs=-lwinmm > --extra-libs=-lgdi32 --enable-librtmp --enable-runtime-cpudetect > libavutil 51. 69.100 / 51. 69.100 > libavcodec 54. 52.100 / 54. 52.100 > libavformat 54. 23.100 / 54. 23.100 > libavdevice 54. 2.100 / 54. 2.100 > libavfilter 3. 9.100 / 3. 9.100 > libswscale 2. 1.101 / 2. 1.101 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [mpeg2video @ 01C2F6A0] ac-tex damaged at 40 7 > [mpeg2video @ 01C2F6A0] Warning MVs not available > [mpeg2video @ 01C2F6A0] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame > [mpeg @ 03361800] max_analyze_duration 5000000 reached at 5024000 > Input #0, mpeg, from 'sintel.mpg': > Duration: 00:14:47.58, start: 0.233367, bitrate: 4132 kb/s > Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 > [SAR 32:27 DAR 16:9], 7000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 > tbc > Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s > Output #0, mpeg, to 'out.mpg': > Metadata: > encoder : Lavf54.23.100 > Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR > 16:9], q=2-31, 7000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc > Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 1638 fps=0.0 q=-1.0 Lsize= 32396kB time=00:01:00.00 > bitrate=4423.1kbits/s > video:28947kB audio:3281kB subtitle:0 global headers:0kB muxing > overhead 0.520095% > > It seems to succeed... > > However, the output doesn't seem to have "playable audio" for mplayer or VLC. Also WMP can't seek on it "as well" as it can with the original, but I suppose that's probably not related. From rogerdpack2 at gmail.com Wed Sep 5 22:06:41 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 14:06:41 -0600 Subject: [FFmpeg-user] some files unplayable in WMP In-Reply-To: References: Message-ID: >> $ ffmpeg -f dshow -i video=screen-capture-recorder >> -vcodec libx264 -an sintel2.mpg >> >> produces a file unplayable by WMP > > Does it play with MPlayer / ffplay? > > I don't think WMP supports h264 in mpeg-ps. > (But again, if I am wrong, please share a working > sample and report the problem!) It does play with ffplay, but not with mplayer, so yeah, having it "warn" people when they put potentially bad streams in containers might be kind :) -r From rogerdpack2 at gmail.com Wed Sep 5 22:09:11 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 14:09:11 -0600 Subject: [FFmpeg-user] some files unplayable in WMP In-Reply-To: References: Message-ID: >> Are "not playable in WMP" errors worth reporting? >> >> Example: >> $ ffmpeg -i sintel.mpg -vcodec copy -acodec copy out.avi >> >> produces a file that has working audio but not working video in WMP >> (sintel.mpg itself plays fine, out.avi plays fine in VLC). > > If you have an avi with with mpegvideo that plays with > WMP, please report the problem! (assuming you meant "doesn't play with WMP"?) Thanks! http://ffmpeg.org/trac/ffmpeg/attachment/ticket/1720 From rogerdpack2 at gmail.com Thu Sep 6 00:59:56 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Sep 2012 16:59:56 -0600 Subject: [FFmpeg-user] default to yuv In-Reply-To: References: Message-ID: >> I considered it a bug that ffmpeg chose yuv420p if the input >> pixel format was bgr24 and the encoder supports yuv444. >> >> I agree that in the case of x264 this could be seen as >> unexpected, but only because the commercial h264 decoders >> typically do not support decoding anything except yuv420p. >> Please remember how many reports "If I encode my rgb input >> to mpeg2/mpeg4 the output quality is bad no matter the >> chosen bitrate!" we only received this week! > > Ok then as long as it's expected. > Thanks! And just received my second bug report in this regard. I suppose we can't all win, can we :) -roger- From c.racey1 at gmail.com Wed Sep 5 22:35:02 2012 From: c.racey1 at gmail.com (Chris Racey) Date: Wed, 5 Sep 2012 21:35:02 +0100 Subject: [FFmpeg-user] Selecting/cutting small sections of videos with ffmpeg In-Reply-To: <5047A9B2.3050301@gmail.com> References: <5047A9B2.3050301@gmail.com> Message-ID: Hi, Thanks very much for responding. I've actually managed to solve this now thanks to the help of a guy on the #ffmpeg irc channel. Basically I'm now re-encoding the video but preserving as much of the quality as possible using the following... ffmpeg -i full.mp4 -ss 3 -t 2 -vcodec libx264 -crf 0 -preset placebo output.mp4 Based on what I've now learned I realise I should have done this cutting step before we compressed the videos from uncompressed avi to mp4. Sadly it's too late since they've been deleted. Many thanks for all the help, it's great that there's such a friendly and helpful community around ffmpeg. Chris On Wed, Sep 5, 2012 at 8:36 PM, Andy Civil wrote: > The problem is that a MP4 file contains "I Frames" which are self > contained, and other frames which are only differences, they're (usually) > calculated from previous frames. A MP4 file may be entirely I frames, or at > the extreme, may have only one I frame at the start, and then P frames > (difference frames) from there on. > > If you want to copy a file without recoding it, then you can ONLY cut it > to start at an I frame. (You can finish anywhere.) > > The behaviour of FFmpeg is that if you ask to cut at a certain time with > -ss then it will scan through the file to that point, then continue to scan > forward until it finds an I frame, and then copy from that point on. Unless > you carefully calculate your start point to coincide with an I frame, then > you will lose some video. > > Your clip is so short that I suspect that there isn't even a single I > frame between your start point (3 seconds) and your end point (2 seconds > later). In this case you will get no video at all, which is exactly what > your error says. > > Thank you for posting your output, I guess the other respondant didn't > notice the link. > > -- > Andy > > > On 2012-09-05 6:46 AM, Chris Racey wrote: > >> I'm very much a novice user of ffmpeg, and I'm using it with the windows >> command prompt. I have 7 second long, 25fps, mp4 videos and I'm tyring to >> cut out small 2 second sections of them using ffmpeg. >> >> The problem I'm having is I cant get it to cut properly if I specify a >> start point other than the beginning of the video. >> >> Originally I was running this command:- >> >> Code: ffmpeg -i full.mp4 -ss 3 -t 2 -vcodec copy -acodec copy cut.mp4 >> >> This fails with errors saying I should (check -ss / -t / -frames >> parameters >> if used) (paste bin of the error: http://pastebin.com/RWJ6wFZ1). >> >> If i set -ss to 0 this cuts 2 seconds from the start and works fine. >> >> Following some advice from IRC I tried this:- >> >> Code: ffmpeg -i full.mp4 -vf select='gte(t\,3)*lte(t\,5)' -vcodec copy >> -acodec copy test.mp4 >> >> This ignores the specified window and copies over the whole 7 seconds. >> >> Could anyone tell me where I'm going wrong? >> >> Many thanks, >> Chris >> ______________________________**_________________ >> 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 david.wagner123 at googlemail.com Thu Sep 6 02:42:56 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Thu, 6 Sep 2012 02:42:56 +0200 Subject: [FFmpeg-user] (no subject) Message-ID: Hello, is there any possibility that ffmpeg shows the time needed for encoding? When using -report it doesn't includes it, only the video length. Regards, David From francois.visagie at gmail.com Thu Sep 6 07:58:40 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Thu, 6 Sep 2012 07:58:40 +0200 Subject: [FFmpeg-user] (no subject) In-Reply-To: References: Message-ID: <018501cd8bf4$adf7ed40$09e7c7c0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of David Wagner > Sent: 06 September 2012 02:43 > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] (no subject) > > Hello, > is there any possibility that ffmpeg shows the time needed for encoding? > When using -report it doesn't includes it, only the video length. Do you mean expected time needed, or actual time used? If the latter, I use a shell script that records the time before and after calling ffmpeg. Don't know if this is much use to you, but in case all else fails... > Regards, > David > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sdefawes at ina.fr Thu Sep 6 10:25:20 2012 From: sdefawes at ina.fr (Stan Defawes) Date: Thu, 6 Sep 2012 10:25:20 +0200 Subject: [FFmpeg-user] Question about audio Message-ID: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> Hello, Is it possible to convert ? video stream (an mpeg1 stream in this case) and exclude the right audio canal ? I would like to conserve only the left audio canal and put it on the two canals in the result stream ?? I search in -map direction but with no result and i'm not a specialist of ffmpeg command's line :) Thanks a lot for your help and all apologizes for my bad english Stanislas From davorj at live.com Thu Sep 6 10:43:44 2012 From: davorj at live.com (Davor Josipovic) Date: Thu, 06 Sep 2012 10:43:44 +0200 Subject: [FFmpeg-user] Question about audio In-Reply-To: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> References: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> Message-ID: <50486240.90806@live.com> On 6/09/2012 10:25, Stan Defawes wrote: > Hello, > Is it possible to convert ? video stream (an mpeg1 stream in this case) and exclude the right audio canal ? > I would like to conserve only the left audio canal and put it on the two canals in the result stream ?? > I search in -map direction but with no result and i'm not a specialist of ffmpeg command's line :) > Thanks a lot for your help and all apologizes for my bad english > > Stanislas > Try channelmap filter. See the documentation: http://ffmpeg.org/ffmpeg.html#channelmap. From fturco at fastmail.fm Thu Sep 6 10:45:40 2012 From: fturco at fastmail.fm (Francesco Turco) Date: Thu, 06 Sep 2012 10:45:40 +0200 Subject: [FFmpeg-user] Question about audio In-Reply-To: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> References: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> Message-ID: <504862B4.7030605@fastmail.fm> > Is it possible to convert ? video stream (an mpeg1 stream in this case) and exclude the right audio canal ? > I would like to conserve only the left audio canal and put it on the two canals in the result stream ?? > I search in -map direction but with no result and i'm not a specialist of ffmpeg command's line :) You can try the -map_channel option. From cehoyos at ag.or.at Thu Sep 6 11:06:57 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 09:06:57 +0000 (UTC) Subject: [FFmpeg-user] Problems decoding h264 from Blu-ray References: Message-ID: wtfux googlemail.com> writes: > I have trouble decoding the H.264/AVC stream of an unprotected Blu-ray Please provide a sample. Please never point to external resources for more information about your report, always post all necessary information on this list. (I do not remember a report where mediainfo helped.) Carl Eugen From cehoyos at ag.or.at Thu Sep 6 11:04:57 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 09:04:57 +0000 (UTC) Subject: [FFmpeg-user] some files unplayable in WMP References: Message-ID: Roger Pack gmail.com> writes: > >> Are "not playable in WMP" errors worth reporting? > >> > >> Example: > >> $ ffmpeg -i sintel.mpg -vcodec copy -acodec copy out.avi > >> > >> produces a file that has working audio but not working video in WMP > >> (sintel.mpg itself plays fine, out.avi plays fine in VLC). > > > > If you have an avi with with mpegvideo that plays with > > WMP, please report the problem! > > (assuming you meant "doesn't play with WMP"?) If you have an avi with mpegvideo that plays in WMP than there may be a bug in FFmpeg and it would be nice if you could share that sample. If you do not have an avi containing mpegvideo that plays in WMP than I suspect there is no bug in FFmpeg so you do not have to open a ticket! Carl Eugen From cehoyos at ag.or.at Thu Sep 6 11:13:41 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 09:13:41 +0000 (UTC) Subject: [FFmpeg-user] acodec copy creates file with unplayable audio? References: Message-ID: Roger Pack gmail.com> writes: > However, the output doesn't seem to have "playable audio" for mplayer Complete, uncut MPlayer output missing. Carl Eugen From cehoyos at ag.or.at Thu Sep 6 11:15:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 09:15:09 +0000 (UTC) Subject: [FFmpeg-user] default to yuv References: Message-ID: Roger Pack gmail.com> writes: > And just received my second bug report in this regard. You did not answer my suggestion on how this can be solved. Carl Eugen From yogesh.bit2006 at gmail.com Thu Sep 6 11:26:35 2012 From: yogesh.bit2006 at gmail.com (Yogesh Tyagi) Date: Thu, 6 Sep 2012 14:56:35 +0530 Subject: [FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer in stream 0 Message-ID: Hi, I get following errors while streaming using ffserver: Application provided invalid, non monotonically increasing dts to muxer in stream 1 Error writing frame to output I am feeding ffserver using ffmpeg through following command: ffmpeg -i Sally_720x480p_2997fps_8Mbps_MP1L2_48_224.ts -vcodec libx264 -acodec mp2 -flags -global_header http://127.0.0.1:8091/feed1.ffm my ffserver.conf file is as follows: Port 8091 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 100 MaxBandwidth 1000000 CustomLog - NoDaemon File /tmp/feed1.ffm FileMaxSize 15M ACL allow 127.0.0.1 Feed feed1.ffm Format mpegts AudioCodec mp2 AudioBitRate 128k AudioChannels 2 AudioSampleRate 48000 AVOptionAudio flags +global_header VideoCodec libx264 VideoBitRate 800k VideoFrameRate 100 VideoSize 640x480 AVOptionVideo coder 0 AVOptionVideo bf 0 AVOptionVideo flags2 +mixed_refs+fastpskip AVOptionVideo flags +loop AVOptionVideo cmp +chroma AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8 AVOptionVideo me_method hex AVOptionVideo subq 7 AVOptionVideo me_range 16 AVOptionVideo g 250 AVOptionVideo keyint_min 10 AVOptionVideo sc_threshold 40 AVOptionVideo i_qfactor 0.71 AVOptionVideo b_strategy 1 AVOptionVideo qcomp 0.6 AVOptionVideo qmin 10 AVOptionVideo qmax 51 AVOptionVideo qdiff 4 AVOptionVideo refs 3 AVOptionVideo directpred 1 AVOptionVideo trellis 1 AVOptionVideo flags2 +mixed_refs+fastpskip AVOptionVideo wpredp 0 AVOptionVideo flags +global_header AVOptionVideo bsf h264_mp4toannexb VideoGopSize 12 Preroll 15 StartSendOnKey Format status ACL allow 127.0.0.1 ACL allow 192.168.1.27 URL stat.html Regards, Yogesh From nicolas.george at normalesup.org Thu Sep 6 11:58:24 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 6 Sep 2012 11:58:24 +0200 Subject: [FFmpeg-user] Question about audio In-Reply-To: <50486240.90806@live.com> References: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> <50486240.90806@live.com> Message-ID: <20120906095824.GA16599@phare.normalesup.org> Le primidi 21 fructidor, an CCXX, Davor Josipovic a ?crit?: > Try channelmap filter. See the documentation: > http://ffmpeg.org/ffmpeg.html#channelmap. The channelmap filter is crap, kept only for compatibility with avconv. The correct filter to do that kind of work is pan. 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 stefasab at gmail.com Thu Sep 6 12:08:13 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Thu, 6 Sep 2012 12:08:13 +0200 Subject: [FFmpeg-user] Question about audio In-Reply-To: <20120906095824.GA16599@phare.normalesup.org> References: <795AFE36-5B41-4F9B-B8CA-ECD5EADA541B@ina.fr> <50486240.90806@live.com> <20120906095824.GA16599@phare.normalesup.org> Message-ID: <20120906100813.GC13933@arborea> On date Thursday 2012-09-06 11:58:24 +0200, Nicolas George encoded: > Le primidi 21 fructidor, an CCXX, Davor Josipovic a ?crit?: > > Try channelmap filter. See the documentation: > > http://ffmpeg.org/ffmpeg.html#channelmap. > > The channelmap filter is ... Please let's try to avoid this terminology, and have respect for other people's work. -- ffmpeg-user random tip #30 The -n option will force ffmpeg to exit if the output file already exists, without to prompt you for confirmation. Example: ffmpeg -i movie.avi -n movie.mp4 From yogesh.bit2006 at gmail.com Thu Sep 6 12:24:39 2012 From: yogesh.bit2006 at gmail.com (Yogesh Tyagi) Date: Thu, 6 Sep 2012 15:54:39 +0530 Subject: [FFmpeg-user] not able to replay video from .ffm recorded earlier Message-ID: Hi, I am not able to replay video from .ffm recorded earlier.ffplay or any other player plays the file only when I feed the ffserver through ffmpeg. Regards, Yogesh From paulj at fastmail.es Thu Sep 6 13:29:53 2012 From: paulj at fastmail.es (paulj at fastmail.es) Date: Thu, 06 Sep 2012 13:29:53 +0200 Subject: [FFmpeg-user] Problems dumping H264 stream from Axis camera In-Reply-To: References: <50362728.6411.A33C18@paulj.fastmail.es>, <5044C1AE.30781.E741C5@paulj.fastmail.es>, Message-ID: <50488931.21175.B10F1@paulj.fastmail.es> > >> So if you build current git head, it doesn't work. Then you revert > >> 2107009e7d351ff83a87fda161cc5269d2752428 from head and it starts > >> working? That commit looks totally benign...odd. > > >> Also try with > >> -analyzeduration 0 > > Nope, it doesn't work either. > > And my initial question? > -r (This is the third time I try to send this mail. Hope it goes through). What initial question? Whether the revision I said it worked actually worked? Yes, it does. And the revisions I said didn't work don't work. To quote my earlier mail: > > I am quite sure you are one change away, so please test the following: I > > would expect 2107009 (the version between the two above) to work and > > 3e1cf49 to fail. (git checkout 2107009) > > > > > Yep, version 2107009 does work. > And version 3e1cf49 (as well as the following ones) fail. Paulo. ------------------------------------------- "Oh, don't worry kids. Most of you will never fall in love. You'll just marry for fear of dying alone." The Simpsons. ------------------------------------------- From pb at das-werkstatt.com Thu Sep 6 15:20:12 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 06 Sep 2012 15:20:12 +0200 Subject: [FFmpeg-user] Can't compile current git: "undefined reference to `ff_mix_6_to_1_fltp_flt_fma4'" Message-ID: <20120906152012.57814fhmfn2rifpo@webmail.tuwien.ac.at> On the same machine I've compiled ffmpeg a thousand times now, without problems, I suddenly can't compile the current git version, and "make" exits with the following error: [quote] libavresample/libavresample.a(audio_mix_init.o): In function `ff_audio_mix_init_x86': /home/xxx/install/ffmpeg/ffmpeg-git/libavresample/x86/audio_mix_init.c:207: undefined reference to `ff_mix_3_to_1_fltp_flt_fma4' ... ... /home/xxx/install/ffmpeg/ffmpeg-git/libavresample/x86/audio_mix_init.c:212: undefined reference to `ff_mix_8_to_2_s16p_flt_fma4' collect2: ld returned 1 exit status [/quote] I've tried a fresh "git pull" into an empty directory - same error. Could anyone please tell me what I'm doing wrong here? My setup is a Debian 6.0.5 squeeze machine. Thank you very much, Pb From cehoyos at ag.or.at Thu Sep 6 15:57:14 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 13:57:14 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Can=27t_compile_current_git=3A_=22undefin?= =?utf-8?b?ZWQgcmVmZXJlbmNlIHRvIGBmZl9taXhfNl90b18xX2ZsdHBfZmx0X2Zt?= =?utf-8?q?a4=27=22?= References: <20120906152012.57814fhmfn2rifpo@webmail.tuwien.ac.at> Message-ID: Peter B. das-werkstatt.com> writes: > Could anyone please tell me what I'm doing wrong here? Missing information: configure line complete, uncut output of a *repeated* (!) call to "make V=1" (Do NOT post complete, uncut output of the first make call!) Carl Eugen From pb at das-werkstatt.com Thu Sep 6 16:02:49 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 06 Sep 2012 16:02:49 +0200 Subject: [FFmpeg-user] Can't compile current git: "undefined reference to `ff_mix_6_to_1_fltp_flt_fma4'" In-Reply-To: <20120906152012.57814fhmfn2rifpo@webmail.tuwien.ac.at> References: <20120906152012.57814fhmfn2rifpo@webmail.tuwien.ac.at> Message-ID: <20120906160249.84372ymf7abdlpft@webmail.tuwien.ac.at> Quoting "Peter B." : > On the same machine I've compiled ffmpeg a thousand times now, > without problems, I suddenly can't compile the current git version, > and "make" exits with the following error: > > [quote] > libavresample/libavresample.a(audio_mix_init.o): In function > `ff_audio_mix_init_x86': > /home/xxx/install/ffmpeg/ffmpeg-git/libavresample/x86/audio_mix_init.c:207: > undefined reference to `ff_mix_3_to_1_fltp_flt_fma4' > ... > ... > /home/xxx/install/ffmpeg/ffmpeg-git/libavresample/x86/audio_mix_init.c:212: > undefined reference to `ff_mix_8_to_2_s16p_flt_fma4' > collect2: ld returned 1 exit status > [/quote] > > I've tried a fresh "git pull" into an empty directory - same error. The culprit was "libavresample". After reading Michael's post about integration and support of libavresample in ffmpeg [1], I tried compiling without "--enable-avresample" and now it works. Unfortunately, the reason why I had avresample enabled, was that I tried to fix a very strange A/V async problem using one of the audio filters [2] like "asyncts" or so. I don't remember which one it was which required libavresample, though. However, what is the current opinion/status of libavresample not compiling with the current git head? Pb PS: I think the problem causing the error message is that there's a placeholder "libavresample/x86/audio_mix_init.c" used in the "extern void" declarations of "ff_mix_ ## chan ## _to_1_*" routines. The define "DEFINE_MIX_3_8_TO_1_2(chan)" is called with channels 3-8, but my Debian Squeeze's compiler setup seems to be unable to handle this at the moment... == References: [1] http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2012-April/123746.html [2] http://ffmpeg.org/ffmpeg.html#Audio-Filters From rogerdpack2 at gmail.com Thu Sep 6 16:28:09 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 6 Sep 2012 08:28:09 -0600 Subject: [FFmpeg-user] acodec copy creates file with unplayable audio? In-Reply-To: References: Message-ID: >> However, the output doesn't seem to have "playable audio" for mplayer > > Complete, uncut MPlayer output missing. c:\installs\MPlayer-rtm-svn-34401\mplayer.exe -font c:\windows\fonts\ari al.ttf -osdlevel 1 -osd-fractions 1 -vo direct3d out.mpg MPlayer Sherpya-SVN-r34401-4.6.2 (C) 2000-2011 MPlayer Team Playing out.mpg. MPEG-PS file format detected. Too many video packets in the buffer: (4096 in 8352470 bytes). Maybe you are playing a non-interleaved stream/file or the codec failed? For AVI files, try to force non-interleaved mode with the -ni option. MPEG: No audio stream found -> no sound. VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 7000.0 kbps (875.0 kbyte/s) Load subtitles in ./ ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== Audio: no sound Starting playback... Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [direct3d] 720x480 => 854x480 Planar YV12 [mpeg2video @ 01395220]ac-tex damaged at 43 7 [mpeg2video @ 01395220]Warning MVs not available [mpeg2video @ 01395220]concealing 1035 DC, 1035 AC, 1035 MV errors [mpeg2video @ 01395220]ac-tex damaged at 40 7 [mpeg2video @ 01395220]Warning MVs not available [mpeg2video @ 01395220]concealing 1035 DC, 1035 AC, 1035 MV errors V: 22.2 583/583 17% 9% 0.0% 0 0 From rogerdpack2 at gmail.com Thu Sep 6 16:28:52 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 6 Sep 2012 08:28:52 -0600 Subject: [FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer in stream 0 In-Reply-To: References: Message-ID: > I get following errors while streaming using ffserver: > > Application provided invalid, non monotonically increasing dts to > muxer in stream 1 > Error writing frame to output As errors from the ffserver console? Complete command lines and uncut output, please? -r From rogerdpack2 at gmail.com Thu Sep 6 16:30:48 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 6 Sep 2012 08:30:48 -0600 Subject: [FFmpeg-user] Problems dumping H264 stream from Axis camera In-Reply-To: <50488931.21175.B10F1@paulj.fastmail.es> References: <50362728.6411.A33C18@paulj.fastmail.es> <5044C1AE.30781.E741C5@paulj.fastmail.es> <50488931.21175.B10F1@paulj.fastmail.es> Message-ID: >> >> So if you build current git head, it doesn't work. Then you revert >> >> 2107009e7d351ff83a87fda161cc5269d2752428 from head and it starts >> >> working? That commit looks totally benign...odd. >> And my initial question? >> -r > > > (This is the third time I try to send this mail. Hope it goes through). > > What initial question? The question at the top of this email. HTH. -r From cehoyos at ag.or.at Thu Sep 6 17:05:08 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 15:05:08 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Can=27t_compile_current_git=3A_=22undefin?= =?utf-8?b?ZWQgcmVmZXJlbmNlIHRvIGBmZl9taXhfNl90b18xX2ZsdHBfZmx0X2Zt?= =?utf-8?q?a4=27=22?= References: <20120906152012.57814fhmfn2rifpo@webmail.tuwien.ac.at> <20120906160249.84372ymf7abdlpft@webmail.tuwien.ac.at> Message-ID: Peter B. das-werkstatt.com> writes: > Unfortunately, the reason why I had avresample enabled, was that I > tried to fix a very strange A/V async problem using one of the audio > filters [2] like "asyncts" or so. Are you absolutely sure that you reported this problem in a way that allows the developers to reproduce? Carl Eugen From cehoyos at ag.or.at Thu Sep 6 17:11:46 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 6 Sep 2012 15:11:46 +0000 (UTC) Subject: [FFmpeg-user] acodec copy creates file with unplayable audio? References: Message-ID: Roger Pack gmail.com> writes: > >> However, the output doesn't seem to have "playable audio" for mplayer > > > > Complete, uncut MPlayer output missing. > > c:\installs\MPlayer-rtm-svn-34401\mplayer.exe -font c:\windows\fonts\ari > al.ttf -osdlevel 1 -osd-fractions 1 -vo direct3d out.mpg > MPlayer Sherpya-SVN-r34401-4.6.2 (C) 2000-2011 MPlayer Team Since it works fine here with the sample you attached to ticket #1720 I suggest you use a more current MPlayer version. Carl Eugen From yogesh.bit2006 at gmail.com Thu Sep 6 17:26:58 2012 From: yogesh.bit2006 at gmail.com (Yogesh Tyagi) Date: Thu, 6 Sep 2012 20:56:58 +0530 Subject: [FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer in stream 0 In-Reply-To: References: Message-ID: Following is the command line output: ffserver -f /etc/ffserver.conf & [1] 30433 yogesh at yogesh-desktop:~/Desktop$ ffserver version 0.9, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 23 2012 13:35:01 with gcc 4.4.5 configuration: --enable-libx264 --enable-gpl libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 0 / 53. 42. 0 libavformat 53. 24. 0 / 53. 24. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 Thu Sep 6 20:54:40 2012 FFserver started. Thu Sep 6 20:54:50 2012 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4149 Thu Sep 6 20:54:53 2012 muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Thu Sep 6 20:54:57 2012 muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Thu Sep 6 20:55:09 2012 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 3739648 Thu Sep 6 20:55:09 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200 2683391 Thu Sep 6 20:55:09 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200 3385007 Thu Sep 6 20:55:25 2012 muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Thu Sep 6 20:55:28 2012 muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Thu Sep 6 20:55:32 2012 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4149 Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 0 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 3003 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 6006 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 9009 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 0 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 3003 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 6006 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 9009 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 12012 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 15015 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200 4579 Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 12012 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2732730 >= 15015 Thu Sep 6 20:55:33 2012 Error writing frame to output Thu Sep 6 20:55:33 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200 4579 Thu Sep 6 20:55:52 2012 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 3739648 Regards, Yogesh On Thu, Sep 6, 2012 at 7:58 PM, Roger Pack wrote: >> I get following errors while streaming using ffserver: >> >> Application provided invalid, non monotonically increasing dts to >> muxer in stream 1 >> Error writing frame to output > > As errors from the ffserver console? Complete command lines and uncut > output, please? > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rogerdpack2 at gmail.com Thu Sep 6 18:22:20 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 6 Sep 2012 10:22:20 -0600 Subject: [FFmpeg-user] libflite Message-ID: Hello. I know you can use libflite like $ffplay -f lavfi flite=text="No more be grieved for which that thou hast done." But I can't quite seem to figure out from the docs how to pass this as input to ffmpeg. Could anyone help me out? -r From ubitux at gmail.com Thu Sep 6 18:26:38 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 6 Sep 2012 18:26:38 +0200 Subject: [FFmpeg-user] libflite In-Reply-To: References: Message-ID: <20120906162638.GI6874@leki> On Thu, Sep 06, 2012 at 10:22:20AM -0600, Roger Pack wrote: > Hello. > I know you can use libflite like > > $ffplay -f lavfi flite=text="No more be grieved for which that thou hast done." > > But I can't quite seem to figure out from the docs how to pass this as > input to ffmpeg. > Could anyone help me out? ffmpeg -f lavfi -i flite=text=... [...] -- 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 tower119 at gmail.com Thu Sep 6 18:52:26 2012 From: tower119 at gmail.com (Park) Date: Thu, 6 Sep 2012 09:52:26 -0700 (PDT) Subject: [FFmpeg-user] MPEG TS mutilple channls muxing In-Reply-To: <00b001cd8b2e$a5d37e70$f17a7b50$@gmail.com> References: <1346749445870-4653178.post@n4.nabble.com> <1346800105615-4653206.post@n4.nabble.com> <1346807147698-4653209.post@n4.nabble.com> <00b001cd8b2e$a5d37e70$f17a7b50$@gmail.com> Message-ID: <1346950346632-4653258.post@n4.nabble.com> Thank you. Your answer, as I've tried it, I did not know. I'm sorry, but I did not understand the answer. [-] <- What Is It? Pipe? I would like to know an example of a command. I am now under the command created output.ts But you can not see the channels I want. As the channels are combined, the PID seems strangely changing. ./ffmpeg -i ../ts/test0.wmv \ -i ../ts/test1.wmv \ -c copy \ -map v \ -mpegts_original_network_id 0x1122 \ -mpegts_transport_stream_id 0x3344 \ -mpegts_service_id 0x5566 \ -mpegts_pmt_start_pid 0x1500 \ -mpegts_start_pid 0x150 \ -metadata service_provider="Some provider" \ -metadata service_name="Some Channel" \ -map v \ -mpegts_original_network_id 0x156E \ -mpegts_transport_stream_id 0x339E \ -mpegts_service_id 0x55CA \ -mpegts_pmt_start_pid 0x1564 \ -mpegts_start_pid 0x1B4 \ -metadata service_provider="Some provider1" \ -metadata service_name="Some Channel1" \ -y output/output.ts -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MPEG-TS-mutilple-channls-muxing-tp4653178p4653258.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From wtfux.dev at googlemail.com Thu Sep 6 20:52:33 2012 From: wtfux.dev at googlemail.com (wtfux) Date: Thu, 6 Sep 2012 20:52:33 +0200 Subject: [FFmpeg-user] Problems decoding h264 from Blu-ray In-Reply-To: References: Message-ID: 2012/9/6 Carl Eugen Hoyos : > Please provide a sample. Well I tried. Those errors occur randomly while decoding the video (nothing to do with the encoder, they also happen when I decode to rawvideo and discard the output). I tried to cut a scene (without re-encoding of course) and upload it but even a scene where decoding failed multiple times is fine when it is decoded alone. It seems that the errors only happen after decoding about 5 minutes of the video. Sometimes there are hundreds of decoding errors and sometimes only 1 in the 30 minute video. I didn't manage to decode it without errors, though. Uploading a longer piece is not possible as it's from a 1080p Blu-ray and a minute already hundreds of megabytes. Tried with zeranoe's and my own build of 64bit FFmpeg using latest git. The weird thing is that there are *no such errors* when decoding using zeranoe's or mine *32bit* build of FFmpeg. I just found this out. Using 32bit this is the only error in the whole 30minute clip and the output video is fine every time: > number of reference frames (0+3) exceeds max (2; probably corrupt input), discarding one Maybe it's my PC, I already had failing RAM in the past or it could be a CPU feature that's causing this and that is not available in the 32bit build. I don't have another PC to test it. 32bit is fine but the process is running out of memory (only 2GB on 32bit) because I need more memory to encode using my x264 settings so I'd prefer to use a 64bit build. Any idea what I could try? > Please never point to external resources for more information about > your report, always post all necessary information on this list. Sorry for that but it was a 3MB large log that couldn't be pasted into the mail. > (I do not remember a report where mediainfo helped.) Okay, I thought it could be helpful to know that the stream has a bitrate of 34.3 Mbps and other stuff that is noted there. Thanks for your time. From jacob at jacobharris.org Thu Sep 6 21:13:03 2012 From: jacob at jacobharris.org (Jacob Harris) Date: Thu, 6 Sep 2012 12:13:03 -0700 Subject: [FFmpeg-user] No codec Message-ID: On a Mac, QuickTime has an export compression setting called "None", which somehow applies no codec at all. Is there an equivalent setting in FFmpeg? How do I get "no" codec? From mrgralich at yahoo.it Thu Sep 6 07:15:33 2012 From: mrgralich at yahoo.it (MrGralich) Date: Wed, 5 Sep 2012 22:15:33 -0700 (PDT) Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <20120905192049.GD6874@leki> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1346857700757-4653216.post@n4.nabble.com> <20120905192049.GD6874@leki> Message-ID: <1346908533474-4653233.post@n4.nabble.com> >> The command I'm trying to apply is: >> ffmpeg -i -acodec copy -vcodec copy -metadata >> timecode=15:14:13:00 >> but I get nothing... >> >> Do you have some advice? >> >Try -timecode 15:14:13:00? > >If it doesn't work, please paste the command line and full output, as well >as the output of ffprobe output.mov. Cl?ment, I've tried the command *ffmpeg -i STD_0022.MOV -timecode 15:14:13:00 -acodec copy -vcodec copy std_0022_tc.mov* but I don't think I have any success. The timecode doesn't show up in QT 7.x nor in FCP. I don't have ffprobe and I currently don't have the tools to compile it, since I understand there's no binary available for download. In the meantime, I've called the resulting MOV file with *ffmpeg -i* and this is the result: /ffmpeg version 0.11.1-tessus Copyright (c) 2000-2012 the FFmpeg developers built on Aug 16 2012 18:49:35 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --disable-ffserver --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'STD_0022_tc.MOV': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt creation_time : 2012-08-19 16:58:16 encoder : Lavf54.6.100 Duration: 00:00:32.61, start: 0.000000, bitrate: 46259 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p, 1920x1088, 44721 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc Metadata: creation_time : 2012-08-19 16:58:16 handler_name : DataHandler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2012-08-19 16:58:16 handler_name : DataHandler/ I can't see the timecode here, either. Thanks for your help Gianluca -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4653233.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Thu Sep 6 21:24:47 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 06 Sep 2012 21:24:47 +0200 Subject: [FFmpeg-user] No codec In-Reply-To: References: Message-ID: <5048F87F.2010003@thelounge.net> Am 06.09.2012 21:13, schrieb Jacob Harris: > On a Mac, QuickTime has an export compression setting called "None", which > somehow applies no codec at all. Is there an equivalent setting in FFmpeg? > How do I get "no" codec? hwo should anybody imagine "no codec" no compression does NOT mean no codec what is the output of "ffmpeg -i filename" for such a file? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature URL: From ubitux at gmail.com Thu Sep 6 21:34:15 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 6 Sep 2012 21:34:15 +0200 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <1346908533474-4653233.post@n4.nabble.com> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1346857700757-4653216.post@n4.nabble.com> <20120905192049.GD6874@leki> <1346908533474-4653233.post@n4.nabble.com> Message-ID: <20120906193415.GK6874@leki> On Wed, Sep 05, 2012 at 10:15:33PM -0700, MrGralich wrote: > >> The command I'm trying to apply is: > >> ffmpeg -i -acodec copy -vcodec copy -metadata > >> timecode=15:14:13:00 > >> but I get nothing... > >> > >> Do you have some advice? > >> > > >Try -timecode 15:14:13:00? > > > >If it doesn't work, please paste the command line and full output, as well > >as the output of ffprobe output.mov. > > Cl?ment, I've tried the command > *ffmpeg -i STD_0022.MOV -timecode 15:14:13:00 -acodec copy -vcodec copy > std_0022_tc.mov* > but I don't think I have any success. The timecode doesn't show up in QT 7.x > nor in FCP. > I don't have ffprobe and I currently don't have the tools to compile it, > since I understand there's no binary available for download. In the > meantime, I've called the resulting MOV file with *ffmpeg -i* and this is > the result: > > /ffmpeg version 0.11.1-tessus Copyright (c) 2000-2012 the FFmpeg developers CommitDate: Mon Jun 11 07:35:14 2012 +0200 movenc: add timecode track support. And: June, 7, 2012, FFmpeg 0.11.1 (and actually 0.11 is even older, .1 being just a bug fixes release) So I believe your version is too old. Note that we highly recommend our users to use the latest development version, which you can get on https://ffmpeg.org/download.html. You seem yo be looking for a Mac OS build, and unfortunately the static build provided by tessus seem indeed limited to the release versions. I'd suggest you to look into the wiki for detailed instructions: https://ffmpeg.org/trac/ffmpeg/wiki/MacOSXCompilationGuide [...] -- 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 jacob at jacobharris.org Thu Sep 6 21:44:35 2012 From: jacob at jacobharris.org (Jacob Harris) Date: Thu, 6 Sep 2012 12:44:35 -0700 Subject: [FFmpeg-user] No codec In-Reply-To: <5048F87F.2010003@thelounge.net> References: <5048F87F.2010003@thelounge.net> Message-ID: This is the output of ffmpeg -i: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/jacobharris/Desktop/movie.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt Duration: 00:00:00.04, start: 0.000000, bitrate: 1591093 kb/s Stream #0.0(eng): Video: rawvideo, argb, 1920x1080, 1590932 kb/s, PAR 1000:1000 DAR 16:9, 23.98 fps, 23976 tbr, 23976 tbn, 23976 tbc So I tried rawvideo and argb and I think that's what I'm after. It's not "None" like QuickTime says, but maybe it's the closest I'll get? On Thu, Sep 6, 2012 at 12:24 PM, Reindl Harald wrote: > > > Am 06.09.2012 21:13, schrieb Jacob Harris: > > On a Mac, QuickTime has an export compression setting called "None", > which > > somehow applies no codec at all. Is there an equivalent setting in > FFmpeg? > > How do I get "no" codec? > > hwo should anybody imagine "no codec" > no compression does NOT mean no codec > > what is the output of "ffmpeg -i filename" for such a file? > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From mbradshaw at sorensonmedia.com Thu Sep 6 21:53:05 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Thu, 6 Sep 2012 13:53:05 -0600 Subject: [FFmpeg-user] No codec In-Reply-To: References: <5048F87F.2010003@thelounge.net> Message-ID: On Thu, Sep 6, 2012 at 1:44 PM, Jacob Harris wrote: > This is the output of ffmpeg -i: > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > '/home/jacobharris/Desktop/movie.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > Duration: 00:00:00.04, start: 0.000000, bitrate: 1591093 kb/s > Stream #0.0(eng): Video: rawvideo, argb, 1920x1080, 1590932 kb/s, PAR > 1000:1000 DAR 16:9, 23.98 fps, 23976 tbr, 23976 tbn, 23976 tbc > > So I tried rawvideo and argb and I think that's what I'm after. It's not > "None" like QuickTime says, but maybe it's the closest I'll get? "None" isn't a technical term. If you look at your output from ffmpeg, it reports the codec is "rawvideo" with an "argb" pixel format, even though QuickTime is telling you "None." "rawvideo" quite literally means raw (uncompressed, unprocessed) video. QuickTime says "None" because that's a more user-friendly term for the non-video savvy people, while ffmpeg prefers the term "rawvideo" because it means a bit more to the video savvy, but in the end it's the same. --Michael From mrgralich at yahoo.it Thu Sep 6 23:52:18 2012 From: mrgralich at yahoo.it (MrGralich) Date: Thu, 6 Sep 2012 14:52:18 -0700 (PDT) Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <20120906193415.GK6874@leki> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1346857700757-4653216.post@n4.nabble.com> <20120905192049.GD6874@leki> <1346908533474-4653233.post@n4.nabble.com> <20120906193415.GK6874@leki> Message-ID: <1346968338242-4653265.post@n4.nabble.com> >So I believe your version is too old. Cl?ment, thanks for your help, but the 0.11.1 is exactly the version that I've used, as reported in the output I had attached ("/ffmpeg version 0.11.1-tessus Copyright (c) 2000-2012 the FFmpeg developers built on Aug 16 2012 18:49:35 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)/ "). So I must be giving some incorrect command, I'm afraid. For the ffprobe, I've found the windows build and used it, but the output is exactly the same as the one returned by "ffmpeg -i" command. I appreciate your help Gianluca -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4653265.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Fri Sep 7 00:13:31 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Fri, 7 Sep 2012 00:13:31 +0200 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <1346968338242-4653265.post@n4.nabble.com> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1346857700757-4653216.post@n4.nabble.com> <20120905192049.GD6874@leki> <1346908533474-4653233.post@n4.nabble.com> <20120906193415.GK6874@leki> <1346968338242-4653265.post@n4.nabble.com> Message-ID: <20120906221331.GB27891@leki> On Thu, Sep 06, 2012 at 02:52:18PM -0700, MrGralich wrote: > >So I believe your version is too old. > > Cl?ment, thanks for your help, but the 0.11.1 is exactly the version that > I've used, as reported in the output I had attached ("/ffmpeg version > 0.11.1-tessus Copyright (c) 2000-2012 the FFmpeg developers > built on Aug 16 2012 18:49:35 with llvm_gcc 4.2.1 (Based on Apple Inc. > build 5658) (LLVM build 2336.1.00)/ "). That's what I was saying, 0.11.1 is the latest release but it is too old anyway. [...] -- 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 david.wagner123 at googlemail.com Fri Sep 7 00:19:09 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Fri, 7 Sep 2012 00:19:09 +0200 Subject: [FFmpeg-user] (no subject) In-Reply-To: <018501cd8bf4$adf7ed40$09e7c7c0$@gmail.com> References: <018501cd8bf4$adf7ed40$09e7c7c0$@gmail.com> Message-ID: I hoped that I can measure only the time for encoding, not anythin else.... BTW do you know a tool with which I can record the fps while decoding. I want to use it for estimate the codec complexity and the requirements on hardware. Can ffplay do this? Regards, David 2012/9/6 Francois Visagie > > -----Original Message----- > > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > > bounces at ffmpeg.org] On Behalf Of David Wagner > > Sent: 06 September 2012 02:43 > > To: ffmpeg-user at ffmpeg.org > > Subject: [FFmpeg-user] (no subject) > > > > Hello, > > is there any possibility that ffmpeg shows the time needed for encoding? > > When using -report it doesn't includes it, only the video length. > > Do you mean expected time needed, or actual time used? > > If the latter, I use a shell script that records the time before and after > calling ffmpeg. > > Don't know if this is much use to you, but in case all else fails... > > > Regards, > > David > > _______________________________________________ > > 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 jacob at jacobharris.org Fri Sep 7 00:27:13 2012 From: jacob at jacobharris.org (Jacob Harris) Date: Thu, 6 Sep 2012 15:27:13 -0700 Subject: [FFmpeg-user] No codec In-Reply-To: References: <5048F87F.2010003@thelounge.net> Message-ID: Excellent. Thanks all. On Thu, Sep 6, 2012 at 12:53 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Thu, Sep 6, 2012 at 1:44 PM, Jacob Harris > wrote: > > This is the output of ffmpeg -i: > > > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > > '/home/jacobharris/Desktop/movie.mov': > > Metadata: > > major_brand : qt > > minor_version : 537199360 > > compatible_brands: qt > > Duration: 00:00:00.04, start: 0.000000, bitrate: 1591093 kb/s > > Stream #0.0(eng): Video: rawvideo, argb, 1920x1080, 1590932 kb/s, PAR > > 1000:1000 DAR 16:9, 23.98 fps, 23976 tbr, 23976 tbn, 23976 tbc > > > > So I tried rawvideo and argb and I think that's what I'm after. It's not > > "None" like QuickTime says, but maybe it's the closest I'll get? > > "None" isn't a technical term. If you look at your output from ffmpeg, > it reports the codec is "rawvideo" with an "argb" pixel format, even > though QuickTime is telling you "None." "rawvideo" quite literally > means raw (uncompressed, unprocessed) video. > > QuickTime says "None" because that's a more user-friendly term for the > non-video savvy people, while ffmpeg prefers the term "rawvideo" > because it means a bit more to the video savvy, but in the end it's > the same. > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Sep 7 00:36:11 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 6 Sep 2012 16:36:11 -0600 Subject: [FFmpeg-user] (no subject) In-Reply-To: References: <018501cd8bf4$adf7ed40$09e7c7c0$@gmail.com> Message-ID: > I hoped that I can measure only the time for encoding, not anythin else.... > BTW do you know a tool with which I can record the fps while decoding. I the stdout displays fps... also the -progress option (though I don't know it well) might be useful. -r From rogerdpack2 at gmail.com Fri Sep 7 01:42:23 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 6 Sep 2012 17:42:23 -0600 Subject: [FFmpeg-user] acodec copy creates file with unplayable audio? In-Reply-To: References: Message-ID: > Since it works fine here with the sample you attached to > ticket #1720 I suggest you use a more current MPlayer version. Hmm seems to be the same with a newer mplayer...maybe you could help me figure out where it's working in linux but not windows? Does your output not show "Audio: no sound"? Thank you. -roger- $ ffmpeg-20120903-git-5d55830-win32-static\bin\ffmpeg -i sintel.2.5.mpg -vcodec copy -acodec copy out.mpg ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 0236ce60] ac-tex damaged at 40 7 [mpeg2video @ 0236ce60] Warning MVs not available [mpeg2video @ 0236ce60] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame [mpeg @ 0236c4a0] max_analyze_duration 5000000 reached at 5024000 Truncating packet of size 2025 to 1418 Input #0, mpeg, from '\Downloads\sintel.2.5.mpg': Duration: 00:00:07.42, start: 0.233367, bitrate: 2693 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 7000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s Output #0, mpeg, to 'out.mpg': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 7000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help Truncating packet of size 2025 to 1418 frame= 205 fps=0.0 q=-1.0 Lsize= 2416kB time=00:00:07.45 bitrate=2654.5kbits/s video:1991kB audio:408kB subtitle:0 global headers:0kB muxing overhead 0.708219% C:\vids>\dev\ruby\downloads\mplayer-checkout-2012-09-06\mplayer.exe out.mpg MPlayer SVN-r35150-4.5.1 (C) 2000-2012 MPlayer Team Playing out.mpg. libavformat version 54.25.105 (internal) MPEG-PS file format detected. MPEG: No audio stream found -> no sound. VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 7000.0 kbps (875.0 kbyte/s) Load subtitles in ./ ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.55.100 (internal) Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== Audio: no sound Starting playback... Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [directx] 720x480 => 854x480 Planar YV12 [mpeg2video @ 00ef3140]ac-tex damaged at 43 7 [mpeg2video @ 00ef3140]Warning MVs not available [mpeg2video @ 00ef3140]concealing 1035 DC, 1035 AC, 1035 MV errors in I frame [mpeg2video @ 00ef3140]ac-tex damaged at 40 7 [mpeg2video @ 00ef3140]Warning MVs not available [mpeg2video @ 00ef3140]concealing 1035 DC, 1035 AC, 1035 MV errors in I frame Fontconfig error: Cannot load default config file Fontconfig failed to select a font. Trying without fontconfig... New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. Fontconfig failed to select a font. Trying without fontconfig... New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. V: 7.1 171/171 12% 0% 0.0% 0 0 Exiting... (Quit) From david.wagner123 at googlemail.com Fri Sep 7 02:24:52 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Fri, 7 Sep 2012 02:24:52 +0200 Subject: [FFmpeg-user] (no subject) In-Reply-To: References: <018501cd8bf4$adf7ed40$09e7c7c0$@gmail.com> Message-ID: thank you 2012/9/7 Roger Pack > > I hoped that I can measure only the time for encoding, not anythin > else.... > > BTW do you know a tool with which I can record the fps while decoding. I > > the stdout displays fps... > also the -progress option (though I don't know it well) might be useful. > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From smarrocco at ringsidecreative.com Fri Sep 7 14:38:00 2012 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Fri, 07 Sep 2012 08:38:00 -0400 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? Message-ID: <5049EAA8.3060506@ringsidecreative.com> I seem to be unable to generate a 444 prores .mov file that quicktime player will indentify as 444. QT Player claims the movie is 422. Several misc. sources (one of which is http://transcoding.wordpress.com/2012/01/29/prores-ffmpeg/) quote examples of using the arg "-pix_fmt yuv444p10le" to generate 444 prores quicktime movies. However, whenever I use yuv444p10 or yuv444p10le ffmpeg presents the error: Incompatible pixel format 'yuv444p10le' for codec 'prores', auto-selecting format 'yuv422p10le' I have tried various source qt movies of 8 bit uncompressed, 10 bit uncompressed, 422 prores and 444 prores. The output movie is created, but is always 422 (in Quicktime Player) and ffmpeg displays the "imcompatible pixel format" message. I have been told that ffmprobe identifies the file as 444, but quicktime player identifies the output files as 422. I am using an ffmpeg win32 static build on Windows 7, 64-bit OS. CommandLine: ffmpeg-20120903-git-5d55830-win64-static\bin\ffmpeg.exe" -i "C:\Server\Jobs\Conversion\FlameOutput_Quicktimes\Car_10BitRGBUncompressedTC.mov" -vcodec prores -profile 3 -pix_fmt yuv444p10le -f mov "C:\Server\Jobs\Conversion\FlameOutput_Quicktimes\Car_10BitRGBUncompressedTC\Car_10BitRGBUncompressedTC.mov" ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:27:20 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000001e92f40] Stream #1: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000001e92f40] Stream #2: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000001e92f40] Stream #3: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000001e92f40] Stream #4: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000001e92f40] Stream #5: 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 'C:\Server\Jobs\Conversion\FlameOutput_Quicktimes\Car_10BitRGBUncompressedTC.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-09-05 14:37:36 Duration: 00:00:01.00, start: 0.000000, bitrate: 1195269 kb/s Stream #0:0(eng): Video: rawvideo (raw / 0x20776172), rgb24, 1920x1080, 1194393 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler timecode : 01:02:03:06 Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Libquicktime Time Code Media Handler timecode : 01:02:03:06 Stream #0:2(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 48000 Hz, mono, s16, 192 kb/s Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler Stream #0:3(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 48000 Hz, mono, s16, 192 kb/s Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler Stream #0:4(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 48000 Hz, mono, s16, 192 kb/s Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler Stream #0:5(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 48000 Hz, mono, s16, 192 kb/s Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler Please use -profile:a or -profile:v, -profile is ambiguous Incompatible pixel format 'yuv444p10le' for codec 'prores', auto-selecting format 'yuv422p10le' Output #0, mov, to 'C:\Server\Jobs\Conversion\FlameOutput_Quicktimes\Car_10BitRGBUncompressedTC\Car_10BitRGBUncompressedTC.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf54.25.104 Stream #0:0(eng): Video: prores (apch) (apch / 0x68637061), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 tbn, 24 tbc Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler timecode : 01:02:03:06 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, s16, 128 kb/s Metadata: creation_time : 2012-09-05 14:37:36 handler_name : Linux Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> prores) Stream #0:2 -> #0:1 (adpcm_ima_qt -> libvo_aacenc) Press [q] to stop, [?] for help Multiple frames in a packet from stream 2 frame= 24 fps=7.6 q=0.0 Lsize= 32783kB time=00:00:01.01 bitrate=265370.0kbits/s video:32764kB audio:16kB subtitle:0 global headers:0kB muxing overhead 0.007305% Any suggestions would be appreciated. -- Sam Marrocco Chief Technical Officer 248-548-2500 Main 248-910-3344 Cell "Just because no one understands you doesn't make you an artist." RINGSIDE CREATIVE | INTEGRATED MEDIA STUDIO? http://www.ringsidecreative.com Find us on Facebook. Please consider the environment before printing this email. From david at davidfavor.com Fri Sep 7 16:49:01 2012 From: david at davidfavor.com (David Favor) Date: Fri, 07 Sep 2012 09:49:01 -0500 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip In-Reply-To: References: <50455A98.2070602@davidfavor.com> Message-ID: <504A095D.1050405@davidfavor.com> Roger Pack wrote: >> Attempting to copy only video streams (audio dropped) >> produces an output file with all the videos stacked >> on top of each other. > > What if you include the audio? > >> The output video is uneditable by any software I have. >> No way to move videos from off the top of each other. > > It seems from your youtube that it only "sees one side" in playback, > is that right? Correct. >> The command I'm using for the extraction is: >> >> ffmpeg -y -i foo.skype.mov -an -vcodec copy -map 0:2 -map 0:3 >> foo.video.mov > > What if you try .mkv? .mkv is a no-go as no software really understands this format. The resulting file has to be able to drop into QuickTime, ScreenFlow, iMovie, Final Cut, Kdenlive... > What is the output of mediainfo for the resultant file? Hum... mediainfo-7.6.0 output shows no directives about position of videos, that I see... Here's the output... David-Favor-iMac> mediainfo foo.skype.mov General Complete name : foo.skype.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 320 MiB Duration : 8mn 17s Overall bit rate : 5 389 Kbps Encoded date : UTC 2011-02-25 16:50:37 Tagged date : UTC 2011-02-25 16:58:55 Writing library : Apple QuickTime Video #1 ID : 3 Format : AVC Format/Info : Advanced Video Codec Format profile : Main at L3.0 Format settings, CABAC : No Format settings, ReFrames : 2 frames Format settings, GOP : M=1, N=30 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 8mn 17s Bit rate : 350 Kbps Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Variable Frame rate : 15.000 fps Minimum frame rate : 6.289 fps Maximum frame rate : 29.412 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.076 Stream size : 20.8 MiB (6%) Language : English Encoded date : UTC 2011-02-25 16:50:37 Tagged date : UTC 2011-02-25 16:58:55 Color primaries : BT.601 NTSC Transfer characteristics : BT.709 Matrix coefficients : BT.601 Video #2 ID : 4 Format : AVC Format/Info : Advanced Video Codec Format profile : Main at L3.0 Format settings, CABAC : No Format settings, ReFrames : 2 frames Format settings, GOP : M=1, N=30 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 8mn 17s Bit rate : 802 Kbps Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Variable Frame rate : 15.000 fps Minimum frame rate : 10.870 fps Maximum frame rate : 29.412 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.174 Stream size : 47.6 MiB (15%) Language : English Encoded date : UTC 2011-02-25 16:50:37 Tagged date : UTC 2011-02-25 16:58:55 Color primaries : BT.601 NTSC Transfer characteristics : BT.709 Matrix coefficients : BT.601 Audio #1 ID : 1 Format : PCM Codec ID : fl32 Codec ID/Hint : Duration : 8mn 17s Bit rate mode : Constant Bit rate : 706 Kbps Channel(s) : 1 channel Sampling rate : 44.1 KHz Bit depth : 16 bits Stream size : 41.9 MiB (13%) Language : English Encoded date : UTC 2011-02-25 16:50:37 Tagged date : UTC 2011-02-25 16:58:55 Audio #2 ID : 2 Format : PCM Codec ID : fl32 Codec ID/Hint : Duration : 8mn 17s Bit rate mode : Constant Bit rate : 1 411 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 44.1 KHz Bit depth : 16 bits Stream size : 83.8 MiB (26%) Language : English Encoded date : UTC 2011-02-25 16:50:37 Tagged date : UTC 2011-02-25 16:58:55 > Cheers! > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From mylaneza at gmail.com Fri Sep 7 16:51:20 2012 From: mylaneza at gmail.com (Ignacio Gonzalez) Date: Fri, 7 Sep 2012 09:51:20 -0500 Subject: [FFmpeg-user] Problems when I move the window. Message-ID: Hello everybody, I have created a .lib and .dll files based on ffplay to play videos. I use the library to create a example en c, then when I move the window frame or minimize the window there is no problem. But this lib and dll were build to be used in java. So I create my example in java with jni. But when I move the window or minimize it, the video stops and only the audio is played. I don't know if any of you can help me to fix this. From david at davidfavor.com Fri Sep 7 16:52:52 2012 From: david at davidfavor.com (David Favor) Date: Fri, 07 Sep 2012 09:52:52 -0500 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip In-Reply-To: <5046862A.8020706@googlemail.com> References: <50455A98.2070602@davidfavor.com> <5046862A.8020706@googlemail.com> Message-ID: <504A0A44.7070308@davidfavor.com> Andy Sheen wrote: > > Roger Pack wrote on Tue 04 Sep at 23:43 UK time >>> The output video is uneditable by any software I have. >>> No way to move videos from off the top of each other. >> It seems from your youtube that it only "sees one side" in playback, >> is that right? >> >>> The command I'm using for the extraction is: >>> >>> ffmpeg -y -i foo.skype.mov -an -vcodec copy -map 0:2 -map 0:3 >>> foo.video.mov >> What if you try .mkv? >> What is the output of mediainfo for the resultant file? >> > > I had a quick look and it looks to me that the two videos would need > some form of pan & scan vectors to be able to be two separate streams > and appear side by side in the original capture. I'm not in any way > familiar with the formats in use (is there anything other than H.264 and > .mkvs teehee) but that's where I'd look to see if they were being > dropped when the stream were copied. You'd get both videos decoding, but > displaying on top of each other. This would match the fact you have 2 > video streams, but only one plays. > > I don't know if mediainfo has this level of detail (or even if the > streams are capable of supporting P&S in this way). If you know a resource which talks about injecting pan + scan vectors into .mov containers, pass along the link. Thanks. >> Cheers! >> -r > > Andy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From sheen.andy at googlemail.com Fri Sep 7 17:20:25 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Fri, 07 Sep 2012 16:20:25 +0100 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip In-Reply-To: <504A0A44.7070308@davidfavor.com> References: <50455A98.2070602@davidfavor.com> <5046862A.8020706@googlemail.com> <504A0A44.7070308@davidfavor.com> Message-ID: <504A10B9.3080907@googlemail.com> David Favor wrote on Fri Sep 07 2012 15:52:52 GMT+0100 (GMT Daylight Time) > Andy Sheen wrote: >> >> I had a quick look and it looks to me that the two videos would need >> some form of pan & scan vectors to be able to be two separate streams >> and appear side by side in the original capture. I'm not in any way >> familiar with the formats in use (is there anything other than H.264 and >> .mkvs teehee) but that's where I'd look to see if they were being >> dropped when the stream were copied. You'd get both videos decoding, but >> displaying on top of each other. This would match the fact you have 2 >> video streams, but only one plays. >> >> I don't know if mediainfo has this level of detail (or even if the >> streams are capable of supporting P&S in this way). > > If you know a resource which talks about injecting pan + scan vectors > into .mov containers, pass along the link. > > Thanks. > Nope, sorry. I'm exclusively avi and mkv here. I was hoping the information would give you a pointer to what is wrong with the resultant file. Andy From david at davidfavor.com Fri Sep 7 18:06:30 2012 From: david at davidfavor.com (David Favor) Date: Fri, 07 Sep 2012 11:06:30 -0500 Subject: [FFmpeg-user] Gnarly ffmpeg multi-stream demux challenge test clip In-Reply-To: <504A10B9.3080907@googlemail.com> References: <50455A98.2070602@davidfavor.com> <5046862A.8020706@googlemail.com> <504A0A44.7070308@davidfavor.com> <504A10B9.3080907@googlemail.com> Message-ID: <504A1B86.3070506@davidfavor.com> Andy Sheen wrote: > David Favor wrote on Fri Sep 07 2012 15:52:52 GMT+0100 (GMT Daylight Time) >> Andy Sheen wrote: >>> I had a quick look and it looks to me that the two videos would need >>> some form of pan & scan vectors to be able to be two separate streams >>> and appear side by side in the original capture. I'm not in any way >>> familiar with the formats in use (is there anything other than H.264 and >>> .mkvs teehee) but that's where I'd look to see if they were being >>> dropped when the stream were copied. You'd get both videos decoding, but >>> displaying on top of each other. This would match the fact you have 2 >>> video streams, but only one plays. >>> >>> I don't know if mediainfo has this level of detail (or even if the >>> streams are capable of supporting P&S in this way). >> If you know a resource which talks about injecting pan + scan vectors >> into .mov containers, pass along the link. >> >> Thanks. >> > > Nope, sorry. I'm exclusively avi and mkv here. I was hoping the > information would give you a pointer to what is wrong with the resultant > file. Aw well. Maybe someone else has a clue. I'm baffled. -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From david.wagner123 at googlemail.com Fri Sep 7 19:08:01 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Fri, 07 Sep 2012 19:08:01 +0200 Subject: [FFmpeg-user] Cinepak Message-ID: <504A29F1.2030208@googlemail.com> Hello, is there really no cinepak enoder in ffmpeg? Regards, David From mbradshaw at sorensonmedia.com Fri Sep 7 20:39:51 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 7 Sep 2012 12:39:51 -0600 Subject: [FFmpeg-user] Cinepak In-Reply-To: <504A29F1.2030208@googlemail.com> References: <504A29F1.2030208@googlemail.com> Message-ID: On Fri, Sep 7, 2012 at 11:08 AM, David Wagner wrote: > Hello, > is there really no cinepak enoder in ffmpeg? Nope, just a decoder. --Michael From ericwgillum at gmail.com Thu Sep 6 22:47:31 2012 From: ericwgillum at gmail.com (Eric Gillum) Date: Thu, 6 Sep 2012 13:47:31 -0700 Subject: [FFmpeg-user] help remuxing mp4 to matroska Message-ID: Hello, I am not an ffmpeg or multimedia expert. Bear with me. I am trying to transmux an mp4 file with h264 video and aac audio to matroska using libavformat, libavcodec, etc (i.e. not command line ffmpeg). My understanding is that no decoding or encoding is required. That is, I believe the matroska container can handle h264/aac, and that I have these bytes available, and therefore this should be more or less a straightforward copy. A quick sanity check of the file with ffprobe: Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661) Stream #0:1(und): Audio: aac (mp4a / 0x6134706D) So first of all, what I guess must be transmuxing via command line is "ffmpeg -i 0.mp4 -vcodec copy -acodec copy 0.mkv". That gives me a playable file -- VLC can read and play it, and my player can read it (video plays back at least one frame and my implementation is hokey anyway; audio plays back fine). So I'm trying to transmux with libavformat / libavcodec. The code I use to transmux appears last in this message. Encouragingly, on opening the original file to transmux, I get these logs: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x212fa00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x212fa00] ISO: File Type Major Brand: mp42 [h264 @ 0x20f2600] err{or,}_recognition separate: 1; 1 [h264 @ 0x20f2600] err{or,}_recognition combined: 1; 65537 [aac @ 0x20e9400] err{or,}_recognition separate: 1; 1 [aac @ 0x20e9400] err{or,}_recognition combined: 1; 65537 [aac @ 0x20e9400] Unsupported bit depth: 0 I get those same logs for the command-line-transmuxed files, so no obvious problem. And when transmuxing I get logs like these: [matroska @ 0x20fbe00] Writing block at offset 15, size 7349, pts 0, dts 0, duration 40, flags 128 [matroska @ 0x20fbe00] Writing block at offset 21, size 4, pts 0, dts 0, duration 1024, flags 128 [matroska @ 0x20fbe00] Writing block at offset 31, size 4395, pts 40, dts 40, duration 40, flags 0 [matroska @ 0x20fbe00] Starting new cluster at offset 175 bytes, pts 1024 [matroska @ 0x20fbe00] Writing block at offset 16, size 331, pts 1024, dts 1024, duration 1024, flags 128 [matroska @ 0x20fbe00] Writing block at offset 354, size 2169, pts 1040, dts 1040, duration 40, flags 0 [libx264 @ 0x2314800] final ratefactor: 29.14 I get no warnings, no errors, etc. But the output file appears to be mostly junk. ffprobe detects the video dimensions, the audio sample rate, some scant codec stuff about h264 and aac...but generally information is reported as n/a. If I try to play this file, VLC does nothing and logs nothing. My own player appears not to be able to read the header. Here are logs when I open the output file: [matroska,webm @ 0x234ac00] 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 [h264 @ 0x234a800] err{or,}_recognition separate: 1; 1 [h264 @ 0x234a800] err{or,}_recognition combined: 1; 65537 [swscaler @ 0x6358000] No accelerated colorspace conversion found from yuv420p to rgba. [aac @ 0x2314200] err{or,}_recognition separate: 1; 1 [aac @ 0x2314200] err{or,}_recognition combined: 1; 65537 [aac @ 0x2314200] Unsupported bit depth: 0 [h264 @ 0x234a800] Unknown NAL code: 25 (3009 bits) [h264 @ 0x234a800] no frame! [h264 @ 0x234a800] no frame! >From my own logs (not shown) I can tell it reads very far into the file before reporting "Unknown NAL code", whereas on a good file it seems that my player gets a lot of what it needs from the first <4k in the file. As it is, this plays about 0.5 seconds of (correct) audio and then stops decoding due to errors. No video frames are decoded. So before I post the code, here are my questions: - Do I have the right idea about transmuxing from mp4 to matroska? - In the code you'll see that I do not ever call encode_video or decode_video. Perhaps I must still call these, and trust that no (expensive) reencoding occurs? How to I translate the "vcodec -copy" semantics? - Is there sample code or instructions on how to transmux with the libs? My search results only mention command line. And some last second details: - Built the libs from ffmpeg 0.9.1 (harmony) with debug logging. - Built with libx264. - The code below has been stripped of most comments, error checking, etc. I've already verified that no obvious error occurs. With the exception of my transmuxing code, my code runs and works. In fact, I've written code to encode in matroska format and then decode and play back. This is based on that, but basically with the encode_video and decode_video parts stripped out. - The code below omits IO, file processing, callbacks etc. Nothing interesting there (nothing ffmpeg-related). // Build a format context for writing (i.e. transmuxing). // ------------------------------------------------ AVFormatContext *oc = avformat_alloc_context(); // Matroska format. AVOutputFormat *fmt = av_guess_format("matroska", NULL, NULL); fmt->audio_codec = CODEC_ID_AAC; oc->oformat = fmt; // Make ffmpeg call me back when ready to write data. AVIOContext *ioctx = avio_alloc_context(av_malloc(CONTEXT_BUFFER_SIZE), /* buffer */ CONTEXT_BUFFER_SIZE, /* buffer size */ 1, /* write flag */ opaque, /* opaque */ NULL, /* read packet */ callback, /* write packet */ NULL /* seek */); ioctx->seekable = 0; oc->pb = ioctx; // Add video stream. AVStream *video_st = avformat_new_stream(oc, NULL); AVCodecContext *c = video_st->codec; c->codec_id = CODEC_ID_H264; c->codec_type = AVMEDIA_TYPE_VIDEO; c->pix_fmt = PIX_FMT_YUV420P; c->width = 192; c->height = 144; c->time_base.den = frameRateForCurrentDevice(); c->time_base.num = 1; c->bit_rate = 256000; // 512000 c->bit_rate_tolerance = 128000; // 2 * c->bit_rate; c->refs = 4; c->gop_size = 4; c->max_b_frames = 4; c->me_range = 16; c->max_qdiff = 4; c->qmin = 10; c->qmax = 30; c->qcompress = 0.6; if (oc->oformat->flags & AVFMT_GLOBALHEADER) { c->flags |= CODEC_FLAG_GLOBAL_HEADER; } // Open video codec. AVCodec *codec = avcodec_find_encoder(c->codec_id); avcodec_open2(c, codec, NULL); // Add audio stream. AVStream *audio_st = avformat_new_stream(oc, NULL); c = audio_st->codec; c->codec_id = CODEC_ID_AAC; c->codec_type = AVMEDIA_TYPE_AUDIO; c->sample_fmt = AV_SAMPLE_FMT_S16; c->bit_rate = 32000; c->bit_rate_tolerance = 16000; c->sample_rate = 44100; c->channels = 1; if (oc->oformat->flags & AVFMT_GLOBALHEADER) { c->flags |= CODEC_FLAG_GLOBAL_HEADER; } // Open audio. codec = avcodec_find_encoder(c->codec_id); avcodec_open2(c, codec, NULL); avformat_write_header(oc, NULL); // Build a format context for reading, based on the file. // ------------------------------------------------ char const *filename = "whatever"; AVFormatContext *read_ctx = NULL; avformat_open_input(&read_ctx, filename, NULL, NULL); avformat_find_stream_info(read_ctx, NULL); // Find video stream. int read_video_stream_idx = -1; for (int i = 0; i < read_ctx->nb_streams; i++) { if (read_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { read_video_stream_idx = i; break; } } // Find audio stream. int read_audio_stream_idx = -1; for (int i = 0; i < read_ctx->nb_streams; i++) { if (read_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) { read_audio_stream_idx = i; break; } } while (1) { AVPacket pkt; av_init_packet(&pkt); int ret; if ((ret = av_read_frame(read_ctx, &pkt)) < 0) { break; } // Update stream index for writing. pkt.stream_index = (pkt.stream_index == read_video_stream_idx) ? video_st->index : audio_st->index; ret = av_interleaved_write_frame(oc, &pkt); av_free_packet(&pkt); } avio_flush(oc->pb); av_write_trailer(oc); From office at bensullivan.net Fri Sep 7 08:01:21 2012 From: office at bensullivan.net (Ben Sullivan) Date: Fri, 7 Sep 2012 16:01:21 +1000 Subject: [FFmpeg-user] How to convert an AVI/TSCC codec to something that can be viewed in Windows Media PLayer Message-ID: Hi I have an AVI file containing a screen recording. The codec is TSCC. How do I convert this into a file that I can playback using Windows Media Player on Windows 7. I don't have any audio - just video. Thanks Ben From rogerdpack2 at gmail.com Fri Sep 7 21:44:54 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 7 Sep 2012 13:44:54 -0600 Subject: [FFmpeg-user] How to convert an AVI/TSCC codec to something that can be viewed in Windows Media PLayer In-Reply-To: References: Message-ID: > I have an AVI file containing a screen recording. The codec is TSCC. > > How do I convert this into a file that I can playback using Windows Media > Player on Windows 7. I don't have any audio - just video. http://ffmpeg.org/faq.html#Which-codecs-are-supported-by-Windows_003f may be helpful for you. barring that downloading ffdshow-tryouts might make it playable :) -r From rogerdpack2 at gmail.com Fri Sep 7 21:45:46 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 7 Sep 2012 13:45:46 -0600 Subject: [FFmpeg-user] help remuxing mp4 to matroska In-Reply-To: References: Message-ID: > I am not an ffmpeg or multimedia expert. Bear with me. I am trying to > transmux an mp4 file with h264 video and aac audio to matroska using > libavformat, libavcodec, etc (i.e. not command line ffmpeg). My You might get more support from the libav-user group. > understanding is that no decoding or encoding is required. That is, I > believe the matroska container can handle h264/aac, and that I have > these bytes available, and therefore this should be more or less a > straightforward copy. A quick sanity check of the file with ffprobe: > > Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661) > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D) > > So first of all, what I guess must be transmuxing via command line is > "ffmpeg -i 0.mp4 -vcodec copy -acodec copy 0.mkv". That gives me a > playable file -- VLC can read and play it, and my player can read it > (video plays back at least one frame and my implementation is hokey > anyway; audio plays back fine). > > So I'm trying to transmux with libavformat / libavcodec. The code I > use to transmux appears last in this message. Encouragingly, on > opening the original file to transmux, I get these logs: > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x212fa00] Format mov,mp4,m4a,3gp,3g2,mj2 > probed with size=2048 and score=100 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x212fa00] ISO: File Type Major Brand: mp42 > [h264 @ 0x20f2600] err{or,}_recognition separate: 1; 1 > [h264 @ 0x20f2600] err{or,}_recognition combined: 1; 65537 > [aac @ 0x20e9400] err{or,}_recognition separate: 1; 1 > [aac @ 0x20e9400] err{or,}_recognition combined: 1; 65537 > [aac @ 0x20e9400] Unsupported bit depth: 0 Are you sure you're doing the equivalent of "vcodec copy" here? Cheers! -r From rogerdpack2 at gmail.com Fri Sep 7 21:58:34 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 7 Sep 2012 13:58:34 -0600 Subject: [FFmpeg-user] scene cut doesn't output to image? Message-ID: Hello all. I noticed that this works: ffmpeg -i sintel.mpg -vf select="gt(scene\,0.4)",scale=160:120,tile -frames:v 1 preview.png (creates a single tiled frame with the first frame of each scene). However, a user pointed out [1] that if you try and extract "thumbnails" one per scene, using the same filter, it seems to create "the normal number" of image files, but each is a duplicate of the first frame in that scene: $ ffmpeg -i sintel.mpg -vf select="gt(scene\,0.4)" preview%04d.png Anybody know what I'm doing wrong here? Thanks! -roger- [1] http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=680 command line/console's: \ffmpeg-20120903-git-5d55830-win32-static\ffmpeg-20120903-git-5d55830-win32-static\bin\ffmpeg -i ..\sintel.mpg -vf select="gt(scene\,0.4)",scale=160:120,tile -frames:v 1 -t 60 preview.png ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 01dd5ba0] ac-tex damaged at 40 7 [mpeg2video @ 01dd5ba0] Warning MVs not available [mpeg2video @ 01dd5ba0] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame [mpeg @ 0234c6a0] max_analyze_duration 5000000 reached at 5024000 Input #0, mpeg, from '..\sintel.mpg': Duration: 00:14:47.58, start: 0.233367, bitrate: 4132 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 7000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s Output #0, image2, to 'preview.png': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: png, rgb24, 960x600 [SAR 4:3 DAR 32:15], q=2-31, 200 kb/s, 90k tbn, 1 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> png) Press [q] to stop, [?] for help [mpeg2video @ 01dd5ba0] ac-tex damaged at 40 7 [mpeg2video @ 01dd5ba0] Warning MVs not available [mpeg2video @ 01dd5ba0] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame frame= 1 fps=0.0 q=0.0 Lsize= 0kB time=00:00:01.00 bitrate= 0.0kbits/s video:837kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000% >C:\installs\ffmpeg-20120903-git-5d55830-win32-static\ffmpeg-20120903-git-5d55830-win32-static\bin\ffmpeg -i ..\sintel.mpg -vf select="gt(scene\,0.4)" preview%04d.png ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 01e3cf20] ac-tex damaged at 40 7 [mpeg2video @ 01e3cf20] Warning MVs not available [mpeg2video @ 01e3cf20] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame [mpeg @ 01e3c560] max_analyze_duration 5000000 reached at 5024000 Input #0, mpeg, from '..\sintel.mpg': Duration: 00:14:47.58, start: 0.233367, bitrate: 4132 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 7000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s Output #0, image2, to 'preview%04d.png': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: png, rgb24, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> png) Press [q] to stop, [?] for help [mpeg2video @ 01e3cf20] ac-tex damaged at 40 7 [mpeg2video @ 01e3cf20] Warning MVs not available [mpeg2video @ 01e3cf20] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame frame=10520 fps= 23 q=0.0 Lsize= 0kB time=00:05:51.01 bitrate= 0.0kbits/s dup=10492 drop=0 video:3484605kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000% From nicolas.george at normalesup.org Fri Sep 7 22:21:33 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 7 Sep 2012 22:21:33 +0200 Subject: [FFmpeg-user] scene cut doesn't output to image? In-Reply-To: References: Message-ID: <20120907202133.GA4185@phare.normalesup.org> Le duodi 22 fructidor, an CCXX, Roger Pack a ?crit?: > However, a user pointed out [1] that if you try and extract > "thumbnails" one per scene, using the same filter, it seems to create > "the normal number" of image files, but each is a duplicate of the > first frame in that scene: > > $ ffmpeg -i sintel.mpg -vf select="gt(scene\,0.4)" preview%04d.png > > Anybody know what I'm doing wrong here? This is starting to become a FAQ: images do not have timestamp, so ffmpeg duplicates them to accommodate the frame rate. You need to change the vsync method to avoid that. 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 ubitux at gmail.com Fri Sep 7 22:24:26 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Fri, 7 Sep 2012 22:24:26 +0200 Subject: [FFmpeg-user] scene cut doesn't output to image? In-Reply-To: References: Message-ID: <20120907202426.GC27891@leki> On Fri, Sep 07, 2012 at 01:58:34PM -0600, Roger Pack wrote: > Hello all. > > I noticed that this works: > > ffmpeg -i sintel.mpg -vf select="gt(scene\,0.4)",scale=160:120,tile > -frames:v 1 preview.png > > (creates a single tiled frame with the first frame of each scene). > > However, a user pointed out [1] that if you try and extract > "thumbnails" one per scene, using the same filter, it seems to create > "the normal number" of image files, but each is a duplicate of the > first frame in that scene: > > $ ffmpeg -i sintel.mpg -vf select="gt(scene\,0.4)" preview%04d.png > > Anybody know what I'm doing wrong here? > It looks like the same issue as https://ffmpeg.org/trac/ffmpeg/ticket/1644 Using -vsync vfr as stated in the first comment should help. > Thanks! > -roger- > > [1] http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=680 [...] -- 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 andycivil at gmail.com Fri Sep 7 22:25:34 2012 From: andycivil at gmail.com (Andy Civil) Date: Fri, 07 Sep 2012 16:25:34 -0400 Subject: [FFmpeg-user] Cinepak In-Reply-To: <504A29F1.2030208@googlemail.com> References: <504A29F1.2030208@googlemail.com> Message-ID: <504A583E.5050202@gmail.com> On 2012-09-07 1:08 PM, David Wagner wrote: > Hello, > is there really no cinepak enoder in ffmpeg? In general, I hate it when support people respond to a question with "why on earth would you want to do that" but I admit, it's hard not to think that way in this case; the codec is now 20 years old, and was useful only to create small videos that would play on a 1992 PC given the processing power available. Perhaps if you told us what your overall purpose was, you might get a useful hint on how to achieve your objective in a reasonable way. (P.S. I believe that Windows relies on codec DLLs being 'installed', but FFmpeg doesn't work that way; having a Cinepak (or any other) codec 'on your computer' is not going to enable FFmpeg to use it.) -- Andy From cehoyos at ag.or.at Sat Sep 8 00:48:59 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 7 Sep 2012 22:48:59 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > Incompatible pixel format 'yuv444p10le' for codec 'prores', > auto-selecting format 'yuv422p10le' Only the slower alternative prores encoder "prores_kostya" supports yuv444. Carl Eugen From david.wagner123 at googlemail.com Sat Sep 8 00:59:31 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Sat, 08 Sep 2012 00:59:31 +0200 Subject: [FFmpeg-user] Cinepak In-Reply-To: <504A583E.5050202@gmail.com> References: <504A29F1.2030208@googlemail.com> <504A583E.5050202@gmail.com> Message-ID: <504A7C53.5070700@googlemail.com> Hello Andy, I wanted to benchmark this codec for comparing it with other codecs. Also I wanted to test this codec, because it seems to be one of the codecs which works without problems on mac and windows. The test sequences are low bitrate. I already found it on Virtual Dub. Regards, David Am 07.09.2012 22:25, schrieb Andy Civil: > On 2012-09-07 1:08 PM, David Wagner wrote: >> Hello, >> is there really no cinepak enoder in ffmpeg? > > In general, I hate it when support people respond to a question with > "why on earth would you want to do that" but I admit, it's hard not to > think that way in this case; the codec is now 20 years old, and was > useful only to create small videos that would play on a 1992 PC given > the processing power available. > > Perhaps if you told us what your overall purpose was, you might get a > useful hint on how to achieve your objective in a reasonable way. > > (P.S. I believe that Windows relies on codec DLLs being 'installed', > but FFmpeg doesn't work that way; having a Cinepak (or any other) > codec 'on your computer' is not going to enable FFmpeg to use it.) > > -- > Andy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From andycivil at gmail.com Sat Sep 8 01:18:43 2012 From: andycivil at gmail.com (Andy Civil) Date: Fri, 07 Sep 2012 19:18:43 -0400 Subject: [FFmpeg-user] Cinepak In-Reply-To: <504A7C53.5070700@googlemail.com> References: <504A29F1.2030208@googlemail.com> <504A583E.5050202@gmail.com> <504A7C53.5070700@googlemail.com> Message-ID: <504A80D3.5030707@gmail.com> Fair enough. The other codec that you'll find wide support for / acceptance of, is the MPEG-2 stream found on DVDs. Andy On 2012-09-07 6:59 PM, David Wagner wrote: > Hello Andy, > > I wanted to benchmark this codec for comparing it with other codecs. Also I > wanted to test this codec, because it seems to be one of the codecs which works > without problems on mac and windows. The test sequences are low bitrate. I > already found it on Virtual Dub. > > Regards, > David > > Am 07.09.2012 22:25, schrieb Andy Civil: >> On 2012-09-07 1:08 PM, David Wagner wrote: >>> Hello, >>> is there really no cinepak enoder in ffmpeg? >> >> In general, I hate it when support people respond to a question with "why on >> earth would you want to do that" but I admit, it's hard not to think that way >> in this case; the codec is now 20 years old, and was useful only to create >> small videos that would play on a 1992 PC given the processing power available. >> >> Perhaps if you told us what your overall purpose was, you might get a useful >> hint on how to achieve your objective in a reasonable way. >> >> (P.S. I believe that Windows relies on codec DLLs being 'installed', but >> FFmpeg doesn't work that way; having a Cinepak (or any other) codec 'on your >> computer' is not going to enable FFmpeg to use it.) >> >> -- >> Andy >> _______________________________________________ >> 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 david.wagner123 at googlemail.com Sat Sep 8 01:36:45 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Sat, 08 Sep 2012 01:36:45 +0200 Subject: [FFmpeg-user] Cinepak In-Reply-To: <504A80D3.5030707@gmail.com> References: <504A29F1.2030208@googlemail.com> <504A583E.5050202@gmail.com> <504A7C53.5070700@googlemail.com> <504A80D3.5030707@gmail.com> Message-ID: <504A850D.7010806@googlemail.com> Right. And Mpeg-1. Regards, David Am 08.09.2012 01:18, schrieb Andy Civil: > Fair enough. The other codec that you'll find wide support for / > acceptance of, is the MPEG-2 stream found on DVDs. > > Andy > > > On 2012-09-07 6:59 PM, David Wagner wrote: >> Hello Andy, >> >> I wanted to benchmark this codec for comparing it with other codecs. >> Also I >> wanted to test this codec, because it seems to be one of the codecs >> which works >> without problems on mac and windows. The test sequences are low >> bitrate. I >> already found it on Virtual Dub. >> >> Regards, >> David >> >> Am 07.09.2012 22:25, schrieb Andy Civil: >>> On 2012-09-07 1:08 PM, David Wagner wrote: >>>> Hello, >>>> is there really no cinepak enoder in ffmpeg? >>> >>> In general, I hate it when support people respond to a question with >>> "why on >>> earth would you want to do that" but I admit, it's hard not to think >>> that way >>> in this case; the codec is now 20 years old, and was useful only to >>> create >>> small videos that would play on a 1992 PC given the processing power >>> available. >>> >>> Perhaps if you told us what your overall purpose was, you might get >>> a useful >>> hint on how to achieve your objective in a reasonable way. >>> >>> (P.S. I believe that Windows relies on codec DLLs being 'installed', >>> but >>> FFmpeg doesn't work that way; having a Cinepak (or any other) codec >>> 'on your >>> computer' is not going to enable FFmpeg to use it.) >>> >>> -- >>> Andy >>> _______________________________________________ >>> 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 rogerdpack2 at gmail.com Sat Sep 8 17:56:50 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 8 Sep 2012 09:56:50 -0600 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> Message-ID: >> Incompatible pixel format 'yuv444p10le' for codec 'prores', >> auto-selecting format 'yuv422p10le' > > Only the slower alternative prores encoder "prores_kostya" > supports yuv444. His question was, even using prores_kostya with yuv444p10le, the resultant file shows as yuv44p10le in ffmpeg, but in QT Player, it says "yuv420p" when playing it. So my question is...do any files say yuv422 when played in QT Player? -r From cehoyos at ag.or.at Sun Sep 9 00:27:10 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 8 Sep 2012 22:27:10 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> Message-ID: Roger Pack gmail.com> writes: > >> Incompatible pixel format 'yuv444p10le' for codec 'prores', > >> auto-selecting format 'yuv422p10le' > > > > Only the slower alternative prores encoder "prores_kostya" > > supports yuv444. > > His question was, even using prores_kostya with yuv444p10le, the > resultant file shows as yuv44p10le in ffmpeg, but in QT Player, it > says "yuv420p" when playing it. Apart from the fact that this is hard to believe, I was unable to find that claim in the original mail. Carl Eugen From ericwgillum at gmail.com Sat Sep 8 01:27:19 2012 From: ericwgillum at gmail.com (Eric Gillum) Date: Fri, 7 Sep 2012 16:27:19 -0700 Subject: [FFmpeg-user] help remuxing mp4 to matroska In-Reply-To: References: Message-ID: I am studying the source to see how command-line ffmpeg makes things happen. Informative. I'll be trying things based on that. I'm still wondering if there is more direct support for transmuxing... On Thu, Sep 6, 2012 at 1:47 PM, Eric Gillum wrote: > Hello, > > I am not an ffmpeg or multimedia expert. Bear with me. I am trying to > transmux an mp4 file with h264 video and aac audio to matroska using > libavformat, libavcodec, etc (i.e. not command line ffmpeg). My > understanding is that no decoding or encoding is required. That is, I > believe the matroska container can handle h264/aac, and that I have > these bytes available, and therefore this should be more or less a > straightforward copy. A quick sanity check of the file with ffprobe: > > Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661) > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D) > > So first of all, what I guess must be transmuxing via command line is > "ffmpeg -i 0.mp4 -vcodec copy -acodec copy 0.mkv". That gives me a > playable file -- VLC can read and play it, and my player can read it > (video plays back at least one frame and my implementation is hokey > anyway; audio plays back fine). > > So I'm trying to transmux with libavformat / libavcodec. The code I > use to transmux appears last in this message. Encouragingly, on > opening the original file to transmux, I get these logs: > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x212fa00] Format mov,mp4,m4a,3gp,3g2,mj2 > probed with size=2048 and score=100 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x212fa00] ISO: File Type Major Brand: mp42 > [h264 @ 0x20f2600] err{or,}_recognition separate: 1; 1 > [h264 @ 0x20f2600] err{or,}_recognition combined: 1; 65537 > [aac @ 0x20e9400] err{or,}_recognition separate: 1; 1 > [aac @ 0x20e9400] err{or,}_recognition combined: 1; 65537 > [aac @ 0x20e9400] Unsupported bit depth: 0 > > I get those same logs for the command-line-transmuxed files, so no > obvious problem. And when transmuxing I get logs like these: > > [matroska @ 0x20fbe00] Writing block at offset 15, size 7349, pts 0, > dts 0, duration 40, flags 128 > [matroska @ 0x20fbe00] Writing block at offset 21, size 4, pts 0, dts > 0, duration 1024, flags 128 > [matroska @ 0x20fbe00] Writing block at offset 31, size 4395, pts 40, > dts 40, duration 40, flags 0 > > [matroska @ 0x20fbe00] Starting new cluster at offset 175 bytes, pts 1024 > [matroska @ 0x20fbe00] Writing block at offset 16, size 331, pts 1024, > dts 1024, duration 1024, flags 128 > [matroska @ 0x20fbe00] Writing block at offset 354, size 2169, pts > 1040, dts 1040, duration 40, flags 0 > > [libx264 @ 0x2314800] final ratefactor: 29.14 > > I get no warnings, no errors, etc. But the output file appears to be > mostly junk. ffprobe detects the video dimensions, the audio sample > rate, some scant codec stuff about h264 and aac...but generally > information is reported as n/a. If I try to play this file, VLC does > nothing and logs nothing. My own player appears not to be able to read > the header. Here are logs when I open the output file: > > [matroska,webm @ 0x234ac00] 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 > [h264 @ 0x234a800] err{or,}_recognition separate: 1; 1 > [h264 @ 0x234a800] err{or,}_recognition combined: 1; 65537 > [swscaler @ 0x6358000] No accelerated colorspace conversion found from > yuv420p to rgba. > [aac @ 0x2314200] err{or,}_recognition separate: 1; 1 > [aac @ 0x2314200] err{or,}_recognition combined: 1; 65537 > [aac @ 0x2314200] Unsupported bit depth: 0 > [h264 @ 0x234a800] Unknown NAL code: 25 (3009 bits) > [h264 @ 0x234a800] no frame! > [h264 @ 0x234a800] no frame! > > From my own logs (not shown) I can tell it reads very far into the > file before reporting "Unknown NAL code", whereas on a good file it > seems that my player gets a lot of what it needs from the first <4k in > the file. As it is, this plays about 0.5 seconds of (correct) audio > and then stops decoding due to errors. No video frames are decoded. > > So before I post the code, here are my questions: > - Do I have the right idea about transmuxing from mp4 to matroska? > - In the code you'll see that I do not ever call encode_video or > decode_video. Perhaps I must still call these, and trust that no > (expensive) reencoding occurs? How to I translate the "vcodec -copy" > semantics? > - Is there sample code or instructions on how to transmux with the > libs? My search results only mention command line. > > And some last second details: > - Built the libs from ffmpeg 0.9.1 (harmony) with debug logging. > - Built with libx264. > - The code below has been stripped of most comments, error checking, > etc. I've already verified that no obvious error occurs. With the > exception of my transmuxing code, my code runs and works. In fact, > I've written code to encode in matroska format and then decode and > play back. This is based on that, but basically with the encode_video > and decode_video parts stripped out. > - The code below omits IO, file processing, callbacks etc. Nothing > interesting there (nothing ffmpeg-related). > > // Build a format context for writing (i.e. transmuxing). > // ------------------------------------------------ > AVFormatContext *oc = avformat_alloc_context(); > > // Matroska format. > AVOutputFormat *fmt = av_guess_format("matroska", NULL, NULL); > fmt->audio_codec = CODEC_ID_AAC; > oc->oformat = fmt; > > // Make ffmpeg call me back when ready to write data. > AVIOContext *ioctx = > avio_alloc_context(av_malloc(CONTEXT_BUFFER_SIZE), /* buffer */ > CONTEXT_BUFFER_SIZE, /* buffer size */ > 1, /* write flag */ > opaque, /* opaque */ > NULL, /* read packet */ > callback, /* write packet */ > NULL /* seek */); > ioctx->seekable = 0; > oc->pb = ioctx; > > // Add video stream. > AVStream *video_st = avformat_new_stream(oc, NULL); > AVCodecContext *c = video_st->codec; > c->codec_id = CODEC_ID_H264; > c->codec_type = AVMEDIA_TYPE_VIDEO; > c->pix_fmt = PIX_FMT_YUV420P; > c->width = 192; > c->height = 144; > c->time_base.den = frameRateForCurrentDevice(); > c->time_base.num = 1; > c->bit_rate = 256000; // 512000 > c->bit_rate_tolerance = 128000; // 2 * c->bit_rate; > c->refs = 4; > c->gop_size = 4; > c->max_b_frames = 4; > c->me_range = 16; > c->max_qdiff = 4; > c->qmin = 10; > c->qmax = 30; > c->qcompress = 0.6; > if (oc->oformat->flags & AVFMT_GLOBALHEADER) { > c->flags |= CODEC_FLAG_GLOBAL_HEADER; > } > > // Open video codec. > AVCodec *codec = avcodec_find_encoder(c->codec_id); > avcodec_open2(c, codec, NULL); > > // Add audio stream. > AVStream *audio_st = avformat_new_stream(oc, NULL); > c = audio_st->codec; > c->codec_id = CODEC_ID_AAC; > c->codec_type = AVMEDIA_TYPE_AUDIO; > c->sample_fmt = AV_SAMPLE_FMT_S16; > c->bit_rate = 32000; > c->bit_rate_tolerance = 16000; > c->sample_rate = 44100; > c->channels = 1; > if (oc->oformat->flags & AVFMT_GLOBALHEADER) { > c->flags |= CODEC_FLAG_GLOBAL_HEADER; > } > > // Open audio. > codec = avcodec_find_encoder(c->codec_id); > avcodec_open2(c, codec, NULL); > > avformat_write_header(oc, NULL); > > // Build a format context for reading, based on the file. > // ------------------------------------------------ > char const *filename = "whatever"; > AVFormatContext *read_ctx = NULL; > avformat_open_input(&read_ctx, filename, NULL, NULL); > avformat_find_stream_info(read_ctx, NULL); > // Find video stream. > int read_video_stream_idx = -1; > for (int i = 0; i < read_ctx->nb_streams; i++) { > if (read_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { > read_video_stream_idx = i; > break; > } > } > // Find audio stream. > int read_audio_stream_idx = -1; > for (int i = 0; i < read_ctx->nb_streams; i++) { > if (read_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) { > read_audio_stream_idx = i; > break; > } > } > > while (1) { > AVPacket pkt; > av_init_packet(&pkt); > int ret; > if ((ret = av_read_frame(read_ctx, &pkt)) < 0) { > break; > } > > // Update stream index for writing. > pkt.stream_index = (pkt.stream_index == read_video_stream_idx) ? > video_st->index : audio_st->index; > ret = av_interleaved_write_frame(oc, &pkt); > av_free_packet(&pkt); > } > > avio_flush(oc->pb); > av_write_trailer(oc); From mahdi87_gh at yahoo.com Sat Sep 8 12:42:22 2012 From: mahdi87_gh at yahoo.com (mahdi87_gh) Date: Sat, 8 Sep 2012 03:42:22 -0700 (PDT) Subject: [FFmpeg-user] how to video streaming on mms protocol? Message-ID: <1347100942575-4653293.post@n4.nabble.com> Hi I want to stream a video file on my lan and get the stream on mms protocol. like mms://192.168.100.10:8080 can anybody help me? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-video-streaming-on-mms-protocol-tp4653293.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From david.wagner123 at googlemail.com Sun Sep 9 07:06:15 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Sun, 09 Sep 2012 07:06:15 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? Message-ID: <504C23C7.4080405@googlemail.com> Hi, I'm trying to compare some codecs. For encoding I use the -benchmark and -report. Afterwards I have a log file with some lines which confuse me.... frame= 136 fps=0.0 q=48.0 size= 21kB time=00:00:02.90 bitrate= 58.9kbits/s frame= 249 fps=0.0 q=45.0 size= 40kB time=00:00:06.67 bitrate= 49.5kbits/s frame= 358 fps=239 q=45.0 size= 65kB time=00:00:10.31 bitrate= 52.0kbits/s frame= 467 fps=234 q=43.0 size= 82kB time=00:00:13.94 bitrate= 48.4kbits/s frame= 562 fps=223 q=44.0 size= 109kB time=00:00:17.11 bitrate= 51.9kbits/s frame= 661 fps=219 q=44.0 size= 130kB time=00:00:20.42 bitrate= 52.0kbits/s frame= 772 fps=220 q=43.0 size= 150kB time=00:00:24.12 bitrate= 50.9kbits/s frame= 888 fps=221 q=44.0 size= 178kB time=00:00:27.99 bitrate= 52.1kbits/s frame= 1000 fps=221 q=43.0 size= 197kB time=00:00:31.73 bitrate= 50.9kbits/s No more output streams to write to, finishing. frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 bitrate= 55.0kbits/s bench: utime=8.781s maxrss=49488kB What is meant by the fps? Is it the (averaged) speed at which the frames are processed? So 1065frames / 214fps = 4,97 s. Which is not equal utime = 8,7818s. Also I have seen that at the end time=00:00:35.46 is exactly the length of the encoded video. Could someone please explain me the parameters? BTW exists there a mode for benchmarking the DEcoding process, so that I have some stats and won't need to play all the files in realtime? Regards, David From cehoyos at ag.or.at Sun Sep 9 23:01:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 9 Sep 2012 21:01:01 +0000 (UTC) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? References: <504C23C7.4080405@googlemail.com> Message-ID: David Wagner googlemail.com> writes: > frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 > bitrate= 55.0kbits/s > bench: utime=8.781s maxrss=49488kB > > What is meant by the fps? Is it the (averaged) speed at which > the frames are processed? No, not averaged but current. > So 1065frames / 214fps = 4,97 s. Which is not equal utime > = 8,7818s. > Also I have seen that at the end time=00:00:35.46 is exactly > the length of the encoded video. That is correct and this should be very accurate. > Could someone please explain me the > parameters? If you mean frame, size and bitrate, I assumed they are self-explanatory... (I suspect bitrate is also current, not average, but I did not test.) utime is the time spent on CPU, maxrss should be maximum memory footprint. > BTW exists there a mode for benchmarking the DEcoding process, > so that I have some stats and won't need to play all the > files in realtime? I always use: $ time ffmpeg -i input -f null - Carl Eugen From wtfux.dev at googlemail.com Sun Sep 9 23:19:10 2012 From: wtfux.dev at googlemail.com (wtfux) Date: Sun, 9 Sep 2012 23:19:10 +0200 Subject: [FFmpeg-user] Problem with libfdk-aac and VBR quality option "quality out of range" Message-ID: Hi guys, first off, there are so many aac encoders (faac, visual on, fdk-aac, builtin aac, ...). Does someone know where I can read more about the features so I can choose which is the best for me? I used to use libfaac but I read that the implementation is considered 'bad quality' and that fdk-aac is considered 'good quality'. So I built ffmpeg with libfdk-aac support but there is a problem with using -q:a option to set VBR quality. -b:a works fine but will produce a quite static bitrate, I want to use a variable bitrate. libfdk-aac supports a quality range of 1-5: VBR quality X out of range, should be 1-5 However setting -q:a to 1 to 5 will produce an error: [libfdk_aac @ 0000000003da2b60] VBR quality 118 out of range, should be 1-5 ------ LOG ffmpeg started on 2012-09-09 at 23:09:44 Report written to "ffmpeg-20120909-230944.log" Command line: "Z:\\ffmpeg10bit\\ffmpeg.exe" -report -i "E:\\00003.m2ts" -vn -c:a libfdk_aac -q:a 1 -t 00:01:00 -y "Z:\\test.aac" ffmpeg version git-2012-09-04-3b6e9cd Copyright (c) 2000-2012 the FFmpeg developers built on Sep 5 2012 14:44:42 with gcc 4.7.1 (GCC) configuration: --pkg-config=pkg-config --prefix=/root/win32 --enable-memalign-hack --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --enable-libfaac --enable-libfdk-aac --enable-libx264 --enable-gpl --enable-nonfree --enable-version3 --enable-avfilter --enable-avisynth libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.103 / 3. 15.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 00000000002cf3e0] Format mpegts probed with size=2048 and score=100 [mpegts @ 00000000002cf3e0] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV [mpegts @ 00000000002cf3e0] stream=1 stream_type=80 pid=1100 prog_reg_desc=HDMV [mpegts @ 00000000002cf3e0] File position before avformat_find_stream_info() is 0 [mpegts @ 00000000002cf3e0] parser not found for codec pcm_bluray, packets or times may be invalid. [h264 @ 00000000015cf9c0] no picture [mpegts @ 00000000002cf3e0] parser not found for codec pcm_bluray, packets or times may be invalid. [mpegts @ 00000000002cf3e0] Probe buffer size limit 5000000 reached rfps: 23.750000 0.014331 rfps: 23.833333 0.005712 rfps: 23.916667 0.000988 rfps: 24.000000 0.000161 rfps: 24.083333 0.003230 rfps: 24.166667 0.010195 rfps: 47.750000 0.011452 rfps: 47.833333 0.003954 rfps: 47.916667 0.000351 rfps: 47.916667 0.000351 rfps: 48.000000 0.000645 rfps: 48.083333 0.004834 rfps: 48.166667 0.012920 rfps: 23.976024 0.000000 rfps: 23.976024 0.000000 rfps: 47.952048 0.000000 rfps: 47.952048 0.000000 [mpegts @ 00000000002cf3e0] File position after avformat_find_stream_info() is 0 Input #0, mpegts, from 'E:\00003.m2ts': Duration: 00:47:23.17, start: 4198.958300, bitrate: 36670 kb/s Program 1 Stream #0:0[0x1011], 45, 1/90000: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100], 477, 1/90000: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s [abuffer @ 0000000003da0780] Setting entry with key 'time_base' to value '1/48000' [abuffer @ 0000000003da0780] Setting entry with key 'sample_rate' to value '48000' [abuffer @ 0000000003da0780] Setting entry with key 'sample_fmt' to value 's16' [abuffer @ 0000000003da0780] Setting entry with key 'channel_layout' to value '0x3' [graph 0 input from stream 0:1 @ 0000000003da0660] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [aformat @ 0000000003450ba0] Setting entry with key 'sample_fmts' to value 's16' [aformat @ 0000000003450ba0] Setting entry with key 'channel_layouts' to value '0x4,0x3,0x7,0x107,0x37,0x3f' [libfdk_aac @ 0000000003da2b60] VBR quality 118 out of range, should be 1-5 Output #0, adts, to 'Z:\test.aac': Metadata: encoder : Lavf54.25.104 Stream #0:0, 0, 1/90000: Audio: aac, 48000 Hz, stereo, s16 Stream mapping: Stream #0:1 -> #0:0 (pcm_bluray -> libfdk_aac) Press [q] to stop, [?] for help size= 287kB time=00:00:09.55 bitrate= 246.2kbits/s size= 594kB time=00:00:18.21 bitrate= 267.3kbits/s size= 887kB time=00:00:26.98 bitrate= 269.2kbits/s size= 1185kB time=00:00:35.60 bitrate= 272.7kbits/s size= 1457kB time=00:00:44.94 bitrate= 265.5kbits/s size= 1722kB time=00:00:54.24 bitrate= 260.0kbits/s No more output streams to write to, finishing. size= 1920kB time=00:01:00.00 bitrate= 262.1kbits/s video:0kB audio:1920kB subtitle:0 global headers:0kB muxing overhead 0.000000% [AVIOContext @ 00000000002cf9c0] Statistics: 291524752 bytes read, 2 seeks ------ LOG END -q:a 2 will output: [libfdk_aac @ 0000000003f62b60] VBR quality 236 out of range, should be 1-5 -q:a 3: [libfdk_aac @ 0000000003fb2b60] VBR quality 354 out of range, should be 1-5 -q:a 4: [libfdk_aac @ 0000000004002b60] VBR quality 472 out of range, should be 1-5 -q:a 5: [libfdk_aac @ 0000000004082b60] VBR quality 590 out of range, should be 1-5 Only the range of -q:a 0.02 to 0.05 works: (0.06 shows: VBR quality 7 out of range, should be 1-5) ------ LOG ffmpeg started on 2012-09-09 at 23:12:30 Report written to "ffmpeg-20120909-231230.log" Command line: "Z:\\ffmpeg10bit\\ffmpeg.exe" -report -i "E:\\00003.m2ts" -vn -c:a libfdk_aac -q:a 0.02 -t 00:01:00 -y "Z:\\test.aac" ffmpeg version git-2012-09-04-3b6e9cd Copyright (c) 2000-2012 the FFmpeg developers built on Sep 5 2012 14:44:42 with gcc 4.7.1 (GCC) configuration: --pkg-config=pkg-config --prefix=/root/win32 --enable-memalign-hack --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --enable-libfaac --enable-libfdk-aac --enable-libx264 --enable-gpl --enable-nonfree --enable-version3 --enable-avfilter --enable-avisynth libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.103 / 3. 15.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 000000000193f400] Format mpegts probed with size=2048 and score=100 [mpegts @ 000000000193f400] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV [mpegts @ 000000000193f400] stream=1 stream_type=80 pid=1100 prog_reg_desc=HDMV [mpegts @ 000000000193f400] File position before avformat_find_stream_info() is 0 [mpegts @ 000000000193f400] parser not found for codec pcm_bluray, packets or times may be invalid. [h264 @ 000000000031fa00] no picture [mpegts @ 000000000193f400] parser not found for codec pcm_bluray, packets or times may be invalid. [mpegts @ 000000000193f400] Probe buffer size limit 5000000 reached rfps: 23.750000 0.014331 rfps: 23.833333 0.005712 rfps: 23.916667 0.000988 rfps: 24.000000 0.000161 rfps: 24.083333 0.003230 rfps: 24.166667 0.010195 rfps: 47.750000 0.011452 rfps: 47.833333 0.003954 rfps: 47.916667 0.000351 rfps: 47.916667 0.000351 rfps: 48.000000 0.000645 rfps: 48.083333 0.004834 rfps: 48.166667 0.012920 rfps: 23.976024 0.000000 rfps: 23.976024 0.000000 rfps: 47.952048 0.000000 rfps: 47.952048 0.000000 [mpegts @ 000000000193f400] File position after avformat_find_stream_info() is 0 Input #0, mpegts, from 'E:\00003.m2ts': Duration: 00:47:23.17, start: 4198.958300, bitrate: 36670 kb/s Program 1 Stream #0:0[0x1011], 45, 1/90000: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100], 477, 1/90000: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s [abuffer @ 0000000003f00740] Setting entry with key 'time_base' to value '1/48000' [abuffer @ 0000000003f00740] Setting entry with key 'sample_rate' to value '48000' [abuffer @ 0000000003f00740] Setting entry with key 'sample_fmt' to value 's16' [abuffer @ 0000000003f00740] Setting entry with key 'channel_layout' to value '0x3' [graph 0 input from stream 0:1 @ 0000000003f00620] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [aformat @ 00000000035afac0] Setting entry with key 'sample_fmts' to value 's16' [aformat @ 00000000035afac0] Setting entry with key 'channel_layouts' to value '0x4,0x3,0x7,0x107,0x37,0x3f' Output #0, adts, to 'Z:\test.aac': Metadata: encoder : Lavf54.25.104 Stream #0:0, 0, 1/90000: Audio: aac, 48000 Hz, stereo, s16 Stream mapping: Stream #0:1 -> #0:0 (pcm_bluray -> libfdk_aac) Press [q] to stop, [?] for help size= 159kB time=00:00:13.28 bitrate= 98.2kbits/s size= 316kB time=00:00:26.13 bitrate= 99.0kbits/s size= 471kB time=00:00:39.06 bitrate= 98.8kbits/s size= 610kB time=00:00:52.11 bitrate= 95.9kbits/s No more output streams to write to, finishing. size= 699kB time=00:01:00.00 bitrate= 95.4kbits/s video:0kB audio:699kB subtitle:0 global headers:0kB muxing overhead 0.000000% [AVIOContext @ 000000000193f9e0] Statistics: 291524752 bytes read, 2 seeks ------ LOG END I don't know if this is on purpose or if it's a bug. From lou at lrcd.com Mon Sep 10 01:16:54 2012 From: lou at lrcd.com (Lou) Date: Sun, 09 Sep 2012 15:16:54 -0800 Subject: [FFmpeg-user] Problem with libfdk-aac and VBR quality option "quality out of range" In-Reply-To: References: Message-ID: <1347232614.16979.140661125695281.617D5ADF@webmail.messagingengine.com> On Sun, Sep 9, 2012, at 01:19 PM, wtfux wrote: > Hi guys, > first off, there are so many aac encoders (faac, visual on, fdk-aac, > builtin aac, ...). Does someone know where I can read more about the > features so I can choose which is the best for me? > > I used to use libfaac but I read that the implementation is considered > 'bad > quality' and that fdk-aac is considered 'good quality'. So I built ffmpeg > with libfdk-aac support but there is a problem with using -q:a option to > set VBR quality. -b:a works fine but will produce a quite static bitrate, > I > want to use a variable bitrate. > > libfdk-aac supports a quality range of 1-5: > > VBR quality X out of range, should be 1-5 > > > However setting -q:a to 1 to 5 will produce an error: [libfdk_aac @ > 0000000003da2b60] VBR quality 118 out of range, should be 1-5 ffmpeg -i -c:a libfdk_aac -flags +qscale -global_quality [1-5] -afterburner 1 I believe a value of 1 can not be used in VBR mode. See: http://www.hydrogenaudio.org/forums/index.php?showtopic=95989 From volodomanov at gmail.com Sun Sep 9 02:02:29 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Sun, 09 Sep 2012 10:02:29 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? Message-ID: <504BDC95.5060804@gmail.com> Hello all, I've got a problem with FFmpeg remuxing MKV to MPEG-TS (video mux, audio recode or drop, doesn't matter) and I have the last working build from around N-43161-g31d8261. Shortly after (a few days or a couple of week at most) that it stopped muxing properly. What I mean by that is that video freezes a few seconds into certain videos (not all) and then skips further to another frozen frame and so on. I'd like to try and narrow it down by getting each consecutive day after that last-known working build and building to see when it starts to break. Can you please supply a git command line to do that? Also, how can I look at changes between two builds (in source) to see if I can spot it myself? Which files should I concentrate on comparing? Thanks! Dennis From mbradshaw at sorensonmedia.com Mon Sep 10 04:29:58 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Sun, 9 Sep 2012 20:29:58 -0600 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: <504BDC95.5060804@gmail.com> References: <504BDC95.5060804@gmail.com> Message-ID: On Sep 9, 2012 5:20 PM, "Dennis Volodomanov" wrote: > > Hello all, > > I've got a problem with FFmpeg remuxing MKV to MPEG-TS (video mux, audio recode or drop, doesn't matter) and I have the last working build from around N-43161-g31d8261. Shortly after (a few days or a couple of week at most) that it stopped muxing properly. What I mean by that is that video freezes a few seconds into certain videos (not all) and then skips further to another frozen frame and so on. > > I'd like to try and narrow it down by getting each consecutive day after that last-known working build and building to see when it starts to break. Can you please supply a git command line to do that? Look into using git bisect. It'll do a binary search on the commits between a known working version and a known broken version, and narrow it down until you can find the commit that caused the break. Google should be able to find plenty of examples for git bisect. I think there might be a tool even in ffmpeg/tools to help with bisecting too, though I've never used it. Sorry I can't give a proper command off the top of my head; I'm replying from my phone so please excuse any spelling or grammar errors. From volodomanov at gmail.com Mon Sep 10 04:43:08 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Mon, 10 Sep 2012 12:43:08 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> Message-ID: <504D53BC.5020907@gmail.com> Hi Michael, On 10/09/2012 12:29 PM, Michael Bradshaw wrote: > Look into using git bisect. It'll do a binary search on the commits between > a known working version and a known broken version, and narrow it down > until you can find the commit that caused the break. Google should be able > to find plenty of examples for git bisect. I think there might be a tool > even in ffmpeg/tools to help with bisecting too, though I've never used it. > > Sorry I can't give a proper command off the top of my head; I'm replying > from my phone so please excuse any spelling or grammar errors. > Thanks - I'll look into that. Do you know what files I should concentrate on? Best regards, Dennis From ram at modernvideo.co Mon Sep 10 07:02:42 2012 From: ram at modernvideo.co (mvram) Date: Sun, 9 Sep 2012 22:02:42 -0700 (PDT) Subject: [FFmpeg-user] Licensing: Modified FFmpeg with a call to an external library Message-ID: <1347253362600-4653305.post@n4.nabble.com> Hi, I have a licensing question. I make a change in a FFmpeg source file and call a function from a dynamically linked external library (libmyext). I configure FFmpeg without "enable-gpl" and without "enable-nonfree". The only way the modified code will be invoked is if FFmpeg is configured with --enable-myext. I update my EULA as mentioned in the Checklist at http://ffmpeg.org/legal.html and I make the source code for the updated FFmpeg available on my website. Can I include FFmpeg in my product distribution? Is it ok for me to choose a proprietary license for that external library "libmyext"? Or am I required to make it an open source GPL/LGPL based license? Can someone please advise. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Licensing-Modified-FFmpeg-with-a-call-to-an-external-library-tp4653305.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Mon Sep 10 09:35:31 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 10 Sep 2012 07:35:31 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > I've got a problem with FFmpeg remuxing MKV to MPEG-TS > (video mux, audio recode or drop, doesn't matter) and I > have the last working build from around N-43161-g31d8261. > Shortly after (a few days or a couple of week at most) > that it stopped muxing properly. What I mean by that is > that video freezes a few seconds into certain videos > (not all) and then skips further to another frozen > frame and so on. Command line and complete, uncut console output missing. (We are very interested in such bug reports and while I appreciate it if you do the bisecting, you may not have enough time to do it and I will probably be faster.) A sample might be needed too. [...] > Also, how can I look at changes between two builds > (in source) to see if I can spot it myself? git log -p version > Which files should I concentrate on comparing? Do not concentrate on files, git bisect will tell you the responsible change. Carl Eugen From cehoyos at ag.or.at Mon Sep 10 10:10:23 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 10 Sep 2012 08:10:23 +0000 (UTC) Subject: [FFmpeg-user] Licensing: Modified FFmpeg with a call to an external library References: <1347253362600-4653305.post@n4.nabble.com> Message-ID: mvram modernvideo.co> writes: > I make a change in a FFmpeg source file and call a function from a > dynamically linked external library (libmyext). I configure FFmpeg > without "enable-gpl" and without "enable-nonfree". The only way > the modified code will be invoked is if FFmpeg is configured with > --enable-myext. I update my EULA as mentioned in the Checklist at > http://ffmpeg.org/legal.html and I make the source code for the > updated FFmpeg available on my website. > > Can I include FFmpeg in my product distribution? Make sure you follow all license terms of the LGPL or follow http://ffmpeg.org/legal.html (ianal, but you can link whatever you want against LGPL'd FFmpeg but you must not forbid reverse-engineering the result.) Carl Eugen From volodomanov at gmail.com Mon Sep 10 11:33:36 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Mon, 10 Sep 2012 19:33:36 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> Message-ID: <504DB3F0.50007@gmail.com> Hi Carl, On 10/09/2012 5:35 PM, Carl Eugen Hoyos wrote: > Command line and complete, uncut console output missing. (We are very > interested in such bug reports and while I appreciate it if you do the > bisecting, you may not have enough time to do it and I will probably > be faster.) A sample might be needed too. [...] I appreciate that and I'm sure you'll spot the problem much faster. I didn't provide the command-line as it seems to not change the end result (and I've tried lots of variations with audio on/off and various audio codecs, but always remuxing video). I can provide a sample, but I need to somehow cut the original file (it's over 4GBs). I can submit a formal bug report about this with the command-line and sample. What size (in MBs) should I cut it down to - is 50 MBs ok (the first problem spot comes at around 40 seconds, which is around 20 MBs remuxed)? Dennis From cehoyos at ag.or.at Mon Sep 10 11:45:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 10 Sep 2012 09:45:24 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > I didn't provide the command-line Command line and complete, uncut console output are needed for every report, both here and on the bug tracker. Only you can answer how big the needed sample is, the only important thing is that the problem has to be reproducible. Either post all necessary information here or read http://ffmpeg.org/bugreports.html (ignore the size limit). Carl Eugen From volodomanov at gmail.com Mon Sep 10 12:00:01 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Mon, 10 Sep 2012 20:00:01 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> Message-ID: <504DBA21.3080207@gmail.com> On 10/09/2012 7:45 PM, Carl Eugen Hoyos wrote: > Command line and complete, uncut console output are needed > for every report, both here and on the bug tracker. > > Only you can answer how big the needed sample is, the only > important thing is that the problem has to be reproducible. > > Either post all necessary information here or read > http://ffmpeg.org/bugreports.html (ignore the size limit). > Ok, I'll experiment with the sample size to make sure it's reproducible and upload/submit a bug report about this and then post back here. I was mostly asking about the sample size to make sure your ftp has space - heck, I can upload the whole file :) If there are no limits, that's fine, I'll find a small enough reproducible sample and upload that (probably no more than 50 MBs or so). Best regards, Dennis From volodomanov at gmail.com Mon Sep 10 13:21:34 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Mon, 10 Sep 2012 21:21:34 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> Message-ID: <504DCD3E.1020807@gmail.com> On 10/09/2012 7:45 PM, Carl Eugen Hoyos wrote: > Command line and complete, uncut console output are needed for every > report, both here and on the bug tracker. Only you can answer how big > the needed sample is, the only important thing is that the problem has > to be reproducible. Either post all necessary information here or read > http://ffmpeg.org/bugreports.html (ignore the size limit). Ok, I've submitted a bug report: https://ffmpeg.org/trac/ffmpeg/ticket/1724 and also now uploading a sample "remux_frozen_video_sample.mkv" to the ftp (it should be done in 6 minutes). Thanks, Dennis From smarrocco at ringsidecreative.com Mon Sep 10 14:37:31 2012 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Mon, 10 Sep 2012 08:37:31 -0400 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> Message-ID: <504DDF0B.6000400@ringsidecreative.com> On 9/8/2012 6:27 PM, Carl Eugen Hoyos wrote: > > Apart from the fact that this is hard to believe, I was unable to > find that claim in the original mail. > > Roger may be "intermingling" knowledge of a thread on ffmpeg zeranoe (http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=707&sid=3274fe1a5efcc0021653f967447f9057) and this thread but he is correct. It may be hard to believe but every quicktime that I have tried to convert in ffmpeg using yuv444p10le and prores or prores_kostya results in a prores quicktime that ffmpeg indentifies as 444 yet is identified as 422 by quicktime player. Carl is the first person to suggest that ffmpeg cannot create yuv444 (which helps the mystery a bit). Sam Marrocco Chief Technical Officer 248-548-2500 Main 248-910-3344 Cell "Just because no one understands you doesn't make you an artist." RINGSIDE CREATIVE | INTEGRATED MEDIA STUDIO? http://www.ringsidecreative.com Find us on Facebook. Please consider the environment before printing this email. From cehoyos at ag.or.at Mon Sep 10 18:17:34 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 10 Sep 2012 16:17:34 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> <504DDF0B.6000400@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > Carl is the first person to suggest that ffmpeg cannot > create yuv444 (which helps the mystery a bit). I tried very hard to suggest that FFmpeg is able to create yuv444 ProRes files. Please provide your failing prores_kostya command line together with complete, uncut console output. Carl Eugen From krueger at lesspain.de Mon Sep 10 19:07:26 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Mon, 10 Sep 2012 19:07:26 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> <504DDF0B.6000400@ringsidecreative.com> Message-ID: On Mon, Sep 10, 2012 at 6:17 PM, Carl Eugen Hoyos wrote: > Sam Marrocco ringsidecreative.com> writes: > >> Carl is the first person to suggest that ffmpeg cannot >> create yuv444 (which helps the mystery a bit). > > I tried very hard to suggest that FFmpeg is able to create > yuv444 ProRes files. > Please provide your failing prores_kostya command line > together with complete, uncut console output. > It does not set the correct fourcc. It should be ap4h but it is apcn (which is the fourcc for prores 422). Quicktime and other apple software (like Final Cut) more or less blindly trust the fourcc. I tried overriding it with -vtag but that didn't work either: ffmpeg -i /Users/krueger/sample-db/fcp7/prores/fcp7_prores_hq_1080 at 24p_2s-ProRes-4444.mov -vcodec prores_kostya -pix_fmt yuv444p10le -vtag ap4h -acodec copy -y prores4444-vtag.mov ffmpeg version N-43678-gceb8773 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 17 2012 22:28:27 with gcc 4.2.1 (GCC) (Apple Inc. build 5664) configuration: libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 53.100 / 54. 53.100 libavformat 54. 25.100 / 54. 25.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 10.100 / 3. 10.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/krueger/sample-db/fcp7/prores/fcp7_prores_hq_1080 at 24p_2s-ProRes-4444.mov': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2012-09-09 11:49:36 encoder : FFmbc 0.7 Duration: 00:00:02.00, start: 0.000000, bitrate: 104070 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 101756 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc Metadata: creation_time : 2012-09-09 11:49:36 handler_name : DataHandler timecode : 01:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s Metadata: creation_time : 2012-09-09 11:49:36 handler_name : DataHandler Codec 0x0 is not in the full list. Stream #0:2(eng): Data: unknown_codec (tmcd / 0x64636D74) Metadata: creation_time : 2012-09-09 11:49:36 handler_name : DataHandler timecode : 01:00:00:00 Output #0, mov, to 'prores4444-vtag.mov': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt encoder : Lavf54.25.100 Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv444p10le, 1920x1080, q=2-31, 200 kb/s, 24k tbn, 23.98 tbc Metadata: creation_time : 2012-09-09 11:49:36 handler_name : DataHandler timecode : 01:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, 2304 kb/s Metadata: creation_time : 2012-09-09 11:49:36 handler_name : DataHandler Stream mapping: Stream #0:0 -> #0:0 (prores -> prores_kostya) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 48 fps=2.4 q=0.0 Lsize= 18088kB time=00:00:02.00 bitrate=74015.7kbits/s video:17523kB audio:563kB subtitle:0 global headers:0kB muxing overhead 0.013850% From rogerdpack2 at gmail.com Mon Sep 10 20:40:29 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Sep 2012 12:40:29 -0600 Subject: [FFmpeg-user] help remuxing mp4 to matroska In-Reply-To: References: Message-ID: > I am studying the source to see how command-line ffmpeg makes things > happen. Informative. I'll be trying things based on that. I'm still > wondering if there is more direct support for transmuxing... Hopefully it works out for you. http://ffmpeg.org/trac/ffmpeg/wiki/Using%20libav* might be vaguely useful as well. From rogerdpack2 at gmail.com Mon Sep 10 20:42:08 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Sep 2012 12:42:08 -0600 Subject: [FFmpeg-user] how to video streaming on mms protocol? In-Reply-To: <1347100942575-4653293.post@n4.nabble.com> References: <1347100942575-4653293.post@n4.nabble.com> Message-ID: > I want to stream a video file on my lan and get the stream on mms protocol. > like mms://192.168.100.10:8080 > can anybody help me? I know it can handle mmsh ffmpeg -protocols | grep mms ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 mmsh mmst but I'm not sure what the difference is... If that helps any :) -roger- From rogerdpack2 at gmail.com Mon Sep 10 20:43:18 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Sep 2012 12:43:18 -0600 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> Message-ID: >> What is meant by the fps? Is it the (averaged) speed at which >> the frames are processed? > > No, not averaged but current. I thought fps was average? If now, how much of a window does it take into consideration do you know? -r From rogerdpack2 at gmail.com Mon Sep 10 20:48:34 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Sep 2012 12:48:34 -0600 Subject: [FFmpeg-user] Problem with libfdk-aac and VBR quality option "quality out of range" In-Reply-To: References: Message-ID: > first off, there are so many aac encoders (faac, visual on, fdk-aac, > builtin aac, ...). Does someone know where I can read more about the > features so I can choose which is the best for me? I attempted to list them once here: http://en.wikipedia.org/wiki/FAAC#FAAC_encoder From sheen.andy at googlemail.com Mon Sep 10 21:18:19 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 10 Sep 2012 20:18:19 +0100 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> Message-ID: <504E3CFB.8080608@googlemail.com> Roger Pack wrote on Mon Sep 10 2012 19:43:18 GMT+0100 (GMT Daylight Time) >>> What is meant by the fps? Is it the (averaged) speed at which >>> the frames are processed? >> No, not averaged but current. > I thought fps was average? If now, how much of a window does it take into > consideration do you know? Definitely averaged..... I often skip a few minutes of streams when recoding and the value slowly climbs - starting at 0. > -r Andy From rogerdpack2 at gmail.com Mon Sep 10 21:31:25 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Sep 2012 13:31:25 -0600 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E3CFB.8080608@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> Message-ID: > Definitely averaged..... I often skip a few minutes of streams when > recoding and the value slowly climbs - starting at 0. Actually I had a thought the other day that it would be nice to display both "recent" fps and "average" fps on the command line...I know I would benefit :) -roger- From cehoyos at ag.or.at Mon Sep 10 23:21:37 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 10 Sep 2012 21:21:37 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > On 10/09/2012 7:45 PM, Carl Eugen Hoyos wrote: > > Either post all necessary information here or read > > http://ffmpeg.org/bugreports.html (ignore the size limit). > > Ok, I've submitted a bug report: > https://ffmpeg.org/trac/ffmpeg/ticket/1724 It is missing the part where you explain how I can reproduce the problem, the remuxed file plays fine here. Or is this really a Bravia-only problem? In this case you will have to bisect yourself... (But I will help you with a configure line if you confirm that I cannot reproduce the problem.) Carl Eugen From cehoyos at ag.or.at Mon Sep 10 23:28:15 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 10 Sep 2012 21:28:15 +0000 (UTC) Subject: [FFmpeg-user] pkg-config --static ? References: Message-ID: Roger Pack gmail.com> writes: > I noticed that "by default" when I compile fontconfig as a static > library, then enable it in ffmpeg with --enable-fontconfig, [...] > it is running pkg-config like this: > > $ pkgconfig pkg-config --libs fontconfig > > which outputs: > > -L/home/rogerdpack/..../i686-w64-mingw32/lib -lfontconfig > > after consulting the fontconfig people, they suggest > this work around: > $ pkg-config --static --libs fontconfig It is absolutely possible that I completely misunderstand how pkg-config is supposed to work, but imo pkg-config --libs should allow you to link to the library no matter how you configured it (or in other words: the pkg-config file of fontconfig has to look differently depending on how you configured fontconfig). Carl Eugen From david.wagner123 at googlemail.com Tue Sep 11 00:37:53 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 00:37:53 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> Message-ID: <504E6BC1.9030603@googlemail.com> Am 09.09.2012 23:01, schrieb Carl Eugen Hoyos: > David Wagner googlemail.com> writes: > >> frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 >> bitrate= 55.0kbits/s >> bench: utime=8.781s maxrss=49488kB >> >> What is meant by the fps? Is it the (averaged) speed at which >> the frames are processed? > No, not averaged but current. > >> So 1065frames / 214fps = 4,97 s. Which is not equal utime >> = 8,7818s. >> Also I have seen that at the end time=00:00:35.46 is exactly >> the length of the encoded video. > That is correct and this should be very accurate. > >> Could someone please explain me the >> parameters? > If you mean frame, size and bitrate, I assumed they are > self-explanatory... > (I suspect bitrate is also current, not average, but I > did not test.) > utime is the time spent on CPU, maxrss should be > maximum memory footprint. > I couldn't find much information about theses parameters. Can you tell me is utime a good one for comparing codecs? What benefit do I have from knowing maximum memory footprint? It doesn't seem much informative. >> BTW exists there a mode for benchmarking the DEcoding process, >> so that I have some stats and won't need to play all the >> files in realtime? > I always use: > $ time ffmpeg -i input -f null - > Unfortunately I wanted to do the whole process on windows. So I don't have time. > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From david.wagner123 at googlemail.com Tue Sep 11 00:46:46 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 00:46:46 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E3CFB.8080608@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> Message-ID: <504E6DD6.7070206@googlemail.com> Am 10.09.2012 21:18, schrieb Andy Sheen: > Roger Pack wrote on Mon Sep 10 2012 19:43:18 GMT+0100 (GMT Daylight Time) >>>> What is meant by the fps? Is it the (averaged) speed at which >>>> the frames are processed? >>> No, not averaged but current. >> I thought fps was average? If now, how much of a window does it take into >> consideration do you know? > Definitely averaged..... I often skip a few minutes of streams when > recoding and the value slowly climbs - starting at 0. Can you tell me why this means that it is the average speed and not the real speed at which the frames are processed. I'm not sure if I understand the assumption in your example. >> -r > Andy > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Tue Sep 11 00:50:18 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Sep 2012 16:50:18 -0600 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E6DD6.7070206@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> <504E6DD6.7070206@googlemail.com> Message-ID: >> Definitely averaged..... I often skip a few minutes of streams when >> recoding and the value slowly climbs - starting at 0. > > Can you tell me why this means that it is the average speed and not the real > speed at which the frames are processed. I'm not sure if I understand the > assumption in your example. Imagine you're doing a screencast for 2 hours using ffmpeg. After 5 minutes, the fps cuts "in half" because of up-network traffic congestion. The ffmpeg console output wouldn't really let you know that you're now operating "at half speed" until much later. The other example is if cpu congestion occurs when you're half way through transcoding a file, you might not know about it for quite awhile (or if you're receiving from stdin and it blocks for a minute, then continues, your fps will be abnormally low). Those types of situations. -r From sheen.andy at googlemail.com Tue Sep 11 00:53:31 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 10 Sep 2012 23:53:31 +0100 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E6DD6.7070206@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> <504E6DD6.7070206@googlemail.com> Message-ID: <504E6F6B.3040604@googlemail.com> David Wagner wrote on Mon 10 Sep at 23:46 UK time > Am 10.09.2012 21:18, schrieb Andy Sheen: >> Roger Pack wrote on Mon Sep 10 2012 19:43:18 GMT+0100 (GMT Daylight Time) >>>>> What is meant by the fps? Is it the (averaged) speed at which >>>>> the frames are processed? >>>> No, not averaged but current. >>> I thought fps was average? If now, how much of a window does it take >>> into >>> consideration do you know? >> Definitely averaged..... I often skip a few minutes of streams when >> recoding and the value slowly climbs - starting at 0. > Can you tell me why this means that it is the average speed and not the > real speed at which the frames are processed. I'm not sure if I > understand the assumption in your example. If I skip 5 minutes of video at the start of an encode (with -ss 0:05:00) the processor is searching for the I frame closest to 5mins in. I think it does this by decoding the stream as fast as it can - lets say it takes 1 minute to reach there. During this 1 minute, the fps = 0, after 1 minute, the fps gradually climbs and heads asymptotically (with a little under/overshoot) to the final fps value. I.e. after it has encoded 10 secs of video, fps may be 4. After 10 minutes of encoding, it may have settled to 30fps. If it were measuring "current" encode rate, it would immediately jump to 30fps as soon as it starts encoding. I think the maths is simple number-encoded-frames/secs-since-start. That is, after all, the definition of fps for encode rate (you encode 100000 frames - it takes you 10000 secs, fps = 10). >>> -r >> Andy >> >> _______________________________________________ >> 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 david.wagner123 at googlemail.com Tue Sep 11 01:25:22 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 01:25:22 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> <504E6DD6.7070206@googlemail.com> Message-ID: <504E76E2.8080504@googlemail.com> Am 11.09.2012 00:50, schrieb Roger Pack: >>> Definitely averaged..... I often skip a few minutes of streams when >>> recoding and the value slowly climbs - starting at 0. >> Can you tell me why this means that it is the average speed and not the real >> speed at which the frames are processed. I'm not sure if I understand the >> assumption in your example. > Imagine you're doing a screencast for 2 hours using ffmpeg. After 5 > minutes, the fps cuts "in half" because of up-network traffic > congestion. The ffmpeg console output wouldn't really let you know > that you're now operating "at half speed" until much later. The other > example is if cpu congestion occurs when you're half way through > transcoding a file, you might not know about it for quite awhile (or > if you're receiving from stdin and it blocks for a minute, then > continues, your fps will be abnormally low). Those types of > situations. > -r ok, if you have the drop with a delay then I would agree. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From volodomanov at gmail.com Tue Sep 11 01:30:54 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Tue, 11 Sep 2012 09:30:54 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> Message-ID: <504E782E.6040508@gmail.com> On 11/09/2012 7:21 AM, Carl Eugen Hoyos wrote: > It is missing the part where you explain how I can reproduce > the problem, the remuxed file plays fine here. > Or is this really a Bravia-only problem? > In this case you will have to bisect yourself... > (But I will help you with a configure line if you confirm > that I cannot reproduce the problem.) > Well, VLC does play it fine, so it may be related to hardware-based player which are obviously a bit more limited and perhaps strict. If you can give any further hints on doing the bisect, I'm happy to spend a few hours on it. What about the configure line - should I enable debugging to get more information? What I need to do is set up two new folders from git - one for the version I know works and another for a version 2 weeks in advance (as I believe that's roughly the time-frame when it broke) - I don't know how to do that. I can then do bisect on that and see what I can come up with. I've got a reproducible environment here, so it may be easier for me after all. Thanks, Dennis From david.wagner123 at googlemail.com Tue Sep 11 01:41:06 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 01:41:06 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E6F6B.3040604@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> <504E6DD6.7070206@googlemail.com> <504E6F6B.3040604@googlemail.com> Message-ID: <504E7A92.5030308@googlemail.com> Am 11.09.2012 00:53, schrieb Andy Sheen: > > David Wagner wrote on Mon 10 Sep at 23:46 UK time >> Am 10.09.2012 21:18, schrieb Andy Sheen: >>> Roger Pack wrote on Mon Sep 10 2012 19:43:18 GMT+0100 (GMT Daylight Time) >>>>>> What is meant by the fps? Is it the (averaged) speed at which >>>>>> the frames are processed? >>>>> No, not averaged but current. >>>> I thought fps was average? If now, how much of a window does it take >>>> into >>>> consideration do you know? >>> Definitely averaged..... I often skip a few minutes of streams when >>> recoding and the value slowly climbs - starting at 0. >> Can you tell me why this means that it is the average speed and not the >> real speed at which the frames are processed. I'm not sure if I >> understand the assumption in your example. > If I skip 5 minutes of video at the start of an encode (with -ss > 0:05:00) the processor is searching for the I frame closest to 5mins in. > I think it does this by decoding the stream as fast as it can - lets say > it takes 1 minute to reach there. > > During this 1 minute, the fps = 0, after 1 minute, the fps gradually > climbs and heads asymptotically (with a little under/overshoot) to the > final fps value. I.e. after it has encoded 10 secs of video, fps may be > 4. After 10 minutes of encoding, it may have settled to 30fps. > > If it were measuring "current" encode rate, it would immediately jump to > 30fps as soon as it starts encoding. Ok, now I don't know what current encode rate could be? The momentary output? In the beginning I have some lines like that. frame= 113 fps=0.0 q=39.0 size= 40kB time=00:00:02.13 bitrate= 154.1kbits/s Is this 0 because also 0 seconds have passed? And the calculation in the first second would be 113/0 ? > I think the maths is simple number-encoded-frames/secs-since-start. That > is, after all, the definition of fps for encode rate (you encode 100000 > frames - it takes you 10000 secs, fps = 10). > >>>> -r >>> Andy >>> >>> _______________________________________________ >>> 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 david.wagner123 at googlemail.com Tue Sep 11 02:05:59 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 02:05:59 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> Message-ID: <504E8067.1060202@googlemail.com> > >> BTW exists there a mode for benchmarking the DEcoding process, >> so that I have some stats and won't need to play all the >> files in realtime? > I always use: > $ time ffmpeg -i input -f null - > Is this a valuable method? The first time I do this the process last about 3 seconds and I get u time=0.062s and maxrss=8740. The second, third,fourth..... time I repeat the encode it doesn't even needs a second to encode but I get values similar values like in the first round and maxrss is the same, only very small differences. So I changed the name of my input file. Then again one run 3 seconds and the next again very fast.... So it seems that the video is in the memory after the first run. For comparing I would need to do a first run with the input video and then gather the times. But I don't know if with this speed you can measure exact enough for comparison. And I'm searching especially something for decoding. Is there an option for only measuring the decoding performance? > Carl Eugen > From sheen.andy at googlemail.com Tue Sep 11 02:03:25 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 11 Sep 2012 01:03:25 +0100 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E7A92.5030308@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> <504E6DD6.7070206@googlemail.com> <504E6F6B.3040604@googlemail.com> <504E7A92.5030308@googlemail.com> Message-ID: <504E7FCD.9070203@googlemail.com> David Wagner wrote on Tue 11 Sep at 0:41 UK time > > In the beginning I have some lines like that. > > frame= 113 fps=0.0 q=39.0 size= 40kB time=00:00:02.13 bitrate= > 154.1kbits/s What is the full command line you have here? That tells me the following information: frame = 113. ffmpeg has encoded 113 frames. fps=0.0. You don't look like you are encoding video at the moment- this is confusing. q=39. A measure of quality. I'm never sure what that means to be honest size= The size of the encoded video data so far. time= how long the encoded data is if you'd play it back bitrate= average encoded bitrate (size/time). The reports here are entirely consistent - but yours don't look it. If I'm not encoding fps=0, as soon as I start actual encoding (as opposed to searching) fps starts to increase. >>>> _______________________________________________ >>>> 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 sheen.andy at googlemail.com Tue Sep 11 02:08:54 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 11 Sep 2012 01:08:54 +0100 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E8067.1060202@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> Message-ID: <504E8116.6080309@googlemail.com> David Wagner wrote on Tue 11 Sep at 1:05 UK time > And I'm searching especially something for decoding. Is there an option > for only measuring the decoding performance? > It is unlikely to provide anything directly. ffmpeg is a transcoder, it isn't a player. It also depends what you mean by "measuring the decode performance" (actual CPU used, elapsed time...). You could probably estimate decode performance by using -ss to skip to the end of the file. As far as I know, ffmpeg skips by actually decoding the video, so skipping to the end of the file means the program has to decode the whole file. From david.wagner123 at googlemail.com Tue Sep 11 04:28:31 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 04:28:31 +0200 Subject: [FFmpeg-user] VP8 where is the variable Bitrate mode? Message-ID: <504EA1CF.6080303@googlemail.com> Hi, I'm searching for variable bitrate mode when using libvpx with ffmpeg. Only found qscale <1 - 31> but it makes no difference which value I use. It seems always to use 200kb/s. Is there any vbr mode? Regards, David From david.wagner123 at googlemail.com Tue Sep 11 05:00:37 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 05:00:37 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E7FCD.9070203@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E3CFB.8080608@googlemail.com> <504E6DD6.7070206@googlemail.com> <504E6F6B.3040604@googlemail.com> <504E7A92.5030308@googlemail.com> <504E7FCD.9070203@googlemail.com> Message-ID: <504EA955.3@googlemail.com> Am 11.09.2012 02:03, schrieb Andy Sheen: > > David Wagner wrote on Tue 11 Sep at 0:41 UK time >> In the beginning I have some lines like that. >> >> frame= 113 fps=0.0 q=39.0 size= 40kB time=00:00:02.13 bitrate= >> 154.1kbits/s > What is the full command line you have here? > ffmpeg -benchmark -report -i original.avi -c:v libx264 -b 150k -preset medium transcoded.avi you will find a logfile like ffmpeg-20120911-045600.log > That tells me the following information: > > frame = 113. ffmpeg has encoded 113 frames. > fps=0.0. You don't look like you are encoding video at the moment- this > is confusing. > q=39. A measure of quality. I'm never sure what that means to be honest > size= The size of the encoded video data so far. > time= how long the encoded data is if you'd play it back > bitrate= average encoded bitrate (size/time). > > The reports here are entirely consistent - but yours don't look it. If > I'm not encoding fps=0, as soon as I start actual encoding (as opposed > to searching) fps starts to increase. > From david.wagner123 at googlemail.com Tue Sep 11 06:47:02 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 06:47:02 +0200 Subject: [FFmpeg-user] VP8 where is the variable Bitrate mode? In-Reply-To: <504EA1CF.6080303@googlemail.com> References: <504EA1CF.6080303@googlemail.com> Message-ID: <504EC246.1050508@googlemail.com> > Hi, > > I'm searching for variable bitrate mode when using libvpx with ffmpeg. > Only found qscale <1 - 31> but it makes no difference which value I > use. It seems always to use 200kb/s. Is there any vbr mode? > > Regards, > David I don't get it working properly.... I use this command : ffmpeg.exe -i "C:\original.avi -c:v libvpx -quality good -crf 50 -qmin 2 -qmax 63 -v:b 200 "C:\coded.webm" It sets the bitrate all the time to 200... Also if I change in my commnad line the crf to something lesser than 4 I get error that crf has to be smaller than qmin. This some of the output I get in the beginning of the encoding process: [libvpx @ 024afc00] rate control settings rc_dropframe_thresh: 0 rc_resize_allowed: 0 rc_resize_up_thresh: 60 rc_resize_down_thresh: 30 rc_end_usage: 2 rc_twopass_stats_in: 00000000(0) rc_target_bitrate: 200 [libvpx @ 024afc00] quantizer settings rc_min_quantizer: 4 rc_max_quantizer: 63 Can some one please provide me with some working VBR command line in which I can set the quality? Thank you, David From cehoyos at ag.or.at Tue Sep 11 08:38:50 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 06:38:50 +0000 (UTC) Subject: [FFmpeg-user] VP8 where is the variable Bitrate mode? References: <504EA1CF.6080303@googlemail.com> <504EC246.1050508@googlemail.com> Message-ID: David Wagner googlemail.com> writes: > I don't get it working properly.... I use this command : > ffmpeg.exe -i "C:\original.avi -c:v libvpx -quality good > -crf 50 -qmin 2 -qmax 63 -v:b 200 "C:\coded.webm" > It sets the bitrate all the time to 200... This is expected behaviour since you explicitly tell ffmpeg to encode with a video bitrate of 200 For your next report, please do not forget to paste complete, uncut console output. Carl Eugen From mahdi87_gh at yahoo.com Tue Sep 11 05:16:42 2012 From: mahdi87_gh at yahoo.com (mahdi87_gh) Date: Mon, 10 Sep 2012 20:16:42 -0700 (PDT) Subject: [FFmpeg-user] how to video streaming on mms protocol? In-Reply-To: References: <1347100942575-4653293.post@n4.nabble.com> Message-ID: <1347333402591-4653335.post@n4.nabble.com> thanks Roger. could you help me with an example? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-video-streaming-on-mms-protocol-tp4653293p4653335.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Tue Sep 11 08:44:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 06:44:24 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > If you can give any further hints on doing the bisect, > I'm happy to spend a few hours on it. The first step is to sanitize your command line. Does the following allow to reproduce your problem (ie does it still work with the older FFmpeg version and succeed with the newer one)? $ ffmpeg -i remux_frozen_video_sample.mkv -vcodec copy -ab 640k -acodec ac3 out.mts Carl Eugen From david.wagner123 at googlemail.com Tue Sep 11 08:55:02 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 08:55:02 +0200 Subject: [FFmpeg-user] VP8 where is the variable Bitrate mode? In-Reply-To: References: <504EA1CF.6080303@googlemail.com> <504EC246.1050508@googlemail.com> Message-ID: <504EE046.6020109@googlemail.com> Am 11.09.2012 08:38, schrieb Carl Eugen Hoyos: > David Wagner googlemail.com> writes: > >> I don't get it working properly.... I use this command : >> ffmpeg.exe -i "C:\original.avi -c:v libvpx -quality good >> -crf 50 -qmin 2 -qmax 63 -v:b 200 "C:\coded.webm" >> It sets the bitrate all the time to 200... > This is expected behaviour since you explicitly tell ffmpeg > to encode with a video bitrate of 200 > > For your next report, please do not forget to paste complete, > uncut console output. > > Carl Eugen > Sorry, I wasn't paying attention and made this mistake. I changed the number before sending it. The mistake was that I used 'v:b' and not 'vb'. The console ouput was huge, but it encoded and used the generic setting for the bitrate. But whart I could not change was that I could set my 'crf' lower than the generic minimum quantizer which is 4. But I don't mind anymore. It's ok if I can set the 'crf' and the bitrate. David From 286166657 at qq.com Tue Sep 11 09:05:14 2012 From: 286166657 at qq.com (=?ISO-8859-1?B?TXl0aA==?=) Date: Tue, 11 Sep 2012 15:05:14 +0800 Subject: [FFmpeg-user] How to Use FFmpeg Decode Libraries Message-ID: Hi All, I want to use FFmpeg decode libraries to decode an h.264 video stream. I found the libavcodec/api-example.c is a test example can decode MPEG1VIDEO format video streams. Now I use CODEC_ID_H264 instead of CODEC_ID_MPEG1VIDEO and build it, then add an argument (h.264 encode video stream) when ran the test case, there an error occurs. Below is the error log: #Video decoding #[h264 @ 0x8937020]error while decoding MB 14 7, bytestream (-23) #[h264 @ 0x8937020]concealing 955 DC, 955 AC, 955 MV errors #[h264 @ 0x8937020]no frame! #Error while decoding frame 0 Who can help me to resolve this issue? Any feedback is appreciated. Regards, Xin From volodomanov at gmail.com Tue Sep 11 09:05:42 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Tue, 11 Sep 2012 17:05:42 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> Message-ID: <504EE2C6.3060800@gmail.com> On 11/09/2012 4:44 PM, Carl Eugen Hoyos wrote: > The first step is to sanitize your command line. > Does the following allow to reproduce your problem > (ie does it still work with the older FFmpeg version > and succeed with the newer one)? > $ ffmpeg -i remux_frozen_video_sample.mkv -vcodec copy > -ab 640k -acodec ac3 out.mts > Yes, same behaviour. Actually, I can't convert without the h264_mp4toannexb filter as FFmpeg doesn't let me, but the rest of the command line is as you've asked for. Furthermore, I can replace "-ab 640k -acodec ac3" with "-an" and it still breaks in the same way, if that makes things easier. So, just "ffmpeg -i remux_frozen_video_sample.mkv -vcodec copy -bsf h264_mp4toannexb -an out.mts". Dennis From francois.visagie at gmail.com Tue Sep 11 09:38:50 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 11 Sep 2012 09:38:50 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504E6BC1.9030603@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E6BC1.9030603@googlemail.com> Message-ID: <008101cd8ff0$80287330$80795990$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of David Wagner > Sent: 11 September 2012 00:38 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Benchmarking with ffmpeg - What are the > parameters meaning? > > Am 09.09.2012 23:01, schrieb Carl Eugen Hoyos: > > David Wagner googlemail.com> writes: > > > >> frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 > >> bitrate= 55.0kbits/s > >> bench: utime=8.781s maxrss=49488kB > >> > >> What is meant by the fps? Is it the (averaged) speed at which the > >> frames are processed? > > No, not averaged but current. > > > >> So 1065frames / 214fps = 4,97 s. Which is not equal utime = 8,7818s. > >> Also I have seen that at the end time=00:00:35.46 is exactly the > >> length of the encoded video. > > That is correct and this should be very accurate. > > > >> Could someone please explain me the > >> parameters? > > If you mean frame, size and bitrate, I assumed they are > > self-explanatory... > > (I suspect bitrate is also current, not average, but I > > did not test.) > > utime is the time spent on CPU, maxrss should be > > maximum memory footprint. > > > I couldn't find much information about theses parameters. Can you tell > me is utime a good one for comparing codecs? > What benefit do I have from knowing maximum memory footprint? It > doesn't > seem much informative. > >> BTW exists there a mode for benchmarking the DEcoding process, > >> so that I have some stats and won't need to play all the > >> files in realtime? > > I always use: > > $ time ffmpeg -i input -f null - > > > Unfortunately I wanted to do the whole process on windows. So I don't > have time. It isn't quite clear to me exactly what time lapse you want to measure. If it's for the whole ffmpeg pass from start to finish, I use the below on Windows. %INPUT% and %OUTPUT% are set to the input and output filenames respectively. %PASS% is obviously set to the pass. My script actually uses a single command line for both passes, appropriately adjusted for each. So the first time execution passes through here %PASS% is set to 1 and the 2nd time to 2. Hopefully this is of some help. echo Start %INPUT% >%OUTPUT%.time.txt echo Start pass %PASS% >>%OUTPUT%.time.txt echo. | date | find /v "Enter the new date: (yy-mm-dd)" >>%OUTPUT%.time.txt echo. | time | find /v "Enter the new time:" >>%OUTPUT%.time.txt ffmpeg ... -pass %PASS% ... echo End pass %PASS% >>%OUTPUT%.time.txt echo. | date | find /v "Enter the new date: (yy-mm-dd)" >>%OUTPUT%.time.txt echo. | time | find /v "Enter the new time:" >>%OUTPUT%.time.txt > > 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 cehoyos at ag.or.at Tue Sep 11 09:54:50 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 07:54:50 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > So, just "ffmpeg -i remux_frozen_video_sample.mkv -vcodec copy > -bsf h264_mp4toannexb -an out.mts". Sorry for the mistake. To speed this up, I did the bisect;-) Could you confirm that 2107009 (git checkout 2107009) works fine and that 3e1cf49 is failing? Carl Eugen From krueger at lesspain.de Tue Sep 11 10:04:07 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 11 Sep 2012 10:04:07 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> <504DDF0B.6000400@ringsidecreative.com> Message-ID: On Mon, Sep 10, 2012 at 7:07 PM, Robert Kr?ger wrote: > On Mon, Sep 10, 2012 at 6:17 PM, Carl Eugen Hoyos wrote: >> Sam Marrocco ringsidecreative.com> writes: >> >>> Carl is the first person to suggest that ffmpeg cannot >>> create yuv444 (which helps the mystery a bit). >> >> I tried very hard to suggest that FFmpeg is able to create >> yuv444 ProRes files. >> Please provide your failing prores_kostya command line >> together with complete, uncut console output. >> > > It does not set the correct fourcc. It should be ap4h but it is apcn > (which is the fourcc for prores 422). Quicktime and other apple > software (like Final Cut) more or less blindly trust the fourcc. I > tried overriding it with -vtag but that didn't work either: > looking at the code, it looks as if Prores 4444 is not modeled as a profile at all (see variable prores_profile_info), so it never sets the correct fourcc. From francois.visagie at gmail.com Tue Sep 11 10:03:56 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 11 Sep 2012 10:03:56 +0200 Subject: [FFmpeg-user] Problem with libfdk-aac and VBR quality option "quality out of range" In-Reply-To: References: Message-ID: <009c01cd8ff4$01eaa700$05bff500$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Roger Pack > Sent: 10 September 2012 20:49 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Problem with libfdk-aac and VBR quality option > "quality out of range" > > > first off, there are so many aac encoders (faac, visual on, fdk-aac, > > builtin aac, ...). Does someone know where I can read more about the > > features so I can choose which is the best for me? > > I attempted to list them once here: > http://en.wikipedia.org/wiki/FAAC#FAAC_encoder " The third is FFmpeg's native AAC encoder (considered experimental by the developers as of December 2012)" In case that's a typo, I just thought you'd like to know. Cheers, Francois > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From wkevils at gmail.com Tue Sep 11 12:25:21 2012 From: wkevils at gmail.com (Kevin Wilson) Date: Tue, 11 Sep 2012 13:25:21 +0300 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg Message-ID: Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video) Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ? (Second question: given some avi file, is there a way I can know whether it is in HD or not ?) Regards, Kevin From h.reindl at thelounge.net Tue Sep 11 12:38:28 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 11 Sep 2012 12:38:28 +0200 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: References: Message-ID: <504F14A4.7090806@thelounge.net> Am 11.09.2012 12:25, schrieb Kevin Wilson: > Hi, > I have downloaded from the web a video file with webm extension: > ubunutuArm.webm (some lecture in video) > > Now, I converted it to avi thus: > ffmpeg -i ubunutuArm.webm ubunutuArm.avi > > and put the ubunutuArm.avi on disk On Key. > When trying to view it on TV with a DVD I see this > messsage: > "HD is not supported". > Indeed, HD is not supported in my DVD and TV. > Is there a way I can convert this video file with ffmpeg > to an AVI so the result will be non HD ? change width/height and bitrate you did not set ANY parameter -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature URL: From david.wagner123 at googlemail.com Tue Sep 11 12:48:26 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 12:48:26 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <008101cd8ff0$80287330$80795990$@gmail.com> References: <504C23C7.4080405@googlemail.com> <504E6BC1.9030603@googlemail.com> <008101cd8ff0$80287330$80795990$@gmail.com> Message-ID: <504F16FA.8090508@googlemail.com> Am 11.09.2012 09:38, schrieb Francois Visagie: >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of David Wagner >> Sent: 11 September 2012 00:38 >> To: FFmpeg user questions >> Subject: Re: [FFmpeg-user] Benchmarking with ffmpeg - What are the >> parameters meaning? >> >> Am 09.09.2012 23:01, schrieb Carl Eugen Hoyos: >>> David Wagner googlemail.com> writes: >>> >>>> frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 >>>> bitrate= 55.0kbits/s >>>> bench: utime=8.781s maxrss=49488kB >>>> >>>> What is meant by the fps? Is it the (averaged) speed at which the >>>> frames are processed? >>> No, not averaged but current. >>> >>>> So 1065frames / 214fps = 4,97 s. Which is not equal utime = 8,7818s. >>>> Also I have seen that at the end time=00:00:35.46 is exactly the >>>> length of the encoded video. >>> That is correct and this should be very accurate. >>> >>>> Could someone please explain me the >>>> parameters? >>> If you mean frame, size and bitrate, I assumed they are >>> self-explanatory... >>> (I suspect bitrate is also current, not average, but I >>> did not test.) >>> utime is the time spent on CPU, maxrss should be >>> maximum memory footprint. >>> >> I couldn't find much information about theses parameters. Can you tell >> me is utime a good one for comparing codecs? >> What benefit do I have from knowing maximum memory footprint? It >> doesn't >> seem much informative. >>>> BTW exists there a mode for benchmarking the DEcoding process, >>>> so that I have some stats and won't need to play all the >>>> files in realtime? >>> I always use: >>> $ time ffmpeg -i input -f null - >>> >> Unfortunately I wanted to do the whole process on windows. So I don't >> have time. > It isn't quite clear to me exactly what time lapse you want to measure. If > it's for the whole ffmpeg pass from start to finish, I use the below on > Windows. %INPUT% and %OUTPUT% are set to the input and output filenames > respectively. %PASS% is obviously set to the pass. My script actually uses a > single command line for both passes, appropriately adjusted for each. So the > first time execution passes through here %PASS% is set to 1 and the 2nd time > to 2. > > Hopefully this is of some help. > > echo Start %INPUT%>%OUTPUT%.time.txt > > echo Start pass %PASS%>>%OUTPUT%.time.txt > echo. | date | find /v "Enter the new date: (yy-mm-dd)">>%OUTPUT%.time.txt > echo. | time | find /v "Enter the new time:">>%OUTPUT%.time.txt > > ffmpeg ... -pass %PASS% ... > > echo End pass %PASS%>>%OUTPUT%.time.txt > echo. | date | find /v "Enter the new date: (yy-mm-dd)">>%OUTPUT%.time.txt > echo. | time | find /v "Enter the new time:">>%OUTPUT%.time.txt > Thank you for your script. Can you tell me how I can start it with arguments. I don't know the syntax. I tried to give it arguments but it doesn't takes them. How can I set e.g. %OUTPUT% from command line? And what means 'Start pass' (not %Pass%)? I tried it with replacing with setting the variables in the script..... and it shows me time, but only hh:mm:ss. David >>> 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 wkevils at gmail.com Tue Sep 11 12:55:11 2012 From: wkevils at gmail.com (Kevin Wilson) Date: Tue, 11 Sep 2012 13:55:11 +0300 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: <504F14A4.7090806@thelounge.net> References: <504F14A4.7090806@thelounge.net> Message-ID: Reindl, Thanks a lot for you quick response! > change width/height and bitrate excuse me my ignorance: which width/height and bitrate are needed for non HD ? regards, Kevin On Tue, Sep 11, 2012 at 1:38 PM, Reindl Harald wrote: > > > Am 11.09.2012 12:25, schrieb Kevin Wilson: >> Hi, >> I have downloaded from the web a video file with webm extension: >> ubunutuArm.webm (some lecture in video) >> >> Now, I converted it to avi thus: >> ffmpeg -i ubunutuArm.webm ubunutuArm.avi >> >> and put the ubunutuArm.avi on disk On Key. >> When trying to view it on TV with a DVD I see this >> messsage: >> "HD is not supported". >> Indeed, HD is not supported in my DVD and TV. >> Is there a way I can convert this video file with ffmpeg >> to an AVI so the result will be non HD ? > > change width/height and bitrate > you did not set ANY parameter > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From david.wagner123 at googlemail.com Tue Sep 11 14:08:28 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 14:08:28 +0200 Subject: [FFmpeg-user] XvidExpert needed for "transcoding" xml into ffmpeg parameters Message-ID: <504F29BC.2040906@googlemail.com> Hey, I have this xml and need it convertet into parameter for ffmpeg. But how in the hell shall I find all the right commands in ffmpeg? I don't have the time and the knowledge to for doing that. Is there anyone who really knows the parameter conversion. I tried some GUIs but they all produced nothing of worth. David XviD_Default 3 700 300 2 3 5 false false false true 12 XVID DIVX DX50 MP4V .stats 0 2 1 6 1 2 1 31 1 31 150 100 10 1 20 5 5 5 0 0 16 100 0 0 0 0 0 false false false false false true true false false true false false 0 auto From francois.visagie at gmail.com Tue Sep 11 14:13:50 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 11 Sep 2012 14:13:50 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <504F16FA.8090508@googlemail.com> References: <504C23C7.4080405@googlemail.com> <504E6BC1.9030603@googlemail.com> <008101cd8ff0$80287330$80795990$@gmail.com> <504F16FA.8090508@googlemail.com> Message-ID: <010b01cd9016$ee2e3ba0$ca8ab2e0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of David Wagner > Sent: 11 September 2012 12:48 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Benchmarking with ffmpeg - What are the > parameters meaning? > > Am 11.09.2012 09:38, schrieb Francois Visagie: > >> -----Original Message----- > >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >> bounces at ffmpeg.org] On Behalf Of David Wagner > >> Sent: 11 September 2012 00:38 > >> To: FFmpeg user questions > >> Subject: Re: [FFmpeg-user] Benchmarking with ffmpeg - What are the > >> parameters meaning? > >> > >> Am 09.09.2012 23:01, schrieb Carl Eugen Hoyos: > >>> David Wagner googlemail.com> writes: > >>> > >>>> frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 > >>>> bitrate= 55.0kbits/s > >>>> bench: utime=8.781s maxrss=49488kB > >>>> > >>>> What is meant by the fps? Is it the (averaged) speed at which the > >>>> frames are processed? > >>> No, not averaged but current. > >>> > >>>> So 1065frames / 214fps = 4,97 s. Which is not equal utime = 8,7818s. > >>>> Also I have seen that at the end time=00:00:35.46 is exactly the > >>>> length of the encoded video. > >>> That is correct and this should be very accurate. > >>> > >>>> Could someone please explain me the parameters? > >>> If you mean frame, size and bitrate, I assumed they are > >>> self-explanatory... > >>> (I suspect bitrate is also current, not average, but I did not > >>> test.) utime is the time spent on CPU, maxrss should be maximum > >>> memory footprint. > >>> > >> I couldn't find much information about theses parameters. Can you > >> tell me is utime a good one for comparing codecs? > >> What benefit do I have from knowing maximum memory footprint? It > >> doesn't seem much informative. > >>>> BTW exists there a mode for benchmarking the DEcoding process, so > >>>> that I have some stats and won't need to play all the files in > >>>> realtime? > >>> I always use: > >>> $ time ffmpeg -i input -f null - > >>> > >> Unfortunately I wanted to do the whole process on windows. So I don't > >> have time. > > It isn't quite clear to me exactly what time lapse you want to > > measure. If it's for the whole ffmpeg pass from start to finish, I use > > the below on Windows. %INPUT% and %OUTPUT% are set to the input and > > output filenames respectively. %PASS% is obviously set to the pass. My > > script actually uses a single command line for both passes, > > appropriately adjusted for each. So the first time execution passes > > through here %PASS% is set to 1 and the 2nd time to 2. > > > > Hopefully this is of some help. > > > > echo Start %INPUT%>%OUTPUT%.time.txt > > > > echo Start pass %PASS%>>%OUTPUT%.time.txt echo. | date | find /v > > "Enter the new date: (yy-mm-dd)">>%OUTPUT%.time.txt echo. | time | > > find /v "Enter the new time:">>%OUTPUT%.time.txt > > > > ffmpeg ... -pass %PASS% ... > > > > echo End pass %PASS%>>%OUTPUT%.time.txt echo. | date | find /v "Enter > > the new date: (yy-mm-dd)">>%OUTPUT%.time.txt echo. | time | find /v > > "Enter the new time:">>%OUTPUT%.time.txt > > > > Thank you for your script. Can you tell me how I can start it with arguments. I > don't know the syntax. I tried to give it arguments but it doesn't takes them. > How can I set e.g. %OUTPUT% from command line? My hard-coded DVD MPEG-2 script (called ffmpegencode.bat) is called with parameters on the command line e.g.: ffmpegencode input.avi 6090000 input.ass where in this case input.avi is the input file, 6090000 is the requested bitrate and input.ass is a subtitle file. Command line parameters in Windows and DOS are identified inside the script as %1, %2 etc. Up to a maximum of 10 I think, then you have to use the 'shift' command. The script sets other values such as %OUTPUT% internally. Here is the full script (ffmpeg command not yet updated for presets etc.). Hopefully this will give you some idea of how the script uses command line parameters as well as the time-stamping commands. This may not work as is for you esp. when specifying subtitles, in which case the script uses Avisynth to inlay them. If you set the external environment variable FFMPDBUG to 'echo' before calling the script, i.e. set FFMPDBUG=echo the script prints what it would have done and exits. --- @echo off setlocal goto INIT :HELP echo. echo ffmpegencode v1.6 (c) F. Visagie 2012/08/24 echo Function: encode PAL DV to DVD-compliant MPEG-2 echo. echo Usage: echo ffmpegencode "infile" [bitrate ["subsfile"]] [pass]]] echo. echo where: echo "infile" video file to encode echo bitrate set video bitrate in bits/s (default %BITRATE%, max %MAXRATE%) echo "subsfile" ASS text script with inlay subtitles echo pass nothing for uninterrupted 2-pass encoding echo 1 for pass 1 only echo 2 for pass 2 only echo. echo All value parameters accept 0 to indicate default/none echo To ensure correct processing, double-quote space-separated filenames echo Encoded output file is named infile%SUFFIX% echo. echo To display commands instead of executing for debugging purposes, echo set external environment variable FFMPDBUG=echo, otherwise EMPTY goto ERRPAUSE rem Version History rem v1.1 2009/05/20: added separate pass 1/2 support rem v1.2 2009/05/20: removed Avisynth input for r19192 & later rem v1.3 2009/09/04: restored Avisynth input for subtitle inlays rem v1.4 2010/04/27: explicitly require quoted filenames, esp. for adding subtitles rem v1.5 2012/08/14: updated for ffmpeg version N-43418-g633b90c rem added bitrate parameter rem added copyright tag rem added DEBUG flag rem v1.6 2012/08/24: changed DEBUG flag to external environment variable FFMPDBUG rem removed built-in denoising :INIT rem Default encode settings rem ----------------------- rem Production bitrates set BITRATE=6090000 set MAXRATE=9000000 set MUXRATE=10080000 rem Bitrates for testing rem Following bitrate causes buffer underflow and MuxMan P-STD buffer underflow (with -maxrate 9800000) rem set BITRATE=9000000 rem set MAXRATE=9800000 rem Following muxrate leaves enough room for audio and triggers buffer underflow for illegal video rem set MUXRATE=9928000 set PSNR= rem set PSNR=-psnr set SUFFIX=.mpg set METADATA=-metadata copyright="Encode (c) Francois Visagie francois.visagie at gmail.com" set INPUT= set PASSOPT= set SUBSFILE= REM Parse input file if [%1] == [] goto HELP if [%1] == [?] goto HELP if [%1] == [-?] goto HELP if [%1] == [/?] goto HELP if [%1] == [h] goto HELP if [%1] == [-h] goto HELP if [%1] == [/h] goto HELP if [%1] == [help] goto HELP if [%1] == [-help] goto HELP if [%1] == [/help] goto HELP rem Preserve input filename set INPUT=%1 if exist %1. goto QUOTIN echo. echo Invalid input file %1! echo HINT: If it contains spaces, enclose input filename in quotes :ERRPAUSE echo echo. pause goto EXIT :QUOTIN rem Ensure input file name quoted echo %INPUT% | find """" > NUL if not errorlevel 1 goto CHKBIT set INPUT="%INPUT%" :CHKBIT if [%2] == [] goto CHKOUT if [%2] == [0] goto CHKSUBS set BITRATE=%2 :CHKSUBS if [%3] == [] goto CHKOUT if [%3] == [0] goto CHKPASS if exist %3. goto QUOTSUBS echo. echo Invalid subtitle file %3! echo HINT: If it contains spaces, enclose subtitle filename in quotes goto ERRPAUSE :QUOTSUBS rem Ensure subtitle file name quoted set SUBSFILE=%3 echo %SUBSFILE% | find """" > NUL if not errorlevel 1 goto CHKPASS set SUBSFILE="%SUBSFILE%" :CHKPASS if [%4] == [] goto CHKOUT if [%4] == [1] goto SETPASS1 if [%4] == [2] goto SETPASS2 echo. echo Invalid pass number %4! goto ERRPAUSE :SETPASS1 set PASSOPT=1 goto CHKOUT :SETPASS2 set PASSOPT=2 :CHKOUT rem Now we're committed and may over-write output file set OUTPUT=%INPUT%%SUFFIX% if not exist %OUTPUT%. goto MAIN echo echo. echo %OUTPUT% already exists! echo Press Ctrl-C to abort, else echo. pause goto MAIN :MISSFILE set MISSMESG=Missing pass 1 file (ffmpeg2pass-?.log if not [%SUBSFILE%] == [] set MISSMESG=%MISSMESG% or %AVSCRIPT% set MISSMESG=%MISSMESG%)! echo. echo %MISSMESG% goto ERRPAUSE :MAIN set FFINPUT=%INPUT% rem Use distinct variable for AVS script to protect input file from accidental deletion set AVSCRIPT= if [%SUBSFILE%] == [] goto CHKPASS# set FFINPUT=%INPUT%.AVS set AVSCRIPT=%FFINPUT% :CHKPASS# if [%PASSOPT%] == [2] goto ENDPASS set PASS=1 set VB_STRAT=-b_strategy 1 if not [%FFMPDBUG%] == [echo] if exist ffmpeg2pass-?.log del ffmpeg2pass-?.log if [%SUBSFILE%] == [] goto LOGSTART echo OpenDMLSource(%INPUT%)>%AVSCRIPT% echo TextSub(%SUBSFILE%)>>%AVSCRIPT% if not [%FFMPDBUG%] == [echo] goto LOGSTART echo. echo %AVSCRIPT%: echo. type %AVSCRIPT% echo. del %AVSCRIPT% :LOGSTART if [%FFMPDBUG%] == [echo] goto ENCODE echo Start %INPUT% >%OUTPUT%.time.txt :BEGNPASS if [%FFMPDBUG%] == [echo] goto ENCODE echo Start pass %PASS% >>%OUTPUT%.time.txt echo. | date | find /v "Enter the new date: (yy-mm-dd)" >>%OUTPUT%.time.txt echo. | time | find /v "Enter the new time:" >>%OUTPUT%.time.txt :ENCODE REM MEncoder reference command line rem mencoder -field-dominance 1 -mc 0 -vf hqdn3d=2:1:2,harddup -oac lavc -ovc lavc -lavcopts abitrate=128:acodec=ac3:autoaspect:ilme:ildct:keyint=15:mbd=2:top=0:trell:vb itrate=%BITRATE%:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vstric t=0%PSNR%:vmax_b_frames=2%VB_STRAT%:dia=2:preme=2:predia=2:mbcmp=6:precmp=2: cmp=2:subcmp=6:last_pred=2:mv0:mv0_threshold=0 -of mpeg -mpegopts format=dvd:muxrate=%MUXRATE%:tsaf %1 -o %OUTPUT% >%OUTPUT%.%PASS%.txt REM Fast test encode rem ffmpeg -y -i %FFINPUT% -target pal-dvd -acodec ac3 -ab 128000 -flags ildct+ilme -maxrate %MAXRATE% -vcodec mpeg2video -b:v %BITRATE% -pass %PASS% %OUTPUT% %FFMPDBUG% ffmpeg -y -top 0 -async 0 -i %FFINPUT% -aspect 4:3 -target pal-dvd -muxrate %MUXRATE% -acodec ac3 -ab 128000 -flags ildct+ilme+mv0 -g 15 -mbd 2 -trellis 1 -bufsize 1835000 -strict 0 -bf 2 %VB_STRAT% -mbcmp 6 -preme 2 -precmp 2 -pre_dia_size 2 -cmp 2 -dia_size 2 -subcmp 6 -last_pred 2 -mv0_threshold 0 %PSNR% -maxrate %MAXRATE% -vcodec mpeg2video -b:v %BITRATE% -pass %PASS% %METADATA% %OUTPUT% if [%FFMPDBUG%] == [echo] goto CHKEND echo End pass %PASS% >>%OUTPUT%.time.txt echo. | date | find /v "Enter the new date: (yy-mm-dd)" >>%OUTPUT%.time.txt echo. | time | find /v "Enter the new time:" >>%OUTPUT%.time.txt :CHKEND if %PASS% == 2 goto END if [%PASSOPT%] == [1] goto END :ENDPASS if not [%FFMPDBUG%] == [echo] if not exist ffmpeg2pass-?.log goto MISSFILE if not [%FFMPDBUG%] == [echo] if not [%SUBSFILE%] == [] if not exist %AVSCRIPT%. goto MISSFILE set PASS=2 set VB_STRAT= goto BEGNPASS :END echo rem pause if [%PASSOPT%] == [1] goto EXIT if exist ffmpeg2pass-?.log del ffmpeg2pass-?.log if not [%SUBSFILE%] == [] if exist %AVSCRIPT%. del %AVSCRIPT% :EXIT set MUXRATE= set MAXRATE= set BITRATE= set OUTPUT= set PASS= set PSNR= set SUFFIX= set METADATA= set VB_STRAT= set AVSCRIPT= set SUBSFILE= set PASSOPT= set INPUT= set FFINPUT= set MISSMESG= endlocal --- > And what means 'Start pass' (not %Pass%)? Start pass %PASS% writes to the text file 'Start pass 1' or 'Start pass 2' (depending on value of %PASS%), to distinguish the timestamps of the two passes. > > I tried it with replacing with setting the variables in the script..... > and it shows me time, but only hh:mm:ss. Mine shows "13:54:30.37". I can't be certain but the format is probably specified in your computer's date and time settings. > > David > >>> 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 > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Tue Sep 11 14:13:50 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 11 Sep 2012 14:13:50 +0200 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: References: <504F14A4.7090806@thelounge.net> Message-ID: <010c01cd9016$efe42900$cfac7b00$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Kevin Wilson > Sent: 11 September 2012 12:55 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] converting to non HD avi with ffmpeg > > Reindl, > > Thanks a lot for you quick response! > > > change width/height and bitrate > > excuse me my ignorance: which width/height and bitrate are needed for > non HD ? Here's one place to start: http://en.wikipedia.org/wiki/SD_video videohelp.com also has a usable glossary and informative forum for general video queries. > regards, > Kevin > > > On Tue, Sep 11, 2012 at 1:38 PM, Reindl Harald > wrote: > > > > > > Am 11.09.2012 12:25, schrieb Kevin Wilson: > >> Hi, > >> I have downloaded from the web a video file with webm extension: > >> ubunutuArm.webm (some lecture in video) > >> > >> Now, I converted it to avi thus: > >> ffmpeg -i ubunutuArm.webm ubunutuArm.avi > >> > >> and put the ubunutuArm.avi on disk On Key. > >> When trying to view it on TV with a DVD I see this > >> messsage: > >> "HD is not supported". > >> Indeed, HD is not supported in my DVD and TV. > >> Is there a way I can convert this video file with ffmpeg to an AVI so > >> the result will be non HD ? > > > > change width/height and bitrate > > you did not set ANY parameter > > > > > > _______________________________________________ > > 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 david.wagner123 at googlemail.com Tue Sep 11 14:37:58 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 14:37:58 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <010b01cd9016$ee2e3ba0$ca8ab2e0$@gmail.com> References: <504C23C7.4080405@googlemail.com> <504E6BC1.9030603@googlemail.com> <008101cd8ff0$80287330$80795990$@gmail.com> <504F16FA.8090508@googlemail.com> <010b01cd9016$ee2e3ba0$ca8ab2e0$@gmail.com> Message-ID: <504F30A6.7020302@googlemail.com> Am 11.09.2012 14:13, schrieb Francois Visagie: >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of David Wagner >> Sent: 11 September 2012 12:48 >> To: FFmpeg user questions >> Subject: Re: [FFmpeg-user] Benchmarking with ffmpeg - What are the >> parameters meaning? >> >> Am 11.09.2012 09:38, schrieb Francois Visagie: >>>> -----Original Message----- >>>> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >>>> bounces at ffmpeg.org] On Behalf Of David Wagner >>>> Sent: 11 September 2012 00:38 >>>> To: FFmpeg user questions >>>> Subject: Re: [FFmpeg-user] Benchmarking with ffmpeg - What are the >>>> parameters meaning? >>>> >>>> Am 09.09.2012 23:01, schrieb Carl Eugen Hoyos: >>>>> David Wagner googlemail.com> writes: >>>>> >>>>>> frame= 1065 fps=214 q=-1.0 Lsize= 238kB time=00:00:35.46 >>>>>> bitrate= 55.0kbits/s >>>>>> bench: utime=8.781s maxrss=49488kB >>>>>> >>>>>> What is meant by the fps? Is it the (averaged) speed at which the >>>>>> frames are processed? >>>>> No, not averaged but current. >>>>> >>>>>> So 1065frames / 214fps = 4,97 s. Which is not equal utime = 8,7818s. >>>>>> Also I have seen that at the end time=00:00:35.46 is exactly the >>>>>> length of the encoded video. >>>>> That is correct and this should be very accurate. >>>>> >>>>>> Could someone please explain me the parameters? >>>>> If you mean frame, size and bitrate, I assumed they are >>>>> self-explanatory... >>>>> (I suspect bitrate is also current, not average, but I did not >>>>> test.) utime is the time spent on CPU, maxrss should be maximum >>>>> memory footprint. >>>>> >>>> I couldn't find much information about theses parameters. Can you >>>> tell me is utime a good one for comparing codecs? >>>> What benefit do I have from knowing maximum memory footprint? It >>>> doesn't seem much informative. >>>>>> BTW exists there a mode for benchmarking the DEcoding process, so >>>>>> that I have some stats and won't need to play all the files in >>>>>> realtime? >>>>> I always use: >>>>> $ time ffmpeg -i input -f null - >>>>> >>>> Unfortunately I wanted to do the whole process on windows. So I don't >>>> have time. >>> It isn't quite clear to me exactly what time lapse you want to >>> measure. If it's for the whole ffmpeg pass from start to finish, I use >>> the below on Windows. %INPUT% and %OUTPUT% are set to the input and >>> output filenames respectively. %PASS% is obviously set to the pass. My >>> script actually uses a single command line for both passes, >>> appropriately adjusted for each. So the first time execution passes >>> through here %PASS% is set to 1 and the 2nd time to 2. >>> >>> Hopefully this is of some help. >>> >>> echo Start %INPUT%>%OUTPUT%.time.txt >>> >>> echo Start pass %PASS%>>%OUTPUT%.time.txt echo. | date | find /v >>> "Enter the new date: (yy-mm-dd)">>%OUTPUT%.time.txt echo. | time | >>> find /v "Enter the new time:">>%OUTPUT%.time.txt >>> >>> ffmpeg ... -pass %PASS% ... >>> >>> echo End pass %PASS%>>%OUTPUT%.time.txt echo. | date | find /v "Enter >>> the new date: (yy-mm-dd)">>%OUTPUT%.time.txt echo. | time | find /v >>> "Enter the new time:">>%OUTPUT%.time.txt >>> >> Thank you for your script. Can you tell me how I can start it with > arguments. I >> don't know the syntax. I tried to give it arguments but it doesn't takes > them. >> How can I set e.g. %OUTPUT% from command line? > My hard-coded DVD MPEG-2 script (called ffmpegencode.bat) is called with > parameters on the command line e.g.: > ffmpegencode input.avi 6090000 input.ass > > where in this case input.avi is the input file, 6090000 is the requested > bitrate and input.ass is a subtitle file. > > Command line parameters in Windows and DOS are identified inside the script > as %1, %2 etc. Up to a maximum of 10 I think, then you have to use the > 'shift' command. > > The script sets other values such as %OUTPUT% internally. Here is the full > script (ffmpeg command not yet updated for presets etc.). Hopefully this > will give you some idea of how the script uses command line parameters as > well as the time-stamping commands. > > This may not work as is for you esp. when specifying subtitles, in which > case the script uses Avisynth to inlay them. If you set the external > environment variable FFMPDBUG to 'echo' before calling the script, i.e. > set FFMPDBUG=echo > > the script prints what it would have done and exits.--- Thank you. > @echo off > setlocal > > goto INIT > > :HELP > echo. > echo ffmpegencode v1.6 (c) F. Visagie 2012/08/24 > echo Function: encode PAL DV to DVD-compliant MPEG-2 > echo. > echo Usage: > echo ffmpegencode "infile" [bitrate ["subsfile"]] [pass]]] > echo. > echo where: > echo "infile" video file to encode > echo bitrate set video bitrate in bits/s (default %BITRATE%, max > %MAXRATE%) > echo "subsfile" ASS text script with inlay subtitles > echo pass nothing for uninterrupted 2-pass encoding > echo 1 for pass 1 only > echo 2 for pass 2 only > echo. > echo All value parameters accept 0 to indicate default/none > echo To ensure correct processing, double-quote space-separated filenames > echo Encoded output file is named infile%SUFFIX% > echo. > echo To display commands instead of executing for debugging purposes, > echo set external environment variable FFMPDBUG=echo, otherwise EMPTY > > goto ERRPAUSE > > rem Version History > rem v1.1 2009/05/20: added separate pass 1/2 support > rem v1.2 2009/05/20: removed Avisynth input for r19192& later > rem v1.3 2009/09/04: restored Avisynth input for subtitle inlays > rem v1.4 2010/04/27: explicitly require quoted filenames, esp. for adding > subtitles > rem v1.5 2012/08/14: updated for ffmpeg version N-43418-g633b90c > rem added bitrate parameter > rem added copyright tag > rem added DEBUG flag > rem v1.6 2012/08/24: changed DEBUG flag to external environment variable > FFMPDBUG > rem removed built-in denoising > > :INIT > rem Default encode settings > rem ----------------------- > > rem Production bitrates > set BITRATE=6090000 > set MAXRATE=9000000 > set MUXRATE=10080000 > > rem Bitrates for testing > rem Following bitrate causes buffer underflow and MuxMan P-STD buffer > underflow (with -maxrate 9800000) > rem set BITRATE=9000000 > rem set MAXRATE=9800000 > rem Following muxrate leaves enough room for audio and triggers buffer > underflow for illegal video > rem set MUXRATE=9928000 > > set PSNR= > rem set PSNR=-psnr > set SUFFIX=.mpg > set METADATA=-metadata copyright="Encode (c) Francois Visagie > francois.visagie at gmail.com" > > set INPUT= > set PASSOPT= > set SUBSFILE= > > REM Parse input file > if [%1] == [] goto HELP > if [%1] == [?] goto HELP > if [%1] == [-?] goto HELP > if [%1] == [/?] goto HELP > if [%1] == [h] goto HELP > if [%1] == [-h] goto HELP > if [%1] == [/h] goto HELP > if [%1] == [help] goto HELP > if [%1] == [-help] goto HELP > if [%1] == [/help] goto HELP > > rem Preserve input filename > set INPUT=%1 > > if exist %1. goto QUOTIN > echo. > echo Invalid input file %1! > echo HINT: If it contains spaces, enclose input filename in quotes > > :ERRPAUSE > echo > > echo. > pause > goto EXIT > > :QUOTIN > rem Ensure input file name quoted > > echo %INPUT% | find """"> NUL > if not errorlevel 1 goto CHKBIT > set INPUT="%INPUT%" > > :CHKBIT > if [%2] == [] goto CHKOUT > if [%2] == [0] goto CHKSUBS > set BITRATE=%2 > > :CHKSUBS > if [%3] == [] goto CHKOUT > if [%3] == [0] goto CHKPASS > if exist %3. goto QUOTSUBS > echo. > echo Invalid subtitle file %3! > echo HINT: If it contains spaces, enclose subtitle filename in quotes > goto ERRPAUSE > > :QUOTSUBS > rem Ensure subtitle file name quoted > > set SUBSFILE=%3 > echo %SUBSFILE% | find """"> NUL > if not errorlevel 1 goto CHKPASS > set SUBSFILE="%SUBSFILE%" > > :CHKPASS > if [%4] == [] goto CHKOUT > if [%4] == [1] goto SETPASS1 > if [%4] == [2] goto SETPASS2 > echo. > echo Invalid pass number %4! > goto ERRPAUSE > > :SETPASS1 > set PASSOPT=1 > goto CHKOUT > :SETPASS2 > set PASSOPT=2 > > :CHKOUT > rem Now we're committed and may over-write output file > set OUTPUT=%INPUT%%SUFFIX% > if not exist %OUTPUT%. goto MAIN > echo > > echo. > echo %OUTPUT% already exists! > echo Press Ctrl-C to abort, else > echo. > pause > goto MAIN > > :MISSFILE > set MISSMESG=Missing pass 1 file (ffmpeg2pass-?.log > if not [%SUBSFILE%] == [] set MISSMESG=%MISSMESG% or %AVSCRIPT% > set MISSMESG=%MISSMESG%)! > echo. > echo %MISSMESG% > goto ERRPAUSE > > > :MAIN > > set FFINPUT=%INPUT% > rem Use distinct variable for AVS script to protect input file from > accidental deletion > set AVSCRIPT= > > if [%SUBSFILE%] == [] goto CHKPASS# > set FFINPUT=%INPUT%.AVS > set AVSCRIPT=%FFINPUT% > > :CHKPASS# > if [%PASSOPT%] == [2] goto ENDPASS > > set PASS=1 > set VB_STRAT=-b_strategy 1 > if not [%FFMPDBUG%] == [echo] if exist ffmpeg2pass-?.log del > ffmpeg2pass-?.log > > if [%SUBSFILE%] == [] goto LOGSTART > echo OpenDMLSource(%INPUT%)>%AVSCRIPT% > echo TextSub(%SUBSFILE%)>>%AVSCRIPT% > > if not [%FFMPDBUG%] == [echo] goto LOGSTART > echo. > echo %AVSCRIPT%: > echo. > type %AVSCRIPT% > echo. > del %AVSCRIPT% > > :LOGSTART > if [%FFMPDBUG%] == [echo] goto ENCODE > echo Start %INPUT%>%OUTPUT%.time.txt > :BEGNPASS > if [%FFMPDBUG%] == [echo] goto ENCODE > echo Start pass %PASS%>>%OUTPUT%.time.txt > echo. | date | find /v "Enter the new date: (yy-mm-dd)">>%OUTPUT%.time.txt > echo. | time | find /v "Enter the new time:">>%OUTPUT%.time.txt > > :ENCODE > REM MEncoder reference command line > rem mencoder -field-dominance 1 -mc 0 -vf hqdn3d=2:1:2,harddup -oac lavc > -ovc lavc -lavcopts > abitrate=128:acodec=ac3:autoaspect:ilme:ildct:keyint=15:mbd=2:top=0:trell:vb > itrate=%BITRATE%:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vstric > t=0%PSNR%:vmax_b_frames=2%VB_STRAT%:dia=2:preme=2:predia=2:mbcmp=6:precmp=2: > cmp=2:subcmp=6:last_pred=2:mv0:mv0_threshold=0 -of mpeg -mpegopts > format=dvd:muxrate=%MUXRATE%:tsaf %1 -o %OUTPUT%>%OUTPUT%.%PASS%.txt > > REM Fast test encode > rem ffmpeg -y -i %FFINPUT% -target pal-dvd -acodec ac3 -ab 128000 -flags > ildct+ilme -maxrate %MAXRATE% -vcodec mpeg2video -b:v %BITRATE% -pass %PASS% > %OUTPUT% > > %FFMPDBUG% ffmpeg -y -top 0 -async 0 -i %FFINPUT% -aspect 4:3 -target > pal-dvd -muxrate %MUXRATE% -acodec ac3 -ab 128000 -flags ildct+ilme+mv0 -g > 15 -mbd 2 -trellis 1 -bufsize 1835000 -strict 0 -bf 2 %VB_STRAT% -mbcmp 6 > -preme 2 -precmp 2 -pre_dia_size 2 -cmp 2 -dia_size 2 -subcmp 6 -last_pred 2 > -mv0_threshold 0 %PSNR% -maxrate %MAXRATE% -vcodec mpeg2video -b:v %BITRATE% > -pass %PASS% %METADATA% %OUTPUT% > > if [%FFMPDBUG%] == [echo] goto CHKEND > echo End pass %PASS%>>%OUTPUT%.time.txt > echo. | date | find /v "Enter the new date: (yy-mm-dd)">>%OUTPUT%.time.txt > echo. | time | find /v "Enter the new time:">>%OUTPUT%.time.txt > > :CHKEND > if %PASS% == 2 goto END > if [%PASSOPT%] == [1] goto END > :ENDPASS > if not [%FFMPDBUG%] == [echo] if not exist ffmpeg2pass-?.log goto MISSFILE > if not [%FFMPDBUG%] == [echo] if not [%SUBSFILE%] == [] if not exist > %AVSCRIPT%. goto MISSFILE > set PASS=2 > set VB_STRAT= > goto BEGNPASS > > > :END > echo > > rem pause > > if [%PASSOPT%] == [1] goto EXIT > if exist ffmpeg2pass-?.log del ffmpeg2pass-?.log > if not [%SUBSFILE%] == [] if exist %AVSCRIPT%. del %AVSCRIPT% > > :EXIT > set MUXRATE= > set MAXRATE= > set BITRATE= > set OUTPUT= > set PASS= > set PSNR= > set SUFFIX= > set METADATA= > set VB_STRAT= > set AVSCRIPT= > set SUBSFILE= > set PASSOPT= > set INPUT= > set FFINPUT= > set MISSMESG= > endlocal > > --- > >> And what means 'Start pass' (not %Pass%)? > Start pass %PASS% writes to the text file 'Start pass 1' or 'Start pass 2' > (depending on value of %PASS%), to distinguish the timestamps of the two > passes. > >> I tried it with replacing with setting the variables in the script..... >> and it shows me time, but only hh:mm:ss. > Mine shows "13:54:30.37". I can't be certain but the format is probably > specified in your computer's date and time settings. > >> David >>>>> 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 >>> >> _______________________________________________ >> 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 Tue Sep 11 15:13:54 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 13:13:54 +0000 (UTC) Subject: [FFmpeg-user] XvidExpert needed for "transcoding" xml into ffmpeg parameters References: <504F29BC.2040906@googlemail.com> Message-ID: David Wagner googlemail.com> writes: > I don't have the time [...] to for doing that. I wonder if this is the right attitude for sending mails to this list... Carl Eugen From cehoyos at ag.or.at Tue Sep 11 15:24:54 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 13:24:54 +0000 (UTC) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> Message-ID: David Wagner googlemail.com> writes: > And I'm searching especially something for decoding. > Is there an option for only measuring the decoding > performance? I always use: $ time ffmpeg -i input -f null - (You are right that this does not only decode, it also encodes to the "null" format, but I don't think this will affect the measuring.) And this of course does not make sense if the whole transcoding process takes less than 0.1 seconds. Carl Eugen From david.wagner123 at googlemail.com Tue Sep 11 15:31:42 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 15:31:42 +0200 Subject: [FFmpeg-user] XvidExpert needed for "transcoding" xml into ffmpeg parameters In-Reply-To: References: <504F29BC.2040906@googlemail.com> Message-ID: <504F3D3E.4030706@googlemail.com> Am 11.09.2012 15:13, schrieb Carl Eugen Hoyos: > David Wagner googlemail.com> writes: > >> I don't have the time [...] to for doing that. > I wonder if this is the right attitude for sending mails to > this list... > > Carl Eugen > It's not meant in the sense that I wouldn't do it if I had the time. Also I tried to find long enough finding a solution. I don't know why someone with with not that much experience should do that if someone more experienced user with the program could help and save hours of frustration? I wanted to use ffmpeg for my programm but this really seems too much work. So if someone who knows the parameters could help I would be very glad. David From volodomanov at gmail.com Tue Sep 11 15:35:56 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Tue, 11 Sep 2012 23:35:56 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> Message-ID: <504F3E3C.1070600@gmail.com> On 11/09/2012 5:54 PM, Carl Eugen Hoyos wrote: > Sorry for the mistake. > > To speed this up, I did the bisect;-) > Could you confirm that 2107009 (git checkout 2107009) works > fine and that 3e1cf49 is failing? > Yep, you've nailed it :) Thank you for helping out and yes, it's like that - 2107009 works, 3e1cf49 doesn't. What do we do next? :) Dennis From david.wagner123 at googlemail.com Tue Sep 11 15:45:27 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 15:45:27 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> Message-ID: <504F4077.5090007@googlemail.com> Am 11.09.2012 15:24, schrieb Carl Eugen Hoyos: > David Wagner googlemail.com> writes: > >> And I'm searching especially something for decoding. >> Is there an option for only measuring the decoding >> performance? > I always use: > $ time ffmpeg -i input -f null - > > (You are right that this does not only decode, it also > encodes to the "null" format, but I don't think this > will affect the measuring.) > I want to compare encoding with decoding performance requirements and see how the codecs behave. > And this of course does not make sense if the whole > transcoding process takes less than 0.1 seconds. > I think utime and maxrss are pretty good although time reduced that much. > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Tue Sep 11 15:42:05 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 13:42:05 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > Yep, you've nailed it :) Thank you for helping out and yes, > it's like that - 2107009 works, 3e1cf49 doesn't. > > What do we do next? :) We wait until somebody who has knowledge about muxing transport streams looks into the ticket you opened. Carl Eugen From cehoyos at ag.or.at Tue Sep 11 15:50:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 13:50:30 +0000 (UTC) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <504F4077.5090007@googlemail.com> Message-ID: David Wagner googlemail.com> writes: > >> And I'm searching especially something for decoding. > >> Is there an option for only measuring the decoding > >> performance? > > > > I always use: > > $ time ffmpeg -i input -f null - > > > > (You are right that this does not only decode, it also > > encodes to the "null" format, but I don't think this > > will affect the measuring.) > > > I want to compare encoding with decoding performance > requirements and see how the codecs behave. If you believe that encoding to the null format affects the decoding performance measurement, I honestly wonder how you are going to measure encoding performance without using a decoder. Please put (and leave) an empty line between quoted text and your reply, it makes reading mails significantly easier. Carl Eugen From volodomanov at gmail.com Tue Sep 11 15:55:05 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Tue, 11 Sep 2012 23:55:05 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> Message-ID: <504F42B9.6040301@gmail.com> On 11/09/2012 11:42 PM, Carl Eugen Hoyos wrote: > We wait until somebody who has knowledge about muxing > transport streams looks into the ticket you opened. > Ok, that makes sense, but is there a way to find out, now that we know the broken build, all the changes and see what could've caused it? I'm happy to try and revert changes one by one (if there are not hundreds of them of course) till I find the one causing this. I just need to know how to find out which files changed between two commits (and it would be great if you or someone could point me to files that I should concentrate on). Dennis From cehoyos at ag.or.at Tue Sep 11 15:56:35 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 13:56:35 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > Ok, that makes sense, but is there a way to find out, > now that we know the broken build, all the changes > and see what could've caused it? Do you mean "git log -p 3e1cf49" ? Carl Eugen From volodomanov at gmail.com Tue Sep 11 16:03:11 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Wed, 12 Sep 2012 00:03:11 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> Message-ID: <504F449F.5050501@gmail.com> On 11/09/2012 11:56 PM, Carl Eugen Hoyos wrote: > Do you mean "git log -p 3e1cf49" ? > Yes, thanks, but that's overwhelming :) Ok, I guess we'll wait, or, if I could find out which files are involved in muxing, I could still go ahead and try to revert things. In any case, I'm glad that at least the problem is identified - thanks again. Dennis From david.wagner123 at googlemail.com Tue Sep 11 16:21:00 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Tue, 11 Sep 2012 16:21:00 +0200 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <504F4077.5090007@googlemail.com> Message-ID: <504F48CC.2030301@googlemail.com> Am 11.09.2012 15:50, schrieb Carl Eugen Hoyos: > David Wagner googlemail.com> writes: > >>>> And I'm searching especially something for decoding. >>>> Is there an option for only measuring the decoding >>>> performance? >>> I always use: >>> $ time ffmpeg -i input -f null - >>> >>> (You are right that this does not only decode, it also >>> encodes to the "null" format, but I don't think this >>> will affect the measuring.) >>> >> I want to compare encoding with decoding performance >> requirements and see how the codecs behave. > If you believe that encoding to the null format affects > the decoding performance measurement, I honestly wonder > how you are going to measure encoding performance > without using a decoder. > Ok. I could first transcode my uncompressed files and then I could decode and "encode" the target format to null to see the target formats behaviour. But probably I would need to free the memory after each test. > Please put (and leave) an empty line between quoted text > and your reply, it makes reading mails significantly easier. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From paulj at fastmail.es Tue Sep 11 18:29:28 2012 From: paulj at fastmail.es (paulj at fastmail.es) Date: Tue, 11 Sep 2012 18:29:28 +0200 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com>, Message-ID: <504F66E8.27395.B388D@paulj.fastmail.es> > Dennis Volodomanov gmail.com> writes: > > > Yep, you've nailed it :) Thank you for helping out and yes, > > it's like that - 2107009 works, 3e1cf49 doesn't. > > > > What do we do next? :) > > We wait until somebody who has knowledge about muxing > transport streams looks into the ticket you opened. > > Carl Eugen > FWIW, those are the same revisions where I got my bug too (the one about capturing MP4 streams from an Axis camera). I never got to open a ticket, though; I'll see if I can do so tomorrow... Paulo. ------------------------------------------- "Oh, don't worry kids. Most of you will never fall in love. You'll just marry for fear of dying alone." The Simpsons. ------------------------------------------- From rogerdpack2 at gmail.com Tue Sep 11 18:45:29 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 11 Sep 2012 10:45:29 -0600 Subject: [FFmpeg-user] how to video streaming on mms protocol? In-Reply-To: <1347333402591-4653335.post@n4.nabble.com> References: <1347100942575-4653293.post@n4.nabble.com> <1347333402591-4653335.post@n4.nabble.com> Message-ID: > thanks Roger. > could you help me with an example? I'd guess it would start like $ ffplay -i mmsh://istreampl-classicstation-live.wm.llnwd.net/istreampl_classicstation_live Oddly, the original url as mms:// so i had to add an h. Maybe ffmpeg should be modified to accept mms:// type url's? Thanks! r From rogerdpack2 at gmail.com Tue Sep 11 18:54:44 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 11 Sep 2012 10:54:44 -0600 Subject: [FFmpeg-user] How to Use FFmpeg Decode Libraries In-Reply-To: References: Message-ID: > I want to use FFmpeg decode libraries to decode an h.264 video stream. I found the libavcodec/api-example.c is a test example can decode MPEG1VIDEO format video streams. Now I use CODEC_ID_H264 instead of CODEC_ID_MPEG1VIDEO and build it, then add an argument (h.264 encode video stream) when ran the test case, there an error occurs. Below is the error log: > > #Video decoding > #[h264 @ 0x8937020]error while decoding MB 14 7, bytestream (-23) > #[h264 @ 0x8937020]concealing 955 DC, 955 AC, 955 MV errors > #[h264 @ 0x8937020]no frame! > #Error while decoding frame 0 You may get better support from the libav-user group (bottom of http://ffmpeg.org/trac/ffmpeg/wiki/Using%20libav* ) From rogerdpack2 at gmail.com Tue Sep 11 18:56:13 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 11 Sep 2012 10:56:13 -0600 Subject: [FFmpeg-user] Problem with libfdk-aac and VBR quality option "quality out of range" In-Reply-To: <009c01cd8ff4$01eaa700$05bff500$@gmail.com> References: <009c01cd8ff4$01eaa700$05bff500$@gmail.com> Message-ID: > " The third is FFmpeg's native AAC encoder (considered experimental by the > developers as of December 2012)" Psychic wiki! -r From rogerdpack2 at gmail.com Tue Sep 11 18:58:33 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 11 Sep 2012 10:58:33 -0600 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: References: Message-ID: > Now, I converted it to avi thus: > ffmpeg -i ubunutuArm.webm ubunutuArm.avi This might perform a transcode. Could you paste the full command line and console output please? > "HD is not supported". > Indeed, HD is not supported in my DVD and TV. > Is there a way I can convert this video file with ffmpeg > to an AVI so the result will be non HD ? My guess is to pass it some size parameter, like -vf scale=100x100 I think. From elliott2w1 at gmail.com Tue Sep 11 19:36:09 2012 From: elliott2w1 at gmail.com (Marc Elliott) Date: Tue, 11 Sep 2012 10:36:09 -0700 Subject: [FFmpeg-user] grayscale video streaming in ffmpeg Message-ID: I have a raw video file (testvideo_1000f.raw) that I am trying to stream in gray scale using ffmpeg and output the grayscale video to output.swf. The command I am using to do this is: ffmpeg/ffmpeg -qmin 2 -qmax 31 -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an -i testvideo_1000f.raw output.swf However, the result from this command is a video stream that is in gray scale but still contains some of the chrominance data. The output from this command is pasted below: 3 [volta]/home/student/elliott> ffmpeg/ffmpeg -qmin 2 -qmax 31 -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an -i testvideo_1000f.raw output.swf ffmpeg version N-41632-g2b1fc56 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 29 2012 10:27:26 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51) configuration: libavutil 51. 58.100 / 51. 58.100 libavcodec 54. 25.100 / 54. 25.100 libavformat 54. 6.101 / 54. 6.101 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 80.100 / 2. 80.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 *** CHOOSING 8 [rawvideo @ 0xdda9660] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'testvideo_1000f.raw': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 320x240, 25 tbr, 25 tbn, 25 tbc File 'output.swf' already exists. Overwrite ? [y/N] y w:320 h:240 pixfmt:gray tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 [ffmpeg_buffersink @ 0xddb7b40] No opaque field provided [format @ 0xddb7d40] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [auto-inserted scaler 0 @ 0xddb7920] w:320 h:240 fmt:gray sar:0/1 -> w:320 h:240 fmt:yuv420p sar:0/1 flags:0x4 *** CHOOSING 8 Output #0, swf, to 'output.swf': Metadata: encoder : Lavf54.6.101 Stream #0:0: Video: flv1, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> flv) Press [q] to stop, [?] for help Truncating packet of size 76800 to 1 2875kB time=00:00:40.84 bitrate= 576.7kbits/s frame= 1500 fps=1035 q=24.8 Lsize= 4194kB time=00:01:00.00 bitrate= 572.6kbits/s video:4166kB audio:0kB global headers:0kB muxing overhead 0.669245% I am fairly new to FFMPEG and I am afraid I am using either the wrong syntax or the wrong parameters in my command line. For some reason, the format of the output is yuv420p. I have tried searching for this answer all over but have had no luck. I should also note that I am trying to get a grayscale video by completely deleting the chrominance information, not by just zeroing it out. I want to transmit only the luminance data. When I give the '-pix_fmt gray' parameter, I am seeing the shortened buffer length I would expect from all of the chrominance information being deleted but the output video still contains some of the chrominance data. Could anyone please help me and tell me why the output is being formatted in yuv420p when I am giving the command for it to be in 8bit grayscale? Any help would be greatly appreciated. Thank you. From lou at lrcd.com Tue Sep 11 20:35:39 2012 From: lou at lrcd.com (Lou) Date: Tue, 11 Sep 2012 10:35:39 -0800 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: References: Message-ID: <20120911103539.6717085f@lrcd.com> On Tue, 11 Sep 2012 13:25:21 +0300 Kevin Wilson wrote: > Hi, > I have downloaded from the web a video file with webm extension: > ubunutuArm.webm (some lecture in video) > > Now, I converted it to avi thus: > ffmpeg -i ubunutuArm.webm ubunutuArm.avi > > and put the ubunutuArm.avi on disk On Key. > When trying to view it on TV with a DVD I see this > messsage: > "HD is not supported". > Indeed, HD is not supported in my DVD and TV. > Is there a way I can convert this video file with ffmpeg > to an AVI so the result will be non HD ? ffmpeg -i input -filter:v scale=640:-1 -q:v 3 output I added the scale filter which will create an output that is 640 pixels wide and the height will be automatically calculated to preserve the aspect ratio. Of course you can change 640 to whatever desired width you want. You can also switch the position of the -1 and provide a desired height. The other addition controls the output quality to something probably better than the default of "-b:v 200k". > (Second question: given some avi file, is there a way > I can know whether it is in HD or not ?) You can see the size of a video stream with the output of: ffmpeg -i input From lexnewton86 at gmail.com Tue Sep 11 09:05:15 2012 From: lexnewton86 at gmail.com (Aleksey Durachenko) Date: Tue, 11 Sep 2012 14:05:15 +0700 Subject: [FFmpeg-user] config.h ends in null chars ?? Message-ID: I had the same problem. It has been solved by the coreutils updating. (slackware 13.37, linux 3.5.3, coreutils-8.11 --> coreutils-8.19) From cehoyos at ag.or.at Tue Sep 11 22:34:41 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 20:34:41 +0000 (UTC) Subject: [FFmpeg-user] grayscale video streaming in ffmpeg References: Message-ID: Marc Elliott gmail.com> writes: > 3 [volta]/home/student/elliott> ffmpeg/ffmpeg -qmin 2 -qmax 31 > -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an > -i testvideo_1000f.raw output.swf > I am fairly new to FFMPEG and I am afraid I am using either the wrong > syntax or the wrong parameters in my command line. For some reason, > the format of the output is yuv420p. The default video codec for swf is flv1 (Sorenson Video) and this codec only support yuv420p. You can try -vcodec mjpeg but this seems to have problems (I don't know if they are expected). Carl Eugen From cehoyos at ag.or.at Tue Sep 11 22:46:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 20:46:12 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> <504F449F.5050501@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > On 11/09/2012 11:56 PM, Carl Eugen Hoyos wrote: > > Do you mean "git log -p 3e1cf49" ? > > Yes, thanks, but that's overwhelming :) Ok, I guess we'll > wait, or, if I could find out which files are involved in > muxing, I could still go ahead and try to revert things. (I am not a native speaker, so I may misunderstand above paragraph.) You do realize that you only have to change one line to revert the relevant commit? Carl Eugen From volodomanov at gmail.com Wed Sep 12 00:53:26 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Wed, 12 Sep 2012 08:53:26 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> <504F449F.5050501@gmail.com> Message-ID: <504FC0E6.9040807@gmail.com> On 12/09/2012 6:46 AM, Carl Eugen Hoyos wrote: > (I am not a native speaker, so I may misunderstand > above paragraph.) I'm not a native speaker either :) > You do realize that you only have to change one line to > revert the relevant commit? > What I meant is to find the actual source code change that caused this. To do that, I'd need to know which files are potentially involved and look at difference in those files, because if I look at all the differences, there are just too many of them :) Dennis From cehoyos at ag.or.at Wed Sep 12 01:03:10 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 23:03:10 +0000 (UTC) Subject: [FFmpeg-user] How to find the last working GIT version? References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> <504F449F.5050501@gmail.com> <504FC0E6.9040807@gmail.com> Message-ID: Dennis Volodomanov gmail.com> writes: > > You do realize that you only have to change one line to > > revert the relevant commit? > > What I meant is to find the actual source code change > that caused this. To do that, I'd need to know which files > are potentially involved and look at difference in those > files, because if I look at all the differences, there are > just too many of them :) git log -p 3e1cf49 shows you the change in commit 3e1cf49 (a version that you know is bad) and all prior commits, the first commit before 3e1cf49 is 2107009 that as you know is a good version, so you only have to revert the one line from commit 3e1cf49 but none of the (several ten-thousand) earlier commits. I hope this clears it up, if not, try to remove "&& has_decode_delay_been_guessed(st)" from compute_pkt_fields() in libavformat/utils.c Carl Eugen From volodomanov at gmail.com Wed Sep 12 01:15:13 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Wed, 12 Sep 2012 09:15:13 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> <504F449F.5050501@gmail.com> <504FC0E6.9040807@gmail.com> Message-ID: <504FC601.5090209@gmail.com> On 12/09/2012 9:03 AM, Carl Eugen Hoyos wrote: > git log -p 3e1cf49 shows you the change in commit 3e1cf49 > (a version that you know is bad) and all prior commits, the > first commit before 3e1cf49 is 2107009 that as you know is a > good version, so you only have to revert the one line from > commit 3e1cf49 but none of the (several ten-thousand) > earlier commits. > > I hope this clears it up, if not, try to remove > "&& has_decode_delay_been_guessed(st)" from > compute_pkt_fields() in libavformat/utils.c Ah, ok. I was confused by the huge amount of output of that git log command. I'll need to study it closer to see how you found that offending line in the first place. Thank you for the hint - I'll try and remove that and see if it makes a difference (I guess it does, since that's the offending line). Dennis From cehoyos at ag.or.at Wed Sep 12 01:28:20 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 11 Sep 2012 23:28:20 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> <504DDF0B.6000400@ringsidecreative.com> Message-ID: Robert Kr?ger lesspain.de> writes: > It does not set the correct fourcc. It should be ap4h but it is apcn > (which is the fourcc for prores 422). Quicktime and other apple > software (like Final Cut) more or less blindly trust the fourcc. I > tried overriding it with -vtag but that didn't work either: Did you find out what else is missing? (Binary comparison) Carl Eugen From r.geetha.p at gmail.com Wed Sep 12 03:42:59 2012 From: r.geetha.p at gmail.com (Geetha Priya) Date: Wed, 12 Sep 2012 11:42:59 +1000 Subject: [FFmpeg-user] MPEG DASH compatible segments Message-ID: Hi All, Does FFMPEG support the latest streaming technique MPEG DASH? I know it produces HLS compatible TS segments. But I would like to know if it can produce DASH MPD files and segmentation and muxing? Do I have transcode using FFMPEG and use GPAC to create DASH segments? Thanks, Geetha From krueger at lesspain.de Wed Sep 12 09:56:48 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 12 Sep 2012 09:56:48 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> <504DDF0B.6000400@ringsidecreative.com> Message-ID: On Wed, Sep 12, 2012 at 1:28 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> It does not set the correct fourcc. It should be ap4h but it is apcn >> (which is the fourcc for prores 422). Quicktime and other apple >> software (like Final Cut) more or less blindly trust the fourcc. I >> tried overriding it with -vtag but that didn't work either: > > Did you find out what else is missing? > (Binary comparison) > No, my next step would have been to correct the fourcc and see if Final Cut behaves correctly. Other than that, I would not know what to look for. Pixel format seems to be OK, as it is detected correctly by ffmpeg when running it on the resulting file. I can try a hack to get the correct fourcc in there and check the above. From cehoyos at ag.or.at Wed Sep 12 10:33:32 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 12 Sep 2012 10:33:32 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> Message-ID: <201209121033.32150.cehoyos@ag.or.at> On Tuesday 11 September 2012 10:04:07 am Robert Kr?ger wrote: > > It does not set the correct fourcc. It should be ap4h but it is apcn > > (which is the fourcc for prores 422). Quicktime and other apple > > software (like Final Cut) more or less blindly trust the fourcc. I > > tried overriding it with -vtag but that didn't work either: > > looking at the code, it looks as if Prores 4444 is not modeled as a > profile at all (see variable prores_profile_info), so it never sets > the correct fourcc. Thank you for analyzing this - I simply didn't understand the problem;-) (I couldn't believe it was not reported before and not tested originally.) Could you test attached patch? It contains some guessing. Thank you, Carl Eugen -------------- next part -------------- diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 53c74a4..a9ab541 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -43,6 +43,7 @@ enum { PRORES_PROFILE_LT, PRORES_PROFILE_STANDARD, PRORES_PROFILE_HQ, + PRORES_PROFILE_4444, }; enum { @@ -121,7 +122,7 @@ static const struct prores_profile { int max_quant; int br_tab[NUM_MB_LIMITS]; int quant; -} prores_profile_info[4] = { +} prores_profile_info[5] = { { .full_name = "proxy", .tag = MKTAG('a', 'p', 'c', 'o'), @@ -153,8 +154,15 @@ static const struct prores_profile { .max_quant = 6, .br_tab = { 1566, 1216, 1070, 950 }, .quant = QUANT_MAT_HQ, - } -// for 4444 profile bitrate numbers are { 2350, 1828, 1600, 1425 } + }, + { + .full_name = "4444", + .tag = MKTAG('a', 'p', '4', 'h'), + .min_quant = 1, + .max_quant = 6, + .br_tab = { 2350, 1828, 1600, 1425 }, + .quant = QUANT_MAT_DEFAULT, + }, }; #define TRELLIS_WIDTH 16 @@ -890,6 +898,9 @@ static av_cold int encode_init(AVCodecContext *avctx) if (!avctx->coded_frame) return AVERROR(ENOMEM); + if (avctx->pix_fmt == PIX_FMT_YUV444P10) + ctx->profile = PRORES_PROFILE_4444; + ff_proresdsp_init(&ctx->dsp, avctx); ff_init_scantable(ctx->dsp.dct_permutation, &ctx->scantable, interlaced ? ff_prores_interlaced_scan @@ -1022,7 +1033,7 @@ static const AVOption options[] = { AV_OPT_TYPE_INT, { .i64 = 8 }, 1, MAX_MBS_PER_SLICE, VE }, { "profile", NULL, OFFSET(profile), AV_OPT_TYPE_INT, { .i64 = PRORES_PROFILE_STANDARD }, - PRORES_PROFILE_PROXY, PRORES_PROFILE_HQ, VE, "profile" }, + PRORES_PROFILE_PROXY, PRORES_PROFILE_4444, VE, "profile" }, { "proxy", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = PRORES_PROFILE_PROXY }, 0, 0, VE, "profile" }, { "lt", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = PRORES_PROFILE_LT }, @@ -1031,6 +1042,8 @@ static const AVOption options[] = { 0, 0, VE, "profile" }, { "hq", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = PRORES_PROFILE_HQ }, 0, 0, VE, "profile" }, + { "4444", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = PRORES_PROFILE_4444 }, + 0, 0, VE, "profile" }, { "vendor", "vendor ID", OFFSET(vendor), AV_OPT_TYPE_STRING, { .str = "Lavc" }, CHAR_MIN, CHAR_MAX, VE }, { "bits_per_mb", "desired bits per macroblock", OFFSET(bits_per_mb), From krueger at lesspain.de Wed Sep 12 11:14:51 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 12 Sep 2012 11:14:51 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: <201209121033.32150.cehoyos@ag.or.at> References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: On Wed, Sep 12, 2012 at 10:33 AM, Carl Eugen Hoyos wrote: > On Tuesday 11 September 2012 10:04:07 am Robert Kr?ger wrote: > >> > It does not set the correct fourcc. It should be ap4h but it is apcn >> > (which is the fourcc for prores 422). Quicktime and other apple >> > software (like Final Cut) more or less blindly trust the fourcc. I >> > tried overriding it with -vtag but that didn't work either: >> >> looking at the code, it looks as if Prores 4444 is not modeled as a >> profile at all (see variable prores_profile_info), so it never sets >> the correct fourcc. > > Thank you for analyzing this - I simply didn't understand the problem;-) > (I couldn't believe it was not reported before and not tested originally.) > Could you test attached patch? It contains some guessing. > I'll test the patch immediately. Just a quick update: I hacked the codec not to override the fourcc if it is set on the command line and the result was detected as Prores 4444 bei Quicktime but the alpha information was lost. I verified by making a clip with alpha, exporting it via final cut as prores 4444 and using the resulting clip in a final cut sequence as an overlay, which worked. Then I transcoded the exported clip using ffmpeg into 4444 using the hack and used that clip as an overlay and alpha was gone. If a one-frame-sample of prores 4444 with alpha would help, I can make a trac issue and attach it. I'll post the results of testing your patch next. Regards, Robert From krueger at lesspain.de Wed Sep 12 11:24:16 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 12 Sep 2012 11:24:16 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: On Wed, Sep 12, 2012 at 11:14 AM, Robert Kr?ger wrote: > On Wed, Sep 12, 2012 at 10:33 AM, Carl Eugen Hoyos wrote: >> On Tuesday 11 September 2012 10:04:07 am Robert Kr?ger wrote: >> >> >> Thank you for analyzing this - I simply didn't understand the problem;-) >> (I couldn't believe it was not reported before and not tested originally.) >> Could you test attached patch? It contains some guessing. >> I don't know if I am doing anything wrong but the patch does not apply to a clean git head here, although the patch file looks ok (not mangled by mail client): alejandro:ffmpeg krueger$ git pull Already up-to-date. alejandro:ffmpeg krueger$ git status # On branch master # Untracked files: # (use "git add ..." to include in what will be committed) # # patchprores444.diff # prores4444_with_transparency_ffmpeg.mov nothing added to commit but untracked files present (use "git add" to track) alejandro:ffmpeg krueger$ git apply --check patchprores444.diff error: patch failed: libavcodec/proresenc_kostya.c:43 error: libavcodec/proresenc_kostya.c: patch does not apply From volodomanov at gmail.com Wed Sep 12 11:36:18 2012 From: volodomanov at gmail.com (Dennis Volodomanov) Date: Wed, 12 Sep 2012 19:36:18 +1000 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: References: <504BDC95.5060804@gmail.com> <504DB3F0.50007@gmail.com> <504DCD3E.1020807@gmail.com> <504E782E.6040508@gmail.com> <504EE2C6.3060800@gmail.com> <504F3E3C.1070600@gmail.com> <504F42B9.6040301@gmail.com> <504F449F.5050501@gmail.com> <504FC0E6.9040807@gmail.com> Message-ID: <50505792.8040609@gmail.com> On 12/09/2012 9:03 AM, Carl Eugen Hoyos wrote: > git log -p 3e1cf49 shows you the change in commit 3e1cf49 > (a version that you know is bad) and all prior commits, the > first commit before 3e1cf49 is 2107009 that as you know is a > good version, so you only have to revert the one line from > commit 3e1cf49 but none of the (several ten-thousand) > earlier commits. > > I hope this clears it up, if not, try to remove > "&& has_decode_delay_been_guessed(st)" from > compute_pkt_fields() in libavformat/utils.c > Ok, just to confirm - I've built latest head with that removed and it works fine, so that is the problem spot there. Thanks! Dennis From cehoyos at ag.or.at Wed Sep 12 11:47:13 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 12 Sep 2012 09:47:13 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: Robert Kr?ger lesspain.de> writes: > I hacked the codec not to override the fourcc if it is > set on the command line and the result was detected as > Prores 4444 bei Quicktime but the alpha information was > lost. The encoder currently does not support alpha... > I verified by making a clip with alpha ... which is related to the fact that the decoder does not support it because afaik we don't have a sample. Please provide a sample, Carl Eugen From cehoyos at ag.or.at Wed Sep 12 11:48:16 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 12 Sep 2012 09:48:16 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: Robert Kr?ger lesspain.de> writes: > alejandro:ffmpeg krueger$ git apply --check patchprores444.diff $ patch -p1 References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: On Wed, Sep 12, 2012 at 11:47 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> I hacked the codec not to override the fourcc if it is >> set on the command line and the result was detected as >> Prores 4444 bei Quicktime but the alpha information was >> lost. > > The encoder currently does not support alpha... > >> I verified by making a clip with alpha > > ... which is related to the fact that the decoder does not > support it because afaik we don't have a sample. > > Please provide a sample, Carl Eugen The sample I have is one frame long and 220k in size. How do you want me to give it to you? From krueger at lesspain.de Wed Sep 12 12:13:44 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 12 Sep 2012 12:13:44 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: On Wed, Sep 12, 2012 at 11:48 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> alejandro:ffmpeg krueger$ git apply --check patchprores444.diff > > $ patch -p1 References: Message-ID: Hello, I'm trying to record some gameplay using ffmpeg. The game itself works flawlessly but captured video has tearing in it. I have VSync turned on in nvidia-settings and when it's turned off there and in game I can see tearing in game, too. Is it me doing something wrong or does ffmpeg lack some syncing capabilities? You can see command I used to record and libs versions on this video: https://docs.google.com/uc?export=download&confirm=no_antivirus&id=0BzijM0VPyPPQUnNELWhwcm55SFU I used ALSA snd-aloop module to record audio. From cehoyos at ag.or.at Wed Sep 12 13:06:32 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 12 Sep 2012 11:06:32 +0000 (UTC) Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: Robert Kr?ger lesspain.de> writes: > > The encoder currently does not support alpha... > > > >> I verified by making a clip with alpha > > > > ... which is related to the fact that the decoder does not > > support it because afaik we don't have a sample. > > > > Please provide a sample, Carl Eugen > > The sample I have is one frame long and 220k in size. > How do you want me to give it to you? If you don't want to send it to this list (or via pm) and don't want to open a ticket yourself (I will do it), please upload as explained on http://ffmpeg.org/bugreports.html Please also add the sample as rgba png, so the developers know what it should look like. Thank you, Carl Eugen From cehoyos at ag.or.at Wed Sep 12 13:15:22 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 12 Sep 2012 11:15:22 +0000 (UTC) Subject: [FFmpeg-user] grayscale video streaming in ffmpeg References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Marc Elliott gmail.com> writes: > > > 3 [volta]/home/student/elliott> ffmpeg/ffmpeg -qmin 2 -qmax 31 > > -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an > > -i testvideo_1000f.raw output.swf > > > I am fairly new to FFMPEG and I am afraid I am using either the wrong > > syntax or the wrong parameters in my command line. For some reason, > > the format of the output is yuv420p. > > The default video codec for swf is flv1 (Sorenson Video) and > this codec only support yuv420p. You can try -vcodec mjpeg but > this seems to have problems (I don't know if they are expected). I fixed muxing mjpeg in swf, but that does not help with your original problem: There is no video codec supported in swf that allows to encode gray - you can only set u and v to the appropriate values. Carl Eugen From krueger at lesspain.de Wed Sep 12 14:22:45 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 12 Sep 2012 14:22:45 +0200 Subject: [FFmpeg-user] Prores 444 being detected by quicktime as 422? In-Reply-To: References: <5049EAA8.3060506@ringsidecreative.com> <201209121033.32150.cehoyos@ag.or.at> Message-ID: On Wed, Sep 12, 2012 at 1:06 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> > The encoder currently does not support alpha... >> > >> >> I verified by making a clip with alpha >> > >> > ... which is related to the fact that the decoder does not >> > support it because afaik we don't have a sample. >> > >> > Please provide a sample, Carl Eugen >> >> The sample I have is one frame long and 220k in size. >> How do you want me to give it to you? > > If you don't want to send it to this list (or via pm) > and don't want to open a ticket yourself (I will do it), > please upload as explained on http://ffmpeg.org/bugreports.html > > Please also add the sample as rgba png, so the developers > know what it should look like. > I opened http://ffmpeg.org/trac/ffmpeg/ticket/1728 . Let me know if there's anything else that I can provide. Regards, Robert From wtfux.dev at googlemail.com Wed Sep 12 18:34:56 2012 From: wtfux.dev at googlemail.com (wtfux) Date: Wed, 12 Sep 2012 18:34:56 +0200 Subject: [FFmpeg-user] split and re-encode H.264 stream at IDR frame Message-ID: Hey, thanks for your help with my other questions, you were really helpful :). I got another question: I got a blu-ray disc with 2 episodes of a show in one m2ts file. Both episodes share the same H.264 and PCM streams and the second one is selectable from BD menu. I want to re-encode the episodes to H.264 (with less bitrate) and flac. The problem is to split the clip as the episodes don't have the same length. At the point where the second episode starts there is a IDR frame in the H.264 stream and I want ffmpeg to split exactly before that frame. The blu-ray menu says that the second episode starts at 00:23:42.046. I used Avidemux to look where the IDR/I frame is. Avidemux says that the IDR frame is at 00:23:42.088 and the frame prior to that is at 00:23:42.047. Well the times of Avidemux and the BD menu don't match, I guess Avidemux is reading the file incorrectly. I used FFprobe to dump frame information and this is what I got: The frame ahead of the IDR frame: [FRAME] media_type=video key_frame=0 pkt_pts=1422046 pkt_pts_time=0:23:42.046000 pkt_dts=1422046 pkt_dts_time=0:23:42.046000 pkt_duration=41 pkt_duration_time=0:00:00.041000 pkt_pos=5828419424 width=1920 height=1080 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=P coded_picture_number=34094 display_picture_number=0 interlaced_frame=0 top_field_first=0 repeat_pict=0 reference=0 [/FRAME] And the IDR frame itself: [FRAME] media_type=video key_frame=1 pkt_pts=1422087 pkt_pts_time=0:23:42.087000 pkt_dts=1422087 pkt_dts_time=0:23:42.087000 pkt_duration=41 pkt_duration_time=0:00:00.041000 pkt_pos=5828419597 width=1920 height=1080 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=I coded_picture_number=34095 display_picture_number=0 interlaced_frame=0 top_field_first=0 repeat_pict=0 reference=3 [/FRAME] The times match with the BD menu however if pkt_dts_time is the time where the frame *starts* then it would be off by 1 frame (the bd menu would refer to the last frame of the first episode instead of the first frame of the second episode). However this is FFprobe's output for the FIRST frame of the whole file: [FRAME] media_type=video key_frame=1 pkt_pts=42 pkt_pts_time=0:00:00.042000 pkt_dts=42 pkt_dts_time=0:00:00.042000 pkt_duration=N/A pkt_duration_time=N/A pkt_pos=799 width=1920 height=1080 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=I coded_picture_number=0 display_picture_number=0 interlaced_frame=0 top_field_first=0 repeat_pict=0 reference=3 [/FRAME] pkt_pts_time is not 0 what I would expect for the first frame of a video to be so I assume it's the time when the frame is *over* and not where it *starts*? Please correct me if I'm wrong, I'm completely unsure here. So all in all, if I want to create two videos from this file I need to use these commands? ffmpeg -i INPUT -c:v libx264 -c:a flac ... -t 0:23:42.087 OUTPUT #first episode or maybe 0:23:42.046 which is the pkt_dts_time of the *second last* frame which means the time where the *last* frame starts if I'm correct. ffmpeg -ss 0:23:42.087 -i INPUT -c:v libx264 -c:a flac ... OUTPUT #second episode, first frame of the second episode if I'm correct, also the same time the BD menu entry suggests. Or is there perhaps a much easier way to split at the IDR frame? I couldn't find out if I can tell ffmpeg a frame count where it should end or start. Don't know if that would work either because I get a "[h264 @ 00000000015a2800] number of reference frames (0+3) exceeds max (2; probably corrupt input), discarding one" while decoding and that could bring the whole thing out of sync maybe. Sorry for such a long post again. From elliott2w1 at gmail.com Wed Sep 12 18:43:24 2012 From: elliott2w1 at gmail.com (Marc Elliott) Date: Wed, 12 Sep 2012 09:43:24 -0700 Subject: [FFmpeg-user] grayscale video streaming in ffmpeg In-Reply-To: References: Message-ID: Ok, I get what you're saying. I don't have to use .swf. I can use any type of video output. How do you take advantaget of the -pix_fmt flag in ffmpeg in order to specify the pixel formats GRAY8, GRAY16LE, and GRAY16BE? There has to be someway to implement these commands, right? Thanks again for your input. On 9/12/12, Carl Eugen Hoyos wrote: > Carl Eugen Hoyos ag.or.at> writes: > >> Marc Elliott gmail.com> writes: >> >> > 3 [volta]/home/student/elliott> ffmpeg/ffmpeg -qmin 2 -qmax 31 >> > -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an >> > -i testvideo_1000f.raw output.swf >> >> > I am fairly new to FFMPEG and I am afraid I am using either the wrong >> > syntax or the wrong parameters in my command line. For some reason, >> > the format of the output is yuv420p. >> >> The default video codec for swf is flv1 (Sorenson Video) and >> this codec only support yuv420p. You can try -vcodec mjpeg but >> this seems to have problems (I don't know if they are expected). > > I fixed muxing mjpeg in swf, but that does not help with your > original problem: There is no video codec supported in swf > that allows to encode gray - you can only set u and v to the > appropriate values. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From andycivil at gmail.com Wed Sep 12 21:01:07 2012 From: andycivil at gmail.com (Andy Civil) Date: Wed, 12 Sep 2012 15:01:07 -0400 Subject: [FFmpeg-user] XvidExpert needed for "transcoding" xml into ffmpeg parameters In-Reply-To: <504F29BC.2040906@googlemail.com> References: <504F29BC.2040906@googlemail.com> Message-ID: <5050DBF3.30100@gmail.com> On 2012-09-11 8:08 AM, David Wagner wrote: > Hey, > > I have this xml and need it convertet into parameter for ffmpeg. But how in the > hell shall I find all the right commands in ffmpeg? > I don't have the time and the knowledge to for doing that. Is there anyone who > really knows the parameter conversion. I tried some GUIs but they all produced > nothing of worth. I'm not an "expert" but I'm hoping that if I start with the parameters I understand, people will add or correct any I miss. Many of the lines in this are irrelevant. They are formalities such as "Name", or they're defining things as not applying in this case, such as QPel (false). Yet others simply control the way the coder works, e.g. Turbo (false). Yet others are options; only one FourCC can be in any file, and the XML gives four! Even further, some options are plainly silly: if interlacing is "false" then we don't need to know that "bottom field first" is "true" - LOL I will translate the options that I think you actually need: > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > XviD_Default > -c:v libxvid > 3 > 700 > 300 -g 300 > 2 -bf 2 > 3 -qmin 3 > 5 -qmax 5 > false > false > false > true -trellis 2 > 12 > > XVID > DIVX > DX50 > MP4V > -vtag XVID > .stats > > 0 > > 2 If you want two pass encoding then you should read up about it; basically you do it twice, first with "-pass 1" then with "-pass 2" but it's ONLY relevant if you're trying to squeeze into a certain size (e.g. fit on a CD). > 1 -threads 1 > 6 -dia_size 6 > 1 > 2 > 1 > 31 > 1 > 31 > 150 > 100 > 10 > 1 > 20 > 5 > 5 > 5 > 0 > 0 > 16 > 100 > 0 > 0 > 0 > 0 > 0 > false > false > false > false > false > true > true > false > false > true > false > false > 0 > auto > > > The other options that I generally use for XVID are -mbd rd -flags +mv4+aic -cmp 2 -subcmp 2 and also -vb 1500k which sets the bitrate. Hope this helps. What about audio? -- Andy From paulj at fastmail.es Wed Sep 12 21:22:46 2012 From: paulj at fastmail.es (paulj at fastmail.es) Date: Wed, 12 Sep 2012 21:22:46 +0200 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: <50505792.8040609@gmail.com> References: <504BDC95.5060804@gmail.com>, , <50505792.8040609@gmail.com> Message-ID: <5050E106.23631.1A8D541@paulj.fastmail.es> > On 12/09/2012 9:03 AM, Carl Eugen Hoyos wrote: > > git log -p 3e1cf49 shows you the change in commit 3e1cf49 > > (a version that you know is bad) and all prior commits, the > > first commit before 3e1cf49 is 2107009 that as you know is a > > good version, so you only have to revert the one line from > > commit 3e1cf49 but none of the (several ten-thousand) > > earlier commits. > > > > I hope this clears it up, if not, try to remove > > "&& has_decode_delay_been_guessed(st)" from > > compute_pkt_fields() in libavformat/utils.c > > > > Ok, just to confirm - I've built latest head with that removed and it > works fine, so that is the problem spot there. > I can confirm that it also solves the bug I found, the one where dumping an H264 stream from an Axis camera gave an "mp4 @ 0xaa897a0] pts (0) < dts (1) in stream 0 av_interleaved_write_frame(): Invalid argument" error. I just updated to the last git version (I think...), removed that part, and it worked: [paulo at webserver ffmpeg]$ ./ffmpeg -rtsp_transport tcp -i rtsp://root:root at 192.168.1.131:554/axis-media/media.amp?streamprofile=Media?tcp -vcodec copy -acodec copy ../axis.mp4 ffmpeg version N-43891-g65b552c Copyright (c) 2000-2012 the FFmpeg developers built on Sep 12 2012 21:02:08 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-50) configuration: --enable-encoder=libx264 --enable-libx264 --enable-runtime-cpudetect --enable-libmp3lame --enable-gpl --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 54.100 / 54. 54.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 13.101 / 3. 13.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rtsp @ 0xa8245c0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://root:root at 192.168.1.131:554/axis-media/media.amp?streamprofile=Media?tcp': Metadata: title : Media Presentation Duration: N/A, start: 0.100067, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 29.97 tbr, 90k tbn, 180k tbc Output #0, mp4, to '../axis.mp4': Metadata: title : Media Presentation encoder : Lavf54.25.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 34 fps=0.0 q=-1.0 size= 2736kB time=00:00:01.93 bitrate=11564.6kbits frame= 45 fps= 43 q=-1.0 size= 3614kB time=00:00:02.33 bitrate=12662.2kbits frame= 58 fps= 37 q=-1.0 size= 4663kB time=00:00:03.07 bitrate=12440.9kbits frame= 71 fps= 34 q=-1.0 size= 5700kB time=00:00:03.57 bitrate=13076.8kbits Paulo. ------------------------------------------- "Oh, don't worry kids. Most of you will never fall in love. You'll just marry for fear of dying alone." The Simpsons. ------------------------------------------- From rogerdpack2 at gmail.com Wed Sep 12 21:24:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 12 Sep 2012 13:24:55 -0600 Subject: [FFmpeg-user] split and re-encode H.264 stream at IDR frame In-Reply-To: References: Message-ID: > I want to re-encode the episodes to H.264 (with less bitrate) and flac. The > problem is to split the clip as the episodes don't have the same length. > At the point where the second episode starts there is a IDR frame in the > H.264 stream and I want ffmpeg to split exactly before that frame. You should be able to split at it using "-ss" see http://ffmpeg.org/trac/ffmpeg/wiki/Seeking%20with%20FFmpeg Since you're re-encoding you should be able to jump anywhere you want... > > The blu-ray menu says that the second episode starts at 00:23:42.046. I > used Avidemux to look where the IDR/I frame is. Avidemux says that the IDR > frame is at 00:23:42.088 and the frame prior to that is at 00:23:42.047. > Well the times of Avidemux and the BD menu don't match, I guess Avidemux is > reading the file incorrectly. Yeah Avidemux assumes constant frame rate, I know this is wrong for at least some mpeg streams, dunno if it's the same problem you're seeing. It's what taught me not to trust it, anyway :) > However this is FFprobe's output for the FIRST frame of the whole file: > > [FRAME] > media_type=video > key_frame=1 > pkt_pts=42 > pkt_pts_time=0:00:00.042000 > pkt_dts=42 > pkt_dts_time=0:00:00.042000 > pkt_duration=N/A > pkt_duration_time=N/A > pkt_pos=799 > width=1920 > height=1080 > pix_fmt=yuv420p > sample_aspect_ratio=1:1 > pict_type=I > coded_picture_number=0 > display_picture_number=0 > interlaced_frame=0 > top_field_first=0 > repeat_pict=0 > reference=3 > [/FRAME] > > pkt_pts_time is not 0 what I would expect for the first frame of a video to > be so I assume it's the time when the frame is *over* and not where it > *starts*? Please correct me if I'm wrong, I'm completely unsure here. pts is when it starts. Maybe it's a blu-ray thing to not start precisely at second 0 to give it time to get going... > Or is there perhaps a much easier way to split at the IDR frame? I couldn't > find out if I can tell ffmpeg a frame count where it should end or start. the select filter has an "n" option if that helps (I kind of doubt it would do what you're looking for though...) > Don't know if that would work either because I get a "[h264 @ > 00000000015a2800] number of reference frames (0+3) exceeds max (2; probably > corrupt input), discarding one" while decoding and that could bring the > whole thing out of sync maybe. What's your complete output? Do you get this no matter what command you use? -r From rogerdpack2 at gmail.com Wed Sep 12 21:26:20 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 12 Sep 2012 13:26:20 -0600 Subject: [FFmpeg-user] grayscale video streaming in ffmpeg In-Reply-To: References: Message-ID: On Wed, Sep 12, 2012 at 10:43 AM, Marc Elliott wrote: > Ok, I get what you're saying. I don't have to use .swf. I can use > any type of video output. How do you take advantaget of the -pix_fmt > flag in ffmpeg in order to specify the pixel formats GRAY8, GRAY16LE, > and GRAY16BE? There has to be someway to implement these commands, > right? Maybe convert it to "gray" then to yuv444p or whatever works well there. -vf format=gray,format=yuv422p From rogerdpack2 at gmail.com Wed Sep 12 22:14:00 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 12 Sep 2012 14:14:00 -0600 Subject: [FFmpeg-user] libopus encoder Message-ID: If anybody's up to it, I got a request for libopus as an encoder, and, since it's mostly been released now it might be nice. Just throwin' it out there ;) -roger- From paulj at fastmail.es Wed Sep 12 22:16:14 2012 From: paulj at fastmail.es (paulj at fastmail.es) Date: Wed, 12 Sep 2012 22:16:14 +0200 Subject: [FFmpeg-user] How to find the last working GIT version? In-Reply-To: <5050E106.23631.1A8D541@paulj.fastmail.es> References: <504BDC95.5060804@gmail.com>, <50505792.8040609@gmail.com>, <5050E106.23631.1A8D541@paulj.fastmail.es> Message-ID: <5050ED8E.546.1D9C598@paulj.fastmail.es> > > > On 12/09/2012 9:03 AM, Carl Eugen Hoyos wrote: > > > git log -p 3e1cf49 shows you the change in commit 3e1cf49 > > > (a version that you know is bad) and all prior commits, the > > > first commit before 3e1cf49 is 2107009 that as you know is a > > > good version, so you only have to revert the one line from > > > commit 3e1cf49 but none of the (several ten-thousand) > > > earlier commits. > > > > > > I hope this clears it up, if not, try to remove > > > "&& has_decode_delay_been_guessed(st)" from > > > compute_pkt_fields() in libavformat/utils.c > > > > > > > Ok, just to confirm - I've built latest head with that removed and it > > works fine, so that is the problem spot there. > > > > > I can confirm that it also solves the bug I found, the one where dumping > an H264 > stream from an Axis camera gave an "mp4 @ 0xaa897a0] pts (0) < dts (1) in > stream 0 > av_interleaved_write_frame(): Invalid argument" error. I just updated to > the last git version (I > think...), removed that part, and it worked: > > Oops, sorry. The output I posted wasn't from the latest version (this is what happens for not knowing how to use git). However, now I've updated to the latest version (for real) and I can confirm that the same thing happens: it doesn't work, but if I remove the above part of the code, it starts working. Below is the output (of the version with the modified code). Do you guys need me to open a ticket and add there all the information related to this bug? [paulo at webserver ffmpeg]$ ./ffmpeg -v 9 -loglevel 99 -rtsp_transport tcp -i rtsp://root:root at 192.168.1.131:554/axis-media/media.amp?streamprofile=Media?tcp -vcodec copy -acodec copy -t 6 ../axis.mp4 ffmpeg version N-44400-g2de8877 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 12 2012 22:07:41 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-50) configuration: --enable-encoder=libx264 --enable-libx264 --enable-runtime-cpudetect --enable-libmp3lame --enable-gpl --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib libavutil 51. 72.100 / 51. 72.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 26.101 / 54. 26.101 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rtsp @ 0xacac5e0] SDP: v=0 o=- 1288188682311012 1288188682311012 IN IP4 192.168.1.131 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 b=AS:50000 t=0 0 a=control:rtsp://192.168.1.131:554/axis-media/media.amp?streamprofile=Media?tcp a=range:npt=0.000000- m=video 0 RTP/AVP 96 b=AS:50000 a=framerate:25.0 a=transform:1,0,0;0,1,0;0,0,1 a=control:rtsp://192.168.1.131:554/axis-media/media.amp/trackID=1?streamprofile=Media?tc p a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV,aM48gA== [rtsp @ 0xacac5e0] video codec set to: h264 [NULL @ 0xacb47c0] RTP Packetization Mode: 1 [NULL @ 0xacb47c0] RTP Profile IDC: 42 Profile IOP: 0 Level: 29 [NULL @ 0xacb47c0] Extradata set to 0xacb4c40 (size: 30)! [rtsp @ 0xacac5e0] hello state=0 [rtsp @ 0xacac5e0] All info found rfps: 29.666667 0.014085 Last message repeated 1 times rfps: 29.750000 0.008001 Last message repeated 1 times rfps: 29.833333 0.003804 Last message repeated 1 times rfps: 29.916667 0.001493 Last message repeated 1 times rfps: 30.000000 0.001069 rfps: 30.083333 0.002531 Last message repeated 1 times rfps: 30.166667 0.005879 Last message repeated 1 times rfps: 30.250000 0.011113 Last message repeated 1 times rfps: 30.333333 0.018234 rfps: 59.666667 0.015217 Last message repeated 1 times rfps: 59.750000 0.009652 Last message repeated 1 times rfps: 59.833333 0.005973 Last message repeated 1 times rfps: 59.916667 0.004181 rfps: 60.000000 0.004275 rfps: 29.970030 0.001004 rfps: 59.940060 0.004017 [rtsp @ 0xacac5e0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://root:root at 192.168.1.131:554/axis-media/media.amp?streamprofile=Media?tcp': Metadata: title : Media Presentation Duration: N/A, start: 0.100078, bitrate: N/A Stream #0:0, 22, 1/90000: Video: h264 (Baseline), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 1/180000, 29.97 tbr, 90k tbn, 180k tbc Output #0, mp4, to '../axis.mp4': Metadata: title : Media Presentation encoder : Lavf54.26.101 Stream #0:0, 0, 1/90000: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 1/90000, q=2-31, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 33 fps=0.0 q=-1.0 size= 2689kB time=00:00:01.90 bitrate=11587.8kbits frame= 44 fps= 43 q=-1.0 size= 3581kB time=00:00:02.33 bitrate=12545.4kbits frame= 56 fps= 36 q=-1.0 size= 4561kB time=00:00:03.07 bitrate=12169.4kbits frame= 68 fps= 33 q=-1.0 size= 5531kB time=00:00:03.53 bitrate=12803.5kbits frame= 80 fps= 31 q=-1.0 size= 6504kB time=00:00:04.10 bitrate=12985.7kbits frame= 92 fps= 30 q=-1.0 size= 7487kB time=00:00:04.50 bitrate=13605.6kbits frame= 104 fps= 29 q=-1.0 size= 8457kB time=00:00:05.04 bitrate=13746.6kbits frame= 117 fps= 28 q=-1.0 size= 9508kB time=00:00:05.57 bitrate=13978.9kbits No more output streams to write to, finishing. frame= 127 fps= 27 q=-1.0 Lsize= 10331kB time=00:00:05.97 bitrate=14170.7kbits/s video:10329kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.021822% Paulo. ------------------------------------------- "Oh, don't worry kids. Most of you will never fall in love. You'll just marry for fear of dying alone." The Simpsons. ------------------------------------------- From lou at lrcd.com Wed Sep 12 22:39:18 2012 From: lou at lrcd.com (Lou) Date: Wed, 12 Sep 2012 12:39:18 -0800 Subject: [FFmpeg-user] libopus encoder In-Reply-To: References: Message-ID: <20120912123918.06c04e2d@lrcd.com> On Wed, 12 Sep 2012 14:14:00 -0600 Roger Pack wrote: > If anybody's up to it, I got a request for libopus as an encoder, and, > since it's mostly been released now it might be nice. > Just throwin' it out there ;) > -roger- I suggest creating an enhancement/wish on the bug tracker. From lou at lrcd.com Wed Sep 12 22:49:40 2012 From: lou at lrcd.com (Lou) Date: Wed, 12 Sep 2012 12:49:40 -0800 Subject: [FFmpeg-user] X11grab tearing In-Reply-To: References: Message-ID: <20120912124940.3cb43737@lrcd.com> On Wed, 12 Sep 2012 14:43:17 +0400 Serge Shpikin wrote: > Hello, > > I'm trying to record some gameplay using ffmpeg. The game itself works > flawlessly but captured video has tearing in it. I have VSync turned on in > nvidia-settings and when it's turned off there and in game I can see > tearing in game, too. Is it me doing something wrong or does ffmpeg lack > some syncing capabilities? You can see command I used to record and libs > versions on this video: > https://docs.google.com/uc?export=download&confirm=no_antivirus&id=0BzijM0VPyPPQUnNELWhwcm55SFU > > I used ALSA snd-aloop module to record audio. Download is 140 MB. Can you provide the ffmpeg command and the complete console output here? From nicolas.george at normalesup.org Wed Sep 12 23:15:09 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 12 Sep 2012 23:15:09 +0200 Subject: [FFmpeg-user] libopus encoder In-Reply-To: References: Message-ID: <20120912211509.GA30175@phare.normalesup.org> Le septidi 27 fructidor, an CCXX, Roger Pack a ?crit?: > If anybody's up to it, I got a request for libopus as an encoder, and, > since it's mostly been released now it might be nice. I have it in my TODO list, but less free time than two weeks ago. If anyone wants to work on it, do not hesitate, but please let me know to avoid duplicated efforts. 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 Wed Sep 12 23:49:26 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 12 Sep 2012 21:49:26 +0000 (UTC) Subject: [FFmpeg-user] grayscale video streaming in ffmpeg References: Message-ID: Marc Elliott gmail.com> writes: > How do you take advantaget of the -pix_fmt flag in ffmpeg > in order to specify the pixel formats GRAY8, GRAY16LE, > and GRAY16BE? The tiff, png, sgi, jpegls, pam and libopenjpeg encoders support both gray and gray16, you can also use ffv1 if you also receive with FFmpeg. (Some more encoders - qtrle - support gray but not gray16.) Carl Eugen From eurekafag at eureka7.ru Thu Sep 13 00:53:05 2012 From: eurekafag at eureka7.ru (Serge Shpikin) Date: Thu, 13 Sep 2012 02:53:05 +0400 Subject: [FFmpeg-user] X11grab tearing In-Reply-To: <20120912124940.3cb43737@lrcd.com> References: <20120912124940.3cb43737@lrcd.com> Message-ID: Sorry, this video is really too big to just show the problem. Here's the command I used: ffmpeg -f x11grab -s 1920x1200 -r 30 -i :0.0 -f alsa -i loop -vcodec libx264 -preset ultrafast -acodec libfaac -ac 2 -ar 48000 video.mp4 The output was quite big and I can't repeat the recording right now. I've cut the video to first ten seconds (5.6 Mb) where tearing is quite visible on framestep viewing: http://rghost.net/private/40334000/f3835aac094ca2292efcc658bf49511b I don't claim it's a bug in ffmpeg, I'm just curios if I'm the only one who get this. Linux gaming isn't a usual thing so screen capturing is often limited to screencasts with mostly static background and text. I read about troubles with vsync in NVIDIA's blob and some issues in Wine but it's really hard to notice tearing on 60 FPS. When vsync is turned off FPS is quite high which makes tearing visible very well but when FPS is equal to the refresh rate (even if vsync doesn't work or broken) then there's only one tear possible if I understand it correctly. From r.geetha.p at gmail.com Thu Sep 13 01:38:23 2012 From: r.geetha.p at gmail.com (Geetha Priya) Date: Thu, 13 Sep 2012 09:38:23 +1000 Subject: [FFmpeg-user] MPEG DASH compatible segments In-Reply-To: References: Message-ID: Hi All, Does FFMPEG support the latest streaming technique MPEG DASH? I know it produces HLS compatible TS segments. But I would like to know if it can produce DASH MPD files and segmentation and muxing? Do I have transcode using FFMPEG and use GPAC to create DASH segments? Thanks, Geetha From wkevils at gmail.com Thu Sep 13 04:18:20 2012 From: wkevils at gmail.com (Kevin Wilson) Date: Thu, 13 Sep 2012 05:18:20 +0300 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: <20120911103539.6717085f@lrcd.com> References: <20120911103539.6717085f@lrcd.com> Message-ID: Hi, Lou. Thanks! I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi And when loading the avi in a DVD I still get the HD error. I tried to fetch the avi properties, and this is what I got: ffmpeg -i ubunutuArmNonHD.avi ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 22:00:57 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) 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' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --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. 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 Input #0, avi, from 'ubunutuArmNonHD.avi': Metadata: encoder : Lavf53.32.100 Duration: 00:52:24.77, start: 0.000000, bitrate: 747 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s At least one output file must be specified So any idea: 1) Is this avi is HD or not ? could it be something in the header ? 2) what should I do to create non HD avi ? regards, Kevin On Tue, Sep 11, 2012 at 9:35 PM, Lou wrote: > On Tue, 11 Sep 2012 13:25:21 +0300 > Kevin Wilson wrote: > >> Hi, >> I have downloaded from the web a video file with webm extension: >> ubunutuArm.webm (some lecture in video) >> >> Now, I converted it to avi thus: >> ffmpeg -i ubunutuArm.webm ubunutuArm.avi >> >> and put the ubunutuArm.avi on disk On Key. >> When trying to view it on TV with a DVD I see this >> messsage: >> "HD is not supported". >> Indeed, HD is not supported in my DVD and TV. >> Is there a way I can convert this video file with ffmpeg >> to an AVI so the result will be non HD ? > > ffmpeg -i input -filter:v scale=640:-1 -q:v 3 output > > I added the scale filter which will create an output that is 640 pixels > wide and the height will be automatically calculated to preserve the > aspect ratio. Of course you can change 640 to whatever desired width > you want. You can also switch the position of the -1 and provide a > desired height. > > The other addition controls the output quality to something probably > better than the default of "-b:v 200k". > >> (Second question: given some avi file, is there a way >> I can know whether it is in HD or not ?) > > You can see the size of a video stream with the output of: > ffmpeg -i input > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From david.wagner123 at googlemail.com Thu Sep 13 05:27:57 2012 From: david.wagner123 at googlemail.com (David Wagner) Date: Thu, 13 Sep 2012 05:27:57 +0200 Subject: [FFmpeg-user] XvidExpert needed for "transcoding" xml into ffmpeg parameters In-Reply-To: <5050DBF3.30100@gmail.com> References: <504F29BC.2040906@googlemail.com> <5050DBF3.30100@gmail.com> Message-ID: <505152BD.7010806@googlemail.com> Am 12.09.2012 21:01, schrieb Andy Civil: > On 2012-09-11 8:08 AM, David Wagner wrote: >> Hey, >> >> I have this xml and need it convertet into parameter for ffmpeg. But >> how in the >> hell shall I find all the right commands in ffmpeg? >> I don't have the time and the knowledge to for doing that. Is there >> anyone who >> really knows the parameter conversion. I tried some GUIs but they all >> produced >> nothing of worth. > > I'm not an "expert" but I'm hoping that if I start with the parameters > I understand, people will add or correct any I miss. > > Many of the lines in this are irrelevant. They are formalities such as > "Name", or they're defining things as not applying in this case, such > as QPel (false). Yet others simply control the way the coder works, > e.g. Turbo (false). Yet others are options; only one FourCC can be in > any file, and the XML gives four! Even further, some options are > plainly silly: if interlacing is "false" then we don't need to know > that "bottom field first" is "true" - LOL > > > I will translate the options that I think you actually need: > >> >> >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> XviD_Default >> > -c:v libxvid > >> 3 >> 700 >> 300 > -g 300 > >> 2 > -bf 2 > >> 3 > -qmin 3 > >> 5 > -qmax 5 > >> false >> false >> false >> true > -trellis 2 > >> 12 >> >> XVID >> DIVX >> DX50 >> MP4V >> > -vtag XVID > >> .stats >> >> 0 >> >> 2 > If you want two pass encoding then you should read up about it; > basically you do it twice, first with "-pass 1" then with "-pass 2" > but it's ONLY relevant if you're trying to squeeze into a certain size > (e.g. fit on a CD). > >> 1 > -threads 1 > >> 6 > -dia_size 6 > >> 1 >> 2 >> 1 >> 31 >> 1 >> 31 >> 150 >> 100 >> 10 >> 1 >> 20 >> 5 >> 5 >> 5 >> 0 >> 0 >> 16 >> 100 >> 0 >> 0 >> 0 >> 0 >> 0 >> false >> false >> false >> false >> false >> true >> true >> false >> false >> true >> false >> false >> 0 >> auto >> >> >> > > The other options that I generally use for XVID are > -mbd rd -flags +mv4+aic -cmp 2 -subcmp 2 > and also > -vb 1500k > which sets the bitrate. > > Hope this helps. What about audio? > Thank you very much. Unfortunately I now used the command line utility XvidEncraw which took me 5 minutes, as it has almost all of the parameters as default settings and his paramterlist as a xvid only encoder gives it a high usability mark. But perhaps I will integrate it into my program if I have the time. Perhaps it makes sense so see which are the default parameters set by ffmpeg. Do you know how I can read out the default parameters of an ffmpeg encoder so I can see which parameter I need to change and which not? David From lou at lrcd.com Thu Sep 13 05:41:34 2012 From: lou at lrcd.com (Lou) Date: Wed, 12 Sep 2012 19:41:34 -0800 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: References: <20120911103539.6717085f@lrcd.com> Message-ID: <20120912194134.39c49c92@lrcd.com> On Thu, 13 Sep 2012 05:18:20 +0300 Kevin Wilson wrote: [trimmed] > Hi, Lou. > > Thanks! > > I have tried: > ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi > > And when loading the avi in a DVD I still get the HD error. What is the exact error? What make and model is this DVD player? > I tried to fetch the avi properties, and this is what I got: > > > ffmpeg -i ubunutuArmNonHD.avi > > ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers [trimmed] > Input #0, avi, from 'ubunutuArmNonHD.avi': > Metadata: > encoder : Lavf53.32.100 > Duration: 00:52:24.77, start: 0.000000, bitrate: 747 kb/s > Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), > yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc -----------^ Your output is 640x360. This can be considered standard definition or "not HD". > Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, > s16, 128 kb/s > At least one output file must be specified > > > So any idea: > 1) Is this avi is HD or not ? could it be something in the header ? It is not HD. ffmpeg will show output size in the console output. Look above to see my awesome ASCII art arrow for an example. > 2) what should I do to create non HD avi ? You already created a non HD file; therefore we need to determine what the actual issue with the player is. Do you have a video that does play on this picky device? If yes, then show the complete output of "ffmpeg -i input-file-that-actually-does-work-in-your-dvd-player.avi". > regards, > Kevin Note that top-posting is not recommended for this mailing list. From andycivil at gmail.com Thu Sep 13 06:38:40 2012 From: andycivil at gmail.com (Andy Civil) Date: Thu, 13 Sep 2012 00:38:40 -0400 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: References: <20120911103539.6717085f@lrcd.com> Message-ID: <50516350.4080100@gmail.com> On 2012-09-12 10:18 PM, Kevin Wilson wrote: > Hi, Lou. > > Thanks! > > I have tried: > ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi > I have made a DVD file in the past, can you try this? However, I notice that some syntax has changed in the last months, forgive me if some of these parameters need their syntax updating... ffmpeg -i ubunutuArm.webm -target ntsc-dvd -bf 2 -flags2 ivlc -dc 10 -b 8000000 -maxrate 9000000 -bufsize 224kB -acodec mp2 -ac 2 -ab 128000 -vf scale=720:480 ubunutuArmNonHD.mpg -- Andy From andycivil at gmail.com Thu Sep 13 06:49:38 2012 From: andycivil at gmail.com (Andy Civil) Date: Thu, 13 Sep 2012 00:49:38 -0400 Subject: [FFmpeg-user] XvidExpert needed for "transcoding" xml into ffmpeg parameters In-Reply-To: <505152BD.7010806@googlemail.com> References: <504F29BC.2040906@googlemail.com> <5050DBF3.30100@gmail.com> <505152BD.7010806@googlemail.com> Message-ID: <505165E2.3060208@gmail.com> On 2012-09-12 11:27 PM, David Wagner wrote: > > Thank you very much. Unfortunately I now used the command line utility > XvidEncraw which took me 5 minutes, as it has almost all of the parameters as > default settings and his paramterlist as a xvid only encoder gives it a high > usability mark. But perhaps I will integrate it into my program if I have the > time. Perhaps it makes sense so see which are the default parameters set by > ffmpeg. Do you know how I can read out the default parameters of an ffmpeg > encoder so I can see which parameter I need to change and which not? > I don't know how to answer that; I know that FFmpeg will choose sensible defaults wherever possible and/or will mimic the input file where relevant; hence, it frequently "just works". If you use a 'preset' then these preset files (extension .ffpreset) are human-readable. I did have trouble making a XVID file for a DVD player I have that claims to be able to play DivX; the command I finally used was: c:\ffmpeg\bin\ffmpeg -i blch-01.mkv -sn -c:a libmp3lame -ar 48000 -ab 128k -ac 2 -c:v libxvid -crf 24 -vtag DIVX -vf scale=640:480 -aspect 4:3 -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 30 -vb 1500k -y blch-01.avi (It was important to me to erase the subtitle stream because I couldn't turn the darn thing off!) I suggest that copying this form should work for you (nuke the windows path of course, if on Linux) since I believe my rather old DVD player is rather fussy, and several of these files worked. Good luck. -- Andy From hiteshc531 at gmail.com Thu Sep 13 09:00:37 2012 From: hiteshc531 at gmail.com (hitesh) Date: Thu, 13 Sep 2012 00:00:37 -0700 (PDT) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> Message-ID: <1347519637183-4653413.post@n4.nabble.com> Hi, I have few doubts regarding utime in ffmpeg. Suppose i am running ffmpeg vp8 decoder on multicore processors(like pandaboard with ubuntu image). If there are two threads running parallely on both cores. The final transcode time is utime :: 25000000 us. Is process time added for both cores(ie, both threads) ? what is the final execution time(should i halve the process time) ? Regards, hitesh -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Benchmarking-with-ffmpeg-What-are-the-parameters-meaning-tp4653297p4653413.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dashing.meng at gmail.com Thu Sep 13 11:00:43 2012 From: dashing.meng at gmail.com (littlebat) Date: Thu, 13 Sep 2012 17:00:43 +0800 Subject: [FFmpeg-user] Is there a video or audio file can't be seekable or can't get it's duration? Message-ID: <20120913170043.192a3ef1.dashing.meng@gmail.com> Hi, Three quesiton: 1, Is there a video or audio file can't be seekable and can't get it's duration? 2, Is there a video or audio file can be seekable but we can't get it's duration ? 3, Is there a video or audio file we can get it's duration but can't be seekable? It's could be better if you can tell me more detail about the questions. Thanks. From rogerdpack2 at gmail.com Thu Sep 13 15:11:31 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 13 Sep 2012 07:11:31 -0600 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <1347519637183-4653413.post@n4.nabble.com> References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> Message-ID: > If there are two threads running parallely on both cores. The final > transcode time is utime :: 25000000 us. Where are you getting "final transcode" time from? If you want to calculate just cpu and are on linux, you can use the "time" command like $ "time ffmpeg ..." -r From rogerdpack2 at gmail.com Thu Sep 13 15:12:05 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 13 Sep 2012 07:12:05 -0600 Subject: [FFmpeg-user] Is there a video or audio file can't be seekable or can't get it's duration? In-Reply-To: <20120913170043.192a3ef1.dashing.meng@gmail.com> References: <20120913170043.192a3ef1.dashing.meng@gmail.com> Message-ID: > Three quesiton: > 1, Is there a video or audio file can't be seekable and can't get it's > duration? > 2, Is there a video or audio file can be seekable but we can't get it's > duration ? > 3, Is there a video or audio file we can get it's duration but can't be > seekable? Probably to all 3. Why don't you try a few files and find out... :) -r From dashing.meng at gmail.com Thu Sep 13 15:28:35 2012 From: dashing.meng at gmail.com (littlebat) Date: Thu, 13 Sep 2012 21:28:35 +0800 Subject: [FFmpeg-user] Is there a video or audio file can't be seekable or can't get it's duration? In-Reply-To: References: <20120913170043.192a3ef1.dashing.meng@gmail.com> Message-ID: <20120913212835.b4041ef8.dashing.meng@gmail.com> On Thu, 13 Sep 2012 07:12:05 -0600 Roger Pack wrote: > > Three quesiton: > > 1, Is there a video or audio file can't be seekable and can't get > > it's duration? > > 2, Is there a video or audio file can be seekable but we can't get > > it's duration ? > > 3, Is there a video or audio file we can get it's duration but > > can't be seekable? > > Probably to all 3. Why don't you try a few files and find out... :) > -r Sorry, I am writing a script try to deal with all kinds of videos or audios, I need to know which kind of files we can't get it's duration before play it really or can't be seekable or both. I have no these kinds of sample files, so I can't try them really. Anyone has these kinds of files? Can you provide them to me? Thanks. From rhodri at kynesim.co.uk Thu Sep 13 15:43:34 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Thu, 13 Sep 2012 14:43:34 +0100 Subject: [FFmpeg-user] Is there a video or audio file can't be seekable or can't get it's duration? In-Reply-To: <20120913212835.b4041ef8.dashing.meng@gmail.com> References: <20120913170043.192a3ef1.dashing.meng@gmail.com> <20120913212835.b4041ef8.dashing.meng@gmail.com> Message-ID: On Thu, 13 Sep 2012 14:28:35 +0100, littlebat wrote: > Sorry, I am writing a script try to deal with all kinds of videos or > audios, I need to know which kind of files we can't get it's duration > before play it really or can't be seekable or both. I have no these > kinds of sample files, so I can't try them really. Consider video or audio streams. None of those are seekable (without trick-play) as they come in across the network, and I regularly curse people who forget this and assume their demuxer can seek as much as it likes. Some of them may give you a duration, some may have an indefinite duration (e.g. internet radio), some may lie. -- Rhodri James Kynesim Ltd From dashing.meng at gmail.com Thu Sep 13 16:21:18 2012 From: dashing.meng at gmail.com (littlebat) Date: Thu, 13 Sep 2012 22:21:18 +0800 Subject: [FFmpeg-user] Is there a video or audio file can't be seekable or can't get it's duration? In-Reply-To: References: <20120913170043.192a3ef1.dashing.meng@gmail.com> <20120913212835.b4041ef8.dashing.meng@gmail.com> Message-ID: <20120913222118.bccce38f.dashing.meng@gmail.com> On Thu, 13 Sep 2012 14:43:34 +0100 "Rhodri James" wrote: > On Thu, 13 Sep 2012 14:28:35 +0100, littlebat > wrote: > > > Sorry, I am writing a script try to deal with all kinds of videos or > > audios, I need to know which kind of files we can't get it's > > duration before play it really or can't be seekable or both. I have > > no these kinds of sample files, so I can't try them really. > > Consider video or audio streams. None of those are seekable > (without trick-play) as they come in across the network, and I > regularly curse people who forget this and assume their demuxer can > seek as much as it likes. Some of them may give you a duration, some > may have an indefinite duration (e.g. internet radio), some may lie. > How about the regular files exist in the disks? I know some kinds of videos, e.g., MPEG-TS or MPEG-PS files report a zero duration using "mplayer -identify -vo null -ao null -frames 0 filename" command, but "ffmpeg -i filename" will give an estimated duration, some people call ffmpeg's duration for these two kinds of files is a guessing way. These two kinds of files report as a seekable file using the "mplayer -identify ..." command. See: [MPlayer-users] mplayer -identify reports incorrect information for some files: http://lists.mplayerhq.hu/pipermail/mplayer-users/2012-September/085323.html I don't know any other kind of regular video or audio file existed in the disk can't get its duration priorly or isn't seekable. I will write some extra lines to deal with them if there are these kinds of files exist. From hiteshc531 at gmail.com Thu Sep 13 16:01:41 2012 From: hiteshc531 at gmail.com (hitesh) Date: Thu, 13 Sep 2012 07:01:41 -0700 (PDT) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> Message-ID: <1347544901595-4653420.post@n4.nabble.com> Thanks for your quick reply. Actually i want to know, Howmany MIPS does vp8 codec is taking on multicore processor(coretex-a9 panda board omap 4430 ) ? what is best way to measure cycles on multicore processor ? regards, hitesh -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Benchmarking-with-ffmpeg-What-are-the-parameters-meaning-tp4653297p4653420.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kosta.brazzers at gmail.com Thu Sep 13 17:34:05 2012 From: kosta.brazzers at gmail.com (Kosta Vlotis) Date: Thu, 13 Sep 2012 11:34:05 -0400 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only Message-ID: i have a script that creates certain video formats. it seems something is wrong with ffmpeg. my command line is the following: ffmpeg -async 2 -i ".\input\%1%2" -f mp4 -c:v libx264 -preset slow -g 60 -level 41 -b:v 12000k -s 1920x1080 -aspect 16:9 -vf "movie=watermark.png, scale=1920:1080 [logo]; [in] [logo] overlay=main_w-overlay_w-0:main_h-overlay_h-0 [out]" -af pan="stereo: c0=c1+c0 : c1=c0+c1" -c:a libvo_aacenc -b:a 128k -ar 48000 -ac 2 -threads 0 -y ".\output\%root_folder_name%\vids\hd\%1_1080p_12000_no_outro.mp4" the command above produces a video with a variable frame rate even though the source has a constant frame rate. running the EXACT same command but changing the resolution to 1280x720 produces the correct result. (copies the frame rate setting from the source.) the freame rate should come out as 29.970 CFR. Specifying a framerate by using "-r 29.970" causes ffmpeg to keep the variable frame rate setting but sets the minimum and maximum frame rate to 29.970. obviously something is not right.. can anyone help? Here is the ffmpeg config: ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass - -enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib libavutil 51. 69.100 / 51. 69.100 libavcodec 54. 52.100 / 54. 52.100 libavformat 54. 23.101 / 54. 23.101 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 9.100 / 3. 9.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfi le}... Use -h to get full help or, even better, run 'man ffmpeg' From wkevils at gmail.com Thu Sep 13 18:55:50 2012 From: wkevils at gmail.com (Kevin Wilson) Date: Thu, 13 Sep 2012 19:55:50 +0300 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: <20120912194134.39c49c92@lrcd.com> References: <20120911103539.6717085f@lrcd.com> <20120912194134.39c49c92@lrcd.com> Message-ID: Hi, with test.avi , an avi which I can see this avi with this LG DVD without any "HD" message, and we have: (the model is not with me now) ffmpeg -i /mnt/sdc1/test.avi ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 22:00:57 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) 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' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --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. 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 Input #0, avi, from '/mnt/sdc1/test.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2542/release) Duration: 01:58:28.96, start: 0.000000, bitrate: 1640 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 29.97 tbr, 29.97 tbn, 29.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s At least one output file must be specified So we have here : yuv420p, 720x400 any suggestions ? rgs, Kevin On Thu, Sep 13, 2012 at 6:41 AM, Lou wrote: > On Thu, 13 Sep 2012 05:18:20 +0300 > Kevin Wilson wrote: > > [trimmed] >> Hi, Lou. >> >> Thanks! >> >> I have tried: >> ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi >> >> And when loading the avi in a DVD I still get the HD error. > > What is the exact error? What make and model is this DVD player? > >> I tried to fetch the avi properties, and this is what I got: >> >> >> ffmpeg -i ubunutuArmNonHD.avi >> >> ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers > [trimmed] >> Input #0, avi, from 'ubunutuArmNonHD.avi': >> Metadata: >> encoder : Lavf53.32.100 >> Duration: 00:52:24.77, start: 0.000000, bitrate: 747 kb/s >> Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), >> yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc > -----------^ > Your output is 640x360. This can be considered standard definition or > "not HD". > >> Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, >> s16, 128 kb/s >> At least one output file must be specified >> >> >> So any idea: >> 1) Is this avi is HD or not ? could it be something in the header ? > > It is not HD. ffmpeg will show output size in the console output. Look > above to see my awesome ASCII art arrow for an example. > >> 2) what should I do to create non HD avi ? > > You already created a non HD file; therefore we need to determine what > the actual issue with the player is. Do you have a video that does play > on this picky device? If yes, then show the complete output of "ffmpeg > -i input-file-that-actually-does-work-in-your-dvd-player.avi". > >> regards, >> Kevin > > Note that top-posting is not recommended for this mailing list. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From wkevils at gmail.com Thu Sep 13 20:13:11 2012 From: wkevils at gmail.com (Kevin Wilson) Date: Thu, 13 Sep 2012 21:13:11 +0300 Subject: [FFmpeg-user] converting to non HD avi with ffmpeg In-Reply-To: <50516350.4080100@gmail.com> References: <20120911103539.6717085f@lrcd.com> <50516350.4080100@gmail.com> Message-ID: Andy, This worked ! Thanxs. On Thu, Sep 13, 2012 at 7:38 AM, Andy Civil wrote: > On 2012-09-12 10:18 PM, Kevin Wilson wrote: >> >> Hi, Lou. >> >> Thanks! >> >> I have tried: >> ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 >> ubunutuArmNonHD.avi >> > > I have made a DVD file in the past, can you try this? However, I notice that > some syntax has changed in the last months, forgive me if some of these > parameters need their syntax updating... > > ffmpeg -i ubunutuArm.webm -target ntsc-dvd -bf 2 -flags2 ivlc -dc 10 -b > 8000000 -maxrate 9000000 -bufsize 224kB -acodec mp2 -ac 2 -ab 128000 -vf > scale=720:480 ubunutuArmNonHD.mpg > > -- > Andy > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nicolas.george at normalesup.org Thu Sep 13 20:58:40 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 13 Sep 2012 20:58:40 +0200 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: Message-ID: <20120913185840.GA16220@phare.normalesup.org> L'octidi 28 fructidor, an CCXX, Kosta Vlotis a ?crit?: > running the EXACT same command but changing the resolution to 1280x720 > produces the correct result. How, exactly, do you observe that fact? 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 cccppp at t-online.de Thu Sep 13 11:00:42 2012 From: cccppp at t-online.de (night4awk) Date: Thu, 13 Sep 2012 02:00:42 -0700 (PDT) Subject: [FFmpeg-user] Capture RTP-Stream into file Message-ID: <1347526842390-4653415.post@n4.nabble.com> Hello, i'm new at ffmpeg and want to capture a RTP-Stream without quality loss into a file. I'm using the following string: ffmpeg -i rtp://@239.35.10.4:10000 -map 0:0 -map 0:2 -vcodec copy -acodec copy -t 10 -y test.mkv FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/opt/cross-project/x86/sys-root/usr --disable-static --enable-shared libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 0 / 52.20. 0 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 built on Sep 16 2011 01:01:55, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) [h264 @ 0x8063b20]number of reference frames exceeds max (probably corrupt input), discarding one Last message repeated 207 times [h264 @ 0x8063b20]left block unavailable for requested intra mode at 0 1 [h264 @ 0x8063b20]error while decoding MB 0 1, bytestream (64984) [h264 @ 0x8063b20]concealing 1620 DC, 1620 AC, 1620 MV errors Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1) Input #0, mpegts, from 'rtp://@239.35.10.4:10000': Duration: N/A, start: 90600.393311, bitrate: 640 kb/s Program 28106 Stream #0.0[0x100]: Video: h264, yuv420p, 720x576 [PAR 16:11 DAR 20:11], 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x101](deu): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s Stream #0.2[0x102](AC3): Audio: 0x0000, 48000 Hz, stereo, s16, 448 kb/s Output #0, matroska, to 'test.mkv': Stream #0.0: Video: 0x0000, yuv420p, 720x576 [PAR 16:11 DAR 20:11], q=2-31, 90k tbn, 25 tbc Stream #0.1(AC3): Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.2 -> #0.1 Press [q] to stop encoding frame= 252 fps= 36 q=-1.0 Lsize= 3566kB time=10.00 bitrate=2920.5kbits/s video:3017kB audio:545kB global headers:0kB muxing overhead 0.124688% When I'm playing the output file in VLC, there are a lot of pixel errors and interrupts. Are there any more options i need to add to the string or is the mkv-container not suitable for this action? I also tried to output the stream into a .mp4-file (same behavior). When I put it into a .ts-file VLC-playing freezes at the first frame. TIA -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Capture-RTP-Stream-into-file-tp4653415.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kosta.brazzers at gmail.com Fri Sep 14 00:51:44 2012 From: kosta.brazzers at gmail.com (Kosta Vlotis) Date: Thu, 13 Sep 2012 18:51:44 -0400 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: <20120913185840.GA16220@phare.normalesup.org> References: <20120913185840.GA16220@phare.normalesup.org> Message-ID: On Thu, Sep 13, 2012 at 2:58 PM, Nicolas George wrote: > L'octidi 28 fructidor, an CCXX, Kosta Vlotis a ?crit : >> running the EXACT same command but changing the resolution to 1280x720 >> produces the correct result. > > How, exactly, do you observe that fact? > > Regards, > > -- > Nicolas George > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlBSLOAACgkQsGPZlzblTJN7wACgjfhT6lYC9lixDDwz6rVdU2wh > aJoAn1y/co5k2y1rcjCXB632xRpDvpei > =8SMu > -----END PGP SIGNATURE----- > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > i run the exact command i specified, then change the resolution ONLY to 1280x720 then inspect the video with mediainfo. the 720p video show constant frame rate while the 1080p show variable frame rate. also the 720p video will play on a ps3 while the 1080p video will not. ONLY the resolution was changed in between. From rogerdpack2 at gmail.com Fri Sep 14 06:06:26 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 13 Sep 2012 22:06:26 -0600 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: <1347544901595-4653420.post@n4.nabble.com> References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> <1347544901595-4653420.post@n4.nabble.com> Message-ID: > Actually i want to know, > Howmany MIPS does vp8 codec is taking on multicore processor(coretex-a9 > panda board omap 4430 ) ? > > what is best way to measure cycles on multicore processor ? And your response to my previous email mentioning the bash "time" command? -r From rogerdpack2 at gmail.com Fri Sep 14 06:07:50 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 13 Sep 2012 22:07:50 -0600 Subject: [FFmpeg-user] Capture RTP-Stream into file In-Reply-To: <1347526842390-4653415.post@n4.nabble.com> References: <1347526842390-4653415.post@n4.nabble.com> Message-ID: > I'm using the following string: > ffmpeg -i rtp://@239.35.10.4:10000 -map 0:0 -map 0:2 -vcodec copy -acodec > copy -t 10 -y test.mkv > FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. This version seems quite old, could you re-test with trunk? -r From rogerdpack2 at gmail.com Fri Sep 14 06:10:39 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 13 Sep 2012 22:10:39 -0600 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: <20120913185840.GA16220@phare.normalesup.org> Message-ID: > i run the exact command i specified, then change the resolution ONLY > to 1280x720 then inspect the video with mediainfo. the 720p video show > constant frame rate while the 1080p show variable frame rate. > also the 720p video will play on a ps3 while the 1080p video will not. > ONLY the resolution was changed in between. what is your output of running ffmpeg -i "file" with 720p versus 1080p? Does ffmpeg seem to think the file is variable frame rate? From letheea at gmail.com Fri Sep 14 08:29:01 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 09:29:01 +0300 Subject: [FFmpeg-user] Help me with multi input in a video Message-ID: Hello . I need help about two subject. First of them is the syntax error in filter movie . My aim is to join two stream in a video . and with the overlay I can do two local video with ffmpeg ffmpeg.exe -i 1a.avi -vf "[in] scale=iw/3:ih/3, pad=3*iw+240:2*ih+220:200:100 [left]; movie=1c.avi, like that . but when I try to replace 1c.avi with the rtsp://localhost ... I got error 'unknown parameter '. ---> my seconde question is - is it possible to 2x2 mosaic video show with ffmpeg ? or which console tool I can succeed it ? I couldnt use avis with videohub cause I didnt find any way to stream my result . IN ffmpeg I can save or stream or convert my output . I found that xuggle in java maybe do it but it is very hard the article said. Please help me . Best Regards Emre K. From varunpatilis at gmail.com Fri Sep 14 07:02:33 2012 From: varunpatilis at gmail.com (Varun) Date: Thu, 13 Sep 2012 22:02:33 -0700 (PDT) Subject: [FFmpeg-user] MPEG DASH compatible segments In-Reply-To: References: Message-ID: <1347598953427-4653430.post@n4.nabble.com> Hi Geeta, FFMPEG can produce DASH compatible TS files but not MP4 files. FFMPEG cannot help you in creating MPD's either, it can be for transcoding for multiple Representations. Currently I am using FFMPEG to transcode and create TS segments, for MP4 i still have to depend on GPAC(MP4Box). -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MPEG-DASH-compatible-segments-tp4653380p4653430.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rogerdpack2 at gmail.com Fri Sep 14 08:58:49 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Sep 2012 00:58:49 -0600 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: > > ffmpeg.exe -i 1a.avi -vf "[in] scale=iw/3:ih/3, > pad=3*iw+240:2*ih+220:200:100 [left]; movie=1c.avi, > > like that . but when I try to replace 1c.avi with the rtsp://localhost ... > I got error 'unknown parameter '. I presume if you use rtsp://localhost ... by itself then it works? Maybe you need to use filter_complex? > ---> my seconde question is > - is it possible to 2x2 mosaic video show with ffmpeg ? > or which console tool I can succeed it ? so you want 4 videos displayed at the same time? -r From r.geetha.p at gmail.com Fri Sep 14 09:05:21 2012 From: r.geetha.p at gmail.com (Geetha Priya) Date: Fri, 14 Sep 2012 17:05:21 +1000 Subject: [FFmpeg-user] MPEG DASH compatible segments In-Reply-To: <1347598953427-4653430.post@n4.nabble.com> References: <1347598953427-4653430.post@n4.nabble.com> Message-ID: Thanks Varun. Do you use any specific configuration to create TS segments for DASH or its the normal 'segment' options provided in FFMPEG? Cheers, Geetha > > From letheea at gmail.com Fri Sep 14 09:12:20 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 10:12:20 +0300 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: Thank you Roger for your interest . If I use ---- ffmpeg.exe -i rtmp://localhost/live/me -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie=a.avi, scale=iw/4:ih/4 [right]; [left][right] overlay=main_w/2:0 [out]" -f flv rtmp://localhost/live/firstTwo --- There is no problem , I take what I need . But I wanna use --- ffmpeg.exe -i rtmp://localhost/live/me -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie= rtmp://localhost/live/me1, scale=iw/4:ih/4 [right]; [left][right] overlay=main_w/2:0 [out]" -f flv rtmp://localhost/live/firstTwo -- In this case ffmpeg throw ex. I think cause of ':' I try to escape this charecter with backslash. But noway. ?t said 'missing key or no key/value seperator found after key //localhost...' Error movie parameter args with rtmp://... I presume movie parameter waits for .mp4 .avi etc. like amovie wait for .mp3 etc. ---- Secondly yes . I want 2 x 2 4 video . Now I can do it with the code above in 2 proccess. 1.step I join side by side each of pair then I have two 1x1 videos then I join again 1 x 1 video top and bottom . after that I get 2x2 video . in this case it's not problem but in 4x4 video ? what the hell am I do?ng ? __________________________________________________________________________________________________ 2012/9/14 Roger Pack > > > > ffmpeg.exe -i 1a.avi -vf "[in] scale=iw/3:ih/3, > > pad=3*iw+240:2*ih+220:200:100 [left]; movie=1c.avi, > > > > like that . but when I try to replace 1c.avi with the rtsp://localhost > ... > > I got error 'unknown parameter '. > > I presume if you use rtsp://localhost ... by itself then it works? > Maybe you need to use filter_complex? > > > ---> my seconde question is > > - is it possible to 2x2 mosaic video show with ffmpeg ? > > or which console tool I can succeed it ? > > so you want 4 videos displayed at the same time? > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From hiteshc531 at gmail.com Fri Sep 14 09:02:56 2012 From: hiteshc531 at gmail.com (hitesh) Date: Fri, 14 Sep 2012 00:02:56 -0700 (PDT) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> <1347544901595-4653420.post@n4.nabble.com> Message-ID: <1347606176250-4653433.post@n4.nabble.com> if i use "time" command it will give total real or user or system time. how can i use time command to measure decode time(with out initilisations,fream read and writes) ? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Benchmarking-with-ffmpeg-What-are-the-parameters-meaning-tp4653297p4653433.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Sep 14 09:24:00 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 07:24:00 +0000 (UTC) Subject: [FFmpeg-user] Help me with multi input in a video References: Message-ID: Emre Karata?o?lu gmail.com> writes: > ffmpeg.exe -i rtmp://localhost/live/me -vf "[in] scale=iw/2:ih/2, > pad=2*iw:ih [left]; movie= rtmp://localhost/live/me1, scale=iw/4:ih/4 > [right]; [left][right] overlay=main_w/2:0 [out]" -f flv > rtmp://localhost/live/firstTwo (Complete, uncut console output missing.) I didn't test but is the space between "movie=" and "rtmp..." intended? Carl Eugen From cehoyos at ag.or.at Fri Sep 14 09:27:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 07:27:40 +0000 (UTC) Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> <1347544901595-4653420.post@n4.nabble.com> <1347606176250-4653433.post@n4.nabble.com> Message-ID: hitesh gmail.com> writes: > if i use "time" command it will give total real or user or system time. > how can i use time command to measure decode time(with out > initilisations,fream read and writes) ? For a real-world stream, initialisation and reading the stream will have no measurable impact on the decoding time (and you don't have to write anything if you want to benchmark, see my earlier mails). Carl Eugen From 286166657 at qq.com Fri Sep 14 09:38:17 2012 From: 286166657 at qq.com (=?ISO-8859-1?B?TXl0aA==?=) Date: Fri, 14 Sep 2012 15:38:17 +0800 Subject: [FFmpeg-user] How to Decode h264 Video Stream? Message-ID: Hi All, I'm new of FFmpeg, I want to decode an h264 video stream. I have built the latest FFmpeg source code successfully. But I don't know how to use ffmpeg binary, the argument is too complex. Who can help me ? Thanks, Stefan From letheea at gmail.com Fri Sep 14 09:46:37 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 10:46:37 +0300 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> <1347544901595-4653420.post@n4.nabble.com> <1347606176250-4653433.post@n4.nabble.com> Message-ID: Yes there is a space between them :( my mistake , Now I edit this part still waiting the console return. And I wish this will help my first problem . Any idea of giving 2x2 view in one command ? or which way I follow , or what can I use mencoder , gstream etc ? thanks Carl Eugen Hoyos , nice point. 2012/9/14 Carl Eugen Hoyos > hitesh gmail.com> writes: > > > if i use "time" command it will give total real or user or system time. > > how can i use time command to measure decode time(with out > > initilisations,fream read and writes) ? > > For a real-world stream, initialisation and reading the stream will > have no measurable impact on the decoding time (and you don't have > to write anything if you want to benchmark, see my earlier mails). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From letheea at gmail.com Fri Sep 14 09:47:34 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 10:47:34 +0300 Subject: [FFmpeg-user] Benchmarking with ffmpeg - What are the parameters meaning? In-Reply-To: References: <504C23C7.4080405@googlemail.com> <504E8067.1060202@googlemail.com> <1347519637183-4653413.post@n4.nabble.com> <1347544901595-4653420.post@n4.nabble.com> <1347606176250-4653433.post@n4.nabble.com> Message-ID: > Yes there is a space between them :( my mistake , Now I edit this part > still waiting the console return. > And I wish this will help my first problem . > Any idea of giving 2x2 view in one command ? or > which way I follow , or what can I use mencoder , gstream etc ? > thanks Carl Eugen Hoyos , nice point. > > > 2012/9/14 Carl Eugen Hoyos > >> hitesh gmail.com> writes: >> >> > if i use "time" command it will give total real or user or system time. >> > how can i use time command to measure decode time(with out >> > initilisations,fream read and writes) ? >> >> For a real-world stream, initialisation and reading the stream will >> have no measurable impact on the decoding time (and you don't have >> to write anything if you want to benchmark, see my earlier mails). >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From letheea at gmail.com Fri Sep 14 09:49:58 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 10:49:58 +0300 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: Yes there is a space between them :( my mistake , Now I edit this part still waiting the console return. And I wish this will help my first problem . Any idea of giving 2x2 view in one command ? or which way I follow , or what can I use mencoder , gstream etc ? thanks Carl Eugen Hoyos , nice point. 2012/9/14 Carl Eugen Hoyos hitesh gmail.com> writes: > if i use "time" command it will give total real or user or system time. > how can i use time command to measure decode time(with out > initilisations,fream read and writes) ? For a real-world stream, initialisation and reading the stream will have no measurable impact on the decoding time (and you don't have to write anything if you want to benchmark, see my earlier mails). Carl Eugen From letheea at gmail.com Fri Sep 14 09:52:38 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 10:52:38 +0300 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: noway , still the same error with missing key or value I mention above :| -- 2012/9/14 Emre Karata?o?lu > Yes there is a space between them :( my mistake , Now I edit this part > still waiting the console return. > And I wish this will help my first problem . > Any idea of giving 2x2 view in one command ? or > which way I follow , or what can I use mencoder , gstream etc ? > thanks Carl Eugen Hoyos , nice point. > > 2012/9/14 Carl Eugen Hoyos > hitesh gmail.com> writes: > > > if i use "time" command it will give total real or user or system time. > > how can i use time command to measure decode time(with out > > initilisations,fream read and writes) ? > > For a real-world stream, initialisation and reading the stream will > have no measurable impact on the decoding time (and you don't have > to write anything if you want to benchmark, see my earlier mails). > > Carl Eugen > > From cehoyos at ag.or.at Fri Sep 14 10:00:51 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 08:00:51 +0000 (UTC) Subject: [FFmpeg-user] How to Decode h264 Video Stream? References: Message-ID: Myth <286166657 qq.com> writes: > I want to decode an h264 video stream. What do you want to do with your decoded stream? Carl Eugen From letheea at gmail.com Fri Sep 14 09:45:55 2012 From: letheea at gmail.com (Emre K) Date: Fri, 14 Sep 2012 00:45:55 -0700 (PDT) Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: <1347608755030-4653439.post@n4.nabble.com> Yes there is a space between them :( my mistake , Now I edit this part still waiting the console return. And I wish this will help my first problem . Any idea of giving 2x2 view in one command ? or which way I follow , or what can I use mencoder , gstream etc ? ----- what does not kill you make you stronger . FFMPEG can do it -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Help-me-with-multi-input-in-a-video-tp4653431p4653439.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Fri Sep 14 10:52:55 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 14 Sep 2012 10:52:55 +0200 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: <20120913185840.GA16220@phare.normalesup.org> Message-ID: <20120914085254.GA16972@phare.normalesup.org> L'octidi 28 fructidor, an CCXX, Kosta Vlotis a ?crit?: > i run the exact command i specified, then change the resolution ONLY > to 1280x720 then inspect the video with mediainfo. So there is the possible explanation: this mediainfo is hallucinating. Do you have any actual problem with the resulting video? Regards, -- Nicolas George From nichot20 at yahoo.com Fri Sep 14 10:57:26 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 14 Sep 2012 09:57:26 +0100 Subject: [FFmpeg-user] visualising Filtergraphs Message-ID: <5052F176.3040401@yahoo.com> I am trying to use graph2dot, as per http://ffmpeg.org/ffmpeg.html#graph2dot but failing miserably. For example:- > echo "scale=iw/2:ih/2:interl=1" | \ graph2dot -o graph.tmp && dot -Tpng graph.tmp \ -o graph.png && display graph.png Input pad "default" for the filter "Parsed_scale_0" of type "scale" not connected to any source I have tried adding -i infile and -vf in front, and then it complains about "No such filter: -vf" etc. The actual filter string works fine in a real ffmpeg command line. I'm obviously missing something simple, but could anyone enlighten me please? -- Tim From letheea at gmail.com Fri Sep 14 10:50:54 2012 From: letheea at gmail.com (Emre K) Date: Fri, 14 Sep 2012 01:50:54 -0700 (PDT) Subject: [FFmpeg-user] Using -filter_complex instead of lavfi with amerge hangs. In-Reply-To: <4FE97A39.80202@yahoo.com> References: <4FE97A39.80202@yahoo.com> Message-ID: <1347612654813-4653446.post@n4.nabble.com> hey . http://ffmpeg-users.933282.n4.nabble.com/Using-filter-complex-instead-of-lavfi-with-amerge-hangs-td4651232.html I just wonder that How can I use 4 input not audio , only video ? ----- what does not kill you make you stronger . FFMPEG can do it -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Using-filter-complex-instead-of-lavfi-with-amerge-hangs-tp4651232p4653446.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Fri Sep 14 11:12:52 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 14 Sep 2012 11:12:52 +0200 Subject: [FFmpeg-user] visualising Filtergraphs In-Reply-To: <5052F176.3040401@yahoo.com> References: <5052F176.3040401@yahoo.com> Message-ID: <20120914091252.GA21972@phare.normalesup.org> Le nonidi 29 fructidor, an CCXX, Tim Nicholson a ?crit?: > > echo "scale=iw/2:ih/2:interl=1" | \ > graph2dot -o graph.tmp && dot -Tpng graph.tmp \ > -o graph.png && display graph.png > Input pad "default" for the filter "Parsed_scale_0" of type "scale" not > connected to any source You need to provide it with a self-contained graph, with its inputs and outputs: $ tools/graph2dot <<<'testsrc , scale=iw/2:ih/2:interl=1 , nullsink' [Parsed_testsrc_0 @ 0x186c960] size:320x240 rate:25/1 duration:-1.000000 sar:1/1 [Parsed_scale_1 @ 0x186d100] w:320 h:240 fmt:rgb24 sar:1/1 -> w:160 h:120 fmt:rgb24 sar:1/1 flags:0x2 digraph G { node [shape=box] rankdir=LR "Parsed_testsrc_0\n(testsrc)" -> "Parsed_scale_1\n(scale)" [ label= "inpad:default -> outpad:default\nfmt:rgb24 w:320 h:240 tb:1/25 ]"Parsed_scale_1\n(scale)" -> "Parsed_nullsink_2\n(nullsink)" [ label= "inpad:default -> outpad:default\nfmt:rgb24 w:160 h:120 tb:1/25 ]} Regards, -- Nicolas George From nichot20 at yahoo.com Fri Sep 14 12:04:51 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 14 Sep 2012 11:04:51 +0100 Subject: [FFmpeg-user] [Bulk] visualising Filtergraphs In-Reply-To: <5052F176.3040401@yahoo.com> References: <5052F176.3040401@yahoo.com> Message-ID: <50530143.1060207@yahoo.com> On 14/09/12 09:57, Tim Nicholson wrote: > I am trying to use graph2dot, as per > > http://ffmpeg.org/ffmpeg.html#graph2dot > > but failing miserably. > For example:- > >> echo "scale=iw/2:ih/2:interl=1" | \ > graph2dot -o graph.tmp && dot -Tpng graph.tmp \ > -o graph.png && display graph.png > Input pad "default" for the filter "Parsed_scale_0" of type "scale" not > connected to any source > > I have tried adding -i infile and -vf in front, and then it complains > about "No such filter: -vf" etc. > > The actual filter string works fine in a real ffmpeg command line. > > I'm obviously missing something simple, but could anyone enlighten me > please? > To answer my own post after input form elsewhere... You need to start with "nullsrc=s=widthxheight, format= uyvy422,....." to set up your source material parameters... the docs could be clearer so I might submit a patch once I've sorted my main issue out. -- Tim From kosta.brazzers at gmail.com Fri Sep 14 16:50:55 2012 From: kosta.brazzers at gmail.com (Kosta Vlotis) Date: Fri, 14 Sep 2012 10:50:55 -0400 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: <20120914085254.GA16972@phare.normalesup.org> References: <20120913185840.GA16220@phare.normalesup.org> <20120914085254.GA16972@phare.normalesup.org> Message-ID: On Fri, Sep 14, 2012 at 4:52 AM, Nicolas George wrote: > L'octidi 28 fructidor, an CCXX, Kosta Vlotis a ?crit : >> i run the exact command i specified, then change the resolution ONLY >> to 1280x720 then inspect the video with mediainfo. > > So there is the possible explanation: this mediainfo is hallucinating. > > Do you have any actual problem with the resulting video? > > Regards, > > -- > Nicolas George > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user the same original video was used to create both 720p and 1080p videos. the only reason i discovered this is because the 720p (CFR) worked on a PlayStation 3 and the 1080p (VFR) did not (The PS3 does not support VFR). further investigating showed that FFMPEG was selecting VFR for the 1080p video even though the command line is exactly the same (minus bit rate and resolution) From tevans.uk at googlemail.com Fri Sep 14 17:18:26 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Fri, 14 Sep 2012 16:18:26 +0100 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: <20120913185840.GA16220@phare.normalesup.org> <20120914085254.GA16972@phare.normalesup.org> Message-ID: On Fri, Sep 14, 2012 at 3:50 PM, Kosta Vlotis wrote: > the same original video was used to create both 720p and 1080p videos. > the only reason i discovered this is because the 720p (CFR) worked on > a PlayStation 3 and the 1080p (VFR) did not (The PS3 does not support > VFR). further investigating showed that FFMPEG was selecting VFR for > the 1080p video even though the command line is exactly the same > (minus bit rate and resolution) Why do you think it is VFR? Is it because it doesn't play on the PS3, and mediainfo says it is VFR? That is not necessarily conclusive - it could not play for a number of reasons, and mediainfo can easily be wrong - I've never ever seen an ffmpeg dev remotely interested in what mediainfo has to say about a file :) What does *ffmpeg* say about it? Cheers Tom From rogerdpack2 at gmail.com Fri Sep 14 17:43:42 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Sep 2012 09:43:42 -0600 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: > There is no problem , I take what I need . > But I wanna use > > --- > ffmpeg.exe -i rtmp://localhost/live/me -vf "[in] scale=iw/2:ih/2, > pad=2*iw:ih [left]; movie= rtmp://localhost/live/me1, scale=iw/4:ih/4 > [right]; [left][right] overlay=main_w/2:0 [out]" -f flv > rtmp://localhost/live/firstTwo > > -- > In this case ffmpeg throw ex. I think cause of ':' I try to escape this > charecter with backslash. But noway. to escape in windows you may need a ^ Anyway I'd recommend using filter_complex and two inputs instead of movie=... for 2x2, i assume you want "4 videos all displayed at once, one in each corner"? Overlay filter should be able to handle it, though I'm not sure of the syntax... -r From stefasab at gmail.com Fri Sep 14 18:10:59 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 14 Sep 2012 18:10:59 +0200 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: Message-ID: <20120914161059.GP2354@arborea> On date Friday 2012-09-14 09:29:01 +0300, Emre Karata?o?lu encoded: > Hello . I need help about two subject. > First of them is the syntax error in filter movie > . My aim is to join two stream in a video . > and with the overlay I can do two local video with ffmpeg > > ffmpeg.exe -i 1a.avi -vf "[in] scale=iw/3:ih/3, > pad=3*iw+240:2*ih+220:200:100 [left]; movie=1c.avi, > > like that . but when I try to replace 1c.avi with the rtsp://localhost ... > I got error 'unknown parameter '. When you do: movie=rtsp://localhost/... ffmpeg is parsing it like: movie= FILENAME : OPTIONS with rtsp=FILENAME and //localhost/... is interpreted like OPTIONS. Thus you need to escape the filename, like: movie='rtsp://localhost/...' (first level of escaping) Another level of escaping may be needed depending on your shell. > > ---> my seconde question is > - is it possible to 2x2 mosaic video show with ffmpeg ? The best way to do it is to create a background with color source, and then overlay video 1 and 2 in cascade (either using "movie" or the filter_complex option). > or which console tool I can succeed it ? > I couldnt use avis with videohub cause I didnt find any way to stream my > result . > IN ffmpeg > I can save or stream or convert my output . > I found that xuggle in java maybe do it but it is very hard the article > said. > Please help me . Best Regards Emre K. -- ffmpeg-user random tip #26 RTFM. From stefasab at gmail.com Fri Sep 14 18:12:18 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 14 Sep 2012 18:12:18 +0200 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: References: Message-ID: <20120914161218.GQ2354@arborea> On date Friday 2012-09-14 08:00:51 +0000, Carl Eugen Hoyos encoded: > Myth <286166657 qq.com> writes: > > > I want to decode an h264 video stream. > > What do you want to do with your decoded stream? Why do you want to know what he wants to do with his decoded stream? -- ffmpeg-user random tip #9 One minute of audio silence with ffmpeg: ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero \ -ab 64K -f mp2 -acodec mp2 -y silence.mp2 From krueger at lesspain.de Fri Sep 14 18:20:45 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 14 Sep 2012 18:20:45 +0200 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: <20120913185840.GA16220@phare.normalesup.org> <20120914085254.GA16972@phare.normalesup.org> Message-ID: On Fri, Sep 14, 2012 at 4:50 PM, Kosta Vlotis wrote: > On Fri, Sep 14, 2012 at 4:52 AM, Nicolas George > wrote: >> L'octidi 28 fructidor, an CCXX, Kosta Vlotis a ?crit : >>> i run the exact command i specified, then change the resolution ONLY >>> to 1280x720 then inspect the video with mediainfo. >> >> So there is the possible explanation: this mediainfo is hallucinating. >> >> Do you have any actual problem with the resulting video? >> >> Regards, >> >> -- >> Nicolas George >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > the same original video was used to create both 720p and 1080p videos. > the only reason i discovered this is because the 720p (CFR) worked on > a PlayStation 3 and the 1080p (VFR) did not (The PS3 does not support > VFR). further investigating showed that FFMPEG was selecting VFR for > the 1080p video even though the command line is exactly the same > (minus bit rate and resolution) post the first few dozen lines of the output of ffprobe -i -show_frames for both files so the timestamps of the first few frames of both files (including what ffmpeg thinks the frame rate is) can be seen From rogerdpack2 at gmail.com Fri Sep 14 18:22:04 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Sep 2012 10:22:04 -0600 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: References: Message-ID: > I'm new of FFmpeg, I want to decode an h264 video stream. I have built the latest FFmpeg source code successfully. But I don't know how to use ffmpeg binary, the argument is too complex. Who can help me ? It's a "raw" h264 stream? (I guess that's possible?) If it is then ffmpeg -format h264 -i input ... might work... -roger- From andycivil at gmail.com Fri Sep 14 18:26:50 2012 From: andycivil at gmail.com (Andy Civil) Date: Fri, 14 Sep 2012 12:26:50 -0400 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: <20120914161218.GQ2354@arborea> References: <20120914161218.GQ2354@arborea> Message-ID: <50535ACA.2090802@gmail.com> On 2012-09-14 12:12 PM, Stefano Sabatini wrote: > On date Friday 2012-09-14 08:00:51 +0000, Carl Eugen Hoyos encoded: >> Myth<286166657 qq.com> writes: >> >>> I want to decode an h264 video stream. >> >> What do you want to do with your decoded stream? > > Why do you want to know what he wants to do with his decoded stream? Obviously because any video has to be coded *somehow* - so to ask about decoding h264 by itself is meaningless unless you just want the warm feeling of knowing that it's there in your computer's memory somewhere. I'm sure Carl is waiting to volunteer a simple command line to do this decoding, but wants to know how the OP would like his video presented to him, in order to choose a suitable output format. :-) -- Andy From cehoyos at ag.or.at Fri Sep 14 19:28:07 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 17:28:07 +0000 (UTC) Subject: [FFmpeg-user] How to Decode h264 Video Stream? References: Message-ID: Roger Pack gmail.com> writes: > > I'm new of FFmpeg, I want to decode an h264 video stream. > > I have built the latest FFmpeg source code successfully. > > But I don't know how to use ffmpeg binary, the argument is > > too complex. Who can help me ? > > It's a "raw" h264 stream? (I guess that's possible?) > > If it is then > > ffmpeg -format h264 -i input ... Apart from the fact that it would be a (serious?) bug if -f h264 is needed, I fear that a user who asks how to decode h264 will not be able to replace "..." with something appropriate. Carl Eugen From cehoyos at ag.or.at Fri Sep 14 19:31:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 17:31:01 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only References: Message-ID: Kosta Vlotis gmail.com> writes: > ffmpeg ... > ".\output\%root_folder_name%\vids\hd\%1_1080p_12000_no_outro.mp4" Please note that ffmpeg does not support outputting VFR in mp4 since November 2010. (All mp4 files produced by FFmpeg since November 2010 are CFR). Carl Eugen From andycivil at gmail.com Fri Sep 14 19:40:47 2012 From: andycivil at gmail.com (Andy Civil) Date: Fri, 14 Sep 2012 13:40:47 -0400 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: References: Message-ID: <50536C1F.30203@gmail.com> On 2012-09-14 1:28 PM, Carl Eugen Hoyos wrote: > > Apart from the fact that it would be a (serious?) bug if -f h264 > is needed, I fear that a user who asks how to decode h264 will > not be able to replace "..." with something appropriate. And when you're done putting something appropriate in there, someone's sent me a message in ASCII I'd like you to decode for me :-) -- Andy From ram at modernvideo.co Fri Sep 14 19:50:41 2012 From: ram at modernvideo.co (mvram) Date: Fri, 14 Sep 2012 10:50:41 -0700 (PDT) Subject: [FFmpeg-user] Valid H264 stream wrapped in MP4 cannot be converted back to a valid H264 stream Message-ID: <1347645041798-4653464.post@n4.nabble.com> Hi, I need to extract compressed H264 streams from MP4 files and pass it on to another application. However, when I extract H264 stream from a Mp4 file, I found this oddity. I generated my test MP4 with a valid H264 stream in it. I am able to play the MP4 file using VLC. Then when I extracted H264 from the same MP4 file, even FFmpeg couldn't recognize that output as a valid video stream. Am I missing some parameters? Please advise. $ ./ffmpeg -i ~/pix/Aspen1Mbps.264 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 10:39:41 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) configuration: libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 [h264 @ 0x7f9b6201ae00] Estimating duration from bitrate, this may be inaccurate Input #0, h264, from '/Users/mvram/pix/Aspen1Mbps.264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p, 640x480, 25 fps, 25 tbr, 1200k tbn, 50 tbc At least one output file must be specified $ ./ffmpeg -i ~/pix/Aspen1Mbps.264 -vcodec copy -an -y /tmp/F1.mp4 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 10:39:41 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) configuration: libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 [h264 @ 0x7f879981ae00] Estimating duration from bitrate, this may be inaccurate Input #0, h264, from '/Users/mvram/pix/Aspen1Mbps.264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p, 640x480, 25 fps, 25 tbr, 1200k tbn, 50 tbc Output #0, mp4, to '/tmp/F1.mp4': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 640x480, q=2-31, 25 fps, 1200k tbn, 1200k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mp4 @ 0x7f879981d200] pts has no value Last message repeated 29 times frame= 30 fps=0.0 q=-1.0 Lsize= 106kB time=00:00:01.12 bitrate= 776.3kbits/s video:105kB audio:0kB global headers:0kB muxing overhead 0.853686% $ ./ffmpeg -i /tmp/F1.mp4 -vcodec copy -an -y /tmp/F1.h264 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 10:39:41 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) configuration: libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/F1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.6.100 Duration: 00:00:01.20, start: 0.000000, bitrate: 724 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480, 718 kb/s, 25 fps, 25 tbr, 1200k tbn, 2400k tbc Metadata: handler_name : VideoHandler Output #0, h264, to '/tmp/F1.h264': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.6.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 640x480, q=2-31, 718 kb/s, 25 fps, 90k tbn, 1200k tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 30 fps=0.0 q=-1.0 Lsize= 105kB time=00:00:01.16 bitrate= 743.2kbits/s video:105kB audio:0kB global headers:0kB muxing overhead 0.000000% $ ./ffmpeg -i /tmp/F1.h264 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 10:39:41 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) configuration: libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 /tmp/F1.h264: Invalid data found when processing input -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Valid-H264-stream-wrapped-in-MP4-cannot-be-converted-back-to-a-valid-H264-stream-tp4653464.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Sep 14 20:16:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 18:16:25 +0000 (UTC) Subject: [FFmpeg-user] Valid H264 stream wrapped in MP4 cannot be converted back to a valid H264 stream References: <1347645041798-4653464.post@n4.nabble.com> Message-ID: mvram modernvideo.co> writes: > I generated my test MP4 with a valid H264 stream in it. I am able to play > the MP4 file using VLC. Then when I extracted H264 from the same MP4 file, > even FFmpeg couldn't recognize that output as a valid video stream. You need -vbsf h264_mp4toannexb Carl Eugen From cccppp at t-online.de Fri Sep 14 17:52:31 2012 From: cccppp at t-online.de (night4awk) Date: Fri, 14 Sep 2012 08:52:31 -0700 (PDT) Subject: [FFmpeg-user] Capture RTP-Stream into file In-Reply-To: References: <1347526842390-4653415.post@n4.nabble.com> Message-ID: <1347637951351-4653455.post@n4.nabble.com> Roger Pack wrote > > This version seems quite old, could you re-test with trunk? > -r > I've upgraded my ffmpeg version to 0.11.1 The result is unfortunately the same as before (still a lot of pixel errors and interrupts every several seconds). The "-r" doens't fix it. With the new version also comes another problem: The Stream-Numers (#0.0, #0.1,...) don't keep the same input-connections (so that #0.0 sometimes is the video-stream, but sometimes #0.0 is one of the audio-streams)??? Here's the output: ffmpeg -i rtp://@239.35.10.4:10000 -map 0:0 -map 0:2 -vcodec copy -acodec copy -t 30 -y -r 50 test_r30.mkv ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 16:19:43 with gcc 4.2.1 configuration: --prefix=/ffmpeg-0.11.1/ --logfile=lol.log --enable-static --enable-gpl libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [NULL @ 0x8ed9e60] non-existing PPS referenced [h264 @ 0x8ed9e60] non-existing PPS 0 referenced [h264 @ 0x8ed9e60] decode_slice_header error [h264 @ 0x8ed9e60] no frame! [h264 @ 0x8ed9e60] left block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (59738) [h264 @ 0x8ed9e60] mmco: unref short failure Last message repeated 1 times [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 35 4, bytestream (2831) [h264 @ 0x8ed9e60] mmco: unref short failure Last message repeated 1 times [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 1, bytestream (2473) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (2034) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 36 9, bytestream (2154) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (1505) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 37 3, bytestream (1290) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (13867) [h264 @ 0x8ed9e60] mmco: unref short failure Last message repeated 1 times [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 1, bytestream (10988) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 1, bytestream (1591) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (1462) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 32 3, bytestream (1381) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (2461) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 21 1, bytestream (2541) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (15571) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 1, bytestream (11689) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (2241) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 1, bytestream (2579) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 0 0, bytestream (1830) [h264 @ 0x8ed9e60] Reference 6 >= 2 [h264 @ 0x8ed9e60] error while decoding MB 2 1, bytestream (1441) [rtp @ 0x8ed53c0] PES packet size mismatch Last message repeated 4 times [rtp @ 0x8ed53c0] max_analyze_duration 5000000 reached at 5000000 [rtp @ 0x8ed53c0] Could not find codec parameters (Unknown: none) [rtp @ 0x8ed53c0] Estimating duration from bitrate, this may be inaccurate Input #0, rtp, from 'rtp://@239.35.10.4:10000': Duration: N/A, start: 7401.270200, bitrate: 640 kb/s Program 28106 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 16:11 DAR 20:11], 50 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 192 kb/s Stream #0:2(AC3): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 448 kb/s Stream #0:3(deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) No Program Stream #0:4: Unknown: none Output #0, matroska, to 'test_r30.mkv': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 16:11 DAR 20:11], q=2-31, 50 fps, 1k tbn, 90k tbc Stream #0:1(AC3): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, 448 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Press [q] to stop, [?] for help [rtp @ 0x8ed53c0] PES packet size mismatch RTP: missed 1 packets=-1.0 size= 2238kB time=00:00:07.56 bitrate=2424.7kbits/s [rtp @ 0x8ed53c0] PES packet size mismatch RTP: missed 1 packets PES packet size mismatch.0 size= 2428kB time=00:00:08.04 bitrate=2473.6kbits/s RTP: missed 1 packets=-1.0 size= 2588kB time=00:00:08.52 bitrate=2488.1kbits/s RTP: missed 1 packets=-1.0 size= 2766kB time=00:00:09.00 bitrate=2517.3kbits/s [rtp @ 0x8ed53c0] PES packet size mismatch RTP: missed 1 packets=-1.0 size= 7413kB time=00:00:22.60 bitrate=2686.9kbits/s RTP: missed 1 packets=-1.0 size= 7509kB time=00:00:22.92 bitrate=2683.7kbits/s [rtp @ 0x8ed53c0] PES packet size mismatch RTP: missed 1 packets=-1.0 size= 9716kB time=00:00:29.38 bitrate=2708.9kbits/s frame= 1437 fps= 60 q=-1.0 Lsize= 9978kB time=00:00:29.99 bitrate=2724.8kbits/s video:8374kB audio:1586kB global headers:0kB muxing overhead 0.179536% -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Capture-RTP-Stream-into-file-tp4653415p4653455.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From letheea at gmail.com Fri Sep 14 21:55:45 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 22:55:45 +0300 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: <20120914161059.GP2354@arborea> References: <20120914161059.GP2354@arborea> Message-ID: nope my friend , I try every escape combination for it but still the same problem . Anyway I developed my code a bit and solve this problem with -- my bat -- @echo off cd c:\ffmpeg\bin ffmpeg -i rtmp://192.168.10.88/live/new -i rtmp://localhost/live/me -filter_complex "[0]scale=iw/2:ih/2,pad=3*iw+20:3*ih+20:10:10 [first];[1]scale=iw/2:ih/2[second] ; [first][second] overlay=main_w/2+10:10 " -b:v 32k rtmp://localhost/live/joinFirstPair pause --- but in this case waiting time kill me . In wowza or red5 I can stream live very fast , but in ffmpeg I wait and wait about 45 sec minumum . I think I have to use different program , cause the security provider company make this code write . They can see 16 cam in a window , ffmpeg is a key and bridge for this work I think . I'm a php & java developer , what I do is ffmpeg engineer :S Any Idea to solve this problem ? --- 2012/9/14 Stefano Sabatini > On date Friday 2012-09-14 09:29:01 +0300, Emre Karata?o?lu encoded: > > Hello . I need help about two subject. > > First of them is the syntax error in filter movie > > . My aim is to join two stream in a video . > > and with the overlay I can do two local video with ffmpeg > > > > ffmpeg.exe -i 1a.avi -vf "[in] scale=iw/3:ih/3, > > pad=3*iw+240:2*ih+220:200:100 [left]; movie=1c.avi, > > > > like that . but when I try to replace 1c.avi with the rtsp://localhost > ... > > I got error 'unknown parameter '. > > When you do: > movie=rtsp://localhost/... > > ffmpeg is parsing it like: > > movie= FILENAME : OPTIONS > > with rtsp=FILENAME and //localhost/... is interpreted like OPTIONS. > > Thus you need to escape the filename, like: > > movie='rtsp://localhost/...' > > (first level of escaping) > > Another level of escaping may be needed depending on your shell. > > > > > ---> my seconde question is > > - is it possible to 2x2 mosaic video show with ffmpeg ? > > The best way to do it is to create a background with color source, and > then overlay video 1 and 2 in cascade (either using "movie" or the > filter_complex option). > > > or which console tool I can succeed it ? > > I couldnt use avis with videohub cause I didnt find any way to stream my > > result . > > IN ffmpeg > > I can save or stream or convert my output . > > I found that xuggle in java maybe do it but it is very hard the article > > said. > > Please help me . Best Regards Emre K. > -- > ffmpeg-user random tip #26 > RTFM. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Sep 14 21:59:28 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Sep 2012 13:59:28 -0600 Subject: [FFmpeg-user] Capture RTP-Stream into file In-Reply-To: <1347637951351-4653455.post@n4.nabble.com> References: <1347526842390-4653415.post@n4.nabble.com> <1347637951351-4653455.post@n4.nabble.com> Message-ID: > ffmpeg -i rtp://@239.35.10.4:10000 -map 0:0 -map 0:2 -vcodec copy -acodec > copy -t 30 -y -r 50 test_r30.mkv > ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers > built on Sep 14 2012 16:19:43 with gcc 4.2.1 > configuration: --prefix=/ffmpeg-0.11.1/ --logfile=lol.log --enable-static > --enable-gpl > libavutil 51. 54.100 / 51. 54.100 > libavcodec 54. 23.100 / 54. 23.100 > libavformat 54. 6.100 / 54. 6.100 > libavdevice 54. 0.100 / 54. 0.100 > libavfilter 2. 77.100 / 2. 77.100 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [NULL @ 0x8ed9e60] non-existing PPS referenced I don't know what the problem is, but I'm wondering if maybe FFmpeg isn't waiting for a keyframe to start decoding it...? -r From rogerdpack2 at gmail.com Fri Sep 14 22:07:15 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Sep 2012 14:07:15 -0600 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: <20120914161059.GP2354@arborea> Message-ID: > @echo off > cd c:\ffmpeg\bin > ffmpeg -i rtmp://192.168.10.88/live/new -i rtmp://localhost/live/me > -filter_complex "[0]scale=iw/2:ih/2,pad=3*iw+20:3*ih+20:10:10 > [first];[1]scale=iw/2:ih/2[second] ; [first][second] overlay=main_w/2+10:10 > " -b:v 32k rtmp://localhost/live/joinFirstPair > pause > --- > but in this case waiting time kill me . What's your full console output? In general, http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide#Latency might help you with less latency... From letheea at gmail.com Fri Sep 14 22:33:58 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Fri, 14 Sep 2012 23:33:58 +0300 Subject: [FFmpeg-user] Help me with multi input in a video In-Reply-To: References: <20120914161059.GP2354@arborea> Message-ID: ooo yes , that is what I need , cause the further step is 8 stream 16 stream etc . And it wont work in this speed , but still I think they use different solution not only ffmpeg , I try to edit kernel of ffmpeg , but I haven't much time , just call ffmpeg in php or java show it in 4 x 4 , 2 x 2 or 2x3 but I'm in deep with the bat , look at that without latency encoder the code is already complex . and I've to make a formula that switch case , I must evaluate the time & performance :/ I wanna be a farmer 2012/9/14 Roger Pack > > @echo off > > cd c:\ffmpeg\bin > > ffmpeg -i rtmp://192.168.10.88/live/new -i rtmp://localhost/live/me > > -filter_complex "[0]scale=iw/2:ih/2,pad=3*iw+20:3*ih+20:10:10 > > [first];[1]scale=iw/2:ih/2[second] ; [first][second] > overlay=main_w/2+10:10 > > " -b:v 32k rtmp://localhost/live/joinFirstPair > > pause > > --- > > but in this case waiting time kill me . > > > What's your full console output? > In general, http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide#Latency > might help you with less latency... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From kosta.brazzers at gmail.com Fri Sep 14 22:48:58 2012 From: kosta.brazzers at gmail.com (Kosta Vlotis) Date: Fri, 14 Sep 2012 16:48:58 -0400 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: Message-ID: On Fri, Sep 14, 2012 at 1:31 PM, Carl Eugen Hoyos wrote: > Kosta Vlotis gmail.com> writes: > >> ffmpeg ... > >> ".\output\%root_folder_name%\vids\hd\%1_1080p_12000_no_outro.mp4" > > Please note that ffmpeg does not support outputting VFR > in mp4 since November 2010. > (All mp4 files produced by FFmpeg since November 2010 are CFR). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user that's great!... so how is this happening? i can assure you that i am getting VFR (for 1080p only) from the latest version of ffmpeg found here: http://ffmpeg.zeranoe.com/builds/ From kosta.brazzers at gmail.com Fri Sep 14 22:53:01 2012 From: kosta.brazzers at gmail.com (Kosta Vlotis) Date: Fri, 14 Sep 2012 16:53:01 -0400 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: Message-ID: On Fri, Sep 14, 2012 at 4:48 PM, Kosta Vlotis wrote: > On Fri, Sep 14, 2012 at 1:31 PM, Carl Eugen Hoyos wrote: >> Kosta Vlotis gmail.com> writes: >> >>> ffmpeg ... >> >>> ".\output\%root_folder_name%\vids\hd\%1_1080p_12000_no_outro.mp4" >> >> Please note that ffmpeg does not support outputting VFR >> in mp4 since November 2010. >> (All mp4 files produced by FFmpeg since November 2010 are CFR). >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > that's great!... so how is this happening? i can assure you that i am > getting VFR (for 1080p only) from the latest version of ffmpeg found > here: http://ffmpeg.zeranoe.com/builds/ i have attached the mediainfo output: General Complete name : movie.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 2.56 GiB Duration : 29mn 2s Overall bit rate : 12.6 Mbps Encoded date : UTC 2012-09-13 21:58:52 Tagged date : UTC 2012-09-13 21:58:52 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High at L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 5 frames Format settings, GOP : M=2, N=32 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 29mn 2s Bit rate mode : Variable Bit rate : 12.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 29.970 fps Minimum frame rate : 29.970 fps Maximum frame rate : 30.030 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.193 Stream size : 2.43 GiB (95%) Writing library : x264 core 125 r2208 d9d2288 Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / 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=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=60 / keyint_min=6 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=12000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Tagged date : UTC 2012-09-14 05:24:43 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format version : Version 4 Format profile : LC Codec ID : 40 Duration : 29mn 2s Bit rate mode : Constant Bit rate : 128 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Stream size : 26.6 MiB (1%) Tagged date : UTC 2012-09-14 05:24:43 From suriap at yahoo.com Fri Sep 14 23:13:22 2012 From: suriap at yahoo.com (Suria Pang) Date: Fri, 14 Sep 2012 14:13:22 -0700 (PDT) Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? Message-ID: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> ? Both window and linux version are giving this issue: ? ffmpg when convert prores to dpx always default to rgb48le which?yield 12M file size wilie standard HD 1920x1080?dpx are gbrp10le at 8.6M. Is there anyway to get ffmpg to convert yuv444p10le to gbrp10le?? ?? ? Here are the output and thanks, ? ? [root at dellpc ffmpeg-0.11.1]# ./ffmpeg? -i /usr/tmp/test_prores4444.mov -r 23.98? -pix_fmt gbrp10le? -s 1920x1080 /usr/tmp/dpx2/ko_009%04d.dpx ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers ? built on Sep 13 2012 09:35:51 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3) ? configuration: ? libavutil????? 51. 54.100 / 51. 54.100 ? libavcodec???? 54. 23.100 / 54. 23.100 ? libavformat??? 54.? 6.100 / 54.? 6.100 ? libavdevice??? 54.? 0.100 / 54.? 0.100 ? libavfilter???? 2. 77.100 /? 2. 77.100 ? libswscale????? 2.? 1.100 /? 2.? 1.100 ? libswresample?? 0. 15.100 /? 0. 15.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/tmp/test_prores4444.mov': ? Metadata: ??? creation_time?? : 2011-08-08 13:55:17 ? Duration: 00:00:00.62, start: 0.000000, bitrate: 161371 kb/s ??? Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 44570 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler ??? Stream #0:1(eng): Data: none (tmcd / 0x64636D74) ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler ????? timecode??????? : 00:00:00:00 [buffer @ 0x1f3bae0] w:1920 h:1080 pixfmt:yuv444p10le tb:1/23976 sar:1/1 sws_param:flags=2 [buffersink @ 0x1f30ce0] No opaque field provided Incompatible pixel format 'gbrp10le' for codec 'dpx', auto-selecting format 'rgb48le' [scale @ 0x1f30fa0] w:1920 h:1080 fmt:yuv444p10le sar:1/1 -> w:1920 h:1080 fmt:rgb48le sar:1/1 flags:0x4 Output #0, image2, to '/usr/tmp/dpx2/ko_009%04d.dpx': ? Metadata: ??? creation_time?? : 2011-08-08 13:55:17 ??? encoder???????? : Lavf54.6.100 ??? Stream #0:0(eng): Video: dpx, rgb48le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler Stream mapping: ? Stream #0:0 -> #0:0 (prores -> dpx) Press [q] to stop, [?] for help frame=?? 15 fps=8.8 q=0.0 Lsize=?????? 0kB time=00:00:00.62 bitrate=?? 0.0kbits/s??? video:182274kB audio:0kB global headers:0kB muxing overhead -100.000000% ? [root at dellpc ffmpeg-0.11.1]# ./ffmpeg? -i /usr/tmp/test_prores4444.mov -r 23.98? -pix_fmt gbrp16le? -s 1920x1080 /usr/tmp/dpx2/ko_009%04d.dpx ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers ? built on Sep 13 2012 09:35:51 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3) ? configuration: ? libavutil????? 51. 54.100 / 51. 54.100 ? libavcodec???? 54. 23.100 / 54. 23.100 ? libavformat??? 54.? 6.100 / 54.? 6.100 ? libavdevice??? 54.? 0.100 / 54.? 0.100 ? libavfilter???? 2. 77.100 /? 2. 77.100 ? libswscale????? 2.? 1.100 /? 2.? 1.100 ? libswresample?? 0. 15.100 /? 0. 15.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/tmp/test_prores4444.mov': ? Metadata: ??? creation_time?? : 2011-08-08 13:55:17 ? Duration: 00:00:00.62, start: 0.000000, bitrate: 161371 kb/s ??? Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 44570 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler ??? Stream #0:1(eng): Data: none (tmcd / 0x64636D74) ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler ????? timecode??????? : 00:00:00:00 [buffer @ 0x304bae0] w:1920 h:1080 pixfmt:yuv444p10le tb:1/23976 sar:1/1 sws_param:flags=2 [buffersink @ 0x3040ce0] No opaque field provided Incompatible pixel format 'gbrp16le' for codec 'dpx', auto-selecting format 'rgb48le' [scale @ 0x3040fa0] w:1920 h:1080 fmt:yuv444p10le sar:1/1 -> w:1920 h:1080 fmt:rgb48le sar:1/1 flags:0x4 Output #0, image2, to '/usr/tmp/dpx2/ko_009%04d.dpx': ? Metadata: ??? creation_time?? : 2011-08-08 13:55:17 ??? encoder???????? : Lavf54.6.100 ??? Stream #0:0(eng): Video: dpx, rgb48le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler Stream mapping: ? Stream #0:0 -> #0:0 (prores -> dpx) Press [q] to stop, [?] for help frame=?? 15 fps=9.0 q=0.0 Lsize=?????? 0kB time=00:00:00.62 bitrate=?? 0.0kbits/s??? video:182274kB audio:0kB global headers:0kB muxing overhead -100.000000% From cehoyos at ag.or.at Fri Sep 14 23:52:29 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 14 Sep 2012 21:52:29 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? References: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> Message-ID: Suria Pang yahoo.com> writes: > ffmpg when convert prores to dpx always default to rgb48le > which?yield 12M file size wilie standard HD 1920x1080?dpx > are gbrp10le at 8.6M. > > Is there anyway to get ffmpg to convert yuv444p10le to gbrp10le?? ?? Update to current git head. Carl Eugen From ericcocuzza12 at hotmail.com Fri Sep 14 23:58:34 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Fri, 14 Sep 2012 17:58:34 -0400 Subject: [FFmpeg-user] %improvements Message-ID: Hi Team 1. Suppose you have 720P video. and you are sending it to a Device which supports 720P resulution (like 1280X720.) and now if you are sending the same video to a low resolution device which has pixel in range 960*640. How much one could save as far as performance(Encoding/Bandwidth) is concerned. Any suggestions? --Eric From andycivil at gmail.com Sat Sep 15 00:21:31 2012 From: andycivil at gmail.com (Andy Civil) Date: Fri, 14 Sep 2012 18:21:31 -0400 Subject: [FFmpeg-user] %improvements In-Reply-To: References: Message-ID: <5053ADEB.5020603@gmail.com> On 2012-09-14 5:58 PM, eric cocuzza wrote: > > Hi Team > 1. Suppose you have 720P video. and you are sending it to a Device which supports 720P resulution (like 1280X720.) > and now if you are sending the same video to a low resolution device which has pixel in range 960*640. > How much one could save as far as performance(Encoding/Bandwidth) is concerned. Any suggestions? First, you have to address the problem that the aspect ratio is different... But then, I think it's safe to assume that bandwidth, for the same quality, is proportional to area. At least to a first approximation. -- Andy From ericcocuzza12 at hotmail.com Sat Sep 15 00:51:55 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Fri, 14 Sep 2012 18:51:55 -0400 Subject: [FFmpeg-user] %improvements In-Reply-To: <5053ADEB.5020603@gmail.com> References: , <5053ADEB.5020603@gmail.com> Message-ID: Yes it it. Will youtube itself change the video resolution based on device or it is done at Device level? If it does at youtube server then reencoding will be done at youtube server itself at given/required resolution? Am i correct? -Eric > Date: Fri, 14 Sep 2012 18:21:31 -0400 > From: andycivil at gmail.com > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] %improvements > > On 2012-09-14 5:58 PM, eric cocuzza wrote: > > > > Hi Team > > 1. Suppose you have 720P video. and you are sending it to a Device which supports 720P resulution (like 1280X720.) > > and now if you are sending the same video to a low resolution device which has pixel in range 960*640. > > How much one could save as far as performance(Encoding/Bandwidth) is concerned. Any suggestions? > > First, you have to address the problem that the aspect ratio is different... > > But then, I think it's safe to assume that bandwidth, for the same quality, is > proportional to area. At least to a first approximation. > > -- > Andy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From beining.cai at gmail.com Sat Sep 15 13:13:13 2012 From: beining.cai at gmail.com (=?GB2312?B?ssyxtMT+?=) Date: Sat, 15 Sep 2012 19:13:13 +0800 Subject: [FFmpeg-user] compile mistake of ffmpeg Message-ID: Dear ffmpeg group: I am a freshman to learn H.264, and I want to use VS2010 to compile the X264 code. But the MINGW32 tell me, there are something wrong with my compiling process. So I need some help from you. I use the ffmpeg-0.10.4 version, and follow the steps. However, it failed. I had attached the config.log to find your help. Thank you, and WAIT Ur Response. Mr. Cai -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 109848 bytes Desc: not available URL: From pyprog05 at gmail.com Sat Sep 15 21:36:44 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sat, 15 Sep 2012 21:36:44 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please Message-ID: Hello, Hi have this problem: toto at toto-kubuntu:~$ /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/home/toto/blender/dronez.avi" -s 900x720 -aspect 16:9 -vf pad=900:720:0:190:0xd28080 -sameq -y "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/essai_en_ligne_de_commande_console_bd_ext.avi" ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 27.100 / 54. 27.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg4 @ 0xb31fae0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from '/home/toto/blender/dronez.avi': Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 25 tbn, 30k tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 192 kb/s [Parsed_pad_0 @ 0xb321060] Input area 0:190:720:766 not within the padded area 0:0:900:720 or zero-sized [graph 0 input from stream 0:0 @ 0xb39c4c0] Failed to configure input pad on Parsed_pad_0 Error opening filters! And yet if I look this documentation my syntax is good, I do not understand why I get this error. Can you help me please? : http://ffmpeg.org/ffmpeg.html#pad What is the problem ? a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From pyprog05 at gmail.com Sat Sep 15 21:36:44 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sat, 15 Sep 2012 21:36:44 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please Message-ID: Hello, Hi have this problem: toto at toto-kubuntu:~$ /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/home/toto/blender/dronez.avi" -s 900x720 -aspect 16:9 -vf pad=900:720:0:190:0xd28080 -sameq -y "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/essai_en_ligne_de_commande_console_bd_ext.avi" ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 27.100 / 54. 27.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg4 @ 0xb31fae0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from '/home/toto/blender/dronez.avi': Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 25 tbn, 30k tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 192 kb/s [Parsed_pad_0 @ 0xb321060] Input area 0:190:720:766 not within the padded area 0:0:900:720 or zero-sized [graph 0 input from stream 0:0 @ 0xb39c4c0] Failed to configure input pad on Parsed_pad_0 Error opening filters! And yet if I look this documentation my syntax is good, I do not understand why I get this error. Can you help me please? : http://ffmpeg.org/ffmpeg.html#pad What is the problem ? a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From mark at mdsh.com Sat Sep 15 22:36:55 2012 From: mark at mdsh.com (Mark Himsley) Date: Sat, 15 Sep 2012 21:36:55 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: Message-ID: <5054E6E7.2070705@mdsh.com> On 15/09/2012 20:36, PyProg PyProg wrote: > Hello, > > Hi have this problem: > > toto at toto-kubuntu:~$ > /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i > "/home/toto/blender/dronez.avi" -s 900x720 -aspect 16:9 -vf > pad=900:720:0:190:0xd28080 -sameq -y > "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/essai_en_ligne_de_commande_console_bd_ext.avi" You appear to be scaling to 900 x 720 then padding to 900 x 720 and asking ffmpeg to add 190 pixels at the top of the picture. I don't think ffmpeg is allowed to break the rules of maths. Do you mean something more like this? ffmpeg -i input.avi -aspect 16:9 -vf scale=900:530,pad=900:720:0:190:0xd28080 -sameq -y output.avi Not that I'm saying it's going to look very good - but it's physically possible. > ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers > built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) > configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 > --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' > --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 > libavcodec 54. 55.100 / 54. 55.100 > libavformat 54. 27.100 / 54. 27.100 > libavdevice 54. 2.100 / 54. 2.100 > libavfilter 3. 16.103 / 3. 16.103 > libswscale 2. 1.101 / 2. 1.101 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [mpeg4 @ 0xb31fae0] Invalid and inefficient vfw-avi packed B frames detected > Input #0, avi, from '/home/toto/blender/dronez.avi': > Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s > Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 > [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 25 tbn, 30k tbc > Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, > s16, 192 kb/s > [Parsed_pad_0 @ 0xb321060] Input area 0:190:720:766 not within the > padded area 0:0:900:720 or zero-sized > [graph 0 input from stream 0:0 @ 0xb39c4c0] Failed to configure input > pad on Parsed_pad_0 > Error opening filters! > > And yet if I look this documentation my syntax is good, I do not > understand why I get this error. Can you help me please? : > > http://ffmpeg.org/ffmpeg.html#pad > > What is the problem ? > > a+ > -- Mark From rogerdpack2 at gmail.com Sun Sep 16 00:02:43 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 15 Sep 2012 16:02:43 -0600 Subject: [FFmpeg-user] compile mistake of ffmpeg In-Reply-To: References: Message-ID: > I am a freshman to learn H.264, and I want to use VS2010 to compile the > X264 code. But the MINGW32 tell me, there are something wrong with my > compiling process. So I need some help from you. I use the ffmpeg-0.10.4 > version, and follow the steps. However, it failed. I had attached the > config.log to find your help. Thank you, and WAIT Ur Response. what are you compiling exactly? libx264? (hint: ffmpeg itself only compiles with mingw). -r From pyprog05 at gmail.com Sun Sep 16 00:40:22 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 00:40:22 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5054E6E7.2070705@mdsh.com> References: <5054E6E7.2070705@mdsh.com> Message-ID: Hello Mark, 2012/9/15 Mark Himsley : > You appear to be scaling to 900 x 720 then padding to 900 x 720 and > asking ffmpeg to add 190 pixels at the top of the picture. I don't think > ffmpeg is allowed to break the rules of maths. > > Do you mean something more like this? > > ffmpeg -i input.avi -aspect 16:9 -vf > scale=900:530,pad=900:720:0:190:0xd28080 -sameq -y output.avi > > Not that I'm saying it's going to look very good - but it's physically > possible. Excuse me in advance for the translation of my response (I'm french). In fact that's the problem, I have an original video size 768x576 (ratio 4/3) and I want to add bands on each side (two bands of equal size to the left and right) to convert this video in 1280x720 without distortion (the video will keep its ratio 4/3) is simply the size of the stripes on each side that will transform this video 4/3 to 16/9. I must be able to find a generic method (because the original videos are not all in 768x576) and may be changed upon arrival in 1920x1080, 1280x720, 960x540, or 852x480. I would also do the opposite (transform 16/9 to 4/3 by adding strips of the same size on the top and on the bottom). I think the pad filter is the best way to do this, but how?, Can you put me on the way? > -- > Mark a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From rogerdpack2 at gmail.com Sun Sep 16 01:53:27 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 15 Sep 2012 17:53:27 -0600 Subject: [FFmpeg-user] default is 200 kb/s? Message-ID: I noticed that when you specify "-vcodec mpeg4" it seems to give an output of 200 kb/s. I assume it is targeting this and this is the default? Thank you. -roger- output (last line...) libavformat 54. 25.105 / 54. 25.105 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.100 / 3. 16.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [dshow @ 0239da80] Estimating duration from bitrate, this may be inaccurate Input #0, dshow, from 'video=USB Video Device': Duration: N/A, start: 292777.300000, bitrate: N/A Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x960, 5 tbr, 10000k tbn, 5 tbc [dshow @ 0239da80] real-time buffer 161% full! frame dropped! Last message repeated 2 times Output #0, mp4, to 'C:/Documents and Settings/Melissa/My Documents/My Videos/usb_surveillance/USB Video Device/2012-09-15/17h-45m.mp4.partial': Metadata: encoder : Lavf54.25.105 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1280x960, q=2-31, 200 kb/s, 5 tbn, 5 tbc From dashing.meng at gmail.com Sun Sep 16 03:37:00 2012 From: dashing.meng at gmail.com (littlebat) Date: Sun, 16 Sep 2012 09:37:00 +0800 Subject: [FFmpeg-user] compile mistake of ffmpeg In-Reply-To: References: Message-ID: <20120916093700.7a9501c3.dashing.meng@gmail.com> On Sat, 15 Sep 2012 19:13:13 +0800 ??? wrote: Your log: >./configure: line 628: yasm: command not found >yasm not found, use --disable-yasm for a crippled build Missing yasm command. From andycivil at gmail.com Sun Sep 16 04:32:35 2012 From: andycivil at gmail.com (Andy Civil) Date: Sat, 15 Sep 2012 22:32:35 -0400 Subject: [FFmpeg-user] default is 200 kb/s? In-Reply-To: References: Message-ID: <50553A43.10900@gmail.com> On 2012-09-15 7:53 PM, Roger Pack wrote: > I noticed that when you specify "-vcodec mpeg4" it seems to give an > output of 200 kb/s. I assume it is targeting this and this is the > default? > Thank you. > -roger- It's what you might call a "known problem". I'm only guessing, but I'm pretty sure that the default value was sensible years ago when it was defined, and from then on, no one felt able to change it, since it might break expectations and there's no compelling reason to. Unfortunately, it does trip up a few new users (like me, once) who wonder why the default quality is "terrible". Basically, you need to set your bitrate (or choose a quality level, or something else that fixes it). -- Andy From rogerdpack2 at gmail.com Sun Sep 16 05:41:47 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 15 Sep 2012 21:41:47 -0600 Subject: [FFmpeg-user] default is 200 kb/s? In-Reply-To: <50553A43.10900@gmail.com> References: <50553A43.10900@gmail.com> Message-ID: > Unfortunately, it does trip up a few new users (like me, once) who wonder > why the default quality is "terrible". Totally agree. Maybe it should output a warning when it chooses such an odd default... -r From tariq.connect at gmail.com Sun Sep 16 08:38:00 2012 From: tariq.connect at gmail.com (Md. Tariq Anjum) Date: Sun, 16 Sep 2012 12:08:00 +0530 Subject: [FFmpeg-user] default is 200 kb/s? Message-ID: On Sep 16, 2012 5:24 AM, "Roger Pack" wrote: From pyprog05 at gmail.com Sun Sep 16 13:28:58 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 13:28:58 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: <5054E6E7.2070705@mdsh.com> Message-ID: Hello, I think I found the solution, I'm going to see for 16/9 now : toto at toto-kubuntu:~$ /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/toto/angelo/blender/big_buck_bunny_4_3.avi" -vf "scale=768:432,pad=768:576:0:72:0xa05f41,setdar=4:3" -sameq -y "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/15_09_12_bd_ext.avi" ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 27.100 / 54. 27.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [avi @ 0xa3c27a0] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from '/home/toto/blender/big_buck_bunny_4_3.avi': Metadata: encoder : MEncoder svn r34540 (Ubuntu), built with gcc-4.6 Duration: 00:09:56.45, start: 0.000000, bitrate: 9750 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuv420p, 768x576, 24 tbr, 24 tbn, 24 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, avi, to '/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/15_09_12_bd_ext.avi': Metadata: ISFT : Lavf54.27.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 768x576 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 24 tbn, 24 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16 Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> mpeg4) Stream #0:1 -> #0:1 (pcm_s16le -> libmp3lame) Press [q] to stop, [?] for help frame=14315 fps= 70 q=5.0 Lsize= 127803kB time=00:09:56.47 bitrate=1755.3kbits/s video:108284kB audio:18584kB subtitle:0 global headers:0kB muxing overhead 0.736849% *** --> "scale=768:432,pad=768:576:0:72:0xa05f41,setdar=4:3" *** >>> 432+(2*72) *** 576 a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From pyprog05 at gmail.com Sun Sep 16 13:30:31 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 13:30:31 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: <5054E6E7.2070705@mdsh.com> Message-ID: Oups : /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/home/toto/blender/big_buck_bunny_4_3.avi" -vf "scale=768:432,pad=768:576:0:72:0xa05f41,setdar=4:3" -sameq -y "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/15_09_12_bd_ext.avi" -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From mark at mdsh.com Sun Sep 16 15:20:12 2012 From: mark at mdsh.com (Mark Himsley) Date: Sun, 16 Sep 2012 14:20:12 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: <5054E6E7.2070705@mdsh.com> Message-ID: <5055D20C.4050405@mdsh.com> On 15/09/12 23:40, PyProg PyProg wrote: > Hello Mark, > > 2012/9/15 Mark Himsley : >> You appear to be scaling to 900 x 720 then padding to 900 x 720 and >> asking ffmpeg to add 190 pixels at the top of the picture. I don't think >> ffmpeg is allowed to break the rules of maths. >> >> Do you mean something more like this? >> >> ffmpeg -i input.avi -aspect 16:9 -vf >> scale=900:530,pad=900:720:0:190:0xd28080 -sameq -y output.avi >> >> Not that I'm saying it's going to look very good - but it's physically >> possible. > > Excuse me in advance for the translation of my response (I'm french). Your English is probably better than mine. > In fact that's the problem, I have an original video size 768x576 > (ratio 4/3) Not according to ffmpeg: Input #0, avi, from '/home/toto/blender/dronez.avi': Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 Your original video is a 4:3 standard definition 720x576 file. You might have a video player (QuickTime, for instance) that lies slightly and tells you the file is 768x576 because it knows that standard definition pixels are not square (although Apple should scale up to 788x576, but that's another argument). > and I want to add bands on each side (two bands of equal > size to the left and right) to convert this video in 1280x720 without > distortion (the video will keep its ratio 4/3) is simply the size of > the stripes on each side that will transform this video 4/3 to 16/9. I'm sure I will get flack for this - but this is the way I would scale that video (keeping your pink border): -vf scale=984:720:interl=1,pad=1280:720:148:0:0xd28080 Those numbers might be unfamiliar to many, but retains the video's display aspect ratio to within 0.07%. > I must be able to find a generic method (because the original videos > are not all in 768x576) and may be changed upon arrival in 1920x1080, > 1280x720, 960x540, or 852x480. Then you must learn how to write a script that probes your source file first and calculates the scale and pad arguments for you. > I would also do the opposite (transform 16/9 to 4/3 by adding strips > of the same size on the top and on the bottom). > > I think the pad filter is the best way to do this, but how?, Can you > put me on the way? > >> -- >> Mark > > a+ > From pyprog05 at gmail.com Sun Sep 16 19:14:40 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 19:14:40 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5055D20C.4050405@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> Message-ID: 2012/9/16 Mark Himsley : Hello !, > Your English is probably better than mine. Humhum, I'm not sure ! > Not according to ffmpeg: > > Input #0, avi, from '/home/toto/blender/dronez.avi': > Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s > Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 > > Your original video is a 4:3 standard definition 720x576 file. You might > have a video player (QuickTime, for instance) that lies slightly and tells > you the file is 768x576 because it knows that standard definition pixels are > not square (although Apple should scale up to 788x576, but that's another > argument). > I'm sure I will get flack for this - but this is the way I would scale that > video (keeping your pink border): > > -vf scale=984:720:interl=1,pad=1280:720:148:0:0xd28080 > > Those numbers might be unfamiliar to many, but retains the video's display > aspect ratio to within 0.07%. My calculations of the moment are: For a final 16:9 disposition with a 4/3 original video ... calculate: * Calculation of the width (after scale): height x (4.0 / 3.0) -> here: 720.0 * (4.0 / 3.0) ==> 960.0 * Calculating the size (width) of each band for example the left band): (1280.0 - 960.0) / 2.0 ==> 160.0 --> band_width = (final_width - intermediate_width) / 2.0 Here in FFmpeg: toto at toto-kubuntu:~$ /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/home/toto/blender/big_buck_bunny_4_3.avi" -vf "scale=960:720:interl=1,pad=1280:720:160:0:0xa05f41,setdar=16:9" -sameq -y "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/15_09_12_bd_ext_1280x720_16_9.avi" ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 27.100 / 54. 27.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [avi @ 0xa4517a0] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from '/home/toto/blender/big_buck_bunny_4_3.avi': Metadata: encoder : MEncoder svn r34540 (Ubuntu), built with gcc-4.6 Duration: 00:09:56.45, start: 0.000000, bitrate: 9750 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuv420p, 768x576, 24 tbr, 24 tbn, 24 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Output #0, avi, to '/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/15_09_12_bd_ext_1280x720_16_9.avi': Metadata: ISFT : Lavf54.27.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 tbn, 24 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16 Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> mpeg4) Stream #0:1 -> #0:1 (pcm_s16le -> libmp3lame) Press [q] to stop, [?] for help frame=14315 fps= 56 q=5.0 Lsize= 195250kB time=00:09:56.47 bitrate=2681.6kbits/s video:175731kB audio:18584kB subtitle:0 global headers:0kB muxing overhead 0.481061% The result is very good ! > Then you must learn how to write a script that probes your source file first > and calculates the scale and pad arguments for you. In fact it's for my software: EnKoDeur-Mixeur (EKD). I'm the creator and devlopper (with two other people). I've implemented this fonctionnality for a moment but I put it up with the old syntax of FFmpeg (padleft ... padright ...). If you're interested with the software, you can see the links in my signature. Check out this video (it's a teachware for this fonctionnality in EKD): http://www.youtube.com/watch?v=2qN97JFuO7c The youtube channel for EnKoDeur-Mixeur: http://www.youtube.com/user/EnKoDeurMixeur a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From pyprog05 at gmail.com Sun Sep 16 21:09:27 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 21:09:27 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 Message-ID: Hello, I have a problem with converting video in images with mov and mp4 in FFmpeg (with the static version: ffmpeg version N-44443-g570931d). In both cases I get two videos whose weight is 2.8 kb. I tried with other codecs and everything works fine ... is there a problem with the mov mp4 and at this level? Here is the syntax: /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v 1800 -f mov -q:v 1 -y "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov" /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v 1800 -f mp4 -q:v 1 -y "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mp4" a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From pyprog05 at gmail.com Sun Sep 16 21:09:27 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 21:09:27 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 Message-ID: Hello, I have a problem with converting video in images with mov and mp4 in FFmpeg (with the static version: ffmpeg version N-44443-g570931d). In both cases I get two videos whose weight is 2.8 kb. I tried with other codecs and everything works fine ... is there a problem with the mov mp4 and at this level? Here is the syntax: /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v 1800 -f mov -q:v 1 -y "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov" /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v 1800 -f mp4 -q:v 1 -y "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mp4" a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From cehoyos at ag.or.at Sun Sep 16 21:21:22 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 16 Sep 2012 19:21:22 +0000 (UTC) Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 References: Message-ID: PyProg PyProg gmail.com> writes: > Here is the syntax: > > /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 > -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v (Note that you cannot specify an input resolution for jpg images.) > 1800 -f mov -q:v 1 -y > "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov" Complete, uncut console output missing. Carl Eugen From pyprog05 at gmail.com Sun Sep 16 21:43:27 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 21:43:27 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: 2012/9/16 Carl Eugen Hoyos : > (Note that you cannot specify an input resolution for jpg images.) > > Complete, uncut console output missing. The output seem good but the video is unreadable on arrival and weighs 2.8 kb. Here the output for the mov : toto at toto-kubuntu:~$ /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v 1800 -f mov -q:v 1 -y "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov" ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 27.100 / 54. 27.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, image2, from '/home/toto/.ekd_tmp/ekd_toto/%08d.jpg': Duration: 00:00:02.08, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj420p, 800x600 [SAR 72:72 DAR 4:3], 12 fps, 12 tbr, 12 tbn, 12 tbc [libx264 @ 0x996a1e0] using SAR=1/1 [libx264 @ 0x996a1e0] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT [libx264 @ 0x996a1e0] profile High, level 3.1 [libx264 @ 0x996a1e0] 264 - core 124 r2197 69a0443 - 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 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=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mov, to '/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov': Metadata: encoder : Lavf54.27.100 Stream #0:0: Video: h264 (avc1 / 0x31637661), yuvj420p, 800x600 [SAR 1:1 DAR 4:3], q=-1--1, 1 kb/s, 12 tbn, 12 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Press [q] to stop, [?] for help frame= 25 fps=0.0 q=-1.0 Lsize= 3kB time=00:00:01.91 bitrate= 12.0kbits/s video:2kB audio:0kB subtitle:0 global headers:0kB muxing overhead 43.690773% [libx264 @ 0x996a1e0] frame I:2 Avg QP:51.00 size: 212 [libx264 @ 0x996a1e0] frame P:23 Avg QP:51.00 size: 37 [libx264 @ 0x996a1e0] mb I I16..4: 47.6% 52.4% 0.0% [libx264 @ 0x996a1e0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.1% 0.0% 0.2% 0.0% 0.0% skip:99.6% [libx264 @ 0x996a1e0] final ratefactor: 79.38 [libx264 @ 0x996a1e0] 8x8 transform intra:52.4% [libx264 @ 0x996a1e0] coded y,uvDC,uvAC intra: 0.0% 0.4% 0.0% inter: 0.0% 0.0% 0.0% [libx264 @ 0x996a1e0] i16 v,h,dc,p: 88% 9% 3% 0% [libx264 @ 0x996a1e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 0% 100% 0% 0% 0% 0% 0% 0% [libx264 @ 0x996a1e0] i8c dc,h,v,p: 100% 0% 0% 0% [libx264 @ 0x996a1e0] Weighted P-Frames: Y:8.7% UV:8.7% [libx264 @ 0x996a1e0] kb/s:4.93 > Carl Eugen a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From cehoyos at ag.or.at Sun Sep 16 22:21:14 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 16 Sep 2012 20:21:14 +0000 (UTC) Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 References: Message-ID: PyProg PyProg gmail.com> writes: > > Complete, uncut console output missing. > > The output seem good but the video is unreadable > on arrival and weighs 2.8 kb. What do you mean with "unreadable"? What does ffmpeg -i 16_09_12.mov show? Carl Eugen From mark at mdsh.com Sun Sep 16 22:58:42 2012 From: mark at mdsh.com (Mark Himsley) Date: Sun, 16 Sep 2012 21:58:42 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> Message-ID: <50563D82.7090104@mdsh.com> On 16/09/2012 18:14, PyProg PyProg wrote: > 2012/9/16 Mark Himsley : > >> Not according to ffmpeg: >> >> Input #0, avi, from '/home/toto/blender/dronez.avi': >> Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s >> Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 >> >> Your original video is a 4:3 standard definition 720x576 file. You might >> have a video player (QuickTime, for instance) that lies slightly and tells >> you the file is 768x576 because it knows that standard definition pixels are >> not square (although Apple should scale up to 788x576, but that's another >> argument). > >> I'm sure I will get flack for this - but this is the way I would scale that >> video (keeping your pink border): >> >> -vf scale=984:720:interl=1,pad=1280:720:148:0:0xd28080 >> >> Those numbers might be unfamiliar to many, but retains the video's display >> aspect ratio to within 0.07%. > > My calculations of the moment are: > > For a final 16:9 disposition with a 4/3 original video ... calculate: > > * Calculation of the width (after scale): height x (4.0 / 3.0) -> > here: 720.0 * (4.0 / 3.0) ==> 960.0 You are falling into the trap that the all of the pixels on a 720x576 line are part of the active 4:3 picture. Where as only 702 pixels are. If you wish to ignore the calculated scale and pad values I gave you above, and insist on sticking with your calculated numbers, then you (like many before you and many to follow) will get the will get the images 2.5% too narrow. I'm sure that will flatter most people, being 2.5% too thin, but it is wrong. Please believe the experience of 26 years at the BBC. > * Calculating the size (width) of each band for example the left band): > (1280.0 - 960.0) / 2.0 ==> 160.0 > --> band_width = (final_width - intermediate_width) / 2.0 > > Here in FFmpeg: > > toto at toto-kubuntu:~$ > /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i > "/home/toto/blender/big_buck_bunny_4_3.avi" -vf > "scale=960:720:interl=1,pad=1280:720:160:0:0xa05f41,setdar=16:9" > -sameq -y "/home/toto/a/nouv_EKD/video/version_3/filtres_vid?o/15_09_12_bd_ext_1280x720_16_9.avi" -- Mark From pyprog05 at gmail.com Sun Sep 16 23:14:44 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 16 Sep 2012 23:14:44 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: 2012/9/16 Carl Eugen Hoyos : > What do you mean with "unreadable"? You can watch or download the result here: http://glouk.legtux.org/divers/16_09_12.mov > What does ffmpeg -i 16_09_12.mov show? The result : toto at toto-kubuntu:~$ /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i /home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 27.100 / 54. 27.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.27.100 Duration: 00:00:02.08, start: 0.000000, bitrate: 11 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p, 800x600 [SAR 1:1 DAR 4:3], 7 kb/s, 12 fps, 12 tbr, 12 tbn, 24 tbc Metadata: handler_name : DataHandler At least one output file must be specified > Carl Eugen a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From blacktrash at gmx.net Mon Sep 17 00:35:19 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Sun, 16 Sep 2012 23:35:19 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5055D20C.4050405@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> Message-ID: <20120916223519.GA779@krille.blacktrash.org> * Mark Himsley on Sunday, September 16, 2012 at 14:20:12 +0100 > Input #0, avi, from '/home/toto/blender/dronez.avi': > Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s > Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 > > Your original video is a 4:3 standard definition 720x576 file. You > might have a video player (QuickTime, for instance) that lies slightly > and tells you the file is 768x576 because it knows that standard > definition pixels are not square (although Apple should scale up to > 788x576, but that's another argument). I'm interested - man mplayer lists: spal: 768x576 (square pixel PAL) Does this reflect a common misconception? On the other hand 788 is not divisible by 16 ... If you don't mind elaborating. thx -- 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 cehoyos at ag.or.at Mon Sep 17 00:42:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 16 Sep 2012 22:42:25 +0000 (UTC) Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 References: Message-ID: PyProg PyProg gmail.com> writes: > > What do you mean with "unreadable"? > > You can watch or download the result here: > > http://glouk.legtux.org/divers/16_09_12.mov Could you also provide the input jpgs? Carl Eugen From blacktrash at gmx.net Mon Sep 17 01:06:11 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 17 Sep 2012 00:06:11 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <20120916223519.GA779@krille.blacktrash.org> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> Message-ID: <20120916230611.GB779@krille.blacktrash.org> * Christian Ebert on Sunday, September 16, 2012 at 23:35:19 +0100 > * Mark Himsley on Sunday, September 16, 2012 at 14:20:12 +0100 >> Input #0, avi, from '/home/toto/blender/dronez.avi': >> Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s >> Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 >> >> Your original video is a 4:3 standard definition 720x576 file. You >> might have a video player (QuickTime, for instance) that lies slightly >> and tells you the file is 768x576 because it knows that standard >> definition pixels are not square (although Apple should scale up to >> 788x576, but that's another argument). > > I'm interested - man mplayer lists: > > spal: 768x576 (square pixel PAL) > > Does this reflect a common misconception? > > On the other hand 788 is not divisible by 16 ... Found this: http://www.sciencemedianetwork.org/wiki/Tutorials/Video/Pixel_Aspect_Ratio Interesting indeed. -- \black\trash movie _SAME TIME SAME PLACE_ New York, in the summer of 2001 --->> http://www.blacktrash.org/underdogma/stsp.php From mark at mdsh.com Mon Sep 17 08:40:43 2012 From: mark at mdsh.com (Mark Himsley) Date: Mon, 17 Sep 2012 07:40:43 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <20120916223519.GA779@krille.blacktrash.org> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> Message-ID: <5056C5EB.2090802@mdsh.com> On 16/09/2012 23:35, Christian Ebert wrote: > * Mark Himsley on Sunday, September 16, 2012 at 14:20:12 +0100 >> Input #0, avi, from '/home/toto/blender/dronez.avi': >> Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s >> Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 >> >> Your original video is a 4:3 standard definition 720x576 file. You >> might have a video player (QuickTime, for instance) that lies slightly >> and tells you the file is 768x576 because it knows that standard >> definition pixels are not square (although Apple should scale up to >> 788x576, but that's another argument). > > I'm interested - man mplayer lists: > > spal: 768x576 (square pixel PAL) > > Does this reflect a common misconception? > > On the other hand 788 is not divisible by 16 ... > > If you don't mind elaborating. Yes - it is a common misconception. This BBC web page had lots of information, until the great web cull of early 2011, so here's a link to the way-back-machine: http://replay.waybackmachine.org/20100826080627/www.bbc.co.uk/commissioning/tvbranding/picturesize.shtml This Adobe web page describes how they got it wrong all the way up before After Effects CS4: http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7f3aa.html This page also describes the difference between Adobe After Effects CS3 and CS4: http://www.mikeafford.com/blog/2009/03/pal-d1-dv-widescreen-square-pixel-settings-in-after-effects-cs4-vs-cs3/ -- Mark From letheea at gmail.com Mon Sep 17 08:41:46 2012 From: letheea at gmail.com (Emre K) Date: Sun, 16 Sep 2012 23:41:46 -0700 (PDT) Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: Message-ID: <1347864106905-4653501.post@n4.nabble.com> make pad=2*iw:2*ih so your display area is bigger than the video area , ----- what does not kill you make you stronger . FFMPEG can do it -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-with-vf-pad-help-please-tp4653478p4653501.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nichot20 at yahoo.com Mon Sep 17 09:13:08 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 17 Sep 2012 08:13:08 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5056C5EB.2090802@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> <5056C5EB.2090802@mdsh.com> Message-ID: <5056CD84.4090608@yahoo.com> On 17/09/12 07:40, Mark Himsley wrote: > On 16/09/2012 23:35, Christian Ebert wrote: >> * Mark Himsley on Sunday, September 16, 2012 at 14:20:12 +0100 >>> Input #0, avi, from '/home/toto/blender/dronez.avi': >>> Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s >>> Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 >>> >>> Your original video is a 4:3 standard definition 720x576 file. You >>> might have a video player (QuickTime, for instance) that lies slightly >>> and tells you the file is 768x576 because it knows that standard >>> definition pixels are not square (although Apple should scale up to >>> 788x576, but that's another argument). >> >> I'm interested - man mplayer lists: >> >> spal: 768x576 (square pixel PAL) >> >> Does this reflect a common misconception? >> >> On the other hand 788 is not divisible by 16 ... >> >> If you don't mind elaborating. > > Yes - it is a common misconception. > > This BBC web page had lots of information, until the great web cull of > early 2011, so here's a link to the way-back-machine: > > http://replay.waybackmachine.org/20100826080627/www.bbc.co.uk/commissioning/tvbranding/picturesize.shtml > > This Adobe web page describes how they got it wrong all the way up > before After Effects CS4: > > http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7f3aa.html > Ahh, I remember it well ;) but give them credit, they did bite the bullet and fix it, even though it caused them quite a bit of pain... 'Twas about the only good thing to come out of DMI..... >[..] -- Tim From blacktrash at gmx.net Mon Sep 17 09:44:58 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 17 Sep 2012 08:44:58 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5056C5EB.2090802@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> <5056C5EB.2090802@mdsh.com> Message-ID: <20120917074458.GC779@krille.blacktrash.org> * Mark Himsley on Monday, September 17, 2012 at 07:40:43 +0100 > On 16/09/2012 23:35, Christian Ebert wrote: >> * Mark Himsley on Sunday, September 16, 2012 at 14:20:12 +0100 >>> Input #0, avi, from '/home/toto/blender/dronez.avi': >>> Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s >>> Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576 >>> >>> Your original video is a 4:3 standard definition 720x576 file. You >>> might have a video player (QuickTime, for instance) that lies slightly >>> and tells you the file is 768x576 That's not entirely true, at least as long as you do not transcode with QT. Standard pal is exported e.g. from Final Cut as is without fiddling of the display aspect ratio; or rather QT does not recognize the DAR at all. Unless you tweak the "Scaled Size" in the video properties settings it stays at 720x576. You can then scale it to 788x576. >>> because it knows that standard >>> definition pixels are not square (although Apple should scale up to >>> 788x576, but that's another argument). >> >> I'm interested - man mplayer lists: >> >> spal: 768x576 (square pixel PAL) >> >> Does this reflect a common misconception? >> >> On the other hand 788 is not divisible by 16 ... >> >> If you don't mind elaborating. > > Yes - it is a common misconception. > > This BBC web page had lots of information, until the great web cull of > early 2011, so here's a link to the way-back-machine: > > http://replay.waybackmachine.org/20100826080627/www.bbc.co.uk/commissioning/tvbranding/picturesize.shtml > > This Adobe web page describes how they got it wrong all the way up > before After Effects CS4: > > http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7f3aa.html > > This page also describes the difference between Adobe After Effects CS3 > and CS4: > > http://www.mikeafford.com/blog/2009/03/pal-d1-dv-widescreen-square-pixel-settings-in-after-effects-cs4-vs-cs3/ Thanks for the pointers - now I know why I had this nagging suspicion that something was not quite right DAR-wise with my transcodings. For the web I will probably crop so I can stay with "simple" aspect ratios, something like: -vf crop=iw-18:ih,yadif,scale=640:480,setsar=1:1 -- \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 sdefawes at ina.fr Mon Sep 17 11:05:56 2012 From: sdefawes at ina.fr (Stan Defawes) Date: Mon, 17 Sep 2012 11:05:56 +0200 Subject: [FFmpeg-user] MPEG TS from DVB-T to ProRes 422 - Trouble with sound. Message-ID: <6C774733-107F-4705-9247-F2E4CF0C28AF@ina.fr> Hi, I'm trying to convert an MPEG Transport Stream from DVB-T to ProRes 422 for FCP with ffmbc. My command line is : ffmbc -i input.MPG -f mov -vcodec prores -acodec pcm_u16le -ss 00:00:03:00 -t 00:00:05:00 out.mov I'm sure there is a lot of parameters i forgot for a best result but at this time my problem is with the audio. The result is good for the video but there is no audio stream in the result ?? In the strem MPEGTS the audio is EAC-3. i need help please ... Thank's a lot Stanislas From sdefawes at ina.fr Mon Sep 17 11:40:09 2012 From: sdefawes at ina.fr (Stan Defawes) Date: Mon, 17 Sep 2012 11:40:09 +0200 Subject: [FFmpeg-user] MPEG TS from DVB-T to ProRes 422 - Trouble with sound. In-Reply-To: <6C774733-107F-4705-9247-F2E4CF0C28AF@ina.fr> References: <6C774733-107F-4705-9247-F2E4CF0C28AF@ina.fr> Message-ID: <7912005A-8326-4538-83CB-D82543E8E44C@ina.fr> in fact the problem seems to have difficulty to synchronize audio and video this alert is coming a lot of time when encoding : error, audio timestamps difference is too big, cannot compensate a/v sync and the result is no audio in the file output. Is the some parameters to force synchro when encoding ? like -async or something like that ? Le 17 sept. 2012 ? 11:05, Stan Defawes a ?crit : > Hi, > > I'm trying to convert an MPEG Transport Stream from DVB-T to ProRes 422 for FCP with ffmbc. > My command line is : > > ffmbc -i input.MPG -f mov -vcodec prores -acodec pcm_u16le -ss 00:00:03:00 -t 00:00:05:00 out.mov > > I'm sure there is a lot of parameters i forgot for a best result but at this time my problem is with the audio. > The result is good for the video but there is no audio stream in the result ?? > In the strem MPEGTS the audio is EAC-3. > i need help please ... > > Thank's a lot > > Stanislas > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From david at davidfavor.com Mon Sep 17 15:20:48 2012 From: david at davidfavor.com (David Favor) Date: Mon, 17 Sep 2012 08:20:48 -0500 Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container Message-ID: <505723B0.3040009@davidfavor.com> It appears .mp4 containers allow for positioning information of multiple video streams. My goal is to do -vcodec copy with two video streams, where the 2nd stream is positioned to the right of the first one, creating a "side by side" video. And... skip the transcode step via -vcodec copy. If this is possible, pass along the syntax. Thanks. -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From mark at mdsh.com Mon Sep 17 15:50:31 2012 From: mark at mdsh.com (Mark Himsley) Date: Mon, 17 Sep 2012 14:50:31 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <20120917074458.GC779@krille.blacktrash.org> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> <5056C5EB.2090802@mdsh.com> <20120917074458.GC779@krille.blacktrash.org> Message-ID: <50572AA7.3010903@mdsh.com> On 17/09/12 08:44, Christian Ebert wrote: > * Mark Himsley on Monday, September 17, 2012 at 07:40:43 +0100 >> Yes - it is a common misconception. >> >> This BBC web page had lots of information, until the great web cull of >> early 2011, so here's a link to the way-back-machine: >> >> http://replay.waybackmachine.org/20100826080627/www.bbc.co.uk/commissioning/tvbranding/picturesize.shtml >> >> This Adobe web page describes how they got it wrong all the way up >> before After Effects CS4: >> >> http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7f3aa.html >> >> This page also describes the difference between Adobe After Effects CS3 >> and CS4: >> >> http://www.mikeafford.com/blog/2009/03/pal-d1-dv-widescreen-square-pixel-settings-in-after-effects-cs4-vs-cs3/ > > Thanks for the pointers - now I know why I had this nagging > suspicion that something was not quite right DAR-wise with my > transcodings. For the web I will probably crop so I can stay with > "simple" aspect ratios, something like: > > -vf crop=iw-18:ih,yadif,scale=640:480,setsar=1:1 Does crop default to centred (I honestly cannot remember)? Otherwise you'll crop all 18 pixels off one edge. And, if your video has sub-sampled chroma (422 or 420 for example) then you can only crop to even numbers, and you end up cropping 8 pixels off one side and 10 pixels off the other. But, yes, that's the idea. -- Mark From cehoyos at ag.or.at Mon Sep 17 16:02:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 17 Sep 2012 14:02:12 +0000 (UTC) Subject: [FFmpeg-user] MPEG TS from DVB-T to ProRes 422 - Trouble with sound. References: <6C774733-107F-4705-9247-F2E4CF0C28AF@ina.fr> Message-ID: Stan Defawes ina.fr> writes: > I'm trying to convert an MPEG Transport Stream from > DVB-T to ProRes 422 for FCP with ffmbc. Wrong mailing list? Carl Eugen From sdefawes at ina.fr Mon Sep 17 16:10:22 2012 From: sdefawes at ina.fr (Stan Defawes) Date: Mon, 17 Sep 2012 16:10:22 +0200 Subject: [FFmpeg-user] MPEG TS from DVB-T to ProRes 422 - Trouble with sound. In-Reply-To: References: <6C774733-107F-4705-9247-F2E4CF0C28AF@ina.fr> Message-ID: gasp ! there is another mailing list for ffmbc ?? sorry.... but if anybody have an idea to do the same with ffmpeg i will be happy too :) So i'm going to the other list, thanks Carl ! Le 17 sept. 2012 ? 16:02, Carl Eugen Hoyos a ?crit : > Stan Defawes ina.fr> writes: > >> I'm trying to convert an MPEG Transport Stream from >> DVB-T to ProRes 422 for FCP with ffmbc. > > Wrong mailing list? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nichot20 at yahoo.com Mon Sep 17 16:42:00 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 17 Sep 2012 15:42:00 +0100 Subject: [FFmpeg-user] [Bulk] Re: Problem with vf pad ... help please In-Reply-To: <50572AA7.3010903@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> <5056C5EB.2090802@mdsh.com> <20120917074458.GC779@krille.blacktrash.org> <50572AA7.3010903@mdsh.com> Message-ID: <505736B8.7000009@yahoo.com> On 17/09/12 14:50, Mark Himsley wrote: > On 17/09/12 08:44, Christian Ebert wrote: [...] >> Thanks for the pointers - now I know why I had this nagging >> suspicion that something was not quite right DAR-wise with my >> transcodings. For the web I will probably crop so I can stay with >> "simple" aspect ratios, something like: >> >> -vf crop=iw-18:ih,yadif,scale=640:480,setsar=1:1 > > Does crop default to centred (I honestly cannot remember)? Otherwise > you'll crop all 18 pixels off one edge. > > And, if your video has sub-sampled chroma (422 or 420 for example) then > you can only crop to even numbers, and you end up cropping 8 pixels off > one side and 10 pixels off the other. > Isn't that the root of the 702/704 pixel argument....? > But, yes, that's the idea. > -- Tim From blacktrash at gmx.net Mon Sep 17 17:05:44 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 17 Sep 2012 16:05:44 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <50572AA7.3010903@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <20120916223519.GA779@krille.blacktrash.org> <5056C5EB.2090802@mdsh.com> <20120917074458.GC779@krille.blacktrash.org> <50572AA7.3010903@mdsh.com> Message-ID: <20120917150544.GF779@krille.blacktrash.org> * Mark Himsley on Monday, September 17, 2012 at 14:50:31 +0100 > On 17/09/12 08:44, Christian Ebert wrote: >> -vf crop=iw-18:ih,yadif,scale=640:480,setsar=1:1 > > Does crop default to centred (I honestly cannot remember)? Yes. The crop filter takes additional parameters for x and y to position the cropped area, but defaults to centered; see the manual. > Otherwise you'll crop all 18 pixels off one edge. heh > And, if your video has sub-sampled chroma (422 or 420 for example) Not sure. I assume so: http://en.wikipedia.org/wiki/Chroma_subsampling#4:2:0 Feel free to correct my ignorance. > then you can only crop to even numbers, and you end up cropping 8 > pixels off one side and 10 pixels off the other. If that's the case I'll have to live with that (for web conversions to a straight 4/3 aspect ratio). > But, yes, that's the idea. OK -- \black\trash movie _COWBOY CANOE COMA_ Ein deutscher Western/A German Western --->> http://www.blacktrash.org/underdogma/ccc.php From nicolas.george at normalesup.org Mon Sep 17 17:36:54 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 17 Sep 2012 17:36:54 +0200 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <50563D82.7090104@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <50563D82.7090104@mdsh.com> Message-ID: <20120917153654.GA28326@phare.normalesup.org> Le jour de la Vertu, an CCXX, Mark Himsley a ?crit?: > You are falling into the trap that the all of the pixels on a 720x576 > line are part of the active 4:3 picture. Where as only 702 pixels are. > > If you wish to ignore the calculated scale and pad values I gave you > above, and insist on sticking with your calculated numbers, then you > (like many before you and many to follow) will get the will get the > images 2.5% too narrow. I'm sure that will flatter most people, being > 2.5% too thin, but it is wrong. Please believe the experience of 26 > years at the BBC. Do you have any normative reference about that? It seems to contradict what I remember (I'll have to dig into the standards again) reading. Note that I do not doubt your 26 years of BBC, just I wonder who is doing something wrong: it could also be the ones producing the padded 702 pixels. 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 rogerdpack2 at gmail.com Mon Sep 17 18:06:01 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 17 Sep 2012 10:06:01 -0600 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: > toto at toto-kubuntu:~$ > /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 > -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v > 1800 -f mov -q:v 1 -y > "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov" > ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers > built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) > configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 > --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' > --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/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 51. 73.100 / 51. 73.100 > libavcodec 54. 55.100 / 54. 55.100 > libavformat 54. 27.100 / 54. 27.100 > libavdevice 54. 2.100 / 54. 2.100 > libavfilter 3. 16.103 / 3. 16.103 > libswscale 2. 1.101 / 2. 1.101 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > Input #0, image2, from '/home/toto/.ekd_tmp/ekd_toto/%08d.jpg': > Duration: 00:00:02.08, start: 0.000000, bitrate: N/A > Stream #0:0: Video: mjpeg, yuvj420p, 800x600 [SAR 72:72 DAR 4:3], > 12 fps, 12 tbr, 12 tbn, 12 tbc > [libx264 @ 0x996a1e0] using SAR=1/1 > [libx264 @ 0x996a1e0] using cpu capabilities: MMX2 SSE2Fast > FastShuffle SSEMisalign LZCNT > [libx264 @ 0x996a1e0] profile High, level 3.1 > [libx264 @ 0x996a1e0] 264 - core 124 r2197 69a0443 - 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 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=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr > mbtree=1 bitrate=1 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 > ip_ratio=1.40 aq=1:1.00 > Output #0, mov, to > '/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov': > Metadata: > encoder : Lavf54.27.100 > Stream #0:0: Video: h264 (avc1 / 0x31637661), yuvj420p, 800x600 > [SAR 1:1 DAR 4:3], q=-1--1, 1 kb/s, 12 tbn, 12 tbc The "1 kb/s" may be suspicious... > In both cases I get two videos whose weight is 2.8 kb. I tried with > other codecs and everything works fine ... is there a problem with the > mov mp4 and at this level? What do you mean by weight? "bitrate="? It may have to do with libx264 not the container. -r From pyprog05 at gmail.com Mon Sep 17 18:14:41 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Mon, 17 Sep 2012 18:14:41 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: 2012/9/17 Carl Eugen Hoyos : Hello Carl, > Could you also provide the input jpgs? I'll send to you the pictures by email as soon as possible (I'll try tonight or tomorrow, but I'm very busy). > Carl Eugen a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From cehoyos at ag.or.at Mon Sep 17 18:17:41 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 17 Sep 2012 16:17:41 +0000 (UTC) Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 References: Message-ID: PyProg PyProg gmail.com> writes: > /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 > -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -b:v > 1800 -f mov -q:v 1 -y > "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/16_09_12.mov" Sorry for not realizing earlier (as said, there are multiple problems with your command line): It of course makes no sense to specify both a quality and a bitrate, and since the bitrate is ridiculously small, this is probably the reason why the output video does not look very good. Carl Eugen From pyprog05 at gmail.com Mon Sep 17 18:27:37 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Mon, 17 Sep 2012 18:27:37 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: 2012/9/17 Roger Pack : > The "1 kb/s" may be suspicious... > > What do you mean by weight? "bitrate="? > It may have to do with libx264 not the container. > -r Hello, look at this screenshot: http://glouk.legtux.org/divers/17_09_12_video_fautive_transform_img_en_video_mov_ffmpeg_001.jpg a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From rogerdpack2 at gmail.com Mon Sep 17 18:31:59 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 17 Sep 2012 10:31:59 -0600 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: > Hello, look at this screenshot: > > http://glouk.legtux.org/divers/17_09_12_video_fautive_transform_img_en_video_mov_ffmpeg_001.jpg Is Taille file size? From nichot20 at yahoo.com Mon Sep 17 18:53:49 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 17 Sep 2012 17:53:49 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <20120917153654.GA28326@phare.normalesup.org> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <50563D82.7090104@mdsh.com> <20120917153654.GA28326@phare.normalesup.org> Message-ID: <5057559D.6060701@yahoo.com> On 17/09/12 16:36, Nicolas George wrote: > Le jour de la Vertu, an CCXX, Mark Himsley a ?crit : >> You are falling into the trap that the all of the pixels on a 720x576 >> line are part of the active 4:3 picture. Where as only 702 pixels are. >> >> If you wish to ignore the calculated scale and pad values I gave you >> above, and insist on sticking with your calculated numbers, then you >> (like many before you and many to follow) will get the will get the >> images 2.5% too narrow. I'm sure that will flatter most people, being >> 2.5% too thin, but it is wrong. Please believe the experience of 26 >> years at the BBC. > > Do you have any normative reference about that? It seems to contradict what > I remember (I'll have to dig into the standards again) reading. > You have to work it out from ITU-R BT.601-7 TABLE 4 and ITU-R BT.470-6 ! This gives (for 625/50):- Number of samples per total line for each signal =864. Analogue total line timing 64us Analogue active line timing 52us Therefore digital samples per active analogue line = 864*52/64 =>702. The 4:3 aspect ratio dates back to analogue days and so aspect ratio calculations must be based on the analogue picture width and height, i.e 702x576. Hope this helps. > Note that I do not doubt your 26 years of BBC, just I wonder who is doing > something wrong: it could also be the ones producing the padded 702 pixels. > > Regards, > > [..] -- Tim From cccppp at t-online.de Mon Sep 17 16:24:26 2012 From: cccppp at t-online.de (night4awk) Date: Mon, 17 Sep 2012 07:24:26 -0700 (PDT) Subject: [FFmpeg-user] Capture RTP-Stream into file In-Reply-To: References: <1347526842390-4653415.post@n4.nabble.com> <1347637951351-4653455.post@n4.nabble.com> Message-ID: <1347891866186-4653510.post@n4.nabble.com> Roger Pack wrote > > I don't know what the problem is, but I'm wondering if maybe FFmpeg > isn't waiting for a keyframe to start decoding it...? Are there any options in ffmpeg to influence the keyframe properties? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Capture-RTP-Stream-into-file-tp4653415p4653510.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From supretsonu99 at gmail.com Mon Sep 17 16:42:09 2012 From: supretsonu99 at gmail.com (sujith sudhakaran) Date: Mon, 17 Sep 2012 20:12:09 +0530 Subject: [FFmpeg-user] Fwd: Not able to stream over HTTP In-Reply-To: References: Message-ID: Hi Guys, I am very new to ffmpeg, What I am trying to do is that, I have made some changes in the ffserver code and have started the HTTP server. Now, when I am trying to run the command to stream the media, it is giving some error. command: ffmpeg -i test.mp4 http://localhost:8090/feed1.ffm Error: ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 5 2012 15:17:16 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configuration: --cxx=CXX libavutil 51. 34.101 / 51. 34.101 libavcodec 53. 60.100 / 53. 60.100 libavformat 53. 31.100 / 53. 31.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 60.100 / 2. 60.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp42avc1 creation_time : 2012-04-27 08:20:10 Duration: 00:02:08.28, start: 0.000000, bitrate: 539 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 104 kb/s Metadata: creation_time : 2012-04-27 08:20:10 handler_name : Apple Sound Media Handler Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240, 429 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc Metadata: creation_time : 2012-04-27 08:20:10 handler_name : Apple Video Media Handler [buffer @ 0x112cc860] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x112b9e40] w:320 h:240 fmt:yuv420p -> w:160 h:128 fmt:yuv420p flags:0x4 [buffer @ 0x112e0a40] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x11286e00] w:320 h:240 fmt:yuv420p -> w:352 h:240 fmt:yuv420p flags:0x4 I am not able to figure out what is happening. Please help me out with this. Thanking in advance. From rogerdpack2 at gmail.com Mon Sep 17 20:08:26 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 17 Sep 2012 12:08:26 -0600 Subject: [FFmpeg-user] Capture RTP-Stream into file In-Reply-To: <1347891866186-4653510.post@n4.nabble.com> References: <1347526842390-4653415.post@n4.nabble.com> <1347637951351-4653455.post@n4.nabble.com> <1347891866186-4653510.post@n4.nabble.com> Message-ID: >> I don't know what the problem is, but I'm wondering if maybe FFmpeg >> isn't waiting for a keyframe to start decoding it...? > > Are there any options in ffmpeg to influence the keyframe properties? I think by default it should correctly ignore the frames that precede a keyframe, but I'm not too knowledgeable on the subject. -r From mark at mdsh.com Mon Sep 17 20:56:06 2012 From: mark at mdsh.com (Mark Himsley) Date: Mon, 17 Sep 2012 19:56:06 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5057559D.6060701@yahoo.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <50563D82.7090104@mdsh.com> <20120917153654.GA28326@phare.normalesup.org> <5057559D.6060701@yahoo.com> Message-ID: <50577246.3000904@mdsh.com> On 17/09/2012 17:53, Tim Nicholson wrote: > On 17/09/12 16:36, Nicolas George wrote: >> Le jour de la Vertu, an CCXX, Mark Himsley a ?crit : >>> You are falling into the trap that the all of the pixels on a 720x576 >>> line are part of the active 4:3 picture. Where as only 702 pixels are. >>> >>> If you wish to ignore the calculated scale and pad values I gave you >>> above, and insist on sticking with your calculated numbers, then you >>> (like many before you and many to follow) will get the will get the >>> images 2.5% too narrow. I'm sure that will flatter most people, being >>> 2.5% too thin, but it is wrong. Please believe the experience of 26 >>> years at the BBC. >> >> Do you have any normative reference about that? It seems to contradict what >> I remember (I'll have to dig into the standards again) reading. >> > > You have to work it out from ITU-R BT.601-7 TABLE 4 and ITU-R BT.470-6 ! > > This gives (for 625/50):- > > Number of samples per total line for each signal =864. > > Analogue total line timing 64us > Analogue active line timing 52us > > Therefore digital samples per active analogue line = 864*52/64 =>702. Or to put it another way. The sample frequency of an analogue 'PAL' or 'SECAM' line is: 1 / 0.000064 * 864 = 13.5 MHz exactly. Which makes the active 52 micro-seconds have exactly 702 pixels 0.000052 ? 13500000 = 702 I've heard people say that the size of a digital line is different to the size of an analogue line. But that is not how it was (is, for those places which have not gone all digital yet) transmitted, so is a wrong assumption. > The 4:3 aspect ratio dates back to analogue days and so aspect ratio > calculations must be based on the analogue picture width and height, i.e > 702x576. Exactly. > Hope this helps. Yes - it saved me a lot of typing. Thanks Tim. I think I'd like to submit http://lipas.uwasa.fi/~f76998/video/conversion/ as evidence too, as Jukka has a good way with words and a good selection of references. -- Mark From kosta.brazzers at gmail.com Mon Sep 17 21:25:15 2012 From: kosta.brazzers at gmail.com (Kosta Vlotis) Date: Mon, 17 Sep 2012 15:25:15 -0400 Subject: [FFmpeg-user] ffmpeg choses variable framerate for 1080p video only In-Reply-To: References: Message-ID: On Fri, Sep 14, 2012 at 4:53 PM, Kosta Vlotis wrote: > On Fri, Sep 14, 2012 at 4:48 PM, Kosta Vlotis wrote: >> On Fri, Sep 14, 2012 at 1:31 PM, Carl Eugen Hoyos wrote: >>> Kosta Vlotis gmail.com> writes: >>> >>>> ffmpeg ... >>> >>>> ".\output\%root_folder_name%\vids\hd\%1_1080p_12000_no_outro.mp4" >>> >>> Please note that ffmpeg does not support outputting VFR >>> in mp4 since November 2010. >>> (All mp4 files produced by FFmpeg since November 2010 are CFR). >>> >>> Carl Eugen >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> that's great!... so how is this happening? i can assure you that i am >> getting VFR (for 1080p only) from the latest version of ffmpeg found >> here: http://ffmpeg.zeranoe.com/builds/ > > i have attached the mediainfo output: > > > General > Complete name : movie.mp4 > Format : MPEG-4 > Format profile : Base Media > Codec ID : isom > File size : 2.56 GiB > Duration : 29mn 2s > Overall bit rate : 12.6 Mbps > Encoded date : UTC 2012-09-13 21:58:52 > Tagged date : UTC 2012-09-13 21:58:52 > > Video > ID : 1 > Format : AVC > Format/Info : Advanced Video Codec > Format profile : High at L4.1 > Format settings, CABAC : Yes > Format settings, ReFrames : 5 frames > Format settings, GOP : M=2, N=32 > Codec ID : avc1 > Codec ID/Info : Advanced Video Coding > Duration : 29mn 2s > Bit rate mode : Variable > Bit rate : 12.0 Mbps > Width : 1 920 pixels > Height : 1 080 pixels > Display aspect ratio : 16:9 > Frame rate mode : Variable > Frame rate : 29.970 fps > Minimum frame rate : 29.970 fps > Maximum frame rate : 30.030 fps > Color space : YUV > Chroma subsampling : 4:2:0 > Bit depth : 8 bits > Scan type : Progressive > Bits/(Pixel*Frame) : 0.193 > Stream size : 2.43 GiB (95%) > Writing library : x264 core 125 r2208 d9d2288 > Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / > analyse=0x3:0x113 / me=umh / subme=8 / 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=12 / > lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / > interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / > b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 > / weightp=2 / keyint=60 / keyint_min=6 / scenecut=40 / intra_refresh=0 > / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=12000 / ratetol=1.0 / > qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 > Tagged date : UTC 2012-09-14 05:24:43 > > Audio > ID : 2 > Format : AAC > Format/Info : Advanced Audio Codec > Format version : Version 4 > Format profile : LC > Codec ID : 40 > Duration : 29mn 2s > Bit rate mode : Constant > Bit rate : 128 Kbps > Channel(s) : 2 channels > Channel positions : Front: L R > Sampling rate : 48.0 KHz > Stream size : 26.6 MiB (1%) > Tagged date : UTC 2012-09-14 05:24:43 i have a suspicion that mp4box is causing my issues. i'm using the -cat option to join to CFR videos together but the result is coming out as VFR. From pyprog05 at gmail.com Mon Sep 17 22:15:44 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Mon, 17 Sep 2012 22:15:44 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: 2012/9/17 Roger Pack : > Is Taille file size? Yes. -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From pyprog05 at gmail.com Mon Sep 17 22:20:28 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Mon, 17 Sep 2012 22:20:28 +0200 Subject: [FFmpeg-user] Problem for converting images to video with mov and mp4 In-Reply-To: References: Message-ID: 2012/9/17 Carl Eugen Hoyos : > Sorry for not realizing earlier (as said, there are multiple > problems with your command line): > It of course makes no sense to specify both a quality and a > bitrate, and since the bitrate is ridiculously small, this is > probably the reason why the output video does not look very > good. Thanks ? lot Carl !, you are right ! ... /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -r 12 -s 800x600 -f image2 -i "/home/toto/.ekd_tmp/ekd_toto/%08d.jpg" -f mov -q:v 1 -y "/home/toto/a/nouv_EKD/video/version_3/transform_img_en_vid/17_09_12.mov" ... is good for me now ! (the problem was -b:v 1800). > Carl Eugen a+ -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From 2derand at gmail.com Tue Sep 18 00:05:33 2012 From: 2derand at gmail.com (Andrey Derevyagin) Date: Tue, 18 Sep 2012 01:05:33 +0300 Subject: [FFmpeg-user] Static compilation on Mac OS X Message-ID: Hello, I wants compile ffmpeg with h264 library inside on ffmpeg. I use this instruction ( http://ffmpeg.org/trac/ffmpeg/wiki/MacOSXCompilationGuide). All libraries installed from "homebrew" but ffmpeg compile from sources. For ffmpeg configure using command: ./configure --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-static --disable-ffplay --disable-ffprobe --disable-ffserver --disable-w32threads --disable-network --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libass --enable-fontconfig --enable-libopenjpeg --enable-runtime-cpudetect --target-os=darwin --arch=i386 --enable-cross-compile --disable-optimizations --enable-extra-warnings configuration completes fine and make creates executable ffmpeg file (14 MB). But when I copied this file to another mac and try run app exist with error: ffmpeg dyld: Library not loaded: /usr/local/lib/libx264.125.dylib Referenced from: /Users/derand/Desktop/ffmpeg Reason: image not found Trace/BPT trap: 5 I think the x264 library not linked inside ffmpeg file. Can I somehow fix it without installation x264 library to my second mac? Thanks -- Best Regards, Andrey Derevyagin e-mail: 2derand at gmail.com skype: derand8 mob: +380 63-306-51-54 From letheea at gmail.com Tue Sep 18 09:04:18 2012 From: letheea at gmail.com (Emre K) Date: Tue, 18 Sep 2012 00:04:18 -0700 (PDT) Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container In-Reply-To: <505723B0.3040009@davidfavor.com> References: <505723B0.3040009@davidfavor.com> Message-ID: <1347951858566-4653528.post@n4.nabble.com> yes it's possible . You can do it with the pad filter and the secondly overlay . ffmpeg -i firstInput.mp4 -vf "[in] pad=2*iw:ih:FromLeftPaddingInteger:FromTopPaddingInteger , scale=iw/2:ih/2 [firstOne]; movie=secondInput.mp4 , scale=iw/2:ih/2 [secondOne]; [firstOne][secondOne] overlay=theSecondVideoPositioningFromLeft:theSecondVideoPositioningFromTop " out.avi i.e ffmpeg.exe -i double1.avi -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie=double2.avi, scale=iw/2:ih/2 [right]; [left][right] overlay=main_w/2:0 [out]" -f flv rtm... here is iw = input video width ih = "" "" height main_w = main screen width main_h = main screen height movie is the second source left and right is the parameter that you describe , tag . overlay is the filter first video padding information can be written pad:THE GENERAL OVERLAY WIDTH : HEIGHT : FIRST VIDEO WIDTH : SECOND VIDEO HEIGHT. If you want Top and Bottom View you can do this in this way ----- what does not kill you make you stronger . FFMPEG can do it -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Syntax-for-merging-positioning-two-video-streams-in-mp4-container-tp4653506p4653528.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Tue Sep 18 10:02:02 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 08:02:02 +0000 (UTC) Subject: [FFmpeg-user] Static compilation on Mac OS X References: Message-ID: Andrey Derevyagin <2derand gmail.com> writes: > ./configure --enable-gpl --enable-version3 --enable-nonfree > --disable-shared > --enable-static This means "compile all FFmpeg libraries as static libraries", not "add -static to the linking options" which I believe would fail anyway, but please test --extra-ldflags=-static. (And since --disable-shared --enable-static is default, you may safely omit it.) [...] > I think the x264 library not linked inside ffmpeg file. > Can I somehow fix it without installation x264 library > to my second mac? (Assuming there is a libx264.a file) Remove the libx264.dylib file (temporarily) from your build system. Carl Eugen From cehoyos at ag.or.at Tue Sep 18 10:03:45 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 08:03:45 +0000 (UTC) Subject: [FFmpeg-user] Fwd: Not able to stream over HTTP References: Message-ID: sujith sudhakaran gmail.com> writes: > command: ffmpeg -i test.mp4 http://localhost:8090/feed1.ffm > > Error: > > ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers This is old. [...] I do not see any error message in the output you posted. Carl Eugen From cehoyos at ag.or.at Tue Sep 18 10:06:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 08:06:06 +0000 (UTC) Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container References: <505723B0.3040009@davidfavor.com> Message-ID: David Favor davidfavor.com> writes: > It appears .mp4 containers allow for positioning information > of multiple video streams. You may be wrong here;-) (mov != mp4) > My goal is to do -vcodec copy with two video streams, where > the 2nd stream is positioned to the right of the first one, > creating a "side by side" video. This is not currently possible with FFmpeg. Assuming you were the one uploading the Skype sample: Did you already try to find out which mov atom allows QuickTime to understand it should place the video streams side-by-side? Carl Eugen From cehoyos at ag.or.at Tue Sep 18 10:10:31 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 08:10:31 +0000 (UTC) Subject: [FFmpeg-user] MPEG TS from DVB-T to ProRes 422 - Trouble with sound. References: <6C774733-107F-4705-9247-F2E4CF0C28AF@ina.fr> Message-ID: Stan Defawes ina.fr> writes: > ffmbc -i input.MPG -f mov -vcodec prores -acodec pcm_u16le > -ss 00:00:03:00 -t 00:00:05:00 out.mov I don't think the mov container supports unsigned 16bit pcm audio, if you have such a sample, please provide it. Carl Eugen From 286166657 at qq.com Tue Sep 18 09:09:13 2012 From: 286166657 at qq.com (=?ISO-8859-1?B?TXl0aA==?=) Date: Tue, 18 Sep 2012 15:09:13 +0800 Subject: [FFmpeg-user] How to Decode h264 Video Stream? Message-ID: Hi Roger, I have tried the below command as you said, the h264 file is the raw file. #ffmpeg -f h264 -i /work/sharefolder/stupid/H264_30fps_1Mbps_640x480_track1.h264 I got below messages: ffmpeg version N-44390-g0c5fe2f Copyright (c) 2000-2012 the FFmpeg developers built on Sep 13 2012 09:46:59 with gcc 4.5.3 (Gentoo 4.5.3-r2 p1.1, pie-0.4.7) configuration: --arch=x86 --target-os=linux libavutil 51. 72.100 / 51. 72.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 26.101 / 54. 26.101 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.103 / 3. 16.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 [h264 @ 0x954d540] max_analyze_duration 5000000 reached at 5033208 [h264 @ 0x954d540] Estimating duration from bitrate, this may be inaccurate Input #0, h264, from '/work/sharefolder/stupid/H264_30fps_1Mbps_640x480_track1.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 1200k tbn, 60 tbc At least one output file must be specified How can I get the picture frames just like doc/examples/decoding_encoding.c does. Thanks, Stefan ------------------ Original ------------------ From: "Roger Pack"; Date: Sat, Sep 15, 2012 00:22 AM To: "FFmpeg user questions"; Subject: Re: [FFmpeg-user] How to Decode h264 Video Stream? > I'm new of FFmpeg, I want to decode an h264 video stream. I have built the latest FFmpeg source code successfully. But I don't know how to use ffmpeg binary, the argument is too complex. Who can help me ? It's a "raw" h264 stream? (I guess that's possible?) If it is then ffmpeg -format h264 -i input ... might work... -roger- _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From francois.visagie at gmail.com Tue Sep 18 10:59:40 2012 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 18 Sep 2012 10:59:40 +0200 Subject: [FFmpeg-user] Easier way to display program execution time on Windows Message-ID: <019f01cd957b$f554e4f0$dffeaed0$@gmail.com> Hi, Following recent discussions about measuring execution time, I just remembered that the command prompt is an easy way to display program execution time on Windows. Execute: prompt $P$S$D$S$T$G This changes the command prompt to the form: C:\Users\fvisagie 2012/09/18 10:55:50.45> This makes it easy to read the system time before and after executing a particular program. As mentioned before, to display the current time at some point inside a script, do: echo. | time Or to append that time to a log file, do: echo. | time >>logfile.txt Hopefully this is of some help. Francois From cehoyos at ag.or.at Tue Sep 18 11:00:05 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 09:00:05 +0000 (UTC) Subject: [FFmpeg-user] How to Decode h264 Video Stream? References: Message-ID: Myth <286166657 qq.com> writes: > #ffmpeg -f h264 -i H264_30fps_1Mbps_640x480_track1.h264 As said, "-f h264" should not be needed. (But I admit there are exceptions.) [...] > How can I get the picture frames just like > doc/examples/decoding_encoding.c does. Please define "picture frames". (FFmpeg supports several dozen very different encoders, and most of the are definitely useful. So if you don't tell us what you want your decoded frames to look like nobody will be able to help you.) Please do not top-post here, it is considered rude, Carl Eugen From 286166657 at qq.com Tue Sep 18 11:32:53 2012 From: 286166657 at qq.com (=?ISO-8859-1?B?TXl0aA==?=) Date: Tue, 18 Sep 2012 17:32:53 +0800 Subject: [FFmpeg-user] Fw:Configure Error When Enable Libx264 Message-ID: Hi All, I want to build FFmpeg with h.264 libraries. #./configure --arch=x86 --target-os=linux --enable-libx264 --enable-gpl But I get below message: If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user at mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.err" produced by configure as this will help solving the problem. My git version is 1.7.3.4, could you help me resolve this issue? Thanks, Xin From cehoyos at ag.or.at Tue Sep 18 11:46:15 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 09:46:15 +0000 (UTC) Subject: [FFmpeg-user] Fw:Configure Error When Enable Libx264 References: Message-ID: Myth <286166657 qq.com> writes: > I want to build FFmpeg with h.264 libraries. > #./configure --arch=x86 --target-os=linux --enable-libx264 --enable-gpl (Both arch and target-os should be unneeded. Are they not auto-detected for you?) > But I get below message: > If you think configure made a mistake, make sure you are > using the latest version from SVN. The version of FFmpeg you are trying to compile is completely outdated, please test git head, see http://ffmpeg.org/download.html Carl Eugen From andycivil at gmail.com Tue Sep 18 14:15:09 2012 From: andycivil at gmail.com (Andy Civil) Date: Tue, 18 Sep 2012 08:15:09 -0400 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: References: Message-ID: <505865CD.3060504@gmail.com> On 2012-09-18 3:09 AM, Myth wrote: > Hi Roger, > > I have tried the below command as you said, the h264 file is the raw file. But, Roger's command included an ellipsis "..." meaning that the rest of the command should follow. The problem is, you won't tell us how you want your output after you've 'decoded' it. > How can I get the picture frames just like doc/examples/decoding_encoding.c does. Perhaps you mean that you want individual image files? If so, try this: ffmpeg -format h264 -i input -an -qscale 1 %06d.jpg This will give a whole bunch of individual JPEG files. If JPEG files were NOT what you wanted, then you have to tell us how you expect to "get the picture frames". -- Andy From cehoyos at ag.or.at Tue Sep 18 14:22:58 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 12:22:58 +0000 (UTC) Subject: [FFmpeg-user] How to Decode h264 Video Stream? References: <505865CD.3060504@gmail.com> Message-ID: Andy Civil gmail.com> writes: > ffmpeg -format h264 -i input -an -qscale 1 %06d.jpg (does not work) -an is unneeded, and the MEncoder documentation always strongly advised not to use -qscale 1 (but 2), I believe this still applies (but I may be wrong). Carl Eugen From andycivil at gmail.com Tue Sep 18 14:59:18 2012 From: andycivil at gmail.com (Andy Civil) Date: Tue, 18 Sep 2012 08:59:18 -0400 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: References: <505865CD.3060504@gmail.com> Message-ID: <50587026.7020202@gmail.com> On 2012-09-18 8:22 AM, Carl Eugen Hoyos wrote: > Andy Civil gmail.com> writes: > >> ffmpeg -format h264 -i input -an -qscale 1 %06d.jpg > > (does not work) > -an is unneeded, and the MEncoder documentation always > strongly advised not to use -qscale 1 (but 2), I believe > this still applies (but I may be wrong). Fair enough; I copied the params from here https://sites.google.com/site/linuxencoding/ffmpeg-tips after doing a 'reality check' in my head. Shall we suggest ffmpeg -format h264 -i input -qscale 2 %06d.jpg then? -- Andy From cehoyos at ag.or.at Tue Sep 18 15:12:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 13:12:49 +0000 (UTC) Subject: [FFmpeg-user] How to Decode h264 Video Stream? References: <505865CD.3060504@gmail.com> <50587026.7020202@gmail.com> Message-ID: Andy Civil gmail.com> writes: > Shall we suggest > ffmpeg -format h264 -i input -qscale 2 %06d.jpg > then? That will still not work, but it does not matter because imo as long as the op does not give a little more information this is all just guessing. Carl Eugen From andycivil at gmail.com Tue Sep 18 15:36:06 2012 From: andycivil at gmail.com (Andy Civil) Date: Tue, 18 Sep 2012 09:36:06 -0400 Subject: [FFmpeg-user] How to Decode h264 Video Stream? In-Reply-To: References: <505865CD.3060504@gmail.com> <50587026.7020202@gmail.com> Message-ID: <505878C6.7050002@gmail.com> On 2012-09-18 9:12 AM, Carl Eugen Hoyos wrote: > Andy Civil gmail.com> writes: > >> Shall we suggest >> ffmpeg -format h264 -i input -qscale 2 %06d.jpg >> then? > > That will still not work, but it does not matter > because imo as long as the op does not give a little > more information this is all just guessing. It works for me, I just tested it. I do get a warning that says "Please use -q:a or -q:v, -qscale is ambiguous". I was hoping that serving the OP his output as JPEGs might prompt him to tell us what he /really/ wanted. -- Andy From letheea at gmail.com Tue Sep 18 16:50:51 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Tue, 18 Sep 2012 17:50:51 +0300 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <50577246.3000904@mdsh.com> References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <50563D82.7090104@mdsh.com> <20120917153654.GA28326@phare.normalesup.org> <5057559D.6060701@yahoo.com> <50577246.3000904@mdsh.com> Message-ID: did you try this? -vf="scale=x:y,pad:W:H:PadX:PadY" 2012/9/17 Mark Himsley > On 17/09/2012 17:53, Tim Nicholson wrote: > > On 17/09/12 16:36, Nicolas George wrote: > >> Le jour de la Vertu, an CCXX, Mark Himsley a ?crit : > >>> You are falling into the trap that the all of the pixels on a 720x576 > >>> line are part of the active 4:3 picture. Where as only 702 pixels are. > >>> > >>> If you wish to ignore the calculated scale and pad values I gave you > >>> above, and insist on sticking with your calculated numbers, then you > >>> (like many before you and many to follow) will get the will get the > >>> images 2.5% too narrow. I'm sure that will flatter most people, being > >>> 2.5% too thin, but it is wrong. Please believe the experience of 26 > >>> years at the BBC. > >> > >> Do you have any normative reference about that? It seems to contradict > what > >> I remember (I'll have to dig into the standards again) reading. > >> > > > > You have to work it out from ITU-R BT.601-7 TABLE 4 and ITU-R BT.470-6 ! > > > > This gives (for 625/50):- > > > > Number of samples per total line for each signal =864. > > > > Analogue total line timing 64us > > Analogue active line timing 52us > > > > Therefore digital samples per active analogue line = 864*52/64 =>702. > > Or to put it another way. > > The sample frequency of an analogue 'PAL' or 'SECAM' line is: > > 1 / 0.000064 * 864 = 13.5 MHz exactly. > > Which makes the active 52 micro-seconds have exactly 702 pixels > > 0.000052 ? 13500000 = 702 > > I've heard people say that the size of a digital line is different to > the size of an analogue line. But that is not how it was (is, for those > places which have not gone all digital yet) transmitted, so is a wrong > assumption. > > > The 4:3 aspect ratio dates back to analogue days and so aspect ratio > > calculations must be based on the analogue picture width and height, i.e > > 702x576. > > Exactly. > > > Hope this helps. > > Yes - it saved me a lot of typing. Thanks Tim. > > > I think I'd like to submit > http://lipas.uwasa.fi/~f76998/video/conversion/ as evidence too, as > Jukka has a good way with words and a good selection of references. > > -- > Mark > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From letheea at gmail.com Tue Sep 18 16:49:24 2012 From: letheea at gmail.com (Emre K) Date: Tue, 18 Sep 2012 07:49:24 -0700 (PDT) Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: Message-ID: <1347979764614-4653545.post@n4.nabble.com> did you try this ? -vf = "scale=x:y , pad:W:H:PadX:PadY" _? ----- what does not kill you make you stronger . FFMPEG can do it -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-with-vf-pad-help-please-tp4653478p4653545.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rogerdpack2 at gmail.com Tue Sep 18 17:35:41 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 09:35:41 -0600 Subject: [FFmpeg-user] Static compilation on Mac OS X In-Reply-To: References: Message-ID: >> I think the x264 library not linked inside ffmpeg file. >> Can I somehow fix it without installation x264 library >> to my second mac? > > (Assuming there is a libx264.a file) > Remove the libx264.dylib file (temporarily) from your build system. if you don't have a libx264.a file then you may need to configure and build x264 like --enable-static From rogerdpack2 at gmail.com Tue Sep 18 17:37:07 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 09:37:07 -0600 Subject: [FFmpeg-user] Fw:Configure Error When Enable Libx264 In-Reply-To: References: Message-ID: > I want to build FFmpeg with h.264 libraries. I assume you already have libx264 libraries installed locally? From timo.infradex at gmail.com Tue Sep 18 14:20:49 2012 From: timo.infradex at gmail.com (Timo S) Date: Tue, 18 Sep 2012 05:20:49 -0700 (PDT) Subject: [FFmpeg-user] BGR24-YUV420-BGR24 conversion on raw video Message-ID: <1347970849712-4653539.post@n4.nabble.com> Hello. I am tring to find an explanation on this peculiarity: 1) Introduce a raw BGR24 avi video and transcode it to YUV420 using ffmpeg -i rawinput.avi -vcodec rawvideo -pix_fmt yuv420p output.yuv 2) Transcode it back to BGR24 avi using ffmpeg -s 848x480 -i output.yuv -vcodec rawvideo -pix_fmt bgr24 raw_decoded.avi 3) Compare PSNR, AbsDiff and UIQ results on the original rawinput.avi and raw_decoded.avi Results: Comparative PSNR, AbsDiff and UIQ measurements on Y-components indicate that the raw_decoded.avi has changed (ie PSNR-Y way less than 100 dB). Change definitely should be expected on U and V components but I did not expect any change on Y component. Any ideas? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/BGR24-YUV420-BGR24-conversion-on-raw-video-tp4653539.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From timo.infradex at gmail.com Tue Sep 18 14:32:54 2012 From: timo.infradex at gmail.com (Timo S) Date: Tue, 18 Sep 2012 05:32:54 -0700 (PDT) Subject: [FFmpeg-user] BGR24-YUV420-BGR24 conversion on raw video In-Reply-To: <1347970849712-4653539.post@n4.nabble.com> References: <1347970849712-4653539.post@n4.nabble.com> Message-ID: <1347971574801-4653541.post@n4.nabble.com> ffmpeg -s 848x480 -i D:\sintel_7.yuv -vcodec rawvideo -pix_fmt bgr 24 sintel_7_rawYUVDecoded.avi ffmpeg version N-41074-g9c27f29 Copyright (c) 2000-2012 the FFmpeg developers built on May 27 2012 13:25:48 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e nable-zlib libavutil 51. 55.100 / 51. 55.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.101 / 54. 6.101 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 00000000003af340] Estimating duration from bitrate, this may be inac curate Input #0, rawvideo, from 'D:\sintel_7.yuv': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 848x480, 25 tbr, 25 tbn, 25 tbc [buffer @ 0000000001f94f40] w:848 h:480 pixfmt:yuv420p tb:1/25 sar:0/1 sws_param :flags=2 [buffersink @ 0000000001f95e20] No opaque field provided [format @ 0000000001f82b00] auto-inserting filter 'auto-inserted scaler 0' betwe en the filter 'src' and the filter 'format' [scale @ 0000000001f83420] w:848 h:480 fmt:yuv420p sar:0/1 -> w:848 h:480 fmt:bg r24 sar:0/1 flags:0x4 Output #0, avi, to 'sintel_7_rawYUVDecoded.avi': Metadata: ISFT : Lavf54.6.101 Stream #0:0: Video: rawvideo, bgr24, 848x480, q=2-31, 200 kb/s, 25 tbn, 25 t bc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> rawvideo) Press [q] to stop, [?] for help Truncating packet of size 610560 to 1 frame= 98 fps=0.0 q=0.0 Lsize= 116873kB time=00:00:03.92 bitrate=244240.4kbit s/s video:116865kB audio:0kB global headers:0kB muxing overhead 0.006713% C:\Users\Timo>ffmpeg -s 848x480 -i D:\sintel_7.yuv -vcodec rawvideo -pix_fmt bgr 24 d:\sintel_7_rawYUVDecoded.avi ffmpeg version N-41074-g9c27f29 Copyright (c) 2000-2012 the FFmpeg developers built on May 27 2012 13:25:48 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e nable-zlib libavutil 51. 55.100 / 51. 55.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.101 / 54. 6.101 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 00000000003df380] Estimating duration from bitrate, this may be inac curate Input #0, rawvideo, from 'D:\sintel_7.yuv': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 848x480, 25 tbr, 25 tbn, 25 tbc [buffer @ 0000000000344f80] w:848 h:480 pixfmt:yuv420p tb:1/25 sar:0/1 sws_param :flags=2 [buffersink @ 0000000000345e60] No opaque field provided [format @ 0000000000332b20] auto-inserting filter 'auto-inserted scaler 0' betwe en the filter 'src' and the filter 'format' [scale @ 0000000000333440] w:848 h:480 fmt:yuv420p sar:0/1 -> w:848 h:480 fmt:bg r24 sar:0/1 flags:0x4 Output #0, avi, to 'd:\sintel_7_rawYUVDecoded.avi': Metadata: ISFT : Lavf54.6.101 Stream #0:0: Video: rawvideo, bgr24, 848x480, q=2-31, 200 kb/s, 25 tbn, 25 t bc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> rawvideo) Press [q] to stop, [?] for help Truncating packet of size 610560 to 1 frame= 98 fps=0.0 q=0.0 Lsize= 116873kB time=00:00:03.92 bitrate=244240.4kbit s/s video:116865kB audio:0kB global headers:0kB muxing overhead 0.006713% -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/BGR24-YUV420-BGR24-conversion-on-raw-video-tp4653539p4653541.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From varunpatilis at gmail.com Tue Sep 18 07:42:26 2012 From: varunpatilis at gmail.com (Varun) Date: Mon, 17 Sep 2012 22:42:26 -0700 (PDT) Subject: [FFmpeg-user] MPEG DASH compatible segments In-Reply-To: References: <1347598953427-4653430.post@n4.nabble.com> Message-ID: <1347946946178-4653527.post@n4.nabble.com> I use the regular segment options in ffmpeg to create TS segments. I am working on some other tools, to see whether i could use them for DASH segment creation. How are you creating segments and mpd currently? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MPEG-DASH-compatible-segments-tp4653380p4653527.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mark.himsley at gmail.com Tue Sep 18 20:39:59 2012 From: mark.himsley at gmail.com (Mark Himsley) Date: Tue, 18 Sep 2012 19:39:59 +0100 Subject: [FFmpeg-user] BGR24-YUV420-BGR24 conversion on raw video In-Reply-To: <1347970849712-4653539.post@n4.nabble.com> References: <1347970849712-4653539.post@n4.nabble.com> Message-ID: On 18 Sep 2012 19:10, "Timo S" wrote: > > Hello. > > I am tring to find an explanation on this peculiarity: > > 1) Introduce a raw BGR24 avi video and transcode it to YUV420 using ffmpeg > -i rawinput.avi -vcodec rawvideo -pix_fmt yuv420p output.yuv > 2) Transcode it back to BGR24 avi using ffmpeg -s 848x480 -i output.yuv > -vcodec rawvideo -pix_fmt bgr24 raw_decoded.avi > 3) Compare PSNR, AbsDiff and UIQ results on the original rawinput.avi and > raw_decoded.avi > > Results: Comparative PSNR, AbsDiff and UIQ measurements on Y-components > indicate that the raw_decoded.avi has changed (ie PSNR-Y way less than 100 > dB). Change definitely should be expected on U and V components but I did > not expect any change on Y component. > > Any ideas? In BGR24 each component has values in the range 0-255 They will be mapped to YUV where Y is in the range 16-235. Therefore some levels are lost as there is not a direct one-to-one mapping. Those YUV levels will then be mapped back to 0-255 when you return to BGR24. Again, there is no one-to-one mapping so more loss of levels (and dithering) so worse PSNR. -- Mark From mark at mdsh.com Tue Sep 18 21:36:57 2012 From: mark at mdsh.com (Mark Himsley) Date: Tue, 18 Sep 2012 20:36:57 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: References: <5054E6E7.2070705@mdsh.com> <5055D20C.4050405@mdsh.com> <50563D82.7090104@mdsh.com> <20120917153654.GA28326@phare.normalesup.org> <5057559D.6060701@yahoo.com> <50577246.3000904@mdsh.com> Message-ID: <5058CD59.1050305@mdsh.com> On 18/09/2012 15:50, Emre Karata?o?lu wrote: Hi Emre, Please don't top post. http://en.wikipedia.org/wiki/Posting_style#Top-posting > did you try this? > -vf="scale=x:y,pad:W:H:PadX:PadY" -vf= is not valid syntax... What are you alluding to? I'm not following your question. -- Mark From mark at mdsh.com Tue Sep 18 21:38:44 2012 From: mark at mdsh.com (Mark Himsley) Date: Tue, 18 Sep 2012 20:38:44 +0100 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <1347979764614-4653545.post@n4.nabble.com> References: <1347979764614-4653545.post@n4.nabble.com> Message-ID: <5058CDC4.2000800@mdsh.com> On 18/09/2012 15:49, Emre K wrote: > did you try this ? > -vf = "scale=x:y , pad:W:H:PadX:PadY" > _? That is not valid syntax for FFmpeg. -- Mark From wtfux.dev at googlemail.com Tue Sep 18 21:55:11 2012 From: wtfux.dev at googlemail.com (wtfux) Date: Tue, 18 Sep 2012 21:55:11 +0200 Subject: [FFmpeg-user] Is pcm_bluray to pcm_s16le lossless? Message-ID: Hello, this is a short question: Is converting pcm_bluray to pcm_s16le lossless? Long story: I got a Blu-Ray m2ts container with: Input #0, mpegts, from '00003.m2ts': Duration: 00:47:23.17, start: 4198.958300, bitrate: 36670 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s I used this command to mux it into a mkv container while converting pcm_bluray (with afaik is signed 16bit big endian) to pcm_s16le (signed 16bit little endian) and copying the H.264 stream. ffmpeg -i 00003.m2ts -c:a pcm_s16le -c:v copy 00003.mkv Result: Input #0, matroska,webm, from '00003_wav.mkv': Metadata: ENCODER : Lavf54.25.104 Duration: 00:47:23.17, start: 0.000000, bitrate: 34856 kb/s Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default) To my understanding this should be lossless, right? But somehow the m2ts container is 12.1 GB large and the mkv container is 11.5 GB. There are no further streams or attachments in .m2ts and just copying the h264 stream shouldn't change the size either. I'm not quite familiar with m2ts container but that would be a huge overhead for just the container. I need to be sure that audio didn't loose quality. Please let me know if you got an idea why the file size is smaller. Thanks. I also included the log but there doesn't seem to be anything special: ffmpeg -i 00003.m2ts -c:a pcm_s16le -c:v copy 00003_test.mkv ffmpeg version git-2012-09-04-3b6e9cd Copyright (c) 2000-2012 the FFmpeg develop ers built on Sep 6 2012 18:09:41 with gcc 4.7.1 (GCC) configuration: --pkg-config=pkg-config --prefix=/root/win32 --enable-memalign- hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-li bfaac --enable-libfdk-aac --enable-libx264 --enable-gpl --enable-nonfree --enabl e-version3 --enable-avfilter --enable-avisynth libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.103 / 3. 15.103 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 '00003.m2ts': Duration: 00:47:23.17, start: 4198.958300, bitrate: 36670 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1 080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo , s16, 1536 kb/s Output #0, matroska, to '00003_test.mkv': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DA R 16:9], q=2-31, 23.98 fps, 1k tbn, 90k tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (pcm_bluray -> pcm_s16le) Press [q] to stop, [?] for help frame= 316 fps=0.0 q=-1.0 size= 58333kB time=00:00:13.24 bitrate=36087.1kbits frame= 620 fps=619 q=-1.0 size= 114283kB time=00:00:25.86 bitrate=36193.1kbits frame= 945 fps=630 q=-1.0 size= 174947kB time=00:00:39.48 bitrate=36294.6kbits frame= 1286 fps=643 q=-1.0 size= 237587kB time=00:00:53.73 bitrate=36219.2kbits frame= 1320 fps=528 q=-1.0 size= 243853kB time=00:00:55.13 bitrate=36230.6kbits frame= 1458 fps=520 q=-1.0 Lsize= 270550kB time=00:01:01.13 bitrate=36255.0kbit s/s ...#nothing special here video:11559471kB audio:533088kB subtitle:0 global headers:0kB muxing overhead 0. 040539% From joolzg at btinternet.com Tue Sep 18 21:58:45 2012 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Tue, 18 Sep 2012 20:58:45 +0100 (BST) Subject: [FFmpeg-user] multiple inputs into a single frame Message-ID: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> Ok im trying to take 3 videos and produce a single video with all 3 side by side, with no audio I took a demo command line for 2 videos and tried adding a 3rd but i get an error stating the video is out of range 2 across ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=3.avi, scale=128:128 [right]; [left][right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.t 3 across ffmpeg.exe -i 1.ts -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.ts, scale=128:128 [middle]; movie=2.ts, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts encoder at encoder0:~/Vod$ ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.avi, scale=128:128 [middle]; movie=3.avi, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts ffmpeg version N-44223-gc5278cb Copyright (c) 2000-2012 the FFmpeg developers ? built on Sep? 7 2012 00:48:04 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264 --extra-libs=/usr/lib/libssl.so.0.9.8 --extra-libs=/usr/lib/libcrypto.so.0.9.8 ? libavutil????? 51. 72.100 / 51. 72.100 ? libavcodec???? 54. 55.100 / 54. 55.100 ? libavformat??? 54. 25.105 / 54. 25.105 ? libavdevice??? 54.? 2.100 / 54.? 2.100 ? libavfilter???? 3. 15.104 /? 3. 15.104 ? libswscale????? 2.? 1.101 /? 2.? 1.101 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [avi @ 0x34a8240] non-interleaved AVI Input #0, avi, from '1.avi': ? Metadata: ??? encoder???????? : VirtualDubMod 1.5.4.1 (build 2178/release) ??? IAS1??????????? : English ? Duration: 01:38:26.44, start: 0.000000, bitrate: 1589 kb/s ??? Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x416 [SAR 1:1 DAR 45:26], 23.98 tbr, 23.98 tbn, 23.98 tbc ??? Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 256 kb/s [avi @ 0x34ce660] non-interleaved AVI [mpeg4 @ 0x34ceea0] Invalid and inefficient vfw-avi packed B frames detected [avi @ 0x350ba60] non-interleaved AVI [mpeg4 @ 0x3514a60] Invalid and inefficient vfw-avi packed B frames detected [Parsed_overlay_7 @ 0x3542a40] Overlay area (204,16)<->(924,592) not within the main area (0,0)<->(128,128) or zero-sized [auto-inserted scaler 0 @ 0x3544d80] Failed to configure input pad on Parsed_overlay_7 Error opening filters! Also 1 extra question, how do i place the 1st video at offset 16,16. joolz From suriap at yahoo.com Tue Sep 18 22:15:46 2012 From: suriap at yahoo.com (Suria Pang) Date: Tue, 18 Sep 2012 13:15:46 -0700 (PDT) Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? In-Reply-To: References: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> Message-ID: <1347999346.61526.YahooMailNeo@web160303.mail.bf1.yahoo.com> window 091412 update still gave the same exact error as 090712 setup. Perhaps there is some else I may be missing from win7 ffmpeg setup for getting it update to current git head ? On rhel6U2. after much attempt, I think the ffmpeg config? miss the requied? but since then I had no luck on rhel6U2 to get away from the following? after git clone git://git.videolan.org/ffmpeg: [root at dellpc ffmpeg]# ./configure --prefix=/usr --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 ERROR: libgsm not found These are already installed: gsm-1.0.13-4.el6.x86_64 gsm-1.0.13-4.el6.i686 gsm-tools-1.0.13-4.el6.x86_64 Is there a way to ship gsm in ffmpeg config ? Thanks! ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Friday, September 14, 2012 2:52 PM Subject: Re: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? Suria Pang yahoo.com> writes: > ffmpg when convert prores to dpx always default to rgb48le > which?yield 12M file size wilie standard HD 1920x1080?dpx > are gbrp10le at 8.6M. > > Is there anyway to get ffmpg to convert yuv444p10le to gbrp10le?? ?? Update to current git head. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rogerdpack2 at gmail.com Tue Sep 18 22:44:42 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 14:44:42 -0600 Subject: [FFmpeg-user] multiple inputs into a single frame In-Reply-To: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> References: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> Message-ID: > [Parsed_overlay_7 @ 0x3542a40] Overlay area (204,16)<->(924,592) not within the main area (0,0)<->(128,128) or zero-sized > [auto-inserted scaler 0 @ 0x3544d80] Failed to configure input pad on Parsed_overlay_7 > Error opening filters! appears you can only overlay "directly over the top" of another movie. Though I wish this could be made optional :) From rogerdpack2 at gmail.com Tue Sep 18 22:45:31 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 14:45:31 -0600 Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? In-Reply-To: <1347999346.61526.YahooMailNeo@web160303.mail.bf1.yahoo.com> References: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> <1347999346.61526.YahooMailNeo@web160303.mail.bf1.yahoo.com> Message-ID: > ERROR: libgsm not found > > > These are already installed: > > gsm-1.0.13-4.el6.x86_64 > gsm-1.0.13-4.el6.i686 > gsm-tools-1.0.13-4.el6.x86_64 maybe you need gsm-dev or some similar package? From letheea at gmail.com Tue Sep 18 22:55:54 2012 From: letheea at gmail.com (=?ISO-8859-9?Q?Emre_Karata=FEo=F0lu?=) Date: Tue, 18 Sep 2012 23:55:54 +0300 Subject: [FFmpeg-user] Problem with vf pad ... help please In-Reply-To: <5058CDC4.2000800@mdsh.com> References: <1347979764614-4653545.post@n4.nabble.com> <5058CDC4.2000800@mdsh.com> Message-ID: Of course it wont work with this syntax . I tried to show the way that .. " some property " .. with -vf or -filter_complex . Two input side by side is ffmpeg -i 1a.avi -i 1b.avi -filter_complex "[0]scale=iw/2:ih/2,pad=2*iw+200:2*ih+200 [first];[1]scale=iw/2:ih/2[second] ; [first][second] overlay=main_w/2+40:0 " -y yourOutput; 2012/9/18 Mark Himsley > On 18/09/2012 15:49, Emre K wrote: > > did you try this ? > > -vf = "scale=x:y , pad:W:H:PadX:PadY" > > _? > > That is not valid syntax for FFmpeg. > > -- > Mark > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ericcocuzza12 at hotmail.com Tue Sep 18 23:13:49 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Tue, 18 Sep 2012 17:13:49 -0400 Subject: [FFmpeg-user] Streaming Videos Message-ID: Hi Is it possible to fetch information from major streaming video websites like you tube, daily motion that what kind of trans coding mechanism they are using?Do they utilized any on the fly resolution change mechanisms? Please help me with the info? Eric From mark at mdsh.com Tue Sep 18 23:29:11 2012 From: mark at mdsh.com (Mark Himsley) Date: Tue, 18 Sep 2012 22:29:11 +0100 Subject: [FFmpeg-user] multiple inputs into a single frame In-Reply-To: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> References: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> Message-ID: <5058E7A7.1030405@mdsh.com> On 18/09/2012 20:58, JULIAN GARDNER wrote: > Ok im trying to take 3 videos and produce a single video with all 3 side by side, with no audio > > I took a demo command line for 2 videos and tried adding a 3rd but i get an error stating the video is out of range > > 2 across > ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=3.avi, scale=128:128 [right]; [left][right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.t > > 3 across > ffmpeg.exe -i 1.ts -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.ts, scale=128:128 [middle]; movie=2.ts, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts This works for me, with git head from the day-before-yesterday. ffmpeg -i one.mov -i two.mov -i three.mov -filter_complex "[0] scale=426:720:interl=1,pad=1280:720:0:0 [a]; [1] scale=426:720:interl=1 [b]; [2] scale=426:720:interl=1 [c]; [a][b] overlay=426:0 [d];[d][c] overlay=852:0" -an -aspect 16:9 -y ~/output.mov Enjoy ;-) -- Mark From cehoyos at ag.or.at Tue Sep 18 23:49:15 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 21:49:15 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Is_pcm=5Fbluray_to_pcm=5Fs16le_lossless?= =?utf-8?q?=3F?= References: Message-ID: wtfux googlemail.com> writes: > To my understanding this should be lossless, right? But somehow the m2ts > container is 12.1 GB large and the mkv container is 11.5 GB. There are no > further streams or attachments in .m2ts and just copying the h264 stream > shouldn't change the size either. I'm not quite familiar with m2ts > container but that would be a huge overhead for just the container. Please note that MPEG transport streams are intended to work with non-lossless transmission methods while I don't think your mkv is still playable if you damage it. (The conversion from s16le to s16le is of course lossless.) Carl Eugen From cehoyos at ag.or.at Tue Sep 18 23:51:27 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 18 Sep 2012 21:51:27 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? References: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> <1347999346.61526.YahooMailNeo@web160303.mail.bf1.yahoo.com> Message-ID: Suria Pang yahoo.com> writes: > window 091412 update still gave the same exact error as 090712 setup. Command line and complete, uncut console output missing. [...] > ERROR: libgsm not found Simply remove --enable-libgsm from your configure line. It is unlikely that you will need it. Carl Eugen From joolzg at btinternet.com Wed Sep 19 00:01:51 2012 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Tue, 18 Sep 2012 23:01:51 +0100 (BST) Subject: [FFmpeg-user] multiple inputs into a single frame In-Reply-To: <5058E7A7.1030405@mdsh.com> References: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> <5058E7A7.1030405@mdsh.com> Message-ID: <1348005711.46292.YahooMailNeo@web87703.mail.ir2.yahoo.com> >________________________________ > From: Mark Himsley >To: FFmpeg user questions >Sent: Tuesday, 18 September 2012, 23:29 >Subject: Re: [FFmpeg-user] multiple inputs into a single frame > >On 18/09/2012 20:58, JULIAN GARDNER wrote: >> Ok im trying to take 3 videos and produce a single video with all 3 side by side, with no audio >> >> I took a demo command line for 2 videos and tried adding a 3rd but i get an error stating the video is out of range >> >> 2 across >> ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=3.avi, scale=128:128 [right]; [left][right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.t >> >> 3 across >> ffmpeg.exe -i 1.ts -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.ts, scale=128:128 [middle]; movie=2.ts, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts > >This works for me, with git head from the day-before-yesterday. > >ffmpeg -i one.mov -i two.mov -i three.mov -filter_complex "[0] >scale=426:720:interl=1,pad=1280:720:0:0 [a]; [1] scale=426:720:interl=1 >[b]; [2] scale=426:720:interl=1 [c]; [a][b] overlay=426:0 [d];[d][c] >overlay=852:0" -an -aspect 16:9 -y ~/output.mov > >Enjoy ;-) > >-- >Mark > > Thanks, worked it out just as your post came through. joolz From rogerdpack2 at gmail.com Wed Sep 19 00:09:49 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 16:09:49 -0600 Subject: [FFmpeg-user] multiple inputs into a single frame In-Reply-To: <1348005711.46292.YahooMailNeo@web87703.mail.ir2.yahoo.com> References: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> <5058E7A7.1030405@mdsh.com> <1348005711.46292.YahooMailNeo@web87703.mail.ir2.yahoo.com> Message-ID: >> >>ffmpeg -i one.mov -i two.mov -i three.mov -filter_complex "[0] >>scale=426:720:interl=1,pad=1280:720:0:0 [a]; [1] scale=426:720:interl=1 >>[b]; [2] scale=426:720:interl=1 [c]; [a][b] overlay=426:0 [d];[d][c] >>overlay=852:0" -an -aspect 16:9 -y ~/output.mov >> >>Enjoy ;-) >> >>-- >>Mark >> >> > > Thanks, worked it out just as your post came through. Did you use pad, as well? From joolzg at btinternet.com Wed Sep 19 00:58:47 2012 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Tue, 18 Sep 2012 23:58:47 +0100 (BST) Subject: [FFmpeg-user] multiple inputs into a single frame In-Reply-To: References: <1347998325.97791.YahooMailNeo@web87706.mail.ir2.yahoo.com> <5058E7A7.1030405@mdsh.com> <1348005711.46292.YahooMailNeo@web87703.mail.ir2.yahoo.com> Message-ID: <1348009127.51676.YahooMailNeo@web87706.mail.ir2.yahoo.com> ----- Original Message ----- > From: Roger Pack > To: FFmpeg user questions > Cc: > Sent: Wednesday, 19 September 2012, 0:09 > Subject: Re: [FFmpeg-user] multiple inputs into a single frame > >>> >>> ffmpeg -i one.mov -i two.mov -i three.mov -filter_complex "[0] >>> scale=426:720:interl=1,pad=1280:720:0:0 [a]; [1] scale=426:720:interl=1 >>> [b]; [2] scale=426:720:interl=1 [c]; [a][b] overlay=426:0 [d];[d][c] >>> overlay=852:0" -an -aspect 16:9 -y ~/output.mov >>> >>> Enjoy ;-) >>> >>> -- >>> Mark >>> >>> >> >> Thanks, worked it out just as your post came through. > > Did you use pad, as well? > Yep, i had a read on it and found that i could move the initial screen to where i wanted, have 7 screens running now, works nice, bit hungry on the old cpu but hey could not get VLCs mosaic working. joolz From harald.jordan at redstream.at Wed Sep 19 01:03:42 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Wed, 19 Sep 2012 01:03:42 +0200 Subject: [FFmpeg-user] Is pcm_bluray to pcm_s16le lossless? In-Reply-To: References: Message-ID: Hm, first i would tend to demux and dump both audio streams to be sure it is the same. Second: just a shot in the dark: m2ts is a transport stream, so you should have one "Packet" overhead every 188 bytes (depending on the standard) which means dpending on the standard something between 2 and 18 bytes overhead every 188 bytes. (not completely sure about the numbers, but 2 is definitely minimum) That is in deed what i call a lot of overhead... Like i said, just a shot in the dark, i never had a look into the m2ts they use on Blurays, but i dont think they invented their own TS standard with much larger Packets or similar... -----Urspr?ngliche Nachricht----- From: wtfux Sent: Tuesday, September 18, 2012 9:55 PM To: FFmpeg user questions and RTFMs Subject: [FFmpeg-user] Is pcm_bluray to pcm_s16le lossless? Hello, this is a short question: Is converting pcm_bluray to pcm_s16le lossless? Long story: I got a Blu-Ray m2ts container with: Input #0, mpegts, from '00003.m2ts': Duration: 00:47:23.17, start: 4198.958300, bitrate: 36670 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s I used this command to mux it into a mkv container while converting pcm_bluray (with afaik is signed 16bit big endian) to pcm_s16le (signed 16bit little endian) and copying the H.264 stream. ffmpeg -i 00003.m2ts -c:a pcm_s16le -c:v copy 00003.mkv Result: Input #0, matroska,webm, from '00003_wav.mkv': Metadata: ENCODER : Lavf54.25.104 Duration: 00:47:23.17, start: 0.000000, bitrate: 34856 kb/s Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default) To my understanding this should be lossless, right? But somehow the m2ts container is 12.1 GB large and the mkv container is 11.5 GB. There are no further streams or attachments in .m2ts and just copying the h264 stream shouldn't change the size either. I'm not quite familiar with m2ts container but that would be a huge overhead for just the container. I need to be sure that audio didn't loose quality. Please let me know if you got an idea why the file size is smaller. Thanks. I also included the log but there doesn't seem to be anything special: ffmpeg -i 00003.m2ts -c:a pcm_s16le -c:v copy 00003_test.mkv ffmpeg version git-2012-09-04-3b6e9cd Copyright (c) 2000-2012 the FFmpeg develop ers built on Sep 6 2012 18:09:41 with gcc 4.7.1 (GCC) configuration: --pkg-config=pkg-config --prefix=/root/win32 --enable-memalign- hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-li bfaac --enable-libfdk-aac --enable-libx264 --enable-gpl --enable-nonfree --enabl e-version3 --enable-avfilter --enable-avisynth libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.103 / 3. 15.103 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 '00003.m2ts': Duration: 00:47:23.17, start: 4198.958300, bitrate: 36670 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1 080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo , s16, 1536 kb/s Output #0, matroska, to '00003_test.mkv': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DA R 16:9], q=2-31, 23.98 fps, 1k tbn, 90k tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (pcm_bluray -> pcm_s16le) Press [q] to stop, [?] for help frame= 316 fps=0.0 q=-1.0 size= 58333kB time=00:00:13.24 bitrate=36087.1kbits frame= 620 fps=619 q=-1.0 size= 114283kB time=00:00:25.86 bitrate=36193.1kbits frame= 945 fps=630 q=-1.0 size= 174947kB time=00:00:39.48 bitrate=36294.6kbits frame= 1286 fps=643 q=-1.0 size= 237587kB time=00:00:53.73 bitrate=36219.2kbits frame= 1320 fps=528 q=-1.0 size= 243853kB time=00:00:55.13 bitrate=36230.6kbits frame= 1458 fps=520 q=-1.0 Lsize= 270550kB time=00:01:01.13 bitrate=36255.0kbit s/s ...#nothing special here video:11559471kB audio:533088kB subtitle:0 global headers:0kB muxing overhead 0. 040539% _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rogerdpack2 at gmail.com Wed Sep 19 01:18:57 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 17:18:57 -0600 Subject: [FFmpeg-user] pkg-config --static ? In-Reply-To: References: Message-ID: > It is absolutely possible that I completely misunderstand > how pkg-config is supposed to work, but imo > pkg-config --libs should allow you to link to the library > no matter how you configured it (or in other words: the > pkg-config file of fontconfig has to look differently > depending on how you configured fontconfig). Apparently nobody (including myself) really understand pkg-config. Here is an answer from fontconfig people: > I guess my only question mark here is "since I built fontconfig with > --disable-shared --enable-static" would you say that fontconfig is > still correct here? >AFAICT It's pkg-config's design no matter what the library has been built with. I'm really not sure how FFmpeg is supposed to "know" it's linking against a static library, and thus know to pass the "--static" flag to pkg-config. Hmm... -r From rogerdpack2 at gmail.com Wed Sep 19 01:19:24 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 17:19:24 -0600 Subject: [FFmpeg-user] Is pcm_bluray to pcm_s16le lossless? In-Reply-To: References: Message-ID: > this is a short question: Is converting pcm_bluray to pcm_s16le lossless? I think you should be able to tell by running the "ainfo" filter against it which outputs md5sum's? -r From andyqos at ukfsn.org Wed Sep 19 01:34:28 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Wed, 19 Sep 2012 00:34:28 +0100 Subject: [FFmpeg-user] Is pcm_bluray to pcm_s16le lossless? In-Reply-To: References: Message-ID: <50590504.2020303@ukfsn.org> Harald Jordan wrote: > Hm, first i would tend to demux and dump both audio streams to be sure > it is the same. > Second: just a shot in the dark: m2ts is a transport stream, so you > should have one "Packet" overhead every 188 bytes (depending on the > standard) which means dpending on the standard something between 2 and > 18 bytes overhead every 188 bytes. (not completely sure about the > numbers, but 2 is definitely minimum) That is in deed what i call a lot > of overhead... > Like i said, just a shot in the dark, i never had a look into the m2ts > they use on Blurays, but i dont think they invented their own TS > standard with much larger Packets or similar... I think that m2ts as used by bluray/avchd add an extra 4 byte timestamp (to help seeking) to the 188 used for broadcast, but are the same apart from that. From rogerdpack2 at gmail.com Wed Sep 19 01:46:56 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Sep 2012 17:46:56 -0600 Subject: [FFmpeg-user] rtmp is internal? In-Reply-To: References: Message-ID: > Anybody know if the native support was something of a "copy" of > librtmp into the core? To answer my own question, it appears that it indeed was, see header: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/librtmp.c > What does compiling with --enable-librtmp do these days? Override the > internal version? can anyone confirm for me that passing configure "--enable-librtmp" actually does nothing these days? I can't seem to find where it's used, though I'm not expert here. Thanks! -roger- From 286166657 at qq.com Wed Sep 19 03:35:29 2012 From: 286166657 at qq.com (=?ISO-8859-1?B?TXl0aA==?=) Date: Wed, 19 Sep 2012 09:35:29 +0800 Subject: [FFmpeg-user] How to Decode h264 Video Stream? Message-ID: I'm sorry I didn't give you the right information. I want to decode the h264 video stream into JPEG or PGM files. The command you teach me in last email is works for me. Thanks for your kindly help. Thanks, Stefan ------------------ Original ------------------ From: "Andy Civil"; Date: Tue, Sep 18, 2012 09:36 PM To: "FFmpeg user questions"; Subject: Re: [FFmpeg-user] How to Decode h264 Video Stream? On 2012-09-18 9:12 AM, Carl Eugen Hoyos wrote: > Andy Civil gmail.com> writes: > >> Shall we suggest >> ffmpeg -format h264 -i input -qscale 2 %06d.jpg >> then? > > That will still not work, but it does not matter > because imo as long as the op does not give a little > more information this is all just guessing. It works for me, I just tested it. I do get a warning that says "Please use -q:a or -q:v, -qscale is ambiguous". I was hoping that serving the OP his output as JPEGs might prompt him to tell us what he /really/ wanted. -- Andy _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Sep 19 08:53:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 19 Sep 2012 06:53:01 +0000 (UTC) Subject: [FFmpeg-user] pkg-config --static ? References: Message-ID: Roger Pack gmail.com> writes: > > the pkg-config file of fontconfig has to look > > differently depending on how you configured fontconfig). > Here is an answer from fontconfig people: > > > I guess my only question mark here is "since I built > > fontconfig with --disable-shared --enable-static" > > would you say that fontconfig is still correct here? > > > AFAICT It's pkg-config's design no matter what the > > library has been built with. I don't think this is correct, see the usage of "$requires" in FFmpeg's configure file, in the section starting with "# build pkg-config files" Carl Eugen From cehoyos at ag.or.at Wed Sep 19 08:55:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 19 Sep 2012 06:55:11 +0000 (UTC) Subject: [FFmpeg-user] rtmp is internal? References: Message-ID: Roger Pack gmail.com> writes: > can anyone confirm for me that passing configure > "--enable-librtmp" actually does nothing these days? This is definitely not correct. Carl Eugen From cehoyos at ag.or.at Wed Sep 19 08:59:55 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 19 Sep 2012 06:59:55 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Is_pcm=5Fbluray_to_pcm=5Fs16le_lossless?= =?utf-8?q?=3F?= References: Message-ID: wtfux googlemail.com> writes: > this is a short question: Is converting pcm_bluray > to pcm_s16le lossless? To clarify: This is not always true because afaik there are 32 bit pcm_bluray streams and the conversion from s32le to s16le is of course not lossless. (But FFmpeg also supports pcm_s32le.) It is of course true for the sample that you tested. Carl Eugen From cehoyos at ag.or.at Wed Sep 19 09:14:46 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 19 Sep 2012 07:14:46 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Ispcm=5Fbluray_to_pcm=5Fs16le_lossless=3F?= References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > This is not always true because afaik there are > 32 bit pcm_bluray streams and the conversion Sorry, this should be 24bit > from s32le to s16le is of course not lossless. which is internally stored as s32le in FFmpeg. Carl Eugen From wtfux.dev at googlemail.com Wed Sep 19 14:57:55 2012 From: wtfux.dev at googlemail.com (wtfux) Date: Wed, 19 Sep 2012 14:57:55 +0200 Subject: [FFmpeg-user] can't use x264opts to set qpfile Message-ID: Hi, I want to use x264's option --qpfile to make it insert IDR frames in some places (chapters). FFmpeg has this option: ?-force_key_frames[:stream_specifier] time[,time...] (output,per-stream)? However it's based on time stamps and I'd rather give the frame number directly. > ?x264opts options? > Allow to set any x264 option, see x264 ?fullhelp for a list. > options is a list of key=value couples separated by ":". Well it does *not* allow to set all x264 options, at least I can't set: -x264opts "qpfile:frames.qp" (something like -x264opts "rc_lookahead=100" however works, just qpfile doesn't) > [libx264 @ 035144e0] bad option 'qpfile': 'frames.qp' Using x264 directly, --qpfile frames.qp works easily: > x264.exe --fullhelp | findstr qpfile > --qpfile Force frametypes and QPs for some or all frames Is there a reason why I can't set --qpfile with -x264opts? Both x264 and libx264 are built from the same source. Log: ffmpeg started on 2012-09-19 at 14:25:16 Report written to "ffmpeg-20120919-142516.log" Command line: ffmpeg -report -i pan01.mkv -c:v libx264 -preset:v ultrafast -profile:v high10 -tune:v animation -level:v 5.1 -crf:v 20 -threads 6 -x264opts "qpfile=frames.qp" -codec:a libfdk_aac -flags:a +qscale -global_quality:a 4 -afterburner:a 1 pan01_reencode2.mkv ffmpeg version git-2012-09-04-3b6e9cd Copyright (c) 2000-2012 the FFmpeg developers built on Sep 6 2012 18:09:41 with gcc 4.7.1 (GCC) configuration: --pkg-config=pkg-config --prefix=/root/win32 --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-libfaac --enable-libfdk-aac --enable-libx264 --enable-gpl --enable-nonfree --enable-version3 --enable-avfilter --enable-avisynth libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.103 / 3. 15.103 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [matroska,webm @ 0038db00] 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 @ 0038db00] File position before avformat_find_stream_info() is 860 [matroska,webm @ 0038db00] parser not found for codec pcm_s16le, packets or times may be invalid. [h264 @ 0038e260] no picture [matroska,webm @ 0038db00] first_dts 126 not matching first dts NOPTS in que [matroska,webm @ 0038db00] first_dts 126 not matching first dts NOPTS in que [matroska,webm @ 0038db00] parser not found for codec pcm_s16le, packets or times may be invalid. [matroska,webm @ 0038db00] All info found [matroska,webm @ 0038db00] File position after avformat_find_stream_info() is 3346 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, matroska,webm, from 'pan01.mkv': Metadata: ENCODER : Lavf54.6.100 Duration: 00:23:41.17, start: 0.000000, bitrate: 34356 kb/s Stream #0:0, 4, 1/1000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1, 1, 1/1000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default) Setting entry with key 'video_size' to value '1920x1080' [buffer @ 0038ab20] Setting entry with key 'pix_fmt' to value '0' [buffer @ 0038ab20] Setting entry with key 'time_base' to value '1/1000' [buffer @ 0038ab20] Setting entry with key 'pixel_aspect' to value '1/1' [buffer @ 0038ab20] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 0038ab20] Setting entry with key 'frame_rate' to value '24000/1001' [graph 0 input from stream 0:0 @ 0038aac0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2 [format @ 0038aec0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [auto-inserted scaler 0 @ 0038b7c0] picking yuv420p10le out of 3 ref:yuv420p alpha:0 [auto-inserted scaler 0 @ 0038b7c0] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuv420p10le sar:1/1 flags:0x4 [abuffer @ 01544740] Setting entry with key 'time_base' to value '1/48000' [abuffer @ 01544740] Setting entry with key 'sample_rate' to value '48000' [abuffer @ 01544740] Setting entry with key 'sample_fmt' to value 's16' [abuffer @ 01544740] Setting entry with key 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 036be180] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [aformat @ 01542bc0] Setting entry with key 'sample_fmts' to value 's16' [aformat @ 01542bc0] Setting entry with key 'channel_layouts' to value '0x4,0x3,0x7,0x107,0x37,0x3f' [libx264 @ 035144e0] bad option 'qpfile': 'frames.qp' Output #0, matroska, to 'pan01_reencode2.mkv': Metadata: ENCODER : Lavf54.6.100 Stream #0:0, 0, 1/90000: Video: h264, yuv420p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 23.98 tbc (default) Stream #0:1, 0, 1/90000: Audio: none, 48000 Hz, stereo, s16 (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [AVIOContext @ 01548080] Statistics: 32768 bytes read, 0 seeks From raresp at axz.ro Wed Sep 19 19:13:53 2012 From: raresp at axz.ro (Rares Pop) Date: Wed, 19 Sep 2012 20:13:53 +0300 Subject: [FFmpeg-user] codec copy fails with malformed bitstreams in mpegts Message-ID: Hi, Every now and then ffmpeg fails when remuxing a mpegts file with the following error: [mpegts @ 0x1677a60] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) av_interleaved_write_frame(): Invalid argument The file I am remuxing can be downloaded here: https://www.dropbox.com/sh/b8v81l4l7lhjgj0/6Klxfejcki I am thinking this is a bug and even if there is an error in the stream the remuxing shouldn't break. I am able to play this file just fine. The comand and output: /usr/local/bin/ffmpeg -i /cutchup/record/channel7/_/2012-09-17.00.00.7-0.rec/00066.ts -vcodec copy -an -y /cutchup/record/channel7/_/2012-09-17.00.00.7-0.rec/00066.ts-video.ts ffmpeg version git-2012-08-27-60924df Copyright (c) 2000-2012 the FFmpeg developers built on Sep 1 2012 18:38:17 with gcc 4.5.3 (GCC) 20120403 (ALT Linux 4.5.3-alt1.M60P.1) configuration: --enable-gpl --enable-libfdk-aac --enable-libvo-aacenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libx264 --enable-nonfree --enable-version3 --enable-yasm libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 54.100 / 54. 54.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 13.101 / 3. 13.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [h264 @ 0x1674140] mmco: unref short failure Last message repeated 3 times [mp3 @ 0x1674a40] Header missing [h264 @ 0x1674140] mmco: unref short failure Last message repeated 1 times [mpegts @ 0x1670240] max_analyze_duration 5000000 reached at 5016000 [mpegts @ 0x1670240] PES packet size mismatch Input #0, mpegts, from '/cutchup/record/channel7/_/2012-09-17.00.00.7-0.rec/00066.ts': Duration: 00:12:23.66, start: 77203.089300, bitrate: 2256 kb/s Program 132 Stream #0:0[0x2be]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 12:11 DAR 15:11], 50 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x2bf](rus): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16, 128 kb/s [mpegts @ 0x1677a60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to '/cutchup/record/channel7/_/2012-09-17.00.00.7-0.rec/00066.ts-video.ts': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 12:11 DAR 15:11], q=2-31, 50 fps, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mpegts @ 0x1677a60] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) av_interleaved_write_frame(): Invalid argument -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From timo.infradex at gmail.com Wed Sep 19 07:34:26 2012 From: timo.infradex at gmail.com (Timo S) Date: Tue, 18 Sep 2012 22:34:26 -0700 (PDT) Subject: [FFmpeg-user] BGR24-YUV420-BGR24 conversion on raw video In-Reply-To: References: <1347970849712-4653539.post@n4.nabble.com> Message-ID: <1348032866045-4653571.post@n4.nabble.com> Thanks Mark! :) So, the good old BT.709... Is there any way to force the conversion to full 0-255 range? I wouldn't want to be bound by ancient TV technology... It's kinda hard to test concept codecs like the H.265 (which uses raw yuv as test videos) if the comparison uses raw bgr24 avi for test material. The metrics would be utterly useless. Of course PSNR is never conclusive if comparing codecs and therefore I use also AbsDiff and UIQ. Possibly SSIM, if we are successful in implementing that. Offtopic: H.265 test encoder is seriously buggy. It was even missing an include line on the source code, so it wouldn't build. Luckily one guy here knows his C++. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/BGR24-YUV420-BGR24-conversion-on-raw-video-tp4653539p4653571.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From 2derand at gmail.com Wed Sep 19 22:52:03 2012 From: 2derand at gmail.com (Andrey Derevyagin) Date: Wed, 19 Sep 2012 23:52:03 +0300 Subject: [FFmpeg-user] libass don't add subtitles on Mac OS X Message-ID: Hi, OS: Mac OS X 10.8.1 I compiled static ffmpeg with libass library. When I try convert video with subtitle ffmpeg converts with no errors but without subs on video. command: *$ ffmpeg -y -i Ga-Rei\ Zero\ -\ 04\ \(BDRip\ H264\ 1280x720\)_0_30.mp4 -map 0:0 -an -vcodec libx264 -crf 18 -s 1280x720 -refs 6 -threads 4 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 12 -trellis 1 -coder 1 -me_range 32 -level 4.1 -profile:v high -bf 12 -vf "ass=Ga-Rei\ Zero\ -\ 04\ \(BDRip\ H264\ 1280x720\)_0_30.ass" -r 23.976 ./ga_rey_04.mp4* * * my output (http://pastebin.com/VxpBTEuZ): *ffmpeg version N-44459-g8bdba0b Copyright (c) 2000-2012 the FFmpeg developers* * built on Sep 19 2012 23:09:42 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) * * configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-static --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libass --enable-fontconfig --enable-libopenjpeg --enable-libspeex --enable-libxvid --enable-libvpx --enable-openssl --enable-postproc --target-os=darwin --arch=i386 --prefix=/usr/local --extra-ldflags=-liconv* * libavutil 51. 73.100 / 51. 73.100* * libavcodec 54. 55.100 / 54. 55.100* * libavformat 54. 27.100 / 54. 27.100* * libavdevice 54. 2.100 / 54. 2.100* * libavfilter 3. 16.103 / 3. 16.103* * libswscale 2. 1.101 / 2. 1.101* * libswresample 0. 15.100 / 0. 15.100* * libpostproc 52. 0.100 / 52. 0.100* *Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ga-Rei Zero - 04 (BDRip H264 1280x720)_0_30.mp4':* * Metadata:* * major_brand : isom* * minor_version : 1* * compatible_brands: isom* * creation_time : 2012-06-24 19:23:33* * Duration: 00:00:30.03, start: 0.000000, bitrate: 1250 kb/s* * Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1065 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc* * Metadata:* * creation_time : 2010-07-30 01:31:50* * handler_name : [QTS] Ga-Rei -Zero- ep 04_BD* * Stream #0:1(jpn): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 181 kb/s* * Metadata:* * creation_time : 2010-07-30 01:32:14* * handler_name : Japanese Audio 2.0ch* *[Parsed_ass_0 @ 0x7faf21c0e0c0] Added subtitle file: 'Ga-Rei Zero - 04 (BDRip H264 1280x720)_0_30.ass' (11 styles, 10 events)* *[libx264 @ 0x7faf22031a00] using SAR=1/1* *[libx264 @ 0x7faf22031a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX* *[libx264 @ 0x7faf22031a00] profile High, level 4.1* *[libx264 @ 0x7faf22031a00] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=6 deblock=1:0:0 analyse=0x3:0x133 me=hex subme=9 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=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=12 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00* *Output #0, mp4, to './ga_rey_04.mp4':* * Metadata:* * major_brand : isom* * minor_version : 1* * compatible_brands: isom* * encoder : Lavf54.27.100* * Stream #0:0(jpn): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2997 tbn, 23.98 tbc* * Metadata:* * creation_time : 2010-07-30 01:31:50* * handler_name : [QTS] Ga-Rei -Zero- ep 04_BD* *Stream mapping:* * Stream #0:0 -> #0:0 (h264 -> libx264)* *Press [q] to stop, [?] for help* *frame= 723 fps= 16 q=32686.0 Lsize= 3545kB time=00:00:30.07 bitrate= 965.7kbits/s dup=3 drop=0 * *video:3537kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.214252%* *[libx264 @ 0x7faf22031a00] frame I:6 Avg QP:11.71 size: 43131* *[libx264 @ 0x7faf22031a00] frame P:165 Avg QP:14.90 size: 14772* *[libx264 @ 0x7faf22031a00] frame B:552 Avg QP:18.00 size: 1676* *[libx264 @ 0x7faf22031a00] consecutive B-frames: 5.9% 4.1% 2.1% 9.4% 17.3% 24.1% 30.0% 4.4% 1.2% 1.4% 0.0% 0.0% 0.0%* *[libx264 @ 0x7faf22031a00] mb I I16..4: 40.2% 43.5% 16.2%* *[libx264 @ 0x7faf22031a00] mb P I16..4: 2.2% 4.8% 1.4% P16..4: 36.9% 10.5% 7.4% 0.2% 0.1% skip:36.5%* *[libx264 @ 0x7faf22031a00] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 23.7% 1.0% 0.1% direct: 0.8% skip:74.1% L0:48.9% L1:48.1% BI: 3.0%* *[libx264 @ 0x7faf22031a00] 8x8 transform intra:52.2% inter:72.0%* *[libx264 @ 0x7faf22031a00] coded y,uvDC,uvAC intra: 52.9% 42.5% 21.6% inter: 5.8% 5.6% 0.4%* *[libx264 @ 0x7faf22031a00] i16 v,h,dc,p: 47% 21% 5% 26%* *[libx264 @ 0x7faf22031a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 14% 15% 7% 10% 9% 9% 9% 10%* *[libx264 @ 0x7faf22031a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 9% 10% 9% 15% 13% 10% 9% 8%* *[libx264 @ 0x7faf22031a00] i8c dc,h,v,p: 59% 21% 15% 6%* *[libx264 @ 0x7faf22031a00] Weighted P-Frames: Y:8.5% UV:7.9%* *[libx264 @ 0x7faf22031a00] ref P L0: 56.3% 5.1% 19.5% 7.7% 6.0% 4.5% 0.7% 0.0%* *[libx264 @ 0x7faf22031a00] ref B L0: 75.4% 14.9% 6.9% 2.0% 0.8%* *[libx264 @ 0x7faf22031a00] ref B L1: 89.9% 10.1%* *[libx264 @ 0x7faf22031a00] kb/s:960.80* file with video you can download from http://rghost.net/40467580 also, when I run this command on my Ubuntu machine ffmpeg add subtitles correctly. From rogerdpack2 at gmail.com Wed Sep 19 23:27:03 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 19 Sep 2012 15:27:03 -0600 Subject: [FFmpeg-user] codec copy fails with malformed bitstreams in mpegts In-Reply-To: References: Message-ID: > Every now and then ffmpeg fails when remuxing a mpegts file with the following error: > > [mpegts @ 0x1677a60] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) > av_interleaved_write_frame(): Invalid argument > > The file I am remuxing can be downloaded here: https://www.dropbox.com/sh/b8v81l4l7lhjgj0/6Klxfejcki So sometimes it fails, sometimes succeeds, with the same file input? -r From rogerdpack2 at gmail.com Wed Sep 19 23:29:51 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 19 Sep 2012 15:29:51 -0600 Subject: [FFmpeg-user] libass don't add subtitles on Mac OS X In-Reply-To: References: Message-ID: > OS: Mac OS X 10.8.1 > I compiled static ffmpeg with libass library. When I try convert video with > subtitle ffmpeg converts with no errors but without subs on video. Maybe it can't find a font or something? -r From cehoyos at ag.or.at Wed Sep 19 23:56:22 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 19 Sep 2012 21:56:22 +0000 (UTC) Subject: [FFmpeg-user] codec copy fails with malformed bitstreams in mpegts References: Message-ID: Rares Pop axz.ro> writes: > I am thinking this is a bug and even if there is an > error in the stream the remuxing shouldn't break. FFmpeg refuses to write invalid streams, the video stream in your sample is so damaged that it is not possible to write a valid transport stream on remuxing. If you think there is a bug, please open a ticket on trac (consider cutting your sample to ~20 MB) Carl Eugen From james.darnley at gmail.com Thu Sep 20 00:08:17 2012 From: james.darnley at gmail.com (James Darnley) Date: Thu, 20 Sep 2012 00:08:17 +0200 Subject: [FFmpeg-user] can't use x264opts to set qpfile In-Reply-To: References: Message-ID: <505A4251.1070408@gmail.com> On 2012-09-19 14:57, wtfux wrote: > Is there a reason why I can't set --qpfile with -x264opts? Both x264 and > libx264 are built from the same source. Yes, it is quite simple: libx264 has no such option. The qpfile is a feature of the command line encoder (x264.exe). I don't know of a way to do the same using ffmpeg. From 2derand at gmail.com Thu Sep 20 02:07:19 2012 From: 2derand at gmail.com (Andrey Derevyagin) Date: Thu, 20 Sep 2012 03:07:19 +0300 Subject: [FFmpeg-user] libass don't add subtitles on Mac OS X In-Reply-To: References: Message-ID: > > > OS: Mac OS X 10.8.1 > > I compiled static ffmpeg with libass library. When I try convert video > with > > subtitle ffmpeg converts with no errors but without subs on video. > > Maybe it can't find a font or something? > -r > I don't think so. If libass can't find font it show message like: fontconfig: Selected font is not the requested one: 'DejaVu Sans' != 'Trebuchet MS' From raresp at axz.ro Thu Sep 20 11:20:19 2012 From: raresp at axz.ro (Rares Pop) Date: Thu, 20 Sep 2012 12:20:19 +0300 Subject: [FFmpeg-user] codec copy fails with malformed bitstreams in mpegts In-Reply-To: References: Message-ID: <52CA5ECB-0E69-420F-8BF9-DE34081F7577@axz.ro> No, on this one it fails every time. On Sep 20, 2012, at 12:27 AM, Roger Pack wrote: >> Every now and then ffmpeg fails when remuxing a mpegts file with the following error: >> >> [mpegts @ 0x1677a60] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) >> av_interleaved_write_frame(): Invalid argument >> >> The file I am remuxing can be downloaded here: https://www.dropbox.com/sh/b8v81l4l7lhjgj0/6Klxfejcki > > So sometimes it fails, sometimes succeeds, with the same file input? > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From raresp at axz.ro Thu Sep 20 11:23:08 2012 From: raresp at axz.ro (Rares Pop) Date: Thu, 20 Sep 2012 12:23:08 +0300 Subject: [FFmpeg-user] codec copy fails with malformed bitstreams in mpegts In-Reply-To: References: Message-ID: <19D52076-EEB2-454D-A24D-95BEFC54EBAB@axz.ro> VLC player is capable of playing it just fine. Is there a filter or a way to relax the validations? I was expecting the copy codecs to just copy data. Thanks for your attention, Rares On Sep 20, 2012, at 12:56 AM, Carl Eugen Hoyos wrote: > Rares Pop axz.ro> writes: > >> I am thinking this is a bug and even if there is an >> error in the stream the remuxing shouldn't break. > > FFmpeg refuses to write invalid streams, the video > stream in your sample is so damaged that it is not > possible to write a valid transport stream on remuxing. > > If you think there is a bug, please open a ticket on > trac (consider cutting your sample to ~20 MB) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From misha.penkov at gmail.com Thu Sep 20 11:38:44 2012 From: misha.penkov at gmail.com (Misha Penkov) Date: Thu, 20 Sep 2012 18:38:44 +0900 Subject: [FFmpeg-user] Linking applications with FFmpeg Message-ID: Hello, I'm maintaining the FFmpeg tutorials at https://github.com/mpenkov/ffmpeg-tutorial. Recently, I've noticed that the tutorial does not link anymore: mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ make bin/tutorial01.out gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil libswscale sdl` -c tutorial01.c -o obj/tutorial01.o gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil libswscale sdl` `pkg-config --cflags libavcodec libavformat libavutil libswscale sdl` `pkg-config --libs libavcodec libavformat libavutil libswscale sdl` -lm obj/tutorial01.o -o bin/tutorial01.out obj/tutorial01.o: In function `main': /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:70: undefined reference to `av_register_all' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:73: undefined reference to `avformat_open_input' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:77: undefined reference to `avformat_find_stream_info' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:81: undefined reference to `av_dump_format' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:97: undefined reference to `avcodec_find_decoder' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:103: undefined reference to `avcodec_open2' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:107: undefined reference to `avcodec_alloc_frame' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:110: undefined reference to `avcodec_alloc_frame' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:115: undefined reference to `avpicture_get_size' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:117: undefined reference to `av_malloc' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:120: undefined reference to `sws_getContext' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:137: undefined reference to `avpicture_fill' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:146: undefined reference to `avcodec_decode_video2' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:152: undefined reference to `sws_scale' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:171: undefined reference to `av_free_packet' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:142: undefined reference to `av_read_frame' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:175: undefined reference to `av_free' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:176: undefined reference to `av_free' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:179: undefined reference to `av_free' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:182: undefined reference to `avcodec_close' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:185: undefined reference to `avformat_close_input' collect2: ld returned 1 exit status make: *** [bin/tutorial01.out] Error 1 Other people seem to have run into similar issues, but without a solution: http://stackoverflow.com/questions/12455691/while-build-a-demo-about-ffmpeg-it-occurs-undefined-reference-to-av-registe http://ffmpeg.org/pipermail/libav-user/2012-February/001236.html Some background info: mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ ffmpeg ffmpeg version N-44622-g16e52c8 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 20 2012 18:16:09 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-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --disable-shared --enable-pic libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 56.100 / 54. 56.100 libavformat 54. 27.101 / 54. 27.101 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.104 / 3. 16.104 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ pkg-config --list-all | grep mpeg libavutil libavutil - FFmpeg utility library libavcodec libavcodec - FFmpeg codec library libpostproc libpostproc - FFmpeg postprocessing library libswresample libswresample - FFmpeg audio rescaling library libavfilter libavfilter - FFmpeg video filtering library libavformat libavformat - FFmpeg container format library libswscale libswscale - FFmpeg image rescaling library libavdevice libavdevice - FFmpeg device handling library mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ pkg-config --cflags libavcodec libavformat libavutil libswscale sdl -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -I/usr/include/SDL mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ pkg-config --libs libavcodec libavformat libavutil libswscale sdl -pthread -L/usr/local/lib -lavformat -lavcodec -ldl -lXfixes -lXext -lX11 -lasound -lx264 -lvpx -lvorbisenc -lvorbis -ltheoraenc -ltheoradec -logg -lopencore-amrwb -lopencore-amrnb -lmp3lame -lfaac -lbz2 -lz -lrt -lswscale -lavutil -lm -lSDL mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ nm /usr/local/lib/libavformat.a | grep av_register_all 0000000000000000 T av_register_all Does anybody have any ideas what could be going wrong? Cheers, Michael From nicolas.george at normalesup.org Thu Sep 20 12:14:20 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 20 Sep 2012 12:14:20 +0200 Subject: [FFmpeg-user] libass don't add subtitles on Mac OS X In-Reply-To: References: Message-ID: <20120920101420.GA30768@phare.normalesup.org> Le jour de la Raison, an CCXX, Andrey Derevyagin a ?crit?: > OS: Mac OS X 10.8.1 > I compiled static ffmpeg with libass library. When I try convert video with > subtitle ffmpeg converts with no errors but without subs on video. If you set "-loglevel debug", do you see ASS-related messages? 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 stefasab at gmail.com Thu Sep 20 12:22:26 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Thu, 20 Sep 2012 12:22:26 +0200 Subject: [FFmpeg-user] Linking applications with FFmpeg In-Reply-To: References: Message-ID: <20120920102226.GA3837@arborea> On date Thursday 2012-09-20 18:38:44 +0900, Misha Penkov encoded: > Hello, > > I'm maintaining the FFmpeg tutorials at > https://github.com/mpenkov/ffmpeg-tutorial. Recently, I've noticed > that the tutorial does not link anymore: > > mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ make bin/tutorial01.out > gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil > libswscale sdl` -c tutorial01.c -o obj/tutorial01.o > gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil > libswscale sdl` `pkg-config --cflags libavcodec libavformat libavutil > libswscale sdl` `pkg-config --libs libavcodec libavformat libavutil > libswscale sdl` -lm obj/tutorial01.o -o bin/tutorial01.out Order of libraries specification matters. Try with: --libs libavformat libavcodec libswscale libavutil that is from the "biggest" to the "smaller". -- ffmpeg-user random tip #27 Use the source Luke! If RTFM fails to help you, consider RTFS. From misha.penkov at gmail.com Thu Sep 20 12:37:26 2012 From: misha.penkov at gmail.com (Misha Penkov) Date: Thu, 20 Sep 2012 19:37:26 +0900 Subject: [FFmpeg-user] Linking applications with FFmpeg In-Reply-To: <20120920102226.GA3837@arborea> References: <20120920102226.GA3837@arborea> Message-ID: On 20 September 2012 19:22, Stefano Sabatini wrote: > On date Thursday 2012-09-20 18:38:44 +0900, Misha Penkov encoded: >> Hello, >> >> I'm maintaining the FFmpeg tutorials at >> https://github.com/mpenkov/ffmpeg-tutorial. Recently, I've noticed >> that the tutorial does not link anymore: >> >> mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ make bin/tutorial01.out >> gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil >> libswscale sdl` -c tutorial01.c -o obj/tutorial01.o >> gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil >> libswscale sdl` `pkg-config --cflags libavcodec libavformat libavutil >> libswscale sdl` `pkg-config --libs libavcodec libavformat libavutil >> libswscale sdl` -lm obj/tutorial01.o -o bin/tutorial01.out > > Order of libraries specification matters. Try with: > --libs libavformat libavcodec libswscale libavutil > > that is from the "biggest" to the "smaller". Thank you for your suggestion. Unfortunately, the end result is the same: mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ make bin/tutorial01.out gcc -Wall -ggdb `pkg-config --cflags libavformat libavcodec libswscale libavutil sdl` -c tutorial01.c -o obj/tutorial01.o gcc -Wall -ggdb `pkg-config --cflags libavformat libavcodec libswscale libavutil sdl` `pkg-config --libs libavformat libavcodec libswscale libavutil sdl` -lm obj/tutorial01.o -o bin/tutorial01.out obj/tutorial01.o: In function `main': /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:70: undefined reference to `av_register_all' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:73: undefined reference to `avformat_open_input' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:77: undefined reference to `avformat_find_stream_info' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:81: undefined reference to `av_dump_format' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:97: undefined reference to `avcodec_find_decoder' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:103: undefined reference to `avcodec_open2' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:107: undefined reference to `avcodec_alloc_frame' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:110: undefined reference to `avcodec_alloc_frame' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:115: undefined reference to `avpicture_get_size' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:117: undefined reference to `av_malloc' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:120: undefined reference to `sws_getContext' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:137: undefined reference to `avpicture_fill' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:146: undefined reference to `avcodec_decode_video2' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:152: undefined reference to `sws_scale' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:171: undefined reference to `av_free_packet' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:142: undefined reference to `av_read_frame' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:175: undefined reference to `av_free' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:176: undefined reference to `av_free' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:179: undefined reference to `av_free' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:182: undefined reference to `avcodec_close' /home/mpenkov/git/ffmpeg-tutorial/tutorial01.c:185: undefined reference to `avformat_close_input' collect2: ld returned 1 exit status make: *** [bin/tutorial01.out] Error 1 Do you have any other ideas? > -- > ffmpeg-user random tip #27 > Use the source Luke! If RTFM fails to help you, consider RTFS. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From 2derand at gmail.com Thu Sep 20 12:59:02 2012 From: 2derand at gmail.com (Andrey Derevyagin) Date: Thu, 20 Sep 2012 13:59:02 +0300 Subject: [FFmpeg-user] libass don't add subtitles on Mac OS X In-Reply-To: <20120920101420.GA30768@phare.normalesup.org> References: <20120920101420.GA30768@phare.normalesup.org> Message-ID: > > Le jour de la Raison, an CCXX, Andrey Derevyagin a ?crit : > > OS: Mac OS X 10.8.1 > > I compiled static ffmpeg with libass library. When I try convert video > with > > subtitle ffmpeg converts with no errors but without subs on video. > > If you set "-loglevel debug", do you see ASS-related messages? > > Ok, full log you can see at http://pastebin.com/qJfWHT7n my log: [Parsed_ass_0 @ 0x7fb27840e200] Raster: FreeType 2.4.10 [Parsed_ass_0 @ 0x7fb27840e200] Shaper: FriBidi 0.19.2 (SIMPLE) [Parsed_ass_0 @ 0x7fb27840e200] Initialized [Parsed_ass_0 @ 0x7fb27840e200] File size: 2019 [Parsed_ass_0 @ 0x7fb27840e200] Style format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding [Parsed_ass_0 @ 0x7fb27840e200] [0x7fb278410e20] Style: STD,Georgia,50,&H00FFFFFF,&H00FFFFFF,&H641A1A1E,&H961A1A1E,0,0,0,0,100,100,0,0,1,2,2,2,15,15,25,204 ... loads sub styles [Parsed_ass_0 @ 0x7fb27840e200] Event format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text [Parsed_ass_0 @ 0x7fb27840e200] Layer = 0 [Parsed_ass_0 @ 0x7fb27840e200] Start = 0:00:02.69 [Parsed_ass_0 @ 0x7fb27840e200] Duration = 0:00:04.01 [Parsed_ass_0 @ 0x7fb27840e200] Style = STD [Parsed_ass_0 @ 0x7fb27840e200] Name = 1 [Parsed_ass_0 @ 0x7fb27840e200] MarginL = 0000 [Parsed_ass_0 @ 0x7fb27840e200] MarginR = 0000 [Parsed_ass_0 @ 0x7fb27840e200] MarginV = 0000 [Parsed_ass_0 @ 0x7fb27840e200] Effect = [Parsed_ass_0 @ 0x7fb27840e200] Text = ??, ??????! ... load sub events [Parsed_ass_0 @ 0x7fb27840e200] Added subtitle file: 'Ga-Rei Zero - 04 (BDRip H264 1280x720)_0_30.ass' (3 styles, 10 events) [buffer @ 0x7fb2784125a0] Setting entry with key 'video_size' to value '1280x720' [buffer @ 0x7fb2784125a0] Setting entry with key 'pix_fmt' to value '0' [buffer @ 0x7fb2784125a0] Setting entry with key 'time_base' to value '1/24000' [buffer @ 0x7fb2784125a0] Setting entry with key 'pixel_aspect' to value '1/1' [buffer @ 0x7fb2784125a0] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 0x7fb2784125a0] Setting entry with key 'frame_rate' to value '24000/1001' [graph 0 input from stream 0:0 @ 0x7fb2784123a0] w:1280 h:720 pixfmt:yuv420p tb:1/24000 fr:24000/1001 sar:1/1 sws_param:flags=2 [scaler for output stream 0:0 @ 0x7fb278412e00] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0x4 ... and coding process, many lines like: [libx264 @ 0x7fb278831a00] frame= 66 QP=22.68 NAL=0 Slice:B Poc:130 I:0 P:1689 SKIP:1894 size=3130 bytes [Parsed_ass_0 @ 0x7fb27840e200] frame copy needed (have perms 5, need 3, reject 0) and still don't have subs on video. When I run this command on my linux server (on this computer ffmpeg adds subtitle to video) coding looks like: [libx264 @ 0x29c1140] frame= 8 QP=16.20 NAL=2 Slice:P Poc:16 I:754 P:2145 SKIP:701 size=13776 bytes [Parsed_ass_0 @ 0x29b2180] frame copy needed (have perms 5, need 3, reject 4) reject param diffs and log have lines: [Parsed_ass_0 @ 0x29b2180] frame copy needed (have perms 5, need 3, reject 4) [Parsed_ass_0 @ 0x29b2180] fontconfig: Selected font is not the requested one: 'DejaVu Sans' != 'Georgia' [Parsed_ass_0 @ 0x29b2180] Font info: family 'DejaVu Sans', style 'Book', fullname 'DejaVu Sans', slant 0, weight 80 [Parsed_ass_0 @ 0x29b2180] fontconfig_select: (Georgia, 80, 0) -> /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf, 0 [Parsed_ass_0 @ 0x29b2180] Change happened at time ms:2711.041667 file with video you can download from http://rghost.net/40467580 From nicolas.george at normalesup.org Thu Sep 20 13:33:30 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 20 Sep 2012 13:33:30 +0200 Subject: [FFmpeg-user] Linking applications with FFmpeg In-Reply-To: References: Message-ID: <20120920113330.GA17774@phare.normalesup.org> Le jour de la R?compense, an CCXX, Misha Penkov a ?crit?: > mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ make bin/tutorial01.out > gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil > libswscale sdl` -c tutorial01.c -o obj/tutorial01.o $(...) is recommended over `...`, but that is unrelated. > gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil > libswscale sdl` `pkg-config --cflags libavcodec libavformat libavutil > libswscale sdl` `pkg-config --libs libavcodec libavformat libavutil > libswscale sdl` -lm obj/tutorial01.o -o bin/tutorial01.out Libraries should be added after object files, in dependency order. For shared libraries that does not matter much but for static libraries this is mandatory. Also, this command line seems too complex: you are requesting the cflags twice, for no reason since you are only linking. 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 misha.penkov at gmail.com Thu Sep 20 14:02:18 2012 From: misha.penkov at gmail.com (Misha Penkov) Date: Thu, 20 Sep 2012 21:02:18 +0900 Subject: [FFmpeg-user] Linking applications with FFmpeg In-Reply-To: <20120920113330.GA17774@phare.normalesup.org> References: <20120920113330.GA17774@phare.normalesup.org> Message-ID: On 20 September 2012 20:33, Nicolas George wrote: > Le jour de la R?compense, an CCXX, Misha Penkov a ?crit : >> mpenkov at misha-desktop:~/git/ffmpeg-tutorial$ make bin/tutorial01.out >> gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil >> libswscale sdl` -c tutorial01.c -o obj/tutorial01.o > > $(...) is recommended over `...`, but that is unrelated. I didn't know that. Thank you. >> gcc -Wall -ggdb `pkg-config --cflags libavcodec libavformat libavutil >> libswscale sdl` `pkg-config --cflags libavcodec libavformat libavutil >> libswscale sdl` `pkg-config --libs libavcodec libavformat libavutil >> libswscale sdl` -lm obj/tutorial01.o -o bin/tutorial01.out > > Libraries should be added after object files, in dependency order. For > shared libraries that does not matter much but for static libraries this is > mandatory. Thank you Nicholas. This fixed the problem. > > Also, this command line seems too complex: you are requesting the cflags > twice, for no reason since you are only linking. You're right. This is a bug in the Makefile. I'll fix it. Thanks again! Michael > Regards, > > -- > Nicolas George > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlBa/woACgkQsGPZlzblTJNiLQCfVmlbAB32VPE0e1HTpsvTBgEp > 31wAn1J0fC64xZ8fWYm1Uw3f1UrhCXPg > =gwpY > -----END PGP SIGNATURE----- > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From obucinac at gmail.com Thu Sep 20 08:26:59 2012 From: obucinac at gmail.com (=?UTF-8?B?0KHRgNGS0LDQvSDQntCx0YPRm9C40L3QsA==?=) Date: Thu, 20 Sep 2012 15:26:59 +0900 Subject: [FFmpeg-user] FFmpeg for Android Message-ID: FFmpeg for Android is my attempt to create FFmpeg port for Android. Release files are available on Source Forge. http://sourceforge.net/projects/ffmpeg4android/ My goal was to create FFmpeg library which can be compiled under Android source code tree, using Android NDK. I tried to do this by enabling proper library configuration with configure script, making no changes to files in official FFmpeg release archives, using makefiles from official FFmpeg release archives as initialization scripts for variables used in Android.mk files, and enabling building of all libraries and tools. This is work in progress, tested only on latest Android master branch, arm, NDK-r8, platform-14. Feel free to test, suggest changes and report issues. Thanks Srdjan Obucina From supretsonu99 at gmail.com Thu Sep 20 12:28:46 2012 From: supretsonu99 at gmail.com (sujith) Date: Thu, 20 Sep 2012 03:28:46 -0700 (PDT) Subject: [FFmpeg-user] FFmpeg error while streaming to RTSP server Message-ID: <1348136926734-4653590.post@n4.nabble.com> Hi All, I am very much new to Streaming. what I am trying to do is to stream a static file over RTSP server. Steps that I am doing. * 1) My config file for the ffserver is as below:* RTSPPort 8544 File /home/xyz/tmp/feed2.ffm FileMaxSize 200K ACL allow 127.0.0.1 File "/home/user/test.mp4" Format rtsp StartSendOnKey *Note:* Some of the things are omitted. 2) I started the FFserver, and then try to connect to the server using below command from my vlc client" with command: rtsp://xxx.xxx.xxx.xxx:8544/test.sdp *I get the logs as:* ffserver version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 17 2012 19:46:38 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-version3 libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Thu Sep 20 12:08:05 2012 Opening file '/home/sujith/test.mp4' Thu Sep 20 12:08:05 2012 FFserver started. Thu Sep 20 12:08:12 2012 192.168.1.198 - - [DESCRIBE] "rtsp://xxx.xxx.xxx.xxx:8554/test.sdp RTSP/1.0" 200 167 Thu Sep 20 12:08:12 2012 192.168.1.198 - - [OPTIONS] "rtsp://xxx.xxx.xxx.xxx:8554 RTSP/1.0" 200 85 But, my VLC client is not able to connect and it says: "You input cannot be opened." ################################################################## Second thing that I was trying to do was to provide the feed to the ffserver through ffmpeg for that,* I was using the config file as:* Port 8090 RTSPPort 8544 File /home/xyz/tmp/feed2.ffm FileMaxSize 200K ACL allow 127.0.0.1 Feed feed2.ffm Format rtsp VideoFrameRate 15 VideoSize 352x240 VideoBitRate 256 VideoBufferSize 40 VideoGopSize 30 AudioBitRate 64 StartSendOnKey *Note:* some of the things are omitted. 1) start the server 2) ffmpeg -i /home/user/test.mp4 http://localhost:8888/feed2.ffm *It gives the error:* ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 5 2012 15:17:16 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configuration: --cxx=CXX libavutil 51. 34.101 / 51. 34.101 libavcodec 53. 60.100 / 53. 60.100 libavformat 53. 31.100 / 53. 31.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 60.100 / 2. 60.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/sujith/test.mp4': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp42avc1 creation_time : 2012-04-27 08:20:10 Duration: 00:02:08.28, start: 0.000000, bitrate: 539 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 104 kb/s Metadata: creation_time : 2012-04-27 08:20:10 handler_name : Apple Sound Media Handler Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240, 429 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc Metadata: creation_time : 2012-04-27 08:20:10 handler_name : Apple Video Media Handler [buffer @ 0x116b0c60] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x116abd60] w:320 h:240 fmt:yuv420p -> w:352 h:240 fmt:yuv420p flags:0x4 [NULL @ 0x1168dd80] Codec is experimental but experimental codecs are not enabled, see -strict -2 Output #0, ffm, to 'protocol://localhost:8888/feed2.ffm': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp42avc1 creation_time : 2012-04-27 08:20:10 Stream #0:0(eng): Audio: aac, 22050 Hz, 1 channels, flt, 64 kb/s Metadata: creation_time : 2012-04-27 08:20:10 handler_name : Apple Sound Media Handler Stream #0:1(eng): Video: mpeg4 (hq), yuv420p, 352x240, q=2-31, 256 kb/s, 1000k tbn, 25 tbc Metadata: creation_time : 2012-04-27 08:20:10 handler_name : Apple Video Media Handler Stream mapping: Stream #0:0 -> #0:0 (aac -> aac) Stream #0:1 -> #0:1 (h264 -> mpeg4) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFmpeg-error-while-streaming-to-RTSP-server-tp4653590.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From suriap at yahoo.com Thu Sep 20 20:33:29 2012 From: suriap at yahoo.com (Suria Pang) Date: Thu, 20 Sep 2012 11:33:29 -0700 (PDT) Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? In-Reply-To: References: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> <1347999346.61526.YahooMailNeo@web160303.mail.bf1.yahoo.com> Message-ID: <1348166009.42841.YahooMailNeo@web160303.mail.bf1.yahoo.com> Okay, after the past 2 days of? OS reinstall... the config runs nowmal but? ffmpeg gives same error below, attached the config.log too. [sg at dellpc ffmpeg]$? ./ffmpeg? -i /usr/tmp/test_prores4444.mov -r 23.98? -pix_fmt gbrp10le? -s 1920x1080 /usr/tmp/dpx2/ko_009%04d.dpx ffmpeg version N-44639-gb804497 Copyright (c) 2000-2012 the FFmpeg developers ? built on Sep 20 2012 11:19:57 with gcc 4.4.6 (GCC) 20110731 (Red Hat 4.4.6-3) ? configuration: --prefix=/usr --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 ? libavutil????? 51. 73.101 / 51. 73.101 ? libavcodec???? 54. 56.100 / 54. 56.100 ? libavformat??? 54. 27.101 / 54. 27.101 ? libavdevice??? 54.? 2.101 / 54.? 2.101 ? libavfilter???? 3. 16.106 /? 3. 16.106 ? libswscale????? 2.? 1.101 /? 2.? 1.101 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/tmp/test_prores4444.mov': ? Metadata: ??? creation_time?? : 2011-08-08 13:55:17 ??? timecode??????? : 00:00:00:00 ? Duration: 00:00:00.62, start: 0.000000, bitrate: 161371 kb/s ??? Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 44570 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler ??? Stream #0:1(eng): Data: none (tmcd / 0x64636D74) ??? Metadata: ????? creation_time?? : 2011-08-08 13:55:17 ????? handler_name??? : Apple Alias Data Handler ????? timecode??????? : 00:00:00:00 Impossible to convert between the formats supported by the filter 'scaler for output stream 0:0' and the filter 'auto-inserted scaler 0' Error opening filters! ? ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Tuesday, September 18, 2012 2:51 PM Subject: Re: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? Suria Pang yahoo.com> writes: > window 091412 update still gave the same exact error as 090712 setup. Command line and complete, uncut console output missing. [...] > ERROR: libgsm not found Simply remove --enable-libgsm from your configure line. It is unlikely that you will need it. Carl Eugen _______________________________________________ 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: config.log3 Type: application/octet-stream Size: 224518 bytes Desc: not available URL: From cehoyos at ag.or.at Thu Sep 20 23:12:48 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 20 Sep 2012 21:12:48 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg for Android References: Message-ID: ????? ??????? gmail.com> writes: > FFmpeg for Android is my attempt to create FFmpeg port for Android. What is the problem that you are trying to fix? What's wrong with the provided Makfiles? Carl Eugen From cehoyos at ag.or.at Thu Sep 20 23:38:16 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 20 Sep 2012 21:38:16 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to convert yuv444p10le to gbrp10le without defaulting to rgb48le ? References: <1347657202.98071.YahooMailNeo@web160304.mail.bf1.yahoo.com> <1347999346.61526.YahooMailNeo@web160303.mail.bf1.yahoo.com> <1348166009.42841.YahooMailNeo@web160303.mail.bf1.yahoo.com> Message-ID: Suria Pang yahoo.com> writes: > $ ./ffmpeg? -i /usr/tmp/test_prores4444.mov -r 23.98? > -pix_fmt gbrp10le?-s 1920x1080 /usr/tmp/dpx2/ko_009%04d.dpx In your new version, the dpx encoder supports gbrp10, unfortunately, there is only conversion from gbrp10, but not from another colour-space to gbrp10. I created ticket #1757. Sorry for the useless advice, Carl Eugen From cehoyos at ag.or.at Fri Sep 21 00:43:13 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 20 Sep 2012 22:43:13 +0000 (UTC) Subject: [FFmpeg-user] codec copy fails with malformed bitstreams in mpegts References: Message-ID: Rares Pop axz.ro> writes: > Every now and then ffmpeg fails when remuxing a mpegts > file with the following error: Ticket #1758 created. Carl Eugen From kite at interia.pl Fri Sep 21 00:16:17 2012 From: kite at interia.pl (Krzysztof) Date: Thu, 20 Sep 2012 22:16:17 +0000 (UTC) Subject: [FFmpeg-user] Strange newline character in mkv subtitles Message-ID: I encountered a weird problem and I have no idea what am I doing wrong. I have a number of MKV files with subtitle stream that play well in mplayer or on my Blueray player (Yamaha BD667). But when I try to add a subtitle track to a MKV file using ffmpeg, the subtitles work fine in mplayer, but on my Blueray player I see a rectangle character instead of a newline. Every subtitle is shown in one line with rectangles instead of new lines. Here's what I tried: Convered the SRT file to UFT-8: # iconv -f CP1250 -t UTF-8 -c original_subtitles.srt >subtitles.srt Tried both dos2unix or unix2dos on the subtitles.srt Muxed the subtitles with the video: # ffmpeg -i video.mp4 -i subtitles.srt -acodec copy -vcodec copy -scodec copy video.mkv The result looks the following: Input #0, matroska,webm, from 'video.mkv': Metadata: MAJOR_BRAND : isom MINOR_VERSION : 1 COMPATIBLE_BRANDS: isom CREATION_TIME : 2012-07-04 12:30:40 ENCODER : Lavf53.32.100 Duration: 01:42:34.63, start: 0.000000, bitrate: 303 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline), yuv420p, 366x270 [SAR1:1 DAR 61:45], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: CREATION_TIME : 1970-01-01 00:00:00 LANGUAGE : eng HANDLER_NAME : VideoHandler Stream #0:1(eng): Audio: aac, 44100 Hz, stereo, s16 (default) Metadata: CREATION_TIME : 2012-07-04 12:30:44 LANGUAGE : eng HANDLER_NAME : GPAC ISO Audio Handler Stream #0:2: Subtitle: text (default) For comparison a working video is: Input #0, matroska,webm, from 'movie.mkv': Duration: 02:25:29.89, start: 0.000000, bitrate: 575 kb/s Chapter #0.0: start 0.097000, end 8729.899000 Metadata: title : 00:00:00.097 Stream #0:0(eng): Video: h264 (High), yuv420p, 1088x448 [SAR 329:340 DAR47:20], SAR 239:247 DAR 4063:1729, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: title : xxxxx Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) Metadata: title : xxxxx Stream #0:2: Subtitle: text (default) Metadata: title : xxxxx I even went as far to look in the hexdump for the subtitle string and compared the newline characters in both MKV files. In both cases I see 0d 0a as a newline separator. The difference is that the ffmpeg muxed file the subtitle is terminated by 0d 0a 0d 0a, whereas in the other file there no newline at the end. Used ffmpeg 0.10.4. Again, the strange this is that mplayer shows the sustitles correctly, Yamaha BD player does not. Any help appreciated! From david at davidfavor.com Fri Sep 21 02:09:01 2012 From: david at davidfavor.com (David Favor) Date: Thu, 20 Sep 2012 19:09:01 -0500 Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container In-Reply-To: References: <505723B0.3040009@davidfavor.com> Message-ID: <505BB01D.4080408@davidfavor.com> Carl Eugen Hoyos wrote: > David Favor davidfavor.com> writes: > >> It appears .mp4 containers allow for positioning information >> of multiple video streams. > > You may be wrong here;-) > (mov != mp4) > >> My goal is to do -vcodec copy with two video streams, where >> the 2nd stream is positioned to the right of the first one, >> creating a "side by side" video. > > This is not currently possible with FFmpeg. > > Assuming you were the one uploading the Skype sample: > Did you already try to find out which mov atom > allows QuickTime to understand it should place > the video streams side-by-side? > > Carl Eugen Very good question... Must be some sort of mov atom doing this, so makes no difference what syntax I use with ffmpeg... the atom will be stripped and the positioning info lost. I'll see if I can figure this out. What a great feature for ffmpeg to have... Thanks for the idea. If you have a preference for a tool that dumps atoms and adds atoms, pass it along. -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From obucinac at gmail.com Fri Sep 21 05:24:54 2012 From: obucinac at gmail.com (=?UTF-8?B?0KHRgNGS0LDQvSDQntCx0YPRm9C40L3QsA==?=) Date: Fri, 21 Sep 2012 12:24:54 +0900 Subject: [FFmpeg-user] FFmpeg for Android In-Reply-To: References: Message-ID: 2012/9/21 Carl Eugen Hoyos > ????? ??????? gmail.com> writes: > > > FFmpeg for Android is my attempt to create FFmpeg port for Android. > > What is the problem that you are trying to fix? > What's wrong with the provided Makfiles? > Android building system concept is much different than ./configure; make; Android makefiles also have different format, and they require few specific includes and variables in order to work. Provided makefiles does not have them. FFmpeg may be inserted in Android as a prebuild library, by configuring and making library with standalone cross compiler (outside of Android source code tree and outside of Android build system), and copying compiled libraries at predefined location in Android source code tree, where Android build system will pick them up and use them for linking and creating filesystem. The other way to do it, is to have FFmpeg source code included into Android source code tree, and enable Android building system to build it according to the building environment configuration. Considering all specifics of Android build system, and countless possible Android building system and FFmpeg configurations, writing proper Android makefiles for building FFmpeg may be frustrating task. The second way is preferred in the industry I am working in, and I am trying to make this easier. Some explanations may be found here http://sourceforge.net/p/ffmpeg4android/wiki/Introduction/ From ubitux at gmail.com Fri Sep 21 07:42:18 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Fri, 21 Sep 2012 07:42:18 +0200 Subject: [FFmpeg-user] Strange newline character in mkv subtitles In-Reply-To: References: Message-ID: <20120921054218.GH25813@leki> On Thu, Sep 20, 2012 at 10:16:17PM +0000, Krzysztof wrote: > I encountered a weird problem and I have no idea what am I doing wrong. > > I have a number of MKV files with subtitle stream that play well in mplayer or > on my Blueray player (Yamaha BD667). But when I try to add a subtitle track to a > MKV file using ffmpeg, the subtitles work fine in mplayer, but on my Blueray > player I see a rectangle character instead of a newline. Every subtitle is shown > in one line with rectangles instead of new lines. > > Here's what I tried: > > Convered the SRT file to UFT-8: > # iconv -f CP1250 -t UTF-8 -c original_subtitles.srt >subtitles.srt > > Tried both dos2unix or unix2dos on the subtitles.srt > > Muxed the subtitles with the video: > # ffmpeg -i video.mp4 -i subtitles.srt -acodec copy -vcodec copy -scodec copy > video.mkv > > The result looks the following: > Input #0, matroska,webm, from 'video.mkv': > Metadata: > MAJOR_BRAND : isom > MINOR_VERSION : 1 > COMPATIBLE_BRANDS: isom > CREATION_TIME : 2012-07-04 12:30:40 > ENCODER : Lavf53.32.100 > Duration: 01:42:34.63, start: 0.000000, bitrate: 303 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline), yuv420p, 366x270 > [SAR1:1 DAR 61:45], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) > Metadata: > CREATION_TIME : 1970-01-01 00:00:00 > LANGUAGE : eng > HANDLER_NAME : VideoHandler > Stream #0:1(eng): Audio: aac, 44100 Hz, stereo, s16 (default) > Metadata: > CREATION_TIME : 2012-07-04 12:30:44 > LANGUAGE : eng > HANDLER_NAME : GPAC ISO Audio Handler > Stream #0:2: Subtitle: text (default) > > For comparison a working video is: > Input #0, matroska,webm, from 'movie.mkv': > Duration: 02:25:29.89, start: 0.000000, bitrate: 575 kb/s > Chapter #0.0: start 0.097000, end 8729.899000 > Metadata: > title : 00:00:00.097 > Stream #0:0(eng): Video: h264 (High), yuv420p, 1088x448 [SAR 329:340 > DAR47:20], SAR 239:247 DAR 4063:1729, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 > tbc (default) > Metadata: > title : xxxxx > Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) > Metadata: > title : xxxxx > Stream #0:2: Subtitle: text (default) > Metadata: > title : xxxxx > > I even went as far to look in the hexdump for the subtitle string and compared > the newline characters in both MKV files. In both cases I see 0d 0a as a newline > separator. The difference is that the ffmpeg muxed file the subtitle is > terminated by 0d 0a 0d 0a, whereas in the other file there no newline at the end. > > Used ffmpeg 0.10.4. > > Again, the strange this is that mplayer shows the sustitles correctly, Yamaha BD > player does not. > I think a mplayer with an up-to-date libass is likely to show the problem. Could you try the latest FFmpeg (git head) and share the original_subtitles.srt if the problem remains? -- 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 nichot20 at yahoo.com Fri Sep 21 10:07:58 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 21 Sep 2012 09:07:58 +0100 Subject: [FFmpeg-user] BGR24-YUV420-BGR24 conversion on raw video In-Reply-To: <1348032866045-4653571.post@n4.nabble.com> References: <1347970849712-4653539.post@n4.nabble.com> <1348032866045-4653571.post@n4.nabble.com> Message-ID: <505C205E.4080806@yahoo.com> On 19/09/12 06:34, Timo S wrote: > Thanks Mark! :) > > So, the good old BT.709... > Actually 601.... > Is there any way to force the conversion to full 0-255 range? I wouldn't > want to be bound by ancient TV technology... > The ffmpeg libs support a number of different colourspaces for conversion between RGB and YUV. Not sure if full range is one of them. Unfortunately whilst third party users make use of this, ffmpeg itself defaults to always using "SWS_CS_DEFAULT" which is set to 601. As they say, I'm sure a patch would be welcome.... > It's kinda hard to test concept codecs like the H.265 (which uses raw yuv as > test videos) if the comparison uses raw bgr24 avi for test material. The > metrics would be utterly useless. Of course PSNR is never conclusive if > comparing codecs and therefore I use also AbsDiff and UIQ. Possibly SSIM, if > we are successful in implementing that. > > Offtopic: H.265 test encoder is seriously buggy. It was even missing an > include line on the source code, so it wouldn't build. Luckily one guy here > knows his C++. > So the test encoder is C++ only then.... > > [...] -- Tim From cehoyos at ag.or.at Fri Sep 21 10:59:03 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 21 Sep 2012 08:59:03 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg for Android References: Message-ID: ????? ??????? gmail.com> writes: > Android building system concept is much different than > ./configure; make; Android makefiles also have different > format, and they require few specific includes and variables > in order to work. Provided makefiles does not have them. Thank you for explaining! Is there a way to insert the required specific includes into the existing Makefiles? In case this is possible, it would allow easier building iiuc. Carl Eugen From mark at mdsh.com Fri Sep 21 11:02:33 2012 From: mark at mdsh.com (Mark Himsley) Date: Fri, 21 Sep 2012 10:02:33 +0100 Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container In-Reply-To: <505BB01D.4080408@davidfavor.com> References: <505723B0.3040009@davidfavor.com> <505BB01D.4080408@davidfavor.com> Message-ID: <505C2D29.6070502@mdsh.com> On 21/09/12 01:09, David Favor wrote: > Carl Eugen Hoyos wrote: >> Did you already try to find out which mov atom allows QuickTime to >> understand it should place the video streams side-by-side? > > If you have a preference for a tool that dumps > atoms and adds atoms, pass it along. If you have a Mac then Apple's "Atom Inspector" might be the tool you want. -- Mark From obucinac at gmail.com Fri Sep 21 11:53:48 2012 From: obucinac at gmail.com (=?UTF-8?B?0KHRgNGS0LDQvSDQntCx0YPRm9C40L3QsA==?=) Date: Fri, 21 Sep 2012 18:53:48 +0900 Subject: [FFmpeg-user] FFmpeg for Android In-Reply-To: References: Message-ID: 2012/9/21 Carl Eugen Hoyos > Is there a way to insert the required specific includes into > the existing Makefiles? In case this is possible, it would > allow easier building iiuc. > I dont think so. At least, not easily. Simple Android.mk (thats android makefile), very close to minimal, looks like this: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ cmdutils.c \ ffmpeg.c LOCAL_SHARED_LIBRARIES := \ libavcodec$(VERSION_SUFFIX) \ libavdevice$(VERSION_SUFFIX) \ libavfilter$(VERSION_SUFFIX) \ libavformat$(VERSION_SUFFIX) \ libavresample$(VERSION_SUFFIX) \ libavutil$(VERSION_SUFFIX) \ libpostproc$(VERSION_SUFFIX) \ libswresample$(VERSION_SUFFIX) \ libswscale$(VERSION_SUFFIX) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := ffmpeg$(VERSION_SUFFIX) include $(BUILD_EXECUTABLE) include $(CLEAR_VARS) and include $(BUILD_EXECUTABLE) are those specific includes, which are located in Android source code tree. First clears all variables starting with LOCAL_, which are very important for the build system, second instructs build system to build executable file. Few other differences are: Files in FFmpeg Makefiles are listed as filename.o, while Android makefile requires real names, like filename1.c, filename2.S, filename3.asm. There are default android linker and compiler flags which will always be included in command line. Android build system always strips files which will be installed on device file system, and keeps non stripped files in a separate folder. IMO, the best help Android build system can get from FFmpeg would be if Makefiles provide variables which will contain values which can be used as initialization values for Android makefile variables. Basically, this is what I am trying to do now - get a list of files and flags from Makefiles, according to configuration, and use them in Android makefiles. From nicolas.george at normalesup.org Fri Sep 21 12:00:22 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 21 Sep 2012 12:00:22 +0200 Subject: [FFmpeg-user] FFmpeg for Android In-Reply-To: References: Message-ID: <20120921100022.GA28025@phare.normalesup.org> Le jour de la R?volution, an CCXX, Carl Eugen Hoyos a ?crit?: > Is there a way to insert the required specific includes into > the existing Makefiles? In case this is possible, it would > allow easier building iiuc. It is perfectly to build an Android application without using their horrible and unreadable makefiles, you just need to figure out the proper build commands, which are unfortunately undocumented. Ant freezing when being straced is also a bit of a problem. But once you figure out the proper options, it works. I was able, some time ago, to build ffmpeg using the compiler and toolchain from the Android NDK, it just requires an awful lot of options. And also, I do not understand the first thing about the various architecture options for ARM. Regards, -- Nicolas George From nichot20 at yahoo.com Fri Sep 21 14:13:18 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 21 Sep 2012 13:13:18 +0100 Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container In-Reply-To: <505C2D29.6070502@mdsh.com> References: <505723B0.3040009@davidfavor.com> <505BB01D.4080408@davidfavor.com> <505C2D29.6070502@mdsh.com> Message-ID: <505C59DE.6030502@yahoo.com> On 21/09/12 10:02, Mark Himsley wrote: > On 21/09/12 01:09, David Favor wrote: >> Carl Eugen Hoyos wrote: > >>> Did you already try to find out which mov atom allows QuickTime to >>> understand it should place the video streams side-by-side? > >> >> If you have a preference for a tool that dumps >> atoms and adds atoms, pass it along. > > If you have a Mac then Apple's "Atom Inspector" might be the tool you want. > But you will need to be a registered developer to get it... -- Tim From rogerdpack2 at gmail.com Fri Sep 21 18:57:17 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 21 Sep 2012 10:57:17 -0600 Subject: [FFmpeg-user] Ispcm_bluray to pcm_s16le lossless? In-Reply-To: References: Message-ID: >> This is not always true because afaik there are >> 32 bit pcm_bluray streams and the conversion > > Sorry, this should be 24bit If there are multiple bit streams should they possibly have different names, as well, like "pcm_bluray24" kind of like how pcm does it? -r From rogerdpack2 at gmail.com Fri Sep 21 19:25:02 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 21 Sep 2012 11:25:02 -0600 Subject: [FFmpeg-user] FFmpeg error while streaming to RTSP server In-Reply-To: <1348136926734-4653590.post@n4.nabble.com> References: <1348136926734-4653590.post@n4.nabble.com> Message-ID: > "rtsp://xxx.xxx.xxx.xxx:8554 RTSP/1.0" 200 85 > > But, my VLC client is not able to connect and it says: "You input cannot be > opened." What are your VLC logs? what if you connect to it with ffplay? From david at davidfavor.com Fri Sep 21 20:06:00 2012 From: david at davidfavor.com (David Favor) Date: Fri, 21 Sep 2012 13:06:00 -0500 Subject: [FFmpeg-user] Syntax for merging + positioning two video streams in .mp4 container In-Reply-To: <505C59DE.6030502@yahoo.com> References: <505723B0.3040009@davidfavor.com> <505BB01D.4080408@davidfavor.com> <505C2D29.6070502@mdsh.com> <505C59DE.6030502@yahoo.com> Message-ID: <505CAC88.6090901@davidfavor.com> Tim Nicholson wrote: > On 21/09/12 10:02, Mark Himsley wrote: >> On 21/09/12 01:09, David Favor wrote: >>> Carl Eugen Hoyos wrote: >>>> Did you already try to find out which mov atom allows QuickTime to >>>> understand it should place the video streams side-by-side? >>> If you have a preference for a tool that dumps >>> atoms and adds atoms, pass it along. >> If you have a Mac then Apple's "Atom Inspector" might be the tool you want. >> > But you will need to be a registered developer to get it... > Geez... the link is obfuscated beyond belief... Start here: https://developer.apple.com/downloads Search for Atom Inspector... -- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way! From cehoyos at ag.or.at Sat Sep 22 00:06:52 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 21 Sep 2012 22:06:52 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Ispcm=5Fbluray_to_pcm=5Fs16le_lossless=3F?= References: Message-ID: Roger Pack gmail.com> writes: > >> This is not always true because afaik there are > >> 32 bit pcm_bluray streams and the conversion > > > > Sorry, this should be 24bit > > If there are multiple bit streams should they possibly have different > names, as well, like "pcm_bluray24" kind of like how pcm does it? You mean mpeg2video 4:2:0 should have a different name than mpeg2video 4:2:2? And h264 4:2;2 a different name than h264 4:4:4? And alac 16bit a different name than alac 32bit? No, I don't think that would be a good idea, especially since current FFmpeg's output already allows to differentiate. Carl Eugen From filego.org at gmail.com Sat Sep 22 05:14:40 2012 From: filego.org at gmail.com (antani) Date: Sat, 22 Sep 2012 05:14:40 +0200 Subject: [FFmpeg-user] ./configure Message-ID: <1EDA3506-EEDE-42E4-83F7-811082AAEC14@filego.org> I run under fedora 12 x86 i have donwload the bzip2 under the root i have uncompressed, cd ffmpeg (try this version latest and ffmpeg-0.11.2) right now i want enable some encode i try to give some easy configure but nothing (ex. || ./configure --enable-gpl --enable-libx264 || ./configure --enable-gpl --enable-libopenjpeg ) ERROR: libx264 not found || ERROR: libopenjpeg not found..with almost all maybe one or two like zlib.. If can you give me some help i really appreciate..config.log from the latest ffmpeg git From lou at lrcd.com Sat Sep 22 06:38:39 2012 From: lou at lrcd.com (Lou) Date: Fri, 21 Sep 2012 20:38:39 -0800 Subject: [FFmpeg-user] ./configure In-Reply-To: <1EDA3506-EEDE-42E4-83F7-811082AAEC14@filego.org> References: <1EDA3506-EEDE-42E4-83F7-811082AAEC14@filego.org> Message-ID: <20120921203839.680be90a@lrcd.com> On Sat, 22 Sep 2012 05:14:40 +0200 antani wrote: > I run under fedora 12 x86 i have donwload the bzip2 under the root i > have uncompressed, cd ffmpeg (try this version latest and > ffmpeg-0.11.2) right now i want enable some encode i try to give some > easy configure but nothing (ex. || ./configure --enable-gpl > --enable-libx264 || ./configure --enable-gpl --enable-libopenjpeg ) > ERROR: libx264 not found || ERROR: libopenjpeg not found..with almost > all maybe one or two like zlib.. If can you give me some help i really > appreciate..config.log from the latest ffmpeg git Did you install libx264 and libopenjpeg before running the ffmpeg ./configure? This may be useful for you: https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide From hjw3001 at gmail.com Sat Sep 22 07:29:29 2012 From: hjw3001 at gmail.com (Henry Wagner) Date: Fri, 21 Sep 2012 22:29:29 -0700 Subject: [FFmpeg-user] Help needed with turning a series of png files into video Message-ID: Hi, I installed ffmpeg on my Mac running OS X 10.7.4: sudo port install ffmpeg I am attempting to turn a series of png files generated from POV-Ray into a video, preferably and H.264 encoded video at 24 fps, in 720p. There are 50 png files, rendered at 1280x720, 8 bit. In each case I get a video of 0 length, appears to be one frame, and attempting to play with the standard Quicktime player. I have tried a number of different ffmpeg commands, all yielding the same 0 length result. Please help me get the syntax correct ffmpeg -i camp*.png -y camp.mpg ffmpeg -i camp*.png -b 1200 -y camp.mpg ffmpeg -i camp*.png -vcodec mpeg4 -b 1200KB -s 1280x720 camp.mp4 ffmpeg -f image2 -i camp*.png camp.mpg This is the version details for the ffmpeg I have installed: ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 1 2012 21:08:35 with clang 3.1 (tags/Apple/clang-318.0.58) 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=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid 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 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... The output shows "-0kB time=00:00:00.00 bitrate= 0.0kbits/s " which seems to match what I'm seeing. Here's the full output of: ffmpeg -i camp*.png -y camp.mpg ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 1 2012 21:08:35 with clang 3.1 (tags/Apple/clang-318.0.58) 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=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid 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 Input #0, image2, from 'campfire01.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: png, rgb24, 1280x720, 25 tbr, 25 tbn, 25 tbc [buffer @ 0x7faa514411a0] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa514415c0] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa514419c0] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51441dc0] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa514421c0] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa514425c0] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51442a00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51442e80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51443300] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51443780] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51443c00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51444080] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51444500] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51444980] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51444e00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51445280] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51445700] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51445b80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51446000] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51446480] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51446900] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51446d80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51447200] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51447680] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51447b00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51447f80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51448400] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51448880] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51448d00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51449180] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51449600] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51449a80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa51449f00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144a380] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144a800] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144ac80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144b100] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144b580] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144ba00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144be80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144c300] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144c780] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144cc00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144d080] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144d500] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144d980] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144de00] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144e280] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffer @ 0x7faa5144e700] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: Incompatible pixel format 'rgb24' for codec 'mpeg1video', auto-selecting format 'yuv420p' [buffer @ 0x7faa5144eb80] w:1280 h:720 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x7faa5144ee40] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x7faa5144f140] w:1280 h:720 fmt:rgb24 -> w:1280 h:720 fmt:yuv420p flags:0x4 [mpeg @ 0x7faa5199cc00] VBV buffer size not set, muxing may fail Output #0, image2, to 'campfire02.png': Metadata: encoder : Lavf52.111.0 Stream #0.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #1, image2, to 'campfire03.png': Metadata: encoder : Lavf52.111.0 Stream #1.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #2, image2, to 'campfire04.png': Metadata: encoder : Lavf52.111.0 Stream #2.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #3, image2, to 'campfire05.png': Metadata: encoder : Lavf52.111.0 Stream #3.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #4, image2, to 'campfire06.png': Metadata: encoder : Lavf52.111.0 Stream #4.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #5, image2, to 'campfire07.png': Metadata: encoder : Lavf52.111.0 Stream #5.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #6, image2, to 'campfire08.png': Metadata: encoder : Lavf52.111.0 Stream #6.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #7, image2, to 'campfire09.png': Metadata: encoder : Lavf52.111.0 Stream #7.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #8, image2, to 'campfire10.png': Metadata: encoder : Lavf52.111.0 Stream #8.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #9, image2, to 'campfire11.png': Metadata: encoder : Lavf52.111.0 Stream #9.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #10, image2, to 'campfire12.png': Metadata: encoder : Lavf52.111.0 Stream #10.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #11, image2, to 'campfire13.png': Metadata: encoder : Lavf52.111.0 Stream #11.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #12, image2, to 'campfire14.png': Metadata: encoder : Lavf52.111.0 Stream #12.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #13, image2, to 'campfire15.png': Metadata: encoder : Lavf52.111.0 Stream #13.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #14, image2, to 'campfire16.png': Metadata: encoder : Lavf52.111.0 Stream #14.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #15, image2, to 'campfire17.png': Metadata: encoder : Lavf52.111.0 Stream #15.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #16, image2, to 'campfire18.png': Metadata: encoder : Lavf52.111.0 Stream #16.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #17, image2, to 'campfire19.png': Metadata: encoder : Lavf52.111.0 Stream #17.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #18, image2, to 'campfire20.png': Metadata: encoder : Lavf52.111.0 Stream #18.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #19, image2, to 'campfire21.png': Metadata: encoder : Lavf52.111.0 Stream #19.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #20, image2, to 'campfire22.png': Metadata: encoder : Lavf52.111.0 Stream #20.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #21, image2, to 'campfire23.png': Metadata: encoder : Lavf52.111.0 Stream #21.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #22, image2, to 'campfire24.png': Metadata: encoder : Lavf52.111.0 Stream #22.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #23, image2, to 'campfire25.png': Metadata: encoder : Lavf52.111.0 Stream #23.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #24, image2, to 'campfire26.png': Metadata: encoder : Lavf52.111.0 Stream #24.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #25, image2, to 'campfire27.png': Metadata: encoder : Lavf52.111.0 Stream #25.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #26, image2, to 'campfire28.png': Metadata: encoder : Lavf52.111.0 Stream #26.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #27, image2, to 'campfire29.png': Metadata: encoder : Lavf52.111.0 Stream #27.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #28, image2, to 'campfire30.png': Metadata: encoder : Lavf52.111.0 Stream #28.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #29, image2, to 'campfire31.png': Metadata: encoder : Lavf52.111.0 Stream #29.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #30, image2, to 'campfire32.png': Metadata: encoder : Lavf52.111.0 Stream #30.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #31, image2, to 'campfire33.png': Metadata: encoder : Lavf52.111.0 Stream #31.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #32, image2, to 'campfire34.png': Metadata: encoder : Lavf52.111.0 Stream #32.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #33, image2, to 'campfire35.png': Metadata: encoder : Lavf52.111.0 Stream #33.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #34, image2, to 'campfire36.png': Metadata: encoder : Lavf52.111.0 Stream #34.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #35, image2, to 'campfire37.png': Metadata: encoder : Lavf52.111.0 Stream #35.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #36, image2, to 'campfire38.png': Metadata: encoder : Lavf52.111.0 Stream #36.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #37, image2, to 'campfire39.png': Metadata: encoder : Lavf52.111.0 Stream #37.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #38, image2, to 'campfire40.png': Metadata: encoder : Lavf52.111.0 Stream #38.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #39, image2, to 'campfire41.png': Metadata: encoder : Lavf52.111.0 Stream #39.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #40, image2, to 'campfire42.png': Metadata: encoder : Lavf52.111.0 Stream #40.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #41, image2, to 'campfire43.png': Metadata: encoder : Lavf52.111.0 Stream #41.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #42, image2, to 'campfire44.png': Metadata: encoder : Lavf52.111.0 Stream #42.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #43, image2, to 'campfire45.png': Metadata: encoder : Lavf52.111.0 Stream #43.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #44, image2, to 'campfire46.png': Metadata: encoder : Lavf52.111.0 Stream #44.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #45, image2, to 'campfire47.png': Metadata: encoder : Lavf52.111.0 Stream #45.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #46, image2, to 'campfire48.png': Metadata: encoder : Lavf52.111.0 Stream #46.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #47, image2, to 'campfire49.png': Metadata: encoder : Lavf52.111.0 Stream #47.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #48, image2, to 'campfire50.png': Metadata: encoder : Lavf52.111.0 Stream #48.0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Output #49, mpeg, to 'aaa.mpg': Metadata: encoder : Lavf52.111.0 Stream #49.0: Video: mpeg1video, yuv420p, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Stream #0.0 -> #1.0 Stream #0.0 -> #2.0 Stream #0.0 -> #3.0 Stream #0.0 -> #4.0 Stream #0.0 -> #5.0 Stream #0.0 -> #6.0 Stream #0.0 -> #7.0 Stream #0.0 -> #8.0 Stream #0.0 -> #9.0 Stream #0.0 -> #10.0 Stream #0.0 -> #11.0 Stream #0.0 -> #12.0 Stream #0.0 -> #13.0 Stream #0.0 -> #14.0 Stream #0.0 -> #15.0 Stream #0.0 -> #16.0 Stream #0.0 -> #17.0 Stream #0.0 -> #18.0 Stream #0.0 -> #19.0 Stream #0.0 -> #20.0 Stream #0.0 -> #21.0 Stream #0.0 -> #22.0 Stream #0.0 -> #23.0 Stream #0.0 -> #24.0 Stream #0.0 -> #25.0 Stream #0.0 -> #26.0 Stream #0.0 -> #27.0 Stream #0.0 -> #28.0 Stream #0.0 -> #29.0 Stream #0.0 -> #30.0 Stream #0.0 -> #31.0 Stream #0.0 -> #32.0 Stream #0.0 -> #33.0 Stream #0.0 -> #34.0 Stream #0.0 -> #35.0 Stream #0.0 -> #36.0 Stream #0.0 -> #37.0 Stream #0.0 -> #38.0 Stream #0.0 -> #39.0 Stream #0.0 -> #40.0 Stream #0.0 -> #41.0 Stream #0.0 -> #42.0 Stream #0.0 -> #43.0 Stream #0.0 -> #44.0 Stream #0.0 -> #45.0 Stream #0.0 -> #46.0 Stream #0.0 -> #47.0 Stream #0.0 -> #48.0 Stream #0.0 -> #49.0 Press [q] to stop, [?] for help frame= 1 fps= 0 q=0.0 Lq=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=5.0 size= -0kB time=00:00:00.00 bitrate= 0.0kbits/s video:33077kB audio:0kB global headers:0kB muxing overhead -100.000065% Thanks, Henry From cehoyos at ag.or.at Sat Sep 22 09:20:14 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 22 Sep 2012 07:20:14 +0000 (UTC) Subject: [FFmpeg-user] Help needed with turning a series of png files into video References: Message-ID: Henry Wagner gmail.com> writes: > ffmpeg -i camp*.png -vcodec mpeg4 -b 1200KB -s 1280x720 camp.mp4 The correct syntax is $ ffmpeg -r 24 -i campfire%02.png camp.mp4 (You will probably have to add a few x264 options.) > ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers This is old, please update to current git head. Carl Eugen From kite at interia.pl Sat Sep 22 12:49:33 2012 From: kite at interia.pl (Krzysztof) Date: Sat, 22 Sep 2012 10:49:33 +0000 (UTC) Subject: [FFmpeg-user] Strange newline character in mkv subtitles References: <20120921054218.GH25813@leki> Message-ID: On Fri, 21 Sep 2012 07:42:18 +0200, Cl?ment B?sch wrote: > I think a mplayer with an up-to-date libass is likely to show the > problem. In fact subtitles encoded with "-scodec" ass do not work at all on my BD player. I used "-scodec srt" to make it display the subtitles at all, but was struck by the problem described. > Could you try the latest FFmpeg (git head) and share the > original_subtitles.srt if the problem remains? Will try. From kite at interia.pl Sat Sep 22 16:04:40 2012 From: kite at interia.pl (Krzysztof) Date: Sat, 22 Sep 2012 14:04:40 +0000 (UTC) Subject: [FFmpeg-user] Strange newline character in mkv subtitles References: <20120921054218.GH25813@leki> Message-ID: On Fri, 21 Sep 2012 07:42:18 +0200, Cl?ment B?sch wrote: > Could you try the latest FFmpeg (git head) and share the > original_subtitles.srt if the problem remains? I tried the static build dated Sep 14th from http://ffmpeg.gusari.org/ static (found it from ffmpeg.org site). It makes no difference. The original srt is there: http://napisy.info/napisy_info_45924_SRT.zip From ubitux at gmail.com Sat Sep 22 16:09:40 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Sat, 22 Sep 2012 16:09:40 +0200 Subject: [FFmpeg-user] Strange newline character in mkv subtitles In-Reply-To: References: <20120921054218.GH25813@leki> Message-ID: <20120922140939.GQ25813@leki> On Sat, Sep 22, 2012 at 02:04:40PM +0000, Krzysztof wrote: > On Fri, 21 Sep 2012 07:42:18 +0200, Cl?ment B?sch wrote: > > Could you try the latest FFmpeg (git head) and share the > > original_subtitles.srt if the problem remains? > > I tried the static build dated Sep 14th from http://ffmpeg.gusari.org/ > static (found it from ffmpeg.org site). It makes no difference. > > The original srt is there: http://napisy.info/napisy_info_45924_SRT.zip "Konwersja wymaga parametru FPS" No idea what that means. -- 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 andycivil at gmail.com Sat Sep 22 17:36:03 2012 From: andycivil at gmail.com (Andy Civil) Date: Sat, 22 Sep 2012 11:36:03 -0400 Subject: [FFmpeg-user] Strange newline character in mkv subtitles In-Reply-To: <20120922140939.GQ25813@leki> References: <20120921054218.GH25813@leki> <20120922140939.GQ25813@leki> Message-ID: <505DDAE3.5020601@gmail.com> On 2012-09-22 10:09 AM, Cl?ment B?sch wrote: > > "Konwersja wymaga parametru FPS" > > No idea what that means. > Conversion requires a FPS parameter? From supretsonu99 at gmail.com Sat Sep 22 06:52:38 2012 From: supretsonu99 at gmail.com (sujith) Date: Fri, 21 Sep 2012 21:52:38 -0700 (PDT) Subject: [FFmpeg-user] FFmpeg error while streaming to RTSP server In-Reply-To: References: <1348136926734-4653590.post@n4.nabble.com> Message-ID: Hi, I didn't tried with ffplay.. but not it is working... I had not mentioned the Format in the configuration file. I mentioned it as: Format rtp and now it is working.. Thanks everyone. On Fri, Sep 21, 2012 at 10:55 PM, Roger Pack [via FFmpeg-users] < ml-node+s933282n4653611h8 at n4.nabble.com> wrote: > > "rtsp://xxx.xxx.xxx.xxx:8554 RTSP/1.0" 200 85 > > > > But, my VLC client is not able to connect and it says: "You input cannot > be > > opened." > > What are your VLC logs? what if you connect to it with ffplay? > _______________________________________________ > 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/FFmpeg-error-while-streaming-to-RTSP-server-tp4653590p4653611.html > To unsubscribe from FFmpeg error while streaming to RTSP server, click > here > . > NAML > -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFmpeg-error-while-streaming-to-RTSP-server-tp4653590p4653617.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hugowau at gmx.net Sat Sep 22 19:34:39 2012 From: hugowau at gmx.net (Hugo Wau) Date: Sat, 22 Sep 2012 19:34:39 +0200 Subject: [FFmpeg-user] -qcomp 0.8 with no effect Message-ID: <505DF6AF.5080103@gmx.net> Hello, I want to bring a video, produced with ffmpeg from an audio stream and a huge amount of images, on DVD. Well, the resulting video I got was 4.9 GB, which is a tiny bit too big, to fit on an average DVD. I have read about the "-qcomp" modifier. But -qcomp 0.8 has absolutely no effect for me. I don't want to reduce size or rate, but want to increase the compression ratio to produce a video from which I'll produce a .iso file to burn it on DVD. The time it takes for ffmpeg to produce this video doesn't matter much. How and where can I make the -qcomp modifier effective? I am using 64-Bit Debian Wheezy, kind regards Hugo From cehoyos at ag.or.at Sat Sep 22 20:51:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 22 Sep 2012 18:51:01 +0000 (UTC) Subject: [FFmpeg-user] -qcomp 0.8 with no effect References: <505DF6AF.5080103@gmx.net> Message-ID: Hugo Wau gmx.net> writes: > I want to bring a video, produced with ffmpeg from an audio > stream and a huge amount of images, on DVD. Well, the > resulting video I got was 4.9 GB, which is a tiny bit too > big, to fit on an average DVD. I have read about the > "-qcomp" modifier. But -qcomp 0.8 has absolutely no effect > for me. > > I don't want to reduce size or rate Apart from the fact that I don't see what else could help you except "reduce size": I am not sure what you mean with "-qcomp". Please provide your command line together with complete, uncut console output. Carl Eugen From hugowau at gmx.net Sat Sep 22 21:16:35 2012 From: hugowau at gmx.net (Hugo Wau) Date: Sat, 22 Sep 2012 21:16:35 +0200 Subject: [FFmpeg-user] -qcomp 0.8 with no effect In-Reply-To: References: <505DF6AF.5080103@gmx.net> Message-ID: <505E0E93.5080205@gmx.net> Hello Carl Eugen Hoyos, On 22.09.2012 20:51, Carl Eugen Hoyos wrote: > Hugo Wau gmx.net> writes: > > >> I want to bring a video, produced with ffmpeg from an audio >> stream and a huge amount of images, on DVD. Well, the >> resulting video I got was 4.9 GB, which is a tiny bit too >> big, to fit on an average DVD. I have read about the >> "-qcomp" modifier. But -qcomp 0.8 has absolutely no effect >> for me. >> >> I don't want to reduce size or rate >> > Apart from the fact that I don't see what else could > help you except "reduce size": > I am not sure what you mean with "-qcomp". Please > provide your command line together with complete, uncut > console output. > > Carl Eugen > > _____________ my command line looks like this: ffmpeg -i myaudio4video.mp3 -f image2 -r 25 -i frames720/frm%06d.jpg -sameq -target pal-dvd -aspect 16:9 -acodec mp2 -ab 192k -qcomp 0.9 -y myvideo.mpg this works for me and it produces a fine mp2 video, which fits the screen-size standard for a DVD. But the resulting video file is just a bit too big for a DVD. (I don't have the output on this computer.) I am aware that -qcomp 0.9 could probably be in a conflict with -sameq (if -qcomp would work at all). According to the manpage are there also options like -fs to specify a file size, which I have not tested yet. I will not change the screen-size, nor will I reduce audio quality. Just a bit more compression, a bit less video quality - if necessary - to make the resulting video fit the media. (4.9GB -->> 4.5GB) with kind regards Hugo From bobm-ffmpeg at burner.com Sat Sep 22 22:04:17 2012 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Sat, 22 Sep 2012 14:04:17 -0600 Subject: [FFmpeg-user] ProRes Quicktimes with audio not playing back reliably Message-ID: <505E19C1.3000201@burner.com> Experimenting with ffmpeg for Prores Quicktime creation on Windows so I can stop having to bounce stuff over to a Mac to do it, but am having some issues with the resulting files. Upon a bunch of testing, it seems that the movies made with video AND audio are problematic; If I make a video-only Prores Quicktime it plays back just fine, or if I make an audio only it plays back fine as well. With both however I get unreliable playback, ranging from Quicktime Player (on Windows) playing back 'lurchy' or even freezing up entirely. It's also not consistent; It will play through sections fine one time and freeze up another, so it's not happening at exactly the same spot. Sometimes I'll get 2 seconds in and it freezes, sometimes it'll go for 20-30 and then die. So this seems like a muxing/interleaving issue with the video and audio ffmpeg is writing in such a way that Quicktime Player is getting a bit twisted up inside. If I take for instance the separate video-only Prores and audio from ffmpeg and combine them myself in Quicktime Pro (using Copy from the audio movie and 'Add to Movie' on the video one) and save a new self-contained file, it plays back fine. I've been searching through the list archives and the cloest thing I can find is: http://ffmpeg.org/pipermail/ffmpeg-user/2012-May/006612.html However the FCP warning is not (yet) my problem since I can't even get them to work reliably on Windows, AND I've made >4GB files that still don't work. But that thread suggested some sort of muxing problem that was supposedly fixed in the ffmbc fork, but I downloaded and tried that too and didn't have any better success - the movies behave the exact same way. So I'm not sure what might be going on. Here's my encode command line plus output: -- D:\ffmpeg-20120907-git-070b0e1-win64-static\bin> .\ffmpeg -i D:\F75C0919.MOV -vcodec prores -profile:v 2 -acodec pcm_ s16le -ar 48000 -ac 2 D:\ProResTest.mov ffmpeg version N-44264-g070b0e1 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 7 2012 17:38:57 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 72.100 / 51. 72.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.105 / 54. 25.105 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 16.100 / 3. 16.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\F75C0919.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CAEP creation_time : 2012-07-12 22:27:21 Duration: 00:02:34.48, start: 0.000000, bitrate: 65008 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p, 1920x1080 [SAR 1:1 DAR 16:9], 63463 kb/s, 29.97fps, 29.97 tbr, 30k tbn, 60k tbc Metadata: creation_time : 2012-07-12 22:27:21 timecode : 00:27:53;12 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2012-07-12 22:27:21 timecode : 00:27:53;12 Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-07-12 22:27:21 timecode : 00:27:53;12 File 'D:\ProResTest.mov' already exists. Overwrite ? [y/N] y Output #0, mov, to 'D:\ProResTest.mov': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CAEP encoder : Lavf54.25.105 Stream #0:0(eng): Video: prores (apcn) (apcn / 0x6E637061), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 30k tbn, 29.97 tbc Metadata: creation_time : 2012-07-12 22:27:21 timecode : 00:27:53;12 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2012-07-12 22:27:21 timecode : 00:27:53;12 Stream mapping: Stream #0:0 -> #0:0 (h264 -> prores) Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le) Press [q] to stop, [?] for help frame= 4630 fps= 36 q=0.0 Lsize= 3381837kB time=00:02:34.48 bitrate=179328.3kbits/s video:3352768kB audio:28966kB subtitle:0 global headers:0kB muxing overhead 0.003047% From hjw3001 at gmail.com Sat Sep 22 22:05:45 2012 From: hjw3001 at gmail.com (Henry Wagner) Date: Sat, 22 Sep 2012 13:05:45 -0700 Subject: [FFmpeg-user] Help needed with turning a series of png files into video In-Reply-To: References: Message-ID: Thanks Carl, the updated command and updated version of ffmpeg worked. Henry On Sat, Sep 22, 2012 at 12:20 AM, Carl Eugen Hoyos wrote: > Henry Wagner gmail.com> writes: > > > ffmpeg -i camp*.png -vcodec mpeg4 -b 1200KB -s 1280x720 camp.mp4 > > The correct syntax is > $ ffmpeg -r 24 -i campfire%02.png camp.mp4 > (You will probably have to add a few x264 options.) > > > ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers > > This is old, please update to current git head. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From dev at rarevision.com Sat Sep 22 22:35:19 2012 From: dev at rarevision.com (Thomas Worth) Date: Sat, 22 Sep 2012 13:35:19 -0700 Subject: [FFmpeg-user] ProRes Quicktimes with audio not playing back reliably In-Reply-To: <505E19C1.3000201@burner.com> References: <505E19C1.3000201@burner.com> Message-ID: On Sat, Sep 22, 2012 at 1:04 PM, Bob Maple wrote: > Experimenting with ffmpeg for Prores Quicktime creation on Windows so I can > stop having to bounce stuff over to a Mac to do it, but am having some > issues with the resulting files. > > Upon a bunch of testing, it seems that the movies made with video AND audio > are problematic; If I make a video-only Prores Quicktime it plays back just > fine, or if I make an audio only it plays back fine as well. > > With both however I get unreliable playback, ranging from Quicktime Player > (on Windows) playing back 'lurchy' or even freezing up entirely. It's also > not consistent; It will play through sections fine one time and freeze up > another, so it's not happening at exactly the same spot. Sometimes I'll get > 2 seconds in and it freezes, sometimes it'll go for 20-30 and then die. > > So this seems like a muxing/interleaving issue with the video and audio > ffmpeg is writing in such a way that Quicktime Player is getting a bit > twisted up inside. If I take for instance the separate video-only Prores > and audio from ffmpeg and combine them myself in Quicktime Pro (using Copy > from the audio movie and 'Add to Movie' on the video one) and save a new > self-contained file, it plays back fine. > > I've been searching through the list archives and the cloest thing I can > find is: > > http://ffmpeg.org/pipermail/ffmpeg-user/2012-May/006612.html > > However the FCP warning is not (yet) my problem since I can't even get them > to work reliably on Windows, AND I've made >4GB files that still don't work. > But that thread suggested some sort of muxing problem that was supposedly > fixed in the ffmbc fork, but I downloaded and tried that too and didn't have > any better success - the movies behave the exact same way. So I'm not sure > what might be going on. Is this also a problem when you transcode the same media to something other than ProRes, like JPEG (-vcodec mjpeg)? Or does the problem ONLY occur with ProRes-encoded files? Can you send me one of your ProRes files that exhibits this problem? I'd like to have a look. You can email me off-list to get the details. From bobm-ffmpeg at burner.com Sat Sep 22 23:30:54 2012 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Sat, 22 Sep 2012 15:30:54 -0600 Subject: [FFmpeg-user] ProRes Quicktimes with audio not playing back reliably In-Reply-To: References: <505E19C1.3000201@burner.com> Message-ID: <505E2E0E.5030409@burner.com> On 9/22/2012 2:35 PM, Thomas Worth wrote: > Is this also a problem when you transcode the same media to something > other than ProRes, like JPEG (-vcodec mjpeg)? Or does the problem ONLY > occur with ProRes-encoded files? Hmm good question. I just tried mjpeg and that seemed to work fine. > Can you send me one of your ProRes files that exhibits this problem? > I'd like to have a look. You can email me off-list to get the details. Absolutely. I'll prepare some test files that aren't too huge and drop you a mail. Thanks for taking a look at this! -- | Bob Maple | | When love is gone, there's always justice. And when justice is gone, | there's always force. And when force is gone, there's always Mom. | Hi, Mom! -Laurie Anderson From cehoyos at ag.or.at Sun Sep 23 03:39:29 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 23 Sep 2012 01:39:29 +0000 (UTC) Subject: [FFmpeg-user] -qcomp 0.8 with no effect References: <505DF6AF.5080103@gmx.net> <505E0E93.5080205@gmx.net> Message-ID: Hugo Wau gmx.net> writes: > my command line looks like this: > > ffmpeg -i myaudio4video.mp3 -f image2 -r 25 -i frames720/frm%06d.jpg > -sameq -target pal-dvd -aspect 16:9 -acodec mp2 -ab 192k -qcomp 0.9 -y > myvideo.mpg (-f image 2 -r 25 should be unneeded) -qcomp (that I did not know) works fine here, but since it affects bit-rate control, it cannot work with -sameq. Please provide complete, uncut console output if you need support. Carl Eugen PS: You do know that -sameq does NOT mean "same quality"? From cehoyos at ag.or.at Sun Sep 23 03:40:41 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 23 Sep 2012 01:40:41 +0000 (UTC) Subject: [FFmpeg-user] ProRes Quicktimes with audio not playing back reliably References: <505E19C1.3000201@burner.com> Message-ID: Bob Maple burner.com> writes: > D:\ffmpeg-20120907-git-070b0e1-win64-static\bin> .\ffmpeg -i > D:\F75C0919.MOV -vcodec prores -profile:v 2 -acodec pcm_ > s16le -ar 48000 -ac 2 D:\ProResTest.mov Does it work if you use another audio codec? (aac with high bitrate) Carl Eugen From gabri.ns at gmail.com Sun Sep 23 03:51:31 2012 From: gabri.ns at gmail.com (Gabri Nurtinaz Shally) Date: Sun, 23 Sep 2012 08:51:31 +0700 Subject: [FFmpeg-user] -qcomp 0.8 with no effect In-Reply-To: <505E0E93.5080205@gmx.net> References: <505DF6AF.5080103@gmx.net> <505E0E93.5080205@gmx.net> Message-ID: On Sep 23, 2012 2:20 AM, "Hugo Wau" wrote: > > I will not change the screen-size, nor will I reduce audio quality. Just a bit more compression, a bit less video quality - if necessary - to make the resulting video fit the media. (4.9GB -->> 4.5GB) > then you should remove -sameq and add -b:v to set the bitrate. from my experience with mencoder, -qcomp is used to balance how bitrate will be used between high motion and still image, and extremely usefull with two pass encoding. -qcomp doesn't have effect on resulting size, but resulting quality. From bobm-ffmpeg at burner.com Sun Sep 23 05:43:55 2012 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Sat, 22 Sep 2012 21:43:55 -0600 Subject: [FFmpeg-user] ProRes Quicktimes with audio not playing back reliably In-Reply-To: References: <505E19C1.3000201@burner.com> Message-ID: <505E857B.2070108@burner.com> > Does it work if you use another audio codec? > (aac with high bitrate) Ah - forgot to finish testing that the other night as well (I was getting errors about AAC being 'experimental' and then got sidetracked on something else.) But no, AAC doesn't work, nor does MP3.. still get glitchy playback/dropped frames. For fun I also tried still using PCM and changing the bit depth and sample rate to no avail; pcm_s24le at 48khz is still not good, pcm_s16le at 44.1khz is still not good, etc. Back on the video front, I tried MJPEG as suggested by Thomas which works fine, and I also just did DNxHD and it plays fine as well. So it seems to be something with Prores specifically. | Bob Maple | | When love is gone, there's always justice. And when justice is gone, | there's always force. And when force is gone, there's always Mom. | Hi, Mom! -Laurie Anderson From pyprog05 at gmail.com Sun Sep 23 15:02:50 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 23 Sep 2012 15:02:50 +0200 Subject: [FFmpeg-user] FFmpeg syntax for Youtube specs (help) Message-ID: Hi all, Here are the specs of Youtube (sorry in french): http://support.google.com/youtube/bin/static.py?hl=fr&guide=1728585&topic=1728573&page=guide.cs I would consider anything that is recommended in this link (for 1080p, 720p, 480p, 360p and 240p). Here is an example with FFmpeg (720p specs) : /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/home/toto/blender/dronez.MOV" -f mp4 -c:v libx264 -b:v 5000k -vf scale=1280:720 -aspect 16:9 -c:a libvo_aacenc -b:a 384k -y "/home/toto/a/nouv_EKD/video/version_3/transcodage_vid?o/23_09_12_essai_nouveau_h264_mpeg4_avec_du_mov.mp4" The result is good but if it can be better (and in accordance with the recommendations of Youtube) ... A question, what's that: D?bit audio 5.1 ?, How to include it in the FFmpeg syntax? Thanks in advance. a+ PS; my FFmpeg version: ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From pyprog05 at gmail.com Sun Sep 23 15:02:50 2012 From: pyprog05 at gmail.com (PyProg PyProg) Date: Sun, 23 Sep 2012 15:02:50 +0200 Subject: [FFmpeg-user] FFmpeg syntax for Youtube specs (help) Message-ID: Hi all, Here are the specs of Youtube (sorry in french): http://support.google.com/youtube/bin/static.py?hl=fr&guide=1728585&topic=1728573&page=guide.cs I would consider anything that is recommended in this link (for 1080p, 720p, 480p, 360p and 240p). Here is an example with FFmpeg (720p specs) : /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i "/home/toto/blender/dronez.MOV" -f mp4 -c:v libx264 -b:v 5000k -vf scale=1280:720 -aspect 16:9 -c:a libvo_aacenc -b:a 384k -y "/home/toto/a/nouv_EKD/video/version_3/transcodage_vid?o/23_09_12_essai_nouveau_h264_mpeg4_avec_du_mov.mp4" The result is good but if it can be better (and in accordance with the recommendations of Youtube) ... A question, what's that: D?bit audio 5.1 ?, How to include it in the FFmpeg syntax? Thanks in advance. a+ PS; my FFmpeg version: ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1) -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter From gabri.ns at gmail.com Sun Sep 23 16:03:14 2012 From: gabri.ns at gmail.com (Gabri Nurtinaz Shally) Date: Sun, 23 Sep 2012 21:03:14 +0700 Subject: [FFmpeg-user] FFmpeg syntax for Youtube specs (help) In-Reply-To: References: Message-ID: On Sep 23, 2012 8:03 PM, "PyProg PyProg" wrote: > > Hi all, > > Here are the specs of Youtube (sorry in french): > > http://support.google.com/youtube/bin/static.py?hl=fr&guide=1728585&topic=1728573&page=guide.cs > > A question, what's that: D?bit audio 5.1 ?, How to include it in the > FFmpeg syntax? > i'm not a france, but i think debit= bitrate, for 5.1 channel audio. if your video is a home made, then you don't need to think about it, since usually it is a mono or stereo. From hugowau at gmx.net Sun Sep 23 17:51:09 2012 From: hugowau at gmx.net (Hugo Wau) Date: Sun, 23 Sep 2012 17:51:09 +0200 Subject: [FFmpeg-user] -qcomp 0.8 with no effect In-Reply-To: References: <505DF6AF.5080103@gmx.net> <505E0E93.5080205@gmx.net> Message-ID: <505F2FED.6050701@gmx.net> Hello Gabri Nurtinaz Shally, Hello Carl, On 23.09.2012 03:51, Gabri Nurtinaz Shally wrote: > On Sep 23, 2012 2:20 AM, "Hugo Wau" wrote: > >> I will not change the screen-size, nor will I reduce audio quality. Just >> > a bit more compression, a bit less video quality - if necessary - to make > the resulting video fit the media. (4.9GB -->> 4.5GB) > >> > then you should remove -sameq and add -b:v to set the bitrate. > > from my experience with mencoder, -qcomp is used to balance how bitrate > will be used between high motion and still image, and extremely usefull > with two pass encoding. -qcomp doesn't have effect on resulting size, but > resulting quality. > _______________________________________ > Well, nevertheless it works for me now, I just reduced the size of the video, which with -sameq (CARL, WHAT DOES THIS REALLY MEAN - IF IT IS NOT SAME QUALITY?) and without -qcomp was 4.9 GB -- reduced to 4.0 GB, when "-fs 4500M" just had truncated the end of the video, which was not desirable. with kind regards Hugo From cehoyos at ag.or.at Sun Sep 23 18:16:55 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 23 Sep 2012 16:16:55 +0000 (UTC) Subject: [FFmpeg-user] -qcomp 0.8 with no effect References: <505DF6AF.5080103@gmx.net> <505E0E93.5080205@gmx.net> <505F2FED.6050701@gmx.net> Message-ID: Hugo Wau gmx.net> writes: > > then you should remove -sameq and add -b:v to set the bitrate. > > > > from my experience with mencoder, -qcomp is used to balance how bitrate > > will be used between high motion and still image, and extremely usefull > > with two pass encoding. -qcomp doesn't have effect on resulting size, but > > resulting quality. > > > Well, nevertheless it works for me now, I just reduced the size of the > video, which with -sameq (CARL, WHAT DOES THIS REALLY MEAN - IF IT IS > NOT SAME QUALITY?) Please do not shout;-) It means same quantiser (which in your case is definitely not same quality). As correctly explained, -qcomp should be used to affect the rate control in two-pass mode. That it also affects one-pass encoding is probably not unintended, but i'd say you abuse the option (to your disadvantage). The correct way for you to achieve what you want is to calculate a video bit-rate (you know the length of the video and the audio size), and use two-pass encoding to reach the desired file size. (If you are not completely happy with the result, you can use -qcomp to change the quality distribution.) Carl Eugen From meino.cramer at gmx.de Sun Sep 23 19:57:18 2012 From: meino.cramer at gmx.de (meino.cramer at gmx.de) Date: Sun, 23 Sep 2012 19:57:18 +0200 Subject: [FFmpeg-user] Problems to rescale video for a specific hardware (Beaglebone) Message-ID: <20120923175718.GA29876@solfire> Hi, (using a recent Gentoo Linux on a AMD64 system) the second half of this sunday I have spent searching the net and testing what I have found ... unfortunately without success. I have a piece of video recorded from a DVB-T receiver. ffprobe shows this information about the file: ffprobe version 0.10.3 Copyright (c) 2007-2012 the FFmpeg developers built on Jun 17 2012 20:02:03 with gcc 4.5.3 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe -msse3' --extra-cflags='-march=native -O2 -pipe -msse3' --extra-cxxflags='-march=native -O2 -pipe -msse3' --disable-static --enable-gpl --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --enable-libmp3lame --enable-libvorbis --disable-indev=v4l --disable-indev=oss --enable-x11grab --disable-outdev=oss --enable-libopenjpeg --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmx2 --disable-ssse3 --disable-vis --disable-neon --cpu=host --enable-hardcoded-tables 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 [mpeg @ 0x19693e0] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from 'Record.mpg': Duration: 02:28:56.72, start: 0.264656, bitrate: 3159 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 2072 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s My desktop PC is able to play this video without any problems. But I want also check, whether my Beaglebone (OMAP35x) single board computer is capable of playing the video. The display has 800x480 pixel with 16 bit colordepth. With only a little stuttering using mplayer -vo x11 Video.mpg it is possible to play the video. But: The video does not fit onto the screen and has the wrong aspect ration... "egghead syndrome"... (I currently have no ffmpeg combo on the Beaglebone available since it does not compile natively on it due to too less memory). There is currently no hardware acceleration available on the board. My plan is to resize the video to have 16:9 aspect ration (no anamorphic...that is the pixel are quare sized with equal x and y length) and downscaled to fit the screen size. The process should neither create a video in much lower quality nor should the file soze explode. I tried things like ffmpeg -vf scale=-1:480 -i ffmpeg -vf scale=-1:480 -qscale -i with =1...4 I also tried to use "-setdar 16:9" which is documented on the net but not accepted by my ffmpeg. Regardless what I am doing the resulting video is blown in size and/or has crippled quality but it is always suffering from the egghead syndrome when played on the beaglebone. What I am doing so badly wrong here and why does all the stuff from the net not work for me ? Any help is very appreciated! Thank you very much in advance! Best regards, mcc From kite at interia.pl Sun Sep 23 20:18:10 2012 From: kite at interia.pl (Krzysztof) Date: Sun, 23 Sep 2012 18:18:10 +0000 (UTC) Subject: [FFmpeg-user] Strange newline character in mkv subtitles References: <20120921054218.GH25813@leki> <20120922140939.GQ25813@leki> Message-ID: On Sat, 22 Sep 2012 16:09:40 +0200, Cl?ment B?sch wrote: >> The original srt is there: http://napisy.info/napisy_info_45924_SRT.zip > > "Konwersja wymaga parametru FPS" > > No idea what that means. Sorry, here's the right URL: http://napisy.info/napisy_info_45924_SRT_23.98_23.98.zip From cehoyos at ag.or.at Sun Sep 23 20:53:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 23 Sep 2012 18:53:40 +0000 (UTC) Subject: [FFmpeg-user] Problems to rescale video for a specific hardware (Beaglebone) References: <20120923175718.GA29876@solfire> Message-ID: gmx.de> writes: > With only a little stuttering using > > mplayer -vo x11 Video.mpg Is there no other vo working for this hardware? x11 does not support hardware scaling and does not allow a decent playback performance. > it is possible to play the video. > > But: The video does not fit onto the screen and has the wrong aspect > ration... "egghead syndrome"... > > (I currently have no ffmpeg combo on the Beaglebone available since it > does not compile natively on it due to too less memory). It should be easy to disable some features that you don't need. [...] > I also tried to use "-setdar 16:9" which is documented where? > on the net but not accepted by my ffmpeg. (Command line and complete, uncut console output missing.) Please see http://ffmpeg.org/ffmpeg.html#setdar_002c-setsar All filters need -vf filtername=value Carl Eugen From hugowau at gmx.net Sun Sep 23 23:38:47 2012 From: hugowau at gmx.net (Hugo Wau) Date: Sun, 23 Sep 2012 23:38:47 +0200 Subject: [FFmpeg-user] -qcomp 0.8 with no effect In-Reply-To: References: <505DF6AF.5080103@gmx.net> <505E0E93.5080205@gmx.net> <505F2FED.6050701@gmx.net> Message-ID: <505F8167.4090201@gmx.net> Hello Carl Eugen, On 23.09.2012 18:16, Carl Eugen Hoyos wrote: > Hugo Wau gmx.net> writes: > > >>> then you should remove -sameq and add -b:v to set the bitrate. >>> >>> from my experience with mencoder, -qcomp is used to balance how bitrate >>> will be used between high motion and still image, and extremely usefull >>> with two pass encoding. -qcomp doesn't have effect on resulting size, but >>> resulting quality. >>> >>> >> Well, nevertheless it works for me now, I just reduced the size of the >> video, which with -sameq (CARL, WHAT DOES THIS REALLY MEAN - IF IT IS >> NOT SAME QUALITY?) >> > Please do not shout;-) > It means same quantiser (which in your case is > definitely not same quality). > > As correctly explained, -qcomp should be used to affect > the rate control in two-pass mode. That it also affects > one-pass encoding is probably not unintended, but i'd > say you abuse the option (to your disadvantage). > > The correct way for you to achieve what you want is to > calculate a video bit-rate (you know the length of the > video and the audio size), and use two-pass encoding to > reach the desired file size. > (If you are not completely happy with the result, you > can use -qcomp to change the quality distribution.) > > Carl Eugen > Thank you for your explanation. This sounds like an intelligent solution. My image size is 720 x 576, the fps rate is 25, so, I should have 10,368,000 pixels per second. Yet I don't know the number of bits to use for the color. And even if, what would the ffmpeg command-line look like for this two-pass method? With kind regards, Hugo From simon at j1s.es Mon Sep 24 01:47:08 2012 From: simon at j1s.es (=?UTF-8?B?SjEgU2ltw7Nu?=) Date: Mon, 24 Sep 2012 01:47:08 +0200 Subject: [FFmpeg-user] error to compile ffmpeg git version Message-ID: <505F9F7C.6000405@j1s.es> Hi, I'm trying to compile ffmpeg git version on Ubuntu 12.04 64 bits following these instructions: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide , but it fails the ffmpeg compilation. The unique differences are: * I have configured x264 with "--enable-static --enable-shared" * I have configured fdk-aac without "--disable-shared" * I have configured ffmpeg with "--enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 *--enable-shared --disable-ffserver --disable-ffplay --disable-ffprobe*" But the compilation fails. I attach the "config.log" and the output of make in "ffmpeg-make.log". Thanks for your help. Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log.tar.bz2 Type: application/octet-stream Size: 25926 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-make.log.tar.bz2 Type: application/octet-stream Size: 15198 bytes Desc: not available URL: From cehoyos at ag.or.at Mon Sep 24 01:48:44 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 23 Sep 2012 23:48:44 +0000 (UTC) Subject: [FFmpeg-user] error to compile ffmpeg git version References: <505F9F7C.6000405@j1s.es> Message-ID: J1 Sim?n j1s.es> writes: > But the compilation fails. Then please run make, run make again, than run "make V=1" and post the complete, uncut output of the last run here. Carl Eugen From simon at j1s.es Mon Sep 24 02:03:39 2012 From: simon at j1s.es (=?UTF-8?B?SjEgU2ltw7Nu?=) Date: Mon, 24 Sep 2012 02:03:39 +0200 Subject: [FFmpeg-user] error to compile ffmpeg git version In-Reply-To: References: <505F9F7C.6000405@j1s.es> Message-ID: <505FA35B.8060503@j1s.es> El 24/09/12 01:48, Carl Eugen Hoyos escribi?: > J1 Sim?n j1s.es> writes: > >> But the compilation fails. > Then please run make, run make again, than run "make V=1" > and post the complete, uncut output of the last run here. > > Carl Eugen I attach the output of "make V=1". Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-make.log.tar.bz2 Type: application/octet-stream Size: 5775 bytes Desc: not available URL: From meino.cramer at gmx.de Mon Sep 24 05:03:19 2012 From: meino.cramer at gmx.de (meino.cramer at gmx.de) Date: Mon, 24 Sep 2012 05:03:19 +0200 Subject: [FFmpeg-user] Problems to rescale video for a specific hardware (Beaglebone) In-Reply-To: References: <20120923175718.GA29876@solfire> Message-ID: <20120924030319.GA3498@solfire> Hi Carl Carl Eugen Hoyos [12-09-24 04:34]: > gmx.de> writes: > > > With only a little stuttering using > > > > mplayer -vo x11 Video.mpg > > Is there no other vo working for this hardware? > x11 does not support hardware scaling and does not > allow a decent playback performance. No currently not. I am trying to setup the kernel, which needs some internal patching, to support TIs firmware blob and the adapted dss2/omaplfb drivers, but....that will take time. I know that -vo x11 is not the way to go, which drives me back to my initial question: How can I rescale the video, that it is no longer anamorphic and the pixels are square (equal length for x and y)? > > it is possible to play the video. > > > > But: The video does not fit onto the screen and has the wrong aspect > > ration... "egghead syndrome"... > > > > (I currently have no ffmpeg combo on the Beaglebone available since it > > does not compile natively on it due to too less memory). > > It should be easy to disable some features that you don't need. I didnt run more than the kernel and its modules and a console. It was the first step I tried.... > [...] > > > I also tried to use "-setdar 16:9" which is documented > > where? > > > on the net on the net > but not accepted by my ffmpeg. > > (Command line and complete, uncut console output missing.) > > Please see http://ffmpeg.org/ffmpeg.html#setdar_002c-setsar > All filters need -vf filtername=value I will try it again and post the results here. Will this option results in the solution for my problems? (See question above). > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Meino Cramer From nichot20 at yahoo.com Mon Sep 24 09:30:34 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 24 Sep 2012 08:30:34 +0100 Subject: [FFmpeg-user] ProRes Quicktimes with audio not playing back reliably In-Reply-To: <505E857B.2070108@burner.com> References: <505E19C1.3000201@burner.com> <505E857B.2070108@burner.com> Message-ID: <50600C1A.6050302@yahoo.com> On 23/09/12 04:43, Bob Maple wrote: >> Does it work if you use another audio codec? >> (aac with high bitrate) > > Ah - forgot to finish testing that the other night as well (I was > getting errors about AAC being 'experimental' and then got sidetracked > on something else.) > > But no, AAC doesn't work, nor does MP3.. still get glitchy > playback/dropped frames. > > For fun I also tried still using PCM and changing the bit depth and > sample rate to no avail; pcm_s24le at 48khz is still not good, > pcm_s16le at 44.1khz is still not good, etc. > > Back on the video front, I tried MJPEG as suggested by Thomas which > works fine, and I also just did DNxHD and it plays fine as well. So it > seems to be something with Prores specifically. > I can confirm that on playing back some recent ProRes files in QT player 7 I was seeing random picture freezing/jumping with audio playing smoothly, which, if you stopped and went back over the same material did not occur/occurred in a different place. I was putting this down to pulling the files over the network until I saw this thread.... My coding parameters were:- ffmpeg version N-44123-g5d55830 -c:v prores -profile:v 3 \ -c:a copy \ (Audio was 4 streams of pcm_s24be) > > | Bob Maple > [..] -- Tim From nichot20 at yahoo.com Mon Sep 24 09:34:21 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 24 Sep 2012 08:34:21 +0100 Subject: [FFmpeg-user] [Bulk] FFmpeg syntax for Youtube specs (help) In-Reply-To: References: Message-ID: <50600CFD.3000400@yahoo.com> On 23/09/12 14:02, PyProg PyProg wrote: > Hi all, > > Here are the specs of Youtube (sorry in french): > > http://support.google.com/youtube/bin/static.py?hl=fr&guide=1728585&topic=1728573&page=guide.cs The english link is:- http://support.google.com/youtube/bin/static.py?hl=en&guide=1728585&topic=1728573&page=guide.cs (just change the fr to en in "....?hl=fr&....") > [..] -- Tim From lingjiujianke at gmail.com Mon Sep 24 10:08:37 2012 From: lingjiujianke at gmail.com (Steven Liu) Date: Mon, 24 Sep 2012 16:08:37 +0800 Subject: [FFmpeg-user] Can ffmpeg transcode from mp4(h264/aac) to ts parallel Message-ID: Hi All, I want to transcode multimedia from mp4 to ts. I have one file named "a.mp4", it's video codec is "h264" audio codec is "aac" duration time is "00:03:00.000" I have three computer, I want to transcode the a.mp4 to ts use the three computer. three computer name: serv1 , serv2 , serv3 I want to transcode the a.mp4 on serv1, serv2,serv3. serv1 transcode a.mp4 00:00:00.000 - 00:01:00.000 to a-1.ts serv2 transcode a.mp4 00:01:00.000 - 00:02:00.000 to a-2.ts serv3 transcode a.mp4 00:02:00.000 - 00:03:00.000 to a-3.ts which auguments can do it like this? I have try it like this, but it have pts/pcr error when i play the m3u8 on VLC The error message is bellow: main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 0 from stream 0 main debug: creating access 'http' location='192.168.0.105/test/b1.ts', path='\\192.168.0.105\test\b1.ts' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/b1.ts' main debug: net: connecting to 192.168.0.105 port 80 main debug: connection succeeded (socket = 1352) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=7007512 access_http debug: Connection: close access_http debug: stream size=7007512,pos=0,remaining=7007512 main debug: using access module "access_http" main debug: TIMER module_need() : 19.088 ms - Total 19.088 ms / 1 intvls (Avg 19.088 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 1024 bytes in 0s - 2369 KiB/s main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 1 from stream 0 main debug: using stream_filter module "stream_filter_httplive" main debug: TIMER module_need() : 8758.966 ms - Total 8758.966 ms / 1 intvls (Avg 8758.966 ms) main debug: Inserted a stream filter main debug: creating access 'http' location='192.168.0.105/test/b2.ts', path='\\192.168.0.105\test\b2.ts' main debug: looking for stream_filter module: 4 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.320 ms - Total 0.320 ms / 1 intvls (Avg 0.320 ms) main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/b2.ts' main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.276 ms - Total 0.276 ms / 1 intvls (Avg 0.276 ms) main debug: creating demux: access='http' demux='' location='192.168.0.105/test/a.m3u8.ts' file='\\192.168.0.105\test\a.m3u8.ts' main debug: looking for demux module: 55 candidates main debug: net: connecting to 192.168.0.105 port 80 stream_filter_httplive info: playing segment 0 from stream 0 ts debug: PATCallBack called ts debug: new PAT ts_id=1 version=0 current_next=1 ts debug: * number=1 pid=4096 ts debug: PMTCallBack called ts debug: new PMT program number=1 version=0 pid_pcr=256 ts debug: * es pid=256 type=27 fcc=h264 main debug: selecting program id=1 ts error: MPEG-4 descriptor not found ts debug: * es pid=257 type=15 fcc=mp4a main debug: using demux module "ts" main debug: TIMER module_need() : 12.891 ms - Total 12.891 ms / 1 intvls (Avg 12.891 ms) main debug: looking for decoder module: 31 candidates main debug: connection succeeded (socket = 1380) avcodec debug: libavcodec initialized (interface 0x361100) avcodec debug: trying to use direct rendering avcodec debug: allowing 4 thread(s) for decoding avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started avcodec debug: using frame thread mode with 4 threads main debug: using decoder module "avcodec" main debug: TIMER module_need() : 5.406 ms - Total 5.406 ms / 1 intvls (Avg 5.406 ms) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_h264" main debug: TIMER module_need() : 1.416 ms - Total 1.416 ms / 1 intvls (Avg 1.416 ms) main debug: looking for decoder module: 31 candidates main debug: using decoder module "faad" main debug: TIMER module_need() : 0.168 ms - Total 0.168 ms / 1 intvls (Avg 0.168 ms) main debug: looking for packetizer module: 21 candidates packetizer_mpeg4audio debug: running MPEG4 audio packetizer packetizer_mpeg4audio debug: no decoder specific info, must be an ADTS or LOAS stream main debug: using packetizer module "packetizer_mpeg4audio" main debug: TIMER module_need() : 0.096 ms - Total 0.096 ms / 1 intvls (Avg 0.096 ms) ts debug: DEMUX_SET_GROUP 0 00000000 main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\LiuQi\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 0.810 ms - Total 0.810 ms / 1 intvls (Avg 0.810 ms) main debug: `http://192.168.0.105/test/a.m3u8' successfully opened main debug: Buffering 0% main debug: Buffering 6% packetizer_h264 debug: found NAL_SPS (sps_id=0) main debug: Buffering 13% packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0) main debug: Buffering 20% ts debug: PSINewTableCallBack: table 0x42(66) ext=0x1(1) ts debug: SDTCallBack called ts debug: new SDT ts_id=1 version=0 current_next=1 network_id=1 ts debug: * service id=1 eit schedule=0 present=0 running=4 free_ca=0 ts debug: - type=1 provider=FFmpeg name=Service01 main debug: EsOutProgramMeta: number=1 main debug: Buffering 26% main debug: Buffering 33% main debug: looking for text renderer module: 2 candidates main debug: Buffering 40% main debug: Buffering 46% main debug: Buffering 53% main debug: Buffering 60% main debug: Buffering 66% packetizer_mpeg4audio debug: detected ADTS format packetizer_mpeg4audio info: AAC channels: 2 samplerate: 48000 faad warning: decoded zero sample freetype debug: Using Arial as font from file C:\windows\Fonts\arial.ttf main debug: Buffering 73% main debug: Buffering 80% main debug: Buffering 86% freetype debug: using fontsize: 2 main debug: Buffering 93% main debug: using text renderer module "freetype" main debug: TIMER module_need() : 1.511 ms - Total 1.511 ms / 1 intvls (Avg 1.511 ms) main debug: Buffering 100% main debug: looking for video filter2 module: 18 candidates main debug: Stream buffering done (1066 ms in 2 ms) swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 0.946 ms - Total 0.946 ms / 1 intvls (Avg 0.946 ms) main debug: looking for video filter2 module: 18 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 1.856 ms - Total 1.856 ms / 1 intvls (Avg 1.856 ms) main debug: Deinterlacing available main debug: deinterlace 0, mode blend, is_needed 0 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=8637284 access_http debug: Connection: close access_http debug: stream size=8637284,pos=0,remaining=8637284 main debug: using access module "access_http" main debug: TIMER module_need() : 31.442 ms - Total 31.442 ms / 1 intvls (Avg 31.442 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: Opening vout display wrapper main debug: looking for vout display module: 6 candidates main debug: received first data after 9 ms main debug: pre-buffering done 1024 bytes in 0s - 107 KiB/s direct3d debug: creating Vout EventThread direct3d debug: DirectXCreateWindow main debug: looking for vout window hwnd module: 2 candidates qt4 debug: requesting video... qt4 debug: Video was requested 0, 0 main debug: using vout window hwnd module "qt4" main debug: TIMER module_need() : 94.845 ms - Total 94.845 ms / 1 intvls (Avg 94.845 ms) direct3d debug: created video sub-window direct3d debug: Vout EventThread running direct3d debug: disabling screen saver direct3d debug: Direct3d Device: Mobile Intel(R) HD Graphics 32902 294 9 main debug: VoutDisplayEvent 'resize' 1296x758 window direct3d warning: trying surface pixel format: YV12 direct3d debug: selected surface pixel format is YV12 direct3d debug: Using D3DTEXF_LINEAR for minification direct3d debug: Using D3DTEXF_LINEAR for magnification direct3d debug: Direct3D scene created successfully direct3d debug: Direct3D device adapter successfully initialized main debug: using vout display module "direct3d" main debug: TIMER module_need() : 158.903 ms - Total 158.903 ms / 1 intvls (Avg 158.903 ms) main debug: original format sz 1280x720, of (0,0), vsz 1280x720, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: removing module "freetype" main debug: looking for text renderer module: 2 candidates freetype debug: Using Arial as font from file C:\windows\Fonts\arial.ttf freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 1.154 ms - Total 1.154 ms / 1 intvls (Avg 1.154 ms) avcodec debug: using direct rendering main debug: creating audio output main debug: looking for audio output module: 2 candidates aout_directx debug: Opening DirectSound Audio Output main debug: End of video preroll main debug: VoutDisplayEvent 'resize' 1366x631 window main debug: Received first picture direct3d debug: Created 656x47 texture for OSD aout_directx debug: found device: ??????? aout_directx debug: found device: ???/?? (IDT High Definition Audio CODEC) aout_directx debug: found device: ???? (IDT High Definition Audio CODEC) main debug: Post-processing available aout_directx debug: device supports 2 channels (DEFAULT!) aout_directx debug: device supports 1 channel aout_directx debug: Windows says your SpeakerConfig is stereo aout_directx debug: creating DirectSoundThread main debug: using audio output module "aout_directx" main debug: TIMER module_need() : 64.265 ms - Total 64.265 ms / 1 intvls (Avg 64.265 ms) aout_directx debug: DirectSoundThread ready main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'f32l'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 14 candidates audio_format debug: f32l->s16l, bits per sample: 32->16 main debug: using audio filter module "audio_format" main debug: TIMER module_need() : 2.314 ms - Total 2.314 ms / 1 intvls (Avg 2.314 ms) main debug: conversion pipeline completed main debug: looking for audio mixer module: 2 candidates main debug: using audio mixer module "float32_mixer" main debug: TIMER module_need() : 0.314 ms - Total 0.314 ms / 1 intvls (Avg 0.314 ms) main debug: input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes main debug: looking for audio filter module: 1 candidate scaletempo debug: format: 48000 rate, 2 nch, 4 bps, fl32 scaletempo debug: params: 30 stride, 0.200 overlap, 14 search scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode main debug: using audio filter module "scaletempo" main debug: TIMER module_need() : 0.514 ms - Total 0.514 ms / 1 intvls (Avg 0.514 ms) main debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo main debug: conversion pipeline completed main debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo main debug: conversion pipeline completed main debug: filter(s) 'f32l'->'f32l' 52800 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 14 candidates main debug: using audio filter module "samplerate" main debug: TIMER module_need() : 0.198 ms - Total 0.198 ms / 1 intvls (Avg 0.198 ms) main debug: conversion pipeline completed main debug: End of audio preroll main debug: Decoder buffering done in 260 ms main warning: audio output out of sync, adjusting dates (61405 us) main debug: auto hiding mouse cursor main debug: picture might be displayed late (missing 0 ms) main warning: not synchronized (61408 us), resampling main warning: buffer too late (60991), up-sampling main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 2 from stream 0 main debug: creating access 'http' location='192.168.0.105/test/test-3.ts', path='\\192.168.0.105\test\test-3.ts' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/test-3.ts' main debug: net: connecting to 192.168.0.105 port 80 main debug: connection succeeded (socket = 1388) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=867432 access_http debug: Connection: close access_http debug: stream size=867432,pos=0,remaining=867432 main debug: using access module "access_http" main debug: TIMER module_need() : 34.979 ms - Total 34.979 ms / 1 intvls (Avg 34.979 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 3 ms main debug: pre-buffering done 1024 bytes in 0s - 281 KiB/s main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 3 from stream 0 main debug: creating access 'http' location='192.168.0.105/test/test-4.ts', path='\\192.168.0.105\test\test-4.ts' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/test-4.ts' main debug: net: connecting to 192.168.0.105 port 80 main debug: connection succeeded (socket = 1380) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=669656 access_http debug: Connection: close access_http debug: stream size=669656,pos=0,remaining=669656 main debug: using access module "access_http" main debug: TIMER module_need() : 17.322 ms - Total 17.322 ms / 1 intvls (Avg 17.322 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 9 ms main debug: pre-buffering done 1024 bytes in 0s - 108 KiB/s main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 4 from stream 0 main debug: creating access 'http' location='192.168.0.105/test/test-5.ts', path='\\192.168.0.105\test\test-5.ts' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/test-5.ts' main debug: net: connecting to 192.168.0.105 port 80 main debug: connection succeeded (socket = 1388) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=725680 access_http debug: Connection: close access_http debug: stream size=725680,pos=0,remaining=725680 main debug: using access module "access_http" main debug: TIMER module_need() : 22.287 ms - Total 22.287 ms / 1 intvls (Avg 22.287 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 2 ms main debug: pre-buffering done 1024 bytes in 0s - 449 KiB/s main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 5 from stream 0 main debug: creating access 'http' location='192.168.0.105/test/test-6.ts', path='\\192.168.0.105\test\test-6.ts' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/test-6.ts' main debug: net: connecting to 192.168.0.105 port 80 main debug: connection succeeded (socket = 1380) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=607992 access_http debug: Connection: close access_http debug: stream size=607992,pos=0,remaining=607992 main debug: using access module "access_http" main debug: TIMER module_need() : 13.225 ms - Total 13.225 ms / 1 intvls (Avg 13.225 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 2 ms main debug: pre-buffering done 1024 bytes in 0s - 426 KiB/s main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 6 from stream 0 stream_filter_httplive info: playing segment 1 from stream 0 main debug: creating access 'http' location='192.168.0.105/test/test-7.ts', path='\\192.168.0.105\test\test-7.ts' ts debug: SDTCallBack called ts debug: PATCallBack called ts debug: PMTCallBack called ts warning: discontinuity received 0x0 instead of 0x6 (pid=256) main warning: clock gap, unexpected stream discontinuity main warning: feeding synchro with a new reference point trying to recover from clock gap main warning: PTS is out of range (95430825822), dropping buffer main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.0.105' port=80 file='/test/test-7.ts' main warning: PTS is out of range (95430805581), dropping buffer main warning: PTS is out of range (95430785356), dropping buffer main warning: PTS is out of range (95430765040), dropping buffer main warning: PTS is out of range (95430744653), dropping buffer main debug: net: connecting to 192.168.0.105 port 80 main warning: PTS is out of range (95430724333), dropping buffer main warning: PTS is out of range (95430703990), dropping buffer main warning: PTS is out of range (95430683701), dropping buffer main warning: PTS is out of range (95430663407), dropping buffer main debug: connection succeeded (socket = 1360) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=1007116 access_http debug: Connection: close access_http debug: stream size=1007116,pos=0,remaining=1007116 main debug: using access module "access_http" main debug: TIMER module_need() : 32.422 ms - Total 32.422 ms / 1 intvls (Avg 32.422 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 1024 bytes in 0s - 1253 KiB/s ts warning: discontinuity received 0x0 instead of 0x8 (pid=257) packetizer_mpeg4audio debug: emulated sync word (no sync on following frame) packetizer_mpeg4audio debug: detected LOAS format main warning: PTS is out of range (95430973027), dropping buffer main warning: PTS is out of range (95442030202), dropping buffer main warning: PTS is out of range (95442009913), dropping buffer main warning: PTS is out of range (95441989597), dropping buffer main warning: PTS is out of range (95441969275), dropping buffer main warning: PTS is out of range (95441948949), dropping buffer main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 7 from stream 0 main warning: PTS is out of range (95442051547), dropping buffer main warning: clock gap, unexpected stream discontinuity main warning: feeding synchro with a new reference point trying to recover from clock gap main warning: picture is too late to be displayed (missing 95432419 ms) main warning: picture is too late to be displayed (missing 95432352 ms) main warning: picture is too late to be displayed (missing 95432286 ms) main warning: picture is too late to be displayed (missing 95432219 ms) main warning: picture is too late to be displayed (missing 95432152 ms) main debug: creating access 'http' location='192.168.0.105/test/test-8.ts', path='\\192.168.0.105\test\test-8.ts' stream_filter_httplive info: playing segment 2 from stream 0 ts debug: PATCallBack called ts debug: PMTCallBack called main warning: clock gap, unexpected stream discontinuity main warning: feeding synchro with a new reference point trying to recover from clock gap main debug: looking for access module: 2 candidates main warning: PTS is out of range (95422178030), dropping buffer access_http debug: http: server='192.168.0.105' port=80 file='/test/test-8.ts' main warning: PTS is out of range (95422157812), dropping buffer main warning: PTS is out of range (95422137590), dropping buffer main warning: PTS is out of range (95422117248), dropping buffer main warning: PTS is out of range (95422096826), dropping buffer main warning: PTS is out of range (95422076377), dropping buffer main debug: net: connecting to 192.168.0.105 port 80 main warning: PTS is out of range (95422055896), dropping buffer main debug: connection succeeded (socket = 1960) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Server: zehttpd/1.2.0 access_http debug: Content-Type: video/MP2T access_http debug: this frame size=756888 access_http debug: Connection: close access_http debug: stream size=756888,pos=0,remaining=756888 main debug: using access module "access_http" main debug: TIMER module_need() : 27.756 ms - Total 27.756 ms / 1 intvls (Avg 27.756 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 1 ms main debug: pre-buffering done 1024 bytes in 0s - 695 KiB/s main warning: PTS is out of range (95422463023), dropping buffer main debug: removing module "access_http" stream_filter_httplive info: downloaded segment 8 from stream 0 main warning: clock gap, unexpected stream discontinuity main warning: feeding synchro with a new reference point trying to recover from clock gap main warning: received buffer in the future main warning: buffer too late (174660), up-sampling main warning: picture is too late to be displayed (missing 95423820 ms) main warning: picture is too late to be displayed (missing 95423753 ms) main warning: picture is too late to be displayed (missing 95423687 ms) main warning: picture is too late to be displayed (missing 95423620 ms) main warning: picture is too late to be displayed (missing 95423553 ms) Best Regards From blacktrash at gmx.net Mon Sep 24 12:56:25 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 24 Sep 2012 11:56:25 +0100 Subject: [FFmpeg-user] [Bulk] FFmpeg syntax for Youtube specs (help) In-Reply-To: <50600CFD.3000400@yahoo.com> References: <50600CFD.3000400@yahoo.com> Message-ID: <20120924105625.GD61805@krille.blacktrash.org> * Tim Nicholson on Monday, September 24, 2012 at 08:34:21 +0100 > The english link is:- > http://support.google.com/youtube/bin/static.py?hl=en&guide=1728585&topic=1728573&page=guide.cs | Closed GOP. GOP of half the frame rate. Half the frame rate? keyint=12 for 25 fps? Or do they mean half the frame rate in seconds, i.e. keyint=125 for 25 fps? -- \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 fatemeh.bagherpour at gmail.com Mon Sep 24 13:29:10 2012 From: fatemeh.bagherpour at gmail.com (fb) Date: Mon, 24 Sep 2012 04:29:10 -0700 (PDT) Subject: [FFmpeg-user] Audio lost after a while in live streaming Message-ID: <1348486150018-4653651.post@n4.nabble.com> Hi I'm using ffmpeg to stream DVB-T signals through a LAN. Every things seems OK till audio lost suddenly! as I read the logs, I guess the error that causes this problem is: "Error while decoding stream #0:1: Invalid data found when processing input" - Is it true? - What is the reason? - What is the solution? ---------------------------------- ffmpeg -i ch6 -sameq -vcodec libx264 -v:b 256 -ar 44100 -f flv -vf yadif=1:0:1 -loglevel error rtmp://sth [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS referenced [h264 @ 0x9c4abc0] non-existing SPS 0 referenced in buffering period [h264 @ 0x9c4abc0] non-existing PPS 0 referenced [h264 @ 0x9c4abc0] decode_slice_header error [h264 @ 0x9c4abc0] no frame! [h264 @ 0xac0d9c0] Missing reference picture [h264 @ 0xac0d9c0] decode_slice_header error [h264 @ 0xac52660] Missing reference picture [h264 @ 0xacb0ce0] Missing reference picture [h264 @ 0xad0f360] Missing reference picture [h264 @ 0xad6d9e0] Missing reference picture [h264 @ 0xadcc060] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xadcc060] Missing reference picture Last message repeated 1 times [h264 @ 0xae2a6e0] mmco: unref short failure Last message repeated 1 times [h264 @ 0xae2a6e0] reference picture missing during reorder [h264 @ 0xae2a6e0] Missing reference picture [h264 @ 0xacb0ce0] Reference 2 >= 2 [h264 @ 0xacb0ce0] error while decoding MB 24 6, bytestream (3031) [h264 @ 0xad0f360] mmco: unref short failure [h264 @ 0xad0f360] reference picture missing during reorder [h264 @ 0xad0f360] Missing reference picture [aac_latm @ 0x9c4c300] channel element 3.1 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac52660] reference picture missing during reorder [h264 @ 0xac52660] Missing reference picture [h264 @ 0xad6d9e0] left block unavailable for requested intra4x4 mode -1 at 0 32 [h264 @ 0xad6d9e0] error while decoding MB 0 32, bytestream (8345) [h264 @ 0xae88d60] error while decoding MB 29 9, bytestream (-8) [h264 @ 0xad6d9e0] left block unavailable for requested intra mode at 0 22 [h264 @ 0xad6d9e0] error while decoding MB 0 22, bytestream (15597) [aac_latm @ 0x9c4c300] channel element 3.12 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xaee73e0] left block unavailable for requested intra4x4 mode -1 at 0 18 [h264 @ 0xaee73e0] error while decoding MB 0 18, bytestream (14028) [h264 @ 0xad0f360] error while decoding MB 15 24, bytestream (157) [h264 @ 0xacb0ce0] mmco: unref short failure [aac_latm @ 0x9c4c300] Pulse data corrupt or invalid. Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac0d9c0] Reference 3 >= 2 [h264 @ 0xac0d9c0] error while decoding MB 39 6, bytestream (1692) [h264 @ 0xac52660] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xac52660] decode_slice_header error [aac_latm @ 0x9c4c300] channel element 0.5 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xacb0ce0] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xacb0ce0] Missing reference picture Last message repeated 1 times [h264 @ 0xad0f360] Reference 2 >= 2 [h264 @ 0xad0f360] error while decoding MB 23 22, bytestream (47391) [h264 @ 0xad6d9e0] mmco: unref short failure [h264 @ 0xae2a6e0] mmco: unref short failure [aac_latm @ 0x9c4c300] channel element 1.5 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xaee73e0] mmco: unref short failure [aac_latm @ 0x9c4c300] Number of bands (57) exceeds limit (40). Error while decoding stream #0:1: Operation not permitted [h264 @ 0xaee73e0] left block unavailable for requested intra4x4 mode -1 at 0 6 [h264 @ 0xaee73e0] error while decoding MB 0 6, bytestream (45773) Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xacb0ce0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xacb0ce0] decode_slice_header error [h264 @ 0xad0f360] reference picture missing during reorder [h264 @ 0xad0f360] Missing reference picture [aac_latm @ 0x9c4c300] Number of bands (7) exceeds limit (6). Error while decoding stream #0:1: Operation not permitted [h264 @ 0xac52660] left block unavailable for requested intra mode at 0 18 [h264 @ 0xac52660] error while decoding MB 0 18, bytestream (18725) Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xae2a6e0] Reference 2 >= 2 [h264 @ 0xae2a6e0] error while decoding MB 31 18, bytestream (12725) [h264 @ 0xae88d60] reference picture missing during reorder [h264 @ 0xae88d60] Missing reference picture [h264 @ 0xac0d9c0] mmco: unref short failure [h264 @ 0xae88d60] Reference 5 >= 2 [h264 @ 0xae88d60] error while decoding MB 24 20, bytestream (4735) [h264 @ 0xacb0ce0] cabac decode of qscale diff failed at 17 23 [h264 @ 0xacb0ce0] error while decoding MB 17 23, bytestream (11198) [aac_latm @ 0x9c4c300] channel element 3.2 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac52660] reference picture missing during reorder [h264 @ 0xac52660] Missing reference picture [h264 @ 0xaee73e0] error while decoding MB 24 18, bytestream (-28) [h264 @ 0xae2a6e0] reference picture missing during reorder [h264 @ 0xae2a6e0] Missing reference picture [h264 @ 0xacb0ce0] left block unavailable for requested intra mode at 0 24 [h264 @ 0xacb0ce0] error while decoding MB 0 24, bytestream (16099) [h264 @ 0xad6d9e0] Reference 2 >= 2 [h264 @ 0xad6d9e0] error while decoding MB 4 6, bytestream (7872) [h264 @ 0xacb0ce0] reference picture missing during reorder [h264 @ 0xacb0ce0] Missing reference picture [h264 @ 0xad0f360] reference picture missing during reorder [h264 @ 0xad0f360] Missing reference picture [h264 @ 0xac0d9c0] Reference 2 >= 2 [h264 @ 0xac0d9c0] error while decoding MB 25 14, bytestream (402) [h264 @ 0xac52660] mmco: unref short failure [h264 @ 0xacb0ce0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xacb0ce0] decode_slice_header error [h264 @ 0xad0f360] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xad0f360] Missing reference picture Last message repeated 1 times [h264 @ 0xae2a6e0] reference picture missing during reorder [h264 @ 0xae2a6e0] Missing reference picture [aac_latm @ 0x9c4c300] channel element 1.0 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xae88d60] mmco: unref short failure [h264 @ 0xac52660] Reference 2 >= 2 [h264 @ 0xac52660] error while decoding MB 14 12, bytestream (6481) [h264 @ 0xad6d9e0] Reference 2 >= 2 [h264 @ 0xad6d9e0] error while decoding MB 38 9, bytestream (16672) [h264 @ 0xadcc060] reference picture missing during reorder [h264 @ 0xadcc060] Missing reference picture [aac_latm @ 0x9c4c300] Number of bands (52) exceeds limit (39). Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [aac_latm @ 0x9c4c300] TYPE_FIL: Input buffer exhausted before END element found Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xaee73e0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xaee73e0] decode_slice_header error [h264 @ 0xac0d9c0] reference picture missing during reorder [h264 @ 0xac0d9c0] Missing reference picture [h264 @ 0xae88d60] reference picture missing during reorder [h264 @ 0xae88d60] Missing reference picture [h264 @ 0xad0f360] Reference 5 >= 2 [h264 @ 0xad0f360] error while decoding MB 19 5, bytestream (5376) [h264 @ 0xac0d9c0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xac0d9c0] decode_slice_header error [aac_latm @ 0x9c4c300] decode_pce: Input buffer exhausted before END element found Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input Last message repeated 1 times [h264 @ 0xadcc060] mmco: unref short failure [h264 @ 0xae88d60] mmco: unref short failure [aac_latm @ 0x9c4c300] decode_pce: Input buffer exhausted before END element found Error while decoding stream #0:1: Operation not permitted [h264 @ 0xacb0ce0] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xacb0ce0] Missing reference picture Last message repeated 1 times Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac0d9c0] reference picture missing during reorder [h264 @ 0xac0d9c0] Missing reference picture [h264 @ 0xac52660] mmco: unref short failure Last message repeated 1 times [h264 @ 0xac52660] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 0xacb0ce0] error while decoding MB 0 22, bytestream (-6) [h264 @ 0xad6d9e0] mmco: unref short failure [aac_latm @ 0x9c4c300] decode_pce: Input buffer exhausted before END element found Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac0d9c0] reference picture missing during reorder [h264 @ 0xac0d9c0] Missing reference picture [h264 @ 0xac52660] mmco: unref short failure [aac_latm @ 0x9c4c300] channel element 1.0 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xadcc060] mmco: unref short failure Last message repeated 2 times [h264 @ 0xae88d60] mmco: unref short failure [h264 @ 0xac0d9c0] mmco: unref short failure [h264 @ 0xad0f360] error while decoding MB 15 20, bytestream (-25) [h264 @ 0xaee73e0] reference picture missing during reorder [h264 @ 0xaee73e0] Missing reference picture [h264 @ 0xac0d9c0] reference picture missing during reorder [h264 @ 0xac0d9c0] Missing reference picture [h264 @ 0xacb0ce0] mmco: unref short failure [aac_latm @ 0x9c4c300] channel element 1.6 is not allocated Error while decoding stream #0:1: Operation not permitted [h264 @ 0xac52660] reference picture missing during reorder [h264 @ 0xac52660] Missing reference picture [h264 @ 0xad0f360] Reference 2 >= 2 [h264 @ 0xad0f360] error while decoding MB 25 9, bytestream (8200) [h264 @ 0xad6d9e0] reference picture missing during reorder [h264 @ 0xad6d9e0] Missing reference picture Error while decoding stream #0:1: Invalid data found when processing input [aac_latm @ 0x9c4c300] Reserved bit set. Error while decoding stream #0:1: Invalid data found when processing input Last message repeated 1 times [h264 @ 0xad6d9e0] Reference 4 >= 2 [h264 @ 0xad6d9e0] error while decoding MB 25 0, bytestream (12598) [h264 @ 0xaee73e0] Reference 2 >= 2 [h264 @ 0xaee73e0] error while decoding MB 35 34, bytestream (9614) [h264 @ 0xad6d9e0] Reference 4 >= 2 [h264 @ 0xad6d9e0] error while decoding MB 8 12, bytestream (10931) [h264 @ 0xac52660] reference picture missing during reorder [h264 @ 0xac52660] Missing reference picture [h264 @ 0xacb0ce0] reference picture missing during reorder [h264 @ 0xacb0ce0] Missing reference picture [aac_latm @ 0x9c4c300] channel element 1.2 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xaee73e0] mmco: unref short failure [h264 @ 0xac0d9c0] left block unavailable for requested intra mode at 0 16 [h264 @ 0xac0d9c0] error while decoding MB 0 16, bytestream (998) [h264 @ 0xac52660] mmco: unref short failure [aac_latm @ 0x9c4c300] channel element 3.2 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xad0f360] mmco: unref short failure [h264 @ 0xad6d9e0] Reference 4 >= 2 [h264 @ 0xad6d9e0] error while decoding MB 43 9, bytestream (3157) [h264 @ 0xae2a6e0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xae2a6e0] decode_slice_header error [h264 @ 0xac52660] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xac52660] decode_slice_header error [h264 @ 0xacb0ce0] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xacb0ce0] Missing reference picture Last message repeated 1 times [aac_latm @ 0x9c4c300] TYPE_FIL: Input buffer exhausted before END element found Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac0d9c0] reference picture missing during reorder [h264 @ 0xac0d9c0] Missing reference picture [h264 @ 0xac52660] mmco: unref short failure Last message repeated 1 times [h264 @ 0xac52660] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 0xac52660] Reference 3 >= 2 [h264 @ 0xac52660] error while decoding MB 5 8, bytestream (172) [h264 @ 0xac0d9c0] Reference 4 >= 2 [h264 @ 0xac0d9c0] error while decoding MB 17 16, bytestream (3501) [h264 @ 0xad6d9e0] Reference 3 >= 2 [h264 @ 0xad6d9e0] error while decoding MB 6 18, bytestream (7215) [h264 @ 0xacb0ce0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xacb0ce0] decode_slice_header error [h264 @ 0xac0d9c0] error while decoding MB 23 8, bytestream (-68) [h264 @ 0xac52660] Missing reference picture [aac_latm @ 0x9c4c300] Number of bands (40) exceeds limit (39). Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xac52660] mmco: unref short failure [h264 @ 0xad0f360] reference picture missing during reorder [h264 @ 0xad0f360] Missing reference picture [h264 @ 0xadcc060] mmco: unref short failure Error while decoding stream #0:1: Invalid data found when processing input Last message repeated 1 times [h264 @ 0xac52660] reference picture missing during reorder [h264 @ 0xac52660] Missing reference picture [aac_latm @ 0x9c4c300] channel element 0.3 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [h264 @ 0xacb0ce0] Cannot combine reference and non-reference fields in the same frame [h264 @ 0xacb0ce0] decode_slice_header error [h264 @ 0xad0f360] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xad0f360] Missing reference picture Last message repeated 1 times [h264 @ 0xaee73e0] Reference 4 >= 2 [h264 @ 0xaee73e0] error while decoding MB 4 12, bytestream (7445) [h264 @ 0xae2a6e0] reference picture missing during reorder [h264 @ 0xae2a6e0] Missing reference picture [h264 @ 0xae88d60] reference picture missing during reorder [h264 @ 0xae88d60] Missing reference picture [aac_latm @ 0x9c4c300] channel element 0.0 is not allocated Error while decoding stream #0:1: Operation not permitted Error while decoding stream #0:1: Invalid data found when processing input [aac_latm @ 0x9c4c300] Number of bands (42) exceeds limit (40). Error while decoding stream #0:1: Operation not permitted [h264 @ 0xadcc060] mmco: unref short failure [h264 @ 0xae88d60] mmco: unref short failure [h264 @ 0xac0d9c0] mmco: unref short failure [h264 @ 0xacb0ce0] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xacb0ce0] Missing reference picture Last message repeated 1 times [h264 @ 0xad0f360] reference picture missing during reorder [h264 @ 0xad0f360] Missing reference picture [h264 @ 0xacb0ce0] mmco: unref short failure Last message repeated 1 times [h264 @ 0xacb0ce0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one Error while decoding stream #0:1: Invalid data found when processing input -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Audio-lost-after-a-while-in-live-streaming-tp4653651.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hugowau at gmx.net Mon Sep 24 14:05:36 2012 From: hugowau at gmx.net (Hugo Wau) Date: Mon, 24 Sep 2012 14:05:36 +0200 Subject: [FFmpeg-user] optimized bitrate Message-ID: <50604C90.4060200@gmx.net> Hello, I have made now some tests with the "-qcomp 0.7" option versus the "-b 4000k" option and did not notice any difference in the results. Both videos were reduced in size as I had wished it would be. I found out, that I had to put the -b option at the front of the command line, directly following the ffmpeg command, while the qcomp option hat to follow the modifiers of the video codec (near the end of my command line). Now I would like to have a (Linux) bash script, where the right bitrate is calculated from the length of the audio or from the number of the single images, from which the video is made. I think that some formula to calculate the bitrate for the -b option for ffmpeg must exist already in the public domain somewhere, but I have not found it yet. (Something for my very low level of understanding since I am far from being a video or DVD or ffmpeg Expert). With kind regards Hugo From nichot20 at yahoo.com Mon Sep 24 14:31:18 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 24 Sep 2012 13:31:18 +0100 Subject: [FFmpeg-user] [Bulk] Re: ProRes Quicktimes with audio not playing back reliably In-Reply-To: <50600C1A.6050302@yahoo.com> References: <505E19C1.3000201@burner.com> <505E857B.2070108@burner.com> <50600C1A.6050302@yahoo.com> Message-ID: <50605296.5090701@yahoo.com> On 24/09/12 08:30, Tim Nicholson wrote: > On 23/09/12 04:43, Bob Maple wrote: >>> Does it work if you use another audio codec? >>> (aac with high bitrate) >> >> Ah - forgot to finish testing that the other night as well (I was >> getting errors about AAC being 'experimental' and then got sidetracked >> on something else.) >> >> But no, AAC doesn't work, nor does MP3.. still get glitchy >> playback/dropped frames. >> >> For fun I also tried still using PCM and changing the bit depth and >> sample rate to no avail; pcm_s24le at 48khz is still not good, >> pcm_s16le at 44.1khz is still not good, etc. >> >> Back on the video front, I tried MJPEG as suggested by Thomas which >> works fine, and I also just did DNxHD and it plays fine as well. So it >> seems to be something with Prores specifically. >> > > > I can confirm that on playing back some recent ProRes files in QT player > 7 I was seeing random picture freezing/jumping with audio playing > smoothly, which, if you stopped and went back over the same material did > not occur/occurred in a different place. I was putting this down to > pulling the files over the network until I saw this thread.... > > My coding parameters were:- > > ffmpeg version N-44123-g5d55830 > -c:v prores -profile:v 3 \ > -c:a copy \ > (Audio was 4 streams of pcm_s24be) > >> >> | Bob Maple >> [..] > > OK I've done some more investigation on this. Copied a sample file locally, and it still exhibits the issue. Created a test file with the same coding parameters as was used by the sample file as above using the following command line:- ffmpeg -f lavfi -i "testsrc=duration=600.0:size=720x576:rate=25" \ -f lavfi -i "aevalsrc=0::d=600.0" -f lavfi -i "aevalsrc=0::d=600.0" \ -f lavfi -i "aevalsrc=0::d=600.0" -f lavfi -i "aevalsrc=0::d=600.0" -map 0:v -map 1:a -map 2:a -map 3:a -map 4:a \ -vf "drawtext=fontfile=/usr/share/fonts/truetype/DroidSans.ttf: \ timecode='00\:00\:00\:00': r=25: x=(w-tw)/2: y=(1*lh): \ fontcolor=white: fontsize=60: box=1: boxcolor=0x00000000 at 1" \ -c:v prores -profile:v 3 \ -c:a pcm_s24be -ar 48000 \ -y Prores_test_A.mov This file does not show any of the problems (as evidenced by QTPlayer info box showing the rate stuttering or any visible stutter of the timecode, or scrolling rainbow). I note that my original file, duration 11 mins 03 secs is 4.8G in size, and the lavfi version, duration 10 mins is only 1.7G. A recoded version of the original to the same codec and level (done in QT Pro) is just over 5G (but the audios have been merged into a 4 channel stream from the 4 discrete streams). This has no issues. I therefore wonder if the problem is buffer related, with the more complex material coded by ffmpeg exceeding a limit momentarily, with the Apple coded material being within the limits, and simple material coded by ffmeg just fortuitously staying within limits. -- Tim From mike.kavanagh at netpipe.biz Mon Sep 24 14:31:49 2012 From: mike.kavanagh at netpipe.biz (Mike Kavanagh) Date: Mon, 24 Sep 2012 13:31:49 +0100 Subject: [FFmpeg-user] Error while opening encoder.... Message-ID: <001d01cd9a50$92b3f1e0$b81bd5a0$@kavanagh@netpipe.biz> Hi I believe this is a fairly basic problem I am having as I am just starting with ffmpeg. I am creating a video from a set of still images and have been getting an image size problem which I have tried to solve with a '-vf pad' control parameter. The pad values I have put in are designed to make the width divisible by 2 as required and yet not mess up the aspect ratio. Below I provide the report output with the three problem lines in bold - i am running this on a PC with Windows Vista. ffmpeg -vf "pad=1340x886" -i "%06d.jpg" -y movie.mp4 -r 1 -b:v 9600 -report ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [AVIOContext @ 0039dee0] Statistics: 221184 bytes read, 0 seeks [mjpeg @ 03535ba0] marker=d8 avail_size_in_buf=221182 [mjpeg @ 03535ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03535ba0] marker=e0 avail_size_in_buf=221180 [mjpeg @ 03535ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03535ba0] marker=e1 avail_size_in_buf=221162 [mjpeg @ 03535ba0] marker parser used 6951 bytes (55608 bits) [mjpeg @ 03535ba0] marker=ed avail_size_in_buf=214208 [mjpeg @ 03535ba0] marker parser used 7449 bytes (59592 bits) [mjpeg @ 03535ba0] marker=e1 avail_size_in_buf=206756 [mjpeg @ 03535ba0] marker parser used 6259 bytes (50072 bits) [mjpeg @ 03535ba0] marker=e2 avail_size_in_buf=200494 [mjpeg @ 03535ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03535ba0] marker=ee avail_size_in_buf=197332 [mjpeg @ 03535ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03535ba0] marker=db avail_size_in_buf=197316 [mjpeg @ 03535ba0] index=0 [mjpeg @ 03535ba0] qscale[0]: 4 [mjpeg @ 03535ba0] index=1 [mjpeg @ 03535ba0] qscale[1]: 5 [mjpeg @ 03535ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03535ba0] marker=c0 avail_size_in_buf=197182 [mjpeg @ 03535ba0] sof0: picture: 1339x886 [mjpeg @ 03535ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03535ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03535ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03535ba0] pix fmt id 22111100 [mjpeg @ 03535ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03535ba0] marker=dd avail_size_in_buf=197163 [mjpeg @ 03535ba0] restart interval: 84 [mjpeg @ 03535ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03535ba0] marker=c4 avail_size_in_buf=197157 [mjpeg @ 03535ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03535ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03535ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03535ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03535ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03535ba0] escaping removed 1186 bytes [mjpeg @ 03535ba0] marker=da avail_size_in_buf=196737 [mjpeg @ 03535ba0] component: 0 [mjpeg @ 03535ba0] component: 1 [mjpeg @ 03535ba0] component: 2 [mjpeg @ 03535ba0] overread 8 [mjpeg @ 03535ba0] marker parser used 195552 bytes (1564416 bits) [mjpeg @ 03535ba0] decode frame unused 0 bytes [AVIOContext @ 0039fa80] Statistics: 221184 bytes read, 0 seeks [AVIOContext @ 0039fb00] Statistics: 221184 bytes read, 0 seeks [AVIOContext @ 0039fb80] Statistics: 147456 bytes read, 0 seeks [AVIOContext @ 0039fc00] Statistics: 147456 bytes read, 0 seeks [AVIOContext @ 0039fc80] Statistics: 147456 bytes read, 0 seeks [AVIOContext @ 0039fd00] Statistics: 180224 bytes read, 0 seeks [AVIOContext @ 0039fd80] Statistics: 180224 bytes read, 0 seeks [AVIOContext @ 0039fe00] Statistics: 180224 bytes read, 0 seeks Input #0, image2, from '%06d.jpg': Duration: 00:00:00.36, start: 0.000000, bitrate: N/A Stream #0:0, 9, 1/25: Video: mjpeg, yuvj420p, 1339x886 [SAR 200:200 DAR 1339:886], 25 fps, 25 tbr, 25 tbn, 25 tbc [buffer @ 0039e060] Setting entry with key 'video_size' to value '1339x886' [buffer @ 0039e060] Setting entry with key 'pix_fmt' to value '12' [buffer @ 0039e060] Setting entry with key 'time_base' to value '1/25' [buffer @ 0039e060] Setting entry with key 'pixel_aspect' to value '200/200' [buffer @ 0039e060] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 0039e060] Setting entry with key 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0039dfa0] w:1339 h:886 pixfmt:yuvj420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [libx264 @ 03603520] width not divisible by 2 (1339x886) Output #0, mp4, to 'movie.mp4': Stream #0:0, 0, 1/90000: Video: h264, yuvj420p, 1339x886 [SAR 1:1 DAR 1339:886], q=-1--1, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Thanks for your help in advance. -Mike From andycivil at gmail.com Mon Sep 24 14:32:34 2012 From: andycivil at gmail.com (Andy Civil) Date: Mon, 24 Sep 2012 08:32:34 -0400 Subject: [FFmpeg-user] [Bulk] FFmpeg syntax for Youtube specs (help) In-Reply-To: <20120924105625.GD61805@krille.blacktrash.org> References: <50600CFD.3000400@yahoo.com> <20120924105625.GD61805@krille.blacktrash.org> Message-ID: <506052E2.3030308@gmail.com> On 2012-09-24 6:56 AM, Christian Ebert wrote: > * Tim Nicholson on Monday, September 24, 2012 at 08:34:21 +0100 >> The english link is:- >> http://support.google.com/youtube/bin/static.py?hl=en&guide=1728585&topic=1728573&page=guide.cs > > | Closed GOP. GOP of half the frame rate. > > Half the frame rate? keyint=12 for 25 fps? Or do they mean half > the frame rate in seconds, i.e. keyint=125 for 25 fps? > Surely the only sane interpretation would be that the GOP would be at most half a second, but obviously measured in frames. (i.e. your first example) -- Andy From blacktrash at gmx.net Mon Sep 24 14:47:05 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 24 Sep 2012 13:47:05 +0100 Subject: [FFmpeg-user] [Bulk] FFmpeg syntax for Youtube specs (help) In-Reply-To: <506052E2.3030308@gmail.com> References: <50600CFD.3000400@yahoo.com> <20120924105625.GD61805@krille.blacktrash.org> <506052E2.3030308@gmail.com> Message-ID: <20120924124705.GE61805@krille.blacktrash.org> * Andy Civil on Monday, September 24, 2012 at 08:32:34 -0400 > On 2012-09-24 6:56 AM, Christian Ebert wrote: >> * Tim Nicholson on Monday, September 24, 2012 at 08:34:21 +0100 >>> The english link is:- >>> http://support.google.com/youtube/bin/static.py?hl=en&guide=1728585&topic=1728573&page=guide.cs >> >>| Closed GOP. GOP of half the frame rate. >> >> Half the frame rate? keyint=12 for 25 fps? Or do they mean half >> the frame rate in seconds, i.e. keyint=125 for 25 fps? > > Surely the only sane interpretation would be that the GOP would be at > most half a second, but obviously measured in frames. (i.e. your first > example) I can't comment on my sanity, I'm just surprised, the ffmpeg default being 250. -- 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 belcampo at zonnet.nl Mon Sep 24 16:24:21 2012 From: belcampo at zonnet.nl (Belcampo) Date: Mon, 24 Sep 2012 16:24:21 +0200 Subject: [FFmpeg-user] Can ffmpeg transcode from mp4(h264/aac) to ts parallel In-Reply-To: References: Message-ID: On Sep 24, 2012, at 10:08 AM, Steven Liu wrote: > Hi All, > > I want to transcode multimedia from mp4 to ts. > > I have one file named "a.mp4", it's video codec is "h264" audio > codec is "aac" > > duration time is "00:03:00.000" > > I have three computer, I want to transcode the a.mp4 to ts use > the three computer. > three computer name: serv1 , serv2 , serv3 > > I want to transcode the a.mp4 on serv1, serv2,serv3. > > serv1 transcode a.mp4 00:00:00.000 - 00:01:00.000 to a-1.ts > serv2 transcode a.mp4 00:01:00.000 - 00:02:00.000 to a-2.ts > serv3 transcode a.mp4 00:02:00.000 - 00:03:00.000 to a-3.ts > > which auguments can do it like this? First you have to know where I-frames aka key-frames are located, that is the place where you can put your -ss and -t points. Further often audio is 'delayed' in relation to the video-stream, so another hurdle. The way I solved it is by loading your a.mp4 in tsMuxeR/tsMuxerGUI and create a-1.ts a-2.ts and a-3.ts, splitting by time is one of the reliable options the tsMuxeR combo provides. The resulting ts files have 'ongoing' time stamps' which you need. Encoding with ffmpeg results in starting every file with 00:00:00. Without encoding you can check if vlc plays the resulting a-1.ts a-2.ts a-3ts as if it where 1 file. For parallel encoding you can check ppss - (Distributed) Parallel Processing Shell Script - parallel ... which is a very nice set of scripts which enables you to optimally load your CPU-Cores, even if the machines are very different in performance. > I have try it like this, but it have pts/pcr error when i play > the m3u8 on VLC > > The error message is bellow: > > > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 0 from stream 0 > main debug: creating access 'http' > location='192.168.0.105/test/b1.ts', path='\\192.168.0.105\test\b1.ts' > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/b1.ts' > main debug: net: connecting to 192.168.0.105 port 80 > main debug: connection succeeded (socket = 1352) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=7007512 > access_http debug: Connection: close > access_http debug: stream size=7007512,pos=0,remaining=7007512 > main debug: using access module "access_http" > main debug: TIMER module_need() : 19.088 ms - Total 19.088 ms / 1 > intvls (Avg 19.088 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 0 ms > main debug: pre-buffering done 1024 bytes in 0s - 2369 KiB/s > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 1 from stream 0 > main debug: using stream_filter module "stream_filter_httplive" > main debug: TIMER module_need() : 8758.966 ms - Total 8758.966 ms / 1 > intvls (Avg 8758.966 ms) > main debug: Inserted a stream filter > main debug: creating access 'http' > location='192.168.0.105/test/b2.ts', path='\\192.168.0.105\test\b2.ts' > main debug: looking for stream_filter module: 4 candidates > main debug: no stream_filter module matching "any" could be loaded > main debug: TIMER module_need() : 0.320 ms - Total 0.320 ms / 1 intvls > (Avg 0.320 ms) > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/b2.ts' > main debug: looking for stream_filter module: 1 candidate > main debug: using stream_filter module "stream_filter_record" > main debug: TIMER module_need() : 0.276 ms - Total 0.276 ms / 1 intvls > (Avg 0.276 ms) > main debug: creating demux: access='http' demux='' > location='192.168.0.105/test/a.m3u8.ts' > file='\\192.168.0.105\test\a.m3u8.ts' > main debug: looking for demux module: 55 candidates > main debug: net: connecting to 192.168.0.105 port 80 > stream_filter_httplive info: playing segment 0 from stream 0 > ts debug: PATCallBack called > ts debug: new PAT ts_id=1 version=0 current_next=1 > ts debug: * number=1 pid=4096 > ts debug: PMTCallBack called > ts debug: new PMT program number=1 version=0 pid_pcr=256 > ts debug: * es pid=256 type=27 fcc=h264 > main debug: selecting program id=1 > ts error: MPEG-4 descriptor not found > ts debug: * es pid=257 type=15 fcc=mp4a > main debug: using demux module "ts" > main debug: TIMER module_need() : 12.891 ms - Total 12.891 ms / 1 > intvls (Avg 12.891 ms) > main debug: looking for decoder module: 31 candidates > main debug: connection succeeded (socket = 1380) > avcodec debug: libavcodec initialized (interface 0x361100) > avcodec debug: trying to use direct rendering > avcodec debug: allowing 4 thread(s) for decoding > avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started > avcodec debug: using frame thread mode with 4 threads > main debug: using decoder module "avcodec" > main debug: TIMER module_need() : 5.406 ms - Total 5.406 ms / 1 intvls > (Avg 5.406 ms) > main debug: looking for packetizer module: 21 candidates > main debug: using packetizer module "packetizer_h264" > main debug: TIMER module_need() : 1.416 ms - Total 1.416 ms / 1 intvls > (Avg 1.416 ms) > main debug: looking for decoder module: 31 candidates > main debug: using decoder module "faad" > main debug: TIMER module_need() : 0.168 ms - Total 0.168 ms / 1 intvls > (Avg 0.168 ms) > main debug: looking for packetizer module: 21 candidates > packetizer_mpeg4audio debug: running MPEG4 audio packetizer > packetizer_mpeg4audio debug: no decoder specific info, must be an ADTS > or LOAS stream > main debug: using packetizer module "packetizer_mpeg4audio" > main debug: TIMER module_need() : 0.096 ms - Total 0.096 ms / 1 intvls > (Avg 0.096 ms) > ts debug: DEMUX_SET_GROUP 0 00000000 > main debug: looking for meta reader module: 2 candidates > lua debug: Trying Lua scripts in > C:\Users\LiuQi\AppData\Roaming\vlc\lua\meta\reader > lua debug: Trying Lua scripts in C:\Program Files > (x86)\VideoLAN\VLC\lua\meta\reader > lua debug: Trying Lua playlist script C:\Program Files > (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac > main debug: no meta reader module matching "any" could be loaded > main debug: TIMER module_need() : 0.810 ms - Total 0.810 ms / 1 intvls > (Avg 0.810 ms) > main debug: `http://192.168.0.105/test/a.m3u8' successfully opened > main debug: Buffering 0% > main debug: Buffering 6% > packetizer_h264 debug: found NAL_SPS (sps_id=0) > main debug: Buffering 13% > packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0) > main debug: Buffering 20% > ts debug: PSINewTableCallBack: table 0x42(66) ext=0x1(1) > ts debug: SDTCallBack called > ts debug: new SDT ts_id=1 version=0 current_next=1 network_id=1 > ts debug: * service id=1 eit schedule=0 present=0 running=4 free_ca=0 > ts debug: - type=1 provider=FFmpeg name=Service01 > main debug: EsOutProgramMeta: number=1 > main debug: Buffering 26% > main debug: Buffering 33% > main debug: looking for text renderer module: 2 candidates > main debug: Buffering 40% > main debug: Buffering 46% > main debug: Buffering 53% > main debug: Buffering 60% > main debug: Buffering 66% > packetizer_mpeg4audio debug: detected ADTS format > packetizer_mpeg4audio info: AAC channels: 2 samplerate: 48000 > faad warning: decoded zero sample > freetype debug: Using Arial as font from file C:\windows\Fonts\arial.ttf > main debug: Buffering 73% > main debug: Buffering 80% > main debug: Buffering 86% > freetype debug: using fontsize: 2 > main debug: Buffering 93% > main debug: using text renderer module "freetype" > main debug: TIMER module_need() : 1.511 ms - Total 1.511 ms / 1 intvls > (Avg 1.511 ms) > main debug: Buffering 100% > main debug: looking for video filter2 module: 18 candidates > main debug: Stream buffering done (1066 ms in 2 ms) > swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling > using Bicubic (good quality) > main debug: using video filter2 module "swscale" > main debug: TIMER module_need() : 0.946 ms - Total 0.946 ms / 1 intvls > (Avg 0.946 ms) > main debug: looking for video filter2 module: 18 candidates > yuvp debug: YUVP to YUVA converter > main debug: using video filter2 module "yuvp" > main debug: TIMER module_need() : 1.856 ms - Total 1.856 ms / 1 intvls > (Avg 1.856 ms) > main debug: Deinterlacing available > main debug: deinterlace 0, mode blend, is_needed 0 > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=8637284 > access_http debug: Connection: close > access_http debug: stream size=8637284,pos=0,remaining=8637284 > main debug: using access module "access_http" > main debug: TIMER module_need() : 31.442 ms - Total 31.442 ms / 1 > intvls (Avg 31.442 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: Opening vout display wrapper > main debug: looking for vout display module: 6 candidates > main debug: received first data after 9 ms > main debug: pre-buffering done 1024 bytes in 0s - 107 KiB/s > direct3d debug: creating Vout EventThread > direct3d debug: DirectXCreateWindow > main debug: looking for vout window hwnd module: 2 candidates > qt4 debug: requesting video... > qt4 debug: Video was requested 0, 0 > main debug: using vout window hwnd module "qt4" > main debug: TIMER module_need() : 94.845 ms - Total 94.845 ms / 1 > intvls (Avg 94.845 ms) > direct3d debug: created video sub-window > direct3d debug: Vout EventThread running > direct3d debug: disabling screen saver > direct3d debug: Direct3d Device: Mobile Intel(R) HD Graphics 32902 294 9 > main debug: VoutDisplayEvent 'resize' 1296x758 window > direct3d warning: trying surface pixel format: YV12 > direct3d debug: selected surface pixel format is YV12 > direct3d debug: Using D3DTEXF_LINEAR for minification > direct3d debug: Using D3DTEXF_LINEAR for magnification > direct3d debug: Direct3D scene created successfully > direct3d debug: Direct3D device adapter successfully initialized > main debug: using vout display module "direct3d" > main debug: TIMER module_need() : 158.903 ms - Total 158.903 ms / 1 > intvls (Avg 158.903 ms) > main debug: original format sz 1280x720, of (0,0), vsz 1280x720, 4cc > I420, sar 1:1, msk r0x0 g0x0 b0x0 > main debug: removing module "freetype" > main debug: looking for text renderer module: 2 candidates > freetype debug: Using Arial as font from file C:\windows\Fonts\arial.ttf > freetype debug: using fontsize: 2 > main debug: using text renderer module "freetype" > main debug: TIMER module_need() : 1.154 ms - Total 1.154 ms / 1 intvls > (Avg 1.154 ms) > avcodec debug: using direct rendering > main debug: creating audio output > main debug: looking for audio output module: 2 candidates > aout_directx debug: Opening DirectSound Audio Output > main debug: End of video preroll > main debug: VoutDisplayEvent 'resize' 1366x631 window > main debug: Received first picture > direct3d debug: Created 656x47 texture for OSD > aout_directx debug: found device: ??????? > aout_directx debug: found device: ???/?? (IDT High Definition Audio CODEC) > aout_directx debug: found device: ???? (IDT High Definition Audio CODEC) > main debug: Post-processing available > aout_directx debug: device supports 2 channels (DEFAULT!) > aout_directx debug: device supports 1 channel > aout_directx debug: Windows says your SpeakerConfig is stereo > aout_directx debug: creating DirectSoundThread > main debug: using audio output module "aout_directx" > main debug: TIMER module_need() : 64.265 ms - Total 64.265 ms / 1 > intvls (Avg 64.265 ms) > aout_directx debug: DirectSoundThread ready > main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes > main debug: mixer 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes > main debug: filter(s) 'f32l'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo > main debug: looking for audio filter module: 14 candidates > audio_format debug: f32l->s16l, bits per sample: 32->16 > main debug: using audio filter module "audio_format" > main debug: TIMER module_need() : 2.314 ms - Total 2.314 ms / 1 intvls > (Avg 2.314 ms) > main debug: conversion pipeline completed > main debug: looking for audio mixer module: 2 candidates > main debug: using audio mixer module "float32_mixer" > main debug: TIMER module_need() : 0.314 ms - Total 0.314 ms / 1 intvls > (Avg 0.314 ms) > main debug: input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes > main debug: looking for audio filter module: 1 candidate > scaletempo debug: format: 48000 rate, 2 nch, 4 bps, fl32 > scaletempo debug: params: 30 stride, 0.200 overlap, 14 search > scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, > 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode > main debug: using audio filter module "scaletempo" > main debug: TIMER module_need() : 0.514 ms - Total 0.514 ms / 1 intvls > (Avg 0.514 ms) > main debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo > main debug: conversion pipeline completed > main debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo > main debug: conversion pipeline completed > main debug: filter(s) 'f32l'->'f32l' 52800 Hz->48000 Hz Stereo->Stereo > main debug: looking for audio filter module: 14 candidates > main debug: using audio filter module "samplerate" > main debug: TIMER module_need() : 0.198 ms - Total 0.198 ms / 1 intvls > (Avg 0.198 ms) > main debug: conversion pipeline completed > main debug: End of audio preroll > main debug: Decoder buffering done in 260 ms > main warning: audio output out of sync, adjusting dates (61405 us) > main debug: auto hiding mouse cursor > main debug: picture might be displayed late (missing 0 ms) > main warning: not synchronized (61408 us), resampling > main warning: buffer too late (60991), up-sampling > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 2 from stream 0 > main debug: creating access 'http' > location='192.168.0.105/test/test-3.ts', > path='\\192.168.0.105\test\test-3.ts' > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/test-3.ts' > main debug: net: connecting to 192.168.0.105 port 80 > main debug: connection succeeded (socket = 1388) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=867432 > access_http debug: Connection: close > access_http debug: stream size=867432,pos=0,remaining=867432 > main debug: using access module "access_http" > main debug: TIMER module_need() : 34.979 ms - Total 34.979 ms / 1 > intvls (Avg 34.979 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 3 ms > main debug: pre-buffering done 1024 bytes in 0s - 281 KiB/s > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 3 from stream 0 > main debug: creating access 'http' > location='192.168.0.105/test/test-4.ts', > path='\\192.168.0.105\test\test-4.ts' > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/test-4.ts' > main debug: net: connecting to 192.168.0.105 port 80 > main debug: connection succeeded (socket = 1380) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=669656 > access_http debug: Connection: close > access_http debug: stream size=669656,pos=0,remaining=669656 > main debug: using access module "access_http" > main debug: TIMER module_need() : 17.322 ms - Total 17.322 ms / 1 > intvls (Avg 17.322 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 9 ms > main debug: pre-buffering done 1024 bytes in 0s - 108 KiB/s > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 4 from stream 0 > main debug: creating access 'http' > location='192.168.0.105/test/test-5.ts', > path='\\192.168.0.105\test\test-5.ts' > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/test-5.ts' > main debug: net: connecting to 192.168.0.105 port 80 > main debug: connection succeeded (socket = 1388) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=725680 > access_http debug: Connection: close > access_http debug: stream size=725680,pos=0,remaining=725680 > main debug: using access module "access_http" > main debug: TIMER module_need() : 22.287 ms - Total 22.287 ms / 1 > intvls (Avg 22.287 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 2 ms > main debug: pre-buffering done 1024 bytes in 0s - 449 KiB/s > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 5 from stream 0 > main debug: creating access 'http' > location='192.168.0.105/test/test-6.ts', > path='\\192.168.0.105\test\test-6.ts' > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/test-6.ts' > main debug: net: connecting to 192.168.0.105 port 80 > main debug: connection succeeded (socket = 1380) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=607992 > access_http debug: Connection: close > access_http debug: stream size=607992,pos=0,remaining=607992 > main debug: using access module "access_http" > main debug: TIMER module_need() : 13.225 ms - Total 13.225 ms / 1 > intvls (Avg 13.225 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 2 ms > main debug: pre-buffering done 1024 bytes in 0s - 426 KiB/s > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 6 from stream 0 > stream_filter_httplive info: playing segment 1 from stream 0 > main debug: creating access 'http' > location='192.168.0.105/test/test-7.ts', > path='\\192.168.0.105\test\test-7.ts' > ts debug: SDTCallBack called > ts debug: PATCallBack called > ts debug: PMTCallBack called > ts warning: discontinuity received 0x0 instead of 0x6 (pid=256) > main warning: clock gap, unexpected stream discontinuity > main warning: feeding synchro with a new reference point trying to > recover from clock gap > main warning: PTS is out of range (95430825822), dropping buffer > main debug: looking for access module: 2 candidates > access_http debug: http: server='192.168.0.105' port=80 file='/test/test-7.ts' > main warning: PTS is out of range (95430805581), dropping buffer > main warning: PTS is out of range (95430785356), dropping buffer > main warning: PTS is out of range (95430765040), dropping buffer > main warning: PTS is out of range (95430744653), dropping buffer > main debug: net: connecting to 192.168.0.105 port 80 > main warning: PTS is out of range (95430724333), dropping buffer > main warning: PTS is out of range (95430703990), dropping buffer > main warning: PTS is out of range (95430683701), dropping buffer > main warning: PTS is out of range (95430663407), dropping buffer > main debug: connection succeeded (socket = 1360) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=1007116 > access_http debug: Connection: close > access_http debug: stream size=1007116,pos=0,remaining=1007116 > main debug: using access module "access_http" > main debug: TIMER module_need() : 32.422 ms - Total 32.422 ms / 1 > intvls (Avg 32.422 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 0 ms > main debug: pre-buffering done 1024 bytes in 0s - 1253 KiB/s > ts warning: discontinuity received 0x0 instead of 0x8 (pid=257) > packetizer_mpeg4audio debug: emulated sync word (no sync on following frame) > packetizer_mpeg4audio debug: detected LOAS format > main warning: PTS is out of range (95430973027), dropping buffer > main warning: PTS is out of range (95442030202), dropping buffer > main warning: PTS is out of range (95442009913), dropping buffer > main warning: PTS is out of range (95441989597), dropping buffer > main warning: PTS is out of range (95441969275), dropping buffer > main warning: PTS is out of range (95441948949), dropping buffer > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 7 from stream 0 > main warning: PTS is out of range (95442051547), dropping buffer > main warning: clock gap, unexpected stream discontinuity > main warning: feeding synchro with a new reference point trying to > recover from clock gap > main warning: picture is too late to be displayed (missing 95432419 ms) > main warning: picture is too late to be displayed (missing 95432352 ms) > main warning: picture is too late to be displayed (missing 95432286 ms) > main warning: picture is too late to be displayed (missing 95432219 ms) > main warning: picture is too late to be displayed (missing 95432152 ms) > main debug: creating access 'http' > location='192.168.0.105/test/test-8.ts', > path='\\192.168.0.105\test\test-8.ts' > stream_filter_httplive info: playing segment 2 from stream 0 > ts debug: PATCallBack called > ts debug: PMTCallBack called > main warning: clock gap, unexpected stream discontinuity > main warning: feeding synchro with a new reference point trying to > recover from clock gap > main debug: looking for access module: 2 candidates > main warning: PTS is out of range (95422178030), dropping buffer > access_http debug: http: server='192.168.0.105' port=80 file='/test/test-8.ts' > main warning: PTS is out of range (95422157812), dropping buffer > main warning: PTS is out of range (95422137590), dropping buffer > main warning: PTS is out of range (95422117248), dropping buffer > main warning: PTS is out of range (95422096826), dropping buffer > main warning: PTS is out of range (95422076377), dropping buffer > main debug: net: connecting to 192.168.0.105 port 80 > main warning: PTS is out of range (95422055896), dropping buffer > main debug: connection succeeded (socket = 1960) > access_http debug: protocol 'HTTP' answer code 206 > access_http debug: Server: zehttpd/1.2.0 > access_http debug: Content-Type: video/MP2T > access_http debug: this frame size=756888 > access_http debug: Connection: close > access_http debug: stream size=756888,pos=0,remaining=756888 > main debug: using access module "access_http" > main debug: TIMER module_need() : 27.756 ms - Total 27.756 ms / 1 > intvls (Avg 27.756 ms) > main debug: Using stream method for AStream* > main debug: starting pre-buffering > main debug: received first data after 1 ms > main debug: pre-buffering done 1024 bytes in 0s - 695 KiB/s > main warning: PTS is out of range (95422463023), dropping buffer > main debug: removing module "access_http" > stream_filter_httplive info: downloaded segment 8 from stream 0 > main warning: clock gap, unexpected stream discontinuity > main warning: feeding synchro with a new reference point trying to > recover from clock gap > main warning: received buffer in the future > main warning: buffer too late (174660), up-sampling > main warning: picture is too late to be displayed (missing 95423820 ms) > main warning: picture is too late to be displayed (missing 95423753 ms) > main warning: picture is too late to be displayed (missing 95423687 ms) > main warning: picture is too late to be displayed (missing 95423620 ms) > main warning: picture is too late to be displayed (missing 95423553 ms) > > > > > Best Regards > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Mon Sep 24 18:06:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 24 Sep 2012 16:06:01 +0000 (UTC) Subject: [FFmpeg-user] Error while opening encoder.... References: <460.753838024353$1348489955@news.gmane.org> Message-ID: Mike Kavanagh netpipe.biz> writes: > ffmpeg -vf "pad=1340x886" -i "%06d.jpg" The order of options matters: You probably want to insert the video filter between decoder and encoder. > -y movie.mp4 -r 1 -b:v 9600 -report And I would strongly expect that you have to put the output file options "bv" and "r" in front of the output file. Carl Eugen From cehoyos at ag.or.at Mon Sep 24 18:07:53 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 24 Sep 2012 16:07:53 +0000 (UTC) Subject: [FFmpeg-user] optimized bitrate References: <50604C90.4060200@gmx.net> Message-ID: Hugo Wau gmx.net> writes: > I have made now some tests with the "-qcomp 0.7" option > versus the "-b 4000k" option and did not notice any > difference in the results. Allow me to repeat that it is pure luck that qcomp works similar for you (in your specific case) as vb, -qcomp only makes sense with two-pass encoding (and does not affect the filesize in that case). Carl Eugen From bobm-ffmpeg at burner.com Mon Sep 24 18:19:59 2012 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Mon, 24 Sep 2012 10:19:59 -0600 Subject: [FFmpeg-user] optimized bitrate In-Reply-To: <50604C90.4060200@gmx.net> References: <50604C90.4060200@gmx.net> Message-ID: <5060882F.1010409@burner.com> On 9/24/2012 6:05 AM, Hugo Wau wrote: > Now I would like to have a (Linux) bash script, where the right bitrate > is calculated from the length of the audio or from the number of the > single images, from which the video is made. You can calculate a general bitrate by taking the maximum number of bits you are able to store, and divide by the number of seconds of material you have. So say you had a storage medium that could hold 100000 bits and had 62 seconds of material to store on it, your data rate couldn't exceed about 16kbits/sec. Don't forget to include your audio in the estimate, and some pad for overhead (DVD IFO files, etc.) Then rather than trying to guess and use a q-factor, compress to the desired bitrate. -- | Bob Maple | | When love is gone, there's always justice. And when justice is gone, | there's always force. And when force is gone, there's always Mom. | Hi, Mom! -Laurie Anderson From dan at hentschels.com Mon Sep 24 18:48:04 2012 From: dan at hentschels.com (Dan Hentschel) Date: Mon, 24 Sep 2012 12:48:04 -0400 Subject: [FFmpeg-user] Error while opening encoder.... In-Reply-To: References: <460.753838024353$1348489955@news.gmane.org> Message-ID: > > ffmpeg -vf "pad=1340x886" -i "%06d.jpg" > > The order of options matters: > You probably want to insert the video filter > between decoder and encoder. > > > -y movie.mp4 -r 1 -b:v 9600 -report > > And I would strongly expect that you have to put > the output file options "bv" and "r" in front of > the output file. > Actually, I think you need to place the -r before the input. Otherwise, ffmpeg apparently assumes the input framerate is 25 fps, and drops frames accordingly when you convert to 1 fps on the output. Also, your pad command needs to be "pad=1340:886" rather than "pad=1340x886". The following command worked decently for me: ffmpeg -r 1 -i "%06d.jpg" -vf "pad=1340:886" -b:v 9600 -report -y movie.mp4 -- dan B hentschel dan at hentschels.com From cehoyos at ag.or.at Mon Sep 24 19:12:02 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 24 Sep 2012 17:12:02 +0000 (UTC) Subject: [FFmpeg-user] Error while opening encoder.... References: <460.753838024353$1348489955@news.gmane.org> Message-ID: Dan Hentschel hentschels.com> writes: > > > -y movie.mp4 -r 1 -b:v 9600 -report > > > > And I would strongly expect that you have to put > > the output file options "bv" and "r" in front of > > the output file. > > Actually, I think you need to place the -r before the input. That depends on what you want to achieve... (But I agree it is the more likely usecase.) Carl Eugen From mike.kavanagh at netpipe.biz Mon Sep 24 19:25:07 2012 From: mike.kavanagh at netpipe.biz (Mike Kavanagh) Date: Mon, 24 Sep 2012 18:25:07 +0100 Subject: [FFmpeg-user] Error while opening encoder.... In-Reply-To: References: <460.753838024353$1348489955@news.gmane.org> Message-ID: <001a01cd9a79$8bb61a20$a3224e60$@kavanagh@netpipe.biz> Hi, Thanks for your help - I've got past that hurdle. It produces an unexpectedly v small output file - could it be the "overread 8" messages in the report file below? Also, I have tried various frame rates without any success. If you have any ideas that would be great? ffmpeg started on 2012-09-24 at 18:16:30 Report written to "ffmpeg-20120924-181630.log" Command line: ffmpeg -r 1 -i "%06d.jpg" -vf "pad=1340:886" -b:v 9600 -y movie.mp4 -report ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-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-libschroedinger --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. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.102 / 3. 15.102 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [AVIOContext @ 0232dee0] Statistics: 221184 bytes read, 0 seeks [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=221182 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=221180 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=221162 [mjpeg @ 03045ba0] marker parser used 6951 bytes (55608 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=214208 [mjpeg @ 03045ba0] marker parser used 7449 bytes (59592 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=206756 [mjpeg @ 03045ba0] marker parser used 6259 bytes (50072 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=200494 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=197332 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=197316 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=197182 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=197163 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=197157 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 1186 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=196737 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 195552 bytes (1564416 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [AVIOContext @ 0232fa80] Statistics: 221184 bytes read, 0 seeks [AVIOContext @ 0232fae0] Statistics: 221184 bytes read, 0 seeks [AVIOContext @ 0232fb60] Statistics: 147456 bytes read, 0 seeks [AVIOContext @ 0232fbe0] Statistics: 147456 bytes read, 0 seeks [AVIOContext @ 0232fc60] Statistics: 147456 bytes read, 0 seeks [AVIOContext @ 0232fce0] Statistics: 180224 bytes read, 0 seeks [AVIOContext @ 0232fd60] Statistics: 180224 bytes read, 0 seeks [AVIOContext @ 0232fde0] Statistics: 180224 bytes read, 0 seeks Input #0, image2, from '%06d.jpg': Duration: 00:00:00.36, start: 0.000000, bitrate: N/A Stream #0:0, 9, 1/25: Video: mjpeg, yuvj420p, 1339x886 [SAR 200:200 DAR 1339:886], 25 fps, 25 tbr, 25 tbn, 25 tbc [buffer @ 03138ec0] Setting entry with key 'video_size' to value '1339x886' [buffer @ 03138ec0] Setting entry with key 'pix_fmt' to value '12' [buffer @ 03138ec0] Setting entry with key 'time_base' to value '1/1' [buffer @ 03138ec0] Setting entry with key 'pixel_aspect' to value '200/200' [buffer @ 03138ec0] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 03138ec0] Setting entry with key 'frame_rate' to value '1/1' [graph 0 input from stream 0:0 @ 03138e00] w:1339 h:886 pixfmt:yuvj420p tb:1/1 fr:1/1 sar:1/1 sws_param:flags=2 [graph 0 input from stream 0:0 @ 03138e00] TB:1.000000 SAMPLE_RATE:0.000000 [Parsed_pad_0 @ 03138200] w:1339 h:886 -> w:1340 h:886 x:0 y:0 color:0x000000FF [libx264 @ 031132a0] using mv_range_thread = 152 [libx264 @ 031132a0] using SAR=1/1 [libx264 @ 031132a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 031132a0] profile High, level 3.2 [libx264 @ 031132a0] 264 - core 125 r2208 d9d2288 - 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=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=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=9 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'movie.mp4': Metadata: encoder : Lavf54.25.104 Stream #0:0, 0, 1/1: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1340x886 [SAR 1:1 DAR 670:443], q=-1--1, 9 kb/s, 1 tbn, 1 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Press [q] to stop, [?] for help [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=221182 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=221180 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=221162 [mjpeg @ 03045ba0] marker parser used 6951 bytes (55608 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=214208 [mjpeg @ 03045ba0] marker parser used 7449 bytes (59592 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=206756 [mjpeg @ 03045ba0] marker parser used 6259 bytes (50072 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=200494 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=197332 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=197316 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=197182 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=197163 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=197157 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 1186 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=196737 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 195552 bytes (1564416 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=221182 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=221180 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=221162 [mjpeg @ 03045ba0] marker parser used 6951 bytes (55608 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=214208 [mjpeg @ 03045ba0] marker parser used 7449 bytes (59592 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=206756 [mjpeg @ 03045ba0] marker parser used 6259 bytes (50072 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=200494 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=197332 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=197316 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=197182 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=197163 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=197157 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 1186 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=196737 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 195552 bytes (1564416 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=221182 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=221180 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=221162 [mjpeg @ 03045ba0] marker parser used 6951 bytes (55608 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=214208 [mjpeg @ 03045ba0] marker parser used 7449 bytes (59592 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=206756 [mjpeg @ 03045ba0] marker parser used 6259 bytes (50072 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=200494 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=197332 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=197316 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=197182 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=197163 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=197157 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 1186 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=196737 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 195552 bytes (1564416 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=147454 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=147452 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=147434 [mjpeg @ 03045ba0] marker parser used 6127 bytes (49016 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=141304 [mjpeg @ 03045ba0] marker parser used 6603 bytes (52824 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=134698 [mjpeg @ 03045ba0] marker parser used 17444 bytes (139552 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=117251 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=114089 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=114073 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=113939 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=113920 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=113914 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 649 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=113494 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 112846 bytes (902768 bits) [mjpeg @ 03045ba0] marker=d0 avail_size_in_buf=630 [mjpeg @ 03045ba0] restart marker: 0 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=147454 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=147452 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=147434 [mjpeg @ 03045ba0] marker parser used 6127 bytes (49016 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=141304 [mjpeg @ 03045ba0] marker parser used 6603 bytes (52824 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=134698 [mjpeg @ 03045ba0] marker parser used 17444 bytes (139552 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=117251 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=114089 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=114073 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=113939 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=113920 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=113914 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 649 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=113494 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 112846 bytes (902768 bits) [mjpeg @ 03045ba0] marker=d0 avail_size_in_buf=630 [mjpeg @ 03045ba0] restart marker: 0 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=147454 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=147452 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=147434 [mjpeg @ 03045ba0] marker parser used 6127 bytes (49016 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=141304 [mjpeg @ 03045ba0] marker parser used 6603 bytes (52824 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=134698 [mjpeg @ 03045ba0] marker parser used 17444 bytes (139552 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=117251 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=114089 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=114073 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=113939 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100 [mjpeg @ 03045ba0] marker parser used 17 bytes (136 bits) [mjpeg @ 03045ba0] marker=dd avail_size_in_buf=113920 [mjpeg @ 03045ba0] restart interval: 84 [mjpeg @ 03045ba0] marker parser used 4 bytes (32 bits) [mjpeg @ 03045ba0] marker=c4 avail_size_in_buf=113914 [mjpeg @ 03045ba0] class=0 index=0 nb_codes=12 [mjpeg @ 03045ba0] class=0 index=1 nb_codes=12 [mjpeg @ 03045ba0] class=1 index=0 nb_codes=251 [mjpeg @ 03045ba0] class=1 index=1 nb_codes=251 [mjpeg @ 03045ba0] marker parser used 418 bytes (3344 bits) [mjpeg @ 03045ba0] escaping removed 649 bytes [mjpeg @ 03045ba0] marker=da avail_size_in_buf=113494 [mjpeg @ 03045ba0] component: 0 [mjpeg @ 03045ba0] component: 1 [mjpeg @ 03045ba0] component: 2 [mjpeg @ 03045ba0] overread 8 [mjpeg @ 03045ba0] marker parser used 112846 bytes (902768 bits) [mjpeg @ 03045ba0] marker=d0 avail_size_in_buf=630 [mjpeg @ 03045ba0] restart marker: 0 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] decode frame unused 0 bytes [mjpeg @ 03045ba0] marker=d8 avail_size_in_buf=180222 [mjpeg @ 03045ba0] marker parser used 0 bytes (0 bits) [mjpeg @ 03045ba0] marker=e0 avail_size_in_buf=180220 [mjpeg @ 03045ba0] marker parser used 16 bytes (128 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=180202 [mjpeg @ 03045ba0] marker parser used 6494 bytes (51952 bits) [mjpeg @ 03045ba0] marker=ed avail_size_in_buf=173705 [mjpeg @ 03045ba0] marker parser used 6993 bytes (55944 bits) [mjpeg @ 03045ba0] marker=e1 avail_size_in_buf=166709 [mjpeg @ 03045ba0] marker parser used 6253 bytes (50024 bits) [mjpeg @ 03045ba0] marker=e2 avail_size_in_buf=160453 [mjpeg @ 03045ba0] marker parser used 3159 bytes (25272 bits) [mjpeg @ 03045ba0] marker=ee avail_size_in_buf=157291 [mjpeg @ 03045ba0] marker parser used 14 bytes (112 bits) [mjpeg @ 03045ba0] marker=db avail_size_in_buf=157275 [mjpeg @ 03045ba0] index=0 [mjpeg @ 03045ba0] qscale[0]: 4 [mjpeg @ 03045ba0] index=1 [mjpeg @ 03045ba0] qscale[1]: 5 [mjpeg @ 03045ba0] marker parser used 132 bytes (1056 bits) [mjpeg @ 03045ba0] marker=c0 avail_size_in_buf=157141 [mjpeg @ 03045ba0] sof0: picture: 1339x886 [mjpeg @ 03045ba0] component 0 2:2 id: 0 quant:0 [mjpeg @ 03045ba0] component 1 1:1 id: 1 quant:1 [mjpeg @ 03045ba0] component 2 1:1 id: 2 quant:1 [mjpeg @ 03045ba0] pix fmt id 22111100