From nicolas.george at normalesup.org Sun Jul 1 00:29:06 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 1 Jul 2012 00:29:06 +0200 Subject: [FFmpeg-user] Rotating around arbitrary angle In-Reply-To: <4FEF6E28.4080909@googlemail.com> References: <4FEF6555.80304@googlemail.com> <4FEF6E28.4080909@googlemail.com> Message-ID: <20120630222905.GA10110@phare.normalesup.org> Le tridi 13 messidor, an CCXX, Marco Baumg?rtner a ?crit?: > There is, as I did not receive any reply. If you did not get an answer after, let us say, about a week, then you could have considered sending yourself a reply to remind people of your question. Expecting an answer in less than six hours, on a week-end at that, is rude. Reposting the very same message without explanation is rude. Starting a new thread when there is already one running is rude. 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 kalleernst at googlemail.com Sun Jul 1 01:21:46 2012 From: kalleernst at googlemail.com (=?ISO-8859-1?Q?Marco_Baumg=E4rtner?=) Date: Sun, 01 Jul 2012 01:21:46 +0200 Subject: [FFmpeg-user] Rotating around arbitrary angle In-Reply-To: <20120630222905.GA10110@phare.normalesup.org> References: <4FEF6555.80304@googlemail.com> <4FEF6E28.4080909@googlemail.com> <20120630222905.GA10110@phare.normalesup.org> Message-ID: <4FEF8A0A.1020300@googlemail.com> Am 01.07.2012 00:29, schrieb Nicolas George: > Le tridi 13 messidor, an CCXX, Marco Baumg?rtner a ?crit : >> There is, as I did not receive any reply. > If you did not get an answer after, let us say, about a week, then you could > have considered sending yourself a reply to remind people of your question. Oh I am sorry, you are mistaking me. You are mistaking me with someone who cares about an unsolicited lecture about how to post. From stefasab at gmail.com Sun Jul 1 01:28:34 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 1 Jul 2012 01:28:34 +0200 Subject: [FFmpeg-user] Rotating around arbitrary angle In-Reply-To: <4FEF144A.4060004@googlemail.com> References: <4FEF144A.4060004@googlemail.com> Message-ID: <20120630232834.GO3664@arborea> On date Saturday 2012-06-30 16:59:22 +0200, Marco Baumg?rtner encoded: > What is the command, and which version of FFMPEG is necessary, to > rotate a video around an arbitrary angle, meaning any angle that is > *not *0?, 90?, 270?, 180? That's currently not possible. Note that there are several implementations of a generic rotate filter which were never integrated, check the ffmpeg-devel archive or file a ticket if you're interested in its integration. -- ffmpeg-user random tip #24 *Read* the mailing lists rules before posting new messages: http://www.ffmpeg.org/mailinglists.html From kalleernst at googlemail.com Sun Jul 1 01:59:44 2012 From: kalleernst at googlemail.com (=?ISO-8859-1?Q?Marco_Baumg=E4rtner?=) Date: Sun, 01 Jul 2012 01:59:44 +0200 Subject: [FFmpeg-user] Rotating around arbitrary angle In-Reply-To: <20120630232834.GO3664@arborea> References: <4FEF144A.4060004@googlemail.com> <20120630232834.GO3664@arborea> Message-ID: <4FEF92F0.9070503@googlemail.com> Am 01.07.2012 01:28, schrieb Stefano Sabatini: > file a ticket if you're interested in its integration. Where do I file a ticket for it to be seen? From stefasab at gmail.com Sun Jul 1 10:42:50 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 1 Jul 2012 10:42:50 +0200 Subject: [FFmpeg-user] Rotating around arbitrary angle In-Reply-To: <4FEF92F0.9070503@googlemail.com> References: <4FEF144A.4060004@googlemail.com> <20120630232834.GO3664@arborea> <4FEF92F0.9070503@googlemail.com> Message-ID: <20120701084250.GP3664@arborea> On date Sunday 2012-07-01 01:59:44 +0200, Marco Baumg?rtner encoded: > Am 01.07.2012 01:28, schrieb Stefano Sabatini: > >file a ticket if you're interested in its integration. > > Where do I file a ticket for it to be seen? http://ffmpeg.org/trac/ffmpeg You must register before you can file a ticket. -- 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 da_audiophile at yahoo.com Sun Jul 1 14:13:10 2012 From: da_audiophile at yahoo.com (John) Date: Sun, 1 Jul 2012 05:13:10 -0700 (PDT) Subject: [FFmpeg-user] Does apple lossless in ffmpeg using apple code? Message-ID: <1341144790.59207.YahooMailNeo@web36601.mail.mud.yahoo.com> When I invoke ffmpeg with the -acodec alac switch, is the conversion using the Apple code (http://alac.macosforge.org/) or another?implementation? From fosters2 at cwjamaica.com Sun Jul 1 15:08:18 2012 From: fosters2 at cwjamaica.com (K.Foster Snr) Date: Sun, 01 Jul 2012 08:08:18 -0500 Subject: [FFmpeg-user] Current status of XVID Message-ID: <4FF04BC2.60409@cwjamaica.com> Does anyone have an update on this? Is there a current working version of libxvid available? Thanks, KF From cehoyos at ag.or.at Sun Jul 1 16:06:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 1 Jul 2012 14:06:01 +0000 (UTC) Subject: [FFmpeg-user] Does apple lossless in ffmpeg using apple code? References: <1341144790.59207.YahooMailNeo@web36601.mail.mud.yahoo.com> Message-ID: John yahoo.com> writes: > When I invoke ffmpeg with the -acodec alac switch, is the > conversion using the Apple code > (http://alac.macosforge.org/) or another?implementation? All codecs in FFmpeg are native implementations. (Note that the FFmpeg code is much older than Apple's source code release.) And yes, multichannel alac is not yet supported by FFmpeg (there is a patch). Carl Eugen From nicolas.george at normalesup.org Sun Jul 1 16:08:10 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 1 Jul 2012 16:08:10 +0200 Subject: [FFmpeg-user] Current status of XVID In-Reply-To: <4FF04BC2.60409@cwjamaica.com> References: <4FF04BC2.60409@cwjamaica.com> Message-ID: <20120701140810.GA5483@phare.normalesup.org> Le quartidi 14 messidor, an CCXX, K.Foster Snr a ?crit?: > Does anyone have an update on this? > Is there a current working version of libxvid available? Do you experience any problem currently? Last time I made a full build (about a week ago), it worked. You have to remember to only output to AVI or MP4, though, due to a problem with extradata. I have a workaround for that, but it did not get applied and I must rework it because of cosmetics changes from libav. 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 Sun Jul 1 16:07:22 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 1 Jul 2012 14:07:22 +0000 (UTC) Subject: [FFmpeg-user] Current status of XVID References: <4FF04BC2.60409@cwjamaica.com> Message-ID: K.Foster Snr cwjamaica.com> writes: > Does anyone have an update on this? > Is there a current working version of libxvid available? Wrong mailing list? This mailing list is for FFmpeg-users, FFmpeg != XVID (FFmpeg can use xvid as an external encoder, but it contains an independent MPEG-4 Part 2 implementation.) Carl Eugen From onemda at gmail.com Sun Jul 1 18:24:18 2012 From: onemda at gmail.com (Paul B Mahol) Date: Sun, 1 Jul 2012 16:24:18 +0000 Subject: [FFmpeg-user] Does apple lossless in ffmpeg using apple code? In-Reply-To: References: <1341144790.59207.YahooMailNeo@web36601.mail.mud.yahoo.com> Message-ID: On 7/1/12, Carl Eugen Hoyos wrote: > John yahoo.com> writes: > >> When I invoke ffmpeg with the -acodec alac switch, is the >> conversion using the Apple code >> (http://alac.macosforge.org/) or another implementation? > > All codecs in FFmpeg are native implementations. > (Note that the FFmpeg code is much older than Apple's source > code release.) > > And yes, multichannel alac is not yet supported by FFmpeg > (there is a patch). Also more than 16 bit is not supported by native alac encoder. From ib at wupperonline.de Mon Jul 2 00:39:32 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Mon, 02 Jul 2012 00:39:32 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug Message-ID: <4ff0d32b.733a6933.bm000@wupperonline.de> I use to convert ac3 (dolby) audio files using ffmpeg linked with a static version of lame to mp3 which was working fine so far. Since recently this doesn't work any longer. The mp3 output file seems ok, but does contain nothing but 0x55 blocks and thus is mute. A conversion from an other format (like wav) to mp3 works fine, so it can't be lame. Has anything changed recently that I've missed or is there a bug? Ingo -------------- next part -------------- $ ffmpeg -i Broadway-5.1-48khz-448kbit.ac3 -acodec libmp3lame -ab 128k -ac 2 test.mp3 2> log1 ffmpeg version git-2012-07-01-f7cba73 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 1 2012 17:27:19 with gcc 4.3.4 configuration: --prefix=/usr --enable-shared --disable-static --enable-pthreads --enable-gpl --enable-postproc --enable-libmp3lame --extra-cflags=-I/var/tmp/usr/include --extra-libs=-L/var/tmp/usr/lib --disable-protocol=ipv6 --disable-ffserver libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 31.100 / 54. 31.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [ac3 @ 0x93ee3c0] max_analyze_duration 5000000 reached at 5024000 [ac3 @ 0x93ee3c0] Estimating duration from bitrate, this may be inaccurate Input #0, ac3, from 'Broadway-5.1-48khz-448kbit.ac3': Duration: 00:00:33.98, start: 0.000000, bitrate: 448 kb/s Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s [graph 0 input from stream 0:0 @ 0x9449920] tb:1/90000 samplefmt:s16 samplerate:48000 chlayout:0x60f [auto-inserted resampler 0 @ 0x9462420] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:48000Hz Output #0, mp3, to 'test.mp3': Metadata: TSSE : Lavf54.14.100 Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (ac3 -> libmp3lame) Press [q] to stop, [?] for help size= 121kB time=00:00:07.68 bitrate= 128.8kbits/s size= 243kB time=00:00:15.50 bitrate= 128.4kbits/s size= 342kB time=00:00:21.81 bitrate= 128.3kbits/s size= 464kB time=00:00:29.66 bitrate= 128.2kbits/s size= 532kB time=00:00:33.98 bitrate= 128.2kbits/s video:0kB audio:531kB subtitle:0 global headers:0kB muxing overhead 0.077004% -------------- next part -------------- $ ffprobe test.mp3 2> log2 ffprobe version git-2012-07-01-f7cba73 Copyright (c) 2007-2012 the FFmpeg developers built on Jul 1 2012 17:27:19 with gcc 4.3.4 configuration: --prefix=/usr --enable-shared --disable-static --enable-pthreads --enable-gpl --enable-postproc --enable-libmp3lame --extra-cflags=-I/var/tmp/usr/include --extra-libs=-L/var/tmp/usr/lib --disable-protocol=ipv6 --disable-ffserver libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 31.100 / 54. 31.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mp3 @ 0x91ad4c0] max_analyze_duration 5000000 reached at 5016000 Input #0, mp3, from 'test.mp3': Metadata: encoder : Lavf54.14.100 Duration: 00:00:34.00, start: 0.000000, bitrate: 128 kb/s Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s From cehoyos at ag.or.at Mon Jul 2 01:11:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 1 Jul 2012 23:11:30 +0000 (UTC) Subject: [FFmpeg-user] ac3 to mp3 converting bug References: <4ff0d32b.733a6933.bm000@wupperonline.de> Message-ID: Ingo Br?ckl wupperonline.de> writes: > The mp3 output file seems ok, but does contain > nothing but 0x55 blocks and thus is mute. Does converting the sample to wav or mp2 work? Does it only fail for 5.1 or also for stereo samples? Is a specific 5.1 sample needed? Carl Eugen From ib at wupperonline.de Mon Jul 2 01:37:55 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Mon, 02 Jul 2012 01:37:55 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: Message-ID: <4ff0e068.2c0a7253.bm000@wupperonline.de> Carl Eugen Hoyos wrote on Sun, 1 Jul 2012 23:11:30 +0000 (UTC): > Ingo Br?ckl wupperonline.de> writes: >> The mp3 output file seems ok, but does contain >> nothing but 0x55 blocks and thus is mute. > Does converting the sample to wav or mp2 work? Yes, both work. > Does it only fail for 5.1 or also for stereo samples? > Is a specific 5.1 sample needed? It fails with all ac3 samples, 5.1, 2.1, 2.0 (monsters_inc_2.0_192.ac3, all samples from http://samples.mplayerhq.hu/A-codecs/AC3/). With TomorrowNeverDies-2.1-48khz-192kbit.ac3, but only with this one, I even get some errors: [ac3 @ 0x9d0e620] frame sync error Error while decoding stream #0:0: Operation not permitted [ac3 @ 0x9d0e620] frame CRC mismatch There are no error messages with the other samples. Ingo From phpdev at ehrhardt.nl Mon Jul 2 02:26:53 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 02 Jul 2012 02:26:53 +0200 Subject: [FFmpeg-user] Mangled sound when combining -acodec wmav2 -ar 44100 -ab 64k Message-ID: I am using ffmpeg to convert all kinds of video recordings to WMV-format. Until now we used one of Sherpya's builds. Result: http://elijst.nl/v512x288.php?clip=small Version: N-32754-g936d4d4-Sherpya When I tried to update to a newer ffmpeg, the transcoding seemed to go perfectly. The result of ffmpeg version N-41195-g8a0efa9 is here: http://elijst.nl/v512x288.php?clip=mangled To be sure that the Windows build was not the culprit, I compiled ffmpeg on our Centos 6 machine. The result was the same mangled audio as with the Windows build. See the FFmpeg output at the end of this message. Then I tried other input videos and in the end I even used the (correct) output of FFmpeg N-32754-g936d4d4-Sherpya as input for FFmpeg git-2012-07-01-aa1cceb. Result: the same mangled sound !? Most simple ffmpeg options with this effect: ffmpeg -i small.wmv -vcodec wmv2 -acodec wmav2 -ar 44100 -ab 64k mangled.wmv If I remove '-ar 44100' or '-ab 64k' everything goes fine. But I cannot combine them. This seems a bug to me, but if you know ways to combine -ar 44100 and -ab 64k anyway, I will feel obliged as well. BTW: -async 0 -vsync 0 did not make any difference. Source file if you want to try it: http://x32.elijst.nl/small.wmv And the one with the mangled sound: http://x32.elijst.nl/mangled.wmv Jan PS. Notice the difference between 64 kb/s and 63 kb/s for the input and output stream #0:1 below. # ffmpeg -i small.wmv -vcodec wmv2 -acodec wmav2 -ar 44100 -ab 64k -y mangled.wmv ffmpeg version git-2012-07-01-aa1cceb Copyright (c) 2000-2012 the FFmpeg developers built on Jul 1 2012 20:19:45 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3) configuration: --enable-static libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 31.100 / 54. 31.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, asf, from 'small.wmv': Metadata: encoder : Lavf53.12.0 Duration: 00:00:10.04, start: 0.000000, bitrate: 732 kb/s Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 512x288, 25 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 64 kb/s [graph 0 input from stream 0:0 @ 0x2b205e0] w:512 h:288 pixfmt:yuv420p tb:1/1000 fr:25/1 sar:0/1 sws_param:flags=2 [output stream 0:0 @ 0x2b20060] No opaque field provided [graph 1 input from stream 0:1 @ 0x2b28d40] tb:1/1000 samplefmt:s16 samplerate:44100 chlayout:0x3 Output #0, asf, to 'mangled.wmv': Metadata: WM/EncodingSettings: Lavf54.14.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 512x288, q=2-31, 200 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 63 kb/s Stream mapping: Stream #0:0 -> #0:0 (wmv2 -> wmv2) Stream #0:1 -> #0:1 (wmav2 -> wmav2) Press [q] to stop, [?] for help frame= 250 fps=0.0 q=11.9 Lsize= 582kB time=00:00:09.93 bitrate= 479.8kbits/s video:485kB audio:78kB subtitle:0 global headers:0kB muxing overhead 3.339020% From phpdev at ehrhardt.nl Mon Jul 2 02:58:44 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 02 Jul 2012 02:58:44 +0200 Subject: [FFmpeg-user] Mangled sound when combining -acodec wmav2 -ar 44100 -ab 64k References: Message-ID: Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Mon, 02 Jul 2012 02:26:53 +0200): >PS. Notice the difference between 64 kb/s and 63 kb/s for the input >and output stream #0:1 below. Seeing that, I tried -acodec wmav2 -ar 44100 -ab 65k. Works OK (and reports the output stream as 64 kb/s). Then I tried -acodec wmav2 -ar 44100 -ab 63k. Also works OK and reports the output stream as 62 kb/s. Only -acodec wmav2 -ar 44100 -ab 64k fails. Nu breekt mijn klomp, as we say here in Amsterdam. Jan From abhiram.kasuba at gmail.com Mon Jul 2 07:30:34 2012 From: abhiram.kasuba at gmail.com (abhiram.kasuba) Date: Sun, 1 Jul 2012 22:30:34 -0700 (PDT) Subject: [FFmpeg-user] How To Preserving Closed caption after converting a video In-Reply-To: <1340959133665-4651341.post@n4.nabble.com> References: <1340959133665-4651341.post@n4.nabble.com> Message-ID: <1341207034445-4651383.post@n4.nabble.com> I want a Command line which would preserver closed captions.. when i encode the video, the captions are lost!! Is there any option in ffmpeg to preserve the captions.. Or else Is there any option to embed the Closed captions (.srt or .sub files) to the encoded video!! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-To-Preserving-Closed-caption-after-converting-a-video-tp4651341p4651383.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ch.sureshkumar.24 at gmail.com Mon Jul 2 09:34:58 2012 From: ch.sureshkumar.24 at gmail.com (suresh kumar) Date: Mon, 2 Jul 2012 13:04:58 +0530 Subject: [FFmpeg-user] Multiple Video Recording In-Reply-To: References: Message-ID: Hi, Finally i got output for multiple video recording but now i am facing any one of the video is not sync with audio(For two recording). Let me know reason for not syncing properly. Video plays correctly but audio is problem. Were other video syncs properly. On Tue, Jun 26, 2012 at 9:57 PM, Roger Pack wrote: > > Source : video from webcam and audio from headset > > Yes ffmpeg working to capture. > > I combining this through live sources. > > Does ffmpeg itself work with combining it? The reality is I have no > idea though. Maybe one of the capture sources is blocking waiting for > frames to be read I don't know. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nichot20 at yahoo.com Mon Jul 2 10:51:14 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 02 Jul 2012 09:51:14 +0100 Subject: [FFmpeg-user] Using -filter_complex instead of lavfi with amerge hangs. In-Reply-To: <20120628195347.GA11766@phare.normalesup.org> References: <4FE97A39.80202@yahoo.com> <20120626105359.GA28978@phare.normalesup.org> <4FE9AC78.3050801@yahoo.com> <20120626141734.GB14816@phare.normalesup.org> <4FE9CA67.5080801@yahoo.com> <20120628103303.GA943@phare.normalesup.org> <4FEC697C.7060807@yahoo.com> <20120628195347.GA11766@phare.normalesup.org> Message-ID: <4FF16102.2090206@yahoo.com> On 28/06/12 20:53, Nicolas George wrote: > Le primidi 11 messidor, an CCXX, Tim Nicholson a ?crit : >> Which probably explains why -t appeared to work on a short clip (10secs) >> being made even shorter ( -t 5). The unwanted 5 seconds simply piled up >> in the buffer and then the transcode completed. However on a much longer >> clip eventually it ran out of memory and so failed to complete.... > > I believe that is it exactly. > >> Thanks for looking at it and the explanation. Perhaps we should document >> the fact that "-t" and "-filter_complex" are currently incompatible? > > I was writing a patch doing just that, I just pushed it. > Great! I have noted that commit on trac for completeness, > I have more time coming, I will start to seriously look into fixing that > batch of problems. > :) > Regards, >[..] -- Tim From harald.jordan at redstream.at Mon Jul 2 11:30:25 2012 From: harald.jordan at redstream.at (harald.jordan at redstream.at) Date: Mon, 02 Jul 2012 11:30:25 +0200 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery Message-ID: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> I am writing a export Plugin for Rhozet Carboncoder that delivers uncompressed YUV and PCM Frames to named pipes. There is one pipe for the YUV data and one for the Audio. The problem is, that the delivery of the YUV and PCM Frames is async. CarbonCoder delivers first 1 Audio sample that covers the next 120ms, then it delivers 3 video frames and so on.... In a testprogram where i deliver 40ms video, then 40ms audio and so on, everything works fine, but in the real program, ffmpeg blocks one of the pipes after like 80ms of delivered Material. My first guess was to specify input framerate for the audio like: -acodec s16le -ar 48000 -ac2 -r 8 -i \\.\pipe\audio But this doesnt seem to work. Is there any way to control the reading behaviour in a way i need it? From nichot20 at yahoo.com Mon Jul 2 11:34:56 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 02 Jul 2012 10:34:56 +0100 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? Message-ID: <4FF16B40.9070200@yahoo.com> Although we now have the "colormatrix" filter to convert between different YUV colorspace standards it occurs to me that it is not clear what matrixing is used by default when converting between YUV and RGB. A quick test using:- ffmpeg -i bars-601.mov -t 1 -an -r 1 %04d-601.png and an inspection of the resultant png shows RGB values of the bars to differ from the values expected if using the 601 matrix values, and even a grey scale has significant colour casting at certain levels. So it begs the question, what coefficients are being used by default? -- Tim From ffmpeg-list at dubistmeinheld.de Mon Jul 2 11:42:03 2012 From: ffmpeg-list at dubistmeinheld.de (Juan Garrido) Date: Mon, 2 Jul 2012 11:42:03 +0200 Subject: [FFmpeg-user] Does apple lossless in ffmpeg using apple code? In-Reply-To: References: <1341144790.59207.YahooMailNeo@web36601.mail.mud.yahoo.com> Message-ID: <201207021142.03078.ffmpeg-list@dubistmeinheld.de> > John yahoo.com> writes: > > When I invoke ffmpeg with the -acodec alac switch, is the > > conversion using the Apple code > > (http://alac.macosforge.org/) or another implementation? > > All codecs in FFmpeg are native implementations. > (Note that the FFmpeg code is much older than Apple's source > code release.) > > And yes, multichannel alac is not yet supported by FFmpeg > (there is a patch). > > Carl Eugen Is there a way to implement the codec from Apple to be used by ffmpeg? For instance like it's possible with --enable-libmp3lame. http://alac.macosforge.org/trac/wiki -> libalac From cehoyos at ag.or.at Mon Jul 2 11:53:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Jul 2012 09:53:06 +0000 (UTC) Subject: [FFmpeg-user] ac3 to mp3 converting bug References: <4ff0e068.2c0a7253.bm000@wupperonline.de> Message-ID: Ingo Br?ckl wupperonline.de> writes: > It fails with all ac3 samples, 5.1, 2.1, 2.0 (monsters_inc_2.0_192.ac3, > all samples from http://samples.mplayerhq.hu/A-codecs/AC3/). The following works fine here (output sounds fine): $ ffmpeg -i monsters_inc_2.0_192.ac3 -ab 128k -ac 2 out.mp3 ffmpeg version N-42108-gc4e0e74 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 2 2012 11:30:54 with gcc 4.2.1 (SUSE Linux) configuration: --enable-libmp3lame libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 31.100 / 54. 31.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 [ac3 @ 0x8ea03c0] max_analyze_duration 5000000 reached at 5024000 [ac3 @ 0x8ea03c0] Estimating duration from bitrate, this may be inaccurate Input #0, ac3, from 'monsters_inc_2.0_192.ac3': Duration: 00:00:30.01, start: 0.000000, bitrate: 192 kb/s Stream #0:0: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s [graph 0 input from stream 0:0 @ 0x8ee0300] tb:1/90000 samplefmt:s16 samplerate:48000 chlayout:0x3 Output #0, mp3, to 'out.mp3': Metadata: TSSE : Lavf54.14.100 Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (ac3 -> libmp3lame) Press [q] to stop, [?] for help size= 470kB time=00:00:30.02 bitrate= 128.2kbits/s video:0kB audio:470kB subtitle:0 global headers:0kB muxing overhead 0.087152% Carl Eugen From ib at wupperonline.de Mon Jul 2 12:07:35 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Mon, 02 Jul 2012 12:07:35 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: Message-ID: <4ff175fa.49dec7fb.bm000@wupperonline.de> Carl Eugen Hoyos wrote Mon, 2 Jul 2012 09:53:06 +0000 (UTC): > Ingo Br?ckl wupperonline.de> writes: >> It fails with all ac3 samples, 5.1, 2.1, 2.0 (monsters_inc_2.0_192.ac3, >> all samples from http://samples.mplayerhq.hu/A-codecs/AC3/). > The following works fine here (output sounds fine): > $ ffmpeg -i monsters_inc_2.0_192.ac3 -ab 128k -ac 2 out.mp3 Yes, sorry, my bad. It was late yesterday. I only listened a few seconds and only checked the top of the output file, but unfortunately it starts with a few seconds of silence. The 2.0 samples works here, too, (thx_2_0, for example, works as well). It seems that ac3 stereo is ok. What about the other samples on your PC? BTW, I'm surprised that it seems ok to omit -acodec libmp3lame. I'm sure ffmpeg complained needing this in the past. Ingo From cehoyos at ag.or.at Mon Jul 2 13:18:38 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Jul 2012 11:18:38 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Mangled_sound_when_combining_-acodec_wmav?= =?utf-8?q?2_-ar_44100=09-ab_64k?= References: Message-ID: Jan Ehrhardt ehrhardt.nl> writes: > To be sure that the Windows build was not the culprit, I compiled > ffmpeg on our Centos 6 machine. The result was the same mangled > audio as with the Windows build. Should be fixed, thank you for the useful report! Carl Eugen From fosters2 at cwjamaica.com Mon Jul 2 14:05:24 2012 From: fosters2 at cwjamaica.com (K.Foster Snr) Date: Mon, 02 Jul 2012 07:05:24 -0500 Subject: [FFmpeg-user] Current status of XVID In-Reply-To: <20120701140810.GA5483@phare.normalesup.org> References: <4FF04BC2.60409@cwjamaica.com> <20120701140810.GA5483@phare.normalesup.org> Message-ID: <4FF18E84.3050803@cwjamaica.com> On 07/01/2012 09:08 AM, Nicolas George wrote: > Le quartidi 14 messidor, an CCXX, K.Foster Snr a ?crit : >> Does anyone have an update on this? >> Is there a current working version of libxvid available? > Do you experience any problem currently? Last time I made a full build > (about a week ago), it worked. > > You have to remember to only output to AVI or MP4, though, due to a problem > with extradata. I have a workaround for that, but it did not get applied and > I must rework it because of cosmetics changes from libav. > > Regards, > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks Nicholas, but which xvid lib did you use? From ib at wupperonline.de Mon Jul 2 15:15:58 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Mon, 02 Jul 2012 15:15:58 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff0d32b.733a6933.bm000@wupperonline.de> Message-ID: <4ff19f12.593f19da.bm000@wupperonline.de> I wrote on Mon, 02 Jul 2012 00:39:32 +0200: > I use to convert ac3 (dolby) audio files using ffmpeg linked with a static > version of lame to mp3 which was working fine so far. Since recently this > doesn't work any longer. I've bisected it down to: fc49f22c3b735db5aaac5f98e40b7124a2be13b8 is the first bad commit commit fc49f22c3b735db5aaac5f98e40b7124a2be13b8 Author: Anton Khirnov Date: Sat May 5 18:22:46 2012 +0200 ffmpeg: add support for audio filters. Ingo From sebastian.tschoepel at iais.fraunhofer.de Mon Jul 2 17:33:12 2012 From: sebastian.tschoepel at iais.fraunhofer.de (=?iso-8859-1?Q?Tsch=F6pel=2C_Sebastian?=) Date: Mon, 2 Jul 2012 15:33:12 +0000 Subject: [FFmpeg-user] Problem with setting ffprobe writer options for xml output Message-ID: <2A17761F2EB57E4092EAD238CEA32B73152384FE@exchange-ms2.iais.fraunhofer.de> Hello List, I am currently trying to use FFProbe to ouput stream information as XML. When I use this command: ffprobe -v quiet -print_format xml -show_streams sample.mp3 I get something like this: According to the documentation it is also possible to get qualified and xsd compliant XML by passing the arguments: 'fully_qualified, q' 'xsd_compliant, x' to the writer. My problem is: I have no idea how to set those parameters. Having given the hint from the documentation "-print_format writer_name[=writer_options]" I tried various things such as: -print_format:x=1 xml -print_format xml:x=1 -print_format xml x=1 -print_foramt xml[x=1] ... How to set those arguments correctly? Hope someone can give me some hints on this. -- Best regards, Basti From rhodri at kynesim.co.uk Mon Jul 2 17:59:08 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Mon, 02 Jul 2012 16:59:08 +0100 Subject: [FFmpeg-user] Problem with setting ffprobe writer options for xml output In-Reply-To: <2A17761F2EB57E4092EAD238CEA32B73152384FE@exchange-ms2.iais.fraunhofer.de> References: <2A17761F2EB57E4092EAD238CEA32B73152384FE@exchange-ms2.iais.fraunhofer.de> Message-ID: On Mon, 02 Jul 2012 16:33:12 +0100, Tsch?pel, Sebastian wrote: > According to the documentation it is also possible to get qualified and > xsd compliant XML by passing the arguments: > > 'fully_qualified, q' > 'xsd_compliant, x' > > to the writer. > My problem is: I have no idea how to set those parameters. Having given > the hint from the documentation "-print_format > writer_name[=writer_options]" > > I tried various things such as: > > -print_format:x=1 xml > -print_format xml:x=1 > -print_format xml x=1 > -print_foramt xml[x=1] > ... The XML-specific documentation then states: 'This writer accepts options as a list of key=value pairs, separated by ":".' Did you try -print_format xml=x=1 or -print_format xml="x=1" if you're feeling paranoid? -- Rhodri James Kynesim Ltd From sebastian.tschoepel at iais.fraunhofer.de Mon Jul 2 18:06:36 2012 From: sebastian.tschoepel at iais.fraunhofer.de (=?utf-8?B?VHNjaMO2cGVsLCBTZWJhc3RpYW4=?=) Date: Mon, 2 Jul 2012 16:06:36 +0000 Subject: [FFmpeg-user] Problem with setting ffprobe writer options for xml output In-Reply-To: References: <2A17761F2EB57E4092EAD238CEA32B73152384FE@exchange-ms2.iais.fraunhofer.de> Message-ID: <2A17761F2EB57E4092EAD238CEA32B731523851F@exchange-ms2.iais.fraunhofer.de> Hello Rhodri James, thank you very much for your very quick reply! That actually has been the trick. -- Best regards, M. Sc. Sebastian Tsch?pel E-Mail | sebastian.tschoepel at iais.fraunhofer.de Web | http://www.iais.fraunhofer.de/ Tel. | +49 (0) 2241 14 2266 Postal | Fraunhofer IAIS | Schloss Birlinghoven | 53754 Sankt Augustin, Germany > -----Urspr?ngliche Nachricht----- > Von: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] Im Auftrag von Rhodri James > Gesendet: Montag, 2. Juli 2012 17:59 > An: FFmpeg user questions and RTFMs > Betreff: Re: [FFmpeg-user] Problem with setting ffprobe writer options > for xml output > > On Mon, 02 Jul 2012 16:33:12 +0100, Tsch?pel, Sebastian > wrote: > > > According to the documentation it is also possible to get qualified > and > > xsd compliant XML by passing the arguments: > > > > 'fully_qualified, q' > > 'xsd_compliant, x' > > > > to the writer. > > My problem is: I have no idea how to set those parameters. Having > given > > the hint from the documentation "-print_format > > writer_name[=writer_options]" > > > > I tried various things such as: > > > > -print_format:x=1 xml > > -print_format xml:x=1 > > -print_format xml x=1 > > -print_foramt xml[x=1] > > ... > > The XML-specific documentation then states: > > 'This writer accepts options as a list of key=value pairs, separated by > ":".' > > Did you try > > -print_format xml=x=1 > > or > > -print_format xml="x=1" > > if you're feeling paranoid? > > -- > Rhodri James > Kynesim Ltd > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From akshar_tank at yahoo.com Mon Jul 2 18:12:08 2012 From: akshar_tank at yahoo.com (tank pranav) Date: Mon, 2 Jul 2012 09:12:08 -0700 (PDT) Subject: [FFmpeg-user] need to convert LR to HR. Message-ID: <1341245528.74117.YahooMailNeo@web122501.mail.ne1.yahoo.com> Hi, I want to convert low resolution video (.avi) to high resolutoin (.avi) file. Can anyone please tell me What is the command in ffmpeg which can do this ? Thanks, Pranav. From misha.penkov at gmail.com Mon Jul 2 18:15:09 2012 From: misha.penkov at gmail.com (Misha Penkov) Date: Tue, 3 Jul 2012 01:15:09 +0900 Subject: [FFmpeg-user] need to convert LR to HR. In-Reply-To: <1341245528.74117.YahooMailNeo@web122501.mail.ne1.yahoo.com> References: <1341245528.74117.YahooMailNeo@web122501.mail.ne1.yahoo.com> Message-ID: On 3 July 2012 01:12, tank pranav wrote: > Hi, > > I want to convert low resolution video (.avi) to high resolutoin (.avi) file. > > Can anyone please tell me What is the command in ffmpeg which can do this ? ffmpeg -i in.avi -s 1920x1280 out.avi http://ffmpeg.org/ffmpeg.html#Video-size > Thanks, > Pranav. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From avsn9849625263 at hotmail.com Mon Jul 2 20:02:44 2012 From: avsn9849625263 at hotmail.com (Murthy avsn) Date: Mon, 2 Jul 2012 23:32:44 +0530 Subject: [FFmpeg-user] Transition between two videos Message-ID: Hi everyone, I am trying to add two mp4s and I am able to do this.Question: Do any one have an Idea how to add a transition between two videos using ffmpeg alone.Can I use any filter to do this. Thank you in advance From nicolas.george at normalesup.org Mon Jul 2 21:02:47 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 2 Jul 2012 21:02:47 +0200 Subject: [FFmpeg-user] Current status of XVID In-Reply-To: <4FF18E84.3050803@cwjamaica.com> References: <4FF04BC2.60409@cwjamaica.com> <20120701140810.GA5483@phare.normalesup.org> <4FF18E84.3050803@cwjamaica.com> Message-ID: <20120702190247.GA2284@phare.normalesup.org> Le quintidi 15 messidor, an CCXX, K.Foster Snr a ?crit?: > Thanks Nicholas, but which xvid lib did you use? Version 1.3.2, either built from source or using Debian packages. Maybe you should be starting explaining your problem instead of asking people who do not have them to explain them. 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 samosa_chaat at yahoo.com Tue Jul 3 05:13:49 2012 From: samosa_chaat at yahoo.com (BhelPuri) Date: Mon, 2 Jul 2012 20:13:49 -0700 (PDT) Subject: [FFmpeg-user] video to image sequence conversion problem Message-ID: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> I'm trying to convert a HD video (1920x1088 H264, 29.97fps) into an image sequence with downsampling (to 5 fps). I used the following: ffmpeg -i myMovie.mov -r 5 -f image2 foo-%05d.tif I later process the resulting tif image sequence to track an oscillatory motion. However I'm not sure if the downsampled image sequence is being done right as it seems to be progressively out of sync with the motion. I'm not sure how to interpret the output displayed in the format- frame=? xxx fps=yyy q=0.0 size= 0kB time=ttt bitrate= 0.0kbits/s where the number yyy varies throughout (0, 7.8 thru 14.0) Could someone explain why the frames are out of sync and how I should be correcting for that? Thanks, SC From nicolas.george at normalesup.org Tue Jul 3 09:49:41 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Tue, 3 Jul 2012 09:49:41 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff0d32b.733a6933.bm000@wupperonline.de> References: <4ff0d32b.733a6933.bm000@wupperonline.de> Message-ID: <20120703074941.GA29929@phare.normalesup.org> Le quintidi 15 messidor, an CCXX, Ingo Br?ckl a ?crit?: > I use to convert ac3 (dolby) audio files using ffmpeg linked with a static > version of lame to mp3 which was working fine so far. Since recently this > doesn't work any longer. The mp3 output file seems ok, but does contain > nothing but 0x55 blocks and thus is mute. A conversion from an other format > (like wav) to mp3 works fine, so it can't be lame. > $ ffmpeg -i Broadway-5.1-48khz-448kbit.ac3 -acodec libmp3lame -ab 128k -ac 2 test.mp3 2> log1 I can see no problem with that exact command line and a fresh build. The output MP3 starts with 3+ seconds of silence, but so does the input AC3 file. Can you be more precise about your test protocol and build environment? 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 symadept at gmail.com Tue Jul 3 11:45:30 2012 From: symadept at gmail.com (Symadept) Date: Tue, 3 Jul 2012 17:45:30 +0800 Subject: [FFmpeg-user] ffplay build errors In-Reply-To: References: Message-ID: Hi, I got the ffmpeg module compiled under 32 bit and then trying to port ffplay onto NaCl environment and I realized the following issues. /home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/bin/i686-nacl-gcc -o ffplay_32.o -c ffplay.c -m32 -O0 -g -pthread -Wno-long-long -Wall -Wswitch-enum `/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/bin/sdl-config --cflags` ffplay.c:26:30: error: libavformat/rtsp.h: No such file or directory ffplay.c:29:37: error: libavcodec/audioconvert.h: No such file or directory I didn't understand what to change in the nacl-ffmpeg-0.5.sh, to get these modules published. I tried --enable-demuxer=rtsp, but its of no use. Has anyone faced the same issue. Any thoughts on this. Regards Mustafa Shaik From symadept at gmail.com Tue Jul 3 11:45:30 2012 From: symadept at gmail.com (Symadept) Date: Tue, 3 Jul 2012 17:45:30 +0800 Subject: [FFmpeg-user] ffplay build errors In-Reply-To: References: Message-ID: Hi, I got the ffmpeg module compiled under 32 bit and then trying to port ffplay onto NaCl environment and I realized the following issues. /home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/bin/i686-nacl-gcc -o ffplay_32.o -c ffplay.c -m32 -O0 -g -pthread -Wno-long-long -Wall -Wswitch-enum `/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/bin/sdl-config --cflags` ffplay.c:26:30: error: libavformat/rtsp.h: No such file or directory ffplay.c:29:37: error: libavcodec/audioconvert.h: No such file or directory I didn't understand what to change in the nacl-ffmpeg-0.5.sh, to get these modules published. I tried --enable-demuxer=rtsp, but its of no use. Has anyone faced the same issue. Any thoughts on this. Regards Mustafa Shaik From ib at wupperonline.de Tue Jul 3 12:42:47 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Tue, 03 Jul 2012 12:42:47 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120703074941.GA29929@phare.normalesup.org> Message-ID: <4ff2cd96.4a538f9f.bm000@wupperonline.de> Nicolas George wrote on Tue, 3 Jul 2012 09:49:41 +0200: > Le quintidi 15 messidor, an CCXX, Ingo Br?ckl a ?crit?: >> I use to convert ac3 (dolby) audio files using ffmpeg linked with a static >> version of lame to mp3 which was working fine so far. Since recently this >> doesn't work any longer. The mp3 output file seems ok, but does contain >> nothing but 0x55 blocks and thus is mute. A conversion from an other format >> (like wav) to mp3 works fine, so it can't be lame. >> $ ffmpeg -i Broadway-5.1-48khz-448kbit.ac3 -acodec libmp3lame -ab 128k -ac 2 test.mp3 2> log1 > I can see no problem with that exact command line and a fresh build. The > output MP3 starts with 3+ seconds of silence, but so does the input AC3 > file. > Can you be more precise about your test protocol and build environment? Sure. What information would you need? As stated in my other posting, I've bisected it down to commit fc49f22c3b735db5aaac5f98e40b7124a2be13b8 and could confirm now that it actually created the bug. After checking out to it and reverting the change to ffmpeg.c everything is fine again. Unfortunately, this patch is big and I'm not familiar with ffmpeg so I can't find the issue by myself, but I can assist in whatever is needed to track down the problem. Ingo From ibantxo28 at gmail.com Tue Jul 3 13:19:56 2012 From: ibantxo28 at gmail.com (Iban Garcia) Date: Tue, 3 Jul 2012 13:19:56 +0200 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: <4FE42890.7040101@yahoo.com> References: <4FE42890.7040101@yahoo.com> Message-ID: Hi Tim, thanks for your help... I am trying with -interl option... Working after some days free... ;-) From Vignan at NDTV.COM Tue Jul 3 13:25:13 2012 From: Vignan at NDTV.COM (Vignan Kumar) Date: Tue, 3 Jul 2012 11:25:13 +0000 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: References: <4FE42890.7040101@yahoo.com> Message-ID: Hi, Can you plz send me the complete command. I want to do the same but not working. Thanks Vignan -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Iban Garcia Sent: Tuesday, July 03, 2012 4:50 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? Hi Tim, thanks for your help... I am trying with -interl option... Working after some days free... ;-) _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Have you got an NDTV app? Free downloads for iPhone, iPad, Android, Blackberry & Windows Phone at http://ndtv.com/apps From nicolas.george at normalesup.org Tue Jul 3 13:38:00 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Tue, 3 Jul 2012 13:38:00 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff2cd96.4a538f9f.bm000@wupperonline.de> References: <20120703074941.GA29929@phare.normalesup.org> <4ff2cd96.4a538f9f.bm000@wupperonline.de> Message-ID: <20120703113800.GA17372@phare.normalesup.org> Le sextidi 16 messidor, an CCXX, Ingo Br?ckl a ?crit?: > Sure. What information would you need? All you can give on how to reproduce the problem. Bissecting the history is premature, as I currently can not confirm that a bug exists. 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 ibantxo28 at gmail.com Tue Jul 3 16:22:13 2012 From: ibantxo28 at gmail.com (Iban Garcia) Date: Tue, 3 Jul 2012 16:22:13 +0200 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: References: <4FE42890.7040101@yahoo.com> Message-ID: Hi Vignan, I am making some tests in DVCPRO50 now. The commands I am using are next ones: #---------------------------------------------------------------------------------- $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"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1,fieldorder=tff\" -vcodec dvvideo -an ".$output_file.".dv"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1\" -sws_flags lanczos -vcodec dvvideo -an ".$output_file.".dv"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1\" -vcodec dvvideo -an ".$output_file.".dv"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1:unsharp=7:7:2.5\" -vcodec dvvideo -an ".$output_file.".dv"; Please, tell me any advance in your tests. I am looking for the best procedure to convert from 1080i to DVCPRO50 (50i)... but by now, in the 'downscaling' process I get some quality problems... Thanks Iban 2012/7/3 Vignan Kumar > Hi, > > Can you plz send me the complete command. I want to do the same but not > working. > > Thanks > Vignan > > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto: > ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Iban Garcia > Sent: Tuesday, July 03, 2012 4:50 PM > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? > > Hi Tim, thanks for your help... I am trying with -interl option... > > Working after some days free... ;-) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Have you got an NDTV app? Free downloads for iPhone, iPad, Android, > Blackberry & Windows Phone at http://ndtv.com/apps > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ibantxo28 at gmail.com Tue Jul 3 16:34:43 2012 From: ibantxo28 at gmail.com (Iban Garcia) Date: Tue, 3 Jul 2012 16:34:43 +0200 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: References: <4FE42890.7040101@yahoo.com> Message-ID: CORRECTION: #---------------------------------------------------------------------------------- $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"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1,fieldorder=tff\" -vcodec dvvideo -an ".$output_file.".dv"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1\" -sws_flags lanczos -vcodec dvvideo -an ".$output_file.".dv"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1\" -vcodec dvvideo -an ".$output_file.".dv"; #---------------------------------------------------------------------------------- $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1:unsharp=7:7:2.5\" -vcodec dvvideo -an ".$output_file.".dv"; $comando="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p -aspect 16:9 -vf \"scale=720:576:interl=1,unsharp=7:7:2.5\" -vcodec dvvideo -an ".$output_file.".dv"; <---------------------------- 2012/7/3 Iban Garcia > Hi Vignan, > > I am making some tests in DVCPRO50 now. The commands I am using are next > ones: > > > #---------------------------------------------------------------------------------- > $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"; > > #---------------------------------------------------------------------------------- > $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p > -aspect 16:9 -vf \"scale=720:576:interl=1,fieldorder=tff\" -vcodec dvvideo > -an ".$output_file.".dv"; > > #---------------------------------------------------------------------------------- > $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p > -aspect 16:9 -vf \"scale=720:576:interl=1\" -sws_flags lanczos -vcodec > dvvideo -an ".$output_file.".dv"; > > #---------------------------------------------------------------------------------- > $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p > -aspect 16:9 -vf \"scale=720:576:interl=1\" -vcodec dvvideo -an > ".$output_file.".dv"; > > #---------------------------------------------------------------------------------- > $comand="ffmpeg -y -threads 8 -i ".$input_file.".mxf -pix_fmt yuv422p > -aspect 16:9 -vf \"scale=720:576:interl=1:unsharp=7:7:2.5\" -vcodec dvvideo > -an ".$output_file.".dv"; > > > Please, tell me any advance in your tests. I am looking for the best > procedure to convert from 1080i to DVCPRO50 (50i)... but by now, in the > 'downscaling' process I get some quality problems... > > Thanks > > Iban > > > > > > > 2012/7/3 Vignan Kumar > >> Hi, >> >> Can you plz send me the complete command. I want to do the same but not >> working. >> >> Thanks >> Vignan >> >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto: >> ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Iban Garcia >> Sent: Tuesday, July 03, 2012 4:50 PM >> To: FFmpeg user questions and RTFMs >> Subject: Re: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 >> DV? >> >> Hi Tim, thanks for your help... I am trying with -interl option... >> >> Working after some days free... ;-) >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> Have you got an NDTV app? Free downloads for iPhone, iPad, Android, >> Blackberry & Windows Phone at http://ndtv.com/apps >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From phpdev at ehrhardt.nl Tue Jul 3 17:04:49 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Tue, 03 Jul 2012 17:04:49 +0200 Subject: [FFmpeg-user] Mangled sound when combining -acodec wmav2 -ar 44100 -ab 64k References: Message-ID: Carl Eugen Hoyos in gmane.comp.video.ffmpeg.user (Mon, 2 Jul 2012 11:18:38 +0000 (UTC)): >Should be fixed, thank you for the useful report! My pleasure. Did you file a bug, so I can follow the progress? BTW: I did a global search and replace on my test scripts to replace '-ab 64k' with '-ab 65k', ran one of the scripts and got mangled sound once again. OK, abitrate=64 had to be replaced by abitrate=65 as well ;) -- Jan From ib at wupperonline.de Tue Jul 3 17:34:43 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Tue, 03 Jul 2012 17:34:43 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120703113800.GA17372@phare.normalesup.org> Message-ID: <4ff3188b.3349ad67.bm000@wupperonline.de> Nicolas George wrote on Tue, 3 Jul 2012 13:38:00 +0200: > Le sextidi 16 messidor, an CCXX, Ingo Br?ckl a ?crit?: >> Sure. What information would you need? > All you can give on how to reproduce the problem. I'm afraid there is hardly more I can tell than I already did in my postings or you can see from the logs. The only thing that might be unusual with my PC is an old CPU, AMD Athlon. Is there some assembler code that is in effect now and wasn't before and has some SSE1-only related issues? Would the output files or the statically linked ffmpeg be of any help? > Bissecting the history is premature, as I currently can not confirm that a > bug exists. But I can reproduce that it is this very commit that causes the problems. Prior to that patch, no problems, after the patch, a mute output file with lots of 0x55 in it. Ingo From andyqos at ukfsn.org Tue Jul 3 18:40:54 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Tue, 03 Jul 2012 17:40:54 +0100 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: References: <4FE42890.7040101@yahoo.com> Message-ID: <4FF32096.1010400@ukfsn.org> Iban Garcia wrote: > CORRECTION: > > #---------------------------------------------------------------------------------- > $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"; > #---------------------------------------------------------------------------------- Why do you need to use dv? The problem with dv is that the standard says bff - it's possible to encode tff with it, but on playback any player will assume bff - so if you deinterlace/use a hw player it will look juddery. If you use a software player like mplayer and override with -field-dominance 0 you can make it look OK. I did a quick test with the command above and on 1080i h264 it produced loads of dups - to fix needed -r 25 before outfile. While it didn't look too bad, that may have been luck to do with the source. Also I didn't look closely enough to see what was going on with chroma. Generally interlaced video is softened vertically to avoid interline twitter, though this may not be needed as much if you are not playing on a true interlaced display. Even without interlace, video is usually softened somewhat below display res (kell factor) though as this is 16:9 anamorphic I suppose it doesn't matter, but is something to keep in mind when scaling down if you are seeing artifacts. From andyqos at ukfsn.org Tue Jul 3 19:03:50 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Tue, 03 Jul 2012 18:03:50 +0100 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: <4FF32096.1010400@ukfsn.org> References: <4FE42890.7040101@yahoo.com> <4FF32096.1010400@ukfsn.org> Message-ID: <4FF325F6.5080508@ukfsn.org> Andy Furniss wrote: > While it didn't look too bad, that may have been luck to do with the > source. Also I didn't look closely enough to see what was going on with > chroma. Looking closer it's not OK, there are chroma errors I can see frame stepping with mplayer yadif=1 -field-dominance 0. From andyqos at ukfsn.org Tue Jul 3 20:09:35 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Tue, 03 Jul 2012 19:09:35 +0100 Subject: [FFmpeg-user] Best way for converting HD 1080i to DVCPRO25 DV? In-Reply-To: <4FF325F6.5080508@ukfsn.org> References: <4FE42890.7040101@yahoo.com> <4FF32096.1010400@ukfsn.org> <4FF325F6.5080508@ukfsn.org> Message-ID: <4FF3355F.80509@ukfsn.org> Andy Furniss wrote: > Andy Furniss wrote: > >> While it didn't look too bad, that may have been luck to do with the >> source. Also I didn't look closely enough to see what was going on with >> chroma. > > Looking closer it's not OK, there are chroma errors I can see frame > stepping with mplayer yadif=1 -field-dominance 0. Ignore that, chroma looks OK weaved. I think the conversion back to 420 that yadif needs is possibly messing things up and/or the fact that the motion was fast enough to totally separate the detail. From andrew.dennis at bydeluxe.com Tue Jul 3 22:37:35 2012 From: andrew.dennis at bydeluxe.com (Andrew Dennis) Date: Tue, 3 Jul 2012 13:37:35 -0700 Subject: [FFmpeg-user] image2 Demuxer Issue Message-ID: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Pardon me if this has been addressed recently, but I can't find the answer anywhere. Hopefully, someone has solved this problem. I'm trying to convert a bunch of images from .dpx to .jpg. I have a set of images that are named as follows: image.0001.dpx image.0002.dpx image.0003.dpx image.0004.dpx .................... image.0125.dpx When I run the following command I get an error "No such file or directory". ffmpeg -i image.%04d.dpx image.%04d.jpg The problem appears to be the first '.' If it's any other character like '_', image_0001.dpx, it works fine. I've tried all the tricks I know to get it to work, but nothing has worked. Oddly enough, I can't find any example that shows how to handle this, so I'm wondering if it's even possible. Thanks A This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email and any attachments is strictly prohibited. If you receive this email in error, please immediately notify the sender by return email and permanently delete the original, any copy and any printout thereof. The integrity and security of e-mail cannot be guaranteed. From jshupert at pps-inc.com Tue Jul 3 22:46:07 2012 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 03 Jul 2012 16:46:07 -0400 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Message-ID: <4FF35A0F.80803@pps-inc.com> I'm trying to convert a bunch of images from .dpx to .jpg. I wonder if you might be more satisfied with imagemagik convert http://www.imagemagick.org From jacob at jacobharris.org Tue Jul 3 22:58:02 2012 From: jacob at jacobharris.org (Jacob Harris) Date: Tue, 3 Jul 2012 13:58:02 -0700 Subject: [FFmpeg-user] dnxhd error in different versions In-Reply-To: References: Message-ID: It works with -pix_fmt yuv422p Thanks! On Fri, Jun 29, 2012 at 3:26 PM, Carl Eugen Hoyos wrote: > Jacob Harris jacobharris.org> writes: > > > [scale @ 0x1209a3a0] w:1920 h:1080 fmt:rgb24 sar:0/1 -> w:1920 h:1080 > > fmt:yuv422p10le sar:0/1 flags:0x4 > > [dnxhd @ 0x120867a0] video parameters incompatible with DNxHD > > Is this also reproducible with current git head? > > Please try -pix_fmt yuv422p > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mbradshaw at sorensonmedia.com Tue Jul 3 23:10:24 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 3 Jul 2012 15:10:24 -0600 Subject: [FFmpeg-user] dnxhd error in different versions In-Reply-To: References: Message-ID: On Fri, Jun 29, 2012 at 4:26 PM, Carl Eugen Hoyos wrote: > Jacob Harris jacobharris.org> writes: > >> [scale @ 0x1209a3a0] w:1920 h:1080 fmt:rgb24 sar:0/1 -> w:1920 h:1080 >> fmt:yuv422p10le sar:0/1 flags:0x4 >> [dnxhd @ 0x120867a0] video parameters incompatible with DNxHD > > Is this also reproducible with current git head? > > Please try -pix_fmt yuv422p I think I've seen this before on this list (that is, getting the error "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height" and adding pix_fmt fixes it). What do you think, Carl, of adding "or pix_fmt" to the error message as a hint to the user? It seems common enough of an issue to me. Thanks, Michael From onemda at gmail.com Tue Jul 3 23:31:55 2012 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 3 Jul 2012 21:31:55 +0000 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Message-ID: On 7/3/12, Andrew Dennis wrote: > Pardon me if this has been addressed recently, but I can't find the answer > anywhere. > Hopefully, someone has solved this problem. > > I'm trying to convert a bunch of images from .dpx to .jpg. > > I have a set of images that are named as follows: > image.0001.dpx > image.0002.dpx > image.0003.dpx > image.0004.dpx > .................... > image.0125.dpx > > > When I run the following command I get an error "No such file or > directory". > > ffmpeg -i image.%04d.dpx image.%04d.jpg > > The problem appears to be the first '.' If it's any other character like > '_', image_0001.dpx, it works fine. I can't reproduce issue, what OS and what ffmpeg version are you using? From andrew.dennis at bydeluxe.com Tue Jul 3 23:52:20 2012 From: andrew.dennis at bydeluxe.com (Andrew Dennis) Date: Tue, 3 Jul 2012 14:52:20 -0700 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Message-ID: <785F584FAFE582458C7081AB280266CA065CC225FA@VA3DIAXVS841.RED001.local> > I can't reproduce issue, what OS and what ffmpeg version are you using? OS: Centos 5 ffmpeg: 0.11.1 A > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Paul B Mahol > Sent: Tuesday, July 03, 2012 2:32 PM > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] image2 Demuxer Issue > > On 7/3/12, Andrew Dennis wrote: > > Pardon me if this has been addressed recently, but I can't find the > answer > > anywhere. > > Hopefully, someone has solved this problem. > > > > I'm trying to convert a bunch of images from .dpx to .jpg. > > > > I have a set of images that are named as follows: > > image.0001.dpx > > image.0002.dpx > > image.0003.dpx > > image.0004.dpx > > .................... > > image.0125.dpx > > > > > > When I run the following command I get an error "No such file or > > directory". > > > > ffmpeg -i image.%04d.dpx image.%04d.jpg > > > > The problem appears to be the first '.' If it's any other character > like > > '_', image_0001.dpx, it works fine. > > I can't reproduce issue, what OS and what ffmpeg version are you using? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email and any attachments is strictly prohibited. If you receive this email in error, please immediately notify the sender by return email and permanently delete the original, any copy and any printout thereof. The integrity and security of e-mail cannot be guaranteed. From onemda at gmail.com Tue Jul 3 23:57:33 2012 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 3 Jul 2012 21:57:33 +0000 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: <785F584FAFE582458C7081AB280266CA065CC225FA@VA3DIAXVS841.RED001.local> References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> <785F584FAFE582458C7081AB280266CA065CC225FA@VA3DIAXVS841.RED001.local> Message-ID: On 7/3/12, Andrew Dennis wrote: > >> I can't reproduce issue, what OS and what ffmpeg version are you using? > > OS: Centos 5 > ffmpeg: 0.11.1 Wild guess: try with another shell. From mbradshaw at sorensonmedia.com Tue Jul 3 23:57:36 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 3 Jul 2012 15:57:36 -0600 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Message-ID: On Tue, Jul 3, 2012 at 2:37 PM, Andrew Dennis wrote: > When I run the following command I get an error "No such file or directory". Please provide complete, uncut command and console output. Also, consider trying with current git head. --Michael From andrew.dennis at bydeluxe.com Wed Jul 4 01:21:30 2012 From: andrew.dennis at bydeluxe.com (Andrew Dennis) Date: Tue, 3 Jul 2012 16:21:30 -0700 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Message-ID: <785F584FAFE582458C7081AB280266CA065CC225FC@VA3DIAXVS841.RED001.local> I have another set using the underscore that runs perfectly. Complete output: $ /usr/local/bin/ffmpeg -i image.%04d.dpx /tmp/_rp/bob.%04d.jpg ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 3 2012 22:24:29 with gcc 4.6.1 configuration: --enable-libx264 --enable-gpl --disable-yasm --disable-asm 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 image.%04d.dpx: No such file or directory Thanks, A > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Michael Bradshaw > Sent: Tuesday, July 03, 2012 2:58 PM > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] image2 Demuxer Issue > > On Tue, Jul 3, 2012 at 2:37 PM, Andrew Dennis > wrote: > > When I run the following command I get an error "No such file or > directory". > > Please provide complete, uncut command and console output. > > Also, consider trying with current git head. > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email and any attachments is strictly prohibited. If you receive this email in error, please immediately notify the sender by return email and permanently delete the original, any copy and any printout thereof. The integrity and security of e-mail cannot be guaranteed. From symadept at gmail.com Wed Jul 4 04:06:21 2012 From: symadept at gmail.com (Symadept) Date: Wed, 4 Jul 2012 10:06:21 +0800 Subject: [FFmpeg-user] ffplay build errors In-Reply-To: References: Message-ID: Can anyone help me on this. Looks like I need to enable few modules to resolve this issue. Regards Mustafa Shaik On Tue, Jul 3, 2012 at 5:45 PM, Symadept wrote: > Hi, > I got the ffmpeg module compiled under 32 bit and then trying to port > ffplay onto NaCl environment and I realized the following issues. > > /home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/bin/i686-nacl-gcc > -o ffplay_32.o -c ffplay.c -m32 -O0 -g -pthread -Wno-long-long -Wall > -Wswitch-enum > `/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/bin/sdl-config > --cflags` > > ffplay.c:26:30: error: libavformat/rtsp.h: No such file or directory > ffplay.c:29:37: error: libavcodec/audioconvert.h: No such file or directory > > I didn't understand what to change in the nacl-ffmpeg-0.5.sh, to get > these modules published. I tried --enable-demuxer=rtsp, but its of no use. > > Has anyone faced the same issue. Any thoughts on this. > > Regards > Mustafa Shaik > > From symadept at gmail.com Wed Jul 4 04:06:21 2012 From: symadept at gmail.com (Symadept) Date: Wed, 4 Jul 2012 10:06:21 +0800 Subject: [FFmpeg-user] ffplay build errors In-Reply-To: References: Message-ID: Can anyone help me on this. Looks like I need to enable few modules to resolve this issue. Regards Mustafa Shaik On Tue, Jul 3, 2012 at 5:45 PM, Symadept wrote: > Hi, > I got the ffmpeg module compiled under 32 bit and then trying to port > ffplay onto NaCl environment and I realized the following issues. > > /home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/bin/i686-nacl-gcc > -o ffplay_32.o -c ffplay.c -m32 -O0 -g -pthread -Wno-long-long -Wall > -Wswitch-enum > `/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/bin/sdl-config > --cflags` > > ffplay.c:26:30: error: libavformat/rtsp.h: No such file or directory > ffplay.c:29:37: error: libavcodec/audioconvert.h: No such file or directory > > I didn't understand what to change in the nacl-ffmpeg-0.5.sh, to get > these modules published. I tried --enable-demuxer=rtsp, but its of no use. > > Has anyone faced the same issue. Any thoughts on this. > > Regards > Mustafa Shaik > > From ubitux at gmail.com Wed Jul 4 10:13:15 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 4 Jul 2012 10:13:15 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff3188b.3349ad67.bm000@wupperonline.de> References: <20120703113800.GA17372@phare.normalesup.org> <4ff3188b.3349ad67.bm000@wupperonline.de> Message-ID: <20120704081315.GB10650@leki> On Tue, Jul 03, 2012 at 05:34:43PM +0200, Ingo Br?ckl wrote: > Nicolas George wrote on Tue, 3 Jul 2012 13:38:00 +0200: > > > Le sextidi 16 messidor, an CCXX, Ingo Br?ckl a ?crit?: > >> Sure. What information would you need? > > > All you can give on how to reproduce the problem. > > I'm afraid there is hardly more I can tell than I already did in my postings What do you use for playback for instance (ffplay, MPlayer?) Also, since you mentioned the *static* libmp3lame, is the issue reproducible with a shared version? Is that only reproducible with AC3 ? MP3? Can you try with, let's say flac or a libvorbis? > or you can see from the logs. The only thing that might be unusual with my PC > is an old CPU, AMD Athlon. Is there some assembler code that is in effect now > and wasn't before and has some SSE1-only related issues? > > Would the output files or the statically linked ffmpeg be of any help? > It could, eventually. > > Bissecting the history is premature, as I currently can not confirm that a > > bug exists. > > But I can reproduce that it is this very commit that causes the problems. > Prior to that patch, no problems, after the patch, a mute output file with > lots of 0x55 in it. > Monster's Inc samples, as well as Broadway start with silence anyway, what about TomorrowNeverDies-2.1-48khz-192kbit.ac3? Like the others I can't reproduce the issue as well. It's not about not believing the issue does not exist and doesn't come from this commit, but more about how to reproduce the bug so we can understand what's wrong in that particular commit (thanks for bisecting). -- 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 ib at wupperonline.de Wed Jul 4 15:19:43 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Wed, 04 Jul 2012 15:19:43 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120704081315.GB10650@leki> Message-ID: <4ff44637.0a6f7664.bm000@wupperonline.de> Cl?ment Boesch wrote on Wed, 4 Jul 2012 10:13:15 +0200: >> > Le sextidi 16 messidor, an CCXX, Ingo Br?ckl a ?crit?: >> >> Sure. What information would you need? >> >> > All you can give on how to reproduce the problem. >> >> I'm afraid there is hardly more I can tell than I already did in my >> postings > What do you use for playback for instance (ffplay, MPlayer?) MPlayer, but that shouldn't make a difference, because the mp3 output file only consists of large 0x55 blocks as stated earlier. This hardly is any converted audio data. (Don't know if it's typical for silence though.) > Also, since you mentioned the *static* libmp3lame, is the issue > reproducible with a shared version? Oops, a shared libmp3lame segfaults! Program received signal SIGSEGV, Segmentation fault. 0xb7ed87cd in count_bits () from /usr/lib/libmp3lame.so.0 This happens with non-2.0 ac3 like monsters_inc_5.1_448.ac3, but not with 2.0 ac3 like monsters_inc_2.0_192.ac3, for example. Configuring lame with --enable-debug=alot leads to: Program received signal SIGFPE, Arithmetic exception. 0xb7ec4f64 in lame_encode_buffer_template (gfp=, buffer_l=0x8f26520, buffer_r=0x8f26522, nsamples=1152, mp3buf=0x8f2794c "", mp3buf_size=10792, pcm_type=pcm_short_type, aa=2, norm=1) at lame.c:1882 1882 lame_copy_inbuffer(gfc, buffer_l, buffer_r, nsamples, pcm_type, aa, norm); and a backtrace prints: #0 0xb7ec4f64 in lame_encode_buffer_template (gfp=, buffer_l=0x8f26520, buffer_r=0x8f26522, nsamples=1152, mp3buf=0x8f2794c "", mp3buf_size=10792, pcm_type=pcm_short_type, aa=2, norm=1) at lame.c:1882 #1 0xb7ec52e6 in lame_encode_buffer_interleaved (gfp=0x8f7df88, pcm=0x8f26520, nsamples=1152, mp3buf=0x8f2794c "", mp3buf_size=10792) at lame.c:1995 #2 0x0846a007 in encode_frame_int16 (nb_samples=, samples=, s=) at libavcodec/libmp3lame.c:165 #3 mp3lame_encode_frame (avctx=0x8f78560, avpkt=0xbffff01c, frame=0x8f26300, got_packet_ptr=0xbffff160) at libavcodec/libmp3lame.c:209 #4 0x085aad20 in avcodec_encode_audio2 (avctx=0x8f78560, avpkt=0xbffff01c, frame=0x8f26300, got_packet_ptr=0x8fccd28) at libavcodec/utils.c:1147 #5 0x08094b92 in do_audio_out (frame=, ost=, s=) at ffmpeg.c:1583 #6 poll_filters () at ffmpeg.c:1990 #7 0x08098143 in transcode () at ffmpeg.c:3671 #8 main (argc=-487877, argv=0x0) at ffmpeg.c:5962 > Is that only reproducible with AC3 --> MP3? Can you try with, let's say > flac or a libvorbis? I've neither installed flac nor vorbis libraries on my PC, but could do so if that'd help (please tell me). On the other side, we've already established that converting to wav or mp2 works fine, so it seems to be related to mp3 output only. > Monster's Inc samples, as well as Broadway start with silence anyway, what > about TomorrowNeverDies-2.1-48khz-192kbit.ac3? A completely mute file as well and, in addition, some errors (with static lame, shared lame crashing): [ac3 @ 0x9ab2620] frame sync error Error while decoding stream #0:0: Operation not permitted [ac3 @ 0x9ab2620] frame CRC mismatch > Like the others I can't reproduce the issue as well. It's not about not > believing the issue does not exist and doesn't come from this commit, I'm wondering what this commit changes in process with otherwise identical libraries. Ingo From ib at wupperonline.de Wed Jul 4 15:41:11 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Wed, 04 Jul 2012 15:41:11 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff44637.0a6f7664.bm000@wupperonline.de> Message-ID: <4ff44834.735ec6ee.bm000@wupperonline.de> I wrote on Wed, 04 Jul 2012 15:19:43 +0200: > Cl?ment Boesch wrote on Wed, 4 Jul 2012 10:13:15 +0200: >> Is that only reproducible with AC3 --> MP3? Can you try with, let's say >> flac or a libvorbis? > I've neither installed flac nor vorbis libraries on my PC, Seems, I don't have to. Converting to test.ogg works (like wav and mp2 do). Ingo From ubitux at gmail.com Wed Jul 4 15:53:16 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 4 Jul 2012 15:53:16 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff44637.0a6f7664.bm000@wupperonline.de> References: <20120704081315.GB10650@leki> <4ff44637.0a6f7664.bm000@wupperonline.de> Message-ID: <20120704135316.GC10650@leki> On Wed, Jul 04, 2012 at 03:19:43PM +0200, Ingo Br?ckl wrote: > Cl?ment Boesch wrote on Wed, 4 Jul 2012 10:13:15 +0200: > > >> > Le sextidi 16 messidor, an CCXX, Ingo Br?ckl a ?crit?: > >> >> Sure. What information would you need? > >> > >> > All you can give on how to reproduce the problem. > >> > >> I'm afraid there is hardly more I can tell than I already did in my > >> postings > > > What do you use for playback for instance (ffplay, MPlayer?) > > MPlayer, but that shouldn't make a difference, because the mp3 output file > only consists of large 0x55 blocks as stated earlier. This hardly is any > converted audio data. (Don't know if it's typical for silence though.) > > > Also, since you mentioned the *static* libmp3lame, is the issue > > reproducible with a shared version? > > Oops, a shared libmp3lame segfaults! > > Program received signal SIGSEGV, Segmentation fault. > 0xb7ed87cd in count_bits () from /usr/lib/libmp3lame.so.0 > > This happens with non-2.0 ac3 like monsters_inc_5.1_448.ac3, but not with 2.0 > ac3 like monsters_inc_2.0_192.ac3, for example. > > Configuring lame with --enable-debug=alot leads to: > > Program received signal SIGFPE, Arithmetic exception. > 0xb7ec4f64 in lame_encode_buffer_template (gfp=, > buffer_l=0x8f26520, buffer_r=0x8f26522, nsamples=1152, > mp3buf=0x8f2794c "", mp3buf_size=10792, pcm_type=pcm_short_type, aa=2, > norm=1) at lame.c:1882 > 1882 lame_copy_inbuffer(gfc, buffer_l, buffer_r, nsamples, pcm_type, aa, norm); > > and a backtrace prints: > > #0 0xb7ec4f64 in lame_encode_buffer_template (gfp=, > buffer_l=0x8f26520, buffer_r=0x8f26522, nsamples=1152, > mp3buf=0x8f2794c "", mp3buf_size=10792, pcm_type=pcm_short_type, aa=2, > norm=1) at lame.c:1882 > #1 0xb7ec52e6 in lame_encode_buffer_interleaved (gfp=0x8f7df88, > pcm=0x8f26520, nsamples=1152, mp3buf=0x8f2794c "", mp3buf_size=10792) > at lame.c:1995 > #2 0x0846a007 in encode_frame_int16 (nb_samples=, > samples=, s=) at libavcodec/libmp3lame.c:165 > #3 mp3lame_encode_frame (avctx=0x8f78560, avpkt=0xbffff01c, frame=0x8f26300, > got_packet_ptr=0xbffff160) at libavcodec/libmp3lame.c:209 > #4 0x085aad20 in avcodec_encode_audio2 (avctx=0x8f78560, avpkt=0xbffff01c, > frame=0x8f26300, got_packet_ptr=0x8fccd28) at libavcodec/utils.c:1147 > #5 0x08094b92 in do_audio_out (frame=, ost=, > s=) at ffmpeg.c:1583 > #6 poll_filters () at ffmpeg.c:1990 > #7 0x08098143 in transcode () at ffmpeg.c:3671 > #8 main (argc=-487877, argv=0x0) at ffmpeg.c:5962 > Are you sure the problem is not in your libmp3lame copy? Valgrind doesn't notice anything here (libmp3lame 3.99.5), and my output is fine. > > Is that only reproducible with AC3 --> MP3? Can you try with, let's say > > flac or a libvorbis? > > I've neither installed flac nor vorbis libraries on my PC, but could do so > if that'd help (please tell me). On the other side, we've already established > that converting to wav or mp2 works fine, so it seems to be related to mp3 > output only. > Ok. Note that FLAC encoder is native, you don't need to install anything. > > Monster's Inc samples, as well as Broadway start with silence anyway, what > > about TomorrowNeverDies-2.1-48khz-192kbit.ac3? > > A completely mute file as well and, in addition, some errors (with static > lame, shared lame crashing): > > [ac3 @ 0x9ab2620] frame sync error > Error while decoding stream #0:0: Operation not permitted > [ac3 @ 0x9ab2620] frame CRC mismatch > > > Like the others I can't reproduce the issue as well. It's not about not > > believing the issue does not exist and doesn't come from this commit, > > I'm wondering what this commit changes in process with otherwise identical > libraries. This commit makes the audio processing passing through libavfilter (even if you don't use it); maybe the code path being totally different is more likely to trigger the issue (totally different stack, heap, etc). -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From mike.scheutzow at alcatel-lucent.com Wed Jul 4 16:31:48 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Wed, 04 Jul 2012 10:31:48 -0400 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF16B40.9070200@yahoo.com> References: <4FF16B40.9070200@yahoo.com> Message-ID: <4FF453D4.1020907@alcatel-lucent.com> Tim Nicholson wrote: > Although we now have the "colormatrix" filter to convert between > different YUV colorspace standards it occurs to me that it is not clear > what matrixing is used by default when converting between YUV and RGB. > > A quick test using:- > > ffmpeg -i bars-601.mov -t 1 -an -r 1 %04d-601.png > > and an inspection of the resultant png shows RGB values of the bars to > differ from the values expected if using the 601 matrix values, and even > a grey scale has significant colour casting at certain levels. > > So it begs the question, what coefficients are being used by default? As near as I can tell from the code, and from the command: ./ffmpeg -i test.mov -vframes 1 out%d.png the default colorspace for yuv->rgb conversion is: /* ITU-R Rec. 624-4 System B, G */ This is chosen in sws_getContext() in libswscale/utils.c. I found no way to select a different colorspace from the ./ffmpeg command line. Mike Scheutzow From andyqos at ukfsn.org Wed Jul 4 17:10:02 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Wed, 04 Jul 2012 16:10:02 +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> Message-ID: <4FF45CCA.30503@ukfsn.org> 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 f.s.tabataba81 at gmail.com Wed Jul 4 17:12:01 2012 From: f.s.tabataba81 at gmail.com (farzaneh tabataba) Date: Wed, 4 Jul 2012 19:42:01 +0430 Subject: [FFmpeg-user] mpeg4 with 4:2:2 colorspace Message-ID: Hi I am trying to encode an AVI file, via mpeg4 codec( with VBR qscale 1) My source file Chroma subsampling is: 4:2:2, while chroma subsampling for the coded file is 4:2:0. How can I preserve the chroma subsampling ratio? I want it remains 4:2:2 after compression. Thanks From tom_a_sparks at yahoo.com.au Wed Jul 4 17:36:02 2012 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Wed, 4 Jul 2012 08:36:02 -0700 (PDT) Subject: [FFmpeg-user] Rolling shutter artifact Message-ID: <1341416162.55314.YahooMailNeo@web120406.mail.ne1.yahoo.com> I am wondering if there is a way to remove Rolling shutter artifact from videos using ffmpeg? ? --- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html Ubuntu wiki page https://wiki.ubuntu.com/tomsparks 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 Premium Edition, AF 2012 Plus Edition, Sam440 AOS 4.1.2, Roland DXY-1300 pen plotter, Cutok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (6502/68k/PPC only) From mbradshaw at sorensonmedia.com Wed Jul 4 17:39:10 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Wed, 4 Jul 2012 09:39:10 -0600 Subject: [FFmpeg-user] mpeg4 with 4:2:2 colorspace In-Reply-To: References: Message-ID: On Wed, Jul 4, 2012 at 9:12 AM, farzaneh tabataba wrote: > Hi > > I am trying to encode an AVI file, via mpeg4 codec( with VBR qscale 1) > > My source file Chroma subsampling is: 4:2:2, while chroma subsampling for > the coded file is 4:2:0. > How can I preserve the chroma subsampling ratio? I want it remains 4:2:2 > after compression. I think MPEG-4 Part 2 only supports YUV420. --Michael From nichot20 at yahoo.com Wed Jul 4 18:20:44 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Wed, 04 Jul 2012 17:20:44 +0100 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF453D4.1020907@alcatel-lucent.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> Message-ID: <4FF46D5C.10101@yahoo.com> On 04/07/12 15:31, Mike Scheutzow wrote: > Tim Nicholson wrote: >> Although we now have the "colormatrix" filter to convert between >> different YUV colorspace standards it occurs to me that it is not clear >> what matrixing is used by default when converting between YUV and RGB. >> >> A quick test using:- >> >> ffmpeg -i bars-601.mov -t 1 -an -r 1 %04d-601.png >> >> and an inspection of the resultant png shows RGB values of the bars to >> differ from the values expected if using the 601 matrix values, and even >> a grey scale has significant colour casting at certain levels. >> >> So it begs the question, what coefficients are being used by default? > > As near as I can tell from the code, and from the command: > > ./ffmpeg -i test.mov -vframes 1 out%d.png > > the default colorspace for yuv->rgb conversion is: > > /* ITU-R Rec. 624-4 System B, G */ > > This is chosen in sws_getContext() in libswscale/utils.c. > Ahh I wondered where it was... Thanks I have been looking at libswscale/yuv2rgb.c and noticed that 601 wasn't even defined in the list of coefficients there. However I am struggling to understand the coefficients as listed there as they don't match any figures I am use to, and there are 4 of them not the expected three, as per libavfilter/vf_colormatrix > I found no way to select a different colorspace from the ./ffmpeg > command line. > No, unfortunately, and also the colormatrix filter doesn't allow conversion to that standard either, which would have been a workaround. If I could relate the coefficients as defined in the two files above I might be able to add 634/smpte 170m (they use the same values) to colormatrix to provide a workaround... > > Mike Scheutzow >[...] -- Tim From ffmpeg at schmaili.com Wed Jul 4 18:41:56 2012 From: ffmpeg at schmaili.com (Marc) Date: Wed, 04 Jul 2012 18:41:56 +0200 Subject: [FFmpeg-user] merging mp4 (h.264) and aac with acodec copy doesn't work Message-ID: <4FF47254.7020208@schmaili.com> Hello! I have a mp4 video clip (h.264) and a aac audio clip and try to merge them together with ffmpeg "'.$videotrack.'" -i "'.$audiotrack2.'" -vcodec copy -acodec copy "'.$targetFile.'" but it doesn't work. Only a very small target file is created (28 kb instead of about 16 mb) which is corrupt. It only works if I replace the copy parameter with the aac audio codec. But I need this for a very time critical project so I do not want to reencode it because this takes too much time. Is it impossible to merge together a mp4 (h.264) video track and a aac audio track together with the copy parameter? If so, is there a workaround for it? Best regards Marc From ffmpeg at schmaili.com Wed Jul 4 19:03:24 2012 From: ffmpeg at schmaili.com (Marc) Date: Wed, 04 Jul 2012 19:03:24 +0200 Subject: [FFmpeg-user] merging mp4 (h.264) and aac with acodec copy doesn't work In-Reply-To: <4FF47254.7020208@schmaili.com> References: <4FF47254.7020208@schmaili.com> Message-ID: <4FF4775C.8060602@schmaili.com> Meanwhile I found a "workaround". It's makable with MP4box. So obvioulsy there cannot be kind of a technical impossibility (header construction or kind of that) to merge this two formats together. But I am still interested in this point because I have great experiences with ffmpeg. Best regards Marc Am 04.07.2012 18:41, schrieb Marc: > Hello! > > I have a mp4 video clip (h.264) and a aac audio clip and try to merge > them together with > > ffmpeg "'.$videotrack.'" -i "'.$audiotrack2.'" -vcodec copy -acodec > copy "'.$targetFile.'" > > but it doesn't work. Only a very small target file is created (28 kb > instead of about 16 mb) which is corrupt. It only works if I replace > the copy parameter with the aac audio codec. But I need this for a > very time critical project so I do not want to reencode it because > this takes too much time. Is it impossible to merge together a mp4 > (h.264) video track and a aac audio track together with the copy > parameter? If so, is there a workaround for it? > > Best regards > Marc > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From f.s.tabataba81 at gmail.com Wed Jul 4 19:12:15 2012 From: f.s.tabataba81 at gmail.com (farzaneh tabataba) Date: Wed, 4 Jul 2012 21:42:15 +0430 Subject: [FFmpeg-user] mpeg4 with 4:2:2 colorspace In-Reply-To: References: Message-ID: Thanks michael, How can I become sure ? On Wed, Jul 4, 2012 at 8:09 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Wed, Jul 4, 2012 at 9:12 AM, farzaneh tabataba > wrote: > > Hi > > > > I am trying to encode an AVI file, via mpeg4 codec( with VBR qscale 1) > > > > My source file Chroma subsampling is: 4:2:2, while chroma subsampling for > > the coded file is 4:2:0. > > How can I preserve the chroma subsampling ratio? I want it remains > 4:2:2 > > after compression. > > I think MPEG-4 Part 2 only supports YUV420. > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mbradshaw at sorensonmedia.com Wed Jul 4 19:16:28 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Wed, 4 Jul 2012 11:16:28 -0600 Subject: [FFmpeg-user] mpeg4 with 4:2:2 colorspace In-Reply-To: References: Message-ID: On Wed, Jul 4, 2012 at 11:12 AM, farzaneh tabataba wrote: > Thanks michael, How can I become sure ? Well, the FFmpeg mpeg4 encoder certainly only supports YUV420P (line 1352 of http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/mpeg4videoenc.c;h=411f4365dc5376a0dd2c249cb2c07a933f1590ec;hb=HEAD). But I think that's because the MPEG4 Part 2 standard only allows yuv420. I haven't read it though, so I can't say with total confidence. From f.s.tabataba81 at gmail.com Wed Jul 4 19:18:12 2012 From: f.s.tabataba81 at gmail.com (farzaneh tabataba) Date: Wed, 4 Jul 2012 21:48:12 +0430 Subject: [FFmpeg-user] mpeg4 with 4:2:2 colorspace In-Reply-To: References: Message-ID: really thanks :) On Wed, Jul 4, 2012 at 9:46 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Wed, Jul 4, 2012 at 11:12 AM, farzaneh tabataba > wrote: > > Thanks michael, How can I become sure ? > > Well, the FFmpeg mpeg4 encoder certainly only supports YUV420P (line > 1352 of > http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/mpeg4videoenc.c;h=411f4365dc5376a0dd2c249cb2c07a933f1590ec;hb=HEAD > ). > But I think that's because the MPEG4 Part 2 standard only allows > yuv420. I haven't read it though, so I can't say with total > confidence. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ib at wupperonline.de Wed Jul 4 19:24:37 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Wed, 04 Jul 2012 19:24:37 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120704135316.GC10650@leki> Message-ID: <4ff47cab.5fa1fc1d.bm000@wupperonline.de> Cl?ment Boesch wrote on Wed, 4 Jul 2012 15:53:16 +0200: > Are you sure the problem is not in your libmp3lame copy? Well, the only thing I can do is configure, make, make install. There is a make test, but that didn't seem to do much. BTW, I compile everthing by myself. I could upload my libmp3lame.a somewhere, would this be of any help? (Or maybe I could try yours?) > This commit makes the audio processing passing through libavfilter (even > if you don't use it); maybe the code path being totally different is more > likely to trigger the issue (totally different stack, heap, etc). Is there a way to force the old (or any other) behaviour? Ingo From rhodri at kynesim.co.uk Wed Jul 4 19:35:36 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Wed, 04 Jul 2012 18:35:36 +0100 Subject: [FFmpeg-user] mpeg4 with 4:2:2 colorspace In-Reply-To: References: Message-ID: [Top-posting edited to restore the flow of conversation.] On Wed, 04 Jul 2012 18:12:15 +0100, farzaneh tabataba wrote: > On Wed, Jul 4, 2012 at 8:09 PM, Michael Bradshaw < > mbradshaw at sorensonmedia.com> wrote: > >> On Wed, Jul 4, 2012 at 9:12 AM, farzaneh tabataba >> wrote: >> > Hi >> > >> > I am trying to encode an AVI file, via mpeg4 codec( with VBR qscale 1) >> > >> > My source file Chroma subsampling is: 4:2:2, while chroma subsampling >> for >> > the coded file is 4:2:0. >> > How can I preserve the chroma subsampling ratio? I want it remains >> 4:2:2 >> > after compression. >> >> I think MPEG-4 Part 2 only supports YUV420. >> > Thanks michael, How can I become sure ? > You buy a copy of the ISO/IEC 14496-2:2004 standard, turn to page xiv of the Introduction, and read the section headed "Chrominance formats". Or you could trust us :-) In fact MPEG-4 Part 2 Studio Profiles do support 4:2:2 and 4:4:4, but I'm not aware of any decoders that understand those profiles. -- Rhodri James Kynesim Ltd From james.darnley at gmail.com Wed Jul 4 20:19:44 2012 From: james.darnley at gmail.com (James Darnley) Date: Wed, 04 Jul 2012 20:19:44 +0200 Subject: [FFmpeg-user] merging mp4 (h.264) and aac with acodec copy doesn't work In-Reply-To: <4FF47254.7020208@schmaili.com> References: <4FF47254.7020208@schmaili.com> Message-ID: <4FF48940.4060703@gmail.com> On 2012-07-04 18:41, Marc wrote: > ffmpeg "'.$videotrack.'" -i "'.$audiotrack2.'" -vcodec copy -acodec > copy "'.$targetFile.'" This probably doesn't work because you're missing -i before one of the input files. From ubitux at gmail.com Wed Jul 4 20:19:59 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 4 Jul 2012 20:19:59 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff47cab.5fa1fc1d.bm000@wupperonline.de> References: <20120704135316.GC10650@leki> <4ff47cab.5fa1fc1d.bm000@wupperonline.de> Message-ID: <20120704181959.GE10650@leki> On Wed, Jul 04, 2012 at 07:24:37PM +0200, Ingo Br?ckl wrote: > Cl?ment Boesch wrote on Wed, 4 Jul 2012 15:53:16 +0200: > > > Are you sure the problem is not in your libmp3lame copy? > > Well, the only thing I can do is configure, make, make install. There is > a make test, but that didn't seem to do much. BTW, I compile everthing by > myself. > You are using the stable 3.99.5 right? It should be provided with a lame program you could test. Can you run a valgrind before & after the -af patch? It might give more information. > I could upload my libmp3lame.a somewhere, would this be of any help? (Or > maybe I could try yours?) > I'm not sure that's a good idea, I don't think it will be portable. > > This commit makes the audio processing passing through libavfilter (even > > if you don't use it); maybe the code path being totally different is more > > likely to trigger the issue (totally different stack, heap, etc). > > Is there a way to force the old (or any other) behaviour? > I dont think so. -- 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 highgod0401 at gmail.com Thu Jul 5 02:43:13 2012 From: highgod0401 at gmail.com (=?GB2312?B?uN/OsA==?=) Date: Thu, 5 Jul 2012 08:43:13 +0800 Subject: [FFmpeg-user] Hi, has anyone do any reaserch on hareware acceleration of MPEG4-part2?I want to add this API in ffmpeg, but I don't where to get in.Thanks Message-ID: From ale.schenberg at gmail.com Thu Jul 5 09:49:36 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Thu, 5 Jul 2012 04:49:36 -0300 Subject: [FFmpeg-user] Compiling failure Message-ID: "common.mak:17: *** unterminated call to function `foreach': missing `)'. Stop." That it is the error message I receive, after entering "make" Any ideas? From ubitux at gmail.com Thu Jul 5 09:56:02 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 5 Jul 2012 09:56:02 +0200 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: Message-ID: <20120705075602.GH10650@leki> On Thu, Jul 05, 2012 at 04:49:36AM -0300, Alexandre Schenberg wrote: > "common.mak:17: *** unterminated call to function `foreach': missing > `)'. Stop." > > That it is the error message I receive, after entering "make" > > Any ideas? Yes, try to: git config --global core.autocrlf false ...and re-clone the repository. -- 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 ale.schenberg at gmail.com Thu Jul 5 10:08:40 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Thu, 5 Jul 2012 05:08:40 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: <20120705075602.GH10650@leki> References: <20120705075602.GH10650@leki> Message-ID: Thanskf, but I don't have git. Any other way? 2012/7/5, Cl?ment B?sch : > On Thu, Jul 05, 2012 at 04:49:36AM -0300, Alexandre Schenberg wrote: >> "common.mak:17: *** unterminated call to function `foreach': missing >> `)'. Stop." >> >> That it is the error message I receive, after entering "make" >> >> Any ideas? > > Yes, try to: > > git config --global core.autocrlf false > > ...and re-clone the repository. > > -- > Cl?ment B. > From erling at traduflex.dk Thu Jul 5 11:47:44 2012 From: erling at traduflex.dk (Erling Groenlund) Date: Thu, 05 Jul 2012 11:47:44 +0200 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds Message-ID: <4FF562C0.1040206@traduflex.dk> Hi, Since this mail forum is intended for general user questions, I am posting my question here - but as I am new to the mail forum and unsure how it works, please forgive me if I am posting this incorrectly or in the wrong place! I use the Windows builds of FFMPEG and have made a front end application which issues a command string of the form: 'ffmpeg -report -y -i concat:"data0001.ts|data0002.ts" -vol 456 -deinterlace -vtag DIVX -f avi -vcodec mpeg4 -aspect 16:9 -s 720x576 -b:v 2000000 -acodec libmp3lame -ab 192000 -ar 48000 -ac 2 -async 48000 ' The front end regularly polls the last line of the log file created with the -report option to track the progress of video conversions. This has worked very well with previous builds, where the last line would nearly always read something of the form 'frame=96926 fps=189 q=4.4 size= 1039951kB time=01:04:38.40 bitrate=2196.6kbits/s' making it easy to track the current progress of a conversion. However, when using the most recent Zerrano builds (from 2012-06-08 git-718607b and on), I have noticed that these 'progress lines' are interspersed by a very high number of nearly identical lines of the form '[mpegts @ 0235e420] first_dts 4802459367 not matching first dts 4812529287 in que' and consequently the last line now only very rarely contains any progress information, and the log files easily grow to many MBs in size. It should be noted that the actual conversion still works fine and yields excellent results, and the problem seems to be merely a reporting issue with the latest builds. Is there any way to modify the command line so I can get rid of these (rather superfluous) error lines in the log file while still being able to retrieve the progress information? Please let me know if I should provide additional information. And again, if I am posting this in the wrong place or in the wrong way I apologize, but it seemed the only right place to do it. Sincerely, Erling G., Denmark From ib at wupperonline.de Thu Jul 5 11:44:33 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Thu, 05 Jul 2012 11:44:33 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120704181959.GE10650@leki> Message-ID: <4ff563e4.4ba36b34.bm000@wupperonline.de> Cl?ment Boesch wrote on Wed, 4 Jul 2012 20:19:59 +0200: > Can you run a valgrind before & after the -af patch? It might give more > information. I haven't used valgrind before, but it actually seems to hint to the problem: vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x61 0xC2 ==16881== valgrind: Unrecognised instruction at address 0x8791031. ==16881== at 0x8791031: ??? (audio_convert.asm:387) And, indeed, after compiling ffmpeg with --disable-yasm everything is fine again. On Tue, 03 Jul 2012 17:34:43 I've asked: > Is there some assembler code that is in effect now and wasn't before and > has some SSE1-only related issues? It seems that something like that might be the case with my AMD Athlon XP. Is that enough information to fix the bug or shall I provide further information? Ingo From mike.scheutzow at alcatel-lucent.com Thu Jul 5 15:03:47 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Thu, 05 Jul 2012 09:03:47 -0400 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF46D5C.10101@yahoo.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> Message-ID: <4FF590B3.1000700@alcatel-lucent.com> Tim Nicholson wrote: > If I could relate the coefficients as defined in the two files above I > might be able to add 634/smpte 170m (they use the same values) to > colormatrix to provide a workaround... Did you look at the ff_yuv2rgb_coeffs[] table? The comments imply that it already defines 170m. But the sws api doesn't seem to give you an easy way to select it. You could change SWS_CS_DEFAULT and recompile, if you're willing to maintain a private build. Mike Scheutzow From mike.scheutzow at alcatel-lucent.com Thu Jul 5 15:19:09 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Thu, 05 Jul 2012 09:19:09 -0400 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: Message-ID: <4FF5944D.50300@alcatel-lucent.com> Alexandre Schenberg wrote: > "common.mak:17: *** unterminated call to function `foreach': missing > `)'. Stop." > > That it is the error message I receive, after entering "make" > > Any ideas? I vaguely remember that this is the error message you get when your version of gnu make is too old. ffmpeg requires 3.81 or later. In the past, this workaround worked: make V=1 but I have no idea if it is still effective with current git. You'll save yourself a bunch of development pain by getting the more capable version of make. Mike Scheutzow From dan at streemit.net Thu Jul 5 15:20:28 2012 From: dan at streemit.net (Dan M) Date: Thu, 05 Jul 2012 08:20:28 -0500 Subject: [FFmpeg-user] Transcoding a stream to Wowza through ffmpeg Message-ID: <4FF5949C.50304@streemit.net> I have a remote server sending an MPEG2 stream to my ffmpeg machine. My ffmpeg machine is grabbing the stream, transcoding it, and sending it on to another machine running Wowza. The process is partially working. As a first step towards getting this workflow running I configured ffmpeg to grab the stream, transcode it, and write to a disk file. I'm doing this with: ffmpeg -strict -2 -i udp://@:5000 -acodec mp2 -ac 2 -b:v 8000k -ar 48k -async 1 -bufsize 3M -s 720x480 -r 31.67 -vcodec libx264 -y -f mp4 output.mp4 The command I'm using and the output lines that appear are in the file at http://pastebin.com/LYjxaCZG. But to summarize, I get: [mpegts @ 0x133eec0] Unable to seek back to the start [mpeg2video @ 0x134f3c0] mpeg_decode_postinit() failure Last message repeated 6 times [mpegts @ 0x133eec0] max_analyze_duration 5000000 reached at 5016000 [mpegts @ 0x133eec0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from 'udp://@:5000': Duration: N/A, start: 35652.634867, bitrate: 8224 kb/s Program 1 Stream #0:0[0x44]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 8000 kb/s, 31.01 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x45]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 224 kb/s [buffer @ 0x16a0320] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:8/9 sws_param: [libx264 @ 0x1354d40] VBV maxrate unspecified, assuming CBR [libx264 @ 0x1354d40] using SAR=8/9 [libx264 @ 0x1354d40] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1354d40] profile High, level 3.1 [libx264 @ 0x1354d40] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=8000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=8000 vbv_bufsize=3000 nal_hrd=none ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf53.32.100 Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=-1--1, 8000 kb/s, 3167 tbn, 31.67 tbc Stream #0:1: Audio: mp2 (i[0][0][0] / 0x0069), 48000 Hz, 2 channels, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Stream #0:1 -> #0:1 (mp2 -> mp2) Press [q] to stop, [?] for help [mpeg2video @ 0x134f3c0] warning: first frame is no keyframe Last message repeated 1 times circular_buffer: OVERRUN.0 size= 2581kB time=00:00:02.68 bitrate=7876.8kbits/s dup=15 drop=0 PES packet size mismatch.0 size= 9309kB time=00:00:10.13 bitrate=7523.6kbits/s dup=28 drop=0 When the "PES packet size mismatch" error occurs the output file stops growing. I'm assuming that I'm specifying some invalid parameters in my command line. Any pointers on what I might be doing wrong? From ubitux at gmail.com Thu Jul 5 15:23:50 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 5 Jul 2012 15:23:50 +0200 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <20120705075602.GH10650@leki> Message-ID: <20120705132350.GJ10650@leki> On Thu, Jul 05, 2012 at 05:08:40AM -0300, Alexandre Schenberg wrote: > Thanskf, but I don't have git. Any other way? > How did you get the source? BTW, I guess you are on windows right? [...] -- 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 michaelni at gmx.at Thu Jul 5 15:43:18 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Thu, 5 Jul 2012 15:43:18 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff563e4.4ba36b34.bm000@wupperonline.de> References: <20120704181959.GE10650@leki> <4ff563e4.4ba36b34.bm000@wupperonline.de> Message-ID: <20120705134318.GA5245@kiste2> On Thu, Jul 05, 2012 at 11:44:33AM +0200, Ingo Br?ckl wrote: > Cl?ment Boesch wrote on Wed, 4 Jul 2012 20:19:59 +0200: > > > Can you run a valgrind before & after the -af patch? It might give more > > information. > > I haven't used valgrind before, but it actually seems to hint to the problem: > > vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x61 0xC2 > ==16881== valgrind: Unrecognised instruction at address 0x8791031. > ==16881== at 0x8791031: ??? (audio_convert.asm:387) > > And, indeed, after compiling ffmpeg with --disable-yasm everything is fine > again. > > On Tue, 03 Jul 2012 17:34:43 I've asked: > > > Is there some assembler code that is in effect now and wasn't before and > > has some SSE1-only related issues? > > It seems that something like that might be the case with my AMD Athlon XP. > > Is that enough information to fix the bug or shall I provide further > information? please retry, should be fixed. Also we need fate clients for (fate.ffmpeg.org) that lack SSE2 or other modern things so such issues are caught earlier. If you or someone else could spare some cpu cycles and run a fate client per cronjob or occasionally this would be very helpfull for detecting this kind of bugs early [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Freedom in capitalist society always remains about the same as it was in ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From ch.sureshkumar.24 at gmail.com Thu Jul 5 16:07:57 2012 From: ch.sureshkumar.24 at gmail.com (suresh kumar) Date: Thu, 5 Jul 2012 19:37:57 +0530 Subject: [FFmpeg-user] Query on FPS Message-ID: Hi, I am using old camera were i have to get 15 fps and same is assigned to frame rate for video. But camera which I am using it wont give 15 fps or more . It is not the issue. The actual problem is I am recording the video while camera in process(Instance video) .The recorded video is not playing properly, it means that if i get 10fps and it refer rest 5fps from next packet. So video complete soon than the actual recording time. I am wondering on how to make sync as well as whatever fps I get same should be there and must be independent. I am working this under MSVC2010 on windows 7 OS. Can anyone help me on this. From paziu at yahoo.com Thu Jul 5 16:23:23 2012 From: paziu at yahoo.com (Mike F) Date: Thu, 5 Jul 2012 07:23:23 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 Message-ID: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> Hello, I am able to capture audio and video from a Pinnacle Dazzle DVC100 using mencoder: mencoder tv:// -tv driver=v4l2:width=720:height=480:norm=1:device=/dev/video0:forceaudio:alsa:adevice=hw.1:audiorate=44100:immediatemode=0 -ovc xvid -xvidencopts bitrate=800:me_quality=6 -oac mp3lame -lameopts cbr:br=128 -o out.avi if I try to use ffmpeg, I get no sound: ?ffmpeg -y? -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 -aspect 16:9 -vcodec libx264 -cmp +chroma -b 400k -refs 1 -coder 0 -subq 1 -partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -acodec libfaac -ab 128k -ar 44100 -ac 1 -i_qfactor 0.71 -f mp4 -strict experimental aaa.mp4 tried ALSA and OSS ( /dev/audioN and dspN ) device names, different audio codecs, hw:1, hw:1,1..... 500 combinations - no success. The "immediatemode=0" is required to get audio out of DVC100 - for mencoder - is there an equivalent in ffmpeg? immediatemode= A value of 0 means capture and buffer audio and video together (default for MEncoder). A value of 1 (default for MPlayer) means to do video capture only and let the audio go through a loopback cable from the TV card to the sound card. ffmpeg latest git version: N-42170-g71e5a14 - tested also with 4-5 older versions incl 0.10.2 Thank you, paziu From andrew.dennis at bydeluxe.com Thu Jul 5 16:46:15 2012 From: andrew.dennis at bydeluxe.com (Andrew Dennis) Date: Thu, 5 Jul 2012 07:46:15 -0700 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> Message-ID: <785F584FAFE582458C7081AB280266CA065CC2271B@VA3DIAXVS841.RED001.local> Did some testing and found something. If I have frame/files numbered like: image.1001.dpx, image.1002.dpx....... and run the command ffmpeg -i image.%04d.dpx image.%04d.jpg I get that the file is not found, no matter what the character is before the '%'. But, if I change the command to: ffmpeg -i image.10%02d.dpx image.10%02d.jpg Command runs just fine. So it appears that the demuxer can't handle starting at 1001? A > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Michael Bradshaw > Sent: Tuesday, July 03, 2012 2:58 PM > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] image2 Demuxer Issue > > On Tue, Jul 3, 2012 at 2:37 PM, Andrew Dennis > wrote: > > When I run the following command I get an error "No such file or > directory". > > Please provide complete, uncut command and console output. > > Also, consider trying with current git head. > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email and any attachments is strictly prohibited. If you receive this email in error, please immediately notify the sender by return email and permanently delete the original, any copy and any printout thereof. The integrity and security of e-mail cannot be guaranteed. From nicolas.george at normalesup.org Thu Jul 5 17:33:38 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 5 Jul 2012 17:33:38 +0200 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: <4FF562C0.1040206@traduflex.dk> References: <4FF562C0.1040206@traduflex.dk> Message-ID: <20120705153338.GA22076@phare.normalesup.org> L'octidi 18 messidor, an CCXX, Erling Groenlund a ?crit?: > Since this mail forum is intended for general user questions, I am > posting my question here - but as I am new to the mail forum and > unsure how it works, please forgive me if I am posting this > incorrectly or in the wrong place! This mail is perfectly fine. Just be sure not to top-post (look it up if necessary) when you reply. > I use the Windows builds of FFMPEG and have made a front end > application which issues a command string of the form: > > 'ffmpeg -report -y -i concat:"data0001.ts|data0002.ts" -vol 456 > -deinterlace -vtag DIVX -f avi -vcodec mpeg4 -aspect 16:9 -s > 720x576 -b:v 2000000 -acodec libmp3lame -ab 192000 -ar 48000 -ac 2 > -async 48000 ' > > The front end regularly polls the last line of the log file created > with the -report option to track the progress of video conversions. > This has worked very well with previous builds, where the last line > would nearly always read something of the form > > 'frame=96926 fps=189 q=4.4 size= 1039951kB time=01:04:38.40 > bitrate=2196.6kbits/s' > > making it easy to track the current progress of a conversion. > > However, when using the most recent Zerrano builds (from 2012-06-08 > git-718607b and on), I have noticed that these 'progress lines' are > interspersed by a very high number of nearly identical lines of the > form > > '[mpegts @ 0235e420] first_dts 4802459367 not matching first dts > 4812529287 in que' > > and consequently the last line now only very rarely contains any > progress information, and the log files easily grow to many MBs in > size. > > It should be noted that the actual conversion still works fine and > yields excellent results, and the problem seems to be merely a > reporting issue with the latest builds. > > Is there any way to modify the command line so I can get rid of > these (rather superfluous) error lines in the log file while still > being able to retrieve the progress information? In short: no. The -report option is for bug reports, and as such must include all possibly relevant information. A warning produced by the encoding process is clearly possibly relevant, so it must be there. But that does not mean you are stuck. First, if the encoding process works well, these warning may be phony; at the very least they need investigating. Can you reproduce the problem with a small file and attach it to a new Trac ticket, along with the corresponding -report file? Second, you should should consider using a more reliable method of tracking the progress of ffmpeg than parsing the information output of ffmpeg, especially keeping only one line at random. The information output is meant for humans, not programs, and developers can decide to change its format at any time, breaking your program. I can suggest, right now, "-r 1 -an -f framecrc progress.crc", it will write one line for each second worth of video encoded. In the longest run, maybe you should open another Trac ticket, of the "enhancement/wish" type/priority, requesting a script-friendly progress output. 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 mbradshaw at sorensonmedia.com Thu Jul 5 18:33:23 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Thu, 5 Jul 2012 10:33:23 -0600 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: <20120705153338.GA22076@phare.normalesup.org> References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> Message-ID: On Thu, Jul 5, 2012 at 9:33 AM, Nicolas George wrote: > In the longest run, maybe > you should open another Trac ticket, of the "enhancement/wish" > type/priority, requesting a script-friendly progress output. +1 for this. Maybe the user could even specify the output/format. --Michael From rogerdpack2 at gmail.com Thu Jul 5 18:57:03 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 10:57:03 -0600 Subject: [FFmpeg-user] pipe ffplay to ffmpeg - or - loop input video in ffmpeg for rtmp broadcast stream ? In-Reply-To: <1341075321387-4651363.post@n4.nabble.com> References: <1341075321387-4651363.post@n4.nabble.com> Message-ID: I'd like to know how to do this too - I can't fathom why ffmpeg would only > allow looping on static images. Searching for "loop" here: http://ffmpeg.org/ffmpeg.html Seems to imply it's possible, is it not? -r From rogerdpack2 at gmail.com Thu Jul 5 18:59:31 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 10:59:31 -0600 Subject: [FFmpeg-user] How To Preserving Closed caption after converting a video In-Reply-To: <1341207034445-4651383.post@n4.nabble.com> References: <1340959133665-4651341.post@n4.nabble.com> <1341207034445-4651383.post@n4.nabble.com> Message-ID: > I want a Command line which would preserver closed captions.. > > when i encode the video, the captions are lost!! > > Is there any option in ffmpeg to preserve the captions.. > > Or else Is there any option to embed the Closed captions (.srt or .sub > files) to the encoded video!! > http://superuser.com/questions/305812/newsubtitles-line-not-working-in-ffmpeg might help. From rogerdpack2 at gmail.com Thu Jul 5 19:00:22 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:00:22 -0600 Subject: [FFmpeg-user] Multiple Video Recording In-Reply-To: References: Message-ID: > Hi, > Finally i got output for multiple video recording but now i am facing > any one of the video is not sync with audio(For two recording). Let me know > reason for not syncing properly. Video plays correctly but audio is > problem. Were other video syncs properly. So you have 2 video inputs and one audio (all live) and the audio is out of sync? -r From rogerdpack2 at gmail.com Thu Jul 5 19:01:19 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:01:19 -0600 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: On Mon, Jul 2, 2012 at 3:30 AM, wrote: > I am writing a export Plugin for Rhozet Carboncoder that delivers > uncompressed YUV and PCM Frames to named pipes. There is one pipe for the > YUV data and one for the Audio. > The problem is, that the delivery of the YUV and PCM Frames is async. > CarbonCoder delivers first 1 Audio sample that covers the next 120ms, then > it delivers 3 video frames and so on.... > In a testprogram where i deliver 40ms video, then 40ms audio and so on, > everything works fine, but in the real program, ffmpeg blocks one of the > pipes after like 80ms of delivered Material. > Full uncut command line and console output please? -r From rogerdpack2 at gmail.com Thu Jul 5 19:03:56 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:03:56 -0600 Subject: [FFmpeg-user] need to convert LR to HR. In-Reply-To: References: <1341245528.74117.YahooMailNeo@web122501.mail.ne1.yahoo.com> Message-ID: > Can anyone please tell me What is the command in ffmpeg which can do this ? ffmpeg -i in.avi -s 1920x1280 out.avi > If you want a possibly "prettier" output you could try rescaling it with lanczos. From rogerdpack2 at gmail.com Thu Jul 5 19:05:49 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:05:49 -0600 Subject: [FFmpeg-user] Transition between two videos In-Reply-To: References: Message-ID: > > Hi everyone, > I am trying to add two mp4s and I am able to do this.Question: Do any one > have an Idea how to add a transition between two videos using ffmpeg > alone.Can I use any filter to do this. > What type of transition do you want? There are "fade" type filters, though I've never used them. You can concate files like this: http://www.ffmpeg.org/faq.html#How-can-I-join-video-files_003f From rogerdpack2 at gmail.com Thu Jul 5 19:07:08 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:07:08 -0600 Subject: [FFmpeg-user] video to image sequence conversion problem In-Reply-To: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> Message-ID: On Mon, Jul 2, 2012 at 9:13 PM, BhelPuri wrote: > I'm trying to convert a HD video (1920x1088 H264, 29.97fps) into an image > sequence with downsampling (to 5 fps). I used the following: > ffmpeg -i myMovie.mov -r 5 -f image2 foo-%05d.tif > > I later process the resulting tif image sequence to track an oscillatory > motion. However I'm not sure if the downsampled image sequence is being > done right as it seems to be progressively out of sync with the motion. > > > I'm not sure how to interpret the output displayed in the format- > frame= xxx fps=yyy q=0.0 size= 0kB time=ttt bitrate= 0.0kbits/s > where the number yyy varies throughout (0, 7.8 thru 14.0) > > Could someone explain why the frames are out of sync and how I should be > correcting for that? > Full uncut console command line and output? -r From rogerdpack2 at gmail.com Thu Jul 5 19:09:10 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:09:10 -0600 Subject: [FFmpeg-user] ffplay build errors In-Reply-To: References: Message-ID: On Tue, Jul 3, 2012 at 3:45 AM, Symadept wrote: > Hi, > I got the ffmpeg module compiled under 32 bit and then trying to port > ffplay onto NaCl environment and I realized the following issues. > > > /home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/bin/i686-nacl-gcc > -o ffplay_32.o -c ffplay.c -m32 -O0 -g -pthread -Wno-long-long -Wall > -Wswitch-enum > > `/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/bin/sdl-config > --cflags` > ffplay.c:26:30: error: libavformat/rtsp.h: No such file or directory > ffplay.c:29:37: error: libavcodec/audioconvert.h: No such file or directory > > I didn't understand what to change in the nacl-ffmpeg-0.5.sh, to get these > modules published. I tried --enable-demuxer=rtsp, but its of no use. > So you're compiling nacl-ffmpeg-0.5.sh? I'd ask the nacl guys... -r From rogerdpack2 at gmail.com Thu Jul 5 19:14:52 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:14:52 -0600 Subject: [FFmpeg-user] Transcoding a stream to Wowza through ffmpeg In-Reply-To: <4FF5949C.50304@streemit.net> References: <4FF5949C.50304@streemit.net> Message-ID: > circular_buffer: OVERRUN.0 size= 2581kB time=00:00:02.68 bitrate=7876.8kbits/s dup=15 drop=0 > PES packet size mismatch.0 size= 9309kB time=00:00:10.13 bitrate=7523.6kbits/s dup=28 drop=0 That circular_buffer message seems interesting too, but I have no idea what these lines mean. From rogerdpack2 at gmail.com Thu Jul 5 19:20:00 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:20:00 -0600 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120705134318.GA5245@kiste2> References: <20120704181959.GE10650@leki> <4ff563e4.4ba36b34.bm000@wupperonline.de> <20120705134318.GA5245@kiste2> Message-ID: > > Also we need fate clients for (fate.ffmpeg.org) that lack SSE2 or > other modern things so such issues are caught earlier. > > If you or someone else could spare some cpu cycles and run a fate > client per cronjob or occasionally this would be very helpfull for > detecting this kind of bugs early I'd be happy to chip in a few bucks to purchase boxes if it would help at all :P -r From avsn9849625263 at hotmail.com Thu Jul 5 19:21:48 2012 From: avsn9849625263 at hotmail.com (Murthy avsn) Date: Thu, 5 Jul 2012 22:51:48 +0530 Subject: [FFmpeg-user] Transition between two videos In-Reply-To: References: , Message-ID: > > > > Hi everyone, > > I am trying to add two mp4s and I am able to do this.Question: Do any one > > have an Idea how to add a transition between two videos using ffmpeg > > alone.Can I use any filter to do this. > > > > What type of transition do you want? > There are "fade" type filters, though I've never used them. > You can concate files like this: > http://www.ffmpeg.org/faq.html#How-can-I-join-video-files_003f Thanks for replay,I need any other transition the fade in/out.Do we have that in ffmpeg. From rogerdpack2 at gmail.com Thu Jul 5 19:21:45 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:21:45 -0600 Subject: [FFmpeg-user] Query on FPS In-Reply-To: References: Message-ID: > if i get 10fps and it refer rest 5fps from next > packet. So video complete soon than the actual recording time. I am > wondering on how to make sync as well as whatever fps I get same should be > there and must be independent. So your camera give you "between 10 and 15" fps, or does transcoding slow down the output so that it can't keep up with the input? > I am working this under MSVC2010 on windows 7 OS. Can anyone help me > on this. Are you using ffmpeg.exe? If so complete uncut command line and output please? -r From rogerdpack2 at gmail.com Thu Jul 5 19:26:01 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 11:26:01 -0600 Subject: [FFmpeg-user] Transition between two videos In-Reply-To: References: Message-ID: >> There are "fade" type filters, though I've never used them. >> You can concate files like this: >> http://www.ffmpeg.org/faq.html#How-can-I-join-video-files_003f > Thanks for replay,I need any other transition the fade in/out.Do we have that in ffmpeg. I see a "fade" filter: http://ffmpeg.org/libavfilter.html#fade However I do not know if ffmpeg+libavfilter can "combine + fade" all in one step, you may need to first create intermediary files. Anybody else know? -r From mbradshaw at sorensonmedia.com Thu Jul 5 19:33:54 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Thu, 5 Jul 2012 11:33:54 -0600 Subject: [FFmpeg-user] Transition between two videos In-Reply-To: References: Message-ID: On Thu, Jul 5, 2012 at 11:26 AM, Roger Pack wrote: >>> There are "fade" type filters, though I've never used them. >>> You can concate files like this: >>> http://www.ffmpeg.org/faq.html#How-can-I-join-video-files_003f >> Thanks for replay,I need any other transition the fade in/out.Do we have that in ffmpeg. > > I see a "fade" filter: > http://ffmpeg.org/libavfilter.html#fade > However I do not know if ffmpeg+libavfilter can "combine + fade" all > in one step, you may need to first create intermediary files. Anybody > else know? The fade filter can't do that, as it takes one input video and produces one output video. A "fade from one video to another video" would require two input videos and one output video (VV->V in ffmpeg -filters). The only VV->V filter is the "overlay" filter. I wonder if you could create an intermediate video using the fade filter to fade to/from completely transparent, and then use that intermediate video and the second video as input to the overlay filter and if it would combine everything correctly... I've never tried it, so I can't say. It would be interesting to know though. --Michael From coniophora at gmail.com Thu Jul 5 19:59:15 2012 From: coniophora at gmail.com (Jim Worrall) Date: Thu, 5 Jul 2012 11:59:15 -0600 Subject: [FFmpeg-user] Compiling failure In-Reply-To: <20120705132350.GJ10650@leki> References: <20120705075602.GH10650@leki> <20120705132350.GJ10650@leki> Message-ID: On Jul 5, 2012, at 7:23 AM, Cl?ment B?sch wrote: > On Thu, Jul 05, 2012 at 05:08:40AM -0300, Alexandre Schenberg wrote: >> Thanskf, but I don't have git. Any other way? >> > > How did you get the source? > I don't know how he does it, but here is how I do: curl -#LG -d "p=ffmpeg.git;a=snapshot;h=HEAD;sf=tgz" -o ffmpeg.tar.gz http://git.videolan.org/ I haven't been able to figure git out, though there's been no need to really try. From mbradshaw at sorensonmedia.com Thu Jul 5 20:07:22 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Thu, 5 Jul 2012 12:07:22 -0600 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <20120705075602.GH10650@leki> <20120705132350.GJ10650@leki> Message-ID: On Thu, Jul 5, 2012 at 11:59 AM, Jim Worrall wrote: > I haven't been able to figure git out, > though there's been no need to really try. If all you're doing is updating to the latest source, it's quite easy. Initial check out is: git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg Updating is as simple as: git pull --Michael From harald.jordan at redstream.at Thu Jul 5 20:12:57 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Thu, 5 Jul 2012 20:12:57 +0200 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: <000c01cd5ad9$ce53e4a0$6afbade0$@redstream.at> Hm, meanwhile I googled out that it works somehow better when piping the named pipe to stdin. There is only the problem that one cannot pipe audio and video to stdin at the same time; so I also made my thoughts about muxing the yuv and pcm into avi and then send it to stdin of ffmpeg... However, I the solution below is basically the way to go... so if anybody has some idea, help is very appreciated!! By the way, my program delivers first a buffer of 120mx audio to the audio pipe, then 3 x 40ms video Frames sequencial but very fast to the video pipe, then again audio.... Here comes a report that belongs to the original question (this is complete, so the end of this log is really the end): ffmpeg started on 2012-07-05 at 20:01:24 Report written to "ffmpeg-20120705-200124.log" Command line: "c:\\ffmpeg.exe" -f rawvideo -r 25 -pix_fmt yuyv422 -s 720x576 -r 25 -i "\\\\.\\pipe\\video145879000" -ac 2 -ar 48000 -f s16le -i "\\\\.\\pipe\\audio145879000" -strict experimental -vcodec libx264 -s 720x576 -b:v 6438912 -r 8 -acodec aac -b:a 128k -ar 32000 -y -report "c:\\dev\\ffmpegout.mov" ffmpeg version N-42016-gc103dc0 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 28 2012 20:19:55 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 63.100 / 51. 63.100 libavcodec 54. 29.101 / 54. 29.101 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 000000000271f920] File position before avformat_find_stream_info() is 0 [rawvideo @ 000000000271f920] All info found [rawvideo @ 000000000271f920] Estimating duration from bitrate, this may be inaccurate [rawvideo @ 000000000271f920] File position after avformat_find_stream_info() is 829440 Input #0, rawvideo, from '\\.\pipe\video145879000': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc -----Urspr?ngliche Nachricht----- Von: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] Im Auftrag von Roger Pack Gesendet: Donnerstag, 05. Juli 2012 19:01 An: FFmpeg user questions and RTFMs Betreff: Re: [FFmpeg-user] raw input from named pipes, order of frame delivery On Mon, Jul 2, 2012 at 3:30 AM, wrote: > I am writing a export Plugin for Rhozet Carboncoder that delivers > uncompressed YUV and PCM Frames to named pipes. There is one pipe for > the YUV data and one for the Audio. > The problem is, that the delivery of the YUV and PCM Frames is async. > CarbonCoder delivers first 1 Audio sample that covers the next 120ms, > then it delivers 3 video frames and so on.... > In a testprogram where i deliver 40ms video, then 40ms audio and so > on, everything works fine, but in the real program, ffmpeg blocks one > of the pipes after like 80ms of delivered Material. > Full uncut command line and console output please? -r _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From coniophora at gmail.com Thu Jul 5 20:19:31 2012 From: coniophora at gmail.com (Jim Worrall) Date: Thu, 5 Jul 2012 12:19:31 -0600 Subject: [FFmpeg-user] How To Preserving Closed caption after converting a video In-Reply-To: References: <1340959133665-4651341.post@n4.nabble.com> <1341207034445-4651383.post@n4.nabble.com> Message-ID: >> I want a Command line which would preserver closed captions.. >> >> when i encode the video, the captions are lost!! >> >> Is there any option in ffmpeg to preserve the captions.. >> >> Or else Is there any option to embed the Closed captions (.srt or .sub >> files) to the encoded video!! Have you tried including -c:s copy in your command line? And your target format of course must handle those subtitles. Best to give your command line and ffmpeg output. From goetz.dapp at googlemail.com Thu Jul 5 21:48:36 2012 From: goetz.dapp at googlemail.com (Goetz Dapp) Date: Thu, 05 Jul 2012 13:48:36 -0600 Subject: [FFmpeg-user] Adjusting libavdevice/v4l2.c to support V4L2 controls In-Reply-To: References: <4FBADFAE.3050406@gmail.com> Message-ID: <4FF5EF94.7000305@gmail.com> On 05/22/2012 12:33 AM, Carl Eugen Hoyos wrote: > Goetz Dapp googlemail.com> writes: > >> I am not a programmer and thus at a loss as to how to get that into >> libavdevice/v4l2.c as suggested. Could you help me out with that or >> provide me with further pointers? > I am sorry, but I currently have no access to my hardware that has a > v4l2 device, meaning I cannot work on this atm. > You could try to add ioctl's to device_init() in libavdevice/v4l2.c, > it should be easy to add options once that works. If you are unable > to test this, you will have to wait until somebody works on it... > > (Please consider opening a ticket on trac, you may point to these > mailing list threads, but do add all information into trac.) > > Sorry, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi everybody, I just wanted to bump this one more time to see if anybody can help me with this. I will also open a ticket on trac - just haven't had the time to yet :) Just to reiterate, my question (see below) was whether it was possible to adjust ffmpeg to support v4l2 controls: > ffmpeg -f video4linux2 -framerate 30 -video_size hd720 -input_format > mjpeg -fflags igndts -an -i /dev/video0 -c:v copy -an /HDD2/test1.mjpeg > I am curious though if there is any way of controlling the v4l2 control > ids through ffmpeg, i.e. things like V4L2_CID_WHITE_BALANCE_TEMPERATURE, > V4L2_CID_DO_WHITE_BALANCE, V4L2_CID_FOCUS_AUTO ... No, but I believe it should be straight-forward to implement, see v4l2_set_parameters() and options[] in libavdevice/v4l2.c > The autofocus particularly kicks in during recording and messes things up. > I also have another problem, namely that I am getting tons of errors > "/Application provided invalid, non monotonically //increasing dts to muxer" Thanks! Goetz From rogerdpack2 at gmail.com Thu Jul 5 22:56:39 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 14:56:39 -0600 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: > I am writing a export Plugin for Rhozet Carboncoder that delivers > uncompressed YUV and PCM Frames to named pipes. There is one pipe for the > YUV data and one for the Audio. You're using cygwin named pipes? > In a testprogram where i deliver 40ms video, then 40ms audio and so on, > everything works fine, but in the real program, ffmpeg blocks one of the > pipes after like 80ms of delivered Material. There is an rtbufsize option but that's probably not it here...hmm... From erling at traduflex.dk Thu Jul 5 23:12:12 2012 From: erling at traduflex.dk (Erling Groenlund) Date: Thu, 05 Jul 2012 23:12:12 +0200 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: <20120705153338.GA22076@phare.normalesup.org> References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> Message-ID: <4FF6032C.1010609@traduflex.dk> Hi again, Thanks for your quick, kind and helpful answer! > In short: no. The -report option is for bug reports, and as such must > include all possibly relevant information. A warning produced by the > encoding process is clearly possibly relevant, so it must be there. Yes, I agree - but in any case it seems that the reporting detail level has changed from the January build to the May/June builds, right? (...) > I can suggest, right now, "-r 1 -an -f framecrc progress.crc", it will write > one line for each second worth of video encoded. In the longest run, maybe > you should open another Trac ticket, of the "enhancement/wish" > type/priority, requesting a script-friendly progress output. Thank you - I tried that, and it works and seems worth the reprogramming effort; however, I think you mean 'one line for every frame'; at least that is what I get with those parameters. It would of course be nice to have FFMPEG output the progress to, say, a file of just a single line being overwritten by the next line of progress information (preferably at a user-defined interval), so I think I will raise that suggestion in an 'enhancement' ticket, like you propose. Thank you for your effort - and for an otherwise absolutely brilliant tool! Sincerely, Erling G., Denmark From nicolas.george at normalesup.org Fri Jul 6 00:35:31 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 6 Jul 2012 00:35:31 +0200 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: <4FF6032C.1010609@traduflex.dk> References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> Message-ID: <20120705223531.GA16959@phare.normalesup.org> L'octidi 18 messidor, an CCXX, Erling Groenlund a ?crit?: > Yes, I agree - but in any case it seems that the reporting detail > level has changed from the January build to the May/June builds, > right? Not exactly. The -report file has always saved all messages at all levels, up to debug. What has changed is that consistency checks for timestamps have been added, with warnings when things do not match. Still, there is something wrong, either in your files or in the demuxer; and even if it is in the file, if it is a common occurrence, it is worth working around, so a sample is welcome. > Thank you - I tried that, and it works and seems worth the > reprogramming effort; however, I think you mean 'one line for every > frame'; at least that is what I get with those parameters. That is true, but counting frames that are sent to that framecrc pseudo-encoder, and with the "-r 1" option, that makes one frame per second. But they are video-time seconds, not real-time seconds: if your encoding is very slow (x264 with high quality maybe), you may want to raise the value after -r, or even remove it completely; if your encoding is very fast, you may want to lower the value. > It would of course be nice to have FFMPEG output the progress to, > say, a file of just a single line being overwritten by the next line > of progress information I would not advise to use a real file for that. On Unix, a pipe, or possibly a socket, would be the preferred method. On windows, I do not know what makes the corresponding API. 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 ericcocuzza12 at hotmail.com Fri Jul 6 00:37:23 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Thu, 5 Jul 2012 18:37:23 -0400 Subject: [FFmpeg-user] mp4 packet fragmentation? In-Reply-To: <20120705223531.GA16959@phare.normalesup.org> References: <4FF562C0.1040206@traduflex.dk>, <20120705153338.GA22076@phare.normalesup.org>, <4FF6032C.1010609@traduflex.dk>, <20120705223531.GA16959@phare.normalesup.org> Message-ID: Hi Team Please help in exploring the any possibility to have fragmentation of mp4 packets? Will packet fragmentation help us to get more Optimization in terms of speed and quality? --Eric From ericcocuzza12 at hotmail.com Fri Jul 6 00:45:54 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Thu, 5 Jul 2012 18:45:54 -0400 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: <20120705223531.GA16959@phare.normalesup.org> References: <4FF562C0.1040206@traduflex.dk>, <20120705153338.GA22076@phare.normalesup.org>, <4FF6032C.1010609@traduflex.dk>, <20120705223531.GA16959@phare.normalesup.org> Message-ID: I am getting following error with latest ffmpeg presets?Can some one help me understand them ?vprofile option is only working with High profile not with baseline of libx264. Even after changing it to high profile I get following message Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] broken ffmpeg default settings detected Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] use an encoding preset (e.g. -vpre medium) Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] preset usage: -vpre -vpre Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] speed presets are listed in x264 --help Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] profile is optional; x264 defaults to high Jun 28 19:43:06 [tomcat-exec-115] ERROR c.x.xuggler Error: cannot write incomplete packet (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:759) From nicolas.george at normalesup.org Fri Jul 6 00:53:17 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 6 Jul 2012 00:53:17 +0200 Subject: [FFmpeg-user] mp4 packet fragmentation? In-Reply-To: References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> <20120705223531.GA16959@phare.normalesup.org> Message-ID: <20120705225317.GA18612@phare.normalesup.org> L'octidi 18 messidor, an CCXX, eric cocuzza a ?crit?: > Hi Team Please do not hijack threads. If you do not understand what I mean, look it up on the web. 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 harald.jordan at redstream.at Fri Jul 6 00:55:39 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Fri, 6 Jul 2012 00:55:39 +0200 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: Thanks for sharing your brain, Roger :-) At this time i am using win32 named pipes in Visual Studio 2010, basically it is my first time using named pipes. ..played with rtbufsize option, but you are right, this doesnt change anything. I played with rtbufsize, but it did not change anything, exactly like you expected. What can i do? This is da log for a try with rtbufsize 2000000 ffmpeg started on 2012-07-06 at 00:38:37 Report written to "ffmpeg-20120706-003837.log" Command line: "c:\\ffmpeg.exe" -rtbufsize 2000000 -f rawvideo -r 25 -pix_fmt yuyv422 -s 720x576 -r 25 -i "\\\\.\\pipe\\video40564000" -ac 2 -ar 48000 -f s16le -i "\\\\.\\pipe\\audio40564000" -strict experimental -vcodec libx264 -s 720x576 -b:v 6438912 -r 8 -acodec aac -b:a 128k -ar 32000 -y -report -y -report "c:\\dev\\ffmpegout.mov" ffmpeg version N-42016-gc103dc0 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 28 2012 20:19:55 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 63.100 / 51. 63.100 libavcodec 54. 29.101 / 54. 29.101 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 000000000274fa60] File position before avformat_find_stream_info() is 0 [rawvideo @ 000000000274fa60] All info found [rawvideo @ 000000000274fa60] Estimating duration from bitrate, this may be inaccurate [rawvideo @ 000000000274fa60] File position after avformat_find_stream_info() is 829440 Input #0, rawvideo, from '\\.\pipe\video40564000': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc -----Urspr?ngliche Nachricht----- From: Roger Pack Sent: Thursday, July 05, 2012 10:56 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] raw input from named pipes,order of frame delivery > I am writing a export Plugin for Rhozet Carboncoder that delivers > uncompressed YUV and PCM Frames to named pipes. There is one pipe for the > YUV data and one for the Audio. You're using cygwin named pipes? > In a testprogram where i deliver 40ms video, then 40ms audio and so on, > everything works fine, but in the real program, ffmpeg blocks one of the > pipes after like 80ms of delivered Material. There is an rtbufsize option but that's probably not it here...hmm... _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nicolas.george at normalesup.org Fri Jul 6 00:58:50 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 6 Jul 2012 00:58:50 +0200 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> <20120705223531.GA16959@phare.normalesup.org> Message-ID: <20120705225850.GA19013@phare.normalesup.org> L'octidi 18 messidor, an CCXX, eric cocuzza a ?crit?: > I am getting following error with latest ffmpeg presets?Can some one help me understand them > > ?vprofile option is only working > with High profile not with baseline of libx264. Even after changing > it to high profile I get following message > > Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] broken > ffmpeg default settings detected > > Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] use an > encoding preset (e.g. -vpre medium) > > Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] preset > usage: -vpre -vpre > > Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] speed > presets are listed in x264 --help > > Jun 28 19:43:06 [tomcat-exec-115] ERROR o.ffmpeg [libx264 @ 0x40686680] profile is > optional; x264 defaults to high > > Jun 28 19:43:06 [tomcat-exec-115] ERROR c.x.xuggler Error: cannot write incomplete > packet (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:759) I do not believe anyone can help you with that output. It does not look like ffmpeg at all, rather some weird filtered/derived output. If there is really a true ffmpeg binary behind that, you can use the FFREPORT to make it generate a report file, with the complete command line and output. Also, it would probably be better to start a new thread for 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 harald.jordan at redstream.at Fri Jul 6 01:13:47 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Fri, 6 Jul 2012 01:13:47 +0200 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: By the way, when i revert the order of audio and video on ffmpeg commandline, ffmpeg does not even accept one single audio or video frame, it just hangs immediately: ffmpeg started on 2012-07-06 at 01:11:22 Report written to "ffmpeg-20120706-011122.log" Command line: "c:\\ffmpeg.exe" -ac 2 -ar 48000 -f s16le -i "\\\\.\\pipe\\audio68907000" -f rawvideo -r 25 -pix_fmt yuyv422 -s 720x576 -r 25 -i "\\\\.\\pipe\\video68907000" -strict experimental -vcodec libx264 -s 720x576 -b:v 6438912 -r 8 -acodec aac -b:a 128k -ar 32000 -y -report "c:\\dev\\ffmpegout.mov" ffmpeg version N-42016-gc103dc0 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 28 2012 20:19:55 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 63.100 / 51. 63.100 libavcodec 54. 29.101 / 54. 29.101 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 -----Urspr?ngliche Nachricht----- From: Harald Jordan Sent: Friday, July 06, 2012 12:55 AM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] raw input from named pipes,order of frame delivery Thanks for sharing your brain, Roger :-) At this time i am using win32 named pipes in Visual Studio 2010, basically it is my first time using named pipes. ..played with rtbufsize option, but you are right, this doesnt change anything. I played with rtbufsize, but it did not change anything, exactly like you expected. What can i do? This is da log for a try with rtbufsize 2000000 ffmpeg started on 2012-07-06 at 00:38:37 Report written to "ffmpeg-20120706-003837.log" Command line: "c:\\ffmpeg.exe" -rtbufsize 2000000 -f rawvideo -r 25 -pix_fmt yuyv422 -s 720x576 -r 25 -i "\\\\.\\pipe\\video40564000" -ac 2 -ar 48000 -f s16le -i "\\\\.\\pipe\\audio40564000" -strict experimental -vcodec libx264 -s 720x576 -b:v 6438912 -r 8 -acodec aac -b:a 128k -ar 32000 -y -report -y -report "c:\\dev\\ffmpegout.mov" ffmpeg version N-42016-gc103dc0 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 28 2012 20:19:55 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 63.100 / 51. 63.100 libavcodec 54. 29.101 / 54. 29.101 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 000000000274fa60] File position before avformat_find_stream_info() is 0 [rawvideo @ 000000000274fa60] All info found [rawvideo @ 000000000274fa60] Estimating duration from bitrate, this may be inaccurate [rawvideo @ 000000000274fa60] File position after avformat_find_stream_info() is 829440 Input #0, rawvideo, from '\\.\pipe\video40564000': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc -----Urspr?ngliche Nachricht----- From: Roger Pack Sent: Thursday, July 05, 2012 10:56 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] raw input from named pipes,order of frame delivery > I am writing a export Plugin for Rhozet Carboncoder that delivers > uncompressed YUV and PCM Frames to named pipes. There is one pipe for the > YUV data and one for the Audio. You're using cygwin named pipes? > In a testprogram where i deliver 40ms video, then 40ms audio and so on, > everything works fine, but in the real program, ffmpeg blocks one of the > pipes after like 80ms of delivered Material. There is an rtbufsize option but that's probably not it here...hmm... _______________________________________________ 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 Fri Jul 6 01:32:24 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 17:32:24 -0600 Subject: [FFmpeg-user] mp4 packet fragmentation? In-Reply-To: <20120705225317.GA18612@phare.normalesup.org> References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> <20120705223531.GA16959@phare.normalesup.org> <20120705225317.GA18612@phare.normalesup.org> Message-ID: > Please do not hijack threads. If you do not understand what I mean, look it > up on the web. At the risk of hijacking, myself, could you explain how he was hijacking, so that I can understand what you mean here? -roger- From rogerdpack2 at gmail.com Fri Jul 6 01:38:20 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 5 Jul 2012 17:38:20 -0600 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: > The problem is, that the delivery of the YUV and PCM Frames is async. > CarbonCoder delivers first 1 Audio sample that covers the next 120ms, then > it delivers 3 video frames and so on.... > In a testprogram where i deliver 40ms video, then 40ms audio and so on, > everything works fine, but in the real program, ffmpeg blocks one of the > pipes after like 80ms of delivered Material. > > My first guess was to specify input framerate for the audio like: > -acodec s16le -ar 48000 -ac2 -r 8 -i \\.\pipe\audio > > But this doesnt seem to work. > > Is there any way to control the reading behaviour in a way i need it? There is an "abuffer" filter, but I don't know what is causing your real behavior, unless maybe your parameters are wrong so one side is getting "ahead" of the other, etc. Can you record streams separately? From kalleernst at googlemail.com Fri Jul 6 01:39:48 2012 From: kalleernst at googlemail.com (=?ISO-8859-1?Q?Marco_Baumg=E4rtner?=) Date: Fri, 06 Jul 2012 01:39:48 +0200 Subject: [FFmpeg-user] mp4 packet fragmentation? In-Reply-To: References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> <20120705223531.GA16959@phare.normalesup.org> <20120705225317.GA18612@phare.normalesup.org> Message-ID: <4FF625C4.9070208@googlemail.com> hijacking threads means that you are writing something to get help with and someone else writes that he has the same issue but slightly different and then shares what his problem is. The people reading the thread then get distracted and reply to the second author. The second author then hijacked the thread of the first author. This could have been avoided if every author has admin rights over his own thread, so he could remove any non-contributing posts. Just like the comments below youtube videos can be removed by the video's creator. Am 06.07.2012 01:32, schrieb Roger Pack: >> Please do not hijack threads. If you do not understand what I mean, look it >> up on the web. > At the risk of hijacking, myself, could you explain how he was > hijacking, so that I can understand what you mean here? > -roger- > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ale.schenberg at gmail.com Fri Jul 6 02:12:32 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Thu, 5 Jul 2012 21:12:32 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: <4FF5944D.50300@alcatel-lucent.com> References: <4FF5944D.50300@alcatel-lucent.com> Message-ID: Yes, my make verson is 3.80. I tried make V=1. I started to compile, but after a few seconds it showed: "In file included from libavdevice/v4l.c:40: /usr/include/linux/videodev.h:55: error: syntax error before "ulong" /usr/include/linux/videodev.h:71: error: syntax error before '}' token libavdevice/v4l.c: In function `grab_read_header': libavdevice/v4l.c:84: error: storage size of `tuner' isn't known libavdevice/v4l.c:92: warning: `time_base' is deprecated (declared at libavformat/avformat.h:350) libavdevice/v4l.c:93: warning: `time_base' is deprecated (declared at libavformat/avformat.h:350) libavdevice/v4l.c:96: warning: `time_base' is deprecated (declared at libavformat/avformat.h:350) libavdevice/v4l.c:98: warning: `width' is deprecated (declared at libavformat/avformat.h:353) libavdevice/v4l.c:99: warning: `height' is deprecated (declared at libavformat/avformat.h:354) libavdevice/v4l.c:136: warning: `pix_fmt' is deprecated (declared at libavformat/avformat.h:355) libavdevice/v4l.c:144: error: invalid application of `sizeof' to an incomplete type libavdevice/v4l.c:146: error: invalid application of `sizeof' to an incomplete type libavdevice/v4l.c:84: warning: unused variable `tuner' make: *** [libavdevice/v4l.o] Error 1" Any possible solution? Anyway, time to get a newer make, right? 2012/7/5, Mike Scheutzow : > Alexandre Schenberg wrote: >> "common.mak:17: *** unterminated call to function `foreach': missing >> `)'. Stop." >> >> That it is the error message I receive, after entering "make" >> >> Any ideas? > > I vaguely remember that this is the error message you get when your > version of gnu make is too old. ffmpeg requires 3.81 or later. > > In the past, this workaround worked: > > make V=1 > > but I have no idea if it is still effective with current git. You'll > save yourself a bunch of development pain by getting the more capable > version of make. > > > Mike Scheutzow > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ale.schenberg at gmail.com Fri Jul 6 02:14:52 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Thu, 5 Jul 2012 21:14:52 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: <20120705132350.GJ10650@leki> References: <20120705075602.GH10650@leki> <20120705132350.GJ10650@leki> Message-ID: BTW, I am not on WIndows, just downloaded the compacted tar and extracted it 2012/7/5, Cl?ment B?sch : > On Thu, Jul 05, 2012 at 05:08:40AM -0300, Alexandre Schenberg wrote: >> Thanskf, but I don't have git. Any other way? >> > > How did you get the source? > > BTW, I guess you are on windows right? > > [...] > > -- > Cl?ment B. > From michaelni at gmx.at Fri Jul 6 04:09:10 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Fri, 6 Jul 2012 04:09:10 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: References: <20120704181959.GE10650@leki> <4ff563e4.4ba36b34.bm000@wupperonline.de> <20120705134318.GA5245@kiste2> Message-ID: <20120706020910.GB5245@kiste2> On Thu, Jul 05, 2012 at 11:20:00AM -0600, Roger Pack wrote: > > > > Also we need fate clients for (fate.ffmpeg.org) that lack SSE2 or > > other modern things so such issues are caught earlier. > > > > If you or someone else could spare some cpu cycles and run a fate > > client per cronjob or occasionally this would be very helpfull for > > detecting this kind of bugs early > > I'd be happy to chip in a few bucks to purchase boxes if it would help at all :P > -r We need not only boxes but also some people admining them. What i had in mind was more that maybe someone who still has such old hardware in use but has enough unused cpu time could setup a cronjob. [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In fact, the RIAA has been known to suggest that students drop out of college or go to community college in order to be able to afford settlements. -- The RIAA -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From paziu at yahoo.com Fri Jul 6 05:20:15 2012 From: paziu at yahoo.com (Mike F) Date: Thu, 5 Jul 2012 20:20:15 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> Message-ID: <1341544815.60107.YahooMailNeo@web110503.mail.gq1.yahoo.com> I am replying here to my own question.... Well, "mencoder" came to help "ffmpeg" in the A/V capture part... I created a fifo "bridge", and finally ffmpeg was successful in the audio and video encoding... but only with help of mencoder... ( I thought ffmpeg can do all that mencoder plus much more - I was wrong ) # mencoder tv:// -tv driver=v4l2:norm=1:device=/dev/video0:forceaudio:alsa:adevice=hw.1:audiorate=44100:immediatemode=0 -ovc copy -oac copy -o bridge | ffmpeg -y -i bridge -aspect 16:9 -vcodec libxvid -b 400k -acodec libmp3lame -ab 128k -ar 44100 -ac 2 aaa.mp4 far from a solution, but it works... for now - the goal is to feed ffserver with >>THIS<< Thanks anyway, Mike ps: I wonder now which one of the two is husband, and which one is the wife.... > > Hello, > > I am able to capture audio and video from a Pinnacle Dazzle DVC100 using > mencoder: > > mencoder tv:// -tv > driver=v4l2:width=720:height=480:norm=1:device=/dev/video0:forceaudio:alsa:adevice=hw.1:audiorate=44100:immediatemode=0 > -ovc xvid -xvidencopts bitrate=800:me_quality=6 -oac mp3lame -lameopts > cbr:br=128 -o out.avi > > if I try to use ffmpeg, I get no sound: > > ?ffmpeg -y? -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 -aspect 16:9 > -vcodec libx264 -cmp +chroma -b 400k -refs 1 -coder 0 -subq 1 -partitions > +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 > -trellis 2 -sc_threshold 40 -acodec libfaac -ab 128k -ar 44100 -ac 1 -i_qfactor > 0.71 -f mp4 -strict experimental aaa.mp4 > > tried ALSA and OSS ( /dev/audioN and dspN ) device names, different audio > codecs, hw:1, hw:1,1..... 500 combinations - no success. > The "immediatemode=0" is required to get audio out of DVC100 - for > mencoder - is there an equivalent in ffmpeg? > > > immediatemode= > A value of 0 means capture and buffer audio and video together (default for > MEncoder). A value of 1 (default for MPlayer) means to do video capture only and > let the audio go through a loopback cable from the TV card to the sound card. > > ffmpeg latest git version: N-42170-g71e5a14 - tested also with 4-5 older > versions incl 0.10.2 > > > > Thank you, > > paziu > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ch.sureshkumar.24 at gmail.com Fri Jul 6 07:52:39 2012 From: ch.sureshkumar.24 at gmail.com (suresh kumar) Date: Fri, 6 Jul 2012 11:22:39 +0530 Subject: [FFmpeg-user] Query on FPS In-Reply-To: References: Message-ID: >So your camera give you "between 10 and 15" fps, or does transcoding >slow down the output so that it can't keep up with the input? Camera is not static on giving fps. It might be fluctuate from 5 to 15 and no problem with transcoding. >Are you using ffmpeg.exe? If so complete uncut command line and output please? -r I am not using ffmpeg.exe but i am using libraries and dll of ffmpeg . On Thu, Jul 5, 2012 at 10:51 PM, Roger Pack wrote: > > if i get 10fps and it refer rest 5fps from next > > packet. So video complete soon than the actual recording time. I am > > wondering on how to make sync as well as whatever fps I get same should > be > > there and must be independent. > > So your camera give you "between 10 and 15" fps, or does transcoding > slow down the output so that it can't keep up with the input? > > > I am working this under MSVC2010 on windows 7 OS. Can anyone help me > > on this. > > Are you using ffmpeg.exe? If so complete uncut command line and output > please? > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nichot20 at yahoo.com Fri Jul 6 08:35:48 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 06 Jul 2012 07:35:48 +0100 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF590B3.1000700@alcatel-lucent.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> Message-ID: <4FF68744.2090802@yahoo.com> On 05/07/12 14:03, Mike Scheutzow wrote: > Tim Nicholson wrote: >> If I could relate the coefficients as defined in the two files above I >> might be able to add 634/smpte 170m (they use the same values) to >> colormatrix to provide a workaround... > > Did you look at the ff_yuv2rgb_coeffs[] table? > > The comments imply that it already defines 170m. But the sws api doesn't Yes, but the coefficients are the same as 624-4. So is that really the case, or are they just there for "future expansion" and yet to be properly populated? If I understood they way the coefficients are expressed there it would be easier to confirm what is going on... > seem to give you an easy way to select it. > But not used afaik... > You could change SWS_CS_DEFAULT and recompile, if you're willing to > maintain a private build. > Well I already do anyway so that's not a big issue, but I'm sure I'm not the only one who would like it to be more selectable, and clear. > > Mike Scheutzow > [..] -- Tim From nichot20 at yahoo.com Fri Jul 6 08:38:20 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 06 Jul 2012 07:38:20 +0100 Subject: [FFmpeg-user] image2 Demuxer Issue In-Reply-To: <785F584FAFE582458C7081AB280266CA065CC2271B@VA3DIAXVS841.RED001.local> References: <785F584FAFE582458C7081AB280266CA065CC225ED@VA3DIAXVS841.RED001.local> <785F584FAFE582458C7081AB280266CA065CC2271B@VA3DIAXVS841.RED001.local> Message-ID: <4FF687DC.8050406@yahoo.com> On 05/07/12 15:46, Andrew Dennis wrote: > Did some testing and found something. > If I have frame/files numbered like: > image.1001.dpx, image.1002.dpx....... > > and run the command > > ffmpeg -i image.%04d.dpx image.%04d.jpg > > I get that the file is not found, no matter what the character is before the '%'. > > But, if I change the command to: > > ffmpeg -i image.10%02d.dpx image.10%02d.jpg > > Command runs just fine. > > So it appears that the demuxer can't handle starting at 1001? > http://ffmpeg.org/ffmpeg.html#image2-1 "If the pattern contains "%d" or "%0Nd", the first filename of the file list specified by the pattern must contain a number inclusively contained between 0 and 4, all the following numbers must be sequential. This limitation may be hopefully fixed. " -- Tim From dhaval.shah at fugital.com Fri Jul 6 08:35:04 2012 From: dhaval.shah at fugital.com (Dhaval Shah) Date: Fri, 6 Jul 2012 12:05:04 +0530 Subject: [FFmpeg-user] Decode and encode mpeg2 video Message-ID: <000001cd5b41$7dad1770$79074650$@shah@fugital.com> Hi, I am trying to decode mpeg2 video in yuv and then encode it in mpeg2 video. I have successfully done it with h264 video by using x264 library of ffmpeg. But I did not get proper yuv data while decoding mpeg2 video. Let me know if anyone had done it with mpeg2 video. May be I am using wrong library. pls suggest me the proper AVCodecContext setting to decode and encode mpeg2video. Thanks Dhaval Regards Dhaval Shah Embedded Engineer 091 9727960989 From lovexue4ever at qq.com Thu Jul 5 09:27:44 2012 From: lovexue4ever at qq.com (=?gb18030?B?aWVmdqPIo9Kj0w==?=) Date: Thu, 5 Jul 2012 15:27:44 +0800 Subject: [FFmpeg-user] How to use the audio filter Message-ID: How to use the audio filter "atempo" as command line parameters such as ffmpeg -i youku.flv -af atempo=1.25 But it no use.and a error found! From dhaval.shah at fugital.com Fri Jul 6 08:40:23 2012 From: dhaval.shah at fugital.com (Dhaval Shah) Date: Fri, 6 Jul 2012 12:10:23 +0530 Subject: [FFmpeg-user] decode and encode mpeg2 video Message-ID: <000a01cd5b42$3a9d02f0$afd708d0$@shah@fugital.com> Hi, I am trying to decode mpeg2 video in yuv and then encode it in mpeg2 video. I have successfully done it with h264 video by using x264 library of ffmpeg. But I did not get proper yuv data while decoding mpeg2 video. I am working on XP 32bit. If you have any sample application for it pls send me the link for that. Let me know if anyone had done it with mpeg2 video. May be I am using wrong library. pls suggest me the proper AVCodecContext setting to decode and encode mpeg2video. Thanks Dhaval Regards Dhaval Shah Embedded Engineer 091 9727960989 From nicolas.george at normalesup.org Fri Jul 6 10:40:49 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 6 Jul 2012 10:40:49 +0200 Subject: [FFmpeg-user] mp4 packet fragmentation? In-Reply-To: References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> <20120705223531.GA16959@phare.normalesup.org> <20120705225317.GA18612@phare.normalesup.org> Message-ID: <20120706084049.GA2351@phare.normalesup.org> L'octidi 18 messidor, an CCXX, Roger Pack a ?crit?: > At the risk of hijacking, myself, could you explain how he was > hijacking, so that I can understand what you mean here? Look at any mail archive that handles threading, such as the official one: http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/thread.html How does "mp4 packet fragmentation" relate to "Excessive reporting with -report option"? Not at all, so it should have been sent as a new thread and not as a reply to a random, unrelated message. 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 nichot20 at yahoo.com Fri Jul 6 12:51:35 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 06 Jul 2012 11:51:35 +0100 Subject: [FFmpeg-user] Interlace flag setting in ffmpeg Message-ID: <4FF6C337.2000707@yahoo.com> I have been trying to convert some material to Prores.mov using ffmpeg, and have compared it to the output from ffmbc using similar settings. Whilst both versions files seem perfectly proper, the ffmbc version plays happily on a Telestream Pipeline, but the ffmpeg version doesn't. looking at both files using ffprobe shows now discernible difference, *but* using the ffmbc version of ffprobe shows the ffmbc version reported as interlaced, but the ffmpeg version reported as progressive. Both versions contain interlaced material and the files can be stepped through field by field so it would appear only to be the flagging that is incorrect, of course this may or may not be the cause of the Telestream issue. Anybody got any ideas on what is going on here? ========================================================================= ffmpeg -i AVCiHD.mov -timecode 09:59:30:00 -vf "setfield=tff, scale=iw:ih:interl=1, format=yuv422p10le" -c:v prores -profile:v 3 -top 1 -flags +ildct+ilme -r 25 -c:a copy -map 0:v -map 0:a -y -f mov ./AVCiHD-ff.mov ffmpeg version N-41976-g734aeeb-by_Tim Copyright (c) 2000-2012 the FFmpeg developers built on Jun 27 2012 08:52:54 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=_Jun-27 --enable-libfaac --enable-libx264 --enable-libfreetype --disable-ffplay --disable-ffserver libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 29.101 / 54. 29.101 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.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 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AVCiHD.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.3.100 Duration: 00:00:03.00, start: 0.000000, bitrate: 116769 kb/s Stream #0:0(eng): Video: h264 (High 4:2:2 Intra) (avc1 / 0x31637661), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], 113664 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: handler_name : DataHandler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s Metadata: handler_name : DataHandler Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s Metadata: handler_name : DataHandler Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s Metadata: handler_name : DataHandler Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s Metadata: handler_name : DataHandler [graph 0 input from stream 0:0 @ 0x183ba60] w:1920 h:1080 pixfmt:yuv422p10le tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [output stream 0:0 @ 0x1824b60] No opaque field provided [Parsed_scale_1 @ 0x1839be0] w:1920 h:1080 fmt:yuv422p10le sar:1/1 -> w:1920 h:1080 fmt:yuv422p10le sar:1/1 flags:0x4 Output #0, mov, to './AVCiHD-ff.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt timecode : 09:59:30:00 encoder : Lavf54.11.100 Stream #0:0(eng): Video: prores (apch) (apch / 0x68637061), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc Metadata: handler_name : DataHandler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, 768 kb/s Metadata: handler_name : DataHandler Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, 768 kb/s Metadata: handler_name : DataHandler Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, 768 kb/s Metadata: handler_name : DataHandler Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, 768 kb/s Metadata: handler_name : DataHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> prores) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (copy) Stream #0:3 -> #0:3 (copy) Stream #0:4 -> #0:4 (copy) =========================================================================== ffmbc -i AVCiHD.mov -timecode 09:59:30:00 -vf "scale=iw:ih:interl=1, format=yuv422p10le" -vcodec prores -profile hq -tff -r 25 -an -y -f mov ./AVCiHD-mbc.mov -acodec copy -newaudio -acodec copy -newaudio -acodec copy -newaudio -acodec copy -newaudio \ FFmbc version 0.7-rc7 Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AVCiHD.mov': Metadata: major_brand: qt minor_version: 512 compatible_brands: qt encoder: Lavf54.3.100 Duration: 00:00:03.00, start: 0.000000, bitrate: 116769 kb/s Stream #0.0(eng): Video: h264 (High 4:2:2 Intra), yuv422p10le, 1920x1080i bff [PAR 1:1 DAR 16:9], 113664 kb/s, 25.00 fps Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s Stream #0.2(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s Stream #0.3(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s Stream #0.4(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s [scale @ 0x166b7e0] w:1920 h:1080 fmt:yuv422p10le -> w:1920 h:1080 fmt:yuv422p10le flags:0x4 Output #0, mov, to './AVCiHD-mbc.mov': Metadata: encoder: FFmbc 0.7 Stream #0.0(und): Video: prores, yuv422p10le, 1920x1080i tff [PAR 1:1 DAR 16:9], 183500 kb/s, 25.00 fps Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, stream copy Stream #0.2(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, stream copy Stream #0.3(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, stream copy Stream #0.4(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, stream copy Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Stream #0.2 -> #0.2 Stream #0.3 -> #0.3 Stream #0.4 -> #0.4 Press [q] to stop, [?] for help -- Tim From pavanvkbgm at gmail.com Fri Jul 6 13:26:09 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Fri, 6 Jul 2012 16:56:09 +0530 Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS Message-ID: Hi, I'm using the following command to get a thumbnail from a video file. It uses the seek option to grab a thumbnail. The problem is that this command takes up quite some time especially with certain containers such as MPEG-2 TS. (As much as 40 seconds). If I vary the point (duration) at which I want to grab the thumbnail , it does not seem to have an impact on the time taken. Of course when I run this on my Linux workstation, it hardly takes 2 seconds to produce the thumbnail. Any suggestions to speed up the process on my MIPS board? ./ffmpeg -ss 18 -i input.ts -vf select='eq(pict_type\,PICT_TYPE_I)' -vframes 1 -an -s 150x100 thumb.jpg Many Thanks! Pavan From mike.scheutzow at alcatel-lucent.com Fri Jul 6 15:07:07 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Fri, 06 Jul 2012 09:07:07 -0400 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> Message-ID: <4FF6E2FB.1090201@alcatel-lucent.com> Alexandre Schenberg wrote: > Yes, my make verson is 3.80. > I tried make V=1. I started to compile, but after a few seconds it showed: > > "In file included from libavdevice/v4l.c:40: > /usr/include/linux/videodev.h:55: error: syntax error before "ulong" > /usr/include/linux/videodev.h:71: error: syntax error before '}' token > libavdevice/v4l.c: In function `grab_read_header': > libavdevice/v4l.c:84: error: storage size of `tuner' isn't known > libavdevice/v4l.c:92: warning: `time_base' is deprecated (declared at > libavformat/avformat.h:350) > libavdevice/v4l.c:93: warning: `time_base' is deprecated (declared at > libavformat/avformat.h:350) > libavdevice/v4l.c:96: warning: `time_base' is deprecated (declared at > libavformat/avformat.h:350) > libavdevice/v4l.c:98: warning: `width' is deprecated (declared at > libavformat/avformat.h:353) > libavdevice/v4l.c:99: warning: `height' is deprecated (declared at > libavformat/avformat.h:354) > libavdevice/v4l.c:136: warning: `pix_fmt' is deprecated (declared at > libavformat/avformat.h:355) > libavdevice/v4l.c:144: error: invalid application of `sizeof' to an > incomplete type > libavdevice/v4l.c:146: error: invalid application of `sizeof' to an > incomplete type > libavdevice/v4l.c:84: warning: unused variable `tuner' > make: *** [libavdevice/v4l.o] Error 1" > > Any possible solution? Anyway, time to get a newer make, right? This error is not caused by make. The problem is either old or missing .h files in /usr/include. As an experiment, you could disable the compiling of all these avdevices (used for hardware i/o mostly): ./configure --disable-indevs --disable-outdevs make V=1 To see all the available configure options: ./configure --help | more Mike Scheutzow From mike.scheutzow at alcatel-lucent.com Fri Jul 6 15:16:30 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Fri, 06 Jul 2012 09:16:30 -0400 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF68744.2090802@yahoo.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> Message-ID: <4FF6E52E.8070803@alcatel-lucent.com> Tim Nicholson wrote: > Yes, but the coefficients are the same as 624-4. So is that really the > case, or are they just there for "future expansion" and yet to be > properly populated? Interesting. I hadn't noticed that the coef were the same as 170m. > If I understood they way the coefficients are expressed there it would > be easier to confirm what is going on... > Mike Scheutzow From mike.scheutzow at alcatel-lucent.com Fri Jul 6 15:49:08 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Fri, 06 Jul 2012 09:49:08 -0400 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF68744.2090802@yahoo.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> Message-ID: <4FF6ECD4.9020101@alcatel-lucent.com> Tim Nicholson wrote: > Yes, but the coefficients are the same as 624-4. So is that really the > case, or are they just there for "future expansion" and yet to be > properly populated? It looks to me like 'ITU-R 624-4 System B,G' is better known as 'ITU-R BT.470 System B,G'. And according to this link, 'Smpte 170M' and 'ITU-R BT.470 System B,G' are extremely similar colorspaces: http://en.wikipedia.org/wiki/RGB_color_space so, it's not surprising that the coefficents match. Mike Scheutzow From pkoshevoy at gmail.com Fri Jul 6 16:20:02 2012 From: pkoshevoy at gmail.com (Pavel Koshevoy) Date: Fri, 06 Jul 2012 08:20:02 -0600 Subject: [FFmpeg-user] How to use the audio filter In-Reply-To: References: Message-ID: <4FF6F412.4000704@gmail.com> On 7/5/12 1:27 AM, iefv??? wrote: > How to use the audio filter "atempo" as command line parameters > > such as > > > ffmpeg -i youku.flv -af atempo=1.25 > > > But it no use.and a error found! You need to post the error here. Anyway, here is how I do it: ./ffmpeg -i /scratch/DataSets/Video/au/02\ Feeling\ Good.mp3 -filter:a "atempo=0.7" -y /scratch/FeelingGood-0.7.wav This slows down the audio 70% Pavel. From Ajita-Pandey at hcl.com Fri Jul 6 16:36:49 2012 From: Ajita-Pandey at hcl.com (Ajita Pandey) Date: Fri, 6 Jul 2012 20:06:49 +0530 Subject: [FFmpeg-user] Copying YUV data take huge amount of memory and time In-Reply-To: <4FF6E52E.8070803@alcatel-lucent.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> <4FF6E52E.8070803@alcatel-lucent.com> Message-ID: <45F3FDEC759D21468F1F910D2B1CC43BC909DD8D39@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN> Hello everyone, I am integrating hardware codecs in ffmpeg code. But while I am trying decode video data using function virtual to physical memory it takes lots of time and memory. The api used to copy data is ioremap. Can any one suggest how can I reduce this overhead so that it takes less amount of time and memory. Regards, Ajita ::DISCLAIMER:: ---------------------------------------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ---------------------------------------------------------------------------------------------------------------------------------------------------- From nichot20 at yahoo.com Fri Jul 6 16:54:41 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 06 Jul 2012 15:54:41 +0100 Subject: [FFmpeg-user] YUV->RGB conversion. What is the default matrix used? In-Reply-To: <4FF6ECD4.9020101@alcatel-lucent.com> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> <4FF6ECD4.9020101@alcatel-lucent.com> Message-ID: <4FF6FC31.3040204@yahoo.com> On 06/07/12 14:49, Mike Scheutzow wrote: > Tim Nicholson wrote: >> Yes, but the coefficients are the same as 624-4. So is that really the >> case, or are they just there for "future expansion" and yet to be >> properly populated? > > It looks to me like 'ITU-R 624-4 System B,G' is better known as 'ITU-R > BT.470 System B,G'. > No wonder I was confused. > And according to this link, 'Smpte 170M' and 'ITU-R BT.470 System B,G' > are extremely similar colorspaces: > > http://en.wikipedia.org/wiki/RGB_color_space > > so, it's not surprising that the coefficents match. > and overall it suggests that ffmpegs default of #define SWS_CS_DEFAULT 5 is the PAL/SECAM setting (BT470 B G) which has the same values as the NTSC (170M) which is also the same as the 601 values..... > > Mike Scheutzow > _______________________________________________ > [...] Thanks for you assistance in this, now back to my colourbar generator with the right values.... -- Tim From nichot20 at yahoo.com Fri Jul 6 17:01:12 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 06 Jul 2012 16:01:12 +0100 Subject: [FFmpeg-user] Copying YUV data take huge amount of memory and time In-Reply-To: <45F3FDEC759D21468F1F910D2B1CC43BC909DD8D39@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> <4FF6E52E.8070803@alcatel-lucent.com> <45F3FDEC759D21468F1F910D2B1CC43BC909DD8D39@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN> Message-ID: <4FF6FDB8.7020302@yahoo.com> On 06/07/12 15:36, Ajita Pandey wrote: > Hello everyone, > > I am integrating hardware codecs in ffmpeg code. > But while I am trying decode video data using function virtual to physical memory it takes lots of time and memory. > The api used to copy data is ioremap. > Can any one suggest how can I reduce this overhead so that it takes less amount of time and memory. > > Regards, > Ajita > > > ::DISCLAIMER:: > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > [...] Please do not hijack threads, but start a new subject if that is what is needed. You are also expected to provide complete uncut console output to show what has happened. Since you are are asking a question about hardware integration, this may not be possible and suggests that this may not be the most appropriate forum to ask about such matters. Have you tried libav-user? -- Tim From ib at wupperonline.de Fri Jul 6 18:09:57 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Fri, 06 Jul 2012 18:09:57 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <20120705134318.GA5245@kiste2> Message-ID: <4ff70f3f.5565ffe8.bm000@wupperonline.de> Michael Niedermayer wrote on Thu, 5 Jul 2012 15:43:18 +0200: > please retry, should be fixed. It is. Thanks a lot. Just curious: Will sse assembler code reappear (or was there never such code that worked)? I mean, especially old CPUs need all help for speed increase they can get. > Also we need fate clients for (fate.ffmpeg.org) that lack SSE2 or > other modern things so such issues are caught earlier. > If you or someone else could spare some cpu cycles and run a fate > client per cronjob or occasionally this would be very helpfull for > detecting this kind of bugs early I could run 'make fate' every now and then when I update and recompile ffmpeg (like twice a month) if that would help. (Please see my other posting for 'make fate' errors.) Ingo From ib at wupperonline.de Fri Jul 6 18:10:46 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Fri, 06 Jul 2012 18:10:46 +0200 Subject: [FFmpeg-user] make fate / AMD Athlon XP Message-ID: <4ff70f3f.522957cd.bm002@wupperonline.de> Hi, I get two errors, both due to "Illegal instruction": Test mapchan-6ch-extract-2-downmix-mono failed. Test lavf-dv_fmt failed. Valgrind tells (same instruction bytes for both errors): vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 ==17042== valgrind: Unrecognised instruction at address 0x4f29b73. ==17042== at 0x4F29B73: ??? (in /usr/lib/libswresample.so.0.15.100) Is that enough information? Ingo From f.s.tabataba81 at gmail.com Fri Jul 6 18:53:08 2012 From: f.s.tabataba81 at gmail.com (farzaneh tabataba) Date: Fri, 6 Jul 2012 21:23:08 +0430 Subject: [FFmpeg-user] mpeg4 part2 , Message-ID: Dear friends Hello I have a question, Would you please answer my question? We want to compress a dataset, with Mpeg4 part2, and we want to save the chroma subsampling ratio to 4:2:2.( the chroma subsampling for source file is also 4:2:2). Which software do you suggest for doing this compression? Does Mpeg4-part2 support 4:2:2, or only mpeg4_part 10 support 4:2:2? we tried avanti, but it says 4:2:2 is not compatible with mpeg4. yours, Farzaneh From nathanrusch at gmail.com Fri Jul 6 18:58:59 2012 From: nathanrusch at gmail.com (Nathan Rusch) Date: Fri, 6 Jul 2012 09:58:59 -0700 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs Message-ID: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> Hello all, In trying to troubleshoot another issue, I?ve run across a subtle, consistent color shift being introduced by FFMPEG to DNxHD-encoded MOVs. Thus, they fail to match both DNxHD MOVs generated with the Avid codec, as well as both MOVs? common source material (an 8-bit RGB TIFF sequence). This is on Windows 7 using the following: - Avid codecs 2.3.7 installed from http://avid.force.com/pkb/articles/en_US/download/en423319?popup=true&NewLang=en&DocType=1450 - ffmpeg version N-42069-g3233ad4 (git-3233ad4) 32-bit binary from http://ffmpeg.zeranoe.com/builds/ - Quicktime 7.7.2 (1680.56) Encoder command: ffmpeg -y -sameq -r 24 -pix_fmt rgb24 -i C:\Some\Path\input_sequence.%04d.tif -vcodec dnxhd -b:v 115M -r 23.976 -qmax 51 -pix_fmt yuv422p -f mov C:\Some\Other\Path\output_file.mov I have derived a color matrix that can be applied either as a pre-correction to the input material or as a post-correction to the FFMPEG output to get the result to match an Avid-encoded file, and this raises a few questions: 1) Has anyone encountered this issue in the past? I have searched the available archives of this list, as well as the general Googleverse, but to no avail. 2) Has anyone ever done tests comparing outputs from FFMPEG with those generated by the Avid codec? On the one hand, it seems like perhaps not, or this would likely be documented, but on the other hand, I don?t see how an encoder could have been implemented in FFMPEG without someone at least doing a side-by-side comparison with the target format... 3) Does anyone know where this comes from? I?ve heard whispers that the Avid codec uses some kind of a proprietary color transform when encoding DNxHDs, and thus expects decoded files to be in this same state, but so far I haven?t found anything conclusive. 4) If this is a known issue, is there a reason FFMPEG is not attempting to align its outputs to those of the Avid codec, given the relatively simple task of deriving the proper correction matrix? 5) Is it possible to have FFMPEG apply an arbitrary color matrix as an intermediate step in its encoding process? Thank you all for any information you can provide, -Nathan From mbradshaw at sorensonmedia.com Fri Jul 6 19:00:56 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 6 Jul 2012 11:00:56 -0600 Subject: [FFmpeg-user] mpeg4 part2 , In-Reply-To: References: Message-ID: On Fri, Jul 6, 2012 at 10:53 AM, farzaneh tabataba wrote: > Dear friends > > Hello > I have a question, Would you please answer my question? > We want to compress a dataset, with Mpeg4 part2, and we want to save the > chroma subsampling ratio to 4:2:2.( the chroma subsampling for source file > is also 4:2:2). > > Which software do you suggest for doing this compression? Does Mpeg4-part2 > support 4:2:2, or only mpeg4_part 10 support 4:2:2? > we tried avanti, but it says 4:2:2 is not compatible with mpeg4. You just asked this question, and it was answered: http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/007699.html http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/007707.html But I just googled for you and read part of the MPEG-4 Part 2 document. Page 111, table 6-13, under chroma_format shows that 4:2:0 is the only format supported. From mike.scheutzow at alcatel-lucent.com Fri Jul 6 19:21:12 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Fri, 06 Jul 2012 13:21:12 -0400 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> Message-ID: <4FF71E88.3090703@alcatel-lucent.com> Nathan Rusch wrote: > Hello all, > > In trying to troubleshoot another issue, I?ve run across a subtle, > consistent color shift being introduced by FFMPEG to DNxHD-encoded > MOVs. Thus, they fail to match both DNxHD MOVs generated with the > Avid codec, as well as both MOVs? common source material (an 8-bit > RGB TIFF sequence). ffmpeg always assumes the BT.601 colorspace when converting from RGB->YUV and from YUV->RGB. A patch to fix this is welcome, but no one has ever cared enough to provide it. So if you do: ffmpeg: RGB -> [BT.601 matrix] -> YUV other tool: YUV -> [BT.709 matrix] -> RGB then you get a color shift like you describe. Workaround: feed ffmpeg with a file containing YUV that's been properly converted. Mike Scheutzow From ericcocuzza12 at hotmail.com Fri Jul 6 21:41:05 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Fri, 6 Jul 2012 15:41:05 -0400 Subject: [FFmpeg-user] =?windows-1256?q?mp4_packet_fragmentation=3F=FE?= Message-ID: Hope i am not hijacking this time?Hi Team, Please help in exploring the any possibility to have fragmentation of mp4 packets? Will packet fragmentation help us to get more Optimization in terms of speed and quality?--Eric From ericcocuzza12 at hotmail.com Fri Jul 6 21:42:44 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Fri, 6 Jul 2012 15:42:44 -0400 Subject: [FFmpeg-user] Licencing requirement changes? Message-ID: Hi Guys, Is there any changes in the Licencing requirements while migrating from Xuggler 4.XX to Xuggler 5.XXXX?? do any of these require a change in licence type from the previous version in terms of FF MPEG,libx264 etc ? --Eric From f.s.tabataba81 at gmail.com Fri Jul 6 22:25:25 2012 From: f.s.tabataba81 at gmail.com (farzaneh tabataba) Date: Sat, 7 Jul 2012 00:55:25 +0430 Subject: [FFmpeg-user] mpeg4 part2 , In-Reply-To: References: Message-ID: Dear Michael Thanks alot, yes , But my professor didn;t accepted my answer. I also googles this topic co much. would you please tell me the link of this document? I want to show this to my professor and couldn't find such table. thanks :) On Fri, Jul 6, 2012 at 9:30 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Fri, Jul 6, 2012 at 10:53 AM, farzaneh tabataba > wrote: > > Dear friends > > > > Hello > > I have a question, Would you please answer my question? > > We want to compress a dataset, with Mpeg4 part2, and we want to save the > > chroma subsampling ratio to 4:2:2.( the chroma subsampling for source > file > > is also 4:2:2). > > > > Which software do you suggest for doing this compression? Does > Mpeg4-part2 > > support 4:2:2, or only mpeg4_part 10 support 4:2:2? > > we tried avanti, but it says 4:2:2 is not compatible with mpeg4. > > You just asked this question, and it was answered: > > http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/007699.html > http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/007707.html > > But I just googled for you and read part of the MPEG-4 Part 2 > document. Page 111, table 6-13, under chroma_format shows that 4:2:0 > is the only format supported. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Jul 6 22:25:46 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 6 Jul 2012 14:25:46 -0600 Subject: [FFmpeg-user] Query on FPS In-Reply-To: References: Message-ID: > Camera is not static on giving fps. It might be fluctuate from 5 to 15 and > no problem with transcoding. My next guess would then be to try a different container/mux, since I guess that "avi" anticipates a constant frame rate. But I could be wrong. Since you're not using ffmpeg command line I'm not much use past there. GL! -r From rogerdpack2 at gmail.com Fri Jul 6 22:27:23 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 6 Jul 2012 14:27:23 -0600 Subject: [FFmpeg-user] Decode and encode mpeg2 video In-Reply-To: <4ff68814.6851b40a.4249.fffff8f7SMTPIN_ADDED@mx.google.com> References: <4ff68814.6851b40a.4249.fffff8f7SMTPIN_ADDED@mx.google.com> Message-ID: > I am trying to decode mpeg2 video in yuv and then encode it in mpeg2 video. > I have successfully done it with h264 video by using x264 library of ffmpeg. > But I did not get proper yuv data while decoding mpeg2 video. > Let me know if anyone had done it with mpeg2 video. > May be I am using wrong library. > pls suggest me the proper AVCodecContext setting to decode and encode > mpeg2video. Yours is, I suppose, more of a question for the libav-user group, but...if I were you I would try and get it to "work" with ffmpeg on the command line, then check/see which values it passes through for the pixel format, etc. GL! -r From rogerdpack2 at gmail.com Fri Jul 6 22:29:39 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 6 Jul 2012 14:29:39 -0600 Subject: [FFmpeg-user] mp4 packet fragmentation? In-Reply-To: <20120706084049.GA2351@phare.normalesup.org> References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> <4FF6032C.1010609@traduflex.dk> <20120705223531.GA16959@phare.normalesup.org> <20120705225317.GA18612@phare.normalesup.org> <20120706084049.GA2351@phare.normalesup.org> Message-ID: > Look at any mail archive that handles threading, such as the official one: > http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/thread.html > How does "mp4 packet fragmentation" relate to "Excessive reporting with > -report option"? Not at all, so it should have been sent as a new thread and > not as a reply to a random, unrelated message. Oh gotcha. In my gmail it came through as a "new" thread (since the subject had been changed), but I suppose the OP had written it as a reply to "that other thread" thinking that changing the subject was enough. Apparently it is not. -r From rogerdpack2 at gmail.com Fri Jul 6 22:31:48 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 6 Jul 2012 14:31:48 -0600 Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS In-Reply-To: References: Message-ID: > seconds to produce the thumbnail. Any suggestions to speed up the process > on my MIPS board? > > ./ffmpeg -ss 18 -i input.ts -vf select='eq(pict_type\,PICT_TYPE_I)' > -vframes 1 -an -s 150x100 thumb.jpg Does ffmpeg allow for indexing of frames at all? That might help. I don't think it does though, so you could write your "own" indexer, or possibly use some other program like mencoder. -r From mbradshaw at sorensonmedia.com Fri Jul 6 22:34:00 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 6 Jul 2012 14:34:00 -0600 Subject: [FFmpeg-user] mpeg4 part2 , In-Reply-To: References: Message-ID: On Fri, Jul 6, 2012 at 2:25 PM, farzaneh tabataba wrote: > Dear Michael > > Thanks alot, yes , But my professor didn;t accepted my answer. I also > googles this topic co much. would you please tell me the link of this > document? I want to show this to my professor and couldn't find such table. > > thanks :) MPEG-4 Part 2 is ISO/IEC 14496-2, which you can buy if you need. Googling, I found a copy here: http://kazus.ru/nuke/modules/Downloads/pub/144/0/ISO-IEC-14496-2-2001.pdf I don't know whether or not it's legal for it to be published on the web like that, though. I'm not a lawyer. --Michael From rogerdpack2 at gmail.com Fri Jul 6 22:34:34 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 6 Jul 2012 14:34:34 -0600 Subject: [FFmpeg-user] Copying YUV data take huge amount of memory and time In-Reply-To: <45F3FDEC759D21468F1F910D2B1CC43BC909DD8D39@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN> References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> <4FF6E52E.8070803@alcatel-lucent.com> <45F3FDEC759D21468F1F910D2B1CC43BC909DD8D39@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN> Message-ID: > I am integrating hardware codecs in ffmpeg code. > But while I am trying decode video data using function virtual to physical memory it takes lots of time and memory. > The api used to copy data is ioremap. > Can any one suggest how can I reduce this overhead so that it takes less amount of time and memory. I know when the VLC guys integrated DXVA into ffmpeg, they mentioned that it "still required a memory copy of frames" so...it may require other measures, I'm not sure. From mbradshaw at sorensonmedia.com Fri Jul 6 22:38:54 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 6 Jul 2012 14:38:54 -0600 Subject: [FFmpeg-user] mpeg4 part2 , In-Reply-To: References: Message-ID: On Fri, Jul 6, 2012 at 2:34 PM, Michael Bradshaw wrote: > On Fri, Jul 6, 2012 at 2:25 PM, farzaneh tabataba > wrote: >> Dear Michael >> >> Thanks alot, yes , But my professor didn;t accepted my answer. I also >> googles this topic co much. would you please tell me the link of this >> document? I want to show this to my professor and couldn't find such table. >> >> thanks :) > > MPEG-4 Part 2 is ISO/IEC 14496-2, which you can buy if you need. > Googling, I found a copy here: > http://kazus.ru/nuke/modules/Downloads/pub/144/0/ISO-IEC-14496-2-2001.pdf Rhodri James said where to look, though. In that 2001 paper I linked, in the introduction page xvii, it more clearly states: "Chrominance formats This part of ISO/IEC 14496 currently supports the 4:2:0 chrominance format." That might be a little clearer than the table shows on page 111. From rogerdpack2 at gmail.com Fri Jul 6 22:40:36 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 6 Jul 2012 14:40:36 -0600 Subject: [FFmpeg-user] Licencing requirement changes? In-Reply-To: References: Message-ID: > Is there any changes in the Licencing requirements while migrating from Xuggler 4.XX to Xuggler 5.XXXX?? do any of these require a change in licence type from the previous version in terms of FF MPEG,libx264 etc ? I think ffmpeg has been LGPL "forever" so my guess is not. But I'd ask the Xuggler guys. -r From f.s.tabataba81 at gmail.com Fri Jul 6 23:55:30 2012 From: f.s.tabataba81 at gmail.com (farzaneh tabataba) Date: Sat, 7 Jul 2012 02:25:30 +0430 Subject: [FFmpeg-user] mpeg4 part2 , In-Reply-To: References: Message-ID: Thanks alot, it was really help ful : ) On Sat, Jul 7, 2012 at 1:08 AM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Fri, Jul 6, 2012 at 2:34 PM, Michael Bradshaw > wrote: > > On Fri, Jul 6, 2012 at 2:25 PM, farzaneh tabataba > > wrote: > >> Dear Michael > >> > >> Thanks alot, yes , But my professor didn;t accepted my answer. I also > >> googles this topic co much. would you please tell me the link of this > >> document? I want to show this to my professor and couldn't find such > table. > >> > >> thanks :) > > > > MPEG-4 Part 2 is ISO/IEC 14496-2, which you can buy if you need. > > Googling, I found a copy here: > > > http://kazus.ru/nuke/modules/Downloads/pub/144/0/ISO-IEC-14496-2-2001.pdf > > Rhodri James said where to look, though. In that 2001 paper I linked, > in the introduction page xvii, it more clearly states: > > "Chrominance formats > This part of ISO/IEC 14496 currently supports the 4:2:0 chrominance > format." > > That might be a little clearer than the table shows on page 111. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From info at picaflor-azul.com Sat Jul 7 02:56:32 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Fri, 6 Jul 2012 19:56:32 -0500 Subject: [FFmpeg-user] (no subject) Message-ID: <1b14e74a9a370354f870792ec67fbe29.squirrel@www.picaflor-azul.com> Hello, This is my first time using an email list, so please let me know if I am doing anything wrong. I have been trying to record my desktop and make it into a good quality dvd. This is what I have done so far. avconv -f x11grab -s hd1080 -r 30 -i 0:0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 -f alsa -ac 2 -i pulse recording-filename.mkv avconv -i recording-filename.mkv recording-filename.vob This looks a lot better than anything else I have been able to figure out, but the video quality seems to be a little less than I would like. It might do though, I think it is very close. I have not yet checked the file size that this produces. I have been trying to figure out how to do a two pass encoding. This seems to work: avconv -i recording-filename.mkv -c:v mpeg2video -pass 1 -an -f rawvideo -y /dev/null but I havent gotten any second pass command to work yet. This one: avconv -i recording-filename.mkv -pass 2 -b 3000k -s 720x480 -r 29.97 recording-filename2pass.vob gives the following output: avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:52:09 with gcc 4.6.3 [matroska,webm @ 0x19049a0] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from 'recording-filename.mkv': Metadata: ENCODER : Lavf53.21.0 Duration: 00:05:09.50, start: 0.000000, bitrate: N/A Stream #0.0: Video: h264 (Main), yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default) Stream #0.1: Audio: vorbis, 48000 Hz, stereo, s16 (default) File 'recording-filename2pass.vob' already exists. Overwrite ? [y/N] y [buffer @ 0x1cd3860] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x1df1da0] w:1920 h:1080 fmt:yuv420p -> w:720 h:480 fmt:yuv420p flags:0x4 [mp2 @ 0x1945460] bitrate 3000 is not allowed in mp2 Output #0, svcd, to 'recording-filename2pass.vob': Metadata: ENCODER : Lavf53.21.0 Stream #0.0: Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], q=2-31, pass 2, 3000 kb/s, 90k tbn, 29.97 tbc (default) Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 3000 kb/s (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (vorbis -> mp2) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height This one: avconv -i recording-filename.mkv -an -pass 2 -b 3000k -s 720x480 -r 29.97 recording-filename2pass.vob gives this: avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:52:09 with gcc 4.6.3 [matroska,webm @ 0x14b89a0] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from 'recording-filename.mkv': Metadata: ENCODER : Lavf53.21.0 Duration: 00:05:09.50, start: 0.000000, bitrate: N/A Stream #0.0: Video: h264 (Main), yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default) Stream #0.1: Audio: vorbis, 48000 Hz, stereo, s16 (default) File 'recording-filename2pass.vob' already exists. Overwrite ? [y/N] y [buffer @ 0x1887860] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x19a5da0] w:1920 h:1080 fmt:yuv420p -> w:720 h:480 fmt:yuv420p flags:0x4 [svcd @ 0x14f5080] VBV buffer size not set, muxing may fail Output #0, svcd, to 'recording-filename2pass.vob': Metadata: encoder : Lavf53.21.0 Stream #0.0: Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], q=2-31, pass 2, 3000 kb/s, 90k tbn, 29.97 tbc (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Press ctrl-c to stop encoding avconv: /build/gpocentek-libav-extra_0.8.3ubuntu0.12.04.1+medibuntu1-amd64-0rSAlL/libav-extra- 0.8.3ubuntu0.12.04.1+medibuntu1/libav/libavcodec/ratecontrol.c:693: ff_rate_estimate_qscale: Assertion `picture_numbernum_entries' failed. Aborted (core dumped) I would like to know if I am making any mistakes so far, especially ones that will eventually force me to start all over again. Can you give me a pass two command that will work? What parameters will it be profitable to play with when I am balancing video quality and file size? Are there any other techniques I should consider using to optimize quality and file size? Thanks in advance, Anne www.picaflor-azul.com From nathanrusch at gmail.com Sat Jul 7 03:18:34 2012 From: nathanrusch at gmail.com (Nathan Rusch) Date: Fri, 6 Jul 2012 18:18:34 -0700 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <4FF71E88.3090703@alcatel-lucent.com> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> <4FF71E88.3090703@alcatel-lucent.com> Message-ID: <8D2ABF1FB54C4A62A1507C2D61B656BC@Lapgasm> Thanks for the information Mike. This definitely clears up the cause of the issue. It's unfortunate that a manual preprocessing step is required to achieve 1:1 RGB reconstruction when compared to the source material or the Avid codec, but at least it's a known constant that can be accounted for. Perhaps I will explore a manual patch in the future. Cheers, -Nathan -----Original Message----- From: Mike Scheutzow Sent: Friday, July 06, 2012 10:21 AM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs Nathan Rusch wrote: > Hello all, > > In trying to troubleshoot another issue, I?ve run across a subtle, > consistent color shift being introduced by FFMPEG to DNxHD-encoded > MOVs. Thus, they fail to match both DNxHD MOVs generated with the > Avid codec, as well as both MOVs? common source material (an 8-bit > RGB TIFF sequence). ffmpeg always assumes the BT.601 colorspace when converting from RGB->YUV and from YUV->RGB. A patch to fix this is welcome, but no one has ever cared enough to provide it. So if you do: ffmpeg: RGB -> [BT.601 matrix] -> YUV other tool: YUV -> [BT.709 matrix] -> RGB then you get a color shift like you describe. Workaround: feed ffmpeg with a file containing YUV that's been properly converted. Mike Scheutzow _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nathanrusch at gmail.com Sat Jul 7 05:52:36 2012 From: nathanrusch at gmail.com (Nathan Rusch) Date: Fri, 6 Jul 2012 20:52:36 -0700 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <4FF71E88.3090703@alcatel-lucent.com> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> <4FF71E88.3090703@alcatel-lucent.com> Message-ID: <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> I wanted to follow up on this for posterity (in case anyone else comes down this same road). I was able to get the colors to match 1:1 to the source by adding a colormatrix operation to the conversion process via libavfilter. The flag and value added are: -vf colormatrix=bt601:bt709 Thanks again for getting me moving in the right direction Mike. -Nathan -----Original Message----- From: Mike Scheutzow Sent: Friday, July 06, 2012 10:21 AM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs Nathan Rusch wrote: > Hello all, > > In trying to troubleshoot another issue, I?ve run across a subtle, > consistent color shift being introduced by FFMPEG to DNxHD-encoded > MOVs. Thus, they fail to match both DNxHD MOVs generated with the > Avid codec, as well as both MOVs? common source material (an 8-bit > RGB TIFF sequence). ffmpeg always assumes the BT.601 colorspace when converting from RGB->YUV and from YUV->RGB. A patch to fix this is welcome, but no one has ever cared enough to provide it. So if you do: ffmpeg: RGB -> [BT.601 matrix] -> YUV other tool: YUV -> [BT.709 matrix] -> RGB then you get a color shift like you describe. Workaround: feed ffmpeg with a file containing YUV that's been properly converted. Mike Scheutzow _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jameszhangsyd at gmail.com Sat Jul 7 06:25:50 2012 From: jameszhangsyd at gmail.com (James Zhang) Date: Fri, 6 Jul 2012 21:25:50 -0700 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> <4FF71E88.3090703@alcatel-lucent.com> <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> Message-ID: unsubscribe On Fri, Jul 6, 2012 at 8:52 PM, Nathan Rusch wrote: > I wanted to follow up on this for posterity (in case anyone else comes > down this same road). > > I was able to get the colors to match 1:1 to the source by adding a > colormatrix operation to the conversion process via libavfilter. The flag > and value added are: > > -vf colormatrix=bt601:bt709 > > Thanks again for getting me moving in the right direction Mike. > > > -Nathan > > > -----Original Message----- From: Mike Scheutzow > Sent: Friday, July 06, 2012 10:21 AM > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs > > Nathan Rusch wrote: > >> Hello all, >> >> In trying to troubleshoot another issue, I?ve run across a subtle, >> consistent color shift being introduced by FFMPEG to DNxHD-encoded >> MOVs. Thus, they fail to match both DNxHD MOVs generated with the >> Avid codec, as well as both MOVs? common source material (an 8-bit >> RGB TIFF sequence). >> > > > ffmpeg always assumes the BT.601 colorspace when converting from > RGB->YUV and from YUV->RGB. A patch to fix this is welcome, but no one > has ever cared enough to provide it. > > So if you do: > > ffmpeg: RGB -> [BT.601 matrix] -> YUV > > other tool: YUV -> [BT.709 matrix] -> RGB > > then you get a color shift like you describe. > > Workaround: feed ffmpeg with a file containing YUV that's been properly > converted. > > > Mike Scheutzow > > ______________________________**_________________ > 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 ale.schenberg at gmail.com Sat Jul 7 11:20:20 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Sat, 7 Jul 2012 06:20:20 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: <4FF6E2FB.1090201@alcatel-lucent.com> References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: It worked. Also, I downloaded the newest version and just saying make=V1 work there. However, in both cases, after a good time of compilation, I get this: "gcc -o doc/print_options doc/print_options.o -lm doc/print_options format > doc/avoptions_format.texi doc/print_options codec > doc/avoptions_codec.texi awk '/^@(verbatim)?include/ { printf "doc/ffmpeg.html: doc/%s\n", $2 }' doc/ffmpeg.html.d texi2html -I doc -monolithic --init-file ./doc/t2h.init --output doc/ffmpeg.html doc/ffmpeg.texi Unknown option: init-file Try 'texi2html -help' for usage instructions. make: *** [doc/ffmpeg.html] Error 2" 2012/7/6, Mike Scheutzow : > Alexandre Schenberg wrote: >> Yes, my make verson is 3.80. >> I tried make V=1. I started to compile, but after a few seconds it >> showed: >> >> "In file included from libavdevice/v4l.c:40: >> /usr/include/linux/videodev.h:55: error: syntax error before "ulong" >> /usr/include/linux/videodev.h:71: error: syntax error before '}' token >> libavdevice/v4l.c: In function `grab_read_header': >> libavdevice/v4l.c:84: error: storage size of `tuner' isn't known >> libavdevice/v4l.c:92: warning: `time_base' is deprecated (declared at >> libavformat/avformat.h:350) >> libavdevice/v4l.c:93: warning: `time_base' is deprecated (declared at >> libavformat/avformat.h:350) >> libavdevice/v4l.c:96: warning: `time_base' is deprecated (declared at >> libavformat/avformat.h:350) >> libavdevice/v4l.c:98: warning: `width' is deprecated (declared at >> libavformat/avformat.h:353) >> libavdevice/v4l.c:99: warning: `height' is deprecated (declared at >> libavformat/avformat.h:354) >> libavdevice/v4l.c:136: warning: `pix_fmt' is deprecated (declared at >> libavformat/avformat.h:355) >> libavdevice/v4l.c:144: error: invalid application of `sizeof' to an >> incomplete type >> libavdevice/v4l.c:146: error: invalid application of `sizeof' to an >> incomplete type >> libavdevice/v4l.c:84: warning: unused variable `tuner' >> make: *** [libavdevice/v4l.o] Error 1" >> >> Any possible solution? Anyway, time to get a newer make, right? > > This error is not caused by make. The problem is either old or missing > .h files in /usr/include. > > As an experiment, you could disable the compiling of all these avdevices > (used for hardware i/o mostly): > > ./configure --disable-indevs --disable-outdevs > make V=1 > > To see all the available configure options: > > ./configure --help | more > > > Mike Scheutzow > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From michaelni at gmx.at Sat Jul 7 12:15:27 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Sat, 7 Jul 2012 12:15:27 +0200 Subject: [FFmpeg-user] ac3 to mp3 converting bug In-Reply-To: <4ff70f3f.5565ffe8.bm000@wupperonline.de> References: <20120705134318.GA5245@kiste2> <4ff70f3f.5565ffe8.bm000@wupperonline.de> Message-ID: <20120707101526.GC5245@kiste2> On Fri, Jul 06, 2012 at 06:09:57PM +0200, Ingo Br?ckl wrote: > Michael Niedermayer wrote on Thu, 5 Jul 2012 15:43:18 +0200: > > > please retry, should be fixed. > > It is. Thanks a lot. > > Just curious: Will sse assembler code reappear (or was there never > such code that worked)? I mean, especially old CPUs need all help > for speed increase they can get. the "sse" assembler used sse2 instructions with the exception of 1 or 2 functions that are only used in very rare cases. it should be possible to change the macros so they produce something that works on SSE cpus this would be slower for them though and be a bit work. A patch surely would be welcome. in absence of a patch i might look into it too but first some fate client that tests ffmpeg on sse only hardware would be needed (also see doc/fate.texi about information on how to setup a fate client) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB it is not once nor twice but times without number that the same ideas make their appearance in the world. -- Aristotle -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From michaelni at gmx.at Sat Jul 7 12:18:26 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Sat, 7 Jul 2012 12:18:26 +0200 Subject: [FFmpeg-user] make fate / AMD Athlon XP In-Reply-To: <4ff70f3f.522957cd.bm002@wupperonline.de> References: <4ff70f3f.522957cd.bm002@wupperonline.de> Message-ID: <20120707101826.GD5245@kiste2> On Fri, Jul 06, 2012 at 06:10:46PM +0200, Ingo Br?ckl wrote: > Hi, > > I get two errors, both due to "Illegal instruction": > > Test mapchan-6ch-extract-2-downmix-mono failed. > Test lavf-dv_fmt failed. > > Valgrind tells (same instruction bytes for both errors): > > vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 > ==17042== valgrind: Unrecognised instruction at address 0x4f29b73. > ==17042== at 0x4F29B73: ??? (in /usr/lib/libswresample.so.0.15.100) > > Is that enough information? i would suggest you avoid shared libs in testing its easy to forget installing new libs after some change and then test new ffmpeg with old libs also some line number and or function name is needed to identify where the problem causing instruction is [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I have never wished to cater to the crowd; for what I know they do not approve, and what they approve I do not know. -- Epicurus -------------- 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 Sat Jul 7 12:51:26 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 10:51:26 +0000 (UTC) Subject: [FFmpeg-user] Compiling failure References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: Alexandre Schenberg gmail.com> writes: > texi2html -I doc -monolithic --init-file ./doc/t2h.init --output > doc/ffmpeg.html doc/ffmpeg.texi > Unknown option: init-file This is now ticket #1515 - thank you for the report. Note that your build system is not completely up-to-date, while we try hard to stay compatible with older systems, please understand that this is difficult to test (and therefore breaks from time to time). make 3.80 is simply unsupported though. (The documentation is built after the binaries, so your build should be ok, --disable-documentation makes the error disappear.) Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:00:14 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:00:14 +0000 (UTC) Subject: [FFmpeg-user] (no subject) References: <1b14e74a9a370354f870792ec67fbe29.squirrel@www.picaflor-azul.com> Message-ID: Anne at Picaflor Azul picaflor-azul.com> writes: > This is my first time using an email list, so please let > me know if I am doing anything wrong. It is considered a bit rude not to use the subject line (and makes following the mailing list harder), please use a subject in the future. > avconv -f x11grab -s hd1080 -r 30 -i 0:0 -acodec pcm_s16le > -vcodec libx264 -preset ultrafast -crf 0 -threads 0 -f alsa > -ac 2 -i pulse recording-filename.mkv crf 0 is lossless iirc (or at least good quality) so if you see a quality problem, encoding is probably not the reason. I suspect you don't like the RGB->YUV420 colour conversion, you can avoid it with x264 but the result will be unplayable with anything not FFmpeg-based (QuickTime and WMP do not support anything else than yuv420 for h264). > avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1 This is an intentionally broken version of ffmpeg, it contains several hundred known regressions, some of them security relevant, please understand that we can only support the versions on http://ffmpeg.org/download.html (preferably current git head). Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:12:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:12:11 +0000 (UTC) Subject: [FFmpeg-user] Licencing requirement changes? References: Message-ID: eric cocuzza hotmail.com> writes: > Is there any changes in the Licencing requirements while > migrating from Xuggler 4.XX to Xuggler 5.XXXX?? Is that possibly the wrong mailing list to ask? We do not develop Xuggler nor distribute, we do not know its license terms. Afaict from a quick look, Xuggler is LGPL 3 if you do not need x264 (and do not distribute it), it is GPL 3 if it comes with x264. Both licenses are also available for FFmpeg. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:15:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:15:06 +0000 (UTC) Subject: [FFmpeg-user] Copying YUV data take huge amount of memory and time References: <4FF16B40.9070200@yahoo.com> <4FF453D4.1020907@alcatel-lucent.com> <4FF46D5C.10101@yahoo.com> <4FF590B3.1000700@alcatel-lucent.com> <4FF68744.2090802@yahoo.com> <4FF6E52E.8070803@alcatel-lucent.com> <45F3FDEC759D21468F1F910D2B1CC43BC909DD8D39@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN> Message-ID: Ajita Pandey hcl.com> writes: > I am integrating hardware codecs in ffmpeg code. > But while I am trying decode video data using function > virtual to physical memory it takes lots of time and memory. I suspect the whole concept of hardware decoding on the GPU makes a lot of sense and works fine if you use the decoded data on the GPU (i.e. you display it), it probably does not work so well if you choose to copy the decoded frame from the GPU (memory) into main memory. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:26:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:26:49 +0000 (UTC) Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS References: Message-ID: Pavan Kulkarni gmail.com> writes: > I'm using the following command to get a thumbnail from a > video file. It uses the seek option to grab a thumbnail. > The problem is that this command takes up quite some time > especially with certain containers such as MPEG-2 TS. > (As much as 40 seconds). Did you try to find out what takes so long? Seeking, decoding, encoding (or even startup of the executable)? ffmpeg -i input.ts out.jpg ffmpeg -ss 18 -i input.ts -vframes 1 -f null - ffmpeg -ss 18 -i input.ts -vframes 1 -vcodec copy -f rawvideo /dev/null Why do you need the select filter? Nowadays, FFmpeg should seek to a keyframe. If I am wrong, please provide complete, uncut console output. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:29:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:29:49 +0000 (UTC) Subject: [FFmpeg-user] Compiling failure References: <4FF5944D.50300@alcatel-lucent.com> Message-ID: Alexandre Schenberg gmail.com> writes: > "In file included from libavdevice/v4l.c:40: Since this file is not compiled by default: What version of FFmpeg are your trying to compile? If you are a user (and not a distributor), you should only consider current git head. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:34:46 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:34:46 +0000 (UTC) Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: Harald Jordan redstream.at> writes: > ffmpeg version N-42016-gc103dc0 One day after this version a patch was committed that claims to fix the hang (ticket #986) ;-( Carl Eugen From info at picaflor-azul.com Sat Jul 7 13:35:27 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Sat, 7 Jul 2012 06:35:27 -0500 Subject: [FFmpeg-user] Latest Version In-Reply-To: References: <1b14e74a9a370354f870792ec67fbe29.squirrel@www.picaflor-azul.com> Message-ID: <6a5c46338a08fb88cf39a349c6c1ae82.squirrel@www.picaflor-azul.com> Hello, Thank you very much for your help. I will get to work trying to set up the latest version right away. Are there any "security" issues in relation to which I need to take precautions? -- Thanks, Anne www.picaflor-azul.com From cehoyos at ag.or.at Sat Jul 7 13:43:39 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:43:39 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Excessive_reporting_with_-report_option_i?= =?utf-8?q?n_latest=09FFMPEG_builds?= References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> Message-ID: Nicolas George normalesup.org> writes: > Can you reproduce the problem with a small file and attach > it to a new Trac ticket, along with the corresponding > -report file? Ticket #1344 already exists, unfortunately it still needs output (without -report, excessive logging with -report would not be a bug imo) and a sample. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:52:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:52:12 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> Message-ID: Mike F yahoo.com> writes: > if I try to use ffmpeg, I get no sound: > > ?ffmpeg -y? -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 Afaict (I do use both from time to time), FFmpeg should by default do what you want. Does the following work: ffmpeg -f alsa -i hw:1,0 out.ac3 ? In any case, comlete, uncut output missing, it will show if there is a starting time problem. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:59:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:59:06 +0000 (UTC) Subject: [FFmpeg-user] dnxhd error in different versions References: Message-ID: Michael Bradshaw sorensonmedia.com> writes: > I think I've seen this before on this list (that is, getting the error > "Error while opening encoder for output stream #0:0 - maybe incorrect > parameters such as bit_rate, rate, width or height" and adding pix_fmt > fixes it). What do you think, Carl, of adding "or pix_fmt" to the > error message as a hint to the user? I am not sure but you could certainly either send a patch or even add it to your git repo;-) Carl Eugen From cehoyos at ag.or.at Sat Jul 7 13:55:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 11:55:12 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?merging_mp4_=28h=2E264=29_and_aac_with_ac?= =?utf-8?q?odec_copy_doesn=27t=09work?= References: <4FF47254.7020208@schmaili.com> Message-ID: Marc schmaili.com> writes: > ffmpeg "'.$videotrack.'" -i "'.$audiotrack2.'" > -vcodec copy -acodec copy "'.$targetFile.'" > > but it doesn't work. Complete, uncut console output missing. And please provide an actually working command line, not one that is part of a script (and needs variable definitions). Carl Eugen From cehoyos at ag.or.at Sat Jul 7 14:05:29 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 12:05:29 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Mangled_sound_when_combining_-acodec_wmav?= =?utf-8?q?2_-ar=0944100_-ab_64k?= References: Message-ID: Jan Ehrhardt ehrhardt.nl> writes: > Carl Eugen Hoyos in gmane.comp.video.ffmpeg.user (Mon, 2 Jul 2012 > 11:18:38 +0000 (UTC)): > >Should be fixed, thank you for the useful report! > > My pleasure. Did you file a bug, so I can follow the progress? No, because as I said, the bug should be fixed. Or do I misunderstand? Carl Eugen From cehoyos at ag.or.at Sat Jul 7 14:08:08 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 12:08:08 +0000 (UTC) Subject: [FFmpeg-user] need to convert LR to HR. References: <1341245528.74117.YahooMailNeo@web122501.mail.ne1.yahoo.com> Message-ID: tank pranav yahoo.com> writes: > I want to convert low resolution video (.avi) to > high resolutoin (.avi) file. > > Can anyone please tell me What is the command in > ffmpeg which can do this ? Consider explaining what goal you want to achieve. (high resolution takes more space than low resolution and no quality is gained on re-encoding, so usually you would try hard to avoid to convert.) Carl Eugen From cehoyos at ag.or.at Sat Jul 7 14:11:34 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 12:11:34 +0000 (UTC) Subject: [FFmpeg-user] Multiple Video Recording References: Message-ID: suresh kumar gmail.com> writes: > Finally i got output for multiple video recording but now i am facing > any one of the video is not sync with audio(For two recording). Let me know > reason for not syncing properly. Video plays correctly but audio is > problem. Command line and complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Sat Jul 7 14:10:04 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Jul 2012 12:10:04 +0000 (UTC) Subject: [FFmpeg-user] Does apple lossless in ffmpeg using apple code? References: <1341144790.59207.YahooMailNeo@web36601.mail.mud.yahoo.com> <201207021142.03078.ffmpeg-list@dubistmeinheld.de> Message-ID: Juan Garrido dubistmeinheld.de> writes: > Is there a way to implement the codec from Apple to be > used by ffmpeg? Could you explain why you believe this would make sense? (Apart from the license issue.) Carl Eugen From ib at wupperonline.de Sat Jul 7 16:52:33 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Sat, 07 Jul 2012 16:52:33 +0200 Subject: [FFmpeg-user] make fate / AMD Athlon XP In-Reply-To: <20120707101826.GD5245@kiste2> Message-ID: <4ff85125.11718048.bm000@wupperonline.de> Michael Niedermayer wrote on Sat, 7 Jul 2012 12:18:26 +0200: > On Fri, Jul 06, 2012 at 06:10:46PM +0200, Ingo Br?ckl wrote: >> Hi, >> >> I get two errors, both due to "Illegal instruction": >> >> Test mapchan-6ch-extract-2-downmix-mono failed. >> Test lavf-dv_fmt failed. >> > also some line number and or function name is needed to identify > where the problem causing instruction is mapchan-6ch-extract-2-downmix-mono: vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 ==17185== valgrind: Unrecognised instruction at address 0x873d5b3. ==17185== at 0x873D5B3: ??? (rematrix.asm:242) lavf-dv_fmt: vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 ==5548== valgrind: Unrecognised instruction at address 0x873d3ed. ==5548== at 0x873D3ED: ??? (rematrix.asm:240) Ingo From michaelni at gmx.at Sat Jul 7 20:57:43 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Sat, 7 Jul 2012 20:57:43 +0200 Subject: [FFmpeg-user] make fate / AMD Athlon XP In-Reply-To: <4ff85125.11718048.bm000@wupperonline.de> References: <20120707101826.GD5245@kiste2> <4ff85125.11718048.bm000@wupperonline.de> Message-ID: <20120707185743.GE5245@kiste2> On Sat, Jul 07, 2012 at 04:52:33PM +0200, Ingo Br?ckl wrote: > Michael Niedermayer wrote on Sat, 7 Jul 2012 12:18:26 +0200: > > > On Fri, Jul 06, 2012 at 06:10:46PM +0200, Ingo Br?ckl wrote: > >> Hi, > >> > >> I get two errors, both due to "Illegal instruction": > >> > >> Test mapchan-6ch-extract-2-downmix-mono failed. > >> Test lavf-dv_fmt failed. > >> > > also some line number and or function name is needed to identify > > where the problem causing instruction is > > mapchan-6ch-extract-2-downmix-mono: > vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 > ==17185== valgrind: Unrecognised instruction at address 0x873d5b3. > ==17185== at 0x873D5B3: ??? (rematrix.asm:242) > > lavf-dv_fmt: > vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 > ==5548== valgrind: Unrecognised instruction at address 0x873d3ed. > ==5548== at 0x873D3ED: ??? (rematrix.asm:240) should be fixed, please retry [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From paziu at yahoo.com Sat Jul 7 22:11:18 2012 From: paziu at yahoo.com (Mike F) Date: Sat, 7 Jul 2012 13:11:18 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> Message-ID: <1341691878.23938.YahooMailNeo@web110501.mail.gq1.yahoo.com> > Afaict (I do use both from time to time), FFmpeg should by > default do what you want. > Does the following work: > ffmpeg -f alsa -i hw:1,0 out.ac3 > ? > > In any case, comlete, uncut output missing, it will show if > there is a starting time problem. > > Carl Eugen Thank you Carl, The ac3 file go created, and sound IS GOOD... as soon as I involve video4linux3, the sound is gone, # ffmpeg -y -standard NTSC -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 -acodec ac3 -vcodec libx264 out.mp4 tried with alsa & oss, different video and audio codecs, different versions of ffmpeg. it seems like v4l2 needs another argument to somehow force the audio.... Thanks again, Mike From phpdev at ehrhardt.nl Sat Jul 7 22:54:47 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 07 Jul 2012 22:54:47 +0200 Subject: [FFmpeg-user] The Magic Microsecond Message-ID: We are still using one of Sherpya's FFmpeg builds to transcode recordings on a SD card. Due to security precautions (and restrictions by sysadmins to -not- access files on the PC of the transcoder) we are doing the transcoding entirely on SD cards. Compare the four following command lines: ffmpeg-r32754 -i /SD_VIDEO/MOV001.MOD -vf scale=384:288 \ -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k \ -strict -2 -acodec aac -ab 96k -ar 44100 output.flv ffmpeg-r32754 -ss 0.000001 -i /SD_VIDEO/MOV001.MOD -vf scale=384:288 \ -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k \ -strict -2 -acodec aac -ab 96k -ar 44100 output.flv ffmpeg-20120706 -i /SD_VIDEO/MOV001.MOD -vf scale=384:288 \ -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k \ -strict -2 -acodec aac -ab 96k -ar 44100 -threads 0 \ output.flv ffmpeg-20120706 -ss 0.000001 -i /SD_VIDEO/MOV001.MOD -vf scale=384:288 \ -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k \ -strict -2 -acodec aac -ab 96k -ar 44100 -threads 0 \ output.flv You would expect them all to do the transcoding in more ore less the same amount of time. Well, when the output file is on a SD card, it ain't so. The first command line ends with: frame= 6012 fps= 22 q=24.7 Lsize= 12814kB time=00:04:00.48 \ bitrate= 436.5kbits/s The 22 fps was completely unacceptable and we moved to MEncoder, which did not have the problem. By pure chance, I discovered a few weeks ago how to speed up ffmpeg-r32754 dramatically: skip the first microsecond! -ss 0.000001. Result: frame= 6010 fps=330 q=23.8 Lsize= 12809kB time=00:04:00.48 \ bitrate= 436.3kbits/s Fps: 330. Now we are talking! 15 times as fast. ffmpeg-20120706 (Zeranoe build) does not behave as badly: frame= 6012 fps=310 q=24.4 Lsize= 12813kB time=00:04:00.48 \ bitrate= 436.5kbits/s Newer FFmpeg with MT support, slower transcoding. The magic microsecond does not really speed things up in the latest FFmpeg: frame= 6000 fps=312 q=24.4 Lsize= 12814kB time=00:04:00.48 \ bitrate= 436.5kbits/s Questions: 1. Does anyone have the faintest idea, why skipping the first microsecond make FFmpeg-r32754 15 times as fast? 2. Was it fixed in later builds deliberately or by chance? 3. Any explanation why the newest FFmpeg is slower than the r32754? A few closing remarks: - No, -ss 0 or -s 0.000000 won't work - We have similar problems with MP4box on a SD card. Sloooooow Jan T:\utils>ffmpeg-r32754 -ss 0.000001 -i /SD_VIDEO/MOV001.MOD -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 64k -y output.flv ffmpeg version N-32754-g936d4d4-Sherpya, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 21 2011 13:48:46 with gcc 4.2.5 20090330 (prerelease) [Sherpya] libavutil 51. 16. 1 / 51. 16. 1 libavcodec 53. 16. 0 / 53. 16. 0 libavformat 53. 12. 0 / 53. 12. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 2 / 2. 43. 2 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpeg @ 0171d980] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [buffer @ 03c82f80] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:12/11 sws_param: [scale @ 003ad1e0] w:352 h:288 fmt:yuv420p -> w:384 h:288 fmt:yuv420p flags:0x4 Output #0, flv, to 'output.flv': Metadata: encoder : Lavf53.12.0 Stream #0.0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0.1: Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 (mpeg2video -> flv) Stream #0.1 -> #0.1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 01730280] warning: first frame is no keyframe frame= 159 fps= 0 q=11.1 size= 472kB time=00:00:06.31 bitrate= 611.7kbits/ frame= 332 fps=294 q=7.5 size= 927kB time=00:00:13.22 bitrate= 574.3kbits/s frame= 458 fps=305 q=10.8 size= 1198kB time=00:00:18.21 bitrate= 538.6kbits/ frame= 466 fps=305 q=10.4 Lsize= 1223kB time=00:00:18.62 bitrate= 538.1kbits T:\utils>ffmpeg-20120706 -i /SD_VIDEO/MOV001.MOD -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 64k -y output.flv ffmpeg version N-42288-g8293a21 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2012 20:56:23 with gcc 4.7.1 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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 01dfc860] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [graph 0 input from stream 0:0 @ 01cd7ee0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 01ce93e0] No opaque field provided [Parsed_scale_0 @ 01cd7e00] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 01cf3480] tb:1/48000 samplefmt:s16 samplerate:4 8000 chlayout:0x3 [auto-inserted resampler 0 @ 01cf3600] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.15.100 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, stereo, flt, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> flv) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 01cd5b80] warning: first frame is no keyframe frame= 142 fps=0.0 q=9.6 size= 454kB time=00:00:05.48 bitrate= 679.1kbits/s frame= 299 fps=299 q=6.7 size= 867kB time=00:00:11.81 bitrate= 601.0kbits/s frame= 359 fps=239 q=8.3 size= 1026kB time=00:00:14.23 bitrate= 590.9kbits/s frame= 515 fps=257 q=12.2 size= 1346kB time=00:00:20.39 bitrate= 540.8kbits/ From phpdev at ehrhardt.nl Sat Jul 7 23:09:46 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 07 Jul 2012 23:09:46 +0200 Subject: [FFmpeg-user] Mangled sound when combining -acodec wmav2 -ar 44100 -ab 64k References: Message-ID: <479hv7ptp191blcfla80jv54erj75rf8hh@4ax.com> Carl Eugen Hoyos in gmane.comp.video.ffmpeg.user (Sat, 7 Jul 2012 12:05:29 +0000 (UTC)): >Jan Ehrhardt ehrhardt.nl> writes: > >> My pleasure. Did you file a bug, so I can follow the progress? > >No, because as I said, the bug should be fixed. >Or do I misunderstand? OK, you are right. # ffmpeg -i small.wmv -vcodec wmv2 -acodec wmav2 -ar 44100 -ab 64k \ mangled.wmv with ffmpeg version git-2012-07-06-5997285 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 6 2012 21:21:35 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3) works OK. What patch did you apply? Jan From paziu at yahoo.com Sat Jul 7 23:18:36 2012 From: paziu at yahoo.com (Mike F) Date: Sat, 7 Jul 2012 14:18:36 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> Message-ID: <1341695916.15679.YahooMailNeo@web110502.mail.gq1.yahoo.com> > Afaict (I do use both from time to time), FFmpeg should by > default do what you want. > Does the following work: > ffmpeg -f alsa -i hw:1,0 out.ac3 > ? > > In any case, comlete, uncut output missing, it will show if > there is a starting time problem. > > Carl Eugen output from: # ffmpeg -y -f alsa -i hw:1,0 -itsoffset 00:00:00.5 -standard NTSC -f video4linux2 -i /dev/video0 -vcodec libx264 -b:a 192k -b:v 400k -acodec ac3 -threads 0 out.mp4 available here: http://codepad.org/yEbbXv0t Thanks! Mike From phpdev at ehrhardt.nl Sat Jul 7 23:52:25 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 07 Jul 2012 23:52:25 +0200 Subject: [FFmpeg-user] Mangled sound when combining -acodec wmav2 -ar 44100 -ab 64k References: <479hv7ptp191blcfla80jv54erj75rf8hh@4ax.com> Message-ID: Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Sat, 07 Jul 2012 23:09:46 +0200): >What patch did you apply? This one, I suppose: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=fbdb2059684ff27be61cfe40446e68cb2f9a12f8 wmaenc: dont mess with the bitrate. Following the ffmpeg.devel group alone is not good enough ;-) Jan From ale.schenberg at gmail.com Sun Jul 8 02:22:13 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Sat, 7 Jul 2012 21:22:13 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: Is that right? --disable-documentation? configure says it that option does not exists 2012/7/7, Carl Eugen Hoyos : > This is now ticket #1515 - thank you for the report. > Note that your build system is not completely up-to-date, > while we try hard to stay compatible with older systems, > please understand that this is difficult to test (and > therefore breaks from time to time). > make 3.80 is simply unsupported though. > > (The documentation is built after the binaries, so your > build should be ok, --disable-documentation makes the > error disappear.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ale.schenberg at gmail.com Sun Jul 8 02:24:40 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Sat, 7 Jul 2012 21:24:40 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> Message-ID: I were trying to compile a version that I downloaded in January if I am not mistake 2012/7/7, Carl Eugen Hoyos : > Alexandre Schenberg gmail.com> writes: > >> "In file included from libavdevice/v4l.c:40: > > Since this file is not compiled by default: > What version of FFmpeg are your trying to compile? > If you are a user (and not a distributor), you should > only consider current git head. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sun Jul 8 08:14:05 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 8 Jul 2012 06:14:05 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> <1341695916.15679.YahooMailNeo@web110502.mail.gq1.yahoo.com> Message-ID: Mike F yahoo.com> writes: > output from: > # ffmpeg -y -f alsa -i hw:1,0 -itsoffset 00:00:00.5 -standard NTSC > -f video4linux2 -i /dev/video0 -vcodec libx264 -b:a 192k > -b:v 400k -acodec ac3 -threads 0 out.mp4 > > available here: > http://codepad.org/yEbbXv0t Please post complete, uncut output here on the mailing list, external resources tend to disappear one day. Carl Eugen From cehoyos at ag.or.at Sun Jul 8 08:15:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 8 Jul 2012 06:15:11 +0000 (UTC) Subject: [FFmpeg-user] Compiling failure References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: Alexandre Schenberg gmail.com> writes: > Is that right? --disable-documentation? configure says it that option > does not exists $ ./configure --help|grep docu --disable-doc do not build documentation Please do not top-post here, it is considered rude. Carl Eugen From dflett at bigpond.net.au Sun Jul 8 09:23:41 2012 From: dflett at bigpond.net.au (Dan Flett) Date: Sun, 8 Jul 2012 17:23:41 +1000 Subject: [FFmpeg-user] Audio Channel mapping: 8 channel to 2 channel stream, dropping input channels 3-8 Message-ID: <7ABBA1D3726F411AB5881506DAB1039D@gtv.local> Hi all, I am struggling to find a way of mapping channels 1 and 2 of the first input stream of my audio input. -map_channel does what I want if I know which numerical stream is the audio - e.g. -map_channel 0.0.0 -map_channel 0.0.1. However in my video files, the first audio stream is sometimes 0.0, sometimes it is 0.1. I want to script this so that it always takes the first audio stream. I can't seem to use the "a" stream identifier in -map_channel to unambiguously denote audio. I have tried various filters such as channelmap, pan, etc. No matter what I do, the filters always seem to detect the 8 channel input stream as a 7.1 audio format (which it isn't - it's 8 discrete, unrelated audio channels - not surround sound), and always performs a downmix. I don't want a downmix, I just want channel 1 and 2 of the input stream to be channel 1 and 2 of the output stream and all other input channels to be dropped. Does anyone have a suggestion here? I want to avoid a 2-step process - i.e. piping or using a temp file. Cheers, Dan From nicolas.george at normalesup.org Sun Jul 8 10:51:04 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 8 Jul 2012 10:51:04 +0200 Subject: [FFmpeg-user] Audio Channel mapping: 8 channel to 2 channel stream, dropping input channels 3-8 In-Reply-To: <7ABBA1D3726F411AB5881506DAB1039D@gtv.local> References: <7ABBA1D3726F411AB5881506DAB1039D@gtv.local> Message-ID: <20120708085104.GA25325@phare.normalesup.org> Le primidi 21 messidor, an CCXX, Dan Flett a ?crit?: > I have tried various filters such as channelmap, pan, etc. No matter what I > do, the filters always seem to detect the 8 channel input stream as a 7.1 > audio format (which it isn't - it's 8 discrete, unrelated audio channels - > not surround sound), and always performs a downmix. channelmap is not supported. pan would be my advice for that task. Please post the exact command line you tried with pan (the best one if you tried several) and the full corresponding console output. 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 mark at mdsh.com Sun Jul 8 13:06:21 2012 From: mark at mdsh.com (Mark Himsley) Date: Sun, 08 Jul 2012 12:06:21 +0100 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> <4FF71E88.3090703@alcatel-lucent.com> <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> Message-ID: <4FF969AD.2020301@mdsh.com> > On 07/07/2012 04:52, Nathan Rusch wrote: >> -----Original Message----- From: Mike Scheutzow >> Sent: Friday, July 06, 2012 10:21 AM >> To: FFmpeg user questions and RTFMs >> Subject: Re: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs >> >> Nathan Rusch wrote: >>> Hello all, >>> >>> In trying to troubleshoot another issue, I?ve run across a subtle, >>> consistent color shift being introduced by FFMPEG to DNxHD-encoded >>> MOVs. Thus, they fail to match both DNxHD MOVs generated with the >>> Avid codec, as well as both MOVs? common source material (an 8-bit >>> RGB TIFF sequence). >> >> >> ffmpeg always assumes the BT.601 colorspace when converting from >> RGB->YUV and from YUV->RGB. A patch to fix this is welcome, but no one >> has ever cared enough to provide it. >> >> So if you do: >> >> ffmpeg: RGB -> [BT.601 matrix] -> YUV >> >> other tool: YUV -> [BT.709 matrix] -> RGB >> >> then you get a color shift like you describe. >> >> Workaround: feed ffmpeg with a file containing YUV that's been properly >> converted. Reformatted so your top-posting is converted into in-line threadding. > I wanted to follow up on this for posterity (in case anyone else comes down this same road). > > I was able to get the colors to match 1:1 to the source by adding a > colormatrix operation to the conversion process via libavfilter. The flag and value added are: > > -vf colormatrix=bt601:bt709 > > Thanks again for getting me moving in the right direction Mike. I'd like to post, for posterity, that this will reduce the fidelity of your video. RGB -> YUV (BT.601) is a lossy transformation (in the sense that you cannot go RGB -> YUV (BT.601) -> RGB and expect to get out exactly what you put in) AND YUV (BT.601) -> YUV (BT.709) is a lossy transformation (in the sense that you cannot go YUV (BT.601) -> YUV (BT.709) -> YUV (BT.601) and expect to get out exactly what you put in) Concatenating two lossy transforms is very bad. I understand that this is currently your only course of action. I think a worthwhile addition to the scale filter (which does the format conversion) would be to add a choice of colourspace, much like the use of "format" forces the scale filter to change colour format. Tim Nicholson has been discussing something similar. Perhaps (this is just off the top of my head, and I'm willing to be shot down) something like: "-vf scale=0:0:rgbyuv=bt709,format=yuv422p" may tell the scale filter to convert to yuv422p and if an RGB -> YUV conversion is needed then use the RGB -> BT.709 conversion. -- Mark From ib at wupperonline.de Sun Jul 8 15:14:42 2012 From: ib at wupperonline.de (=?ISO-8859-1?Q?Ingo=20Br=FCckl?=) Date: Sun, 08 Jul 2012 15:14:42 +0200 Subject: [FFmpeg-user] make fate / AMD Athlon XP In-Reply-To: <20120707185743.GE5245@kiste2> Message-ID: <4ff987c3.4e170e78.bm000@wupperonline.de> Michael Niedermayer wrote on Sat, 7 Jul 2012 20:57:43 +0200: > On Sat, Jul 07, 2012 at 04:52:33PM +0200, Ingo Br?ckl wrote: >> >> mapchan-6ch-extract-2-downmix-mono: >> vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 >> ==17185== valgrind: Unrecognised instruction at address 0x873d5b3. >> ==17185== at 0x873D5B3: ??? (rematrix.asm:242) >> >> lavf-dv_fmt: >> vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 >> ==5548== valgrind: Unrecognised instruction at address 0x873d3ed. >> ==5548== at 0x873D3ED: ??? (rematrix.asm:240) > should be fixed, please retry Yes, 'make fate' runs without any errors now. (I've got TEST lavfi-pixfmts_pixdesctest --- ./tests/ref/lavfi/pixfmts_pixdesctest 2012-07-08 12:41:13.000000000 +0200 +++ tests/data/fate/lavfi-pixfmts_pixdesctest 2012-07-08 14:15:57.000000000 +0200 @@ -3,7 +3,7 @@ abgr 037bf9df6a765520ad6d490066bf4b89 argb c442a8261c2265a07212ef0f72e35f5a bgr0 207df2c1476e7b2eaa8f51eaadcc54cb -bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b +bgr24 c3d3b37a910301e5cfd66e771295a224 bgr444be d9ea9307d21b162225b8b2c524cf9477 bgr444le 88035350e9da3a8f67387890b956f0bc bgr48be 00624e6c7ec7ab19897ba2f0a3257fe8 at the first run though, but couldn't find anything strange in lavfi-pixfmts_pixdesctest.err. A second run was fine then...) Ingo From krueger at lesspain.de Sun Jul 8 15:48:35 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sun, 8 Jul 2012 15:48:35 +0200 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <4FF969AD.2020301@mdsh.com> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> <4FF71E88.3090703@alcatel-lucent.com> <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> <4FF969AD.2020301@mdsh.com> Message-ID: Hi, On Sun, Jul 8, 2012 at 1:06 PM, Mark Himsley wrote: >> On 07/07/2012 04:52, Nathan Rusch wrote: >>> >>> -----Original Message----- From: Mike Scheutzow >>> Sent: Friday, July 06, 2012 10:21 AM >>> To: FFmpeg user questions and RTFMs >>> Subject: Re: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs >>> >>> Nathan Rusch wrote: >>>> >>>> Hello all, >>>> >>>> In trying to troubleshoot another issue, I?ve run across a subtle, >>>> consistent color shift being introduced by FFMPEG to DNxHD-encoded >>>> MOVs. Thus, they fail to match both DNxHD MOVs generated with the >>>> Avid codec, as well as both MOVs? common source material (an 8-bit >>>> RGB TIFF sequence). >>> >>> >>> >>> ffmpeg always assumes the BT.601 colorspace when converting from >>> RGB->YUV and from YUV->RGB. A patch to fix this is welcome, but no one >>> has ever cared enough to provide it. >>> >>> So if you do: >>> >>> ffmpeg: RGB -> [BT.601 matrix] -> YUV >>> >>> other tool: YUV -> [BT.709 matrix] -> RGB >>> >>> then you get a color shift like you describe. >>> >>> Workaround: feed ffmpeg with a file containing YUV that's been properly >>> converted. > > > Reformatted so your top-posting is converted into in-line threadding. > >> I wanted to follow up on this for posterity (in case anyone else comes >> down this same road). >> >> I was able to get the colors to match 1:1 to the source by adding a > >> colormatrix operation to the conversion process via libavfilter. The flag >> and value added are: >> >> >> -vf colormatrix=bt601:bt709 >> >> Thanks again for getting me moving in the right direction Mike. > > > I'd like to post, for posterity, that this will reduce the fidelity of your > video. > > RGB -> YUV (BT.601) is a lossy transformation (in the sense that you cannot > go RGB -> YUV (BT.601) -> RGB and expect to get out exactly what you put in) > > AND > > YUV (BT.601) -> YUV (BT.709) is a lossy transformation (in the sense that > you cannot go YUV (BT.601) -> YUV (BT.709) -> YUV (BT.601) and expect to get > out exactly what you put in) > > Concatenating two lossy transforms is very bad. I understand that this is > currently your only course of action. > > > I think a worthwhile addition to the scale filter (which does the format > conversion) would be to add a choice of colourspace, much like the use of > "format" forces the scale filter to change colour format. Tim Nicholson has > been discussing something similar. > > Perhaps (this is just off the top of my head, and I'm willing to be shot > down) something like: "-vf scale=0:0:rgbyuv=bt709,format=yuv422p" may tell > the scale filter to convert to yuv422p and if an RGB -> YUV conversion is > needed then use the RGB -> BT.709 conversion. wouldn't it be more flexible if one could specify something like source and target colorspace because then you could also convert and scale e.g. bt601 YUV to bt709 YUV or vice versa more like "-vf scale=0:0:src_colorspace=bt709,format=yuv422p,colorspace=bt601"? The source colorspace should ideally be set by default to the value of the source stream's AVCodecContext.colorspace if the information is there. I do not know the libavfilter API well enough to know if there is a way to transport the colorspace information through the rest of the chain (did not see it at first glance), so in the ffmpeg case the corresponding AVCodecContext fields can be filled so the codecs which support that information in their bitstream e.g. h264 and mpeg2 or some container formats can make the corresponding entries when encoding/muxing but this is getting more of a dev posting. From phpdev at ehrhardt.nl Sun Jul 8 16:29:13 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 08 Jul 2012 16:29:13 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: Message-ID: Jan Ehrhardt in ffmpeg.user (Sat, 07 Jul 2012 22:54:47 +0200): >3. Any explanation why the newest FFmpeg is slower than the > r32754? Talking to myself: I compiled the FFmpeg that came with MPlayer-1.1 and Zeranoe's 20120706 on Win7pro with the same configure options. The speed differences are huge. ffmpeg version 20120706-git-8293a21-0.11.1-zeranoe Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:33:59 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame frame= 6012 fps=300 q=24.4 Lsize= 12813kB time=00:04:00.48 \ bitrate= 436.5kbits/s ffmpeg version 0.10.2.git Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 05:46:11 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame frame= 6012 fps=363 q=24.4 Lsize= 12813kB time=00:04:00.48 \ bitrate= 436.5kbits/s Same configure options, same commandline, fps 300 versus fps 363. A 20% timing difference? Beats me. Lenovo X220, Win7Pro, SP1, all updates applied. E:\utils>cpuinfo.exe vendor_id : GenuineIntel cpu family : 6 model : 42 stepping : 7 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave osxsave avx nx rdtscp lm lahf_lm cpu MHz : 2362.207 model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz T:\> ffmpeg -i %input% -vf scale=384:288 -aspect 4:3 -sws_flags bicubic \ -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 96k -ar 44100 \ output.flv With input and output on a HDD, the speed difference is more or less the same: 308 versus 373. Input file: http://x32.elijst.nl/MOV001.MOD (50MB) Can I provide more information to analyse the difference? Jan mediainfo input file \SD_VIDEO\MOV001.mod General Complete name : \SD_VIDEO\MOV001.mod Format : MPEG-PS File size : 49.7 MiB Duration : 4mn 0s Overall bit rate mode : Variable Overall bit rate : 1 732 Kbps Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main at Main Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Duration : 4mn 0s Bit rate mode : Variable Bit rate : 1 570 Kbps Maximum bit rate : 3 000 Kbps Width : 352 pixels Height : 288 pixels Display aspect ratio : 4:3 Frame rate : 25.000 fps Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.619 Stream size : 45.0 MiB (91%) Audio ID : 189 (0xBD)-128 (0x80) Format : AC-3 Format/Info : Audio Coding 3 Mode extension : CM (complete main) Muxing mode : DVD-Video Duration : 4mn 0s Bit rate mode : Constant Bit rate : 128 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Bit depth : 16 bits Compression mode : Lossy Delay relative to video : -80ms Stream size : 3.67 MiB (7%) ffmpeg version 20120706-git-8293a21-0.11.1-zeranoe Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:33:59 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame libavutil 51. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 031ae860] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [graph 0 input from stream 0:0 @ 031b5340] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 031b55c0] No opaque field provided [Parsed_scale_0 @ 0328ffa0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 03279da0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [auto-inserted resampler 0 @ 0327a040] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.15.100 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> flv) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 031c1e20] warning: first frame is no keyframe frame= 137 fps=0.0 q=9.6 size= 470kB time=00:00:05.31 bitrate= 724.0kbits/s frame= 288 fps=185 q=6.3 size= 877kB time=00:00:11.35 bitrate= 632.9kbits/s frame= 435 fps=210 q=12.1 size= 1258kB time=00:00:17.22 bitrate= 598.2kbits/s frame= 587 fps=227 q=18.5 size= 1560kB time=00:00:23.35 bitrate= 547.1kbits/s frame= 737 fps=237 q=12.2 size= 1879kB time=00:00:29.25 bitrate= 526.0kbits/s frame= 886 fps=245 q=26.9 size= 2174kB time=00:00:35.27 bitrate= 504.9kbits/s frame= 1037 fps=251 q=7.2 size= 2476kB time=00:00:41.21 bitrate= 492.2kbits/s frame= 1181 fps=254 q=10.2 size= 2785kB time=00:00:47.06 bitrate= 484.8kbits/s frame= 1325 fps=257 q=11.4 size= 3073kB time=00:00:52.77 bitrate= 476.9kbits/s frame= 1471 fps=259 q=10.5 size= 3399kB time=00:00:58.60 bitrate= 475.1kbits/s frame= 1633 fps=264 q=14.5 size= 3709kB time=00:01:05.13 bitrate= 466.5kbits/s frame= 1799 fps=268 q=12.5 size= 4085kB time=00:01:11.74 bitrate= 466.4kbits/s frame= 1959 fps=271 q=11.0 size= 4406kB time=00:01:18.08 bitrate= 462.3kbits/s frame= 2124 fps=275 q=21.3 size= 4759kB time=00:01:24.79 bitrate= 459.8kbits/s frame= 2299 fps=279 q=11.6 size= 5130kB time=00:01:31.78 bitrate= 457.9kbits/s frame= 2470 fps=282 q=11.3 size= 5480kB time=00:01:38.52 bitrate= 455.7kbits/s frame= 2635 fps=284 q=10.2 size= 5833kB time=00:01:45.25 bitrate= 454.0kbits/s frame= 2800 fps=286 q=9.0 size= 6163kB time=00:01:51.78 bitrate= 451.7kbits/s frame= 2965 fps=288 q=8.9 size= 6501kB time=00:01:58.39 bitrate= 449.8kbits/s frame= 3121 fps=288 q=10.3 size= 6847kB time=00:02:04.64 bitrate= 450.0kbits/s frame= 3269 fps=288 q=21.8 size= 7117kB time=00:02:10.49 bitrate= 446.8kbits/s frame= 3422 fps=289 q=11.1 size= 7451kB time=00:02:16.71 bitrate= 446.4kbits/s frame= 3588 fps=290 q=9.2 size= 7825kB time=00:02:23.36 bitrate= 447.1kbits/s frame= 3761 fps=292 q=12.9 size= 8178kB time=00:02:30.21 bitrate= 446.0kbits/s frame= 3928 fps=293 q=11.9 size= 8514kB time=00:02:36.89 bitrate= 444.5kbits/s frame= 4087 fps=294 q=11.0 size= 8840kB time=00:02:43.32 bitrate= 443.4kbits/s frame= 4246 fps=294 q=10.1 size= 9157kB time=00:02:49.59 bitrate= 442.3kbits/s frame= 4397 fps=294 q=17.2 size= 9465kB time=00:02:55.68 bitrate= 441.4kbits/s frame= 4543 fps=294 q=22.9 size= 9771kB time=00:03:01.51 bitrate= 441.0kbits/s frame= 4711 fps=295 q=12.6 size= 10145kB time=00:03:08.22 bitrate= 441.5kbits/s frame= 4877 fps=296 q=15.2 size= 10455kB time=00:03:14.88 bitrate= 439.5kbits/s frame= 5044 fps=297 q=10.4 size= 10797kB time=00:03:21.54 bitrate= 438.9kbits/s frame= 5206 fps=297 q=11.8 size= 11143kB time=00:03:28.00 bitrate= 438.9kbits/s frame= 5374 fps=298 q=11.4 size= 11516kB time=00:03:34.78 bitrate= 439.2kbits/s frame= 5543 fps=299 q=13.0 size= 11849kB time=00:03:41.61 bitrate= 438.0kbits/s frame= 5711 fps=300 q=12.3 size= 12185kB time=00:03:48.25 bitrate= 437.3kbits/s frame= 5873 fps=300 q=19.6 size= 12524kB time=00:03:54.75 bitrate= 437.0kbits/s frame= 6012 fps=300 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s video:9746kB audio:2802kB subtitle:0 global headers:0kB muxing overhead 2.121789% ffmpeg version 0.10.2.git Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 05:46:11 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame libavutil 51. 56.100 / 51. 56.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 [mpeg @ 0322e860] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [buffer @ 0330fe40] w:352 h:288 pixfmt:yuv420p tb:1/90000 sar:12/11 sws_param:flags=2 [buffersink @ 0330faa0] No opaque field provided [scale @ 032e6a60] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 03af0320] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'aformat' [aresample @ 03af0380] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.6.101 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> flv) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 03241e20] warning: first frame is no keyframe frame= 147 fps=0.0 q=10.4 size= 478kB time=00:00:05.59 bitrate= 699.9kbits/s frame= 338 fps=328 q=8.9 size= 1018kB time=00:00:13.28 bitrate= 628.0kbits/s frame= 513 fps=332 q=12.2 size= 1423kB time=00:00:20.29 bitrate= 574.3kbits/s frame= 699 fps=339 q=8.4 size= 1792kB time=00:00:27.72 bitrate= 529.6kbits/s frame= 877 fps=341 q=21.3 size= 2155kB time=00:00:34.87 bitrate= 506.1kbits/s frame= 947 fps=307 q=21.6 size= 2286kB time=00:00:37.75 bitrate= 496.1kbits/s frame= 1131 fps=314 q=21.0 size= 2675kB time=00:00:45.00 bitrate= 486.9kbits/s frame= 1301 fps=316 q=18.9 size= 3030kB time=00:00:51.85 bitrate= 478.8kbits/s frame= 1483 fps=320 q=9.4 size= 3429kB time=00:00:59.11 bitrate= 475.1kbits/s frame= 1679 fps=326 q=9.6 size= 3806kB time=00:01:06.94 bitrate= 465.8kbits/s frame= 1871 fps=330 q=18.2 size= 4225kB time=00:01:14.69 bitrate= 463.3kbits/s frame= 2071 fps=335 q=10.5 size= 4664kB time=00:01:22.66 bitrate= 462.2kbits/s frame= 2278 fps=340 q=11.2 size= 5082kB time=00:01:30.95 bitrate= 457.7kbits/s frame= 2486 fps=345 q=10.9 size= 5510kB time=00:01:39.26 bitrate= 454.7kbits/s frame= 2683 fps=347 q=31.0 size= 5924kB time=00:01:47.18 bitrate= 452.8kbits/s frame= 2879 fps=350 q=14.4 size= 6343kB time=00:01:55.00 bitrate= 451.8kbits/s frame= 3074 fps=351 q=9.7 size= 6743kB time=00:02:02.71 bitrate= 450.2kbits/s frame= 3251 fps=351 q=21.7 size= 7090kB time=00:02:09.82 bitrate= 447.4kbits/s frame= 3431 fps=351 q=10.0 size= 7476kB time=00:02:17.09 bitrate= 446.7kbits/s frame= 3629 fps=352 q=10.9 size= 7924kB time=00:02:25.00 bitrate= 447.7kbits/s frame= 3830 fps=354 q=12.7 size= 8319kB time=00:02:32.97 bitrate= 445.5kbits/s frame= 4033 fps=356 q=21.5 size= 8735kB time=00:02:41.12 bitrate= 444.1kbits/s frame= 4217 fps=356 q=11.9 size= 9104kB time=00:02:48.50 bitrate= 442.6kbits/s frame= 4402 fps=356 q=16.2 size= 9479kB time=00:02:55.84 bitrate= 441.6kbits/s frame= 4574 fps=355 q=8.8 size= 9822kB time=00:03:02.71 bitrate= 440.4kbits/s frame= 4776 fps=357 q=13.7 size= 10266kB time=00:03:10.89 bitrate= 440.6kbits/s frame= 4976 fps=358 q=14.4 size= 10662kB time=00:03:18.85 bitrate= 439.2kbits/s frame= 5174 fps=359 q=12.6 size= 11065kB time=00:03:26.72 bitrate= 438.5kbits/s frame= 5374 fps=360 q=11.4 size= 11516kB time=00:03:34.76 bitrate= 439.3kbits/s frame= 5579 fps=361 q=12.1 size= 11921kB time=00:03:42.95 bitrate= 438.0kbits/s frame= 5781 fps=362 q=11.4 size= 12333kB time=00:03:51.01 bitrate= 437.4kbits/s frame= 5974 fps=363 q=12.7 size= 12735kB time=00:03:58.79 bitrate= 436.9kbits/s frame= 6012 fps=363 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s video:9746kB audio:2802kB global headers:0kB muxing overhead 2.121781% From paziu at yahoo.com Sun Jul 8 18:34:33 2012 From: paziu at yahoo.com (Mike F) Date: Sun, 8 Jul 2012 09:34:33 -0700 (PDT) Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: Message-ID: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> >> 3. Any explanation why the newest FFmpeg is slower than the >> ?? r32754? > > Talking to myself: I compiled the FFmpeg that came with MPlayer-1.1 > and Zeranoe's 20120706 on Win7pro with the same configure options. > > The speed differences are huge. > > Jan Ehrhardt in ffmpeg.user (Sat, 07 Jul 2012 22:54:47 +0200): Your original question was about newest being slower than r32754 I compared with your mpeg2 sample: ----------------------------------------- v10.2 # ~/src/ffmpeg-0.10.2/ffmpeg-0.10.2/ffmpeg -y -i MOV001.MOD -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 96k -ar 44100 output10.flv ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-avfilter --disable-debug --disable-static --cpu=core2 --enable-sram frame= 6012 fps=448 q=24.4 Lsize=?? 12813kB time=00:04:00.48 bitrate= 436.5kbits/s??? video:9746kB audio:2801kB global headers:0kB muxing overhead 2.121697% ----------------------------------------- dev git from about aweek ago or so # ffmpeg -i MOV001.MOD -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 96k -ar 44100 output.flv ffmpeg version N-42170-g71e5a14 Copyright (c) 2000-2012 the FFmpeg developers --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-gpl --enable-nonfree --enable-libpulse --enable-libv4l2 --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame? -enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-avfilter --disable-debug --disable-static --cpu=core2 --enable-sram frame= 6012 fps=443 q=24.4 Lsize=?? 12813kB time=00:04:00.48 bitrate= 436.5kbits/s???????????????????????????????????????????????????????????????????????????????????????????????????????????????????? video:9746kB audio:2802kB subtitle:0 global headers:0kB muxing overhead 2.121790% ------------------------------------------ today's dev git # ~/src/ffmpeg.git/070812/ffmpeg/ffmpeg -y -i MOV001.MOD -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 96k -ar 44100 output_git0807.flv ffmpeg version N-42344-g99622f6 Copyright (c) 2000-2012 the FFmpeg developers --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-gpl --enable-nonfree --enable-libpulse --enable-libv4l2 --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-avfilter --disable-debug --disable-static --cpu=core2 --enable-sram frame= 6012 fps=443 q=24.4 Lsize=?? 12813kB time=00:04:00.48 bitrate= 436.5kbits/s???????????????????????????????????????????????????????????????????????????????????????????????????????????????????? video:9746kB audio:2802kB subtitle:0 global headers:0kB muxing overhead 2.121790% I see 5 fps difference.. ~ 1% slower, but as you see in the conf, I need more "stuff" in the git versions for troubleshooting my current "headache" Mike From michaelni at gmx.at Sun Jul 8 19:51:09 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Sun, 8 Jul 2012 19:51:09 +0200 Subject: [FFmpeg-user] make fate / AMD Athlon XP In-Reply-To: <4ff987c3.4e170e78.bm000@wupperonline.de> References: <20120707185743.GE5245@kiste2> <4ff987c3.4e170e78.bm000@wupperonline.de> Message-ID: <20120708175109.GF5245@kiste2> On Sun, Jul 08, 2012 at 03:14:42PM +0200, Ingo Br?ckl wrote: > Michael Niedermayer wrote on Sat, 7 Jul 2012 20:57:43 +0200: > > > On Sat, Jul 07, 2012 at 04:52:33PM +0200, Ingo Br?ckl wrote: > >> > >> mapchan-6ch-extract-2-downmix-mono: > >> vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 > >> ==17185== valgrind: Unrecognised instruction at address 0x873d5b3. > >> ==17185== at 0x873D5B3: ??? (rematrix.asm:242) > >> > >> lavf-dv_fmt: > >> vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x6E 0x24 > >> ==5548== valgrind: Unrecognised instruction at address 0x873d3ed. > >> ==5548== at 0x873D3ED: ??? (rematrix.asm:240) > > > should be fixed, please retry > > Yes, 'make fate' runs without any errors now. (I've got > > TEST lavfi-pixfmts_pixdesctest > --- ./tests/ref/lavfi/pixfmts_pixdesctest 2012-07-08 12:41:13.000000000 +0200 > +++ tests/data/fate/lavfi-pixfmts_pixdesctest 2012-07-08 14:15:57.000000000 +0200 > @@ -3,7 +3,7 @@ > abgr 037bf9df6a765520ad6d490066bf4b89 > argb c442a8261c2265a07212ef0f72e35f5a > bgr0 207df2c1476e7b2eaa8f51eaadcc54cb > -bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b > +bgr24 c3d3b37a910301e5cfd66e771295a224 > bgr444be d9ea9307d21b162225b8b2c524cf9477 > bgr444le 88035350e9da3a8f67387890b956f0bc > bgr48be 00624e6c7ec7ab19897ba2f0a3257fe8 > > at the first run though, but couldn't find anything strange in > lavfi-pixfmts_pixdesctest.err. A second run was fine then...) maybe missing make distclean caused some oddness [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No snowflake in an avalanche ever feels responsible. -- Voltaire -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From sheen.andy at googlemail.com Sun Jul 8 19:59:00 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Sun, 08 Jul 2012 18:59:00 +0100 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond In-Reply-To: References: Message-ID: <4FF9CA64.5020202@googlemail.com> Jan Ehrhardt wrote on Sun 08 Jul at 15:29 UK time > Jan Ehrhardt in ffmpeg.user (Sat, 07 Jul 2012 22:54:47 +0200): >> 3. Any explanation why the newest FFmpeg is slower than the >> r32754? > > Talking to myself: I compiled the FFmpeg that came with MPlayer-1.1 > and Zeranoe's 20120706 on Win7pro with the same configure options. > > The speed differences are huge. I am seeing a problem in zeranoes latest build (same as your test in fact) where the CPU jumps to 100% and ffmpeg freezes (frame number stops, time position freezes) randomly. The freeze lasts 5+seconds, the counter stops and then all of a sudden starts incrementing again. This can happen 0 to multiple times during the encode and I have seen variations of over 25% in encode times for exactly the same encode (machine idle apart from the encode process). An older ffmpeg (in fact from September last year) is fine. I've also seen a report of exactly the same thing in zeranoes forums. I've joined and posted there too, but it appears my post is awaiting moderation. Andy From phpdev at ehrhardt.nl Sun Jul 8 20:07:19 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 08 Jul 2012 20:07:19 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> Message-ID: Mike F in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 09:34:33 -0700 (PDT)): >Your original question was about newest being slower than r32754 I know. But after that question I discovered the the FFmpeg 0.10.2 from the sources of MPlayer 1.1 was even faster then r32754 and thus also faster than the newest. >I see 5 fps difference.. ~ 1% slower 448 versus 443 is not worth talking about. I downloaded 0.10.2 from http://ffmpeg.org/releases/ffmpeg-0.10.2.tar.bz2 and compiled it to see if the slowdown happened in between MPlayer 1.1 and the current 0.10.2, but the current one was even 13fps faster (and lots faster than the latest Zeranoe). I will try the newest GIT version later this evening to see if modifications by Zeranoe are causing the slow down. But first: diner. >but as you see in the conf, I need more "stuff" in the git versions for >troubleshooting my current "headache" I do not get the point, but wish you all the best. -- Jan From phpdev at ehrhardt.nl Sun Jul 8 20:18:33 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 08 Jul 2012 20:18:33 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <4FF9CA64.5020202@googlemail.com> Message-ID: Andy Sheen in gmane.comp.video.ffmpeg.user (Sun, 08 Jul 2012 18:59:00 +0100): >I am seeing a problem in zeranoes latest build (same as your test in >fact) where the CPU jumps to 100% and ffmpeg freezes (frame number >stops, time position freezes) randomly. The freeze lasts 5+seconds, the >counter stops and then all of a sudden starts incrementing again. This >can happen 0 to multiple times during the encode and I have seen >variations of over 25% in encode times for exactly the same encode >(machine idle apart from the encode process). I do not see the spikes happen here, but saw them definitely: https://sessiondatabase.net/jwplayer/double5.gif The blue text at the bottom shows the encoder. Source: Canon HF M306 50i PAFF interlaced file, encoded twice. One of my most troublesome files... https://sessiondatabase.net/jwplayer shows an encoded version (with wide angle lens and all). More reason to get the master sources and compile them. I will report back later. Jan From phpdev at ehrhardt.nl Sun Jul 8 20:56:08 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 08 Jul 2012 20:56:08 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <4FF9CA64.5020202@googlemail.com> Message-ID: Andy Sheen in gmane.comp.video.ffmpeg.user (Sun, 08 Jul 2012 18:59:00 +0100): >I am seeing a problem in zeranoes latest build (same as your test in >fact) where the CPU jumps to 100% and ffmpeg freezes (frame number >stops, time position freezes) randomly. The freeze lasts 5+seconds, the >counter stops and then all of a sudden starts incrementing again. This >can happen 0 to multiple times during the encode and I have seen >variations of over 25% in encode times for exactly the same encode >(machine idle apart from the encode process). Even without the freezes the latest FFmpeg is 15-20% slower than (for instance) the latest 0.10.2, when compiled with Mingw32 on Windows. It must be something with the Windows builds. My curiosity won and I postponed the diner. No luck, going offline now. -- Jan From paziu at yahoo.com Sun Jul 8 21:01:44 2012 From: paziu at yahoo.com (Mike F) Date: Sun, 8 Jul 2012 12:01:44 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> <1341695916.15679.YahooMailNeo@web110502.mail.gq1.yahoo.com> Message-ID: <1341774104.20063.YahooMailNeo@web110514.mail.gq1.yahoo.com> > > Please post complete, uncut output here on the mailing list, > external resources tend to disappear one day. > > Carl Eugen > > _______________________________________________ This is what I understand for an "uncut output":? ( latest git with --enable-debug ) ================================================================ # ffmpeg -v debug -y -standard NTSC -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 -acodec ac3 -ar 48000 -vcodec libx264 out.mp4 ffmpeg version N-42344-g99622f6 Copyright (c) 2000-2012 the FFmpeg developers ? built on Jul? 8 2012 13:42:36 with gcc 4.5.2 ? configuration: --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-gpl --enable-nonfree --enable-libpulse --enable-libv4l2 --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-avfilter --enable-debug --disable-static --cpu=core2 --enable-sram ? libavutil????? 51. 64.100 / 51. 64.100 ? libavcodec???? 54. 33.100 / 54. 33.100 ? libavformat??? 54. 15.102 / 54. 15.102 ? libavdevice??? 54.? 1.100 / 54.? 1.100 ? libavfilter???? 3.? 0.101 /? 3.? 0.101 ? libswscale????? 2.? 1.100 /? 2.? 1.100 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [video4linux2,v4l2 @ 0xdaa260] [3]Capabilities: 5020041 [video4linux2,v4l2 @ 0xdaa260] Querying the device for the current frame size????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [video4linux2,v4l2 @ 0xdaa260] Setting frame size to 720x480?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [video4linux2,v4l2 @ 0xdaa260] The V4L2 driver using the interlaced modeThe V4L2 driver set input_id: 0, input: Composite1???????????????????????????????????????????????????????????????????????????? [video4linux2,v4l2 @ 0xdaa260] The V4L2 driver set standard: NTSC????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [video4linux2,v4l2 @ 0xdaa260] The V4L2 driver set standard: NTSC, id: 45056?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [video4linux2,v4l2 @ 0xdaa260] All info found????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [video4linux2,v4l2 @ 0xdaa260] Estimating duration from bitrate, this may be inaccurate??????????????????????????????????????????????????????????????????????????????????????????????????????????????? Input #0, video4linux2,v4l2, from '/dev/video0':?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? Duration: N/A, start: 1341773280.388190, bitrate: 124291 kb/s ??? Stream #0:0, 1, 1/1000000: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480, 1001/30000, 124291 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc [alsa @ 0xdaada0] All info found [alsa @ 0xdaada0] Estimating duration from bitrate, this may be inaccurate???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Guessed Channel Layout for? Input Stream #1.0 : stereo???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Input #1, alsa, from 'hw:1,0':???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? Duration: N/A, start: 1341773280.401027, bitrate: 1536 kb/s ??? Stream #1:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [buffer @ 0xda6b80] Setting entry with key 'video_size' to value '720x480' [buffer @ 0xda6b80] Setting entry with key 'pix_fmt' to value '0'????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [buffer @ 0xda6b80] Setting entry with key 'time_base' to value '1/1000000'??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [buffer @ 0xda6b80] Setting entry with key 'pixel_aspect' to value '0/1'?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [buffer @ 0xda6b80] Setting entry with key 'sws_param' to value 'flags=2'????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [buffer @ 0xda6b80] Setting entry with key 'frame_rate' to value '30000/1001'????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [graph 0 input from stream 0:0 @ 0xda9fe0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2???????????????????????????????????????????????????????????????????????????? [output stream 0:0 @ 0xdaa040] No opaque field provided [abuffer @ 0xdbdb20] Setting entry with key 'time_base' to value '1/48000'???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [abuffer @ 0xdbdb20] Setting entry with key 'sample_rate' to value '48000'???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [abuffer @ 0xdbdb20] Setting entry with key 'sample_fmt' to value 's16'??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [abuffer @ 0xdbdb20] Setting entry with key 'channel_layout' to value '0x3'??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [graph 1 input from stream 1:0 @ 0xda6ac0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3????????????????????????????????????????????????????????????????????????????????????????????????????? [aformat @ 0xdbd960] Setting entry with key 'sample_fmts' to value 'flt' [aformat @ 0xdbd960] Setting entry with key 'sample_rates' to value '48000'??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [aformat @ 0xdbd960] Setting entry with key 'channel_layouts' to value '0x4,0x3,0x103,0x7,0x603,0x33,0x107,0x607,0x37,0xc,0xb,0x10b,0xf,0x60b,0x3b,0x10f,0x60f,0x3f'?????????????????????????????????? [audio format for output stream 0:1 @ 0xda7b20] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'????????????? [auto-inserted resampler 0 @ 0xdb8920] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz??????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] using mv_range_thread = 24 [libx264 @ 0xda5b60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64??????????????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] profile High, level 3.0 [libx264 @ 0xda5b60] 264 - core 122 r2184 5c85e0a - 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=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'out.mp4': ? Metadata: ??? encoder???????? : Lavf54.15.102 ??? Stream #0:0, 0, 1/30000: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480, 1001/30000, q=-1--1, 30k tbn, 29.97 tbc ??? Stream #0:1, 0, 1/48000: Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, flt, 192 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (rawvideo -> libx264) ? Stream #1:0 -> #0:1 (pcm_s16le -> ac3) Press [q] to stop, [?] for help [libx264 @ 0xda5b60] using mv_range_thread = 24 frame=?? 0 QP=22.17 NAL=3 Slice:I Poc:0?? I:1350 P:0??? SKIP:0??? size=47893 bytes???????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 1 QP=21.31 NAL=2 Slice:P Poc:8?? I:19?? P:1000 SKIP:331? size=10716 bytes??????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 2 QP=29.25 NAL=2 Slice:B Poc:4?? I:0??? P:155? SKIP:1195 size=241 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 3 QP=29.94 NAL=0 Slice:B Poc:2?? I:0??? P:489? SKIP:839? size=2013 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 4 QP=30.34 NAL=0 Slice:B Poc:6?? I:0??? P:213? SKIP:1119 size=1268 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 5 QP=21.39 NAL=2 Slice:P Poc:16? I:1??? P:632? SKIP:717? size=4010 bytes???????????????????????????????????????????????????????????????????????????????????????????????? frame=?? 6 QP=27.38 NAL=2 Slice:B Poc:12? I:0??? P:330? SKIP:1016 size=326 bytess????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 7 QP=30.67 NAL=0 Slice:B Poc:10? I:0??? P:369? SKIP:967? size=1476 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 8 QP=31.06 NAL=0 Slice:B Poc:14? I:0??? P:242? SKIP:1090 size=1286 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=?? 9 QP=21.22 NAL=2 Slice:P Poc:24? I:0??? P:651? SKIP:699? size=3811 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 10 QP=27.79 NAL=2 Slice:B Poc:20? I:0??? P:305? SKIP:1041 size=316 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 11 QP=30.33 NAL=0 Slice:B Poc:18? I:0??? P:324? SKIP:1011 size=1392 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 12 QP=30.80 NAL=0 Slice:B Poc:22? I:0??? P:245? SKIP:1091 size=1304 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 13 QP=21.27 NAL=2 Slice:P Poc:32? I:0??? P:742? SKIP:608? size=3775 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 14 QP=27.22 NAL=2 Slice:B Poc:28? I:0??? P:360? SKIP:986? size=400 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 15 QP=30.82 NAL=0 Slice:B Poc:26? I:0??? P:326? SKIP:1012 size=1535 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 16 QP=30.46 NAL=0 Slice:B Poc:30? I:0??? P:307? SKIP:1031 size=1433 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 17 QP=21.24 NAL=2 Slice:P Poc:40? I:1??? P:689? SKIP:660? size=3900 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 18 QP=28.24 NAL=2 Slice:B Poc:36? I:0??? P:285? SKIP:1065 size=311 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 19 QP=30.61 NAL=0 Slice:B Poc:34? I:0??? P:315? SKIP:1024 size=1413 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 20 QP=30.99 NAL=0 Slice:B Poc:38? I:0??? P:261? SKIP:1073 size=1330 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 21 QP=21.38 NAL=2 Slice:P Poc:48? I:0??? P:654? SKIP:696? size=3822 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 22 QP=23.32 NAL=2 Slice:B Poc:44? I:0??? P:324? SKIP:1026 size=208 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 23 QP=30.69 NAL=0 Slice:B Poc:42? I:0??? P:280? SKIP:1055 size=1378 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 24 QP=31.08 NAL=0 Slice:B Poc:46? I:0??? P:252? SKIP:1086 size=1369 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 25 QP=21.69 NAL=2 Slice:P Poc:56? I:0??? P:602? SKIP:748? size=3409 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 26 QP=28.51 NAL=2 Slice:B Poc:52? I:0??? P:321? SKIP:1027 size=300 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 27 QP=30.93 NAL=0 Slice:B Poc:50? I:0??? P:249? SKIP:1086 size=1300 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 28 QP=31.24 NAL=0 Slice:B Poc:54? I:0??? P:266? SKIP:1063 size=1326 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 29 QP=21.87 NAL=2 Slice:P Poc:64? I:10?? P:649? SKIP:691? size=4246 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 30 QP=26.50 NAL=2 Slice:B Poc:60? I:0??? P:268? SKIP:1082 size=393 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 31 QP=30.87 NAL=0 Slice:B Poc:58? I:0??? P:309? SKIP:1021 size=1430 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 32 QP=31.05 NAL=0 Slice:B Poc:62? I:0??? P:287? SKIP:1044 size=1517 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 33 QP=21.72 NAL=2 Slice:P Poc:72? I:0??? P:584? SKIP:766? size=3643 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 34 QP=28.57 NAL=2 Slice:B Poc:68? I:0??? P:280? SKIP:1070 size=388 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 35 QP=31.34 NAL=0 Slice:B Poc:66? I:0??? P:278? SKIP:1060 size=1367 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 36 QP=31.13 NAL=0 Slice:B Poc:70? I:0??? P:339? SKIP:1000 size=1464 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 37 QP=22.09 NAL=2 Slice:P Poc:80? I:0??? P:511? SKIP:839? size=3615 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 38 QP=28.23 NAL=2 Slice:B Poc:76? I:0??? P:244? SKIP:1102 size=480 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 39 QP=31.11 NAL=0 Slice:B Poc:74? I:0??? P:239? SKIP:1103 size=1271 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 40 QP=31.01 NAL=0 Slice:B Poc:78? I:0??? P:305? SKIP:1030 size=1520 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 41 QP=22.31 NAL=2 Slice:P Poc:88? I:0??? P:463? SKIP:887? size=3044 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 42 QP=28.55 NAL=2 Slice:B Poc:84? I:0??? P:230? SKIP:1114 size=299 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 43 QP=31.15 NAL=0 Slice:B Poc:82? I:0??? P:247? SKIP:1076 size=1723 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 44 QP=30.91 NAL=0 Slice:B Poc:86? I:0??? P:262? SKIP:1073 size=1211 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 45 QP=22.79 NAL=2 Slice:P Poc:96? I:0??? P:409? SKIP:941? size=2402 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 46 QP=28.23 NAL=2 Slice:B Poc:92? I:0??? P:254? SKIP:1095 size=251 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 47 QP=30.95 NAL=0 Slice:B Poc:90? I:0??? P:232? SKIP:1102 size=1232 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 48 QP=31.13 NAL=0 Slice:B Poc:94? I:0??? P:251? SKIP:1088 size=1246 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 49 QP=23.34 NAL=2 Slice:P Poc:104 I:0??? P:341? SKIP:1009 size=1860 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 50 QP=28.73 NAL=2 Slice:B Poc:100 I:0??? P:162? SKIP:1186 size=314 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 51 QP=31.31 NAL=0 Slice:B Poc:98? I:0??? P:251? SKIP:1086 size=1288 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 52 QP=30.79 NAL=0 Slice:B Poc:102 I:0??? P:253? SKIP:1088 size=1298 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 53 QP=23.92 NAL=2 Slice:P Poc:112 I:0??? P:253? SKIP:1097 size=1446 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 54 QP=26.70 NAL=2 Slice:B Poc:108 I:0??? P:125? SKIP:1225 size=222 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 55 QP=31.15 NAL=0 Slice:B Poc:106 I:0??? P:224? SKIP:1113 size=1234 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 56 QP=31.09 NAL=0 Slice:B Poc:110 I:0??? P:226? SKIP:1110 size=1299 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 57 QP=25.32 NAL=2 Slice:P Poc:120 I:0??? P:110? SKIP:1240 size=776 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 58 QP=29.53 NAL=2 Slice:B Poc:116 I:0??? P:42?? SKIP:1307 size=124 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 59 QP=30.93 NAL=0 Slice:B Poc:114 I:0??? P:225? SKIP:1119 size=1218 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 60 QP=31.10 NAL=0 Slice:B Poc:118 I:0??? P:224? SKIP:1112 size=1274 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 61 QP=29.59 NAL=2 Slice:P Poc:126 I:0??? P:348? SKIP:1002 size=1618 bytes???????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 62 QP=30.05 NAL=2 Slice:B Poc:124 I:0??? P:230? SKIP:1119 size=252 bytes????????????????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0xda5b60] frame=? 63 QP=30.70 NAL=0 Slice:B Poc:122 I:0??? P:301? SKIP:1044 size=690 bytes????????????????????????????????????????????????????????????????????????????????????????????????? frame=?? 64 fps= 28 q=-1.0 Lsize=???? 201kB time=00:00:02.06 bitrate= 797.2kbits/s???????????????????????????????????????????????????????????????????????????????????????????????????????????????????? video:148kB audio:50kB subtitle:0 global headers:0kB muxing overhead 1.517144% [libx264 @ 0xda5b60] frame I:1???? Avg QP:22.17? size: 47893 [libx264 @ 0xda5b60] frame P:16??? Avg QP:22.65? size:? 3506 [libx264 @ 0xda5b60] frame B:47??? Avg QP:29.88? size:?? 999 [libx264 @ 0xda5b60] consecutive B-frames:? 1.6%? 0.0%? 4.7% 93.8% [libx264 @ 0xda5b60] mb I? I16..4: 10.8% 61.4% 27.8% [libx264 @ 0xda5b60] mb P? I16..4:? 0.0%? 0.1%? 0.0%? P16..4: 32.1%? 3.6%? 4.3%? 0.0%? 0.0%??? skip:59.9% [libx264 @ 0xda5b60] mb B? I16..4:? 0.0%? 0.0%? 0.0%? B16..8: 17.4%? 1.1%? 0.3%? direct: 1.6%? skip:79.5%? L0:26.3% L1:72.4% BI: 1.4% [libx264 @ 0xda5b60] 8x8 transform intra:61.5% inter:75.8% [libx264 @ 0xda5b60] coded y,uvDC,uvAC intra: 86.3% 85.3% 65.9% inter: 5.2% 12.4% 2.4% [libx264 @ 0xda5b60] i16 v,h,dc,p: 51% 29%? 3% 17% [libx264 @ 0xda5b60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 12%? 9%? 8%? 5%? 9%? 8% 12% [libx264 @ 0xda5b60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 25% 10%? 9%? 9%? 6%? 9%? 8% 11% [libx264 @ 0xda5b60] i8c dc,h,v,p: 31% 34% 24% 10% [libx264 @ 0xda5b60] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0xda5b60] ref P L0: 76.9%? 3.8% 15.8%? 3.6% [libx264 @ 0xda5b60] ref B L0: 85.1% 14.7%? 0.2% [libx264 @ 0xda5b60] ref B L1: 93.9%? 6.1% [libx264 @ 0xda5b60] kb/s:565.37 ================================================================================================================ I also noticed one more interesting thing: If I capture just the audio, after system reboot or plugging Dazzle into USB, I always get audio the first and n'th time, but as soon as I issue ffmpeg to capture A+V, I get no audio ( nothing changed ), but after that, I cannot capture JUST audio anymore... the output of "-v debug" in all cases is the same for audio: ============================================== # ffmpeg -v debug -y -f alsa -i hw:1,0 out.ac3?????????????????????????????? ffmpeg version N-42344-g99622f6 Copyright (c) 2000-2012 the FFmpeg developers ? built on Jul? 8 2012 13:42:36 with gcc 4.5.2 ? configuration: --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-gpl --enable-nonfree --enable-libpulse --enable-libv4l2 --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-avfilter --enable-debug --disable-static --cpu=core2 --enable-sram ? libavutil????? 51. 64.100 / 51. 64.100 ? libavcodec???? 54. 33.100 / 54. 33.100 ? libavformat??? 54. 15.102 / 54. 15.102 ? libavdevice??? 54.? 1.100 / 54.? 1.100 ? libavfilter???? 3.? 0.101 /? 3.? 0.101 ? libswscale????? 2.? 1.100 /? 2.? 1.100 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [alsa @ 0xfe0160] All info found [alsa @ 0xfe0160] Estimating duration from bitrate, this may be inaccurate??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Guessed Channel Layout for? Input Stream #0.0 : stereo??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Input #0, alsa, from 'hw:1,0':??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? Duration: N/A, start: 1341773846.003247, bitrate: 1536 kb/s ??? Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [abuffer @ 0xfdfe80] Setting entry with key 'time_base' to value '1/48000' [abuffer @ 0xfdfe80] Setting entry with key 'sample_rate' to value '48000'??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [abuffer @ 0xfdfe80] Setting entry with key 'sample_fmt' to value 's16'?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [abuffer @ 0xfdfe80] Setting entry with key 'channel_layout' to value '0x3'?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [graph 0 input from stream 0:0 @ 0xfdf940] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3???????????????????????????????????????????????????????????????????????????????????????????????????? [aformat @ 0xfe0060] Setting entry with key 'sample_fmts' to value 'flt' [aformat @ 0xfe0060] Setting entry with key 'channel_layouts' to value '0x4,0x3,0x103,0x7,0x603,0x33,0x107,0x607,0x37,0xc,0xb,0x10b,0xf,0x60b,0x3b,0x10f,0x60f,0x3f'????????????????????????????????? [audio format for output stream 0:0 @ 0xfdbfc0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'???????????? [auto-inserted resampler 0 @ 0xfe3ec0] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz?????????????????????????????????????????????????????????????????????????????????????????????????? Output #0, ac3, to 'out.ac3': ? Metadata: ??? encoder???????? : Lavf54.15.102 ??? Stream #0:0, 0, 1/90000: Audio: ac3, 48000 Hz, stereo, flt, 192 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (pcm_s16le -> ac3) Press [q] to stop, [?] for help size=????? 58kB time=00:00:02.45 bitrate= 192.6kbits/s??? video:0kB audio:58kB subtitle:0 global headers:0kB muxing overhead 0.000000% ================================================================ so making ffmpeg access v4l2 messes up something in sound... but mplayer does not have a problem.... ( forceaudio + immediatemode=0 ) Thank you, Mike From phpdev at ehrhardt.nl Sun Jul 8 22:13:34 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 08 Jul 2012 22:13:34 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> Message-ID: <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Mike F in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 09:34:33 -0700 (PDT)): >I see 5 fps difference.. ~ 1% slower Closing in. On Windows 0.10.2, 0.10.4 & 0.11.1 all have more or less the same speed. ffmpeg version 0.10.4 built on Jul 8 2012 21:26:30 with gcc 4.6.2 frame= 6012 fps=376 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s ffmpeg version 0.11.1 built on Jul 8 2012 21:48:15 with gcc 4.6.2 frame= 6012 fps=376 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s ffmpeg version 0.11.1.git built on Jul 8 2012 20:43:35 with gcc 4.6.2 frame= 6012 fps=311 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s 376 fps versus 311 fps. The same 20% difference. Are there any milestones in between 0.11.1 and the trunk, that I can test? Jan ffmpeg -i %input% -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 96k -ar 44100 output.flv ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 21:26:30 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame 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 @ 0160e980] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [buffer @ 01643640] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:12/11 sws_param: [scale @ 016eff80] w:352 h:288 fmt:yuv420p -> w:384 h:288 fmt:yuv420p flags:0x4 Incompatible sample format 's16' for codec 'aac', auto-selecting format 'flt' Output #0, flv, to 'output.flv': Metadata: encoder : Lavf53.32.100 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> flv) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 0161f220] warning: first frame is no keyframe Last message repeated 1 times frame= 178 fps= 0 q=12.3 size= 568kB time=00:00:06.92 bitrate= 672.5kbits/s frame= 375 fps=364 q=8.0 size= 1115kB time=00:00:14.83 bitrate= 615.4kbits/s frame= 567 fps=367 q=23.0 size= 1520kB time=00:00:22.50 bitrate= 553.6kbits/s frame= 749 fps=364 q=12.6 size= 1921kB time=00:00:29.81 bitrate= 527.9kbits/s frame= 930 fps=361 q=23.2 size= 2255kB time=00:00:37.01 bitrate= 499.2kbits/s frame= 1111 fps=360 q=26.3 size= 2648kB time=00:00:44.32 bitrate= 489.4kbits/s frame= 1282 fps=356 q=29.4 size= 3000kB time=00:00:51.03 bitrate= 481.6kbits/s frame= 1462 fps=355 q=8.6 size= 3375kB time=00:00:58.23 bitrate= 474.8kbits/s frame= 1658 fps=358 q=10.8 size= 3754kB time=00:01:06.10 bitrate= 465.3kbits/s frame= 1853 fps=360 q=24.6 size= 4197kB time=00:01:13.97 bitrate= 464.8kbits/s frame= 2054 fps=363 q=10.1 size= 4617kB time=00:01:21.99 bitrate= 461.3kbits/s frame= 2263 fps=366 q=10.9 size= 5051kB time=00:01:30.30 bitrate= 458.3kbits/s frame= 2471 fps=369 q=11.6 size= 5483kB time=00:01:38.70 bitrate= 455.1kbits/s frame= 2671 fps=371 q=31.0 size= 5899kB time=00:01:46.69 bitrate= 453.0kbits/s frame= 2877 fps=373 q=14.1 size= 6341kB time=00:01:54.86 bitrate= 452.2kbits/s frame= 3071 fps=373 q=9.4 size= 6743kB time=00:02:02.71 bitrate= 450.1kbits/s frame= 3247 fps=371 q=21.1 size= 7088kB time=00:02:09.75 bitrate= 447.5kbits/s frame= 3430 fps=370 q=10.1 size= 7474kB time=00:02:17.02 bitrate= 446.8kbits/s frame= 3628 fps=371 q=11.0 size= 7904kB time=00:02:24.91 bitrate= 446.8kbits/s frame= 3836 fps=373 q=12.5 size= 8339kB time=00:02:33.27 bitrate= 445.7kbits/s frame= 4040 fps=374 q=25.3 size= 8750kB time=00:02:41.44 bitrate= 444.0kbits/s frame= 4224 fps=373 q=11.0 size= 9110kB time=00:02:48.83 bitrate= 442.0kbits/s frame= 4411 fps=373 q=16.1 size= 9502kB time=00:02:56.28 bitrate= 441.5kbits/s frame= 4586 fps=371 q=9.0 size= 9852kB time=00:03:03.25 bitrate= 440.4kbits/s frame= 4789 fps=372 q=12.1 size= 10289kB time=00:03:11.37 bitrate= 440.4kbits/s frame= 4991 fps=373 q=12.9 size= 10689kB time=00:03:19.45 bitrate= 439.0kbits/s frame= 5189 fps=373 q=10.4 size= 11093kB time=00:03:27.33 bitrate= 438.3kbits/s frame= 5395 fps=374 q=13.4 size= 11565kB time=00:03:35.62 bitrate= 439.4kbits/s frame= 5597 fps=375 q=16.1 size= 11950kB time=00:03:43.67 bitrate= 437.6kbits/s frame= 5803 fps=376 q=11.8 size= 12384kB time=00:03:51.99 bitrate= 437.3kbits/s frame= 5995 fps=376 q=12.8 size= 12780kB time=00:03:59.65 bitrate= 436.9kbits/s frame= 6012 fps=376 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s video:9746kB audio:2801kB global headers:0kB muxing overhead 2.121696% ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 21:48:15 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame 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 [mpeg @ 0318e860] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [buffer @ 03b23f80] w:352 h:288 pixfmt:yuv420p tb:1/90000 sar:12/11 sws_param:flags=2 [buffersink @ 03246a40] No opaque field provided [scale @ 031cc000] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 0325e9e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 031a3660] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> flv) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 031a1e20] warning: first frame is no keyframe frame= 175 fps=0.0 q=12.7 size= 563kB time=00:00:06.75 bitrate= 682.9kbits/s frame= 373 fps=362 q=6.0 size= 1113kB time=00:00:14.72 bitrate= 619.2kbits/s frame= 563 fps=365 q=23.3 size= 1519kB time=00:00:22.40 bitrate= 555.2kbits/s frame= 747 fps=363 q=12.5 size= 1902kB time=00:00:29.60 bitrate= 526.2kbits/s frame= 929 fps=361 q=21.7 size= 2246kB time=00:00:36.96 bitrate= 497.8kbits/s frame= 1111 fps=360 q=26.3 size= 2646kB time=00:00:44.25 bitrate= 489.8kbits/s frame= 1283 fps=356 q=28.2 size= 3003kB time=00:00:51.13 bitrate= 481.2kbits/s frame= 1462 fps=355 q=8.6 size= 3375kB time=00:00:58.21 bitrate= 475.0kbits/s frame= 1659 fps=358 q=10.7 size= 3756kB time=00:01:06.17 bitrate= 465.0kbits/s frame= 1858 fps=361 q=22.9 size= 4199kB time=00:01:14.04 bitrate= 464.6kbits/s frame= 2057 fps=363 q=9.6 size= 4618kB time=00:01:22.06 bitrate= 461.1kbits/s frame= 2266 fps=367 q=10.6 size= 5054kB time=00:01:30.44 bitrate= 457.8kbits/s frame= 2479 fps=370 q=10.8 size= 5504kB time=00:01:38.94 bitrate= 455.7kbits/s frame= 2679 fps=372 q=31.0 size= 5910kB time=00:01:46.97 bitrate= 452.6kbits/s frame= 2882 fps=373 q=15.8 size= 6346kB time=00:01:55.14 bitrate= 451.5kbits/s frame= 3079 fps=374 q=9.2 size= 6767kB time=00:02:02.94 bitrate= 450.9kbits/s frame= 3254 fps=372 q=22.6 size= 7096kB time=00:02:10.03 bitrate= 447.0kbits/s frame= 3439 fps=371 q=11.0 size= 7500kB time=00:02:17.41 bitrate= 447.1kbits/s frame= 3635 fps=372 q=10.9 size= 7928kB time=00:02:25.26 bitrate= 447.1kbits/s frame= 3845 fps=373 q=12.2 size= 8343kB time=00:02:33.53 bitrate= 445.2kbits/s frame= 4046 fps=374 q=23.6 size= 8754kB time=00:02:41.61 bitrate= 443.8kbits/s frame= 4232 fps=374 q=11.2 size= 9131kB time=00:02:49.08 bitrate= 442.4kbits/s frame= 4416 fps=373 q=15.8 size= 9507kB time=00:02:56.49 bitrate= 441.3kbits/s frame= 4594 fps=372 q=8.7 size= 9881kB time=00:03:03.55 bitrate= 441.0kbits/s frame= 4798 fps=373 q=16.3 size= 10310kB time=00:03:11.75 bitrate= 440.5kbits/s frame= 5003 fps=374 q=11.4 size= 10715kB time=00:03:19.97 bitrate= 438.9kbits/s frame= 5197 fps=374 q=8.1 size= 11119kB time=00:03:27.67 bitrate= 438.6kbits/s frame= 5407 fps=375 q=13.2 size= 11589kB time=00:03:36.10 bitrate= 439.3kbits/s frame= 5606 fps=376 q=22.1 size= 11976kB time=00:03:44.07 bitrate= 437.8kbits/s frame= 5813 fps=376 q=11.8 size= 12390kB time=00:03:52.26 bitrate= 437.0kbits/s frame= 6002 fps=376 q=25.8 size= 12785kB time=00:03:59.83 bitrate= 436.7kbits/s frame= 6012 fps=376 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s video:9746kB audio:2802kB global headers:0kB muxing overhead 2.121781% ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 20:43:35 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame libavutil 51. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 0167e860] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [graph 0 input from stream 0:0 @ 016bc8c0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 01a9f580] No opaque field provided [Parsed_scale_0 @ 017361a0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 01745d80] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [auto-inserted resampler 0 @ 01746020] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.15.102 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> flv) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 01691e20] warning: first frame is no keyframe frame= 150 fps=0.0 q=10.4 size= 502kB time=00:00:05.80 bitrate= 708.5kbits/s frame= 313 fps=304 q=5.2 size= 948kB time=00:00:12.33 bitrate= 630.1kbits/s frame= 478 fps=310 q=12.3 size= 1351kB time=00:00:18.94 bitrate= 584.0kbits/s frame= 629 fps=305 q=12.1 size= 1629kB time=00:00:24.89 bitrate= 536.1kbits/s frame= 781 fps=303 q=12.0 size= 1975kB time=00:00:31.04 bitrate= 521.1kbits/s frame= 929 fps=301 q=21.7 size= 2244kB time=00:00:36.89 bitrate= 498.3kbits/s frame= 1083 fps=301 q=24.0 size= 2592kB time=00:00:43.14 bitrate= 492.2kbits/s frame= 1223 fps=297 q=21.3 size= 2881kB time=00:00:48.78 bitrate= 483.8kbits/s frame= 1373 fps=296 q=17.5 size= 3172kB time=00:00:54.68 bitrate= 475.2kbits/s frame= 1529 fps=297 q=17.5 size= 3507kB time=00:01:00.92 bitrate= 471.5kbits/s frame= 1693 fps=299 q=6.8 size= 3838kB time=00:01:07.52 bitrate= 465.6kbits/s frame= 1853 fps=300 q=24.6 size= 4197kB time=00:01:13.95 bitrate= 464.9kbits/s frame= 2015 fps=301 q=8.5 size= 4534kB time=00:01:20.45 bitrate= 461.6kbits/s frame= 2182 fps=303 q=9.8 size= 4872kB time=00:01:27.07 bitrate= 458.4kbits/s frame= 2357 fps=305 q=10.8 size= 5236kB time=00:01:34.01 bitrate= 456.3kbits/s frame= 2526 fps=307 q=11.4 size= 5607kB time=00:01:40.84 bitrate= 455.5kbits/s frame= 2690 fps=307 q=30.3 size= 5929kB time=00:01:47.36 bitrate= 452.4kbits/s frame= 2858 fps=308 q=12.3 size= 6295kB time=00:01:54.07 bitrate= 452.0kbits/s frame= 3023 fps=309 q=10.2 size= 6632kB time=00:02:00.74 bitrate= 450.0kbits/s frame= 3175 fps=308 q=17.6 size= 6953kB time=00:02:06.82 bitrate= 449.1kbits/s frame= 3321 fps=307 q=10.2 size= 7226kB time=00:02:12.60 bitrate= 446.4kbits/s frame= 3479 fps=307 q=9.1 size= 7584kB time=00:02:19.04 bitrate= 446.9kbits/s frame= 3646 fps=308 q=12.3 size= 7950kB time=00:02:25.61 bitrate= 447.3kbits/s frame= 3818 fps=309 q=12.3 size= 8294kB time=00:02:32.48 bitrate= 445.6kbits/s frame= 3986 fps=310 q=10.6 size= 8638kB time=00:02:39.26 bitrate= 444.3kbits/s frame= 4138 fps=309 q=25.3 size= 8944kB time=00:02:45.35 bitrate= 443.1kbits/s frame= 4301 fps=309 q=9.9 size= 9287kB time=00:02:51.87 bitrate= 442.7kbits/s frame= 4447 fps=309 q=22.1 size= 9570kB time=00:02:57.67 bitrate= 441.2kbits/s frame= 4597 fps=308 q=6.7 size= 9883kB time=00:03:03.69 bitrate= 440.8kbits/s frame= 4763 fps=308 q=13.4 size= 10241kB time=00:03:10.31 bitrate= 440.8kbits/s frame= 4930 fps=309 q=14.9 size= 10565kB time=00:03:16.99 bitrate= 439.3kbits/s frame= 5093 fps=309 q=10.5 size= 10905kB time=00:03:23.49 bitrate= 439.0kbits/s frame= 5256 fps=309 q=8.6 size= 11252kB time=00:03:30.09 bitrate= 438.8kbits/s frame= 5428 fps=310 q=13.3 size= 11619kB time=00:03:36.89 bitrate= 438.9kbits/s frame= 5594 fps=310 q=12.1 size= 11947kB time=00:03:43.51 bitrate= 437.9kbits/s frame= 5759 fps=311 q=11.9 size= 12285kB time=00:03:50.15 bitrate= 437.3kbits/s frame= 5914 fps=310 q=11.1 size= 12604kB time=00:03:56.35 bitrate= 436.8kbits/s frame= 6012 fps=311 q=24.4 Lsize= 12813kB time=00:04:00.48 bitrate= 436.5kbits/s video:9746kB audio:2802kB subtitle:0 global headers:0kB muxing overhead 2.121789% From paziu at yahoo.com Mon Jul 9 00:14:42 2012 From: paziu at yahoo.com (Mike F) Date: Sun, 8 Jul 2012 15:14:42 -0700 (PDT) Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Message-ID: <1341785682.10926.YahooMailNeo@web110509.mail.gq1.yahoo.com> > Closing in. On Windows 0.10.2, 0.10.4 & 0.11.1 all have more or less the > same speed. > > ffmpeg version 0.10.4 > ? built on Jul? 8 2012 21:26:30 with gcc 4.6.2 > frame= 6012 fps=376 q=24.4 Lsize=?? 12813kB time=00:04:00.48 > ??? bitrate= 436.5kbits/s? ? > > ffmpeg version 0.11.1 > ? built on Jul? 8 2012 21:48:15 with gcc 4.6.2 > frame= 6012 fps=376 q=24.4 Lsize=?? 12813kB time=00:04:00.48 > ??? bitrate= 436.5kbits/s? ? > > ffmpeg version 0.11.1.git > ? built on Jul? 8 2012 20:43:35 with gcc 4.6.2 > frame= 6012 fps=311 q=24.4 Lsize=?? 12813kB time=00:04:00.48 > ??? bitrate= 436.5kbits/s? ? > > 376 fps versus 311 fps. The same 20% difference. > Are there any milestones in between 0.11.1 and the trunk, that > I can test? > > Jan > This is not an answer to your question, but to be 100% sure I re-ran mine, I do not see basically any difference on my system.... fps=447 - before about the same... seems OS / minigw related or you adding --enable-libx264 which enables encoding via x264 - when using -vcodec flv,? x264 is not being used - this is another thing different between our systems? - I doubt, but there is sometimes strange things happening in this world. my build: --enable-libx264 : x264 core 122 r2184 5c85e0a and again flv: # ffmpeg -y -i MOV001.MOD -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec flv -b:v 320k -strict -2 -acodec aac -ab 96k -ar 44100 -threads 5 output_git0807.flv ffmpeg version N-42344-g99622f6 Copyright (c) 2000-2012 the FFmpeg developers ? built on Jul? 8 2012 17:29:33 with gcc 4.5.2 ? configuration: --enable-libpulse --enable-libv4l2 --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-avfilter --disable-debug --disable-static --cpu=core2 --enable-sram ? libavutil????? 51. 64.100 / 51. 64.100 ? libavcodec???? 54. 33.100 / 54. 33.100 ? libavformat??? 54. 15.102 / 54. 15.102 ? libavdevice??? 54.? 1.100 / 54.? 1.100 ? libavfilter???? 3.? 0.101 /? 3.? 0.101 ? libswscale????? 2.? 1.100 /? 2.? 1.100 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 [mpeg @ 0x1c1d120] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from 'MOV001.MOD':??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s ??? Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc ??? Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [graph 0 input from stream 0:0 @ 0x1c23e20] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 0x1c22860] No opaque field provided [Parsed_scale_0 @ 0x1c23ac0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4?????????????????????????????????????????????????????????????????????????????????????????? [graph 1 input from stream 0:1 @ 0x1d49540] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [auto-inserted resampler 0 @ 0x1d5f8a0] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz Output #0, flv, to 'output_git0807.flv': ? Metadata: ??? encoder???????? : Lavf54.15.102 ??? Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc ??? Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (mpeg2video -> flv) ? Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [mpeg2video @ 0x1c235c0] warning: first frame is no keyframe frame= 6012 fps=447 q=24.4 Lsize=?? 12813kB time=00:04:00.48 bitrate= 436.5kbits/s??????????????????????????????????????????????????????????????????????????????????????????????????????????????????? video:9746kB audio:2802kB subtitle:0 global headers:0kB muxing overhead 2.121790% From mbradshaw at sorensonmedia.com Mon Jul 9 01:14:57 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Sun, 8 Jul 2012 17:14:57 -0600 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond In-Reply-To: <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Message-ID: On Sun, Jul 8, 2012 at 2:13 PM, Jan Ehrhardt wrote: > Mike F in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 09:34:33 -0700 (PDT)): > >>I see 5 fps difference.. ~ 1% slower > > Closing in. On Windows 0.10.2, 0.10.4 & 0.11.1 all have more or less the > same speed. > > ffmpeg version 0.10.4 > built on Jul 8 2012 21:26:30 with gcc 4.6.2 > frame= 6012 fps=376 q=24.4 Lsize= 12813kB time=00:04:00.48 > bitrate= 436.5kbits/s > > ffmpeg version 0.11.1 > built on Jul 8 2012 21:48:15 with gcc 4.6.2 > frame= 6012 fps=376 q=24.4 Lsize= 12813kB time=00:04:00.48 > bitrate= 436.5kbits/s > > ffmpeg version 0.11.1.git > built on Jul 8 2012 20:43:35 with gcc 4.6.2 > frame= 6012 fps=311 q=24.4 Lsize= 12813kB time=00:04:00.48 > bitrate= 436.5kbits/s > > 376 fps versus 311 fps. The same 20% difference. > Are there any milestones in between 0.11.1 and the trunk, that > I can test? Not that I know of, but if you're willing, you can do a git bisect between two versions (pick the two revisions that are closest to each other but still show the significant speed difference) and you can find out which patch caused the slowdown. --Michael From samosa_chaat at yahoo.com Mon Jul 9 02:48:14 2012 From: samosa_chaat at yahoo.com (BhelPuri) Date: Sun, 8 Jul 2012 17:48:14 -0700 (PDT) Subject: [FFmpeg-user] video to image sequence conversion problem In-Reply-To: References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> Message-ID: <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> Uncut console command and output pasted below. Thanks in advance for your help. ffmpeg.exe -i MVI_0009.MOV -r 5 -f image2 ncjun29s1-%05d.tif ffmpeg version N-41416-g718607b Copyright (c) 2000-2012 the FFmpeg developers ? built on Jun? 8 2012 12:49:40 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 --ena? libavutil????? 51. 56.100 / 51. 56.100 ? libavcodec???? 54. 25.100 / 54. 25.100 ? libavformat??? 54.? 6.101 / 54.? 6.101 ? libavdevice??? 54.? 0.100 / 54.? 0.100 ? libavfilter???? 2. 78.101 /? 2. 78.101 ? libswscale????? 2.? 1.100 /? 2.? 1.100 ? libswresample?? 0. 15.100 /? 0. 15.100 ? libpostproc??? 52.? 0.100 / 52.? 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_0009.MOV': ? Metadata: ??? major_brand???? : qt ??? minor_version?? : 537331968 ??? compatible_brands: qt? CAEP ??? creation_time?? : 2012-06-29 15:45:39 ? Duration: 00:03:25.90, start: 0.000000, bitrate: 48080 kb/s ??? Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu vj420p, 1920x1088, 46541 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc ??? Metadata: ????? creation_time?? : 2012-06-29 15:45:39 ??? Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s1 6, 1536 kb/s ??? Metadata: ????? creation_time?? : 2012-06-29 15:45:39 [buffer @ 000000000031a880] w:1920 h:1088 pixfmt:yuvj420p tb:1/30000 sar:0/1 sws _param:flags=2 [ffmpeg_buffersink @ 000000000031abc0] No opaque field provided [format @ 000000000031ad00] auto-inserting filter 'auto-inserted scaler 0' betwe en the filter 'Parsed_null_0' and the filter 'format' [auto-inserted scaler 0 @ 000000000031b020] w:1920 h:1088 fmt:yuvj420p sar:0/1 - > w:1920 h:1088 fmt:yuv410p sar:0/1 flags:0x4 Output #0, image2, to 'ncjun29s1-%05d.tif': ? Metadata: ??? major_brand???? : qt ??? minor_version?? : 537331968 ??? compatible_brands: qt? CAEP ??? creation_time?? : 2012-06-29 15:45:39 ??? encoder???????? : Lavf54.6.101 ??? Stream #0:0(eng): Video: tiff, yuv410p, 1920x1088, q=2-31, 200 kb/s, 90k tbn , 5 tbc ??? Metadata: ????? creation_time?? : 2012-06-29 15:45:39 Stream mapping: ? Stream #0:0 -> #0:0 (h264 -> tiff) Press [q] to stop, [?] for help frame=??? 8 fps=0.0 q=0.0 size=?????? 0kB time=00:00:01.60 bitrate=?? 0.0kbits/s frame=?? 14 fps= 14 q=0.0 size=?????? 0kB time=00:00:02.80 bitrate=?? 0.0kbits/s frame=?? 21 fps= 14 q=0.0 size=?????? 0kB time=00:00:04.20 bitrate=?? 0.0kbits/s frame=?? 29 fps= 14 q=0.0 size=?????? 0kB time=00:00:05.80 bitrate=?? 0.0kbits/s frame=?? 36 fps= 14 q=0.0 size=?????? 0kB time=00:00:07.20 bitrate=?? 0.0kbits/s frame=?? 42 fps= 14 q=0.0 size=?????? 0kB time=00:00:08.40 bitrate=?? 0.0kbits/s frame=?? 50 fps= 14 q=0.0 size=?????? 0kB time=00:00:10.00 bitrate=?? 0.0kbits/s frame=?? 56 fps= 14 q=0.0 size=?????? 0kB time=00:00:11.20 bitrate=?? 0.0kbits/s frame=?? 63 fps= 14 q=0.0 size=?????? 0kB time=00:00:12.60 bitrate=?? 0.0kbits/s frame=?? 68 fps= 13 q=0.0 size=?????? 0kB time=00:00:13.60 bitrate=?? 0.0kbits/s frame=?? 74 fps= 13 q=0.0 size=?????? 0kB time=00:00:14.80 bitrate=?? 0.0kbits/s frame=?? 79 fps= 13 q=0.0 size=?????? 0kB time=00:00:15.80 bitrate=?? 0.0kbits/s frame=?? 85 fps= 13 q=0.0 size=?????? 0kB time=00:00:17.00 bitrate=?? 0.0kbits/s frame=?? 89 fps= 12 q=0.0 size=?????? 0kB time=00:00:17.80 bitrate=?? 0.0kbits/s frame=?? 96 fps= 12 q=0.0 size=?????? 0kB time=00:00:19.20 bitrate=?? 0.0kbits/s frame=? 103 fps= 13 q=0.0 size=?????? 0kB time=00:00:20.60 bitrate=?? 0.0kbits/s frame=? 108 fps= 12 q=0.0 size=?????? 0kB time=00:00:21.60 bitrate=?? 0.0kbits/s frame=? 112 fps= 12 q=0.0 size=?????? 0kB time=00:00:22.40 bitrate=?? 0.0kbits/s frame=? 118 fps= 12 q=0.0 size=?????? 0kB time=00:00:23.60 bitrate=?? 0.0kbits/s frame=? 124 fps= 12 q=0.0 size=?????? 0kB time=00:00:24.80 bitrate=?? 0.0kbits/s frame=? 129 fps= 12 q=0.0 size=?????? 0kB time=00:00:25.80 bitrate=?? 0.0kbits/s frame=? 136 fps= 12 q=0.0 size=?????? 0kB time=00:00:27.20 bitrate=?? 0.0kbits/s [snipped] frame=? 993 fps=7.8 q=0.0 size=?????? 0kB time=00:03:18.60 bitrate=?? 0.0kbits/s frame=? 996 fps=7.8 q=0.0 size=?????? 0kB time=00:03:19.20 bitrate=?? 0.0kbits/s frame= 1000 fps=7.8 q=0.0 size=?????? 0kB time=00:03:20.00 bitrate=?? 0.0kbits/s frame= 1007 fps=7.8 q=0.0 size=?????? 0kB time=00:03:21.40 bitrate=?? 0.0kbits/s frame= 1012 fps=7.9 q=0.0 size=?????? 0kB time=00:03:22.40 bitrate=?? 0.0kbits/s frame= 1014 fps=7.8 q=0.0 size=?????? 0kB time=00:03:22.80 bitrate=?? 0.0kbits/s frame= 1021 fps=7.9 q=0.0 size=?????? 0kB time=00:03:24.20 bitrate=?? 0.0kbits/s frame= 1027 fps=7.9 q=0.0 size=?????? 0kB time=00:03:25.40 bitrate=?? 0.0kbits/s frame= 1030 fps=7.9 q=0.0 size=?????? 0kB time=00:03:26.00 bitrate=?? 0.0kbits/s frame= 1032 fps=7.9 q=0.0 Lsize=?????? 0kB time=00:03:26.40 bitrate=?? 0.0kbits/s dup=0 drop=5139 video:1471487kB audio:0kB global headers:0kB muxing overhead -100.000000% ________________________________ From: Roger Pack To: FFmpeg user questions and RTFMs Sent: Thursday, July 5, 2012 12:07 PM Subject: Re: [FFmpeg-user] video to image sequence conversion problem On Mon, Jul 2, 2012 at 9:13 PM, BhelPuri wrote: > I'm trying to convert a HD video (1920x1088 H264, 29.97fps) into an image > sequence with downsampling (to 5 fps). I used the following: > ffmpeg -i myMovie.mov -r 5 -f image2 foo-%05d.tif > > I later process the resulting tif image sequence to track an oscillatory > motion. However I'm not sure if the downsampled image sequence is being > done right as it seems to be progressively out of sync with the motion. > > > I'm not sure how to interpret the output displayed in the format- > frame=? xxx fps=yyy q=0.0 size= 0kB time=ttt bitrate= 0.0kbits/s > where the number yyy varies throughout (0, 7.8 thru 14.0) > > Could someone explain why the frames are out of sync and how I should be > correcting for that? > Full uncut console command line and output? -r _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From aravindan.g at gmail.com Mon Jul 9 06:21:34 2012 From: aravindan.g at gmail.com (Aravindan G) Date: Mon, 9 Jul 2012 09:51:34 +0530 Subject: [FFmpeg-user] unable to stream rtp to mobile device Message-ID: Hi All, I am using ffmpeg to transrate video from Streaming Server and relay it back to client(i.e real player) on a mobile device.I am able to receive packets from Streaming Server but they are not getting relayed back to the mobile device.Any suggestions to the same would be appreciated.The basic command today used is to pass the RTP Stream as such with out transrating is given below: ffmpeg -re -i rtsp://<<>> -vcodec copy -an -f rtp rtp://224.10.20.30:20000-vn -acodec copy -f rtp rtp:// 224.10.20.30:30000 Even in wireshark RTSP Signaling from server and RTP Packets seem to flow from Server to the machine where i am running ffmpeg but no packets are sent from the machine where i run to mobile device Any help to the same would be appreciated Regards Aravindan From pavanvkbgm at gmail.com Mon Jul 9 08:22:47 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Mon, 9 Jul 2012 11:52:47 +0530 Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS In-Reply-To: References: Message-ID: Hi, I have pasted the output of the commands: *time ./ffmpeg -i Pirates_remux_short.ts out1.jpg (This creates a thumbnail which is not very clear though)* malloc: using debugging hooks ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 3 2012 14:43:18 with gcc 4.3.2 configuration: --enable-cross-compile --target-os=linux --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips --extra-cflags=-O2 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Last message repeated 1 times Input #0, mpegts, from 'Pirates_remux_short.ts': Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s Program 1 Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 kb/s Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x10047c0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [buffersink @ 0x1004210] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x10125e0] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuvj420p flags:0x4 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Output #0, image2, to 'out1.jpg': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: mjpeg, yuvj420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period [image2 @ 0x1010fa0] Could not get frame filename number 2 from pattern 'out1.jpg' av_interleaved_write_frame(): Invalid argument Command exited with non-zero status 1 *real 0m 10.90s* user 0m 9.61s sys 0m 0.50s *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -vframes 1 -f null - * malloc: using debugging hooks ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 3 2012 14:43:18 with gcc 4.3.2 configuration: --enable-cross-compile --target-os=linux --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips --extra-cflags=-O2 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Last message repeated 1 times Input #0, mpegts, from 'Pirates_remux_short.ts': Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s Program 1 Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 kb/s Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 's16' [buffer @ 0x10047c0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Output #0, null, to 'pipe:': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: rawvideo, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 5.1, s16, 4608 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period frame= 1 fps= 0 q=0.0 Lsize= -0kB time=00:00:00.04 bitrate= -4.2kbits/s dup=20 drop=0 video:0kB audio:84kB global headers:0kB muxing overhead -100.025463% *real 0m 9.66s* user 0m 8.48s sys 0m 0.51s *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -vframes 1 -vcodec copy -f rawvideo /dev/null* malloc: using debugging hooks ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 3 2012 14:43:18 with gcc 4.3.2 configuration: --enable-cross-compile --target-os=linux --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips --extra-cflags=-O2 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Last message repeated 1 times Input #0, mpegts, from 'Pirates_remux_short.ts': Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s Program 1 Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 kb/s File '/dev/null' already exists. Overwrite ? [y/N] y Output #0, rawvideo, to '/dev/null': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: [27][0][0][0] / 0x001B, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 23.98 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [NULL @ 0x100f690] non-existing SPS 13 referenced in buffering period frame= 1 fps= 0 q=-1.0 Lsize= 0kB time=00:00:01.01 bitrate= 0.0kbits/s video:429kB audio:0kB global headers:0kB muxing overhead -100.000000% *real 0m 11.10s* user 0m 6.64s sys 0m 0.30s *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -vf select='eq(pict_type\,PICT_TYPE_I)' -vframes 1 -an -s 150x100 thumb.jpg* malloc: using debugging hooks ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 3 2012 14:43:18 with gcc 4.3.2 configuration: --enable-cross-compile --target-os=linux --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips --extra-cflags=-O2 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Last message repeated 1 times Input #0, mpegts, from 'Pirates_remux_short.ts': Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s Program 1 Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 kb/s Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x10114a0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x10043a0] w:1920 h:1080 fmt:yuv420p -> w:150 h:100 fmt:yuvj420p flags:0x4 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Output #0, image2, to 'thumb.jpg': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: mjpeg, yuvj420p, 150x100 [PAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period frame= 1 fps= 0 q=3.6 Lsize= -0kB time=00:00:00.04 bitrate= -4.2kbits/s dup=23 drop=0 video:3kB audio:0kB global headers:0kB muxing overhead -100.642523% *real 0m 24.32s* user 0m 21.80s sys 0m 0.78s On Sat, Jul 7, 2012 at 4:56 PM, Carl Eugen Hoyos wrote: > Pavan Kulkarni gmail.com> writes: > > > I'm using the following command to get a thumbnail from a > > video file. It uses the seek option to grab a thumbnail. > > The problem is that this command takes up quite some time > > especially with certain containers such as MPEG-2 TS. > > (As much as 40 seconds). > > Did you try to find out what takes so long? > Seeking, decoding, encoding (or even startup of the executable)? > ffmpeg -i input.ts out.jpg > ffmpeg -ss 18 -i input.ts -vframes 1 -f null - > ffmpeg -ss 18 -i input.ts -vframes 1 -vcodec copy -f rawvideo /dev/null > > Why do you need the select filter? > Nowadays, FFmpeg should seek to a keyframe. > If I am wrong, please provide complete, uncut console output. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From pavanvkbgm at gmail.com Mon Jul 9 08:27:44 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Mon, 9 Jul 2012 11:57:44 +0530 Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS In-Reply-To: References: Message-ID: Here is the output without the select filter: *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -an -s 150x100 thumb2.jpg (Unfortunately this gives a blank thumbnail)* malloc: using debugging hooks ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 3 2012 14:43:18 with gcc 4.3.2 configuration: --enable-cross-compile --target-os=linux --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips --extra-cflags=-O2 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Last message repeated 1 times Input #0, mpegts, from 'Pirates_remux_short.ts': Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s Program 1 Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 kb/s Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x10047c0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x1004390] w:1920 h:1080 fmt:yuv420p -> w:150 h:100 fmt:yuvj420p flags:0x4 [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period Output #0, image2, to 'thumb2.jpg': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: mjpeg, yuvj420p, 150x100 [PAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period [image2 @ 0x1010fa0] Could not get frame filename number 2 from pattern 'thumb2.jpg' av_interleaved_write_frame(): Invalid argument Command exited with non-zero status 1 *real 0m 10.01s* user 0m 8.80s sys 0m 0.36s On Mon, Jul 9, 2012 at 11:52 AM, Pavan Kulkarni wrote: > Hi, > I have pasted the output of the commands: > > *time ./ffmpeg -i Pirates_remux_short.ts out1.jpg (This creates a > thumbnail which is not very clear though)* > malloc: using debugging hooks > ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers > built on Jan 3 2012 14:43:18 with gcc 4.3.2 > configuration: --enable-cross-compile --target-os=linux > --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips > --extra-cflags=-O2 > libavutil 51. 9. 1 / 51. 9. 1 > libavcodec 53. 7. 0 / 53. 7. 0 > libavformat 53. 4. 0 / 53. 4. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 23. 0 / 2. 23. 0 > libswscale 2. 0. 0 / 2. 0. 0 > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Last message repeated 1 times > > > Input #0, mpegts, from 'Pirates_remux_short.ts': > Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s > Program 1 > Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 > DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 > kb/s > Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting > format 'yuvj420p' > [buffer @ 0x10047c0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 > sws_param: > > [buffersink @ 0x1004210] auto-inserting filter 'auto-inserted scaler 0' > between the filter 'src' and the filter 'out' > [scale @ 0x10125e0] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 > fmt:yuvj420p flags:0x4 > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Output #0, image2, to 'out1.jpg': > > > Metadata: > encoder : Lavf53.4.0 > Stream #0.0: Video: mjpeg, yuvj420p, 1920x1080 [PAR 1:1 DAR 16:9], > q=2-31, 200 kb/s, 90k tbn, 23.98 tbc > Stream mapping: > Stream #0.0 -> #0.0 > Press [q] to stop, [?] for help > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > [image2 @ 0x1010fa0] Could not get frame filename number 2 from pattern > 'out1.jpg' > > av_interleaved_write_frame(): Invalid argument > > > Command exited with non-zero status 1 > *real 0m 10.90s* > user 0m 9.61s > sys 0m 0.50s > > *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -vframes 1 -f null - * > malloc: using debugging hooks > ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers > built on Jan 3 2012 14:43:18 with gcc 4.3.2 > configuration: --enable-cross-compile --target-os=linux > --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips > --extra-cflags=-O2 > libavutil 51. 9. 1 / 51. 9. 1 > libavcodec 53. 7. 0 / 53. 7. 0 > libavformat 53. 4. 0 / 53. 4. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 23. 0 / 2. 23. 0 > libswscale 2. 0. 0 / 2. 0. 0 > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Last message repeated 1 times > > > Input #0, mpegts, from 'Pirates_remux_short.ts': > Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s > Program 1 > Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 > DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 > kb/s > Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting > format 's16' > [buffer @ 0x10047c0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 > sws_param: > > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Output #0, null, to 'pipe:': > > > Metadata: > encoder : Lavf53.4.0 > Stream #0.0: Video: rawvideo, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], > q=2-31, 200 kb/s, 90k tbn, 23.98 tbc > Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 5.1, s16, 4608 kb/s > Stream mapping: > Stream #0.0 -> #0.0 > Stream #0.1 -> #0.1 > Press [q] to stop, [?] for help > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > frame= 1 fps= 0 q=0.0 Lsize= -0kB time=00:00:00.04 bitrate= > -4.2kbits/s dup=20 drop=0 > > video:0kB audio:84kB global headers:0kB muxing overhead -100.025463% > *real 0m 9.66s* > user 0m 8.48s > sys 0m 0.51s > > *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -vframes 1 -vcodec copy > -f rawvideo /dev/null* > malloc: using debugging hooks > ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers > built on Jan 3 2012 14:43:18 with gcc 4.3.2 > configuration: --enable-cross-compile --target-os=linux > --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips > --extra-cflags=-O2 > libavutil 51. 9. 1 / 51. 9. 1 > libavcodec 53. 7. 0 / 53. 7. 0 > libavformat 53. 4. 0 / 53. 4. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 23. 0 / 2. 23. 0 > libswscale 2. 0. 0 / 2. 0. 0 > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Last message repeated 1 times > > > Input #0, mpegts, from 'Pirates_remux_short.ts': > Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s > Program 1 > Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 > DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 > kb/s > File '/dev/null' already exists. Overwrite ? [y/N] y > Output #0, rawvideo, to '/dev/null': > Metadata: > encoder : Lavf53.4.0 > Stream #0.0: Video: [27][0][0][0] / 0x001B, yuv420p, 1920x1080 [PAR > 1:1 DAR 16:9], q=2-31, 90k tbn, 23.98 tbc > Stream mapping: > Stream #0.0 -> #0.0 > Press [q] to stop, [?] for help > [NULL @ 0x100f690] non-existing SPS 13 referenced in buffering period > frame= 1 fps= 0 q=-1.0 Lsize= 0kB time=00:00:01.01 bitrate= > 0.0kbits/s > > video:429kB audio:0kB global headers:0kB muxing overhead -100.000000% > *real 0m 11.10s* > user 0m 6.64s > sys 0m 0.30s > > *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -vf > select='eq(pict_type\,PICT_TYPE_I)' -vframes 1 -an -s 150x100 thumb.jpg* > malloc: using debugging hooks > ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers > built on Jan 3 2012 14:43:18 with gcc 4.3.2 > configuration: --enable-cross-compile --target-os=linux > --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips > --extra-cflags=-O2 > libavutil 51. 9. 1 / 51. 9. 1 > libavcodec 53. 7. 0 / 53. 7. 0 > libavformat 53. 4. 0 / 53. 4. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 23. 0 / 2. 23. 0 > libswscale 2. 0. 0 / 2. 0. 0 > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Last message repeated 1 times > > > Input #0, mpegts, from 'Pirates_remux_short.ts': > Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s > Program 1 > Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 > DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc > Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s32, 6912 > kb/s > Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting > format 'yuvj420p' > [buffer @ 0x10114a0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 > sws_param: > > [scale @ 0x10043a0] w:1920 h:1080 fmt:yuv420p -> w:150 h:100 fmt:yuvj420p > flags:0x4 > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > Output #0, image2, to 'thumb.jpg': > > > Metadata: > encoder : Lavf53.4.0 > Stream #0.0: Video: mjpeg, yuvj420p, 150x100 [PAR 32:27 DAR 16:9], > q=2-31, 200 kb/s, 90k tbn, 23.98 tbc > Stream mapping: > Stream #0.0 -> #0.0 > Press [q] to stop, [?] for help > [h264 @ 0x100f690] non-existing SPS 13 referenced in buffering period > frame= 1 fps= 0 q=3.6 Lsize= -0kB time=00:00:00.04 bitrate= > -4.2kbits/s dup=23 drop=0 > > video:3kB audio:0kB global headers:0kB muxing overhead -100.642523% > *real 0m 24.32s* > user 0m 21.80s > sys 0m 0.78s > > > > > On Sat, Jul 7, 2012 at 4:56 PM, Carl Eugen Hoyos wrote: > >> Pavan Kulkarni gmail.com> writes: >> >> > I'm using the following command to get a thumbnail from a >> > video file. It uses the seek option to grab a thumbnail. >> > The problem is that this command takes up quite some time >> > especially with certain containers such as MPEG-2 TS. >> > (As much as 40 seconds). >> >> Did you try to find out what takes so long? >> Seeking, decoding, encoding (or even startup of the executable)? >> ffmpeg -i input.ts out.jpg >> ffmpeg -ss 18 -i input.ts -vframes 1 -f null - >> ffmpeg -ss 18 -i input.ts -vframes 1 -vcodec copy -f rawvideo /dev/null >> >> Why do you need the select filter? >> Nowadays, FFmpeg should seek to a keyframe. >> If I am wrong, please provide complete, uncut console output. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From nichot20 at yahoo.com Mon Jul 9 08:57:43 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 09 Jul 2012 07:57:43 +0100 Subject: [FFmpeg-user] Audio Channel mapping: 8 channel to 2 channel stream, dropping input channels 3-8 In-Reply-To: <7ABBA1D3726F411AB5881506DAB1039D@gtv.local> References: <7ABBA1D3726F411AB5881506DAB1039D@gtv.local> Message-ID: <4FFA80E7.9050500@yahoo.com> On 08/07/12 08:23, Dan Flett wrote: > Hi all, > > I am struggling to find a way of mapping channels 1 and 2 of the first input > stream of my audio input. > > -map_channel does what I want if I know which numerical stream is the audio > - e.g. -map_channel 0.0.0 -map_channel 0.0.1. However in my video files, > the first audio stream is sometimes 0.0, sometimes it is 0.1. I want to > script this so that it always takes the first audio stream. I can't seem to > use the "a" stream identifier in -map_channel to unambiguously denote audio. > > I have tried various filters such as channelmap, pan, etc. No matter what I > do, the filters always seem to detect the 8 channel input stream as a 7.1 > audio format (which it isn't - it's 8 discrete, unrelated audio channels - > not surround sound), and always performs a downmix. I don't want a downmix, > I just want channel 1 and 2 of the input stream to be channel 1 and 2 of the > output stream and all other input channels to be dropped. > > Does anyone have a suggestion here? I want to avoid a 2-step process - i.e. > piping or using a temp file. > Would you regard using ffprobe to list the streams first, and then using it to fill in the required numbers for the transcode as 2 passes? > Cheers, > > Dan > > [..] -- Tim From nichot20 at yahoo.com Mon Jul 9 09:25:27 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 09 Jul 2012 08:25:27 +0100 Subject: [FFmpeg-user] FFMPEG introduces color shift to DNxHD MOVs In-Reply-To: <4FF969AD.2020301@mdsh.com> References: <1A1FF8D8F823459687CBCA8A69D97563@Lapgasm> <4FF71E88.3090703@alcatel-lucent.com> <17F9B7F68B27414EA9709D2140A3348A@Hogslayer> <4FF969AD.2020301@mdsh.com> Message-ID: <4FFA8767.4070209@yahoo.com> On 08/07/12 12:06, Mark Himsley wrote: > [...] > I'd like to post, for posterity, that this will reduce the fidelity of > your video. > > RGB -> YUV (BT.601) is a lossy transformation (in the sense that you > cannot go RGB -> YUV (BT.601) -> RGB and expect to get out exactly what > you put in) > Well lossy because of subsampling and then add in rounding errors... > AND > > YUV (BT.601) -> YUV (BT.709) is a lossy transformation (in the sense > that you cannot go YUV (BT.601) -> YUV (BT.709) -> YUV (BT.601) and > expect to get out exactly what you put in) > Not so much lossy, but more down to rounding errors really IMHO. And also wasteful of cpu cycles with all that floating point matrix arithmetic. > Concatenating two lossy transforms is very bad. I understand that this > is currently your only course of action. > > > I think a worthwhile addition to the scale filter (which does the format > conversion) would be to add a choice of colourspace, much like the use > of "format" forces the scale filter to change colour format. Tim > Nicholson has been discussing something similar. > libswscale currently supports 8 colourspaces, and the colormatrix filter only 4. By default libswscale uses "ITU-R Rec. 624-4 System B, G" which amounts to 601 coefficients. However it is not clear (to me at least) if any process ever uses anything other than the default. There are a number of #defines of SWS_CS_* in libswscale/swscale.h which never seem to get used anywhere (well grepping didn't reveal anything) > Perhaps (this is just off the top of my head, and I'm willing to be shot > down) something like: "-vf scale=0:0:rgbyuv=bt709,format=yuv422p" may > tell the scale filter to convert to yuv422p and if an RGB -> YUV > conversion is needed then use the RGB -> BT.709 conversion. > And fix color_range as well? -- Tim From cehoyos at ag.or.at Mon Jul 9 09:35:15 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Jul 2012 07:35:15 +0000 (UTC) Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS References: Message-ID: Pavan Kulkarni gmail.com> writes: > Here is the output without the select filter: > *time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -an -s 150x100 thumb2.jpg > (Unfortunately this gives a blank thumbnail)* > malloc: using debugging hooks > ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers This is old, I *believe* that current git head should give you a correct thumbnail without the select filter, so please test. Please do not top-post here, Carl Eugen From cehoyos at ag.or.at Mon Jul 9 09:39:48 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Jul 2012 07:39:48 +0000 (UTC) Subject: [FFmpeg-user] video to image sequence conversion problem References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> Message-ID: BhelPuri yahoo.com> writes: > Uncut console command and output pasted below. > Thanks in advance for your help. I don't see anything wrong with the output you posted. The input video is approximately 30fps, you want 5fps output, so approximately 5 of 6 frames are dropped. Perhaps you could explain again what goes wrong? (fps in the status line is a speed indicator.) Please do not top-post here, Carl Eugen From sheen.andy at googlemail.com Mon Jul 9 10:59:27 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 09 Jul 2012 09:59:27 +0100 Subject: [FFmpeg-user] Older release branches windows builds Message-ID: <4FFA9D6F.60305@googlemail.com> Hi, I have a problem with the latest zeranoe builds when using libx264 in that on the first pass of a 2-pass encoding, the program "locks" for a period of time - the frame counter stops, CPU usage jumps to 100%. This can last from a few seconds to 10+ seconds and is indeterminate - if I do exactly the same encode again, the number and timing of the 100% CPU lockups are different. In trying to track this down, I'd like to try the encoding with older versions of ffmpeg - in particular older 0.10.x, 0.9.x etc builds. Does anyone know where there is a repository of older windows builds? Thanks Andy From phpdev at ehrhardt.nl Mon Jul 9 12:02:26 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 09 Jul 2012 12:02:26 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Message-ID: Michael Bradshaw in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 17:14:57 -0600): >On Sun, Jul 8, 2012 at 2:13 PM, Jan Ehrhardt wrote: >> 376 fps versus 311 fps. The same 20% difference. >> Are there any milestones in between 0.11.1 and the trunk, that >> I can test? > >Not that I know of, but if you're willing, you can do a git bisect >between two versions (pick the two revisions that are closest to each >other but still show the significant speed difference) and you can >find out which patch caused the slowdown. I thought of this, but I'd have to compile each time before testing the speed. An easier approach would be to download Zeranoe's builds one after the other and use those to track down the culprit. It must even be possible to script this... BTW: when transcoding to WMV the difference is 485 vs 566 (Zeranoe's latest versus my compilation of 0.11.1). That is 16%, impressive difference as well. I also tried it one a 1 hour recording by the JVC GZ-MS120 camera. Same figures: ffmpeg version N-42288-g8293a21 built on Jul 5 2012 20:56:23 with gcc 4.7.1 frame=90024 fps=486 q=8.7 Lsize= 175012kB time=01:00:00.95 bitrate= 398.1kbits/s ffmpeg version 0.11.1 built on Jul 9 2012 02:35:30 with gcc 4.6.2 frame=90024 fps=565 q=8.7 Lsize= 175012kB time=01:00:00.95 bitrate= 398.1kbits/s -- Jan ffmpeg -i %input% -vf scale=384:288 -aspect 4:3 \ -sws_flags bicubic -vcodec wmv2 -b:v 320k \ -acodec wmav2 -ab 64k -ar 44100 output.wmv ffmpeg version N-42288-g8293a21 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2012 20:56:23 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 01eae980] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [graph 0 input from stream 0:0 @ 042b79c0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 042b7c60] No opaque field provided [Parsed_scale_0 @ 01f66120] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 01eb6aa0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [auto-inserted resampler 0 @ 01eb6bc0] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:44100Hz Output #0, asf, to 'output.wmv': Metadata: WM/EncodingSettings: Lavf54.15.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> wmv2) Stream #0:1 -> #0:1 (ac3 -> wmav2) Press [q] to stop, [?] for help [mpeg2video @ 0227f8c0] warning: first frame is no keyframe frame= 239 fps=0.0 q=6.4 size= 673kB time=00:00:09.38 bitrate= 587.4kbits/s dup=12 drop=0 frame= 467 fps=454 q=10.7 size= 1204kB time=00:00:18.57 bitrate= 530.9kbits/s dup=12 drop=0 frame= 719 fps=466 q=10.8 size= 1698kB time=00:00:28.65 bitrate= 485.3kbits/s dup=12 drop=0 frame= 972 fps=472 q=14.3 size= 2166kB time=00:00:38.73 bitrate= 458.2kbits/s dup=12 drop=0 frame= 1217 fps=473 q=25.9 size= 2648kB time=00:00:48.43 bitrate= 447.8kbits/s dup=12 drop=0 frame= 1467 fps=475 q=9.4 size= 3116kB time=00:00:58.42 bitrate= 437.0kbits/s dup=12 drop=0 frame= 1718 fps=477 q=9.8 size= 3607kB time=00:01:08.45 bitrate= 431.7kbits/s dup=12 drop=0 frame= 1970 fps=478 q=10.3 size= 4104kB time=00:01:18.57 bitrate= 427.8kbits/s dup=12 drop=0 frame= 2221 fps=479 q=8.3 size= 4598kB time=00:01:28.65 bitrate= 424.8kbits/s dup=12 drop=0 frame= 2476 fps=481 q=10.7 size= 5094kB time=00:01:38.82 bitrate= 422.3kbits/s dup=12 drop=0 frame= 2719 fps=480 q=10.8 size= 5566kB time=00:01:48.48 bitrate= 420.3kbits/s dup=12 drop=0 frame= 2971 fps=481 q=10.4 size= 6066kB time=00:01:58.60 bitrate= 419.0kbits/s dup=12 drop=0 frame= 3223 fps=482 q=13.2 size= 6541kB time=00:02:08.68 bitrate= 416.4kbits/s dup=12 drop=0 frame= 3477 fps=482 q=8.7 size= 7048kB time=00:02:18.85 bitrate= 415.8kbits/s dup=12 drop=0 frame= 3728 fps=483 q=10.6 size= 7554kB time=00:02:28.93 bitrate= 415.5kbits/s dup=12 drop=0 frame= 3982 fps=483 q=10.4 size= 8044kB time=00:02:39.05 bitrate= 414.3kbits/s dup=12 drop=0 frame= 4231 fps=483 q=10.8 size= 8501kB time=00:02:48.99 bitrate= 412.1kbits/s dup=12 drop=0 frame= 4481 fps=484 q=10.7 size= 8979kB time=00:02:58.98 bitrate= 411.0kbits/s dup=12 drop=0 frame= 4732 fps=484 q=12.2 size= 9479kB time=00:03:09.05 bitrate= 410.7kbits/s dup=12 drop=0 frame= 4985 fps=484 q=12.7 size= 9954kB time=00:03:19.18 bitrate= 409.4kbits/s dup=12 drop=0 frame= 5234 fps=484 q=10.1 size= 10441kB time=00:03:29.11 bitrate= 409.0kbits/s dup=12 drop=0 frame= 5489 fps=485 q=11.7 size= 10941kB time=00:03:39.33 bitrate= 408.6kbits/s dup=12 drop=0 frame= 5741 fps=485 q=11.9 size= 11426kB time=00:03:49.41 bitrate= 408.0kbits/s dup=12 drop=0 frame= 5993 fps=485 q=11.2 size= 11913kB time=00:03:59.49 bitrate= 407.5kbits/s dup=12 drop=0 frame= 6012 fps=485 q=21.1 Lsize= 11965kB time=00:04:00.46 bitrate= 407.6kbits/s dup=12 drop=0 video:9691kB audio:1876kB subtitle:0 global headers:0kB muxing overhead 3.431891% ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 9 2012 02:35:30 with gcc 4.6.2 configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame 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 [mpeg @ 02d7e860] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [buffer @ 02e36a80] w:352 h:288 pixfmt:yuv420p tb:1/90000 sar:12/11 sws_param:flags=2 [buffersink @ 02e5f740] No opaque field provided [scale @ 02e5f8a0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 02e4e960] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 02e4db60] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:44100Hz Output #0, asf, to 'output.wmv': Metadata: WM/EncodingSettings: Lavf54.6.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> wmv2) Stream #0:1 -> #0:1 (ac3 -> wmav2) Press [q] to stop, [?] for help [mpeg2video @ 02d91e20] warning: first frame is no keyframe frame= 269 fps=0.0 q=6.5 size= 726kB time=00:00:10.58 bitrate= 561.4kbits/s frame= 559 fps=543 q=23.6 size= 1373kB time=00:00:22.10 bitrate= 508.6kbits/s frame= 851 fps=551 q=16.8 size= 1948kB time=00:00:33.90 bitrate= 470.6kbits/s frame= 1135 fps=551 q=19.1 size= 2488kB time=00:00:45.18 bitrate= 451.1kbits/s frame= 1424 fps=553 q=9.9 size= 3038kB time=00:00:56.74 bitrate= 438.6kbits/s frame= 1714 fps=555 q=9.6 size= 3604kB time=00:01:08.26 bitrate= 432.5kbits/s frame= 2006 fps=557 q=9.1 size= 4182kB time=00:01:20.10 bitrate= 427.7kbits/s frame= 2300 fps=558 q=10.9 size= 4757kB time=00:01:31.81 bitrate= 424.4kbits/s frame= 2591 fps=559 q=12.6 size= 5326kB time=00:01:43.42 bitrate= 421.8kbits/s frame= 2875 fps=558 q=11.9 size= 5873kB time=00:01:54.75 bitrate= 419.2kbits/s frame= 3172 fps=560 q=14.1 size= 6448kB time=00:02:06.64 bitrate= 417.1kbits/s frame= 3467 fps=561 q=8.3 size= 7023kB time=00:02:18.48 bitrate= 415.4kbits/s frame= 3761 fps=562 q=10.8 size= 7607kB time=00:02:30.18 bitrate= 414.9kbits/s frame= 4057 fps=563 q=13.7 size= 8176kB time=00:02:42.07 bitrate= 413.2kbits/s frame= 4349 fps=563 q=10.3 size= 8735kB time=00:02:53.73 bitrate= 411.9kbits/s frame= 4642 fps=564 q=10.5 size= 9307kB time=00:03:05.43 bitrate= 411.2kbits/s frame= 4935 fps=564 q=13.9 size= 9863kB time=00:03:17.23 bitrate= 409.7kbits/s frame= 5228 fps=564 q=10.4 size= 10438kB time=00:03:28.93 bitrate= 409.3kbits/s frame= 5522 fps=565 q=13.7 size= 11010kB time=00:03:40.68 bitrate= 408.7kbits/s frame= 5818 fps=565 q=12.1 size= 11582kB time=00:03:52.43 bitrate= 408.2kbits/s frame= 6012 fps=566 q=21.2 Lsize= 11968kB time=00:04:00.46 bitrate= 407.7kbits/s video:9692kB audio:1876kB global headers:0kB muxing overhead 3.456557% From phpdev at ehrhardt.nl Mon Jul 9 12:14:43 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 09 Jul 2012 12:14:43 +0200 Subject: [FFmpeg-user] Older release branches windows builds References: <4FFA9D6F.60305@googlemail.com> Message-ID: <3mblv79jmn09ntg30sgpp4rjuj6vffoo8h@4ax.com> Andy Sheen in gmane.comp.video.ffmpeg.user (Mon, 09 Jul 2012 09:59:27 +0100): >In trying to track this down, I'd like to try the encoding with older >versions of ffmpeg - in particular older 0.10.x, 0.9.x etc builds. Does >anyone know where there is a repository of older windows builds? http://ffmpeg.zeranoe.com/builds/win32/static/ Jan From sheen.andy at googlemail.com Mon Jul 9 12:34:38 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 09 Jul 2012 11:34:38 +0100 Subject: [FFmpeg-user] Older release branches windows builds In-Reply-To: <3mblv79jmn09ntg30sgpp4rjuj6vffoo8h@4ax.com> References: <4FFA9D6F.60305@googlemail.com> <3mblv79jmn09ntg30sgpp4rjuj6vffoo8h@4ax.com> Message-ID: <4FFAB3BE.4000209@googlemail.com> Jan Ehrhardt wrote on Mon 09 Jul at 11:14 UK time > Andy Sheen in gmane.comp.video.ffmpeg.user (Mon, 09 Jul 2012 09:59:27 +0100): >> In trying to track this down, I'd like to try the encoding with older >> versions of ffmpeg - in particular older 0.10.x, 0.9.x etc builds. Does >> anyone know where there is a repository of older windows builds? > > http://ffmpeg.zeranoe.com/builds/win32/static/ > Thanks Jan It's not quite what I was thinking, but will do nicely thanks (and was an obvious place to look - doh!). I'll do some investigations and get back to you with some testing results if I find anything (I can monitor fps as I test different versions which may help you). > Jan > Andy From pavanvkbgm at gmail.com Mon Jul 9 12:54:27 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Mon, 9 Jul 2012 16:24:27 +0530 Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS In-Reply-To: References: Message-ID: > > Hi, > Tried as per Carl's suggestion by using the latest version and cross-compiling for MIPS. Unfortunately though, the time taken to produce the thumbnail has not reduced when compared with the case where select filter is used. (Below is the uncut console o/p). There are also a few errors/warnings. How can I resolve those? However, the problem where I used to get a blank thumbnail when select filter was not used is resolved by migrating to the newer version of FFMPEG. As an aside, Perhaps if I can get an option/combination of options in ffmpeg where in I can seek to x seconds quickly and then search for the closest I frame, then maybe I can get the thumbnail quicker? Thanks a lot for the help so far! time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -an -s 150x100 thumb12.jpg ffmpeg version N-42364-g07df939 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 9 2012 15:46:44 with gcc 4.3.2 configuration: --prefix=/home/pavank/ffmpeg/ffmpeg_cross_compiled --enable-shared --enable-cross-compile --target-os=linux --cross-prefix=mipsisa32r2el-timesys-linux-gnu- --arch=mips --extra-cflags=-O2 libavutil 51. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 [h264 @ 0x443ff0] non-existing SPS 13 referenced in buffering period Last message repeated 1 times [NULL @ 0x443ff0] non-existing SPS 13 referenced in buffering period Last message repeated 7 times Input #0, mpegts, from 'Pirates_remux_short.ts': Duration: 00:00:59.22, start: 720.665000, bitrate: 33719 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100](eng): Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s32, 6912 kb/s [graph 0 input from stream 0:0 @ 0x447580] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:24000/1001 sar:1/1 sws_param:flags=2 [output stream 0:0 @ 0x447930] No opaque field provided [scaler for output stream 0:0 @ 0x447770] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:150 h:100 fmt:yuvj420p sar:32/27 flags:0x4 [h264 @ 0x443ff0] non-existing SPS 13 referenced in buffering period Output #0, image2, to 'thumb12.jpg': Metadata: encoder : Lavf54.15.102 Stream #0:0: Video: mjpeg, yuvj420p, 150x100 [SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help [h264 @ 0x443ff0] non-existing SPS 13 referenced in buffering period [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] concealing 8160 DC, 8160 AC, 8160 MV errors [h264 @ 0x443ff0] Missing reference picture Last message repeated 3 times Could not get frame filename number 2 from pattern 'thumb12.jpg'te= 0.0kbits/s av_interleaved_write_frame(): Invalid argument Command exited with non-zero status 1 real 0m 34.41s user 0m 28.21s sys 0m 2.08s > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From phpdev at ehrhardt.nl Mon Jul 9 13:12:13 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 09 Jul 2012 13:12:13 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Message-ID: <4selv7has6h4d01n9v1hje2jdm6dsfjohj@4ax.com> Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Mon, 09 Jul 2012 12:02:26 +0200): [buffer @ 02e36a80] w:352 h:288 pixfmt:yuv420p tb:1/90000 sar:12/11 sws_param:flags=2 [buffersink @ 02e5f740] No opaque field provided This one is missing in the output of the slower versions. I have searched through all kinds of patches related the buffers during the last 2.5 months, but cannot find a solution. Anyone else? Jan From cehoyos at ag.or.at Mon Jul 9 13:18:44 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Jul 2012 11:18:44 +0000 (UTC) Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS References: Message-ID: Pavan Kulkarni gmail.com> writes: > There are also a few errors/warnings. How can I resolve those? Why do you want to resolve them / which errors/warning are you talking about? > However, the problem where I used to get a blank thumbnail > when select filter was not used is resolved by migrating > to the newer version of FFMPEG. This sentence tells me that seeking works fine now. > As an aside, Perhaps if I can get an option/combination of options in > ffmpeg where in I can seek to x seconds quickly and then search for the > closest I frame, then maybe I can get the thumbnail quicker? Doesn't your sentence above indicate that this problem is already solved? > Thanks a lot for the help so far! > > time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -an -s 150x100 thumb12.jpg I strongly suspect you are comparing apples with prunes here... What about $ time ./ffmpeg -i Pirates_remux_short.ts thumphd.jpg and $ time ./ffmpeg -ss 18 -i Pirates_remux_short.ts thumphd2.jpg Does the first take ~10 seconds, the second <12? Carl Eugen From cehoyos at ag.or.at Mon Jul 9 13:33:22 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Jul 2012 11:33:22 +0000 (UTC) Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS References: Message-ID: Pavan Kulkarni gmail.com> writes: > time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -an -s 150x100 thumb12.jpg To elaborate (I missed the scaling in your first mail): libswscale does not contain optimizations for mips, so scaling is expensive. If you are an experienced mips asm developer, optimizing libswscale is definitely possible and many operations would gain speed, the alternative is to optimize the h264 decoder (which would also show benefits when decoding without scaling) or you optimize both;-) Carl Eugen From sheen.andy at googlemail.com Mon Jul 9 14:32:29 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 09 Jul 2012 13:32:29 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly Message-ID: <4FFACF5D.6040409@googlemail.com> Hi I have recently upgraded my ffmpeg to one of the latest Zeranoe builds (in fact the latest...). I am seeing cpu spiking to 100% randomly on the first pass of an x264 encode. When this happens the counters freeze and the program does nothing for 5-20 seconds before resuming. Everything "works" - the encode finishes with no errors, so there is no error to report, but I am getting encodes that are significantly slower due to this random freezing (the freeze happens at different points on the encode every time the code is run so is non-deterministic). Other people are also having this problem (see: http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=617) but the forum is moderated and Zeranoe hasn't been on there since 6/7/12 to allow my posts through.... I'm on Win 7 x64 on an i7-2600K @ 4.3GHz and working backwards (thanks Jan for the link) I have found that the build from 26th December 2011 works perfectly, the one from 5th January 2012 has the CPU spiking issue. According to the READMEs in the two downloads, they both use exactly the same build environment as well as exactly the same external libs (see below). The ONLY thing that is different is a newer version of the ffmpeg tree (git-7f83db3 vs git-f514695) The command line is: ffmpeg -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t 0:10:00 -map 0:0 -pass 1 -filter:v yadif=0:-1 -c:v libx264 -preset fast -tune film -profile high -fastfirstpass 1 -b:v 1200k -threads 8 -f mp4 -an nul Diffing the uncut command line output shows the only differences are in the library versions and the addresses in the [llllllll @ nnnnnnnnnnnnn] lines where the numbers (nnnnnnnnnnnnn) differ. There is no error, or real difference in the output so I haven't attached the uncut output. A diff of the two readmes included with the download gives: $ diff ffmpeg-2012-01-05/README.txt ffmpeg-2011-12-26/README.txt 5c5 < Built on x264 - core %d%s - H.264/MPEG-4 AVC codec - Copy%s 2003-2011 - http://www.videolan.org/x264.html - options: %s 02:02:28 --- > Built on Dec 26 2011 17:55:53 7,10c7,10 < FFmpeg version git-7f83db3 < libavutil 51. 34.100 / 51. 34.100 < libavcodec 53. 53.100 / 53. 53.100 < libavformat 53. 29.100 / 53. 29.100 --- > FFmpeg version git-f514695 > libavutil 51. 33.100 / 51. 33.100 > libavcodec 53. 48.100 / 53. 48.100 > libavformat 53. 28.100 / 53. 28.100 12c12 < libavfilter 2. 57.101 / 2. 57.101 --- > libavfilter 2. 54.100 / 2. 54.100 With the README.txt from 26/12/11 being This is a FFmpeg Win64 static build by Kyle Schwarz. Zeranoe's FFmpeg Builds Home Page: http://ffmpeg.zeranoe.com/builds/ Built on Dec 26 2011 17:55:53 FFmpeg version git-f514695 libavutil 51. 33.100 / 51. 33.100 libavcodec 53. 48.100 / 53. 48.100 libavformat 53. 28.100 / 53. 28.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 54.100 / 2. 54.100 libswscale 2. 1.100 / 2. 1.100 libpostproc 51. 2.100 / 51. 2.100 FFmpeg configured with: --enable-gpl --enable-version3 --disable-w32threads --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib The source code for this FFmpeg build can be found at: http://hawkeye.arrozcru.org/source/ This version of FFmpeg was built on: Ubuntu Desktop 10.04: http://www.ubuntu.com/desktop The cross-compile toolchain used to compile this FFmpeg was: MinGW-w64 r4408: http://mingw-w64.sourceforge.net/ winpthreads (part of MinGW-w64) The GCC version used to compile this FFmpeg was: GCC 4.6.1: http://gcc.gnu.org/ The external libaries compiled into this FFmpeg are: bzip2 1.0.6 http://www.bzip.org Frei0r 1.3 http://frei0r.dyne.org/ opencore-amr 0.1.2 http://sourceforge.net/projects/opencore-amr/ FreeType 2.4.6 http://www.freetype.org/ gsm 1.0.13 http://libgsm.sourcearchive.com/ LAME 3.98.4 http://lame.sourceforge.net/ OpenJPEG 1.4 http://www.openjpeg.org/ RTMP git-60218d0a http://rtmpdump.mplayerhq.hu/ Schroedinger 1.0.10 http://diracvideo.org/ Speex 1.2rc1 http://www.speex.org/ Theora 1.1.1 http://www.theora.org/ vo-aacenc 0.1.1 http://sourceforge.net/projects/opencore-amr/ vo-amrwbenc 0.1.1 http://sourceforge.net/projects/opencore-amr/ Vorbis 1.3.2 http://www.vorbis.com/ libvpx v0.9.7-p1 http://www.webmproject.org/code/ x264 git-0c7dab9 http://www.videolan.org/developers/x264.html XAVS r55 http://xavs.sourceforge.net/ Xvid 1.3.2 http://www.xvid.org/ zlib 1.2.5 http://zlib.net/ License for each library can be found in the licenses folder. From pavanvkbgm at gmail.com Mon Jul 9 14:40:19 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Mon, 9 Jul 2012 18:10:19 +0530 Subject: [FFmpeg-user] How to speed up thumbnail generation for video files using FFMPEG on MIPS In-Reply-To: References: Message-ID: Pardon me .. I was not clear. > Why do you want to resolve them / which errors/warning are you > talking about? These errors below. I presumed they might give an idea of what's eating up so much of time. [h264 @ 0x443ff0] non-existing SPS 13 referenced in buffering period [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] Missing reference picture [h264 @ 0x443ff0] decode_slice_header error [h264 @ 0x443ff0] concealing 8160 DC, 8160 AC, 8160 MV errors [h264 @ 0x443ff0] Missing reference picture > What about > $ time ./ffmpeg -i Pirates_remux_short.ts thumphd.jpg Around 14 seconds > and > $ time ./ffmpeg -ss 18 -i Pirates_remux_short.ts thumphd2.jpg Around 33 seconds. Equivalent command o/p for .mp4 files > $ time ./ffmpeg -i input.mp4 thumphd.jpg Around 1 second (BUT the thumbnail does not get generated. It is black) > and > $ time ./ffmpeg -ss 18 -i input.mp4 thumphd2.jpg Around 27 seconds. Please tell me if you need uncut console o/p In the older FFMPEG version if I tried to seek without the select filter, it produced a blank thumbnail for ..mp4 files. (It worked alright for .ts files). With new FFMPEG build, even for .mp4 files, seek option works WITHOUT the select filter. In summary, with new FFMPEG build excellent quality thumbnails are produced with seek and without the select filter. BUT there has been no improvement in terms of time taken What I'm trying to achieve is decent quality thumbnails for .mp4, .ts, .mov, .3gp files within a reasonable amount of time. Do you feel that this is as far as we can go to achieve optimal times? I'm not an experienced mips asm developer, so I'm trying to get things working using the existing ffmpeg libraries. On Mon, Jul 9, 2012 at 5:03 PM, Carl Eugen Hoyos wrote: > Pavan Kulkarni gmail.com> writes: > > > time ./ffmpeg -ss 18 -i Pirates_remux_short.ts -an -s 150x100 > thumb12.jpg > > To elaborate (I missed the scaling in your first mail): > libswscale does not contain optimizations for mips, so > scaling is expensive. > If you are an experienced mips asm developer, optimizing libswscale > is definitely possible and many operations would gain speed, > the alternative is to optimize the h264 decoder (which would > also show benefits when decoding without scaling) or you > optimize both;-) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From fabio.europe at gmail.com Mon Jul 9 16:23:43 2012 From: fabio.europe at gmail.com (Fabio Tiriticco) Date: Mon, 9 Jul 2012 16:23:43 +0200 Subject: [FFmpeg-user] trim video in C code Message-ID: Hi all, I am asking this question as I could find no useful information in hours of searching. I would like to use ffmpeg in its C library code form to write a program that can trim a video, extract a portion, possibly mix it with other portions and re-encode the final result. I really can't find any documentation, maybe it's my fault. But any hint on this would be immensely appreciated. Cheers Fabio -- http://famsterdamlife.com From phpdev at ehrhardt.nl Mon Jul 9 16:32:17 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 09 Jul 2012 16:32:17 +0200 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Message-ID: Michael Bradshaw in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 17:14:57 -0600): >Not that I know of, but if you're willing, you can do a git bisect >between two versions (pick the two revisions that are closest to each >other but still show the significant speed difference) and you can >find out which patch caused the slowdown. The delay was introduced in between 20120622-git-c17808c and 20120627-git-b536e2f. Four lines in the output differ substantially: ffmpeg-20120622-git-c17808c -i %input% -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec wmv2 -b:v 320k -acodec wmav2 -ab 64k -ar 44100 -y output.wmv [buffer @ 022399e0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [ffmpeg_buffersink @ 02239c60] No opaque field provided [Parsed_scale_0 @ 0426d1e0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 02310ca0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'aformat' fps: 562 versus ffmpeg-20120627-git-b536e2f -i %input% -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -vcodec wmv2 -b:v 320k -acodec wmav2 -ab 64k -ar 44100 -y output.wmv [graph 0 input from stream 0:0 @ 03704c60] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 0036d840] No opaque field provided [Parsed_scale_0 @ 03704b40] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 03791ec0] tb:1/90000 samplefmt:s16 samplerate:48000 chlayout:0x3 fps: 450 There were a lot of patches between 20120622 and 20120627 ... Jan ffmpeg version N-41843-gc17808c Copyright (c) 2000-2012 the FFmpeg developers built on Jun 22 2012 17:40:07 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 61.100 / 51. 61.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 [mpeg @ 0240c8e0] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [buffer @ 022399e0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [ffmpeg_buffersink @ 02239c60] No opaque field provided [Parsed_scale_0 @ 0426d1e0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 02310ca0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'aformat' [auto-inserted resampler 0 @ 02310dc0] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:44100Hz Output #0, asf, to 'output.wmv': Metadata: WM/EncodingSettings: Lavf54.11.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 63 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> wmv2) Stream #0:1 -> #0:1 (ac3 -> wmav2) Press [q] to stop, [?] for help [mpeg2video @ 02225b80] warning: first frame is no keyframe frame= 274 fps=0.0 q=6.8 size= 748kB time=00:00:10.68 bitrate= 573.3kbits/s frame= 571 fps=555 q=18.9 size= 1394kB time=00:00:22.56 bitrate= 506.1kbits/s frame= 863 fps=559 q=17.8 size= 1966kB time=00:00:34.32 bitrate= 469.3kbits/s frame= 1147 fps=557 q=16.1 size= 2510kB time=00:00:45.74 bitrate= 449.5kbits/s frame= 1439 fps=559 q=9.3 size= 3063kB time=00:00:57.35 bitrate= 437.5kbits/s frame= 1720 fps=558 q=9.5 size= 3610kB time=00:01:08.59 bitrate= 431.2kbits/s frame= 2008 fps=559 q=9.2 size= 4182kB time=00:01:20.10 bitrate= 427.7kbits/s frame= 2298 fps=559 q=11.0 size= 4741kB time=00:01:31.71 bitrate= 423.5kbits/s frame= 2585 fps=559 q=13.5 size= 5307kB time=00:01:43.23 bitrate= 421.1kbits/s frame= 2865 fps=557 q=10.5 size= 5866kB time=00:01:54.38 bitrate= 420.1kbits/s frame= 3142 fps=556 q=12.7 size= 6398kB time=00:02:05.48 bitrate= 417.7kbits/s frame= 3428 fps=556 q=10.3 size= 6948kB time=00:02:16.90 bitrate= 415.7kbits/s frame= 3722 fps=557 q=10.3 size= 7535kB time=00:02:28.65 bitrate= 415.2kbits/s frame= 4018 fps=559 q=16.7 size= 8107kB time=00:02:40.44 bitrate= 413.9kbits/s frame= 4310 fps=559 q=10.3 size= 8663kB time=00:02:52.24 bitrate= 412.0kbits/s frame= 4606 fps=560 q=9.7 size= 9232kB time=00:03:03.94 bitrate= 411.1kbits/s frame= 4904 fps=561 q=15.0 size= 9810kB time=00:03:15.97 bitrate= 410.1kbits/s frame= 5195 fps=562 q=10.4 size= 10369kB time=00:03:27.63 bitrate= 409.1kbits/s frame= 5494 fps=563 q=12.3 size= 10960kB time=00:03:39.47 bitrate= 409.1kbits/s frame= 5788 fps=563 q=10.8 size= 11516kB time=00:03:51.27 bitrate= 407.9kbits/s frame= 6012 fps=565 q=21.2 Lsize= 11968kB time=00:04:00.46 bitrate= 407.7kbits/s video:9692kB audio:1876kB subtitle:0 global headers:0kB muxing overhead 3.456574% ffmpeg version N-41975-gb536e2f Copyright (c) 2000-2012 the FFmpeg developers built on Jun 26 2012 20:32:54 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 63.100 / 51. 63.100 libavcodec 54. 29.101 / 54. 29.101 libavformat 54. 11.100 / 54. 11.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.100 / 3. 0.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 0036c8e0] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD': Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s [graph 0 input from stream 0:0 @ 03704c60] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 [output stream 0:0 @ 0036d840] No opaque field provided [Parsed_scale_0 @ 03704b40] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 03791ec0] tb:1/90000 samplefmt:s16 samplerate:48000 chlayout:0x3 [auto-inserted resampler 0 @ 03792040] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:44100Hz Output #0, asf, to 'output.wmv': Metadata: WM/EncodingSettings: Lavf54.11.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 63 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> wmv2) Stream #0:1 -> #0:1 (ac3 -> wmav2) Press [q] to stop, [?] for help [mpeg2video @ 036a5b80] warning: first frame is no keyframe frame= 215 fps=0.0 q=7.5 size= 598kB time=00:00:08.40 bitrate= 582.4kbits/s frame= 442 fps=429 q=10.3 size= 1141kB time=00:00:17.41 bitrate= 536.9kbits/s frame= 671 fps=437 q=8.7 size= 1591kB time=00:00:26.65 bitrate= 489.0kbits/s frame= 907 fps=442 q=18.8 size= 2038kB time=00:00:36.03 bitrate= 463.3kbits/s frame= 1132 fps=441 q=18.6 size= 2476kB time=00:00:45.04 bitrate= 450.2kbits/s frame= 1361 fps=442 q=13.5 size= 2907kB time=00:00:54.19 bitrate= 439.4kbits/s frame= 1587 fps=442 q=27.5 size= 3351kB time=00:01:03.20 bitrate= 434.3kbits/s frame= 1805 fps=441 q=11.4 size= 3779kB time=00:01:11.93 bitrate= 430.3kbits/s frame= 2033 fps=441 q=9.7 size= 4232kB time=00:01:21.08 bitrate= 427.6kbits/s frame= 2267 fps=443 q=10.6 size= 4691kB time=00:01:30.51 bitrate= 424.6kbits/s frame= 2507 fps=445 q=10.8 size= 5160kB time=00:01:40.07 bitrate= 422.4kbits/s frame= 2734 fps=445 q=10.1 size= 5604kB time=00:01:49.13 bitrate= 420.6kbits/s frame= 2974 fps=446 q=10.4 size= 6063kB time=00:01:58.70 bitrate= 418.4kbits/s frame= 3199 fps=446 q=14.0 size= 6504kB time=00:02:07.75 bitrate= 417.0kbits/s frame= 3431 fps=447 q=10.3 size= 6951kB time=00:02:17.13 bitrate= 415.2kbits/s frame= 3665 fps=448 q=10.5 size= 7416kB time=00:02:26.37 bitrate= 415.1kbits/s frame= 3904 fps=449 q=10.5 size= 7882kB time=00:02:35.94 bitrate= 414.0kbits/s frame= 4135 fps=449 q=24.5 size= 8316kB time=00:02:45.14 bitrate= 412.5kbits/s frame= 4369 fps=449 q=21.5 size= 8782kB time=00:02:54.56 bitrate= 412.1kbits/s frame= 4585 fps=448 q=7.5 size= 9188kB time=00:03:03.20 bitrate= 410.8kbits/s frame= 4817 fps=449 q=15.8 size= 9638kB time=00:03:12.44 bitrate= 410.3kbits/s frame= 5053 fps=449 q=8.5 size= 10091kB time=00:03:21.92 bitrate= 409.4kbits/s frame= 5290 fps=450 q=9.4 size= 10560kB time=00:03:31.30 bitrate= 409.4kbits/s frame= 5525 fps=450 q=14.1 size= 11013kB time=00:03:40.77 bitrate= 408.6kbits/s frame= 5755 fps=450 q=11.5 size= 11466kB time=00:03:50.01 bitrate= 408.4kbits/s frame= 5981 fps=450 q=10.8 size= 11891kB time=00:03:59.07 bitrate= 407.5kbits/s frame= 6012 fps=450 q=21.2 Lsize= 11968kB time=00:04:00.46 bitrate= 407.7kbits/s video:9692kB audio:1876kB subtitle:0 global headers:0kB muxing overhead 3.456574% From sustacek at umn.edu Mon Jul 9 18:03:33 2012 From: sustacek at umn.edu (Jim Sustacek) Date: Mon, 9 Jul 2012 09:03:33 -0700 (PDT) Subject: [FFmpeg-user] Adding a RTMP live stream overlay In-Reply-To: <1336140409011-4608703.post@n4.nabble.com> References: <1336140409011-4608703.post@n4.nabble.com> Message-ID: <1341849813444-4651600.post@n4.nabble.com> I escaped the colon with a backslash to get past the error message. My command: ffmpeg -i rtsp://server.com/path/to/live/left.sdp -vf "[in] pad=2*iw:ih [left]; movie='rtsp\://server.com/path/to/live/right.sdp' [right]; [left][right] overlay=main_w/2:0 [out]" -vcodec libx264 -b:v 1200k -acodec aac -strict experimental -ar 44100 -ab 128k outputfile.mp4 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Adding-a-RTMP-live-stream-overlay-tp4608703p4651600.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mbradshaw at sorensonmedia.com Mon Jul 9 18:15:48 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Mon, 9 Jul 2012 10:15:48 -0600 Subject: [FFmpeg-user] Speed differences, was: The Magic Microsecond In-Reply-To: References: <1341765273.81643.YahooMailNeo@web110513.mail.gq1.yahoo.com> <6kpjv7llrkhcdlj895jpfq58jm2n55mqrp@4ax.com> Message-ID: On Mon, Jul 9, 2012 at 8:32 AM, Jan Ehrhardt wrote: > Michael Bradshaw in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 17:14:57 -0600): >>Not that I know of, but if you're willing, you can do a git bisect >>between two versions (pick the two revisions that are closest to each >>other but still show the significant speed difference) and you can >>find out which patch caused the slowdown. > > The delay was introduced in between 20120622-git-c17808c and > 20120627-git-b536e2f. Four lines in the output differ > substantially: > > ffmpeg-20120622-git-c17808c -i %input% -vf scale=384:288 -aspect 4:3 > -sws_flags bicubic -vcodec wmv2 -b:v 320k -acodec wmav2 -ab 64k > -ar 44100 -y output.wmv > > [buffer @ 022399e0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 > sar:12/11 sws_param:flags=2 > [ffmpeg_buffersink @ 02239c60] No opaque field provided > [Parsed_scale_0 @ 0426d1e0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 > h:288 fmt:yuv420p sar:1/1 flags:0x4 > [aformat @ 02310ca0] auto-inserting filter 'auto-inserted resampler 0' > between the filter 'Parsed_anull_0' and the filter 'aformat' > > fps: 562 > > versus > > ffmpeg-20120627-git-b536e2f -i %input% -vf scale=384:288 -aspect 4:3 > -sws_flags bicubic -vcodec wmv2 -b:v 320k -acodec wmav2 -ab 64k > -ar 44100 -y output.wmv > > [graph 0 input from stream 0:0 @ 03704c60] w:352 h:288 pixfmt:yuv420p > tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2 > [output stream 0:0 @ 0036d840] No opaque field provided > [Parsed_scale_0 @ 03704b40] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 > h:288 fmt:yuv420p sar:1/1 flags:0x4 > [graph 1 input from stream 0:1 @ 03791ec0] tb:1/90000 samplefmt:s16 > samplerate:48000 chlayout:0x3 > > fps: 450 > > There were a lot of patches between 20120622 and 20120627 ... There's probably a couple hundred commits in those 5 days, which would require about 8 iterations with git bisect. I'd bisect it myself but I'm currently on OS X and haven't taken the time to see if the same problem exists for me on my Windows partition. I'll try to see if I have the same problem, and if I do I'll git bisect it (if you haven't already), but I make no promises about when that will be (may not be for quite a while). Thanks for the persistent investigation. --Michael From samosa_chaat at yahoo.com Mon Jul 9 18:22:45 2012 From: samosa_chaat at yahoo.com (BhelPuri) Date: Mon, 9 Jul 2012 09:22:45 -0700 (PDT) Subject: [FFmpeg-user] video to image sequence conversion problem In-Reply-To: References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> Message-ID: <1341850965.79910.YahooMailNeo@web161201.mail.bf1.yahoo.com> > I don't see anything wrong with the output you posted. > The input video is approximately 30fps, you want 5fps output, > so approximately 5 of 6 frames are dropped. > Perhaps you could explain again what goes wrong? > (fps in the status line is a speed indicator.) > Please do not top-post here, Carl Eugen My video (29.97 fps) is that of a precise oscillatory motion of time period 40 seconds. If the downsampling to 5 fps is done correctly then the peaks (in motion) should be 200 (=5*40) downsampled frames apart. But I find that it is off by 1 or 2 frames in the downsampled sequence (a difference of about 6-12 original frames). Something is messing up the downsampling such that the image sequence being written doesn't reflect a constant fps. For what it's worth, I've tried the same on a friend's Linux machine using Cinelerra (which uses ffmpeg, right?) and that works correctly. From cehoyos at ag.or.at Mon Jul 9 18:38:34 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Jul 2012 16:38:34 +0000 (UTC) Subject: [FFmpeg-user] video to image sequence conversion problem References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341850965.79910.YahooMailNeo@web161201.mail.bf1.yahoo.com> Message-ID: BhelPuri yahoo.com> writes: > My video (29.97 fps) is that of a precise oscillatory motion > of time period 40 seconds. If the downsampling to 5 fps is > done correctly then the peaks (in motion) should be 200 > (=5*40) downsampled frames apart. Aren't you assuming 30fps here? > But I find that it is off by 1 or 2 frames in the downsampled > sequence (a difference of about 6-12 original frames). Isn't this exactly the difference between 30000/1001 and 30fps? Carl Eugen From rogerdpack2 at gmail.com Mon Jul 9 20:03:25 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 9 Jul 2012 12:03:25 -0600 Subject: [FFmpeg-user] The Magic Microsecond In-Reply-To: References: Message-ID: > The 22 fps was completely unacceptable and we moved to MEncoder, which > did not have the problem. By pure chance, I discovered a few weeks ago > how to speed up ffmpeg-r32754 dramatically: skip the first microsecond! > -ss 0.000001. > > Result: > frame= 6010 fps=330 q=23.8 Lsize= 12809kB time=00:04:00.48 \ > bitrate= 436.3kbits/s > > Fps: 330. Now we are talking! 15 times as fast. > > ffmpeg-20120706 (Zeranoe build) does not behave as badly: > frame= 6012 fps=310 q=24.4 Lsize= 12813kB time=00:04:00.48 \ > bitrate= 436.5kbits/s Maybe these are different speed-wise because of different "q" levels reported? Now why, that may be different... From rogerdpack2 at gmail.com Mon Jul 9 20:14:46 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 9 Jul 2012 12:14:46 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFACF5D.6040409@googlemail.com> References: <4FFACF5D.6040409@googlemail.com> Message-ID: > (in fact the latest...). I am seeing cpu spiking to 100% randomly on the > first pass of an x264 encode. When this happens the counters freeze and > ... > libs (see below). The ONLY thing that is different is a newer version of > the ffmpeg tree (git-7f83db3 vs git-f514695) Might be interesting to do a git-bisect on it and see which commit is the culprit. Looks like there were a number of changes... https://github.com/FFmpeg/FFmpeg/compare/f514695...7f83db3 You "can" also tell where a thread is currently at (i.e. "its call stack when hanging") by using process explorer. I think you can, anyway. GL! -roger- From rogerdpack2 at gmail.com Mon Jul 9 20:24:20 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 9 Jul 2012 12:24:20 -0600 Subject: [FFmpeg-user] trim video in C code In-Reply-To: References: Message-ID: > I am asking this question as I could find no useful information in hours of > searching. I would like to use ffmpeg in its C library code form to write a > program that can trim a video, extract a portion, possibly mix it with > other portions and re-encode the final result. It may be possible to use some of the "filters" that ffmpeg has to accomplish your end goals: http://ffmpeg.org/libavfilter.html Since you're wanting to use ffmpeg as a C library, https://github.com/FFmpeg/FFmpeg/tree/master/doc may help you get started https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples has some examples of embedding them. GL. -r From sheen.andy at googlemail.com Mon Jul 9 20:25:33 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 09 Jul 2012 19:25:33 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> Message-ID: <4FFB221D.4090102@googlemail.com> Roger Pack wrote on Mon 09 Jul at 19:14 UK time >> (in fact the latest...). I am seeing cpu spiking to 100% randomly on the >> first pass of an x264 encode. When this happens the counters freeze and >> ... >> libs (see below). The ONLY thing that is different is a newer version of >> the ffmpeg tree (git-7f83db3 vs git-f514695) > > Might be interesting to do a git-bisect on it and see which commit is > the culprit. Looks like there were a number of changes... > https://github.com/FFmpeg/FFmpeg/compare/f514695...7f83db3 Yes. It looks like someone had a good time over Christmas tidying up the code. Most of the commits are to add/insert spaces or format lines differently. I'll take a look and see what I come up with... > You "can" also tell where a thread is currently at (i.e. "its call > stack when hanging") by using process explorer. I think you can, > anyway. > GL! OK - thanks. I'll take a look (haven't coded bar shell scripts for a while.....) From samosa_chaat at yahoo.com Mon Jul 9 20:31:43 2012 From: samosa_chaat at yahoo.com (BhelPuri) Date: Mon, 9 Jul 2012 11:31:43 -0700 (PDT) Subject: [FFmpeg-user] video to image sequence conversion problem In-Reply-To: References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341850965.79910.YahooMailNeo@web161201.mail.bf1.yahoo.com> Message-ID: <1341858703.30272.YahooMailNeo@web161205.mail.bf1.yahoo.com> >> My video (29.97 fps) is that of a precise oscillatory motion >> of time period 40 seconds. If the downsampling to 5 fps is >> done correctly then the peaks (in motion) should be 200 >> (=5*40) downsampled frames apart. >Aren't you assuming 30fps here? >> But I find that it is off by 1 or 2 frames in the downsampled >> sequence (a difference of about 6-12 original frames). > Isn't this exactly the difference between 30000/1001 and 30fps? I'm not assuming 30fps in those calculations. Even if the recorded video is x fps (say x is larger than 5) and I downsample to 5 fps, then a harmonic motion of 40 seconds should be covered in 200 frames. You are right that the difference seems to be the same as 30000/1001 and 30fps. But why is this a factor in image sequence conversion? Cinelerra doesn't have this problem. Maybe I need to backup and ask how the downsampling is done. Is it done by skipping every n frames (where n is an integer) or is it done by constructing (interpolating/extracting) frames at exact time points? If it's the latter then the image-time relation should be in perfect sync irrespective of the input fps (30 or 29.997), correct? From cehoyos at ag.or.at Mon Jul 9 21:12:13 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Jul 2012 19:12:13 +0000 (UTC) Subject: [FFmpeg-user] video to image sequence conversion problem References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341850965.79910.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341858703.30272.YahooMailNeo@web161205.mail.bf1.yahoo.com> Message-ID: BhelPuri yahoo.com> writes: > >> My video (29.97 fps) is that of a precise oscillatory motion > >> of time period 40 seconds. If the downsampling to 5 fps is > >> done correctly then the peaks (in motion) should be 200 > >> (=5*40) downsampled frames apart. > I'm not assuming 30fps in those calculations. You are probably right. Can you share the input video? Carl Eugen From samosa_chaat at yahoo.com Tue Jul 10 00:03:10 2012 From: samosa_chaat at yahoo.com (BhelPuri) Date: Mon, 9 Jul 2012 15:03:10 -0700 (PDT) Subject: [FFmpeg-user] video to image sequence conversion problem In-Reply-To: References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341850965.79910.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341858703.30272.YahooMailNeo@web161205.mail.bf1.yahoo.com> Message-ID: <1341871390.96318.YahooMailNeo@web161202.mail.bf1.yahoo.com> >> I'm not assuming 30fps in those calculations. >You are probably right. >Can you share the input video? Unfortunately I can't share the video due to restrictions. Is there any other way to troubleshoot this? What goes on in the background for downsampling and conversion to image sequence? From rogerdpack2 at gmail.com Tue Jul 10 00:12:22 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 9 Jul 2012 16:12:22 -0600 Subject: [FFmpeg-user] video to image sequence conversion problem In-Reply-To: <1341871390.96318.YahooMailNeo@web161202.mail.bf1.yahoo.com> References: <1341285229.23150.YahooMailNeo@web161206.mail.bf1.yahoo.com> <1341794894.85757.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341850965.79910.YahooMailNeo@web161201.mail.bf1.yahoo.com> <1341858703.30272.YahooMailNeo@web161205.mail.bf1.yahoo.com> <1341871390.96318.YahooMailNeo@web161202.mail.bf1.yahoo.com> Message-ID: >>Can you share the input video? > > Unfortunately I can't share the video due to restrictions. Is there any other way to troubleshoot this? What goes on in the background for downsampling and conversion to image sequence? Maybe you can just create a simple sin wave example that shows how to reproduce the problem. From jo2jo at validusdata.com Tue Jul 10 00:22:35 2012 From: jo2jo at validusdata.com (Joey Leone) Date: Mon, 9 Jul 2012 17:22:35 -0500 Subject: [FFmpeg-user] VF Crop and overlay not working together but working seperate Message-ID: Hi, Im using FFmpeg 0.8.5 on linux and trying to Crop and Add a watermark (overlay) to videos, however I can only seem to get one or the other working, not both. It also seems to matter where I put the -vf overlay command. (if I put the overlay command before the crop command it will ONLY crop, if I put the overlay command AFTER the crop command, it will NOT crop but will add the overlay) Here is the command: (the original video is 1280x720): with this command it will crop and resize the video but NO watermark/overlay /usr/local/bin/ffmpeg -i "/home/1280x720videoIN.wmv " -vf "movie=/home/watermark.png [logo]; [in][logo] overlay=640-overlay_w-10:320-overlay_h-10 [out]" -vf crop=640:320:0:0 -s 640x360 -acodec libfaac -ab 128k -keyint_min 20 -vcodec libx264 -vpre lossless_fast -crf 23 -y -v 0 -bf 16 -threads 0 "/home/admin/videoOUTwithCROPnoOVERLAY.mp4" With this command it will resize the video and add the watermark/overlay but it will NOT CROP: /usr/local/bin/ffmpeg -i "/home/1280x720videoIN.wmv" -vf crop=640:320:0:0 -vf "movie=/home/watermark.png [logo]; [in][logo] overlay=640-overlay_w-10:320-overlay_h-10 [out]" -s 640x360 -acodec libfaac -ab 128k -keyint_min 20 -vcodec libx264 -vpre lossless_fast -crf 23 -y -v 0 -bf 16 -threads 0 "/home/admin/videoOUTnoCROP.mp4" Any ideas as to why I cant get it to crop and Resize AND do the overlay? Or what command/args should I be using to accomplish this? Thanks a lot! From paziu at yahoo.com Tue Jul 10 00:39:39 2012 From: paziu at yahoo.com (Mike F) Date: Mon, 9 Jul 2012 15:39:39 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> Message-ID: <1341873579.77913.YahooMailNeo@web110510.mail.gq1.yahoo.com> > Mike F yahoo.com> writes: > >> if I try to use ffmpeg, I get no sound: >> >> ?ffmpeg -y? -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 > This is the fourth day I am trying to find what is causing ffmpeg not to be able to capture audio from? Pinnacle - v4l2... mencoder has no issues, but I >>need<< to use ffmpeg along with ffserver Although I could pipe output from mencoder to ffmpeg to ffserver via FIFO or 'bfr', but too much overhead, buffer underruns, etc.... Finally I ran 'v4lctl list' and I found out, that it is.... MUTED by default. mute?????? | bool?? | on????? | on????? | It was not my suspicion, since: 1> alsamixer did not show MUTE, level was good 2> mencoder was able to capture without any problems, every time.... 3> ffmpeg was able to capture audio ONLY if I did not include v4l2 to also get the video..... after running # v4lctl volume mute off ffmpeg started capturing audio and video... Is there any way, to send a v4l2 cmd as a ffmpeg argument - similar to what mencoder does with forceaudio and? immediatemode=0 or similar to 'v4lctl volume mute off' ? Thank you, Mike ps: I cannot believe that this took me 4 days... sounds like a bad joke From rogerdpack2 at gmail.com Tue Jul 10 00:58:36 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 9 Jul 2012 16:58:36 -0600 Subject: [FFmpeg-user] VF Crop and overlay not working together but working seperate In-Reply-To: References: Message-ID: > Im using FFmpeg 0.8.5 on linux and trying to Crop and Add a watermark (overlay) to videos, Could you try it with a newer version, and also give complete uncut command line and console output? Thanks. -r From jo2jo at validusdata.com Tue Jul 10 01:09:13 2012 From: jo2jo at validusdata.com (Joey Leone) Date: Mon, 9 Jul 2012 18:09:13 -0500 Subject: [FFmpeg-user] VF Crop and overlay not working together but working seperate In-Reply-To: References: Message-ID: It appears I found the answer, the issue was one needs to separate multiple video filters with a comma, not by reusing -vf. Note I also had to move "[out]" to the end of the double video filter command and not just at the end of the overlay command. Here was the answer that helped: http://stackoverflow.com/questions/6195872/applying-multiple-filters-at-once-with-ffmpeg and here is the command working properly for others to use/learn from (its resizing with -s and doing two video filters, overlay AND crop): /usr/local/bin/ffmpeg -i "/home/1280x720videoIN.wmv" -vf "movie=/home/watermark.png [logo]; [in][logo] overlay=640-overlay_w-10:320-overlay_h-10, crop=640:320:0:0 [out]" -s 640x360 -acodec libfaac -ab 128k -keyint_min 20 -vcodec libx264 -vpre lossless_slower -crf 23 -y -v 0 -bf 16 -threads 0 "/home/videoOUT.mp4" Thanks! Ffmpeg is SO powerful! -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Roger Pack Sent: Monday, July 09, 2012 5:59 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] VF Crop and overlay not working together but working seperate > Im using FFmpeg 0.8.5 on linux and trying to Crop and Add a watermark (overlay) to videos, Could you try it with a newer version, and also give complete uncut command line and console output? Thanks. -r _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From daverice at mac.com Tue Jul 10 01:39:07 2012 From: daverice at mac.com (David Rice) Date: Mon, 09 Jul 2012 19:39:07 -0400 Subject: [FFmpeg-user] Excessive reporting with -report option in latest FFMPEG builds In-Reply-To: References: <4FF562C0.1040206@traduflex.dk> <20120705153338.GA22076@phare.normalesup.org> Message-ID: On Jul 7, 2012, at 7:43 AM, Carl Eugen Hoyos wrote: > Nicolas George normalesup.org> writes: > >> Can you reproduce the problem with a small file and attach >> it to a new Trac ticket, along with the corresponding >> -report file? > > Ticket #1344 already exists, unfortunately it still needs > output (without -report, excessive logging with -report > would not be a bug imo) and a sample. The documentation (https://ffmpeg.org/ffmpeg.html#Generic-options) says that the -report option implies "-loglevel verbose" but the -report option (at least with recent builds) seems to output the equivalent of -loglevel debug. The discrepancy between the documentation and the application could be considered the bug. For instance the report from: ffmpeg -report -f lavfi -t 1 -i testsrc -vf blackdetect -f null - is much more verbose than, ffmpeg -f lavfi -t 1 -i testsrc -vf blackdetect -f null -loglevel verbose - I can add these outputs to ticket #1344 as comments or start a new ticket. Dave Rice From dflett at bigpond.net.au Tue Jul 10 04:04:31 2012 From: dflett at bigpond.net.au (Dan Flett) Date: Tue, 10 Jul 2012 12:04:31 +1000 Subject: [FFmpeg-user] Audio Channel mapping: 8 channel to 2 channel stream, dropping input channels 3-8 In-Reply-To: <4FFA80E7.9050500@yahoo.com> References: <7ABBA1D3726F411AB5881506DAB1039D@gtv.local> <4FFA80E7.9050500@yahoo.com> Message-ID: <32225C4077E8463AACBDB3D1E086246B@gtv.local> > > -map_channel does what I want if I know which numerical > stream is the > > audio > > - e.g. -map_channel 0.0.0 -map_channel 0.0.1. However in my video > > files, the first audio stream is sometimes 0.0, sometimes > it is 0.1. > > I want to script this so that it always takes the first > audio stream. > > I can't seem to use the "a" stream identifier in > -map_channel to unambiguously denote audio. > > > > Does anyone have a suggestion here? I want to avoid a > 2-step process - i.e. > > piping or using a temp file. > > > > Would you regard using ffprobe to list the streams first, and > then using it to fill in the required numbers for the > transcode as 2 passes? Hi Tim Yes I would consider it to be 2 passes as I'd have to write some more code in my script to parse the output of ffprobe (not too hard I know) and include the ffprobe binary in the "package". Something like the pan filter is tantalising close to what I want it to do (in fact, it's supposed to do what I want it to do). When I get a moment, I will try this again with the pan filter and post the results. There is the real possibility that I'm currently doing it wrong. :) As a general observation, I think the "map_channel" option should support the "a" stream identifier - to make it more useful and to make it more consistent with the other newer options that support "a" or "v" or similar. Dan From akshar_tank at yahoo.com Tue Jul 10 06:33:35 2012 From: akshar_tank at yahoo.com (tank pranav) Date: Mon, 9 Jul 2012 21:33:35 -0700 (PDT) Subject: [FFmpeg-user] trim video in C code In-Reply-To: References: Message-ID: <1341894815.39250.YahooMailNeo@web122502.mail.ne1.yahoo.com> it can be done using mplayer. ?google it.? its called splicing. but only offline splicing can be done with mplayer. Pranav. ________________________________ From: Fabio Tiriticco To: ffmpeg-user at ffmpeg.org Sent: Monday, July 9, 2012 7:53 PM Subject: [FFmpeg-user] trim video in C code Hi all, I am asking this question as I could find no useful information in hours of searching. I would like to use ffmpeg in its C library code form to write a program that can trim a video, extract a portion, possibly mix it with other portions and re-encode the final result. I really can't find any documentation, maybe it's my fault. But any hint on this would be immensely appreciated. Cheers Fabio -- http://famsterdamlife.com _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From dhaval.shah at fugital.com Tue Jul 10 07:43:37 2012 From: dhaval.shah at fugital.com (Dhaval Shah) Date: Tue, 10 Jul 2012 11:13:37 +0530 Subject: [FFmpeg-user] Decode and encode mpeg2 video In-Reply-To: References: <4ff68814.6851b40a.4249.fffff8f7SMTPIN_ADDED@mx.google.com> Message-ID: <000301cd5e5e$f7f52f70$e7df8e50$@shah@fugital.com> Hi, Thanks for the suggestion. I have set all the parameters as per sample tutorial which successfully decode the mpeg 2 video. Still that parameters could not help me in my application. Add on I had also tried to open decoder as per sample application by giving input file but result was same. My video resolution is 720x576. Is there any problem with this resolution. Because my code is working with 704x576 resolution video. So I have doubt on resolution. -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Roger Pack Sent: Saturday, July 07, 2012 1:57 AM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] Decode and encode mpeg2 video > I am trying to decode mpeg2 video in yuv and then encode it in mpeg2 video. > I have successfully done it with h264 video by using x264 library of ffmpeg. > But I did not get proper yuv data while decoding mpeg2 video. > Let me know if anyone had done it with mpeg2 video. > May be I am using wrong library. > pls suggest me the proper AVCodecContext setting to decode and encode > mpeg2video. Yours is, I suppose, more of a question for the libav-user group, but...if I were you I would try and get it to "work" with ffmpeg on the command line, then check/see which values it passes through for the pixel format, etc. GL! -r _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Tue Jul 10 07:45:36 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 05:45:36 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> <1341873579.77913.YahooMailNeo@web110510.mail.gq1.yahoo.com> Message-ID: Mike F yahoo.com> writes: > after running > # v4lctl volume mute off > > ffmpeg started capturing audio and video... > > Is there any way, to send a v4l2 cmd as a ffmpeg argument Assuming we agree that mute=off can always be forced, look at device_open() in libavdevice/v4l2.c (Don't forget to send a patch to ffmpeg-devel if you succeed.) Carl Eugen From phpdev at ehrhardt.nl Tue Jul 10 08:14:19 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Tue, 10 Jul 2012 08:14:19 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFACF5D.6040409@googlemail.com> Message-ID: Roger Pack in gmane.comp.video.ffmpeg.user (Mon, 9 Jul 2012 12:14:46 -0600): >> (in fact the latest...). I am seeing cpu spiking to 100% randomly on the >> first pass of an x264 encode. When this happens the counters freeze and >> ... >> libs (see below). The ONLY thing that is different is a newer version of >> the ffmpeg tree (git-7f83db3 vs git-f514695) > >Might be interesting to do a git-bisect on it and see which commit is >the culprit. Looks like there were a number of changes... >https://github.com/FFmpeg/FFmpeg/compare/f514695...7f83db3 There is a problem with this approach. You will have to compile FFmpeg yourself to know if the spikes still occur. I had also seen those spikes https://sessiondatabase.net/jwplayer/double5.gif but could not reproduce them with my own build of the same core sources (+x264 +libmp3lame +libfaac). The only real way to do a bisect is to make an exact copy of Zeranoe's build environment. I do not know if he is cross compiling on *nix or using MingW onder Windows. But he is using GCC 4.7.1 right now, which is not available as Windows binary yet as far as I know. Jan From pavanvkbgm at gmail.com Tue Jul 10 08:15:45 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Tue, 10 Jul 2012 11:45:45 +0530 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files Message-ID: Hi, I was wondering if there's an optimal way of using FFMPEG which will produce both thumbnails and metadata in one go (single invocation of FFMPEG). Basically I wanted to know if thumbnail generation and metadata generation are two independent processes or do they share any steps in common. Currently I'm using FFMPEG (stand alone) for thumbnails and have cross compiled metadata (present in example directory of FFMPEG) source code and used it to generate meta data such as duration, height, width, creation date/time etc. I wanted to check if I could optimize it in some way.. Many Thanks! From pavanvkbgm at gmail.com Tue Jul 10 08:22:38 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Tue, 10 Jul 2012 11:52:38 +0530 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: References: Message-ID: Sorry forgot to add: I'm using FFMPEG on MIPS. Since the thumbnails take some time to generate I was trying to see if I can optimize generating metadata From cehoyos at ag.or.at Tue Jul 10 08:52:56 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 06:52:56 +0000 (UTC) Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files References: Message-ID: Pavan Kulkarni gmail.com> writes: > Currently I'm using FFMPEG (stand alone) for thumbnails and have cross > compiled metadata (present in example directory of FFMPEG) source code and > used it to generate meta data such as duration, height, width, creation > date/time etc. How do you capture metadata currently? Carl Eugen From pavanvkbgm at gmail.com Tue Jul 10 09:03:33 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Tue, 10 Jul 2012 12:33:33 +0530 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: References: Message-ID: > > I'm currently using the source code present under /doc/examples/metadata.c > --> Cross compiled it for MIPS and created an executable. I then simply > supply the input file name as parameter and invoke this program to generate > the metadata.This metadata is then parsed to get various values such as > created date, duration, etc > - Pavan > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From sheen.andy at googlemail.com Tue Jul 10 09:27:44 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 10 Jul 2012 08:27:44 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> Message-ID: <4FFBD970.6090900@googlemail.com> Jan Ehrhardt wrote on Tue 10 Jul at 7:14 UK time > Roger Pack in gmane.comp.video.ffmpeg.user (Mon, 9 Jul 2012 12:14:46 > -0600): >>> (in fact the latest...). I am seeing cpu spiking to 100% randomly on the >>> first pass of an x264 encode. When this happens the counters freeze and >>> ... >>> libs (see below). The ONLY thing that is different is a newer version of >>> the ffmpeg tree (git-7f83db3 vs git-f514695) >> >> Might be interesting to do a git-bisect on it and see which commit is >> the culprit. Looks like there were a number of changes... >> https://github.com/FFmpeg/FFmpeg/compare/f514695...7f83db3 > > There is a problem with this approach. You will have to compile FFmpeg > yourself to know if the spikes still occur. Yes - not ideal. I'm just setting up an environment now.... I think I have a mingw crosscompile setup now (as of 1:30 am this morning at least). Onto getting the libraries cross compiled. > I had also seen those spikes > https://sessiondatabase.net/jwplayer/double5.gif but could not reproduce > them with my own build of the same core sources (+x264 +libmp3lame > +libfaac). The only real way to do a bisect is to make an exact copy of > Zeranoe's build environment. I do not know if he is cross compiling on > *nix or using MingW onder Windows. But he is using GCC 4.7.1 right now, > which is not available as Windows binary yet as far as I know. > He's cross compiling on Ubuntu (I think). Which is OK as I have a few Ubuntu machines here. It's just a pain to get everything setup. Last time I tried it (a couple of years ago) I had problems with the threading package not working correctly. We shall see, but if others have not really noticed the same spikes (I see it on first pass x264 video encodes only) and they have been there since January, someone has to do the debug.... > Jan > Andy From me at mikehogan.net Tue Jul 10 11:05:14 2012 From: me at mikehogan.net (Mike Hogan) Date: Tue, 10 Jul 2012 10:05:14 +0100 Subject: [FFmpeg-user] stitching images together at IRREGULAR intervals Message-ID: <43DA9EE2-C740-46C8-B9A9-13506F0999E3@mikehogan.net> Hello all, The FAQ shows me how to stitch images together to create a vid using this line: ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg What I'm trying to do is make a vid from images that are stitched together at irregular intervals: Between 0 and 1 seconds, show image001.jpg Between 1 and 4.5 seconds, show image002.jpg Between 4.5 and 6, show image003.jpg etc Any suggestions? Thanks very much, Mike. From cehoyos at ag.or.at Tue Jul 10 11:19:10 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 09:19:10 +0000 (UTC) Subject: [FFmpeg-user] stitching images together at IRREGULAR intervals References: <43DA9EE2-C740-46C8-B9A9-13506F0999E3@mikehogan.net> Message-ID: Mike Hogan mikehogan.net> writes: > Between 0 and 1 seconds, show image001.jpg > Between 1 and 4.5 seconds, show image002.jpg > Between 4.5 and 6, show image003.jpg > > etc > > Any suggestions? image001.jpg -> in01.jpg, in02.jpg image002.jpg -> in03.jpg - in09.jpg image003.jpg -> in10.jpg - in12.jpg $ ffmpeg -i in%2d.jpg out.mpg Carl Eugen From me at mikehogan.net Tue Jul 10 11:38:43 2012 From: me at mikehogan.net (Mike Hogan) Date: Tue, 10 Jul 2012 10:38:43 +0100 Subject: [FFmpeg-user] stitching images together at IRREGULAR intervals In-Reply-To: References: <43DA9EE2-C740-46C8-B9A9-13506F0999E3@mikehogan.net> Message-ID: <4C704A65-1FBC-4CAA-9930-48312282D81D@mikehogan.net> So simple!!! Thank you so much Carl. On 10 Jul 2012, at 10:19, Carl Eugen Hoyos wrote: > Mike Hogan mikehogan.net> writes: > >> Between 0 and 1 seconds, show image001.jpg >> Between 1 and 4.5 seconds, show image002.jpg >> Between 4.5 and 6, show image003.jpg >> >> etc >> >> Any suggestions? > > image001.jpg -> in01.jpg, in02.jpg > image002.jpg -> in03.jpg - in09.jpg > image003.jpg -> in10.jpg - in12.jpg > $ ffmpeg -i in%2d.jpg out.mpg > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From akshar_tank at yahoo.com Tue Jul 10 12:34:40 2012 From: akshar_tank at yahoo.com (tank pranav) Date: Tue, 10 Jul 2012 03:34:40 -0700 (PDT) Subject: [FFmpeg-user] Error encountered during conversion of ts file to flv. Message-ID: <1341916480.31053.YahooMailNeo@web122501.mail.ne1.yahoo.com> Hi,? I have applied following command to convert TS file in to FLV format.? ?ffmpeg ? -i ? 12_25-22.ts ? ?-ar ? ?44100 ? -f ? flv ? 12_25-22.flv But I got following error. Error while decoding stream #0.1 Floating point exception Can any one pls tell me what to do for the same ! Pranav. From pavanvkbgm at gmail.com Tue Jul 10 13:16:36 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Tue, 10 Jul 2012 16:46:36 +0530 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: References: Message-ID: I found a way to get both thumbnail as well as metadata from a given input video file using a single ffmpeg command. using -f ffmetadata metadata.txt option. But this option just gives me only specific meta data Example: ;FFMETADATA1 major_brand=isom minor_version=512 compatible_brands=isomiso2mp41 creation_time=1970-01-01 00:00:00 encoder=Lavf53.4.0 Is there a way to specify what metadata fields I need. For instance I need the duration of the video, width and height etc. Of course I can get them from AVCodecContext and AVStream structures. But I will have to use the library libavformat for that. I was wondering if I get the required metadata of the input video file directly via command line options of ffmpeg. From cehoyos at ag.or.at Tue Jul 10 13:26:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 11:26:12 +0000 (UTC) Subject: [FFmpeg-user] Error encountered during conversion of ts file to flv. References: <1341916480.31053.YahooMailNeo@web122501.mail.ne1.yahoo.com> Message-ID: tank pranav yahoo.com> writes: > I have applied following command to convert TS file in to FLV format.? > > ?ffmpeg ? -i ? 12_25-22.ts ? ?-ar ? ?44100 ? -f ? flv ? 12_25-22.flv Complete, uncut console output missing. Carl Eugen From nichot20 at yahoo.com Tue Jul 10 13:34:27 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 10 Jul 2012 12:34:27 +0100 Subject: [FFmpeg-user] Another odd colourspace issue Message-ID: <4FFC1343.9030602@yahoo.com> I have a programme that generates packed yuv test signals. Using the programme I generate 100/0/100/0 colour bars and greyscale, which I then convert to mov's using a command of the form:- ffmpeg -pix_fmt uyvy422 -s $size -i $in_file -c:v copy -vtag 2uvy $out_file I have created both SD (720x576) and HD (1920x1080) frame size files using both 601 and 709 coefficients, as described at http://avisynth.org/mediawiki/ColorBars_theory and verified by my own calculations from first principles. When I inspect the files on both FCP and Kdenlive waveform monitors there is am marked difference in levels between the HD and SD versions using the same colourspace. The 709HD and 601SD look correct, but the 709SD and 601HD look wrong. Based upon the errors in the green channel it is clear that different coefficients are being used to decode than were used to generate the original material, and these coefficients seem to be being auto selected on the basis of the frame size. The question is why? and what is doing the selection? Is it both Kdenlive and FCP deciding on the basis of framesize, or is ffmpeg adding some kind of colourspace marker to the file when it rewraps to mov? -- Tim From akshar_tank at yahoo.com Tue Jul 10 14:21:29 2012 From: akshar_tank at yahoo.com (tank pranav) Date: Tue, 10 Jul 2012 05:21:29 -0700 (PDT) Subject: [FFmpeg-user] Error encountered during conversion of ts file to flv. In-Reply-To: References: <1341916480.31053.YahooMailNeo@web122501.mail.ne1.yahoo.com> Message-ID: <1341922889.78999.YahooMailNeo@web122505.mail.ne1.yahoo.com> FFmpeg version 0.6.6-4:0.6.6-0ubuntu0.11.04.1, Copyright (c) 2000-2010 the Libav developers ? built on Jun 12 2012 16:28:21 with gcc 4.5.2 ? configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static ? WARNING: library configuration mismatch ? libavutil ? configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libavcodec ?configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libavformat configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libavdevice configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libavfilter configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libswscale ?configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libpostproc configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay ? libavutil ? ? 50.15. 1 / 50.15. 1 ? libavcodec ? ?52.72. 2 / 52.72. 2 ? libavformat ? 52.64. 2 / 52.64. 2 ? libavdevice ? 52. 2. 0 / 52. 2. 0 ? libavfilter ? ?1.19. 0 / ?1.19. 0 ? libswscale ? ? 0.11. 0 / ?0.11. 0 ? libpostproc ? 51. 2. 0 / 51. 2. 0 [mp3 @ 0x97c6670]Header missing [mpegts @ 0x97bf420]max_analyze_duration reached [NULL @ 0x97c6dd0]start time is not set in av_estimate_timings_from_pts Input #0, mpegts, from '12_25-22.ts': ? Duration: 00:00:58.32, start: 73773.037189, bitrate: 3244 kb/s ? Program 11? ? Program 12? ? ? Stream #0.0[0x1f5]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc ? ? Stream #0.1[0x1f6](eng): Audio: mp2, 48000 Hz, 2 channels, s16, 96 kb/s ? ? Stream #0.2[0x1f7](dut): Audio: mp3, 0 channels, s16 ? Program 13? File '12_25-22.flv' already exists. Overwrite ? [y/N] Output #0, flv, to '12_25-22.flv': ? Metadata: ? ? encoder ? ? ? ? : Lavf52.64.2 ? ? Stream #0.0: Video: flv, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 25 tbc ? ? Stream #0.1(eng): Audio: adpcm_swf, 44100 Hz, 0 channels, s16, 64 kb/s Stream mapping: ? Stream #0.0 -> #0.0 ? Stream #0.1 -> #0.1 Press [q] to stop encoding [mp2 @ 0x97c6670]Header missing Error while decoding stream #0.1 ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Tuesday, July 10, 2012 4:56 PM Subject: Re: [FFmpeg-user] Error encountered during conversion of ts file to flv. tank pranav yahoo.com> writes: > I have applied following command to convert TS file in to FLV format.? > > ?ffmpeg ? -i ? 12_25-22.ts ? ?-ar ? ?44100 ? -f ? flv ? 12_25-22.flv Complete, uncut console output missing. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From llarevo at gmx.net Tue Jul 10 14:45:46 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Tue, 10 Jul 2012 14:45:46 +0200 Subject: [FFmpeg-user] video4linux2: Resource temporarily unavailable Message-ID: <1341924346.5387.42.camel@tbastian-desktop.localdomain> Hi, I try to change my standard encoding tool from mencoder to ffmpeg. Now I've got a problem with analog capturing. When trying to capture with ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors: libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.) although I set the channel prior to the capturing via v4lctl setchannel In http://pastebin.com/V40WQXhY you see an attempt with ffmpeg (after which a zero-byte outfile is written), in http://pastebin.com/A7z81SNe an attempt with ffplay. When I use ffmpeg -i /dev/video0 -f v4l2 out.mpg (-i and -f in the opposite order) I get /dev/video0: Invalid data found when processing input as error (cf. http://pastebin.com/dVqN9CPW ). I belong to the group video on my system, so the access to crw-rw----+ 1 root video 81, 0 10. Jul 14:13 /dev/video0 should be OK. mplayer tv:// and xawtv works cat /dev/video0 > out.raw writes lots of data. I'm using a Terratec Cinergy 400 on Fedora F17. The v4l2 device info is pasted here: http://pastebin.com/ukv3wdpp Since I'm new to ffmpeg, some help is very appreciated. Thanks in advance -- Felix From cehoyos at ag.or.at Tue Jul 10 14:56:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 12:56:24 +0000 (UTC) Subject: [FFmpeg-user] Error encountered during conversion of ts file to flv. References: <1341916480.31053.YahooMailNeo@web122501.mail.ne1.yahoo.com> <1341922889.78999.YahooMailNeo@web122505.mail.ne1.yahoo.com> Message-ID: tank pranav yahoo.com> writes: > FFmpeg version 0.6.6-4:0.6.6-0ubuntu0.11.04.1 This is ancient, broken and not supported on this mailing list. Please see http://ffmpeg.org/download.html for supported versions, current git head is always preferred, but there is an Ubuntu repository that is known to work well. Carl Eugen From mark at mdsh.com Tue Jul 10 15:01:15 2012 From: mark at mdsh.com (Mark Himsley) Date: Tue, 10 Jul 2012 14:01:15 +0100 Subject: [FFmpeg-user] Another odd colourspace issue In-Reply-To: <4FFC1343.9030602@yahoo.com> References: <4FFC1343.9030602@yahoo.com> Message-ID: <4FFC279B.5090608@mdsh.com> On 10/07/12 12:34, Tim Nicholson wrote: > I have a programme that generates packed yuv test signals. > > Using the programme I generate 100/0/100/0 colour bars and greyscale, > which I then convert to mov's using a command of the form:- > > ffmpeg -pix_fmt uyvy422 -s $size -i $in_file -c:v copy -vtag 2uvy $out_file > > I have created both SD (720x576) and HD (1920x1080) frame size files > using both 601 and 709 coefficients, as described at > http://avisynth.org/mediawiki/ColorBars_theory and verified by my own > calculations from first principles. > > When I inspect the files on both FCP and Kdenlive waveform monitors > there is am marked difference in levels between the HD and SD versions > using the same colourspace. The 709HD and 601SD look correct, but the > 709SD and 601HD look wrong. Based upon the errors in the green channel > it is clear that different coefficients are being used to decode than > were used to generate the original material, and these coefficients seem > to be being auto selected on the basis of the frame size. > > The question is why? and what is doing the selection? > Is it both Kdenlive and FCP deciding on the basis of framesize, or is > ffmpeg adding some kind of colourspace marker to the file when it > rewraps to mov? Hey Tim, I believe that the colour space is generally decided solely on the frame size. I believe from my experience that is the way FCP does it. I'd love to be proved wrong - because I think that is cack. -- Mark From cehoyos at ag.or.at Tue Jul 10 14:57:51 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 12:57:51 +0000 (UTC) Subject: [FFmpeg-user] video4linux2: Resource temporarily unavailable References: <1341924346.5387.42.camel@tbastian-desktop.localdomain> Message-ID: llarevo gmx.net gmx.net> writes: > I try to change my standard encoding tool from mencoder to ffmpeg. Now > I've got a problem with analog capturing. When trying to capture with > ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors: > > libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.) Please post complete, uncut console output here on the mailing list, external resources may disappear. Carl Eugen From kalleernst at googlemail.com Tue Jul 10 15:22:32 2012 From: kalleernst at googlemail.com (=?ISO-8859-15?Q?Marco_Baumg=E4rtner?=) Date: Tue, 10 Jul 2012 15:22:32 +0200 Subject: [FFmpeg-user] Time lapse Message-ID: <4FFC2C98.4000105@googlemail.com> Hello. I want to compress a video. By that I mean shortening a 5 minute video to say 2 minutes while keeping the framerate. Video1: 5minutes, 30fps,audio Video2: 2minutes, 30fps,no audio (or a given mp3-soundtrack) What would be the command in ffmpeg? Best Marco From llarevo at gmx.net Tue Jul 10 15:27:41 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Tue, 10 Jul 2012 15:27:41 +0200 Subject: [FFmpeg-user] video4linux2: Resource temporarily unavailable In-Reply-To: References: <1341924346.5387.42.camel@tbastian-desktop.localdomain> Message-ID: <1341926861.5387.56.camel@tbastian-desktop.localdomain> > > I try to change my standard encoding tool from mencoder to ffmpeg. Now > > I've got a problem with analog capturing. When trying to capture with > > ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors: > > > > libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.) > > Please post complete, uncut console output here on the mailing > list, external resources may disappear. Sorry, I just wanted to keep the mail better readable. Here's the complete information: Hi, I try to change my standard encoding tool from mencoder to ffmpeg. Now I've got a problem with analog capturing. When trying to capture with ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors: libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.) although I set the channel prior to the capturing via v4lctl setchannel Here you see an attempt with ffmpeg (after which a zero-byte outfile is written): ffmpeg -f v4l2 -i /dev/video0 out.mpg ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 13 2012 09:51:06 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 libv4l2: error dequeuing buf: Resource temporarily unavailable libv4l2: error dequeuing buf: Resource temporarily unavailable libv4l2: error dequeuing buf: Resource temporarily unavailable libv4l2: error dequeuing buf: Resource temporarily unavailable libv4l2: error dequeuing buf: Resource temporarily unavailable --------5000 TIMES THE LINE ABOVE-------- libv4l2: error dequeuing buf: Resource temporarily unavailable libv4l2: erro^C <---------I stopped that output-------- Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1341859570.870366, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576, -2147483 kb/s, 1.83 tbr, 1000k tbn, 1000k tbc File 'out.mpeg' already exists. Overwrite ? [y/N] y w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [mpeg1video @ 0x235db00] MPEG1/2 does not support 5/1 fps Output #0, mpeg, to 'out.mpeg': Stream #0:0: Video: mpeg1video, yuv420p, 720x576, q=2-31, 200 kb/s, 90k tbn, 5 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg1video) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Received signal 2: terminating. Here is an attempt with ffplay: ffplay -v debug -f v4l2 -i /dev/video0 ffplay version 0.10.4 Copyright (c) 2003-2012 the FFmpeg developers built on Jun 13 2012 09:51:06 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 [video4linux2,v4l2 @ 0x7ff1f80008c0] [7]Capabilities: 5010015 [video4linux2,v4l2 @ 0x7ff1f80008c0] Querying the device for the current frame size [video4linux2,v4l2 @ 0x7ff1f80008c0] Setting frame size to 720x576 [video4linux2,v4l2 @ 0x7ff1f80008c0] The V4L2 driver using the interlaced modeThe V4L2 driver set input_id: 0, input: Television [rawvideo @ 0x7ff1f8000e40] err{or,}_recognition separate: 1; 1 [rawvideo @ 0x7ff1f8000e40] err{or,}_recognition combined: 1; 10001 When I use ffmpeg -i /dev/video0 -f v4l2 out.mpg (-i and -f in the opposite order) I get /dev/video0: Invalid data found when processing input as error: ffmpeg -i /dev/video0 -f v4l2 out.mpg ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 13 2012 09:51:06 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 /dev/video0: Invalid data found when processing input I belong to the group video on my system, so the access to crw-rw----+ 1 root video 81, 0 10. Jul 14:13 /dev/video0 should be OK. mplayer tv:// and xawtv works cat /dev/video0 > out.raw writes lots of data. I'm using a Terratec Cinergy 400 on Fedora F17. The v4l2 device info is here: ### v4l2 device info [/dev/video0] ### general info VIDIOC_QUERYCAP driver : "saa7134" card : "Terratec Cinergy 400 TV" bus_info : "PCI:0000:04:01.0" version : 3.4.4 capabilities : 0x5010015 [VIDEO_CAPTURE,VIDEO_OVERLAY,VBI_CAPTURE,TUNER,READWRITE,STREAMING] standards VIDIOC_ENUMSTD(0) index : 0 id : 0xb000 [NTSC_M,NTSC_M_JP,?] name : "NTSC" frameperiod.numerator : 1001 frameperiod.denominator : 30000 framelines : 525 VIDIOC_ENUMSTD(1) index : 1 id : 0x1000 [NTSC_M] name : "NTSC-M" frameperiod.numerator : 1001 frameperiod.denominator : 30000 framelines : 525 VIDIOC_ENUMSTD(2) index : 2 id : 0x2000 [NTSC_M_JP] name : "NTSC-M-JP" frameperiod.numerator : 1001 frameperiod.denominator : 30000 framelines : 525 VIDIOC_ENUMSTD(3) index : 3 id : 0x8000 [?] name : "NTSC-M-KR" frameperiod.numerator : 1001 frameperiod.denominator : 30000 framelines : 525 VIDIOC_ENUMSTD(4) index : 4 id : 0xff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K] name : "PAL" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(5) index : 5 id : 0x7 [PAL_B,PAL_B1,PAL_G] name : "PAL-BG" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(6) index : 6 id : 0x8 [PAL_H] name : "PAL-H" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(7) index : 7 id : 0x10 [PAL_I] name : "PAL-I" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(8) index : 8 id : 0xe0 [PAL_D,PAL_D1,PAL_K] name : "PAL-DK" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(9) index : 9 id : 0x100 [PAL_M] name : "PAL-M" frameperiod.numerator : 1001 frameperiod.denominator : 30000 framelines : 525 VIDIOC_ENUMSTD(10) index : 10 id : 0x200 [PAL_N] name : "PAL-N" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(11) index : 11 id : 0x400 [PAL_Nc] name : "PAL-Nc" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(12) index : 12 id : 0x800 [PAL_60] name : "PAL-60" frameperiod.numerator : 1001 frameperiod.denominator : 30000 framelines : 525 VIDIOC_ENUMSTD(13) index : 13 id : 0xff0000 [SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB] name : "SECAM" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(14) index : 14 id : 0x10000 [SECAM_B] name : "SECAM-B" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(15) index : 15 id : 0x40000 [SECAM_G] name : "SECAM-G" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(16) index : 16 id : 0x80000 [SECAM_H] name : "SECAM-H" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(17) index : 17 id : 0x320000 [SECAM_D,SECAM_K,SECAM_K1] name : "SECAM-DK" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(18) index : 18 id : 0x400000 [SECAM_L] name : "SECAM-L" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 VIDIOC_ENUMSTD(19) index : 19 id : 0x800000 [?ATSC_8_VSB] name : "SECAM-Lc" frameperiod.numerator : 1 frameperiod.denominator : 25 framelines : 625 inputs VIDIOC_ENUMINPUT(0) index : 0 name : "Television" type : TUNER audioset : 1 tuner : 0 std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB] status : 0x0 [] VIDIOC_ENUMINPUT(1) index : 1 name : "Composite1" type : CAMERA audioset : 1 tuner : 0 std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB] status : 0x0 [] VIDIOC_ENUMINPUT(2) index : 2 name : "S-Video" type : CAMERA audioset : 1 tuner : 0 std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB] status : 0x0 [] VIDIOC_ENUMINPUT(3) index : 3 name : "Composite2" type : CAMERA audioset : 1 tuner : 0 std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB] status : 0x0 [] tuners VIDIOC_G_TUNER(0) index : 0 name : "Television" type : ANALOG_TV capability : 0x72 [NORM,STEREO,LANG2,LANG1] rangelow : 0 rangehigh : 4294967295 rxsubchans : 0x3 [MONO,STEREO] audmode : STEREO signal : 65535 afc : 0 video capture VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE) index : 0 type : VIDEO_CAPTURE flags : 0 description : "8 bpp gray" pixelformat : 0x59455247 [GREY] VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE) index : 1 type : VIDEO_CAPTURE flags : 0 description : "15 bpp RGB, le" pixelformat : 0x4f424752 [RGBO] VIDIOC_ENUM_FMT(2,VIDEO_CAPTURE) index : 2 type : VIDEO_CAPTURE flags : 0 description : "15 bpp RGB, be" pixelformat : 0x51424752 [RGBQ] VIDIOC_ENUM_FMT(3,VIDEO_CAPTURE) index : 3 type : VIDEO_CAPTURE flags : 0 description : "16 bpp RGB, le" pixelformat : 0x50424752 [RGBP] VIDIOC_ENUM_FMT(4,VIDEO_CAPTURE) index : 4 type : VIDEO_CAPTURE flags : 0 description : "16 bpp RGB, be" pixelformat : 0x52424752 [RGBR] VIDIOC_ENUM_FMT(5,VIDEO_CAPTURE) index : 5 type : VIDEO_CAPTURE flags : 0 description : "24 bpp RGB, le" pixelformat : 0x33524742 [BGR3] VIDIOC_ENUM_FMT(6,VIDEO_CAPTURE) index : 6 type : VIDEO_CAPTURE flags : 0 description : "24 bpp RGB, be" pixelformat : 0x33424752 [RGB3] VIDIOC_ENUM_FMT(7,VIDEO_CAPTURE) index : 7 type : VIDEO_CAPTURE flags : 0 description : "32 bpp RGB, le" pixelformat : 0x34524742 [BGR4] VIDIOC_ENUM_FMT(8,VIDEO_CAPTURE) index : 8 type : VIDEO_CAPTURE flags : 0 description : "32 bpp RGB, be" pixelformat : 0x34424752 [RGB4] VIDIOC_ENUM_FMT(9,VIDEO_CAPTURE) index : 9 type : VIDEO_CAPTURE flags : 0 description : "4:2:2 packed, YUYV" pixelformat : 0x56595559 [YUYV] VIDIOC_ENUM_FMT(10,VIDEO_CAPTURE) index : 10 type : VIDEO_CAPTURE flags : 0 description : "4:2:2 packed, UYVY" pixelformat : 0x59565955 [UYVY] VIDIOC_ENUM_FMT(11,VIDEO_CAPTURE) index : 11 type : VIDEO_CAPTURE flags : 0 description : "4:2:2 planar, Y-Cb-Cr" pixelformat : 0x50323234 [422P] VIDIOC_ENUM_FMT(12,VIDEO_CAPTURE) index : 12 type : VIDEO_CAPTURE flags : 0 description : "4:2:0 planar, Y-Cb-Cr" pixelformat : 0x32315559 [YU12] VIDIOC_ENUM_FMT(13,VIDEO_CAPTURE) index : 13 type : VIDEO_CAPTURE flags : 0 description : "4:2:0 planar, Y-Cb-Cr" pixelformat : 0x32315659 [YV12] VIDIOC_G_FMT(VIDEO_CAPTURE) type : VIDEO_CAPTURE fmt.pix.width : 720 fmt.pix.height : 576 fmt.pix.pixelformat : 0x33524742 [BGR3] fmt.pix.field : INTERLACED fmt.pix.bytesperline : 2160 fmt.pix.sizeimage : 1244160 fmt.pix.colorspace : unknown fmt.pix.priv : 0 video overlay VIDIOC_ENUM_FMT(0,VIDEO_OVERLAY) index : 0 type : VIDEO_OVERLAY flags : 0 description : "8 bpp gray" pixelformat : 0x59455247 [GREY] VIDIOC_ENUM_FMT(1,VIDEO_OVERLAY) index : 1 type : VIDEO_OVERLAY flags : 0 description : "15 bpp RGB, le" pixelformat : 0x4f424752 [RGBO] VIDIOC_ENUM_FMT(2,VIDEO_OVERLAY) index : 2 type : VIDEO_OVERLAY flags : 0 description : "15 bpp RGB, be" pixelformat : 0x51424752 [RGBQ] VIDIOC_ENUM_FMT(3,VIDEO_OVERLAY) index : 3 type : VIDEO_OVERLAY flags : 0 description : "16 bpp RGB, le" pixelformat : 0x50424752 [RGBP] VIDIOC_ENUM_FMT(4,VIDEO_OVERLAY) index : 4 type : VIDEO_OVERLAY flags : 0 description : "16 bpp RGB, be" pixelformat : 0x52424752 [RGBR] VIDIOC_ENUM_FMT(5,VIDEO_OVERLAY) index : 5 type : VIDEO_OVERLAY flags : 0 description : "24 bpp RGB, le" pixelformat : 0x33524742 [BGR3] VIDIOC_ENUM_FMT(6,VIDEO_OVERLAY) index : 6 type : VIDEO_OVERLAY flags : 0 description : "24 bpp RGB, be" pixelformat : 0x33424752 [RGB3] VIDIOC_ENUM_FMT(7,VIDEO_OVERLAY) index : 7 type : VIDEO_OVERLAY flags : 0 description : "32 bpp RGB, le" pixelformat : 0x34524742 [BGR4] VIDIOC_ENUM_FMT(8,VIDEO_OVERLAY) index : 8 type : VIDEO_OVERLAY flags : 0 description : "32 bpp RGB, be" pixelformat : 0x34424752 [RGB4] VIDIOC_ENUM_FMT(9,VIDEO_OVERLAY) index : 9 type : VIDEO_OVERLAY flags : 0 description : "4:2:2 packed, YUYV" pixelformat : 0x56595559 [YUYV] VIDIOC_ENUM_FMT(10,VIDEO_OVERLAY) index : 10 type : VIDEO_OVERLAY flags : 0 description : "4:2:2 packed, UYVY" pixelformat : 0x59565955 [UYVY] VIDIOC_G_FMT(VIDEO_OVERLAY) type : VIDEO_OVERLAY fmt.win.w.left : 0 fmt.win.w.top : 0 fmt.win.w.width : 0 fmt.win.w.height : 0 fmt.win.field : ANY fmt.win.chromakey : 0 fmt.win.clips : (nil) fmt.win.clipcount : 0 fmt.win.bitmap : (nil) VIDIOC_G_FBUF capability : 0x4 [LIST_CLIPPING] flags : 0x0 [] base : (nil) fmt.width : 1920 fmt.height : 1200 fmt.pixelformat : 0x34524742 [BGR4] fmt.field : ANY fmt.bytesperline : 7680 fmt.sizeimage : 9216000 fmt.colorspace : unknown fmt.priv : 0 vbi capture VIDIOC_G_FMT(VBI_CAPTURE) type : VBI_CAPTURE fmt.vbi.sampling_rate : 27000000 fmt.vbi.offset : 256 fmt.vbi.samples_per_line: 2048 fmt.vbi.sample_format : 0x59455247 [GREY] fmt.vbi.start[0] : 7 fmt.vbi.start[1] : 319 fmt.vbi.count[0] : 16 fmt.vbi.count[1] : 16 fmt.vbi.flags : 0 controls VIDIOC_QUERYCTRL(BASE+0) id : 9963776 type : INTEGER name : "Brightness" minimum : 0 maximum : 255 step : 1 default_value : 128 flags : 0 VIDIOC_QUERYCTRL(BASE+1) id : 9963777 type : INTEGER name : "Contrast" minimum : 0 maximum : 127 step : 1 default_value : 68 flags : 0 VIDIOC_QUERYCTRL(BASE+2) id : 9963778 type : INTEGER name : "Saturation" minimum : 0 maximum : 127 step : 1 default_value : 64 flags : 0 VIDIOC_QUERYCTRL(BASE+3) id : 9963779 type : INTEGER name : "Hue" minimum : -128 maximum : 127 step : 1 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(BASE+5) id : 9963781 type : INTEGER name : "Volume" minimum : -15 maximum : 15 step : 1 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(BASE+9) id : 9963785 type : BOOLEAN name : "Mute" minimum : 0 maximum : 1 step : 0 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(BASE+20) id : 9963796 type : BOOLEAN name : "Mirror" minimum : 0 maximum : 1 step : 0 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(PRIVATE_BASE+0) id : 134217728 type : BOOLEAN name : "Invert" minimum : 0 maximum : 1 step : 0 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(PRIVATE_BASE+1) id : 134217729 type : INTEGER name : "y offset odd field" minimum : 0 maximum : 128 step : 1 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(PRIVATE_BASE+2) id : 134217730 type : INTEGER name : "y offset even field" minimum : 0 maximum : 128 step : 1 default_value : 0 flags : 0 VIDIOC_QUERYCTRL(PRIVATE_BASE+3) id : 134217731 type : BOOLEAN name : "automute" minimum : 0 maximum : 1 step : 0 default_value : 1 flags : 0 Since I'm new to ffmpeg, some help is very appreciated. Thanks in advance -- Felix From kalleernst at googlemail.com Tue Jul 10 15:30:38 2012 From: kalleernst at googlemail.com (=?ISO-8859-15?Q?Marco_Baumg=E4rtner?=) Date: Tue, 10 Jul 2012 15:30:38 +0200 Subject: [FFmpeg-user] Combine time-lapse elements Message-ID: <4FFC2E7E.8030700@googlemail.com> I have a cut-list of a video in a ffmpeg-compatible format, ie -s 0:00:40 -t 0:00:10 etc. I do not want to cut out what is in between but to time-lapse it. So each time a cut-list-video is reached by the time position meter in ffmpeg, the video should be played back but as soon as it ends up to the next cut-list-video the video should be time-lapsed. I thought about taking the end of each video in the cut-list and the beginning of the next one, time-lapse it, then cut out the video in the cut list, time-lapse again and so on. Then I would connect all parts together. Is there an easier way, maybe some gui that outputs suitable commands for this? Or maybe ffmpeg is no good choice at all for this? Best Marco From erwanguy at gmail.com Tue Jul 10 15:36:00 2012 From: erwanguy at gmail.com (Erwan) Date: Tue, 10 Jul 2012 06:36:00 -0700 (PDT) Subject: [FFmpeg-user] Adding a RTMP live stream overlay In-Reply-To: <1341849813444-4651600.post@n4.nabble.com> References: <1336140409011-4608703.post@n4.nabble.com> <1341849813444-4651600.post@n4.nabble.com> Message-ID: Hadn't thought about the backslash, it works now. Thanks a lot man. On Mon, Jul 9, 2012 at 6:03 PM, Jim Sustacek [via FFmpeg-users] < ml-node+s933282n4651600h52 at n4.nabble.com> wrote: > I escaped the colon with a backslash to get past the error message. My > command: > > ffmpeg -i rtsp://server.com/path/to/live/left.sdp -vf "[in] pad=2*iw:ih > [left]; movie='rtsp\://server.com/path/to/live/right.sdp' [right]; > [left][right] overlay=main_w/2:0 [out]" -vcodec libx264 -b:v 1200k -acodec > aac -strict experimental -ar 44100 -ab 128k outputfile.mp4 > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://ffmpeg-users.933282.n4.nabble.com/Adding-a-RTMP-live-stream-overlay-tp4608703p4651600.html > To unsubscribe from Adding a RTMP live stream overlay, click here > . > NAML > -- Erwan Guy-Brossier 06.44.18.95.34 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Adding-a-RTMP-live-stream-overlay-tp4608703p4651643.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kev2m at voila.fr Tue Jul 10 16:46:45 2012 From: kev2m at voila.fr (kev2m at voila.fr) Date: Tue, 10 Jul 2012 16:46:45 +0200 (CEST) Subject: [FFmpeg-user] compiling ffmpeg with swscale Message-ID: <393554371.252241341931605247.JavaMail.www@wwinf7124> Hi, For a scholar internship, I need to use ffmpeg and the swscale library. And I think I have trouble with the installation of the swscale library. I'm using Ubuntu 11.10. I have download the last version of ffmpeg with the command "git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg" I have configure the installation with the command "./configure --enable-swscale --enable-shared --enable-gpl --enable-libx264 --prefix=/usr/local" (I know a lot of these options are useless, I just add them to be sure...) Then I "make", "make install" and "ldconfig". Everything works fine until I try to compile my project. In my project, we can find these lines : > #include > [...] > struct SwsContext* convertCtx = sws_getContext(W_fen, H_fen, PIX_FMT_RGB24, W_fen, H_fen, PIX_FMT_YUV420P, SWS_FAST_BILINEAR, NULL, NULL, NULL); > [...] > sws_scale(convertCtx, &image, &srcstride, 0, H_fen, enc->input.img.plane, enc->input.img.i_stride); When I compile it with the command : > g++ -Wl,-O1 -o main main.o mesh.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lglut -lQtOpenGL -lQtGui -lQtCore -lGLU -lGL -lpthread -L/usr/local/lib/ -lswscale -lx264 I get the error : > main.o: In function `dessiner()': > main.cpp:(.text+0xccb): undefined reference to `sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double const*)' > main.cpp:(.text+0xd1c): undefined reference to `sws_scale(SwsContext*, unsigned char const* const*, int const*, int, int, unsigned char* const*, int const*)' And yet, the files /usr/local/include/libswscale/swscale.h and /usr/local/lib/libswscale{.a, .so, .so.2, .so.2.1.100} exist. I guess (I'm not sure of that) that's because the swscale library is not properly installed. And I would like some advice to install it or to be sure of what the problem is. Thank you in advance, -- Native e-King ___________________________________________________________ Obligatoire au 1er juillet, achetez votre ?thylotest sur Voila.fr http://shopping.voila.fr/thematique/ethylotest From info at picaflor-azul.com Tue Jul 10 18:09:00 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Tue, 10 Jul 2012 11:09:00 -0500 Subject: [FFmpeg-user] 2.3 Gazillion In-Reply-To: References: Message-ID: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> Hi, After installing the ubuntu packages from your site things started to work a lot better. Here is my problem: after trying about 2.3 gazillion different commands, the end result is still quite blurry. Here are the three most complex commands I have come up with that work. It doesn't seem that they work any better than the simple ones I started out with. ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1920x1080 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv ffmpeg -i output.mkv -c:v mpeg2video -mbd 2 -trellis 2 -cmp 2 -subcmp 2 -g 100 -pass 1 -b:v 8000k -s 720x480 -r 29.97 -an -f rawvideo -y /dev/null ffmpeg -i output.mkv -mbd 2 -trellis 2 -cmp 2 -subcmp 2 -g 100 -pass 2 -target ntsc-dvd -aspect 16:9 recording-filename2pass.vob I have no idea what to try next, so any help would be appreciated. -- Thanks, Anne www.picaflor-azul.com From rogerdpack2 at gmail.com Tue Jul 10 18:09:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 10:09:55 -0600 Subject: [FFmpeg-user] Decode and encode mpeg2 video In-Reply-To: <4ffbc11f.c20bd80a.27a2.ffffde31SMTPIN_ADDED@mx.google.com> References: <4ff68814.6851b40a.4249.fffff8f7SMTPIN_ADDED@mx.google.com> <4ffbc11f.c20bd80a.27a2.ffffde31SMTPIN_ADDED@mx.google.com> Message-ID: > Add on I had also tried to open decoder as per sample application by giving > input file but result was same. Does ffmpeg binary decode it wrong? > My video resolution is 720x576. > Is there any problem with this resolution. > Because my code is working with 704x576 resolution video. > So I have doubt on resolution. You could try it with a resolution that is a multiple of 8 or 16, and see if that helps, but my hunch is that resolution is not the problem... -r From rogerdpack2 at gmail.com Tue Jul 10 18:11:21 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 10:11:21 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> Message-ID: > There is a problem with this approach. You will have to compile FFmpeg > yourself to know if the spikes still occur. I had also seen those spikes > https://sessiondatabase.net/jwplayer/double5.gif but could not reproduce > them with my own build of the same core sources (+x264 +libmp3lame > +libfaac). The only real way to do a bisect is to make an exact copy of > Zeranoe's build environment. I do not know if he is cross compiling on > *nix or using MingW onder Windows. But he is using GCC 4.7.1 right now, > which is not available as Windows binary yet as far as I know. At least he makes a script available to setup his compiler, so you can use that. Or whatever script he used at the time, but yes, you'd first want to compile it yourself and see if you can reproduce the spikes. -r From rogerdpack2 at gmail.com Tue Jul 10 18:13:56 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 10:13:56 -0600 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: References: Message-ID: > Currently I'm using FFMPEG (stand alone) for thumbnails and have cross > compiled metadata (present in example directory of FFMPEG) source code and > used it to generate meta data such as duration, height, width, creation > date/time etc. I wanted to check if I could optimize it in some way.. > Many Thanks! does ffmpeg stand alone give you all the metadata you need, in its stdout/stderr output? -r From llarevo at gmx.net Tue Jul 10 18:14:27 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Tue, 10 Jul 2012 18:14:27 +0200 Subject: [FFmpeg-user] xvid profile (xvidopts for libxvid) Message-ID: <1341936867.9199.15.camel@tbastian-desktop.localdomain> Hi, is there a way to access the xvidprofiles in ffmpeg like one can set them in mencoder via e.g. -xvidopts profile=asp3 In the manpage I only found something similar for x264 (-x264opts). Regards -- Felix From rogerdpack2 at gmail.com Tue Jul 10 18:16:43 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 10:16:43 -0600 Subject: [FFmpeg-user] Time lapse In-Reply-To: <4FFC2C98.4000105@googlemail.com> References: <4FFC2C98.4000105@googlemail.com> Message-ID: > I want to compress a video. By that I mean shortening a 5 minute video to > say 2 minutes while keeping the framerate. > > Video1: 5minutes, 30fps,audio > Video2: 2minutes, 30fps,no audio (or a given mp3-soundtrack) So you want to basically "speed up" the video so that what was once shown in 5 minutes is now shown in 2? -r From cehoyos at ag.or.at Tue Jul 10 18:33:56 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 16:33:56 +0000 (UTC) Subject: [FFmpeg-user] compiling ffmpeg with swscale References: <393554371.252241341931605247.JavaMail.www@wwinf7124> Message-ID: voila.fr> writes: > I have download the last version of ffmpeg with the command "git clone > git://source.ffmpeg.org/ffmpeg.git ffmpeg" > I have configure the installation with the command > "./configure --enable-swscale --enable-shared > --enable-gpl --enable-libx264 --prefix=/usr/local" > (I know a lot of these options are useless, I just add them to be sure...) Only --enable-swscale is default > Then I "make", "make install" and "ldconfig". Why don't you use static libraries? I know this is not the only solution (and possibly not the best one), but it is an easy solution that does not tamper with your OS. Carl Eugen From cehoyos at ag.or.at Tue Jul 10 18:37:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 16:37:06 +0000 (UTC) Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files References: Message-ID: Pavan Kulkarni gmail.com> writes: > Is there a way to specify what metadata fields I need. For instance I need > the duration of the video, width and height etc. I don't think duration, width and height are metadata. (or are they?) Carl Eugen From cehoyos at ag.or.at Tue Jul 10 18:47:58 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Jul 2012 16:47:58 +0000 (UTC) Subject: [FFmpeg-user] 2.3 Gazillion References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> Message-ID: Anne at Picaflor Azul picaflor-azul.com> writes: > After installing the ubuntu packages from your site things > started to work a lot better. Here is my problem: after > trying about 2.3 gazillion different commands, the end result > is still quite blurry. As said, I believe -crf 0 is lossless (or at least high quality). You can test the following command line that is visually lossless: $ ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -qscale 2 out.avi I still suspect you don't like the conversion from rgb to yuv, none of the "typical" encoders support rgb. You can try the following to test if you prefer the output: $ ffmpeg -i x11grab -r 30 -s 1920x1080 -i :0.0 -pix_fmt png out.mov x264 does support encoding rgb (-vcodec libx264rgb) but please remember that neither WMP nor QT will play the result. Please read http://ffmpeg.org/contact.html and understand that thread-highjacking should be avoided. Carl Eugen From mbradshaw at sorensonmedia.com Tue Jul 10 18:49:50 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 10 Jul 2012 10:49:50 -0600 Subject: [FFmpeg-user] compiling ffmpeg with swscale In-Reply-To: <393554371.252241341931605247.JavaMail.www@wwinf7124> References: <393554371.252241341931605247.JavaMail.www@wwinf7124> Message-ID: On Tue, Jul 10, 2012 at 8:46 AM, wrote: > Hi, > > For a scholar internship, I need to use ffmpeg and the swscale library. And I think I have trouble with the installation of the swscale library. I'm using Ubuntu 11.10. > > I have download the last version of ffmpeg with the command "git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg" > I have configure the installation with the command "./configure --enable-swscale --enable-shared --enable-gpl --enable-libx264 --prefix=/usr/local" (I know a lot of these options are useless, I just add them to be sure...) > Then I "make", "make install" and "ldconfig". > Everything works fine until I try to compile my project. > > In my project, we can find these lines : >> #include > >> [...] >> struct SwsContext* convertCtx = sws_getContext(W_fen, H_fen, PIX_FMT_RGB24, W_fen, H_fen, PIX_FMT_YUV420P, SWS_FAST_BILINEAR, NULL, NULL, NULL); >> [...] >> sws_scale(convertCtx, &image, &srcstride, 0, H_fen, enc->input.img.plane, enc->input.img.i_stride); > > > When I compile it with the command : >> g++ -Wl,-O1 -o main main.o mesh.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lglut -lQtOpenGL -lQtGui -lQtCore -lGLU -lGL -lpthread -L/usr/local/lib/ -lswscale -lx264 > > I get the error : >> main.o: In function `dessiner()': >> main.cpp:(.text+0xccb): undefined reference to `sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double const*)' >> main.cpp:(.text+0xd1c): undefined reference to `sws_scale(SwsContext*, unsigned char const* const*, int const*, int, int, unsigned char* const*, int const*)' > > And yet, the files /usr/local/include/libswscale/swscale.h and /usr/local/lib/libswscale{.a, .so, .so.2, .so.2.1.100} exist. > > I guess (I'm not sure of that) that's because the swscale library is not properly installed. And I would like some advice to install it or to be sure of what the problem is. Have you tried with any of the other libraries (libavcodec, libavformat, etc.)? If you make a tiny sample program that depends on one of them, can you properly link to it too? The fact that it's not complaining about not finding swscale.h or -lswscale implies that it is indeed finding them. Are you sure the libs and your program are both built for the same architecture (32/64 bit)? Also, what's your ldconfig command? --Michael From info at picaflor-azul.com Tue Jul 10 19:06:05 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Tue, 10 Jul 2012 12:06:05 -0500 Subject: [FFmpeg-user] 2.3 gazillion Message-ID: <6ff89691e09ee337428ccc0eb0c2cdf2.squirrel@www.picaflor-azul.com> Hi, >Please read http://ffmpeg.org/contact.html and understand that >thread-highjacking should be avoided. Sorry. Does composing a new email instead of replying fix this? Thank you very much for the tips, I'm going to go and try them out. -- Thanks, Anne www.picaflor-azul.com From nicolas.george at normalesup.org Tue Jul 10 19:29:29 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Tue, 10 Jul 2012 19:29:29 +0200 Subject: [FFmpeg-user] compiling ffmpeg with swscale In-Reply-To: <393554371.252241341931605247.JavaMail.www@wwinf7124> References: <393554371.252241341931605247.JavaMail.www@wwinf7124> Message-ID: <20120710172929.GA17429@phare.normalesup.org> Le tridi 23 messidor, an CCXX, kev2m at voila.fr a ?crit?: > When I compile it with the command : > > g++ -Wl,-O1 -o main main.o mesh.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lglut -lQtOpenGL -lQtGui -lQtCore -lGLU -lGL -lpthread -L/usr/local/lib/ -lswscale -lx264 > > I get the error : > > main.o: In function `dessiner()': > > main.cpp:(.text+0xccb): undefined reference to `sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double const*)' > > main.cpp:(.text+0xd1c): undefined reference to `sws_scale(SwsContext*, unsigned char const* const*, int const*, int, int, unsigned char* const*, int const*)' > > And yet, the files /usr/local/include/libswscale/swscale.h and > /usr/local/lib/libswscale{.a, .so, .so.2, .so.2.1.100} exist. > > I guess (I'm not sure of that) that's because the swscale library is not > properly installed. And I would like some advice to install it or to be > sure of what the problem is. I guess your problem is actually of the "c++ sucks" variety. You should try building and linking a C program that uses sws_scale (no need to make it complex, as there is actually no need to run it). If it works, my guess is confirmed. 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 sheen.andy at googlemail.com Tue Jul 10 19:42:50 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 10 Jul 2012 18:42:50 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> Message-ID: <4FFC699A.2080109@googlemail.com> Roger Pack wrote on Tue 10 Jul at 17:11 UK time >> There is a problem with this approach. You will have to compile FFmpeg >> yourself to know if the spikes still occur. I had also seen those spikes >> https://sessiondatabase.net/jwplayer/double5.gif but could not reproduce >> them with my own build of the same core sources (+x264 +libmp3lame >> +libfaac). The only real way to do a bisect is to make an exact copy of >> Zeranoe's build environment. I do not know if he is cross compiling on >> *nix or using MingW onder Windows. But he is using GCC 4.7.1 right now, >> which is not available as Windows binary yet as far as I know. > At least he makes a script available to setup his compiler, so you can > use that. Or whatever script he used at the time, but yes, you'd > first want to compile it yourself and see if you can reproduce the > spikes. > -r > Built (and thank goodness for that script!). I can reproduce the spikes. When the spikes are there, the system is spemding 60+% of it's time in the kernel. git bisect seems to suggest this is the problem: xbmc at pain:~/source/ffmpeg/ffmpeg$ git bisect bad e4e30256f87f177decf59b59e923d05ef64147df is the first bad commit commit e4e30256f87f177decf59b59e923d05ef64147df Author: Janne Grunau Date: Sun Dec 25 11:45:05 2011 +0100 threads: default to automatic thread count detection :100644 100644 0cbc20af9e1da01f3deb42bf16748ba49d613d55c305406493c8bc86f47819e1c33127dd2778cb22 M Changelog :040000 040000 1095f382f3c1ac7e6bbb19e2a046897a8e18a0ace65f7ef0c2c7fe7d0cfc5c78779e9b34edb3275f M libavcodec :040000 040000 be4b4aa8fcb913c1b8730e92cd38d3c31b4897d8d332497fd1a32d0f4bc530bf884983d7a5fc9afd M libavformat HOWEVER, code from around that time was compiling two binaries: avconv and ffmpeg. Both get built and running these command lines (they have slightly different command line syntax): ffmpeg -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t 0:10:00 -map 0:0 -pass 1 -vcodec libx264 -b 1200k -threads 8 -f mp4 -an nul and avconv -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t 0:10:00 -map 0:0 -pass 1 -c:v libx264 -b:v 1200k -threads 8 -f mp4 -an nul Produce *different* results: the avconv file locks, the ffmpeg one doesn't. They are both the same build (see logs below). If I'm reading the compare correctly: https://github.com/FFmpeg/FFmpeg/compare/f514695...e4e30256 the checkin before e4e3025 is c11b92b. Building avconv and ffmpeg from c11b92b and they both work perfectly with no locks. Using avconv from e4e3025, the locks are back. Have I debugged it far enough so someone more familiar with the code can debug it or are we now at a "patches are welcome" point? For completeness, here's the two command lines for completeness: ffmpeg version e4e3025, Copyright (c) 2000-2011 the Libav developers built on Jul 10 2012 17:23:12 with gcc 4.7.1 This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes). [mpegts @ 000000000455EAE0] Continuity check failed for pid 0 expected 4 got 6 [mpegts @ 000000000455EAE0] max_analyze_duration reached [NULL @ 00000000045EC6B0] start time is not set in estimate_timings_from_pts [NULL @ 00000000045EE660] start time is not set in estimate_timings_from_pts [NULL @ 00000000045F0610] start time is not set in estimate_timings_from_pts [NULL @ 00000000045CF5E0] start time is not set in estimate_timings_from_pts [NULL @ 00000000045F5BA0] start time is not set in estimate_timings_from_pts [NULL @ 00000000045F7AD0] start time is not set in estimate_timings_from_pts [NULL @ 00000000045F9A00] start time is not set in estimate_timings_from_pts [NULL @ 00000000045FB9E0] start time is not set in estimate_timings_from_pts [NULL @ 00000000045FD990] start time is not set in estimate_timings_from_pts [NULL @ 00000000045FF940] start time is not set in estimate_timings_from_pts [NULL @ 0000000004601900] start time is not set in estimate_timings_from_pts [NULL @ 00000000046038C0] start time is not set in estimate_timings_from_pts [NULL @ 0000000004629E30] start time is not set in estimate_timings_from_pts [mpegts @ 000000000455EAE0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from '7416_20120706232700.mpg': Duration: 00:47:58.80, start: 92347.294089, bitrate: 8027 kb/s Program 1 Stream #0.0[0x15e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x15e1](eng): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s Stream #0.2[0x15e2](NAR): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s Stream #0.3[0x15e3](eng): Subtitle: [6][0][0][0] / 0x0006 Stream #0.4[0xf05]: Data: [11][0][0][0] / 0x000B Stream #0.5[0xf07]: Data: [11][0][0][0] / 0x000B Stream #0.6[0xf08]: Data: [11][0][0][0] / 0x000B Stream #0.7[0xf09]: Data: [11][0][0][0] / 0x000B Stream #0.8[0x15e4](eng): Subtitle: dvbsub Stream #0.9[0xf00]: Data: [5][0][0][0] / 0x0005 Stream #0.10[0xf01]: Data: [5][0][0][0] / 0x0005 Stream #0.11[0xf02]: Data: [5][0][0][0] / 0x0005 Stream #0.12[0xf03]: Data: [5][0][0][0] / 0x0005 Stream #0.13[0xf04]: Data: [5][0][0][0] / 0x0005 Stream #0.14[0x910]: Data: [5][0][0][0] / 0x0005 Stream #0.15[0x911]: Data: [5][0][0][0] / 0x0005 Stream #0.16[0x914]: Data: [5][0][0][0] / 0x0005 Stream #0.17[0x336]: Data: [5][0][0][0] / 0x0005 [buffer @ 0000000004601F50] w:720 h:576 pixfmt:yuv420p [libx264 @ 000000000462A300] using SAR=64/45 [libx264 @ 000000000462A300] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 000000000462A300] profile Main, level 3.0 [libx264 @ 000000000462A300] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00 Output #0, mp4, to 'nul': Metadata: encoder : Lavf53.19.0 Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=-1--1, pass 1, 1200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press ctrl-c to stop encoding [mpegts @ 000000000455EAE0] Continuity check failed for pid 0 expected 4 got 6 frame=14997 fps=379 q=30.0 Lsize= 0kB time=599.84 bitrate= 0.0kbits/s dup=11 drop=0 video:87671kB audio:0kB global headers:0kB muxing overhead -100.000000% frame I:105 Avg QP:23.91 size: 22171 [libx264 @ 000000000462A300] frame P:7647 Avg QP:26.89 size: 8856 [libx264 @ 000000000462A300] frame B:7245 Avg QP:28.41 size: 2722 [libx264 @ 000000000462A300] consecutive B-frames: 13.3% 63.3% 10.8% 12.6% [libx264 @ 000000000462A300] mb I I16..4: 60.6% 0.0% 39.4% [libx264 @ 000000000462A300] mb P I16..4: 14.9% 0.0% 0.0% P16..4: 39.1% 0.0% 0.0% 0.0% 0.0% skip:46.0% [libx264 @ 000000000462A300] mb B I16..4: 1.6% 0.0% 0.0% B16..8: 16.4% 0.0% 0.0% direct: 8.6% skip:73.4% L0:29.0% L1:44.5% BI:26.4% [libx264 @ 000000000462A300] final ratefactor: 24.57 [libx264 @ 000000000462A300] coded y,uvDC,uvAC intra: 31.8% 38.8% 10.1% inter: 13.9% 10.6% 0.5% [libx264 @ 000000000462A300] i16 v,h,dc,p: 54% 21% 17% 8% [libx264 @ 000000000462A300] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 15% 6% 5% 6% 5% 7% 5% [libx264 @ 000000000462A300] i8c dc,h,v,p: 65% 11% 21% 3% [libx264 @ 000000000462A300] Weighted P-Frames: Y:13.0% UV:2.2% [libx264 @ 000000000462A300] kb/s:1197.23 This does lock up: $ avconv -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t 0:10:00 -map 0:0 -pass 1 -c:v libx264 -b:v 1200k -threads 8 -f mp4 -an nul avconv version e4e3025, Copyright (c) 2000-2011 the Libav developers built on Jul 10 2012 17:23:12 with gcc 4.7.1 [mpegts @ 00000000046BEAE0] Continuity check failed for pid 0 expected 4 got 6 [mpegts @ 00000000046BEAE0] max_analyze_duration reached [NULL @ 000000000034C6B0] start time is not set in estimate_timings_from_pts [NULL @ 000000000034E620] start time is not set in estimate_timings_from_pts [NULL @ 00000000003505D0] start time is not set in estimate_timings_from_pts [NULL @ 000000000032F5B0] start time is not set in estimate_timings_from_pts [NULL @ 0000000000355B60] start time is not set in estimate_timings_from_pts [NULL @ 0000000000357A90] start time is not set in estimate_timings_from_pts [NULL @ 00000000003599C0] start time is not set in estimate_timings_from_pts [NULL @ 000000000035B930] start time is not set in estimate_timings_from_pts [NULL @ 000000000035D8A0] start time is not set in estimate_timings_from_pts [NULL @ 000000000035F810] start time is not set in estimate_timings_from_pts [NULL @ 0000000000361780] start time is not set in estimate_timings_from_pts [NULL @ 0000000000363780] start time is not set in estimate_timings_from_pts [NULL @ 0000000000389CF0] start time is not set in estimate_timings_from_pts [mpegts @ 00000000046BEAE0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from '7416_20120706232700.mpg': Duration: 00:47:58.80, start: 92347.294089, bitrate: 8027 kb/s Program 1 Stream #0.0[0x15e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x15e1](eng): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s Stream #0.2[0x15e2](NAR): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s Stream #0.3[0x15e3](eng): Subtitle: [6][0][0][0] / 0x0006 Stream #0.4[0xf05]: Data: [11][0][0][0] / 0x000B Stream #0.5[0xf07]: Data: [11][0][0][0] / 0x000B Stream #0.6[0xf08]: Data: [11][0][0][0] / 0x000B Stream #0.7[0xf09]: Data: [11][0][0][0] / 0x000B Stream #0.8[0x15e4](eng): Subtitle: dvbsub Stream #0.9[0xf00]: Data: [5][0][0][0] / 0x0005 Stream #0.10[0xf01]: Data: [5][0][0][0] / 0x0005 Stream #0.11[0xf02]: Data: [5][0][0][0] / 0x0005 Stream #0.12[0xf03]: Data: [5][0][0][0] / 0x0005 Stream #0.13[0xf04]: Data: [5][0][0][0] / 0x0005 Stream #0.14[0x910]: Data: [5][0][0][0] / 0x0005 Stream #0.15[0x911]: Data: [5][0][0][0] / 0x0005 Stream #0.16[0x914]: Data: [5][0][0][0] / 0x0005 Stream #0.17[0x336]: Data: [5][0][0][0] / 0x0005 [buffer @ 0000000006B9FF10] w:720 h:576 pixfmt:yuv420p [libx264 @ 000000000038A1C0] using SAR=64/45 [libx264 @ 000000000038A1C0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 000000000038A1C0] profile Main, level 3.0 [libx264 @ 000000000038A1C0] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00 Output #0, mp4, to 'nul': Metadata: encoder : Lavf53.19.0 Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=-1--1, pass 1, 1200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Press ctrl-c to stop encoding [mpegts @ 00000000046BEAE0] Continuity check failed for pid 0 expected 4 got 6 frame=14999 fps=186 q=30.0 Lsize= 0kB time=599.92 bitrate= 0.0kbits/s dup=11 drop=0 video:87687kB audio:0kB global headers:0kB muxing overhead -100.000000% [libx264 @ 000000000038A1C0] frame I:105 Avg QP:23.91 size: 22171 [libx264 @ 000000000038A1C0] frame P:7648 Avg QP:26.89 size: 8857 [libx264 @ 000000000038A1C0] frame B:7246 Avg QP:28.41 size: 2722 [libx264 @ 000000000038A1C0] consecutive B-frames: 13.3% 63.3% 10.8% 12.6% [libx264 @ 000000000038A1C0] mb I I16..4: 60.6% 0.0% 39.4% [libx264 @ 000000000038A1C0] mb P I16..4: 14.9% 0.0% 0.0% P16..4: 39.1% 0.0% 0.0% 0.0% 0.0% skip:46.0% [libx264 @ 000000000038A1C0] mb B I16..4: 1.6% 0.0% 0.0% B16..8: 16.4% 0.0% 0.0% direct: 8.6% skip:73.4% L0:29.0% L1:44.5% BI:26.4% [libx264 @ 000000000038A1C0] final ratefactor: 24.57 [libx264 @ 000000000038A1C0] coded y,uvDC,uvAC intra: 31.8% 38.8% 10.1% inter: 13.9% 10.6% 0.5% [libx264 @ 000000000038A1C0] i16 v,h,dc,p: 54% 21% 17% 8% [libx264 @ 000000000038A1C0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 15% 6% 5% 6% 5% 7% 5% [libx264 @ 000000000038A1C0] i8c dc,h,v,p: 65% 11% 21% 3% [libx264 @ 000000000038A1C0] Weighted P-Frames: Y:13.0% UV:2.2% [libx264 @ 000000000038A1C0] kb/s:1197.28 From phil_rhodes at rocketmail.com Tue Jul 10 19:44:22 2012 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Tue, 10 Jul 2012 18:44:22 +0100 Subject: [FFmpeg-user] Another odd colourspace issue In-Reply-To: <4FFC279B.5090608@mdsh.com> References: <4FFC1343.9030602@yahoo.com> <4FFC279B.5090608@mdsh.com> Message-ID: > I believe that the colour space is generally decided solely on the frame > size. I'm pretty sure you're right; at least, I've never been able to exactly figure it out. Coders? It is of course cack. This problem has been under discussion for quite some time and it is easy to define how the solution should work, although actually implementing it requires a proper transform-based colour management system to be grafted on to ffmpeg, which might have some fairly far-reaching implications (although it could also be fairly simple, depending on how ffmpeg is actually laid out internally, which is not information to which we have easy access). I suspect the reasons it has not been fixed are as follows: - Fixing it might be a pain - It's an extremely common problem in software (particularly if you include studio/full swing issues) and therefore having this problem is not as stigmatised as it should be. - Most of the software people who work on ffmpeg are not video engineers and don't have a very complete knowledge of this area, and don't really understand why it's a problem or how to solve it and certainly won't take advice from the likes of us, and finally: - Well, you sort of get a kind-of picture that has, broadly speaking, red green and blue in it, give or take, so that's pretty much, more or less, roughly, okayish, isn't it? Remember this stuff is used mainly to feed Youtube, where people just assume that oranges and reds going super-neon-bright is cool. P From mbradshaw at sorensonmedia.com Tue Jul 10 19:51:44 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 10 Jul 2012 11:51:44 -0600 Subject: [FFmpeg-user] compiling ffmpeg with swscale In-Reply-To: <20120710172929.GA17429@phare.normalesup.org> References: <393554371.252241341931605247.JavaMail.www@wwinf7124> <20120710172929.GA17429@phare.normalesup.org> Message-ID: On Tue, Jul 10, 2012 at 11:29 AM, Nicolas George wrote: > Le tridi 23 messidor, an CCXX, kev2m at voila.fr a ?crit : >> When I compile it with the command : >> > g++ -Wl,-O1 -o main main.o mesh.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lglut -lQtOpenGL -lQtGui -lQtCore -lGLU -lGL -lpthread -L/usr/local/lib/ -lswscale -lx264 >> >> I get the error : >> > main.o: In function `dessiner()': >> > main.cpp:(.text+0xccb): undefined reference to `sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double const*)' >> > main.cpp:(.text+0xd1c): undefined reference to `sws_scale(SwsContext*, unsigned char const* const*, int const*, int, int, unsigned char* const*, int const*)' >> >> And yet, the files /usr/local/include/libswscale/swscale.h and >> /usr/local/lib/libswscale{.a, .so, .so.2, .so.2.1.100} exist. >> >> I guess (I'm not sure of that) that's because the swscale library is not >> properly installed. And I would like some advice to install it or to be >> sure of what the problem is. > > I guess your problem is actually of the "c++ sucks" variety. Speaking of which, did you surround your includes with extern "C" {}? --Michael From kalleernst at googlemail.com Tue Jul 10 20:01:28 2012 From: kalleernst at googlemail.com (=?ISO-8859-1?Q?Marco_Baumg=E4rtner?=) Date: Tue, 10 Jul 2012 20:01:28 +0200 Subject: [FFmpeg-user] Time lapse In-Reply-To: References: <4FFC2C98.4000105@googlemail.com> Message-ID: <4FFC6DF8.6010708@googlemail.com> like ffmpeg -i v530a.avi -r 30 v230na.avi or ffmpeg -r 30 -i v530a.avi v230na.avi or ffmpeg -r we -i v530a.avi -r we v230na.avi or ? Am 10.07.2012 18:16, schrieb Roger Pack: >> I want to compress a video. By that I mean shortening a 5 minute video to >> say 2 minutes while keeping the framerate. >> >> Video1: 5minutes, 30fps,audio >> Video2: 2minutes, 30fps,no audio (or a given mp3-soundtrack) > So you want to basically "speed up" the video so that what was once > shown in 5 minutes is now shown in 2? > -r From rogerdpack2 at gmail.com Tue Jul 10 21:21:03 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 13:21:03 -0600 Subject: [FFmpeg-user] splitting on non keyframes? Message-ID: If I do the following: $ ffmpeg -i sintel.mpg -vcodec copy -acodec copy -ss 90.0 starting_at_90.mpg then $ ffmpeg -i starting_at_90.mpg -vframes 1 -f image2 -an snap.jpg I get this warning message: [mpeg2video @ 01f09860] warning: first frame is no keyframe Is this expected? Anybody know why this is occurring? It seems to occur regardless of what start time I use. My fear is that somehow ffmpeg is splitting wrong, or possibly inserting some garbage frames at the beginning. ffprobe shows i-frames for the first video packet, but it might be obscuring some other problem, for all I know. Thanks. -roger- full output: c:\vids>ffmpeg -i sintel.mpg -vcodec copy -ss 90.1 -t 10 -acodec copy garbage.mpg c:\vids>c:\installs\ffmpeg-20120706-git-8293a21-win32-shared\bin\ffmpeg.exe -i sintel.mpg -vcodec copy -ss 90.1 -t 10 -acodec copy garbage.mpg ffmpeg version N-42288-g8293a21 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2012 20:58:08 with gcc 4.7.1 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 01d85960] ac-tex damaged at 40 7 [mpeg2video @ 01d85960] Warning MVs not available [mpeg2video @ 01d85960] concealing 1035 DC, 1035 AC, 1035 MV errors [mpeg @ 01d731c0] 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 'garbage.mpg': Metadata: encoder : Lavf54.15.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= 269 fps=0.0 q=-1.0 Lsize= 3858kB time=00:00:10.00 bitrate=3160.5kbits/s video:3287kB audio:548kB subtitle:0 global headers:0kB muxing overhead 0.605837% c:\vids>ffmpeg -i garbage.mpg -vframes 1 -f image2 -an snap.jpg c:\vids>c:\installs\ffmpeg-20120706-git-8293a21-win32-shared\bin\ffmpeg.exe -i garbage.mpg -vframes 1 -f image2 -an snap.jpg ffmpeg version N-42288-g8293a21 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2012 20:58:08 with gcc 4.7.1 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 01e83140] max_analyze_duration 5000000 reached at 5024000 Input #0, mpeg, from 'garbage.mpg': Duration: 00:00:10.02, start: 1.012000, bitrate: 3153 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 [graph 0 input from stream 0:0 @ 01f0ac00] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2 [output stream 0:0 @ 01f0a840] No opaque field provided [auto-inserted scaler 0 @ 01f0ab60] w:720 h:480 fmt:yuv420p sar:32/27 -> w:720 h:480 fmt:yuvj420p sar:32/27 flags:0x4 Output #0, image2, to 'snap.jpg': Metadata: encoder : Lavf54.15.100 Stream #0:0: Video: mjpeg, yuvj420p, 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 -> mjpeg) Press [q] to stop, [?] for help [mpeg2video @ 01f09860] warning: first frame is no keyframe frame= 1 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.03 bitrate= 0.0kbits/s video:19kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000% Test file: rogerdpack.t28.net/incoming/sintel.mpg (sorry it's rather large) From rogerdpack2 at gmail.com Tue Jul 10 21:25:53 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 13:25:53 -0600 Subject: [FFmpeg-user] 2.3 Gazillion In-Reply-To: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> Message-ID: > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1920x1080 -i :0.0 > -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 > output.mkv Did you try other presets? What if you just play it in ffplay does it look good? -r From rogerdpack2 at gmail.com Tue Jul 10 21:26:33 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 13:26:33 -0600 Subject: [FFmpeg-user] 2.3 gazillion In-Reply-To: <6ff89691e09ee337428ccc0eb0c2cdf2.squirrel@www.picaflor-azul.com> References: <6ff89691e09ee337428ccc0eb0c2cdf2.squirrel@www.picaflor-azul.com> Message-ID: >>Please read http://ffmpeg.org/contact.html and understand that >>thread-highjacking should be avoided. > > Sorry. Does composing a new email instead of replying fix this? Yeah. Kind of odd. From rogerdpack2 at gmail.com Tue Jul 10 21:26:47 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 13:26:47 -0600 Subject: [FFmpeg-user] thread hijacking Message-ID: Maybe the mailing engine could be updated to create a new thread when the subject is changed, anybody know/any feedback on this? -r From rogerdpack2 at gmail.com Tue Jul 10 21:30:12 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 13:30:12 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFC699A.2080109@googlemail.com> References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> Message-ID: > Built (and thank goodness for that script!). I can reproduce the spikes. > When the spikes are there, the system is spemding 60+% of it's time in > the kernel. Where in the kernel? Do you see this on linux as well as windows then? > threads: default to automatic thread count detection If you try it with -threads 1 is the problem present? From rogerdpack2 at gmail.com Tue Jul 10 21:32:00 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 13:32:00 -0600 Subject: [FFmpeg-user] Time lapse In-Reply-To: References: <4FFC2C98.4000105@googlemail.com> Message-ID: >> Video1: 5minutes, 30fps,audio >> Video2: 2minutes, 30fps,no audio (or a given mp3-soundtrack) > > So you want to basically "speed up" the video so that what was once > shown in 5 minutes is now shown in 2? Did you answer this question? -r From sheen.andy at googlemail.com Tue Jul 10 22:18:41 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 10 Jul 2012 21:18:41 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> Message-ID: <4FFC8E21.8050506@googlemail.com> Roger Pack wrote on Tue 10 Jul at 20:30 UK time >> Built (and thank goodness for that script!). I can reproduce the spikes. >> When the spikes are there, the system is spemding 60+% of it's time in >> the kernel. > > Where in the kernel? I'm not 100% as I've not used windbg much, but as fas as I can tell, the stack trace (taken from a dump when it is in this state) is: 0:000> ~* kp . 0 Id: 2208.1864 Suspend: 0 Teb: 000007ff`fffde000 Unfrozen Child-SP RetAddr Call Site 00000000`0022e008 000007fe`fda11203 ntdll!ZwDelayExecution+0xa 00000000`0022e010 00000000`00c69204 KERNELBASE!SleepEx+0xab 00000000`0022e0b0 00000000`00c65418 ffmpeg+0x869204 00000000`0022e110 00000000`00c655df ffmpeg+0x865418 00000000`0022e150 00000000`00c673a3 ffmpeg+0x8655df 00000000`0022e190 00000000`00c67d09 ffmpeg+0x8673a3 00000000`0022e1d0 00000000`00c65f80 ffmpeg+0x867d09 00000000`0022e200 00000000`00c662be ffmpeg+0x865f80 00000000`0022e270 00000000`00c666fc ffmpeg+0x8662be 00000000`0022e2f0 00000000`00819632 ffmpeg+0x8666fc 00000000`0022e3a0 00000000`006111e5 ffmpeg+0x419632 00000000`0022e430 00000000`00612cd7 ffmpeg+0x2111e5 00000000`0022e680 00000000`00526d73 ffmpeg+0x212cd7 00000000`0022e700 00000000`00406693 ffmpeg+0x126d73 00000000`0022e750 00000000`00c6ad77 ffmpeg+0x6693 00000000`0022e8a0 00000000`004013c9 ffmpeg+0x86ad77 00000000`0022fe70 00000000`004014e8 ffmpeg+0x13c9 00000000`0022ff30 00000000`76e9652d ffmpeg+0x14e8 00000000`0022ff60 00000000`7727c521 kernel32!BaseThreadInitThunk+0xd 00000000`0022ff90 00000000`00000000 ntdll!RtlUserThreadStart+0x1d This repeats 16 times. If you can tell me how to compile with debug on, I'll see if I can get the symbols. > Do you see this on linux as well as windows then? > I suppose compiling direct on linux is easy now I've done the cross compile ;) No, I don't see it on a linux git clone from this evening compiled in exactly the same way (same configure options etc...) >> threads: default to automatic thread count detection > > If you try it with -threads 1 is the problem present? -threads problem 0 yes 1 no 2 yes 3 yes 4 yes 5 yes 6 yes 7 yes 8 yes 9 yes Of interest, you can't CTRL-C the program when it is in this state, it will only respond when it drops back out of the state. HTH... From info at picaflor-azul.com Tue Jul 10 23:38:07 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Tue, 10 Jul 2012 16:38:07 -0500 Subject: [FFmpeg-user] 2.3 Gazillion In-Reply-To: References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> Message-ID: <656bd4a80479da029f7e354e8a7f2f95.squirrel@www.picaflor-azul.com> Hi, I have somehow lost the ability to view the .mkv files, I think it happened when I changed from the broken ubuntu ffmpeg (avconv?) to your version. The mkv files always looked fine, so good that a few times I tried to use the web browser which was in the movie. It was very frustrating not to be able to get it to scroll. It seems that the problem is somewhere in between the .mkv and the .vob. I will certainly give ffplay a try. I really hope it works. I hadn't even started trying to figure out how to view the mkv files yet. Thanks for your suggestion. >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1920x1080 -i :0.0 >> -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 >> output.mkv > > Did you try other presets? What if you just play it in ffplay does it look > good? -- Thanks, Anne www.picaflor-azul.com From rogerdpack2 at gmail.com Tue Jul 10 23:40:21 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 15:40:21 -0600 Subject: [FFmpeg-user] Time lapse In-Reply-To: References: <4FFC2C98.4000105@googlemail.com> Message-ID: >> So you want to basically "speed up" the video so that what was once >> shown in 5 minutes is now shown in 2? http://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide "speed up your video" might help, but if I were you I would convert the frames to png, then "remove some" manually, and remix it with the new fps. -r From paziu at yahoo.com Tue Jul 10 23:58:25 2012 From: paziu at yahoo.com (Mike F) Date: Tue, 10 Jul 2012 14:58:25 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> <1341873579.77913.YahooMailNeo@web110510.mail.gq1.yahoo.com> Message-ID: <1341957505.37131.YahooMailNeo@web110503.mail.gq1.yahoo.com> > Mike F yahoo.com> writes: > >> after running >> # v4lctl volume mute off >> >> ffmpeg started capturing audio and video... >> >> Is there any way, to send a v4l2 cmd as a ffmpeg argument > > Assuming we agree that mute=off can always be forced, > look at device_open() in libavdevice/v4l2.c > (Don't forget to send a patch to ffmpeg-devel if you succeed.) > > Carl Eugen Hello Carl, You do not know how much I would like to send a patch instead writing this message, I am simply not good enough in C... If I start now, probably after 2 months I could send one... I looked in the kernel module src - drivers for medua/video, many decided to mute it by default - read somewhere ---> to prevent some noise, probably during the init process (?) vlc has several controls enabled for hue. brightness, color, volume & mute - mplayer also has some controls for v4l2 again, I would be more than happy to add them, if I could do GNU C. here are a couple of small examples and a list of controls for v4l2: -------------------------------------------------- this is the example of the em28xx driver: ??????? /* Audio defaults */ ??????? dev->mute = 1; ??????? dev->volume = 0x1f; -------------------------------------------------- add_bool( CFG_PREFIX "audio-mute", false, AUDIO_MUTE_TEXT,????????????? AUDIO_MUTE_LONGTEXT, true ) --------------------------------------------------------------------------------- static struct v4l2_queryctrl ac97_qctrl[] = { ??????? { ??????????????? .id = V4L2_CID_AUDIO_VOLUME, ??????????????? .type = V4L2_CTRL_TYPE_INTEGER, ??????????????? .name = "Volume", ??????????????? .minimum = 0x0, ??????????????? .maximum = 0x1f, ??????????????? .step = 0x1, ??????????????? .default_value = 0x1f, ??????????????? .flags = V4L2_CTRL_FLAG_SLIDER, ??????? }, { ??????????????? .id = V4L2_CID_AUDIO_MUTE, ??????????????? .type = V4L2_CTRL_TYPE_BOOLEAN, ??????????????? .name = "Mute", ??????????????? .minimum = 0, ??????????????? .maximum = 1, ??????????????? .step = 1, ??????????????? .default_value = 1, ??????????????? .flags = 0, ??????? } }; ? --------------------------------------------------------------------------------------------- ? ??????? /* USER controls */ ??????? /* Keep the order of the 'case's the same as in videodev2.h! */ ??????? case V4L2_CID_USER_CLASS:?????????????? return "User Controls"; ??????? case V4L2_CID_BRIGHTNESS:?????????????? return "Brightness"; ??????? case V4L2_CID_CONTRAST:???????????????? return "Contrast"; ??????? case V4L2_CID_SATURATION:?????????????? return "Saturation"; ??????? case V4L2_CID_HUE:????????????????????? return "Hue"; ??????? case V4L2_CID_AUDIO_VOLUME:???????????? return "Volume"; ??????? case V4L2_CID_AUDIO_BALANCE:??????????? return "Balance"; ??????? case V4L2_CID_AUDIO_BASS:?????????????? return "Bass"; ??????? case V4L2_CID_AUDIO_TREBLE:???????????? return "Treble"; ??????? case V4L2_CID_AUDIO_MUTE:?????????????? return "Mute"; ??????? case V4L2_CID_AUDIO_LOUDNESS:?????????? return "Loudness"; ??????? case V4L2_CID_BLACK_LEVEL:????????????? return "Black Level"; ??????? case V4L2_CID_AUTO_WHITE_BALANCE:?????? return "White Balance, Automatic"; ??????? case V4L2_CID_DO_WHITE_BALANCE:???????? return "Do White Balance"; ??????? case V4L2_CID_RED_BALANCE:????????????? return "Red Balance"; ??????? case V4L2_CID_BLUE_BALANCE:???????????? return "Blue Balance"; ??????? case V4L2_CID_GAMMA:??????????????????? return "Gamma"; ??? ????case V4L2_CID_EXPOSURE:???????????????? return "Exposure"; ??????? case V4L2_CID_AUTOGAIN:???????????????? return "Gain, Automatic"; ??????? case V4L2_CID_GAIN:???????????????????? return "Gain"; ??????? case V4L2_CID_HFLIP:??????????????????? return "Horizontal Flip"; ??????? case V4L2_CID_VFLIP:??????????????????? return "Vertical Flip"; ??????? case V4L2_CID_HCENTER:????????????????? return "Horizontal Center"; ??????? case V4L2_CID_VCENTER:????????????????? return "Vertical Center"; ??????? case V4L2_CID_POWER_LINE_FREQUENCY:???? return "Power Line Frequency"; ??????? case V4L2_CID_HUE_AUTO:???????????????? return "Hue, Automatic"; ??????? case V4L2_CID_WHITE_BALANCE_TEMPERATURE: return "White Balance Temperature"; ??????? case V4L2_CID_SHARPNESS:?? ?????????????return "Sharpness"; ??????? case V4L2_CID_BACKLIGHT_COMPENSATION:?? return "Backlight Compensation"; ??????? case V4L2_CID_CHROMA_AGC:?????????????? return "Chroma AGC"; ??????? case V4L2_CID_COLOR_KILLER:???????????? return "Color Killer"; ??????? case V4L2_CID_COLORFX:????????????????? return "Color Effects"; ??????? case V4L2_CID_AUTOBRIGHTNESS:?????????? return "Brightness, Automatic"; ??????? case V4L2_CID_BAND_STOP_FILTER:???????? return "Band-Stop Filter"; ??????? case V4L2_CID_ROTATE:?????????????????? return "Rotate"; ??????? case V4L2_CID_BG_COLOR:???????????????? return "Background Color"; ??????? case V4L2_CID_CHROMA_GAIN:????????????? return "Chroma Gain"; ??????? case V4L2_CID_ILLUMINATORS_1:?????????? return "Illuminator 1"; ?? ?????case V4L2_CID_ILLUMINATORS_2:?????????? return "Illuminator 2"; ?------------------------------------------------------------------------------------------------------------------ Since I already started, many times with Dennis Ritchie's &? Brian Kernighan's ANSI C book, this might give me a true reason do take it seriously, since I know, that I could do more.... I will start looking into the code, if mute is still the case after a few months, I will show you my attempt, but in any case I will try to achieve it for personal reasons... Thank you a LOT and sorry that I cannot provide anything valuable... Mike From sheen.andy at googlemail.com Wed Jul 11 00:34:12 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 10 Jul 2012 23:34:12 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> Message-ID: <4FFCADE4.2080805@googlemail.com> Roger Pack wrote on Tue 10 Jul at 21:26 UK time >> If you can tell me how to compile with debug on, I'll see if I can get >> the symbols. > > Does your compile create ffmpeg_g? If so then use that. > Also using gdb and interrupting it during a spike might be useful information. > So... ffmpeg_g exists. I run it but I can't get windows windbg to see the symbols in the file :(. I also have the same problem with cygwin gdb as the compile was done with a mingw compiler... > >> I suppose compiling direct on linux is easy now I've done the cross >> compile ;) No, I don't see it on a linux git clone from this evening >> compiled in exactly the same way (same configure options etc...) > > Dang. Some windows pthread race condition woe? > Yup. Where now? Any build from this year is useless as far as I'm concerned... From james.darnley at gmail.com Wed Jul 11 00:44:14 2012 From: james.darnley at gmail.com (James Darnley) Date: Wed, 11 Jul 2012 00:44:14 +0200 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: References: Message-ID: <4FFCB03E.8090902@gmail.com> On 2012-07-10 18:37, Carl Eugen Hoyos wrote: > Pavan Kulkarni gmail.com> writes: > >> Is there a way to specify what metadata fields I need. For instance I need >> the duration of the video, width and height etc. > > I don't think duration, width and height are metadata. > (or are they?) They are metadata in the broadest sense of the word (data that describes data) but they aren't in the metadata structure, which is probably what you mean. At least they weren't the last time I looked. From asha_puranik at persistent.co.in Tue Jul 10 14:53:53 2012 From: asha_puranik at persistent.co.in (asha) Date: Tue, 10 Jul 2012 05:53:53 -0700 (PDT) Subject: [FFmpeg-user] Vorbis codec In-Reply-To: <4C2C614B.9000000@hi-iberia.es> References: <4C2C614B.9000000@hi-iberia.es> Message-ID: <1341924833558-4651636.post@n4.nabble.com> Hi I have upgraded ffmpeg from to 0.6 M trying to convert video into webm,M getting error that is [root at CWMNode-A tmp]# ffmpeg -i 113.avi -vcodec libvpx -b 500k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -acodec vorbis -ab 128k -f webm output.webm FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab WARNING: library configuration mismatch libpostproc configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, avi, from '113.avi': Metadata: ISFT : Lavf52.31.0 Duration: 00:05:00.21, start: 0.000000, bitrate: 72 kb/s Stream #0.0: Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s Unknown encoder 'vorbis' ------------------------------------------------------------------------------------ I tried rpm -qa|grep -i libvorbis libvorbis-1.1.2-3.el5_1.2 libvorbis-devel-1.1.2-3.el5_1.2 Plz can u tel me wat went wrong ??? Even commad ffmepg -codecs Gives D A vorbis Vorbis -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Vorbis-codec-tp2274880p4651636.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rogerdpack2 at gmail.com Wed Jul 11 02:05:56 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 18:05:56 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFCADE4.2080805@googlemail.com> References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> Message-ID: > So... ffmpeg_g exists. I run it but I can't get windows windbg to see > the symbols in the file :(. I also have the same problem with cygwin gdb > as the compile was done with a mingw compiler... Try mingw gdb. Also did you try very sleepy or the other things I mentioned? -r From rogerdpack2 at gmail.com Wed Jul 11 02:07:10 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 10 Jul 2012 18:07:10 -0600 Subject: [FFmpeg-user] Vorbis codec In-Reply-To: <1341924833558-4651636.post@n4.nabble.com> References: <4C2C614B.9000000@hi-iberia.es> <1341924833558-4651636.post@n4.nabble.com> Message-ID: > ffmepg -codecs > > Gives > D A vorbis Vorbis for me I get: DEA libvorbis libvorbis DEA D vorbis Vorbis I'm not sure why. Anyway try codec libvorbis From lou at lrcd.com Wed Jul 11 02:08:52 2012 From: lou at lrcd.com (Lou) Date: Tue, 10 Jul 2012 16:08:52 -0800 Subject: [FFmpeg-user] thread hijacking In-Reply-To: References: Message-ID: <1341965332.32322.140661100432617.55B9CC20@webmail.messagingengine.com> On Tue, Jul 10, 2012, at 01:26 PM, Roger Pack wrote: > Maybe the mailing engine could be updated to create a new thread when > the subject is changed, anybody know/any feedback on this? -r Sometimes a user may want to change the subject yet stay in the thread, but more importantly, and I only rooted around briefly, is that I do not believe this is possible in mailman. Lou From gabri.ns at gmail.com Wed Jul 11 02:10:47 2012 From: gabri.ns at gmail.com (Gabri Nurtinaz Shally) Date: Wed, 11 Jul 2012 07:10:47 +0700 Subject: [FFmpeg-user] Vorbis codec In-Reply-To: References: <4C2C614B.9000000@hi-iberia.es> <1341924833558-4651636.post@n4.nabble.com> Message-ID: vorbis is ffmpeg implementation of vorbis codec, aiming to be better then libvorbis that provided from xiph.org it still experimental, so use libvorbis for everyday use. On Jul 11, 2012 7:07 AM, "Roger Pack" wrote: > > ffmepg -codecs > > > > Gives > > D A vorbis Vorbis > > for me I get: > DEA libvorbis libvorbis > DEA D vorbis Vorbis > > I'm not sure why. Anyway try codec libvorbis > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mbradshaw at sorensonmedia.com Wed Jul 11 02:12:48 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 10 Jul 2012 18:12:48 -0600 Subject: [FFmpeg-user] Vorbis codec In-Reply-To: <1341924833558-4651636.post@n4.nabble.com> References: <4C2C614B.9000000@hi-iberia.es> <1341924833558-4651636.post@n4.nabble.com> Message-ID: On Tue, Jul 10, 2012 at 6:53 AM, asha wrote: > Hi > I have upgraded ffmpeg from to 0.6 >From what version? > M trying to convert video into webm,M getting error that is > > [root at CWMNode-A tmp]# ffmpeg -i 113.avi -vcodec libvpx -b 500k -qmin 10 > -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -acodec vorbis -ab 128k > -f webm output.webm > FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers You're using version 0.6.1. That's really old. You should really upgrade to current git head. --Michael From phpdev at ehrhardt.nl Wed Jul 11 03:18:04 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 03:18:04 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> Message-ID: Andy Sheen in gmane.comp.video.ffmpeg.user (Tue, 10 Jul 2012 23:34:12 +0100): >Roger Pack wrote on Tue 10 Jul at 21:26 UK time > >> Dang. Some windows pthread race condition woe? > >Yup. What happens if you --enable-w32threads? I do not know why Zeranoe disabled w32threads, but in my builds w32threads are enabled. This might be the reason why the spikes are not present when I am using my own builds... >Where now? Any build from this year is useless as far as I'm concerned... Could you try my build of the 20120622 sources? Lots of libs are not enabled because I do not need them, but libmp3lame, libfaac and libx264 are compiled in: http://x32.elijst.nl/FFmpeg-20120622.7z Of course, I am also interested in the speed of the transcoding, so please give me feedback on that as well. I was frustrated that my own MinGW builds were slower than Zeranoe's builds, so I tried MinGW64 on Windows for a change. Older compiler (4.2.5), but the resulting binaries were quite up-to-speed. Jan From chaupv79 at hotmail.com Wed Jul 11 04:35:51 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Wed, 11 Jul 2012 02:35:51 +0000 Subject: [FFmpeg-user] undefined reference to sws_getContext and others library linking question In-Reply-To: References: <1341445308-22609-1-git-send-email-michaelni@gmx.at>, <20120710002050.GG25121@kiste2>, , Message-ID: Hi Everybody, (sorry for inconvenence: ffmpeg-user can't receive this big email, it limited in 60KB, I just want you to see full error message) I compiled ffmpeg-0.11.1 on linux, I want to use its library and header in a small specific c program to use av_register_all() in ffmpeg library, I am having trouble in linking ffmpeg. 0) I use Centos 6.3 for a linux machine. 1) I have compiled ffmpeg-0.11.1 in /root/ffmpeg-source/working/ffmpeg ( I use 'configure' and 'make', not use 'make install' because i want to manage ffmpeg in a specific directory) ./configure --enable-gpl --enable-avfilter --enable-swscale --disable-shared --enable-libmp3lame --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 -- enable-version3 make 2) I make a test.c in /root/ffmpeg-source/working/test.c as below: #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include int main() { avcodec_register_all(); avfilter_register_all(); av_register_all(); printf("Test FFmpeg library! \n"); return 1; } 2.1) make a link inside working: ln -s ../ffmpeg ffmpeg 3) I make a Makefile in /root/ffmpeg-source/working/ as below: PROGRAM = test INCLUDEDIRS = -Iffmpeg/ LIBDIRS = \ -L./ffmpeg/libavcodec \ -L./ffmpeg/libavformat \ -L./ffmpeg/libavfilter \ -L./ffmpeg/libpostproc \ -L./ffmpeg/libswresample \ -L./ffmpeg/libswscale \ -L./ffmpeg/libavdevice \ -L./ffmpeg/libavutil LIBS = -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl CXXSOURCES = test.c CXXOBJECTS = $(CXXSOURCES:.c=.o) HEADERFLAGS = $(INCLUDEDIRS) CXX = gcc LDFLAGS = $(LIBDIRS) $(LIBS) all: $(PROGRAM) $(PROGRAM): $(CXXOBJECTS) $(CXX) -o $@ $(CXXOBJECTS) $(LDFLAGS) test.o: test.c $(CXX) $(HEADERFLAGS) -c -o test.o test.c clean: $(RM) -f $(CXXOBJECTS) $(PROGRAM) => When I compile: [root at CENT6 working]# make gcc -Iffmpeg/ -c -o test.o test.c gcc -o test test.o -L./ffmpeg/libavcodec -L./ffmpeg/libavformat -L./ffmpeg/libavfilter -L./ffmpeg/libpostproc -L./ffmpeg/libswresample -L./ffmpeg/libswscale -L./ffmpeg/libavdevice -L./ffmpeg/libavutil -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl ./ffmpeg/libavfilter/libavfilter.a(vf_mp.o): In function `sws_getContextFromCmdLine': /root/ffmpeg-source/ffmpeg/libavfilter/vf_mp.c:324: undefined reference to `sws_getContext' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `config_props': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:232: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `query_formats': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:136: undefined reference to `sws_isSupportedInput' /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:145: undefined reference to `sws_isSupportedOutput' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `scale_slice': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:345: undefined reference to `sws_scale' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:120: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `init': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:100: undefined reference to `sws_get_class' ./ffmpeg/libavfilter/libavfilter.a(af_aconvert.o): In function `config_output': /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:116: undefined reference to `swr_alloc_set_opts' /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:122: undefined reference to `swr_init' ./ffmpeg/libavfilter/libavfilter.a(af_aconvert.o): In function `filter_samples': /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:146: undefined reference to `swr_convert' ./ffmpeg/libavfilter/libavfilter.a(af_aconvert.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:68: undefined reference to `swr_free' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `config_output': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:140: undefined reference to `swr_alloc_set_opts' /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:147: undefined reference to `swr_init' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `request_frame': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:228: undefined reference to `swr_convert' /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:241: undefined reference to `swr_next_pts' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `filter_samples': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:185: undefined reference to `swr_next_pts' /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:192: undefined reference to `swr_convert' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `init': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:51: undefined reference to `swr_alloc' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:82: undefined reference to `swr_free' ./ffmpeg/libavfilter/libavfilter.a(af_pan.o): In function `config_props': /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:270: undefined reference to `swr_alloc_set_opts' /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:315: undefined reference to `swr_set_matrix' /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:294: undefined reference to `swr_set_channel_mapping' /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:318: undefined reference to `swr_init' ./ffmpeg/libavfilter/libavfilter.a(af_pan.o): In function `filter_samples': /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:354: undefined reference to `swr_convert' ./ffmpeg/libavfilter/libavfilter.a(af_pan.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:366: undefined reference to `swr_free' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:221: undefined reference to `lame_encode_flush' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_int16': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:165: undefined reference to `lame_encode_buffer_interleaved' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_float': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:191: undefined reference to `lame_encode_buffer_float' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_int32': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:180: undefined reference to `lame_encode_buffer_int' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_int16': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_buffer' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:65: undefined reference to `lame_close' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:77: undefined reference to `lame_init' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:81: undefined reference to `lame_set_num_channels' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:82: undefined reference to `lame_set_mode' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:85: undefined reference to `lame_set_in_samplerate' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:86: undefined reference to `lame_set_out_samplerate' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:90: undefined reference to `lame_set_quality' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:92: undefined reference to `lame_set_quality' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:96: undefined reference to `lame_set_VBR' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:97: undefined reference to `lame_set_VBR_quality' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:100: undefined reference to `lame_set_brate' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:104: undefined reference to `lame_set_bWriteVbrTag' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:107: undefined reference to `lame_set_disable_reservoir' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:110: undefined reference to `lame_init_params' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:116: undefined reference to `lame_get_encoder_delay' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:119: undefined reference to `lame_get_framesize' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `submit_stats': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:135: undefined reference to `th_encode_ctl' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `get_stats': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:94: undefined reference to `th_encode_ctl' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `encode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:294: undefined reference to `th_encode_ycbcr_in' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:317: undefined reference to `th_encode_packetout' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:274: undefined reference to `th_encode_packetout' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `encode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:350: undefined reference to `th_encode_free' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:163: undefined reference to `th_info_init' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:215: undefined reference to `th_encode_alloc' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:223: undefined reference to `th_info_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:225: undefined reference to `th_encode_ctl' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:250: undefined reference to `th_comment_init' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:252: undefined reference to `th_encode_flushheader' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:256: undefined reference to `th_comment_clear' ./ffmpeg/libavcodec/libavcodec.a(libvo-aacenc.o): In function `aac_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:82: undefined reference to `voGetAACEncAPI' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:84: undefined reference to `cmnMemAlloc' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:85: undefined reference to `cmnMemCopy' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:86: undefined reference to `cmnMemFree' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:87: undefined reference to `cmnMemSet' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:88: undefined reference to `cmnMemCheck' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:299: undefined reference to `vorbis_analysis_buffer' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:307: undefined reference to `vorbis_analysis_wrote' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:323: undefined reference to `vorbis_analysis_blockout' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:324: undefined reference to `vorbis_analysis' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:326: undefined reference to `vorbis_bitrate_addblock' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:330: undefined reference to `vorbis_bitrate_flushpacket' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:315: undefined reference to `vorbis_analysis_wrote' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:183: undefined reference to `vorbis_analysis_wrote' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:185: undefined reference to `vorbis_block_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:186: undefined reference to `vorbis_dsp_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:187: undefined reference to `vorbis_info_clear' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:207: undefined reference to `vorbis_info_init' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_init_encoder': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:101: undefined reference to `vorbis_encode_setup_vbr' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:110: undefined reference to `vorbis_encode_setup_managed' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:117: undefined reference to `vorbis_encode_ctl' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:163: undefined reference to `vorbis_encode_setup_init' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:212: undefined reference to `vorbis_analysis_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:218: undefined reference to `vorbis_block_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:224: undefined reference to `vorbis_comment_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:226: undefined reference to `vorbis_comment_add_tag' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:228: undefined reference to `vorbis_analysis_headerout' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:260: undefined reference to `vorbis_comment_clear' ./ffmpeg/libavcodec/libavcodec.a(libvpxdec.o): In function `vp8_decode': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:68: undefined reference to `vpx_codec_decode' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:80: undefined reference to `vpx_codec_get_frame' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:70: undefined reference to `vpx_codec_error' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:71: undefined reference to `vpx_codec_error_detail' ./ffmpeg/libavcodec/libavcodec.a(libvpxdec.o): In function `vp8_free': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:110: undefined reference to `vpx_codec_destroy' ./ffmpeg/libavcodec/libavcodec.a(libvpxdec.o): In function `vp8_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:46: undefined reference to `vpx_codec_version_str' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:47: undefined reference to `vpx_codec_build_config' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:49: undefined reference to `vpx_codec_vp8_dx_algo' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:49: undefined reference to `vpx_codec_dec_init_ver' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:50: undefined reference to `vpx_codec_error' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `vp8_encode': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:521: undefined reference to `vpx_codec_encode' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `queue_frames': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:442: undefined reference to `vpx_codec_get_cx_data' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `vp8_free': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:220: undefined reference to `vpx_codec_destroy' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `log_encoder_error': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:105: undefined reference to `vpx_codec_error' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:106: undefined reference to `vpx_codec_error_detail' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `codecctl_int': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:206: undefined reference to `vpx_codec_control_' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `vp8_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:235: undefined reference to `vpx_codec_version_str' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:236: undefined reference to `vpx_codec_build_config' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:238: undefined reference to `vpx_codec_vp8_cx_algo' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:238: undefined reference to `vpx_codec_enc_config_default' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:239: undefined reference to `vpx_codec_err_to_string' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:334: undefined reference to `vpx_codec_enc_init_ver' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:364: undefined reference to `vpx_img_wrap' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:156: undefined reference to `x264_picture_init' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:158: undefined reference to `x264_bit_depth' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:176: undefined reference to `x264_encoder_reconfig' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:187: undefined reference to `x264_encoder_encode' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:193: undefined reference to `x264_encoder_delayed_frames' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init_static': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:538: undefined reference to `x264_bit_depth' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_close': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:228: undefined reference to `x264_encoder_close' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:281: undefined reference to `x264_param_default' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:289: undefined reference to `x264_param_default_preset' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:302: undefined reference to `x264_param_parse' ./ffmpeg/libavcodec/libavcodec.a(libx264.o):/root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:398: more undefined references to `x264_param_parse' follow ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:437: undefined reference to `x264_param_apply_fastfirstpass' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:440: undefined reference to `x264_param_apply_profile' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:478: undefined reference to `x264_encoder_open_125' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:489: undefined reference to `x264_encoder_headers' ./ffmpeg/libavfilter/libavfilter.a(vf_palette.o): In function `put_image': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_palette.c:178: undefined reference to `sws_convertPalette8ToPacked32' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `vf_open': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:203: undefined reference to `pp_get_mode_by_name_and_quality' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o):/root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:203: more undefined references to `pp_get_mode_by_name_and_quality' follow ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:79: undefined reference to `pp_free_mode' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o):/root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:79: more undefined references to `pp_free_mode' follow ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:81: undefined reference to `pp_free_context' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `put_image': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:144: undefined reference to `pp_postprocess' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `config': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:69: undefined reference to `pp_free_context' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:70: undefined reference to `pp_get_context' ./ffmpeg/libavfilter/libavfilter.a(vf_sab.o): In function `blur': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:185: undefined reference to `sws_scale' ./ffmpeg/libavfilter/libavfilter.a(vf_sab.o): In function `allocStuff': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:103: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:106: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:109: undefined reference to `sws_freeVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:110: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:120: undefined reference to `sws_freeVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:121: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:135: undefined reference to `sws_freeVec' ./ffmpeg/libavfilter/libavfilter.a(vf_sab.o): In function `freeBuffers': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:155: undefined reference to `sws_freeContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:155: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_smartblur.o): In function `freeBuffers': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:114: undefined reference to `sws_freeContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:114: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_smartblur.o): In function `allocStuff': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:86: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:87: undefined reference to `sws_scaleVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:91: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:94: undefined reference to `sws_freeVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:86: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:87: undefined reference to `sws_scaleVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:91: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:94: undefined reference to `sws_freeVec' ./ffmpeg/libavfilter/libavfilter.a(vf_smartblur.o): In function `blur': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:136: undefined reference to `sws_scale' ./ffmpeg/libavfilter/libavfilter.a(lswsutils.o): In function `ff_scale_image': /root/ffmpeg-source/ffmpeg/libavfilter/lswsutils.c:29: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/lswsutils.c:45: undefined reference to `sws_scale' /root/ffmpeg-source/ffmpeg/libavfilter/lswsutils.c:48: undefined reference to `sws_freeContext' ./ffmpeg/libavformat/libavformat.a(udp.o): In function `udp_close': /root/ffmpeg-source/ffmpeg/libavformat/udp.c:773: undefined reference to `pthread_cancel' /root/ffmpeg-source/ffmpeg/libavformat/udp.c:774: undefined reference to `pthread_join' ./ffmpeg/libavformat/libavformat.a(udp.o): In function `udp_open': /root/ffmpeg-source/ffmpeg/libavformat/udp.c:660: undefined reference to `pthread_create' ./ffmpeg/libavcodec/libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:183: undefined reference to `vorbis_info_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:184: undefined reference to `vorbis_comment_clear' ./ffmpeg/libavcodec/libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:160: undefined reference to `vorbis_synthesis' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:161: undefined reference to `vorbis_synthesis_blockin' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:166: undefined reference to `vorbis_synthesis_pcmout' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:170: undefined reference to `vorbis_synthesis_read' ./ffmpeg/libavcodec/libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:41: undefined reference to `vorbis_info_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:42: undefined reference to `vorbis_comment_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:93: undefined reference to `vorbis_synthesis_headerin' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:103: undefined reference to `vorbis_synthesis_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:104: undefined reference to `vorbis_block_init' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `frame_thread_free': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:756: undefined reference to `pthread_join' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `thread_free': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:251: undefined reference to `pthread_join' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `frame_thread_init': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:873: undefined reference to `pthread_create' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `thread_init': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:339: undefined reference to `pthread_create' ./ffmpeg/libavcodec/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_free': /root/ffmpeg-source/ffmpeg/libavcodec/frame_thread_encoder.c:199: undefined reference to `pthread_join' ./ffmpeg/libavcodec/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_init': /root/ffmpeg-source/ffmpeg/libavcodec/frame_thread_encoder.c:174: undefined reference to `pthread_create' collect2: ld returned 1 exit status make: *** [test] Error 1 ==== Do you guy have experience on that? could you show me a hint how to do it? Look forward to hearing from you soon, Thank You, Chau Pham From chaupv79 at hotmail.com Wed Jul 11 04:39:00 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Wed, 11 Jul 2012 02:39:00 +0000 Subject: [FFmpeg-user] undefined reference to sws_getContext and others library linking question In-Reply-To: References: <1341445308-22609-1-git-send-email-michaelni@gmx.at>, <20120710002050.GG25121@kiste2>, , , Message-ID: Hi Everybody, (sorry for inconvenence: ffmpeg-user can't receive this big email, it limited in 60KB, I just want you to see full error message) I compiled ffmpeg-0.11.1 on linux, I want to use its library and header in a small specific c program to use av_register_all() in ffmpeg library, I am having trouble in linking ffmpeg. 0) I use Centos 6.3 for a linux machine. 1) I have compiled ffmpeg-0.11.1 in /root/ffmpeg-source/working/ffmpeg ( I use 'configure' and 'make', not use 'make install' because i want to manage ffmpeg in a specific directory) ./configure --enable-gpl --enable-avfilter --enable-swscale --disable-shared --enable-libmp3lame --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 -- enable-version3 make 2) I make a test.c in /root/ffmpeg-source/working/test.c as below: #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include int main() { avcodec_register_all(); avfilter_register_all(); av_register_all(); printf("Test FFmpeg library! \n"); return 1; } 2.1) make a link inside working: ln -s ../ffmpeg ffmpeg 3) I make a Makefile in /root/ffmpeg-source/working/ as below: PROGRAM = test INCLUDEDIRS = -Iffmpeg/ LIBDIRS = \ -L./ffmpeg/libavcodec \ -L./ffmpeg/libavformat \ -L./ffmpeg/libavfilter \ -L./ffmpeg/libpostproc \ -L./ffmpeg/libswresample \ -L./ffmpeg/libswscale \ -L./ffmpeg/libavdevice \ -L./ffmpeg/libavutil LIBS = -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl CXXSOURCES = test.c CXXOBJECTS = $(CXXSOURCES:.c=.o) HEADERFLAGS = $(INCLUDEDIRS) CXX = gcc LDFLAGS = $(LIBDIRS) $(LIBS) all: $(PROGRAM) $(PROGRAM): $(CXXOBJECTS) $(CXX) -o $@ $(CXXOBJECTS) $(LDFLAGS) test.o: test.c $(CXX) $(HEADERFLAGS) -c -o test.o test.c clean: $(RM) -f $(CXXOBJECTS) $(PROGRAM) => When I compile: [root at CENT6 working]# make gcc -Iffmpeg/ -c -o test.o test.c gcc -o test test.o -L./ffmpeg/libavcodec -L./ffmpeg/libavformat -L./ffmpeg/libavfilter -L./ffmpeg/libpostproc -L./ffmpeg/libswresample -L./ffmpeg/libswscale -L./ffmpeg/libavdevice -L./ffmpeg/libavutil -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl ./ffmpeg/libavfilter/libavfilter.a(vf_mp.o): In function `sws_getContextFromCmdLine': /root/ffmpeg-source/ffmpeg/libavfilter/vf_mp.c:324: undefined reference to `sws_getContext' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `config_props': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:232: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `query_formats': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:136: undefined reference to `sws_isSupportedInput' /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:145: undefined reference to `sws_isSupportedOutput' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `scale_slice': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:345: undefined reference to `sws_scale' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:120: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_scale.o): In function `init': /root/ffmpeg-source/ffmpeg/libavfilter/vf_scale.c:100: undefined reference to `sws_get_class' ./ffmpeg/libavfilter/libavfilter.a(af_aconvert.o): In function `config_output': /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:116: undefined reference to `swr_alloc_set_opts' /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:122: undefined reference to `swr_init' ./ffmpeg/libavfilter/libavfilter.a(af_aconvert.o): In function `filter_samples': /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:146: undefined reference to `swr_convert' ./ffmpeg/libavfilter/libavfilter.a(af_aconvert.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/af_aconvert.c:68: undefined reference to `swr_free' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `config_output': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:140: undefined reference to `swr_alloc_set_opts' /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:147: undefined reference to `swr_init' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `request_frame': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:228: undefined reference to `swr_convert' /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:241: undefined reference to `swr_next_pts' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `filter_samples': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:185: undefined reference to `swr_next_pts' /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:192: undefined reference to `swr_convert' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `init': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:51: undefined reference to `swr_alloc' ./ffmpeg/libavfilter/libavfilter.a(af_aresample.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/af_aresample.c:82: undefined reference to `swr_free' ./ffmpeg/libavfilter/libavfilter.a(af_pan.o): In function `config_props': /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:270: undefined reference to `swr_alloc_set_opts' /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:315: undefined reference to `swr_set_matrix' /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:294: undefined reference to `swr_set_channel_mapping' /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:318: undefined reference to `swr_init' ./ffmpeg/libavfilter/libavfilter.a(af_pan.o): In function `filter_samples': /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:354: undefined reference to `swr_convert' ./ffmpeg/libavfilter/libavfilter.a(af_pan.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/af_pan.c:366: undefined reference to `swr_free' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:221: undefined reference to `lame_encode_flush' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_int16': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:165: undefined reference to `lame_encode_buffer_interleaved' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_float': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:191: undefined reference to `lame_encode_buffer_float' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_int32': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:180: undefined reference to `lame_encode_buffer_int' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `encode_frame_int16': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_buffer' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:65: undefined reference to `lame_close' ./ffmpeg/libavcodec/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:77: undefined reference to `lame_init' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:81: undefined reference to `lame_set_num_channels' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:82: undefined reference to `lame_set_mode' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:85: undefined reference to `lame_set_in_samplerate' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:86: undefined reference to `lame_set_out_samplerate' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:90: undefined reference to `lame_set_quality' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:92: undefined reference to `lame_set_quality' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:96: undefined reference to `lame_set_VBR' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:97: undefined reference to `lame_set_VBR_quality' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:100: undefined reference to `lame_set_brate' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:104: undefined reference to `lame_set_bWriteVbrTag' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:107: undefined reference to `lame_set_disable_reservoir' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:110: undefined reference to `lame_init_params' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:116: undefined reference to `lame_get_encoder_delay' /root/ffmpeg-source/ffmpeg/libavcodec/libmp3lame.c:119: undefined reference to `lame_get_framesize' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `submit_stats': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:135: undefined reference to `th_encode_ctl' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `get_stats': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:94: undefined reference to `th_encode_ctl' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `encode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:294: undefined reference to `th_encode_ycbcr_in' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:317: undefined reference to `th_encode_packetout' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:274: undefined reference to `th_encode_packetout' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `encode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:350: undefined reference to `th_encode_free' ./ffmpeg/libavcodec/libavcodec.a(libtheoraenc.o): In function `encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:163: undefined reference to `th_info_init' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:215: undefined reference to `th_encode_alloc' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:223: undefined reference to `th_info_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:225: undefined reference to `th_encode_ctl' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:250: undefined reference to `th_comment_init' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:252: undefined reference to `th_encode_flushheader' /root/ffmpeg-source/ffmpeg/libavcodec/libtheoraenc.c:256: undefined reference to `th_comment_clear' ./ffmpeg/libavcodec/libavcodec.a(libvo-aacenc.o): In function `aac_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:82: undefined reference to `voGetAACEncAPI' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:84: undefined reference to `cmnMemAlloc' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:85: undefined reference to `cmnMemCopy' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:86: undefined reference to `cmnMemFree' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:87: undefined reference to `cmnMemSet' /root/ffmpeg-source/ffmpeg/libavcodec/libvo-aacenc.c:88: undefined reference to `cmnMemCheck' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:299: undefined reference to `vorbis_analysis_buffer' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:307: undefined reference to `vorbis_analysis_wrote' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:323: undefined reference to `vorbis_analysis_blockout' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:324: undefined reference to `vorbis_analysis' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:326: undefined reference to `vorbis_bitrate_addblock' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:330: undefined reference to `vorbis_bitrate_flushpacket' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:315: undefined reference to `vorbis_analysis_wrote' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:183: undefined reference to `vorbis_analysis_wrote' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:185: undefined reference to `vorbis_block_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:186: undefined reference to `vorbis_dsp_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:187: undefined reference to `vorbis_info_clear' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:207: undefined reference to `vorbis_info_init' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_init_encoder': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:101: undefined reference to `vorbis_encode_setup_vbr' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:110: undefined reference to `vorbis_encode_setup_managed' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:117: undefined reference to `vorbis_encode_ctl' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:163: undefined reference to `vorbis_encode_setup_init' ./ffmpeg/libavcodec/libavcodec.a(libvorbisenc.o): In function `oggvorbis_encode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:212: undefined reference to `vorbis_analysis_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:218: undefined reference to `vorbis_block_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:224: undefined reference to `vorbis_comment_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:226: undefined reference to `vorbis_comment_add_tag' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:228: undefined reference to `vorbis_analysis_headerout' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisenc.c:260: undefined reference to `vorbis_comment_clear' ./ffmpeg/libavcodec/libavcodec.a(libvpxdec.o): In function `vp8_decode': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:68: undefined reference to `vpx_codec_decode' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:80: undefined reference to `vpx_codec_get_frame' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:70: undefined reference to `vpx_codec_error' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:71: undefined reference to `vpx_codec_error_detail' ./ffmpeg/libavcodec/libavcodec.a(libvpxdec.o): In function `vp8_free': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:110: undefined reference to `vpx_codec_destroy' ./ffmpeg/libavcodec/libavcodec.a(libvpxdec.o): In function `vp8_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:46: undefined reference to `vpx_codec_version_str' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:47: undefined reference to `vpx_codec_build_config' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:49: undefined reference to `vpx_codec_vp8_dx_algo' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:49: undefined reference to `vpx_codec_dec_init_ver' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxdec.c:50: undefined reference to `vpx_codec_error' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `vp8_encode': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:521: undefined reference to `vpx_codec_encode' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `queue_frames': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:442: undefined reference to `vpx_codec_get_cx_data' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `vp8_free': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:220: undefined reference to `vpx_codec_destroy' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `log_encoder_error': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:105: undefined reference to `vpx_codec_error' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:106: undefined reference to `vpx_codec_error_detail' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `codecctl_int': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:206: undefined reference to `vpx_codec_control_' ./ffmpeg/libavcodec/libavcodec.a(libvpxenc.o): In function `vp8_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:235: undefined reference to `vpx_codec_version_str' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:236: undefined reference to `vpx_codec_build_config' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:238: undefined reference to `vpx_codec_vp8_cx_algo' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:238: undefined reference to `vpx_codec_enc_config_default' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:239: undefined reference to `vpx_codec_err_to_string' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:334: undefined reference to `vpx_codec_enc_init_ver' /root/ffmpeg-source/ffmpeg/libavcodec/libvpxenc.c:364: undefined reference to `vpx_img_wrap' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:156: undefined reference to `x264_picture_init' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:158: undefined reference to `x264_bit_depth' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:176: undefined reference to `x264_encoder_reconfig' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:187: undefined reference to `x264_encoder_encode' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:193: undefined reference to `x264_encoder_delayed_frames' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init_static': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:538: undefined reference to `x264_bit_depth' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_close': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:228: undefined reference to `x264_encoder_close' ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:281: undefined reference to `x264_param_default' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:289: undefined reference to `x264_param_default_preset' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:302: undefined reference to `x264_param_parse' ./ffmpeg/libavcodec/libavcodec.a(libx264.o):/root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:398: more undefined references to `x264_param_parse' follow ./ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init': /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:437: undefined reference to `x264_param_apply_fastfirstpass' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:440: undefined reference to `x264_param_apply_profile' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:478: undefined reference to `x264_encoder_open_125' /root/ffmpeg-source/ffmpeg/libavcodec/libx264.c:489: undefined reference to `x264_encoder_headers' ./ffmpeg/libavfilter/libavfilter.a(vf_palette.o): In function `put_image': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_palette.c:178: undefined reference to `sws_convertPalette8ToPacked32' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `vf_open': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:203: undefined reference to `pp_get_mode_by_name_and_quality' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o):/root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:203: more undefined references to `pp_get_mode_by_name_and_quality' follow ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:79: undefined reference to `pp_free_mode' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o):/root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:79: more undefined references to `pp_free_mode' follow ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `uninit': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:81: undefined reference to `pp_free_context' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `put_image': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:144: undefined reference to `pp_postprocess' ./ffmpeg/libavfilter/libavfilter.a(vf_pp.o): In function `config': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:69: undefined reference to `pp_free_context' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_pp.c:70: undefined reference to `pp_get_context' ./ffmpeg/libavfilter/libavfilter.a(vf_sab.o): In function `blur': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:185: undefined reference to `sws_scale' ./ffmpeg/libavfilter/libavfilter.a(vf_sab.o): In function `allocStuff': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:103: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:106: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:109: undefined reference to `sws_freeVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:110: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:120: undefined reference to `sws_freeVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:121: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:135: undefined reference to `sws_freeVec' ./ffmpeg/libavfilter/libavfilter.a(vf_sab.o): In function `freeBuffers': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:155: undefined reference to `sws_freeContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_sab.c:155: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_smartblur.o): In function `freeBuffers': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:114: undefined reference to `sws_freeContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:114: undefined reference to `sws_freeContext' ./ffmpeg/libavfilter/libavfilter.a(vf_smartblur.o): In function `allocStuff': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:86: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:87: undefined reference to `sws_scaleVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:91: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:94: undefined reference to `sws_freeVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:86: undefined reference to `sws_getGaussianVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:87: undefined reference to `sws_scaleVec' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:91: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:94: undefined reference to `sws_freeVec' ./ffmpeg/libavfilter/libavfilter.a(vf_smartblur.o): In function `blur': /root/ffmpeg-source/ffmpeg/libavfilter/libmpcodecs/vf_smartblur.c:136: undefined reference to `sws_scale' ./ffmpeg/libavfilter/libavfilter.a(lswsutils.o): In function `ff_scale_image': /root/ffmpeg-source/ffmpeg/libavfilter/lswsutils.c:29: undefined reference to `sws_getContext' /root/ffmpeg-source/ffmpeg/libavfilter/lswsutils.c:45: undefined reference to `sws_scale' /root/ffmpeg-source/ffmpeg/libavfilter/lswsutils.c:48: undefined reference to `sws_freeContext' ./ffmpeg/libavformat/libavformat.a(udp.o): In function `udp_close': /root/ffmpeg-source/ffmpeg/libavformat/udp.c:773: undefined reference to `pthread_cancel' /root/ffmpeg-source/ffmpeg/libavformat/udp.c:774: undefined reference to `pthread_join' ./ffmpeg/libavformat/libavformat.a(udp.o): In function `udp_open': /root/ffmpeg-source/ffmpeg/libavformat/udp.c:660: undefined reference to `pthread_create' ./ffmpeg/libavcodec/libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_close': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:183: undefined reference to `vorbis_info_clear' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:184: undefined reference to `vorbis_comment_clear' ./ffmpeg/libavcodec/libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_frame': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:160: undefined reference to `vorbis_synthesis' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:161: undefined reference to `vorbis_synthesis_blockin' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:166: undefined reference to `vorbis_synthesis_pcmout' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:170: undefined reference to `vorbis_synthesis_read' ./ffmpeg/libavcodec/libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_init': /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:41: undefined reference to `vorbis_info_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:42: undefined reference to `vorbis_comment_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:93: undefined reference to `vorbis_synthesis_headerin' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:103: undefined reference to `vorbis_synthesis_init' /root/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:104: undefined reference to `vorbis_block_init' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `frame_thread_free': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:756: undefined reference to `pthread_join' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `thread_free': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:251: undefined reference to `pthread_join' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `frame_thread_init': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:873: undefined reference to `pthread_create' ./ffmpeg/libavcodec/libavcodec.a(pthread.o): In function `thread_init': /root/ffmpeg-source/ffmpeg/libavcodec/pthread.c:339: undefined reference to `pthread_create' ./ffmpeg/libavcodec/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_free': /root/ffmpeg-source/ffmpeg/libavcodec/frame_thread_encoder.c:199: undefined reference to `pthread_join' ./ffmpeg/libavcodec/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_init': /root/ffmpeg-source/ffmpeg/libavcodec/frame_thread_encoder.c:174: undefined reference to `pthread_create' collect2: ld returned 1 exit status make: *** [test] Error 1 ==== Do you guy have experience on that? could you show me a hint how to do it? Look forward to hearing from you soon, Thank You, Chau Pham From philip at turmel.org Wed Jul 11 05:03:38 2012 From: philip at turmel.org (Phil Turmel) Date: Tue, 10 Jul 2012 23:03:38 -0400 Subject: [FFmpeg-user] 2.3 gazillion In-Reply-To: References: <6ff89691e09ee337428ccc0eb0c2cdf2.squirrel@www.picaflor-azul.com> Message-ID: <4FFCED0A.9050009@turmel.org> On 07/10/2012 03:26 PM, Roger Pack wrote: >>> Please read http://ffmpeg.org/contact.html and understand that >>> thread-highjacking should be avoided. >> >> Sorry. Does composing a new email instead of replying fix this? > > Yeah. Kind of odd. No. It's not odd. It's been part of the standard for e-mail clients since November of 1977: http://datatracker.ietf.org/doc/rfc733/?include_text=1 A certain piece of software (graphical, sometime around 1995, I think) that became popular by default didn't follow this standard--it only looked at subject lines when displaying replies. This taught bad habits to a whole generation. Oddly, that software would (and still does) properly insert the "In-Reply-To:" standard headers, screwing up any other email clients that display threaded conversations per the published standard. The lesson is: Hit "reply" when you really want to reply. Hit "compose" when you want to start a new conversation. It really is that simple. HTH, Phil From kalleernst at googlemail.com Wed Jul 11 06:19:01 2012 From: kalleernst at googlemail.com (=?ISO-8859-1?Q?Marco_Baumg=E4rtner?=) Date: Wed, 11 Jul 2012 06:19:01 +0200 Subject: [FFmpeg-user] Time lapse In-Reply-To: References: <4FFC2C98.4000105@googlemail.com> Message-ID: <4FFCFEB5.4030508@googlemail.com> Why? Am 10.07.2012 23:40, schrieb Roger Pack: > but if I were you I would convert the frames to > png, then "remove some" manually, and remix it with the new fps. From pavanvkbgm at gmail.com Wed Jul 11 06:22:34 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Wed, 11 Jul 2012 09:52:34 +0530 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: <4FFCB03E.8090902@gmail.com> References: <4FFCB03E.8090902@gmail.com> Message-ID: ffmpeg stand alone gives me metadata such as duration in its stdout. But I also need at a minimum these three metadata : width, height, number of streams. These three are currently obtained through the metadata program which is essentially using ffmpeg's public metadata API such as AVFormatContext, AVStream etc. Additionally, tt would be great if I can also get such metadata as : file_size, modified_time (which I'm currently getting by reading the filesystem data) What I'm trying to achieve is to execute ffmpeg only once using the right set of options such that I get all the above described metadata along with the thumbnail in one go. I can then parse the output (read from stdout) and then create my structure of metadata. I also had another question: Are "rating" and "tag" metadata fields only applicable to certain file formats? Thanks in advance for all your inputs From krueger at lesspain.de Wed Jul 11 06:27:36 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 11 Jul 2012 06:27:36 +0200 Subject: [FFmpeg-user] Another odd colourspace issue In-Reply-To: References: <4FFC1343.9030602@yahoo.com> <4FFC279B.5090608@mdsh.com> Message-ID: On Tue, Jul 10, 2012 at 7:44 PM, Phil Rhodes wrote: > >> I believe that the colour space is generally decided solely on the frame >> size. > > > I'm pretty sure you're right; at least, I've never been able to exactly > figure it out. Coders? I guess his assumption was concerning how FCP and Kdenlive do it. I could not find a line of code in ffmpeg that sets a stream's color space based on frame size but I might have missed something. In general, there are only three options: 1) the information is in the container for containers that support this type of information (e.g. Mov or MXF) 2) the information is in the stream for bitstream formats that support this kind of information (e.g. MPEG-2 or H.264) 3) the information is not in the file so AFAIK the application has no choice but to guess in case 3) frame size is probably the best heuristic you have if you don't make the user specify it, which some applications like 5D2RGB offer. > > It is of course cack. This problem has been under discussion for quite some > time and it is easy to define how the solution should work, although > actually implementing it requires a proper transform-based colour management > system to be grafted on to ffmpeg, which might have some fairly far-reaching > implications (although it could also be fairly simple, depending on how > ffmpeg is actually laid out internally, which is not information to which we > have easy access). > > I suspect the reasons it has not been fixed are as follows: > > - Fixing it might be a pain > - It's an extremely common problem in software (particularly if you include > studio/full swing issues) and therefore having this problem is not as > stigmatised as it should be. > - Most of the software people who work on ffmpeg are not video engineers and > don't have a very complete knowledge of this area, and don't really > understand why it's a problem or how to solve it and certainly won't take > advice from the likes of us, and finally: > - Well, you sort of get a kind-of picture that has, broadly speaking, red > green and blue in it, give or take, so that's pretty much, more or less, > roughly, okayish, isn't it? > > Remember this stuff is used mainly to feed Youtube, where people just assume > that oranges and reds going super-neon-bright is cool. Man, I know one should not feed trolls like you but this is sickening to read from someone constantly bickering about the priorities of people who make free software in their spare time while you are actually offering so little profound knowledge. Instead you keep making fun of people who have created one of the most remarkable pieces of open source software. If you had ever cared to spend one tenth of the time you spend trolling on this or other lists trying to understand what people do here, you would certainly not make these outrageous statements. What you could do is make good bug reports with samples and some research to help developers improve something, maybe read specs and finally maybe offer a bounty for a given feature or even use a commercial software package and shut the **** up. Instead what's going to happen is that you will, for the xth time, not get it and keep on babbling about how them damn hackers/linux/oss people don't understand what's really important about making video engineering software. I know it's a waste of time but I just could not help it this time. But back to the issue. AFAICS most things are basically in place as far as API is concerned but may not be implemented for all formats/codecs for which color information might be available, e.g. for MPEG-2 and H.264 color information is read from the bitstream if it is there. It is however not used when setting up libswscale for scaling and pixel format conversions AFAICS, which might require some API changes because I cannot see how the scale filter (where the actual pixel format conversions happen) can currently access the color information to set up swscale correctly but that should probably go to the dev list after some more research. From harald.jordan at redstream.at Wed Jul 11 08:55:32 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Wed, 11 Jul 2012 08:55:32 +0200 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: Hey Carl,. ffmpeg started on 2012-07-11 at 08:53:08 Report written to "ffmpeg-20120711-085308.log" Command line: "c:\\ffmpeg.exe" -f rawvideo -r 25 -pix_fmt yuyv422 -s 720x576 -r 25 -i "\\\\.\\pipe\\video185243000" -ac 2 -ar 48000 -f s16le -i "\\\\.\\pipe\\audio185243000" -y -report "c:\\dev\\ffmpegout.mpg" ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:44:54 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 042da8a0] File position before avformat_find_stream_info() is 0 [rawvideo @ 042da8a0] All info found [rawvideo @ 042da8a0] Estimating duration from bitrate, this may be inaccurate [rawvideo @ 042da8a0] File position after avformat_find_stream_info() is 829440 Input #0, rawvideo, from '\\.\pipe\video185243000': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc -----Urspr?ngliche Nachricht----- From: Carl Eugen Hoyos Sent: Saturday, July 07, 2012 1:34 PM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] raw input from named pipes,order of frame delivery Harald Jordan redstream.at> writes: > ffmpeg version N-42016-gc103dc0 One day after this version a patch was committed that claims to fix the hang (ticket #986) ;-( Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From harald.jordan at redstream.at Wed Jul 11 08:57:26 2012 From: harald.jordan at redstream.at (Harald Jordan) Date: Wed, 11 Jul 2012 08:57:26 +0200 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: I read the ticket even before writing the first question, but i did not find out from the ticket in which build the changes were made. Tried the newest version, it writes about the file position after avformat_find_stream_info, does that mean it still searches within the pipes? By the way, i am still trying to figure out wether it works with only audio or video.. takes some time to get it done correctly ffmpeg started on 2012-07-11 at 08:53:08 Report written to "ffmpeg-20120711-085308.log" Command line: "c:\\ffmpeg.exe" -f rawvideo -r 25 -pix_fmt yuyv422 -s 720x576 -r 25 -i "\\\\.\\pipe\\video185243000" -ac 2 -ar 48000 -f s16le -i "\\\\.\\pipe\\audio185243000" -y -report "c:\\dev\\ffmpegout.mpg" ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:44:54 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [rawvideo @ 042da8a0] File position before avformat_find_stream_info() is 0 [rawvideo @ 042da8a0] All info found [rawvideo @ 042da8a0] Estimating duration from bitrate, this may be inaccurate [rawvideo @ 042da8a0] File position after avformat_find_stream_info() is 829440 Input #0, rawvideo, from '\\.\pipe\video185243000': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc -----Urspr?ngliche Nachricht----- From: Carl Eugen Hoyos Sent: Saturday, July 07, 2012 1:34 PM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] raw input from named pipes,order of frame delivery Harald Jordan redstream.at> writes: > ffmpeg version N-42016-gc103dc0 One day after this version a patch was committed that claims to fix the hang (ticket #986) ;-( Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sheen.andy at googlemail.com Wed Jul 11 09:37:18 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 08:37:18 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> Message-ID: <4FFD2D2E.7070506@googlemail.com> Jan Ehrhardt wrote on Wed 11 Jul at 2:18 UK time > Could you try my build of the 20120622 sources? Lots of libs are not > enabled because I do not need them, but libmp3lame, libfaac and libx264 > are compiled in: > http://x32.elijst.nl/FFmpeg-20120622.7z > Thanks I'd love to try, but this site seems to be down for me (tried two connections - work and home). Can you check if the link/file is OK? Andy From ale.schenberg at gmail.com Wed Jul 11 09:42:09 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Wed, 11 Jul 2012 04:42:09 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: Unfortunately I got another error: "In function `stream_component_open': /home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2299: undefined reference to `SDL_getenv' ffplay.o(.text+0x47c2):/home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2301: undefined reference to `SDL_atoi' collect2: ld returned 1 exit status make: *** [ffplay_g] Error 1" 2012/7/8, Carl Eugen Hoyos : > Alexandre Schenberg gmail.com> writes: > >> Is that right? --disable-documentation? configure says it that option >> does not exists > > $ ./configure --help|grep docu > --disable-doc do not build documentation > > Please do not top-post here, it is considered rude. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nicolas.george at normalesup.org Wed Jul 11 09:48:19 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 11 Jul 2012 09:48:19 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] undefined reference to sws_getContext and others library linking question In-Reply-To: References: <1341445308-22609-1-git-send-email-michaelni@gmx.at> <20120710002050.GG25121@kiste2> Message-ID: <20120711074819.GA22065@phare.normalesup.org> Le quartidi 24 messidor, an CCXX, Chau Pham a ?crit?: > LIBS = -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl Since you are about tu use static libraries (you did not put --enable-shared and the error messages show .a files), the -l options must be in dependency order. For example, libavfilter uses libswresample and libswscale and is used by libavdevice, so -lavfilter must come after -lavdevice but before -lswscale and -lswresample. You need also to explicitly add the few system libraries ffmpeg depends on in its default build; you already added -lm and -ldl, but you probably need also libz, and possibly the ALSA, SDL, JACK, etc., libraries, depending on what configure has found. 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 sheen.andy at googlemail.com Wed Jul 11 09:50:15 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 08:50:15 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> Message-ID: <4FFD3037.1040308@googlemail.com> Roger Pack wrote on Wed 11 Jul at 1:05 UK time >> So... ffmpeg_g exists. I run it but I can't get windows windbg to see >> the symbols in the file :(. I also have the same problem with cygwin gdb >> as the compile was done with a mingw compiler... > > Try mingw gdb. Also did you try very sleepy or the other things I mentioned? > -r Hi Roger, No. It just seems an inordinately complex way of finding out what's going on! I'll try sometime today when I can find some time. Andy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From chaupv79 at hotmail.com Wed Jul 11 09:58:48 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Wed, 11 Jul 2012 07:58:48 +0000 Subject: [FFmpeg-user] [FFmpeg-devel] undefined reference to sws_getContext and others library linking question In-Reply-To: <20120711074819.GA22065@phare.normalesup.org> References: <1341445308-22609-1-git-send-email-michaelni@gmx.at>, <20120710002050.GG25121@kiste2>, , , , , <20120711074819.GA22065@phare.normalesup.org> Message-ID: Thank Nicolas, I just compiled successful Regards, Chau Pham Date: Wed, 11 Jul 2012 09:48:19 +0200 From: nicolas.george at normalesup.org To: ffmpeg-devel at ffmpeg.org CC: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] [FFmpeg-devel] undefined reference to sws_getContext and others library linking question Le quartidi 24 messidor, an CCXX, Chau Pham a ?crit : > LIBS = -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl Since you are about tu use static libraries (you did not put --enable-shared and the error messages show .a files), the -l options must be in dependency order. For example, libavfilter uses libswresample and libswscale and is used by libavdevice, so -lavfilter must come after -lavdevice but before -lswscale and -lswresample. You need also to explicitly add the few system libraries ffmpeg depends on in its default build; you already added -lm and -ldl, but you probably need also libz, and possibly the ALSA, SDL, JACK, etc., libraries, depending on what configure has found. Regards, -- Nicolas George _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From kev2m at voila.fr Wed Jul 11 10:29:42 2012 From: kev2m at voila.fr (Native e-King) Date: Wed, 11 Jul 2012 10:29:42 +0200 Subject: [FFmpeg-user] compiling ffmpeg with swscale In-Reply-To: References: <393554371.252241341931605247.JavaMail.www@wwinf7124> <20120710172929.GA17429@phare.normalesup.org> Message-ID: On Tue, Jul 10, 2012 at 7:51 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Tue, Jul 10, 2012 at 11:29 AM, Nicolas George > > I guess your problem is actually of the "c++ sucks" variety. > > Speaking of which, did you surround your includes with extern "C" {}? > No I didn't and that was the problem indeed... Thanks a lot ! (and thanks Carl and Nicolas too !) -- NeK From y11022053 at gmail.com Wed Jul 11 10:35:10 2012 From: y11022053 at gmail.com (=?GB2312?B?1LDUrA==?=) Date: Wed, 11 Jul 2012 16:35:10 +0800 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: use "grep SDL_atoi [path of SDL libs] -R", to search which lib*.a contains the implement of " SDL_atoi ", then include "-l" + [the lib*.a] and include -L[the path of lib*.a] in your compile command. 2012/7/11 Alexandre Schenberg > Unfortunately I got another error: > > "In function `stream_component_open': > /home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2299: undefined reference > to `SDL_getenv' > ffplay.o(.text+0x47c2):/home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2301: > undefined reference to `SDL_atoi' > collect2: ld returned 1 exit status > make: *** [ffplay_g] Error 1" > > 2012/7/8, Carl Eugen Hoyos : > > Alexandre Schenberg gmail.com> writes: > > > >> Is that right? --disable-documentation? configure says it that option > >> does not exists > > > > $ ./configure --help|grep docu > > --disable-doc do not build documentation > > > > Please do not top-post here, it is considered rude. > > > > Carl Eugen > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nichot20 at yahoo.com Wed Jul 11 10:37:03 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Wed, 11 Jul 2012 09:37:03 +0100 Subject: [FFmpeg-user] Another odd colourspace issue In-Reply-To: References: <4FFC1343.9030602@yahoo.com> <4FFC279B.5090608@mdsh.com> Message-ID: <4FFD3B2F.1090109@yahoo.com> On 11/07/12 05:27, Robert Kr?ger wrote: > On Tue, Jul 10, 2012 at 7:44 PM, Phil Rhodes wrote: >> >>> I believe that the colour space is generally decided solely on the frame >>> size. >> >> >> I'm pretty sure you're right; at least, I've never been able to exactly >> figure it out. Coders? > I guess his assumption was concerning how FCP and Kdenlive do it. I > could not find a line of code in ffmpeg that sets a stream's color > space based on frame size but I might have missed something. > Right on both counts, I couldn't find anything either but wondered if there was something in the container (mov) I had also missed. The real problem is lack of a readily accessible "waveform monitor" for files that can be relied upon. Both FCP and Kdenlive have them, but clearly have limitations. Since Kdenlive is built on libav* I was somewhat surprised that it didn't stick with ffmpegs defaults. > In general, there are only three options: > 1) the information is in the container for containers that support > this type of information (e.g. Mov or MXF) > 2) the information is in the stream for bitstream formats that support > this kind of information (e.g. MPEG-2 or H.264) > 3) the information is not in the file so AFAIK the application has no > choice but to guess > > in case 3) frame size is probably the best heuristic you have if you > don't make the user specify it, which some applications like 5D2RGB > offer. > >> >> It is of course cack.[...] > > But back to the issue. AFAICS most things are basically in place as > far as API is concerned but may not be implemented for all > formats/codecs for which color information might be available, e.g. > for MPEG-2 and H.264 color information is read from the bitstream if > it is there. It is however not used when setting up libswscale for > scaling and pixel format conversions AFAICS, which might require some > API changes because I cannot see how the scale filter (where the > actual pixel format conversions happen) can currently access the color > information to set up swscale correctly but that should probably go to > the dev list after some more research. > This pretty much what I had reckoned. Swscale seems to have the basic capability, but there seems to be no way, either from stream/container interrogation, or option setting, to invoke it. However clearly third party apps that use the libs (like Kdenlive) are making use of that capability. As a first stab it would be good to be able to specify it the way Mark suggests. I am not sufficiently familiar with ffmpeg internals to see what that would take, but am having a poke around, in between other things... -- Tim From krueger at lesspain.de Wed Jul 11 11:30:26 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 11 Jul 2012 11:30:26 +0200 Subject: [FFmpeg-user] Another odd colourspace issue In-Reply-To: <4FFD3B2F.1090109@yahoo.com> References: <4FFC1343.9030602@yahoo.com> <4FFC279B.5090608@mdsh.com> <4FFD3B2F.1090109@yahoo.com> Message-ID: On Wed, Jul 11, 2012 at 10:37 AM, Tim Nicholson wrote: > On 11/07/12 05:27, Robert Kr?ger wrote: >> On Tue, Jul 10, 2012 at 7:44 PM, Phil Rhodes wrote: >>> >>>> I believe that the colour space is generally decided solely on the frame >>>> size. >>> >>> >>> I'm pretty sure you're right; at least, I've never been able to exactly >>> figure it out. Coders? >> I guess his assumption was concerning how FCP and Kdenlive do it. I >> could not find a line of code in ffmpeg that sets a stream's color >> space based on frame size but I might have missed something. >> > > Right on both counts, I couldn't find anything either but wondered if > there was something in the container (mov) I had also missed. The real > problem is lack of a readily accessible "waveform monitor" for files > that can be relied upon. Both FCP and Kdenlive have them, but clearly > have limitations. > > Since Kdenlive is built on libav* I was somewhat surprised that it > didn't stick with ffmpegs defaults. > >> In general, there are only three options: >> 1) the information is in the container for containers that support >> this type of information (e.g. Mov or MXF) >> 2) the information is in the stream for bitstream formats that support >> this kind of information (e.g. MPEG-2 or H.264) >> 3) the information is not in the file so AFAIK the application has no >> choice but to guess >> >> in case 3) frame size is probably the best heuristic you have if you >> don't make the user specify it, which some applications like 5D2RGB >> offer. >> >>> >>> It is of course cack.[...] >> > >> But back to the issue. AFAICS most things are basically in place as >> far as API is concerned but may not be implemented for all >> formats/codecs for which color information might be available, e.g. >> for MPEG-2 and H.264 color information is read from the bitstream if >> it is there. It is however not used when setting up libswscale for >> scaling and pixel format conversions AFAICS, which might require some >> API changes because I cannot see how the scale filter (where the >> actual pixel format conversions happen) can currently access the color >> information to set up swscale correctly but that should probably go to >> the dev list after some more research. >> > > > This pretty much what I had reckoned. > > Swscale seems to have the basic capability, but there seems to be no > way, either from stream/container interrogation, or option setting, to > invoke it. However clearly third party apps that use the libs (like > Kdenlive) are making use of that capability. yes, they most likely use /** * @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x] * @return -1 if not supported */ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation); before the actual scale is invoked. As Mark had noted, in ffmpeg, more precisely the scale filter the coefficients are hardcoded. > > As a first stab it would be good to be able to specify it the way Mark > suggests. I am not sufficiently familiar with ffmpeg internals to see > what that would take, but am having a poke around, in between other > things... > Yes, the thing is that IMHO it would have to be done in the scale filter. One option would be to set it manually there. That should be rather easy to add (just another filter parameter that is the used to select the coefficients for the sws_setColorspaceDetails invocation). However to be able to set this to sensible defaults from values recovered by parsing container info or bitstreams (i.e. use the already existing and in many cases populated fields AVCodecContext.color_primaries|color_trc|colorspace) IIRC API would have to be extended as I see no way to access that information from a filter as neither AVFilterLink nor AVFilterBufferRefVideoProps contain that information. Furthermore, ffmpeg (the program) needs the information further down the chain so it can correctly write that information into the bitstream or container format (by setting the respective fields of AVCodecContext of the encoded stream) so the file produced also contains that information and doesn't leave other applications guessing. It would be nice to have that confirmed or corrected by one of the developers as I am by no means an expert as far as ffmpeg development is concerned. As I wrote earlier, this is probably the point where this has to be taken to ffmpeg-devel with a specific request. From info at picaflor-azul.com Wed Jul 11 11:36:31 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Wed, 11 Jul 2012 04:36:31 -0500 Subject: [FFmpeg-user] (no subject) Message-ID: Hi, e:~$ ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -pix_fmt png out.mov ffmpeg version 0.10.4-6:0.10.4-0ubuntu0jon2 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 12 2012 23:02:05 with gcc 4.6.3 configuration: --extra-version='6:0.10.4-0ubuntu0jon2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-librtmp --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avutil configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avcodec configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avformat configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static swscale configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static postproc configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static 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 [x11grab @ 0xe3bca0] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1080 [x11grab @ 0xe3bca0] shared memory extension found [x11grab @ 0xe3bca0] Estimating duration from bitrate, this may be inaccurate Input #0, x11grab, from ':0.0': Duration: N/A, start: 1341999152.103009, bitrate: 1990656 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, 1990656 kb/s, 30 tbr, 1000k tbn, 30 tbc Unknown pixel format requested: png. Does anyone know what is going on here? -- Thanks, Anne www.picaflor-azul.com From info at picaflor-azul.com Wed Jul 11 11:39:17 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Wed, 11 Jul 2012 04:39:17 -0500 Subject: [FFmpeg-user] Unknown pixel format requested: png In-Reply-To: References: Message-ID: <6bebc18612c515c99a44674d64ae9e30.squirrel@www.picaflor-azul.com> oops, is it ok to hijack my own thread? > Hi, > > e:~$ ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -pix_fmt png out.mov > > ffmpeg version 0.10.4-6:0.10.4-0ubuntu0jon2 Copyright (c) 2000-2012 the > FFmpeg developers > built on Jun 12 2012 23:02:05 with gcc 4.6.3 > configuration: --extra-version='6:0.10.4-0ubuntu0jon2' --arch=amd64 > --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping > --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype > --enable-libpulse --enable-vaapi --enable-librtmp --enable-gpl > --enable-postproc --enable-x11grab --enable-libcdio --enable-version3 > --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared > --disable-static > avutil configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' > --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu > --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib > --enable-gnutls --enable-libgsm --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-pthreads --enable-zlib --enable-libvpx > --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse > --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp > --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc > --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 > --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static > avcodec configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' > --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu > --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib > --enable-gnutls --enable-libgsm --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-pthreads --enable-zlib --enable-libvpx > --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse > --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp > --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc > --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 > --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static > avformat configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' > --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu > --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib > --enable-gnutls --enable-libgsm --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-pthreads --enable-zlib --enable-libvpx > --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse > --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp > --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc > --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 > --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static > swscale configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' > --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu > --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib > --enable-gnutls --enable-libgsm --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-pthreads --enable-zlib --enable-libvpx > --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse > --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp > --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc > --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 > --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static > postproc configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' > --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu > --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib > --enable-gnutls --enable-libgsm --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-pthreads --enable-zlib --enable-libvpx > --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse > --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp > --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc > --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 > --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static > 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 > [x11grab @ 0xe3bca0] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 > height: 1080 > [x11grab @ 0xe3bca0] shared memory extension found > [x11grab @ 0xe3bca0] Estimating duration from bitrate, this may be > inaccurate > Input #0, x11grab, from ':0.0': > Duration: N/A, start: 1341999152.103009, bitrate: 1990656 kb/s > Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, > 1990656 kb/s, 30 tbr, 1000k tbn, 30 tbc > Unknown pixel format requested: png. > > Does anyone know what is going on here? > > -- > Thanks, > > Anne > www.picaflor-azul.com > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Thanks, Anne www.picaflor-azul.com From info at picaflor-azul.com Wed Jul 11 11:51:08 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Wed, 11 Jul 2012 04:51:08 -0500 Subject: [FFmpeg-user] Unknown pixel format requested: png In-Reply-To: <6bebc18612c515c99a44674d64ae9e30.squirrel@www.picaflor-azul.com> References: <6bebc18612c515c99a44674d64ae9e30.squirrel@www.picaflor-azul.com> Message-ID: Hi, If I just remove the -pix_fmt png part it makes a beautiful looking clip when played with ffplayer. Does removing that part cause any problems? -- Thanks, Anne www.picaflor-azul.com From pavanvkbgm at gmail.com Wed Jul 11 12:07:45 2012 From: pavanvkbgm at gmail.com (Pavan Kulkarni) Date: Wed, 11 Jul 2012 15:37:45 +0530 Subject: [FFmpeg-user] Optimal method to capture both metadata and thumbnails for video files In-Reply-To: References: <4FFCB03E.8090902@gmail.com> Message-ID: > > > i was able to get the other metadata information such as width, height etc > from stdout o/p of ffmpeg command. So I was pleased that two processes (one > for collecting metadata and one for generating thumbnail) have been > combined into one until I realized that to seek to a particular point and > grab the thumbnail, I need to know the total duration of the video. This > duration metadata field I was hoping to read from the o/p of thumbnail > generation command (kind of a chicken and egg). Command below: > *./ffmpeg -ss 18 -i football.mp4 -vf select='eq\(pict_type\,PICT_TYPE_I)' -vframes 1 -an -s 150x100 thumb.jpg* Does anyone know of a way to grab a thumbnail using ffmpeg without having to seek to know the duration before hand? Carl suggested yesterday a basic command on the latest ffmpeg version. It worked alright for .ts files but gave a black thumbnail for .mp4 files. * ./ffmpeg -i Pirates_remux_short.ts thumphd.jpg * Note: I'm trying it out on MIPS From sheen.andy at googlemail.com Wed Jul 11 13:23:47 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 12:23:47 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFACF5D.6040409@googlemail.com> <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> Message-ID: <4FFD6243.8080201@googlemail.com> Roger Pack wrote on Wed 11 Jul at 1:05 UK time >> So... ffmpeg_g exists. I run it but I can't get windows windbg to see >> the symbols in the file :(. I also have the same problem with cygwin gdb >> as the compile was done with a mingw compiler... > > Try mingw gdb. Also did you try very sleepy or the other things I mentioned? > -r very sleepy alters the behaviour of the code (which does indicate a race condition of some sort I guess). Whilst I know off list links aren't liked, this shows 3 runs of exactly the same code http://i275.photobucket.com/albums/jj287/arad85/miscpics/3-encodes.gif 1st run, ffmpeg_g running. You can see the significant lockups (and can also understand perhaps why I think there's such an issue). 2nd run, ffmpeg_g running when very sleepy has already been started but is not "aware" of ffmpeg_g process (i.e. I started very sleepy before I set off the ffmpeg_g process and did not refresh the list of processes in very sleepy). Again, significant lockups. 3rd run is exactly the same encode, but with the refresh button of very sleepy pressed as soon as practical after starting ffmpeg_g (in fact, I haven't been able to get it to lock up at all when sleepy is aware of the process. I'll try mingw gdb later.... From phpdev at ehrhardt.nl Wed Jul 11 14:00:38 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 14:00:38 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> Message-ID: Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 08:37:18 +0100): > >Jan Ehrhardt wrote on Wed 11 Jul at 2:18 UK time >> Could you try my build of the 20120622 sources? Lots of libs are not >> enabled because I do not need them, but libmp3lame, libfaac and libx264 >> are compiled in: >> http://x32.elijst.nl/FFmpeg-20120622.7z > >I'd love to try, but this site seems to be down for me (tried two >connections - work and home). Can you check if the link/file is OK? Bummer. It is our test Windows 2008 R2 server. Sometimes one of the four Apaches does not come up after a reboot. And, yes, a reboot was needed after the monthly updates. It is up again. Jan From sheen.andy at googlemail.com Wed Jul 11 15:00:00 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 14:00:00 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> Message-ID: <4FFD78D0.70307@googlemail.com> Jan Ehrhardt wrote on Wed 11 Jul at 13:00 UK time > Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 08:37:18 > +0100): >> >> Jan Ehrhardt wrote on Wed 11 Jul at 2:18 UK time >>> Could you try my build of the 20120622 sources? Lots of libs are not >>> enabled because I do not need them, but libmp3lame, libfaac and libx264 >>> are compiled in: >>> http://x32.elijst.nl/FFmpeg-20120622.7z >> >> I'd love to try, but this site seems to be down for me (tried two >> connections - work and home). Can you check if the link/file is OK? > > Bummer. It is our test Windows 2008 R2 server. Sometimes one of the four > Apaches does not come up after a reboot. And, yes, a reboot was needed > after the monthly updates. It is up again. And I have it :D Your build does NOT show spikes and is running at a slightly quicker speed (355-360 vs 345-350) when compared to last years Zeranoe builds. > > Jan Andy From ronag89 at gmail.com Wed Jul 11 15:17:19 2012 From: ronag89 at gmail.com (Robert Nagy) Date: Wed, 11 Jul 2012 15:17:19 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFD78D0.70307@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> Message-ID: I can confirm that I have the same problem with "Zeranoe Windows builds spiking CPU to 100% randomly" when setting -threads higher than 4 for libx264 on my quad core cpu. From cehoyos at ag.or.at Wed Jul 11 17:14:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 11 Jul 2012 15:14:06 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> <1341873579.77913.YahooMailNeo@web110510.mail.gq1.yahoo.com> <1341957505.37131.YahooMailNeo@web110503.mail.gq1.yahoo.com> Message-ID: Mike F yahoo.com> writes: > You do not know how much I would like to send a patch > instead writing this message, I am simply not good enough in C Then please open a ticket on trac, do not simply link to this thread, but please add all necessary information there. (For several weeks, I will not have access to a computer with v4l2, so I currently cannot work on that.) Carl Eugen From cehoyos at ag.or.at Wed Jul 11 17:19:23 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 11 Jul 2012 15:19:23 +0000 (UTC) Subject: [FFmpeg-user] Vorbis codec References: <4C2C614B.9000000@hi-iberia.es> Message-ID: James Darnley gmail.com> writes: > The vorbis encoder was disabled. Why do you think so? The vorbis encoder is still here... ("DEA D vorbis Vorbis") Carl Eugen From cehoyos at ag.or.at Wed Jul 11 17:21:04 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 11 Jul 2012 15:21:04 +0000 (UTC) Subject: [FFmpeg-user] Vorbis codec References: <4C2C614B.9000000@hi-iberia.es> <1341924833558-4651636.post@n4.nabble.com> Message-ID: asha persistent.co.in> writes: > FFmpeg version 0.6.1 Please note that this is ancient (and broken, this release is knowing for containing an enormous number of regressions). Please update to current git head if you are a user, if you plan to distribute FFmpeg, please use 0.11 Carl Eugen From phpdev at ehrhardt.nl Wed Jul 11 17:26:59 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 17:26:59 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> Message-ID: <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 14:00:00 +0100): >>> Jan Ehrhardt wrote on Wed 11 Jul at 2:18 UK time >>>> Could you try my build of the 20120622 sources? Lots of libs are not >>>> enabled because I do not need them, but libmp3lame, libfaac and libx264 >>>> are compiled in: >>>> http://x32.elijst.nl/FFmpeg-20120622.7z > >Your build does NOT show spikes and is running at a slightly quicker >speed (355-360 vs 345-350) when compared to last years Zeranoe builds. OK. And thanks for the confirmation of the slight speed advantage. Does anyone know why Zeranoe disabled w32threads? Surely, you must be able to compile with w32threads on Ubuntu as well. Or is one of his additional libraries not compatible with w32threads? His configuration: --enable-gpl --enable-version3 --disable-w32threads --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 Jan From cehoyos at ag.or.at Wed Jul 11 17:11:33 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 11 Jul 2012 15:11:33 +0000 (UTC) Subject: [FFmpeg-user] 2.3 Gazillion References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > You can test the following command line that is visually lossless: > $ ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -qscale 2 out.avi > > I still suspect you don't like the conversion from rgb to yuv, > none of the "typical" encoders support rgb. > You can try the following to test if you prefer the output: > $ ffmpeg -i x11grab -r 30 -s 1920x1080 -i :0.0 -pix_fmt png out.mov Sorry, this should be: $ ffmpeg -i x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec png out.mov Carl Eugen From james.darnley at gmail.com Wed Jul 11 17:43:01 2012 From: james.darnley at gmail.com (James Darnley) Date: Wed, 11 Jul 2012 17:43:01 +0200 Subject: [FFmpeg-user] Unknown pixel format requested: png In-Reply-To: References: <6bebc18612c515c99a44674d64ae9e30.squirrel@www.picaflor-azul.com> Message-ID: <4FFD9F05.5050303@gmail.com> On 2012-07-11 11:51, Anne at Picaflor Azul wrote: > Hi, > > If I just remove the -pix_fmt png part it makes a beautiful looking clip > when played with ffplayer. Does removing that part cause any problems? > No, in fact it fixes your problem because there is no pixel format called png. Did you meant -vcodec? From james.darnley at gmail.com Wed Jul 11 17:48:15 2012 From: james.darnley at gmail.com (James Darnley) Date: Wed, 11 Jul 2012 17:48:15 +0200 Subject: [FFmpeg-user] Vorbis codec In-Reply-To: References: <4C2C614B.9000000@hi-iberia.es> Message-ID: <4FFDA03F.3000809@gmail.com> On 2012-07-11 17:19, Carl Eugen Hoyos wrote: > James Darnley gmail.com> writes: > >> The vorbis encoder was disabled. > > Why do you think so? > The vorbis encoder is still here... > ("DEA D vorbis Vorbis") Huh, what? I'm sure at the time I wrote that (2010-07-01) the decision had been made to disable the vorbis encoder due to its appalling quality and to make people use libvorbis. Doesn't it now require some experimental option? I would like to repeat for clarity that this thread started TWO YEARS AGO and I'm not sure why it has popped up again. From sheen.andy at googlemail.com Wed Jul 11 18:11:03 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 17:11:03 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> Message-ID: <4FFDA597.5010404@googlemail.com> Jan Ehrhardt wrote on Wed 11 Jul at 16:26 UK time > Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 14:00:00 > +0100): >>>> Jan Ehrhardt wrote on Wed 11 Jul at 2:18 UK time >>>>> Could you try my build of the 20120622 sources? Lots of libs are not >>>>> enabled because I do not need them, but libmp3lame, libfaac and libx264 >>>>> are compiled in: >>>>> http://x32.elijst.nl/FFmpeg-20120622.7z >> >> Your build does NOT show spikes and is running at a slightly quicker >> speed (355-360 vs 345-350) when compared to last years Zeranoe builds. > > OK. And thanks for the confirmation of the slight speed advantage. > > Does anyone know why Zeranoe disabled w32threads? Surely, you must be > able to compile with w32threads on Ubuntu as well. Or is one of his > additional libraries not compatible with w32threads? > No idea if it is a related library thing. I have just recompiled the git HEAD from yesterday with w32threads instead of pthreads. For my configuration, that meant having to recompile libx264 with w32threads, but that was the only additional change. The result is quite interesting. Not only do I get no spikes, performance goes from 345-350fps to 380-385fps. Nice :) My config: ffmpeg version N-42432-gb27c7d7 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 11 2012 16:54:29 with gcc 4.7.1 configuration: --arch=x86_64 --prefix=/home/xbmc/source/ffmpeg/build --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-libmp3lame --enable-libx264 --enable-zlib --enable-libfaac --extra-cflags=-I/home/xbmc/source/ffmpeg/build/include --extra-ldflags=-L/home/xbmc/source/ffmpeg/build/lib --enable-nonfree I'm happy to help debug further rather than just stop here.... Andy From info at picaflor-azul.com Wed Jul 11 19:03:49 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Wed, 11 Jul 2012 12:03:49 -0500 Subject: [FFmpeg-user] 2.3 Gazillion In-Reply-To: References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> Message-ID: <26d040ee4ea97afc823fcdb4aaf5761a.squirrel@www.picaflor-azul.com> Hi, > Sorry, this should be: > $ ffmpeg -i x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec png out.mov ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec png pngout.mov ffmpeg version 0.10.4-6:0.10.4-0ubuntu0jon2 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 12 2012 23:02:05 with gcc 4.6.3 configuration: --extra-version='6:0.10.4-0ubuntu0jon2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-librtmp --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avutil configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avcodec configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avformat configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static swscale configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static postproc configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static 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 [x11grab @ 0x1479ca0] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1080 [x11grab @ 0x1479ca0] shared memory extension found [x11grab @ 0x1479ca0] Estimating duration from bitrate, this may be inaccurate Input #0, x11grab, from ':0.0': Duration: N/A, start: 1342025278.664256, bitrate: 1990656 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, 1990656 kb/s, 30 tbr, 1000k tbn, 30 tbc File 'pngout.mov' already exists. Overwrite ? [y/N] y Incompatible pixel format 'bgra' for codec 'png', auto-selecting format 'rgba' [buffer @ 0x1481780] w:1920 h:1080 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x14778a0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1478140] w:1920 h:1080 fmt:bgra -> w:1920 h:1080 fmt:rgba flags:0x4 Output #0, mov, to 'pngout.mov': Metadata: encoder : Lavf53.32.100 Stream #0:0: Video: png (png / 0x20676E70), rgba, 1920x1080, q=2-31, 200 kb/s, 30 tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> png) Press [q] to stop, [?] for help frame= 354 fps= 43 q=0.0 size= 37786kB time=00:00:11.80 bitrate=26232.6kbits/frame= 820 fps= 34 q=0.0 size= 100452kB time=00:00:27.33 bitrate=30106.3kbits/qqqqqqqq^C^C^C This (above) didn't seem to want to stop as readily as other commands I have used. ffplay pngout.mov ffplay version 0.10.4-6:0.10.4-0ubuntu0jon2 Copyright (c) 2003-2012 the FFmpeg developers built on Jun 12 2012 23:02:05 with gcc 4.6.3 configuration: --extra-version='6:0.10.4-0ubuntu0jon2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-librtmp --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avutil configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avcodec configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static avformat configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static swscale configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static postproc configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-libpulse --enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp --enable-frei0r --enable-libopencv --enable-gpl --enable-postproc --enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static 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 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb40c0008c0] moov atom not found pngout.mov: Invalid data found when processing input -- Thanks, Anne www.picaflor-azul.com From phpdev at ehrhardt.nl Wed Jul 11 19:23:08 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 19:23:08 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> Message-ID: Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 17:11:03 +0100): >The result is quite interesting. Not only do I get no spikes, >performance goes from 345-350fps to 380-385fps. Do me a return favour: put it somewhere to download or mail it to me directly. It has all the things I need. Jan From phpdev at ehrhardt.nl Wed Jul 11 19:35:09 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 19:35:09 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> Message-ID: <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 17:11:03 +0100): >I have just recompiled the git HEAD from yesterday with w32threads >instead of pthreads. For my configuration, that meant having to >recompile libx264 with w32threads, but that was the only additional change. BTW: my experience was that the 0.11.1 release was quicker than the git HEAD. You might give it a shot: http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.bz2 Jan From j_hearon at hotmail.com Wed Jul 11 19:49:32 2012 From: j_hearon at hotmail.com (James Hearon) Date: Wed, 11 Jul 2012 17:49:32 +0000 Subject: [FFmpeg-user] ffmpeg libx264 encode for quicktime Message-ID: Hi,I'm new to this list. Hoping i could get some help. I have a recent build of ffmpeg (0.8.12) with libx264 (0.125.x) and am stuck trying to encode an h.264 file with .mov container to playback in quicktime.It plays back the audio fine, but the video is black. The encoded file works fine in VLC, of course,but I need it to play back in quicktime, and I need a .mov container. I'm using input as Apple 10bit, 720p, 422, raw in a .mov container, and trying to get out an h.264 file with the following parameters.Previous versions had problems with Apple 422, but that's all good now, and no need to change the 422 pix_fmt. >ffmpeg -y -i input.mov -acodec libfaac -ac 2 -ar 44100 -ab 80k -vcodec libx264 -s 640x480 -b 670k -g 30 -r 15 output.mov I was reading about b-pyramid not being compatible with quicktime but using -b-pyramid none still causes the black out. Quite awhile back I could do it using -vcodec h264, but that seems all gone now and am stuck trying to figure out how to makeit work using current libx264. I'd be glad to use another lib to encode to h.264, but prefer not to go to another app such mencoder, mp4box, or other containersuch as .mp4, or plugin such as perian for qt. Reason is I need a streamable file in a .mov container, easily playable by clientsusing a browser and basic quicktime decoder. Thanks From paziu at yahoo.com Wed Jul 11 20:29:03 2012 From: paziu at yahoo.com (Mike F) Date: Wed, 11 Jul 2012 11:29:03 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0 In-Reply-To: References: <1341498203.31362.YahooMailNeo@web110516.mail.gq1.yahoo.com> <1341873579.77913.YahooMailNeo@web110510.mail.gq1.yahoo.com> <1341957505.37131.YahooMailNeo@web110503.mail.gq1.yahoo.com> Message-ID: <1342031343.82459.YahooMailNeo@web110510.mail.gq1.yahoo.com> > >> You do not know how much I would like to send a patch >> instead writing this message, I am simply not good enough in C > > Then please open a ticket on trac, do not simply link to this thread, > but please add all necessary information there. > (For several weeks, I will not have access to a computer with v4l2, > so I currently cannot work on that.) > > Carl Eugen Carl, My C programming knowledge is very poor, but I decided to spend some time ( whopping 8 hours ) to see if I can at least attempt to see what "could be done" this is the "patch" I came up with: ================================================================================ --- libavdevice/v4l2.c.orig???? 2012-07-11 14:10:56.000000000 -0400 +++ libavdevice/v4l2.c? 2012-07-11 14:14:23.000000000 -0400 @@ -55,6 +55,7 @@ ?#include "libavutil/parseutils.h" ?#include "libavutil/pixdesc.h" ?#include "libavutil/avstring.h" +#include ?#if CONFIG_LIBV4L2 ?#include @@ -646,6 +647,17 @@ ???? av_free(s->buf_len); ?} +/* un-mute audio */ +static int v4l2_setmute_control(AVFormatContext *s1) +{ +??? struct video_data *s = s1->priv_data; +??? struct v4l2_control control; +??? control.id = V4L2_CID_AUDIO_MUTE; +??? control.value = false; +??? v4l2_ioctl(s->fd, VIDIOC_S_CTRL, &control); +??? return 0; +} + ?static int v4l2_set_parameters(AVFormatContext *s1) ?{ ???? struct video_data *s = s1->priv_data; @@ -849,6 +861,10 @@ ???????? res = AVERROR(EIO); ???????? goto out; ???? } + +??? if ((res = v4l2_setmute_control(s1)) < 0) +???????? goto out; + ???? if ((res = av_image_check_size(s->width, s->height, 0, s1)) < 0) ???????? goto out; ============================================================================ It un-mutes the input via V4L2_CID_AUDIO_MUTE control I understand that the code needs to be written properly ( it is not enough that it "works" - >return 0< for example, etc... ) So please take a look when you get a chance... Would you like me still to open the ticket? Thanks, Mike From sheen.andy at googlemail.com Wed Jul 11 21:12:25 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 20:12:25 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> Message-ID: <4FFDD019.4010304@googlemail.com> Jan Ehrhardt wrote on Wed 11 Jul at 18:35 UK time > Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 17:11:03 > +0100): >> I have just recompiled the git HEAD from yesterday with w32threads >> instead of pthreads. For my configuration, that meant having to >> recompile libx264 with w32threads, but that was the only additional change. > > BTW: my experience was that the 0.11.1 release was quicker than the git > HEAD. You might give it a shot: > http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.bz2 > Running: ffmpeg -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t 0:10:00 -map 0:0 -pass 1 -vcodec libx264 -b 1200k -threads 8 -f mp4 -an nul 3 times and averaging gives head (version N-42432-gb27c7d7) 382fps 0.11.1 (ffmpeg version 0.11.1) 379fps The configure options were identical. > Jan Andy From rogerdpack2 at gmail.com Wed Jul 11 21:56:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 13:56:55 -0600 Subject: [FFmpeg-user] Time lapse In-Reply-To: <4FFCFEB5.4030508@googlemail.com> References: <4FFC2C98.4000105@googlemail.com> <4FFCFEB5.4030508@googlemail.com> Message-ID: > Why? Please don't top post. >> but if I were you I would convert the frames to >> png, then "remove some" manually, and remix it with the new fps. This would allow your new video to still have 30 fps but be "time lapsey" From rogerdpack2 at gmail.com Wed Jul 11 21:57:52 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 13:57:52 -0600 Subject: [FFmpeg-user] raw input from named pipes, order of frame delivery In-Reply-To: References: <20120702113025.mlhabcaukgc4gows@webmail.redstream.at> Message-ID: > I read the ticket even before writing the first question, but i did not find > out from the ticket in which build the changes were made. Yeah if you're using binaries you'd need to check the git hash of the binary and see if that hash is "after" the commit you want or not. From rogerdpack2 at gmail.com Wed Jul 11 22:01:25 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 14:01:25 -0600 Subject: [FFmpeg-user] (no subject) In-Reply-To: References: Message-ID: > Unknown pixel format requested: png. > > Does anyone know what is going on here? Isn't pix_fmt supposed to be something like yuv422p (not like "png")? From rogerdpack2 at gmail.com Wed Jul 11 22:04:15 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 14:04:15 -0600 Subject: [FFmpeg-user] ffmpeg libx264 encode for quicktime In-Reply-To: References: Message-ID: > Hi,I'm new to this list. Hoping i could get some help. > I have a recent build of ffmpeg (0.8.12) I could be wrong, but that's actually (in ffmpeg time frame) rather old now. with libx264 (0.125.x) and am stuck trying to encode an h.264 file with .mov container to playback in quicktime.It plays back the audio fine, but the video is black. >>ffmpeg -y -i input.mov -acodec libfaac -ac 2 -ar 44100 -ab 80k -vcodec libx264 -s 640x480 -b 670k -g 30 -r 15 output.mov There is a "baseline" libx264 profile, or something like that, that's supposed to make more compatible h264 vids, maybe try that? From rogerdpack2 at gmail.com Wed Jul 11 22:08:02 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 14:08:02 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFDA597.5010404@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> Message-ID: > I'm happy to help debug further rather than just stop here.... > > Andy It would be interesting to know why pthreads fails but win32threads succeeds. Also I assume that if you compile it with w32threads enabled and use -threads 0 I presume it does use all the available cores? -r From sheen.andy at googlemail.com Wed Jul 11 22:40:11 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 11 Jul 2012 21:40:11 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> Message-ID: <4FFDE4AB.1090706@googlemail.com> Roger Pack wrote on Wed 11 Jul at 21:08 UK time >> I'm happy to help debug further rather than just stop here.... >> >> Andy > > It would be interesting to know why pthreads fails but win32threads > succeeds. Also I assume that if you compile it with w32threads > enabled and use -threads 0 I presume it does use all the available > cores? I agree it would be interesting - and even more interesting why the commit the git bisect causes the issue (and only with the avconv build and not the ffmpeg from the same source tree). I'm at a bit of a loss to debug further - monitoring the process changes the behaviour - I don't think gdb will do anything useful (I installed mingw gdb and it still doesn't recognise the file - I guess as it's a 32bit build of mingw...) as you can't CTRL-C the process when it is in this state. -threads 0 does use all the cores. I know you're on Zeranoes forums a bit, do you know why he uses pthreads? > -r Andy From rogerdpack2 at gmail.com Wed Jul 11 22:54:21 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 14:54:21 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFDE4AB.1090706@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> Message-ID: >> It would be interesting to know why pthreads fails but win32threads >> succeeds. Also I assume that if you compile it with w32threads >> enabled and use -threads 0 I presume it does use all the available >> cores? > > I agree it would be interesting - and even more interesting why the > commit the git bisect causes the issue (and only with the avconv build > and not the ffmpeg from the same source tree). That commit (if I'm thinking of the right one) set the thread default to "0", which means "auto detect" (i.e. use all the cores available), so basically, it was forcing multi-threaded behavior by default. Why avconv and not ffmpeg, I have no idea, but my guess is that you'd see the same behavior with builds previous to that (and have to search for a new "offending commit") if you passed them the -threads 0 parameter. > I'm at a bit of a loss to > debug further - monitoring the process changes the behaviour - I don't > think gdb will do anything useful (I installed mingw gdb and it still > doesn't recognise the file - I guess as it's a 32bit build of mingw...) > as you can't CTRL-C the process when it is in this state. Maybe you could build a 32-bit build (does it exhibit the same features), or possibly the mingw-w64 peeps have a 64 bit gdb available, I haven't checked [1]. > Zeranoes forums a bit, do you know why he uses pthreads? I don't. I can ask. -r [1] http://mingw-w64.sourceforge.net/ From phpdev at ehrhardt.nl Wed Jul 11 22:56:40 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 22:56:40 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> Message-ID: <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> Andy Sheen in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 20:12:25 +0100): >Running: > >ffmpeg -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t >0:10:00 -map 0:0 -pass 1 -vcodec libx264 -b 1200k -threads 8 -f mp4 -an nul > >3 times and averaging gives > >head (version N-42432-gb27c7d7) 382fps >0.11.1 (ffmpeg version 0.11.1) 379fps Your version (thanks for the dl) was certainly quicker than my 20120706 build, but that was the one with the 20% delay (see the other thread). On my testdata your 20120710 version was some (2-10) fps slower than my 0.11.1 build, but we will not argue over such tiny differences. Depending on your sourcefiles there might be a speed gain of 20% if you compile as x64. I got such figures, but cannot be sure all of the PC's in my project are 64-bit. What still strikes me: on my most troublesome file (50i PAFF interlaced Canon HF M306 recording) the ancient Mencoder-33883 is as quick as or even faster than the fastest FFmpeg. See output below. Mycoder-33883 = Sherpya's build with some mods and additions by me. Jan BTW. Both FFmpeg and Mencoder are incorrect about the input framerate. They think it is 25, but for a correct transcode it should be 50. U:\utils>echo 22:41:03,63 ffmpeg-20120710-w32 U:\utils>ffmpeg-20120710-w32 -r 50 -i T:/PRIVATE/AVCHD/BDMV/STREAM/00005.MTS -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -threads 0 -vcodec wmv2 -b:v 320k -acodec wmav2 -ab 64k -ar 44100 -y output.wmv 2>output.log U:\utils>echo 22:41:55,79 exit U:\utils>echo 22:41:55,80 mycoder-r33883 U:\utils>mycoder-r33883.exe -fps 50 -mc 0 -noskip -ofps 25 -vf scale=384:288 -sw s 2 -lavdopts fast:threads=4 -of lavf -lavfopts format=asf -ovc lavc -lavcopts v codec=wmv2:vbitrate=320:vglobal=1 -oac lavc -lavcopts acodec=wmav2:abitrate=64:a global=1 -af volnorm -o outputm.wmv T:/PRIVATE/AVCHD/BDMV/STREAM/00005.MTS 1>>o utput.log ** MUXER_LAVF ***************************************************************** REMEMBER: MEncoder's libavformat muxing is presently broken and can generate INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer will play these INCORRECT files as if nothing were wrong! ******************************************************************************* Unsupported PixelFormat 61 Unsupported PixelFormat 53 [asf @ 00d676d8]Codec for stream 0 does not use global headers but container for mat requires global headers [asf @ 00d676d8]Codec for stream 1 does not use global headers but container for mat requires global headers U:\utils>echo 22:42:47,64 exit From rogerdpack2 at gmail.com Wed Jul 11 23:13:26 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 11 Jul 2012 15:13:26 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> References: <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> Message-ID: > What still strikes me: on my most troublesome file (50i PAFF interlaced > Canon HF M306 recording) the ancient Mencoder-33883 is as quick as or > even faster than the fastest FFmpeg. See output below. That seems odd since I'd guess that mencoder just "calls out" to ffmpeg underneath, anyway (or libavcodec or what not). You could compare it to some "ancient" versions of ffmpeg I suppose :) > BTW. Both FFmpeg and Mencoder are incorrect about the input framerate. > They think it is 25, but for a correct transcode it should be 50. I'd submit it with a small reproducible test sample to the ffmpeg trac. Cheers! -r From myoungho.lee at gmail.com Wed Jul 11 04:33:58 2012 From: myoungho.lee at gmail.com (LEE, Myung-Ho) Date: Tue, 10 Jul 2012 19:33:58 -0700 (PDT) Subject: [FFmpeg-user] how to use FFMPEG API that the same effect as set "-vcodec copy" option? Message-ID: <1341974038319-4651679.post@n4.nabble.com> Hi. Im newbie for FFMPEG Programming. I'm looking for how to set "-vcodec copy" option in my program which is using libavformat library. in case of set "-codec copy" option in ffmpeg command, which structure and which variable take effect to what value? sorry for my poor english and thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-use-FFMPEG-API-that-the-same-effect-as-set-vcodec-copy-option-tp4651679.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From phpdev at ehrhardt.nl Wed Jul 11 23:06:24 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 23:06:24 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> Message-ID: Roger Pack in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 14:54:21 -0600): >That commit (if I'm thinking of the right one) set the thread default >to "0", which means "auto detect" (i.e. use all the cores available) Sometime, somewhere I read that threads=0 would result in 1.5 times the number of cores. On a quad core that would mean threads=6. I do not know if this ever was true and/or if it still is the case. In situations where autodetect is failing I sometimes use threads=%NUMBER_OF_PROCESSORS%. Jan From phpdev at ehrhardt.nl Wed Jul 11 23:33:13 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 11 Jul 2012 23:33:13 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> Message-ID: Roger Pack in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 15:13:26 -0600): >> What still strikes me: on my most troublesome file (50i PAFF interlaced >> Canon HF M306 recording) the ancient Mencoder-33883 is as quick as or >> even faster than the fastest FFmpeg. See output below. > >That seems odd since I'd guess that mencoder just "calls out" to >ffmpeg underneath, anyway (or libavcodec or what not). You could >compare it to some "ancient" versions of ffmpeg I suppose :) Odd, but true. Underneath is a FFmpeg 0.8.1 which on its own is sloooow. But when called from within Mencoder it is really quick. Somehow Mencoder grabs more of the available CPU power: https://sessiondatabase.net/jwplayer/double5.gif >> BTW. Both FFmpeg and Mencoder are incorrect about the input framerate. >> They think it is 25, but for a correct transcode it should be 50. > >I'd submit it with a small reproducible test sample to the ffmpeg trac. The command lines were wrong. FFmpeg only needs a -r 25 for the output rate. -i %input% -r 25 -vf scale=384:288 -aspect 4:3 -sws_flags bicubic -threads %NUMBER_OF_PROCESSORS% -vcodec wmv2 -b:v 320k -acodec wmav2 -ab 64k -ar 44100 Source: http://x32.elijst.nl/00005.MTS I will dd the file later and file something at the trac. Jan From lou at lrcd.com Wed Jul 11 23:36:43 2012 From: lou at lrcd.com (Lou) Date: Wed, 11 Jul 2012 13:36:43 -0800 Subject: [FFmpeg-user] ffmpeg libx264 encode for quicktime In-Reply-To: References: Message-ID: <20120711133643.583d0083@lrcd.com> On Wed, 11 Jul 2012 17:49:32 +0000 James Hearon wrote: > > Hi,I'm new to this list. Hoping i could get some help. Welcome to the list. > I have a recent build of ffmpeg (0.8.12) with libx264 (0.125.x) and am stuck trying to encode an h.264 file with .mov container to playback in quicktime.It plays back the audio fine, but the video is black. The encoded file works fine in VLC, of course,but I need it to play back in quicktime, and I need a .mov container. > I'm using input as Apple 10bit, 720p, 422, raw in a .mov container, and trying to get out an h.264 file with the following parameters.Previous versions had problems with Apple 422, but that's all good now, and no need to change the 422 pix_fmt. Try adding "-pix_fmt yuv420p" as an output option. If you continue to have issues then follow this IRC discussion between starPause and JEEB starting at [00:19]: > >ffmpeg -y -i input.mov -acodec libfaac -ac 2 -ar 44100 -ab 80k -vcodec libx264 -s 640x480 -b 670k -g 30 -r 15 output.mov You ffmpeg console output is missing. You should always include it with your command. From j_hearon at hotmail.com Thu Jul 12 03:01:44 2012 From: j_hearon at hotmail.com (James Hearon) Date: Thu, 12 Jul 2012 01:01:44 +0000 Subject: [FFmpeg-user] ffmpeg libx264 encode for quicktime In-Reply-To: References: , Message-ID: Thank you for the info. re: recent builds...looking at the release tarballs I'm confused about whether to go with release date or version number, since severalhave similar release dates but different version numbers. It seems then, version number is what determines a more recent releaseof ffmpeg. Good to know. > From: rogerdpack2 at gmail.com > Date: Wed, 11 Jul 2012 14:04:15 -0600 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] ffmpeg libx264 encode for quicktime > > > Hi,I'm new to this list. Hoping i could get some help. > > I have a recent build of ffmpeg (0.8.12) > > I could be wrong, but that's actually (in ffmpeg time frame) rather old now. > > with libx264 (0.125.x) and am stuck trying to encode an h.264 file > with .mov container to playback in quicktime.It plays back the audio > fine, but the video is black. > > >>ffmpeg -y -i input.mov -acodec libfaac -ac 2 -ar 44100 -ab 80k -vcodec libx264 -s 640x480 -b 670k -g 30 -r 15 output.mov > > There is a "baseline" libx264 profile, or something like that, that's > supposed to make more compatible h264 vids, maybe try that? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From j_hearon at hotmail.com Thu Jul 12 03:06:30 2012 From: j_hearon at hotmail.com (James Hearon) Date: Thu, 12 Jul 2012 01:06:30 +0000 Subject: [FFmpeg-user] ffmpeg libx264 encode for quicktime In-Reply-To: <20120711133643.583d0083@lrcd.com> References: , <20120711133643.583d0083@lrcd.com> Message-ID: Thank you. Yep. Seems -pix_fmt yuv420p is what quicktime needed. I thought the input raw video, captured in i-movie and exported as 422 which is yuv422p10le, was all good now in ffmpegand no need to convert -pix_fmt. Glad someone on the list could help me with this. I really appreciate the help. ...will also include console output next time. > Date: Wed, 11 Jul 2012 13:36:43 -0800 > From: lou at lrcd.com > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] ffmpeg libx264 encode for quicktime > > On Wed, 11 Jul 2012 17:49:32 +0000 > James Hearon wrote: > > > > > Hi,I'm new to this list. Hoping i could get some help. > > Welcome to the list. > > > I have a recent build of ffmpeg (0.8.12) with libx264 (0.125.x) and am stuck trying to encode an h.264 file with .mov container to playback in quicktime.It plays back the audio fine, but the video is black. The encoded file works fine in VLC, of course,but I need it to play back in quicktime, and I need a .mov container. > > I'm using input as Apple 10bit, 720p, 422, raw in a .mov container, and trying to get out an h.264 file with the following parameters.Previous versions had problems with Apple 422, but that's all good now, and no need to change the 422 pix_fmt. > > Try adding "-pix_fmt yuv420p" as an output option. If you continue to > have issues then follow this IRC discussion between starPause and JEEB > starting at [00:19]: > > > > > >ffmpeg -y -i input.mov -acodec libfaac -ac 2 -ar 44100 -ab 80k -vcodec libx264 -s 640x480 -b 670k -g 30 -r 15 output.mov > > You ffmpeg console output is missing. You should always include it with > your command. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sqbing at gmail.com Thu Jul 12 04:23:23 2012 From: sqbing at gmail.com (=?UTF-8?B?5ZC05paM5paM?=) Date: Thu, 12 Jul 2012 10:23:23 +0800 Subject: [FFmpeg-user] About timestamp Message-ID: Hi all: I am now trying to add libav* to my project, but after reading ffmpeg's header files, i still don't understand how to deal with timestamp(pts and dts). By calling ffmpeg with "-debug_ts", i found timestamps for my test file's video stream(mpeg-asp) are 1001, 2002, 3003... Do timestamps always look like that? Increase 1001 a step? What to do with timestamps if i want to splice two video files? Thank you very much. From sheen.andy at googlemail.com Thu Jul 12 08:52:17 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Thu, 12 Jul 2012 07:52:17 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> Message-ID: <4FFE7421.7010408@googlemail.com> Roger Pack wrote on Wed 11 Jul at 21:54 UK time >>> It would be interesting to know why pthreads fails but win32threads >>> succeeds. Also I assume that if you compile it with w32threads >>> enabled and use -threads 0 I presume it does use all the available >>> cores? >> >> I agree it would be interesting - and even more interesting why the >> commit the git bisect causes the issue (and only with the avconv build >> and not the ffmpeg from the same source tree). > > That commit (if I'm thinking of the right one) set the thread default > to "0", which means "auto detect" (i.e. use all the cores available), > so basically, it was forcing multi-threaded behavior by default. Why > avconv and not ffmpeg, I have no idea, but my guess is that you'd see > the same behavior with builds previous to that (and have to search for > a new "offending commit") if you passed them the -threads 0 parameter. > but I'm specifying -threads 8 in all my command lines, so there should be no difference. >> I'm at a bit of a loss to >> debug further - monitoring the process changes the behaviour - I don't >> think gdb will do anything useful (I installed mingw gdb and it still >> doesn't recognise the file - I guess as it's a 32bit build of mingw...) >> as you can't CTRL-C the process when it is in this state. > > Maybe you could build a 32-bit build (does it exhibit the same > features), or possibly the mingw-w64 peeps have a 64 bit gdb > available, I haven't checked [1]. > Can't easily see a 64-bit gdb, yes, I can build a 32 bit version and see if the same problem occurs, but it does point to a race condition in the wingw implementation of pthreads at the moment. From cehoyos at ag.or.at Thu Jul 12 10:34:19 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 08:34:19 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg libx264 encode for quicktime References: Message-ID: James Hearon hotmail.com> writes: > Hi,I'm new to this list. Hoping i could get some help. > I have a recent build of ffmpeg (0.8.12) with libx264 This is old, if you are a user, please always compile current git head. Carl Eugen From cehoyos at ag.or.at Thu Jul 12 10:47:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 08:47:25 +0000 (UTC) Subject: [FFmpeg-user] Vorbis codec References: <4C2C614B.9000000@hi-iberia.es> <4FFDA03F.3000809@gmail.com> Message-ID: James Darnley gmail.com> writes: > >> The vorbis encoder was disabled. > > > > Why do you think so? > > The vorbis encoder is still here... > > ("DEA D vorbis Vorbis") > > Huh, what? I'm sure at the time I wrote that (2010-07-01) the decision > had been made to disable the vorbis encoder due to its appalling quality > and to make people use libvorbis. Doesn't it now require some > experimental option? It does require --strict experimental but at least with current git head, it is not disabled. > I would like to repeat for clarity that this thread started TWO YEARS > AGO and I'm not sure why it has popped up again. True, sorry... Carl Eugen From ale.schenberg at gmail.com Thu Jul 12 11:23:41 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Thu, 12 Jul 2012 06:23:41 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: grep didn't find it. So, time to get sdl, right? 2012/7/11, ?? : > use "grep SDL_atoi [path of SDL libs] -R", to search which lib*.a contains > the implement of " SDL_atoi ", then include "-l" + [the lib*.a] and include > -L[the path of lib*.a] in your compile command. > > 2012/7/11 Alexandre Schenberg > >> Unfortunately I got another error: >> >> "In function `stream_component_open': >> /home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2299: undefined reference >> to `SDL_getenv' >> ffplay.o(.text+0x47c2):/home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2301: >> undefined reference to `SDL_atoi' >> collect2: ld returned 1 exit status >> make: *** [ffplay_g] Error 1" >> >> 2012/7/8, Carl Eugen Hoyos : >> > Alexandre Schenberg gmail.com> writes: >> > >> >> Is that right? --disable-documentation? configure says it that option >> >> does not exists >> > >> > $ ./configure --help|grep docu >> > --disable-doc do not build documentation >> > >> > Please do not top-post here, it is considered rude. >> > >> > Carl Eugen >> > >> > _______________________________________________ >> > ffmpeg-user mailing list >> > ffmpeg-user at ffmpeg.org >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > >> _______________________________________________ >> 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 Thu Jul 12 11:30:33 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 09:30:33 +0000 (UTC) Subject: [FFmpeg-user] 2.3 Gazillion References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> <26d040ee4ea97afc823fcdb4aaf5761a.squirrel@www.picaflor-azul.com> Message-ID: Anne at Picaflor Azul picaflor-azul.com> writes: > ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec png pngout.mov > Stream mapping: > Stream #0:0 -> #0:0 (rawvideo -> png) > Press [q] to stop, [?] for help ^^^^^^^^^^^^^^^^^ > frame= 354 fps= 43 q=0.0 size= 37786kB time=00:00:11.80 > bitrate=26232.6kbits/frame= 820 fps= 34 q=0.0 size= 100452kB > time=00:00:27.33 bitrate=30106.3kbits/qqqqqqqq^C^C^C > > This (above) didn't seem to want to stop as readily as other commands I > have used. Did you try to press "q"? It works fine here. If you stop with ^C while encoding mov the resulting file will be invalid. If the quality of the following command (that I believe you tried) is fine then I was wrong with my assumption that the rgb->yuv conversion is the problem (and you don't have to try png: It probably produces big files, it just has the advantage that it is truly lossless when encoding x11grab). $ $ ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 pngout.mov Carl Eugen From cehoyos at ag.or.at Thu Jul 12 11:44:52 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 09:44:52 +0000 (UTC) Subject: [FFmpeg-user] Compiling failure References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: Alexandre Schenberg gmail.com> writes: > ffplay.o(.text+0x47c2):/home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2301: > undefined reference to `SDL_atoi' This is now ticket #1525, consider either to update SDL or to use --disable-sdl as a workaround if you don't need ffplay. Carl Eugen From symadept at gmail.com Thu Jul 12 12:16:38 2012 From: symadept at gmail.com (Symadept) Date: Thu, 12 Jul 2012 18:16:38 +0800 Subject: [FFmpeg-user] nacl ffplay few failures Message-ID: Hi, I was using ffplay to load the video file and I got the following things on the console. Is it anything wrong. I am in mid of fixing my file location issue, in the meanwhile can anyone check and let me know the following failures are severe or not. FFplay version 0.5, Copyright (c) 2003-2009 Fabrice Bellard, et al. configuration: --cross-prefix=i686-nacl- --target-os=linux --enable-gpl --enable-static --enable-cross-compile --disable-shared --disable-ssse3 --disable-mmx --disable-mmx2 --disable-amd3dnow --disable-amd3dnowext --disable-indevs --disable-protocols --disable-network --enable-protocol=file --disable-libmp3lame --disable-libvorbis --disable-libtheora --enable-ffplay --disable-ffserver --disable-demuxer=rtsp --disable-demuxer=image2 --enable-memalign-hack --enable-swscale --enable-avfilter --enable-postproc --prefix=/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr --libdir=/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/lib 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 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jul 12 2012 11:18:39, gcc: 4.4.3 20120426 (Native Client r8428, Git Commit c69a5b7252d2f073d0f526800e4fca3b63cd1fab) OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x20 [7677:7677:23765675453:ERROR:gl_surface_glx.cc(269)] glXChooseFBConfig failed. [7677:7677:23765675553:ERROR:gpu_info_collector.cc(25)] gfx::GLContext::CreateOffscreenGLSurface failed Regards Mustafa Shaik From symadept at gmail.com Thu Jul 12 12:16:38 2012 From: symadept at gmail.com (Symadept) Date: Thu, 12 Jul 2012 18:16:38 +0800 Subject: [FFmpeg-user] nacl ffplay few failures Message-ID: Hi, I was using ffplay to load the video file and I got the following things on the console. Is it anything wrong. I am in mid of fixing my file location issue, in the meanwhile can anyone check and let me know the following failures are severe or not. FFplay version 0.5, Copyright (c) 2003-2009 Fabrice Bellard, et al. configuration: --cross-prefix=i686-nacl- --target-os=linux --enable-gpl --enable-static --enable-cross-compile --disable-shared --disable-ssse3 --disable-mmx --disable-mmx2 --disable-amd3dnow --disable-amd3dnowext --disable-indevs --disable-protocols --disable-network --enable-protocol=file --disable-libmp3lame --disable-libvorbis --disable-libtheora --enable-ffplay --disable-ffserver --disable-demuxer=rtsp --disable-demuxer=image2 --enable-memalign-hack --enable-swscale --enable-avfilter --enable-postproc --prefix=/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr --libdir=/home/mshaik/Softwares/SDKs/GoogleNaCl/nacl_sdk/pepper_18/toolchain/linux_x86_newlib/i686-nacl/usr/lib 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 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jul 12 2012 11:18:39, gcc: 4.4.3 20120426 (Native Client r8428, Git Commit c69a5b7252d2f073d0f526800e4fca3b63cd1fab) OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x20 [7677:7677:23765675453:ERROR:gl_surface_glx.cc(269)] glXChooseFBConfig failed. [7677:7677:23765675553:ERROR:gpu_info_collector.cc(25)] gfx::GLContext::CreateOffscreenGLSurface failed Regards Mustafa Shaik From tom_a_sparks at yahoo.com.au Thu Jul 12 12:40:10 2012 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Thu, 12 Jul 2012 03:40:10 -0700 (PDT) Subject: [FFmpeg-user] transcode to flic/anim/cdxl Message-ID: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> I am wondering if ffmpeg can transcode to flic/anim/cdxl ? ? --- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html Ubuntu wiki page https://wiki.ubuntu.com/tomsparks 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 Premium Edition, AF 2012 Plus Edition, Sam440 AOS 4.1.2, Roland DXY-1300 pen plotter, Cutok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (6502/68k/PPC only) From cehoyos at ag.or.at Thu Jul 12 13:08:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 11:08:24 +0000 (UTC) Subject: [FFmpeg-user] transcode to flic/anim/cdxl References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> Message-ID: Tom Sparks yahoo.com.au> writes: > I am wondering if ffmpeg can transcode to flic/anim/cdxl ? No, you can use ffmpeg -formats to find out about supported fileformats (including flic, anm and cdxl) and ffmpeg -codecs to find out about supported codecs (including flic, anm, cdxl - please understand that there is a difference between fileformat and codec even if they share the same name). Carl Eugen From tom_a_sparks at yahoo.com.au Thu Jul 12 13:52:00 2012 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Thu, 12 Jul 2012 04:52:00 -0700 (PDT) Subject: [FFmpeg-user] transcode to flic/anim/cdxl References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> Message-ID: <1342093920.48641.YahooMailNeo@web120406.mail.ne1.yahoo.com> decodable only :( I was hoping to transcode my video into them " D? anm????????? Deluxe Paint Animation D? cdxl????????? Commodore CDXL video format D? flic??????????? FLI/FLC/FLX animation format D? iff???????????? Interchange File Format " --- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html Ubuntu wiki page https://wiki.ubuntu.com/tomsparks 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 Premium Edition, AF 2012 Plus Edition, Sam440 AOS 4.1.2, Roland DXY-1300 pen plotter, Cutok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (6502/68k/PPC only) ----- Original Message ----- > From: Carl Eugen Hoyos > To: ffmpeg-user at ffmpeg.org > Cc: > Sent: Thursday, 12 July 2012 9:08 PM > Subject: Re: [FFmpeg-user] transcode to flic/anim/cdxl > >T om Sparks yahoo.com.au> writes: > >>? I am wondering if ffmpeg can transcode to flic/anim/cdxl ? > > No, you can use ffmpeg -formats to find out about supported fileformats > (including flic, anm and cdxl) and ffmpeg -codecs to find out about > supported codecs (including flic, anm, cdxl - please understand that > there is a difference between fileformat and codec even if they share > the same name). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From Joshua.Tidsbury at bellmedia.ca Thu Jul 12 15:17:04 2012 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Thu, 12 Jul 2012 13:17:04 +0000 Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 Message-ID: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> I have an interesting issue when transcoding MXF files that is generating a lot of noisy output. I did not have this issue before upgrading to 0.11.1: ffmpeg version 0.11.1built on Jun 25 2012 22:07:30 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)configuration: --prefix=/usr/local --enable-pic --enable-shared --disable-mmx --enable-libfreetype --enable-libmp3lame --enable-gpl --enable-zlib --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libfaac --enable-nonfree --enable-libx264 --enable-pthreads 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 I am doing a simple transcode from MXF to x264/libfaac, and am getting the following message on each batch of console output, for each channel of audio being addressed in the source file (in this case, I'm only addressing the first, but if I am extracting all 8 channels, I get a copy for each channel of audio). The transcode does complete successfully, so at this point it's just spilled ink, so to speak: DTS 348, next:19352628 st:1 invalid droppingime=00:00:16.54 bitrate=1381.5kbits/s PTS 348, next:19352628 invalid dropping st:1 DTS 349, next:19419357 st:1 invalid dropping PTS 349, next:19419357 invalid dropping st:1 DTS 350, next:19486086 st:1 invalid dropping PTS 350, next:19486086 invalid dropping st:1 DTS 351, next:19519461 st:1 invalid dropping PTS 351, next:19519461 invalid dropping st:1 DTS 352, next:19586190 st:1 invalid dropping PTS 352, next:19586190 invalid dropping st:1 DTS 353, next:19652919 st:1 invalid dropping PTS 353, next:19652919 invalid dropping st:1 DTS 354, next:19686294 st:1 invalid dropping PTS 354, next:19686294 invalid dropping st:1 DTS 355, next:19753023 st:1 invalid dropping PTS 355, next:19753023 invalid dropping st:1 DTS 356, next:19819752 st:1 invalid droppingime=00:00:16.98 bitrate=1374.0kbits/s PTS 356, next:19819752 invalid dropping st:1 DTS 357, next:19853127 st:1 invalid dropping PTS 357, next:19853127 invalid dropping st:1 DTS 358, next:19919856 st:1 invalid dropping PTS 358, next:19919856 invalid dropping st:1 DTS 359, next:19986585 st:1 invalid dropping PTS 359, next:19986585 invalid dropping st:1 DTS 360, next:20019960 st:1 invalid dropping PTS 360, next:20019960 invalid dropping st:1 DTS 361, next:20086689 st:1 invalid dropping PTS 361, next:20086689 invalid dropping st:1 DTS 362, next:20153418 st:1 invalid dropping PTS 362, next:20153418 invalid dropping st:1 DTS 363, next:20186793 st:1 invalid dropping PTS 363, next:20186793 invalid dropping st:1 The command that I am using to trigger the transcode is: ffmpeg -y -i source_file.MXF -threads 0 -acodec libfaac -vcodec libx264 -pix_fmt yuv420p -level 41 -b:v 1280k -vf "scale=960:540" -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 5 -vprofile main -bf 16 -b_strategy 1 -coder 1 -me_range 16 -g 60 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 temp.mp4 The ffmpeg output up to when the transcode begins is as follows: ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 25 2012 22:07:30 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13) configuration: --prefix=/usr/local --enable-pic --enable-shared --disable-mmx --enable-libfreetype --enable-libmp3lame --enable-gpl --enable-zlib --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libfaac --enable-nonfree --enable-libx264 --enable-pthreads 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 [mxf @ 0x19bd030] could not resolve sub descriptor strong ref [mxf @ 0x19bd030] source track 2816: stream 9, no descriptor found [mxf @ 0x19bd030] broken or empty index [mxf @ 0x19bd030] Stream #9: not enough frames to estimate rate; consider increasing probesize Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Guessed Channel Layout for Input Stream #0.5 : mono Guessed Channel Layout for Input Stream #0.6 : mono Guessed Channel Layout for Input Stream #0.7 : mono Guessed Channel Layout for Input Stream #0.8 : mono Input #0, mxf, from 'source_file.MXF': Metadata: timecode : 12:23:02;21 Duration: 00:01:33.69, start: 0.000000, bitrate: 60190 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:9: Data: none [buffer @ 0x19d5370] w:1920 h:1080 pixfmt:yuv422p tb:1001/30000 sar:1/1 sws_param:flags=2 [buffersink @ 0x19cd710] No opaque field provided [scale @ 0x19e3e60] w:1920 h:1080 fmt:yuv422p sar:1/1 -> w:960 h:540 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 0x1a45fe0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 0x1c45860] chl:mono fmt:s32 r:48000Hz -> chl:mono fmt:s16 r:48000Hz [libx264 @ 0x19d3ed0] using SAR=1/1 [libx264 @ 0x19d3ed0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x19d3ed0] profile Main, level 4.1 [libx264 @ 0x19d3ed0] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=5 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=16 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=60 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1280 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'temp.mp4': Metadata: timecode : 12:23:02;21 encoder : Lavf54.6.100 Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-51, 1280 kb/s, 30k tbn, 29.97 tbc Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, mono, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Stream #0:1 -> #0:1 (pcm_s24le -> libfaac) Press [q] to stop, [?] for help Many thanks, Josh From s.gritz at vucx.de Thu Jul 12 15:38:08 2012 From: s.gritz at vucx.de (Sascha Gritz) Date: Thu, 12 Jul 2012 15:38:08 +0200 Subject: [FFmpeg-user] libx264 ignores bitrate Message-ID: <4FFED340.7060509@vucx.de> Hey list, I am new and maybe this has been discussed and it is a typical newbie question. I try to encode an image sequence to a h264 mp4 file. Whatever I do my bitrate is ignored: ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy -vcodec libx264 output.mov I tried several things that I found in different blogs (minrates, maxrates). But without success. FFMPEG VERSION: 2012-07-08 git-299387e Windows 7 Hope you can help. Many thanks in advance Sascha -- From phil_rhodes at rocketmail.com Thu Jul 12 15:41:14 2012 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Thu, 12 Jul 2012 14:41:14 +0100 Subject: [FFmpeg-user] transcode to flic/anim/cdxl In-Reply-To: <1342093920.48641.YahooMailNeo@web120406.mail.ne1.yahoo.com> References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> <1342093920.48641.YahooMailNeo@web120406.mail.ne1.yahoo.com> Message-ID: > decodable only :( > I was hoping to transcode my video into them I'd love to know what your application is! Some age-old installation of Amiga-based digital signage, or something? P From cehoyos at ag.or.at Thu Jul 12 15:56:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 13:56:30 +0000 (UTC) Subject: [FFmpeg-user] libx264 ignores bitrate References: <4FFED340.7060509@vucx.de> Message-ID: Sascha Gritz vucx.de> writes: > I try to encode an image sequence to a h264 mp4 file. Whatever I do my > bitrate is ignored: > ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy > -vcodec libx264 output.mov Complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Thu Jul 12 15:59:00 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 13:59:00 +0000 (UTC) Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> Message-ID: Joshua Tidsbury bellmedia.ca> writes: > I have an interesting issue when transcoding MXF files that is > generating a lot of noisy output. What do you mean with noisy? Is it also reproducible with current git head? Carl Eugen From s.gritz at vucx.de Thu Jul 12 16:53:24 2012 From: s.gritz at vucx.de (Sascha Gritz) Date: Thu, 12 Jul 2012 16:53:24 +0200 Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 In-Reply-To: References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> Message-ID: <4FFEE4E4.5080807@vucx.de> ...sorry! Does this help? C:\PROGRA~1\ffmpeg\bin\ffmpeg -i 120711_SE_Sound_AAC_02.MOV -i 120625_ly_MLm_SE_%05.jpg -s 1280x720 -acodec copy -vcodec libx264 -me_method hex -b:v 8000k test.mp4 ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:48:29 with gcc 4.7.1 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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\admin\Desktop\Neuer Ordner\120 711_SE_Sound_AAC_02.MOV': Metadata: creation_time : 2012-07-11 17:30:43 timecode : 01:00:00:00 Duration: 00:11:54.00, start: 0.000000, bitrate: 201 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 194 kb/s Metadata: creation_time : 2012-07-11 17:30:44 handler_name : Apple Alias-Datensteuerung Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-07-11 17:31:13 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Input #1, image2, from 'C:\Users\admin\Desktop\Neuer Ordner\120625_ly_MLm_SE_%05 d.jpg': Duration: 00:00:04.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: mjpeg, yuvj444p, 1280x720 [SAR 72:72 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc [graph 0 input from stream 1:0 @ 0000000004335620] w:1280 h:720 pixfmt:yuvj444p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [output stream 0:0 @ 00000000043356c0] No opaque field provided [scaler for output stream 0:0 @ 0000000004335740] w:1280 h:720 fmt:yuvj444p sar: 1/1 -> w:1280 h:720 fmt:yuvj420p sar:1/1 flags:0x4 [libx264 @ 00000000043500a0] using SAR=1/1 [libx264 @ 00000000043500a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShu ffle SSE4.2 AVX [libx264 @ 00000000043500a0] profile High, level 3.1 [libx264 @ 00000000043500a0] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC cod ec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 r ef=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_pski p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b _adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min= 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 rate tol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test.mp4': Metadata: timecode : 01:00:00:00 encoder : Lavf54.15.102 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1280x720 [SAR 1 :1 DAR 16:9], q=-1--1, 8000 kb/s, 25 tbn, 25 tbc Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 194 kb/s Metadata: creation_time : 2012-07-11 17:30:44 handler_name : Apple Alias-Datensteuerung Stream mapping: Stream #1:0 -> #0:0 (mjpeg -> libx264) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 71 fps=0.0 q=0.0 size= 68kB time=00:00:00.52 bitrate=1075.9kbits/s frame= 101 fps=100 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 67 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 50 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 40 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 33 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 29 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 25 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 22 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 20 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 18 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 17 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 15 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 14 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 13 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 13 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 12 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 11 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 11 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 10 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=9.6 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=9.1 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=8.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=8.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=8.0 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=7.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=7.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=7.2 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.9 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.5 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.3 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.1 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.9 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.6 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.3 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.2 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.0 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.9 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.8 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.6 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.5 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.3 q=-1.0 Lsize= 17168kB time=00:00:03.96 bitrate=35515.0kbit s/s video:64kB audio:16980kB subtitle:0 global headers:0kB muxing overhead 0.728832% [libx264 @ 00000000043500a0] frame I:1 Avg QP: 0.35 size: 55209 [libx264 @ 00000000043500a0] frame P:25 Avg QP: 0.11 size: 165 [libx264 @ 00000000043500a0] frame B:75 Avg QP: 3.10 size: 72 [libx264 @ 00000000043500a0] consecutive B-frames: 1.0% 0.0% 0.0% 99.0% [libx264 @ 00000000043500a0] mb I I16..4: 29.8% 50.9% 19.3% [libx264 @ 00000000043500a0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.5% 0.0 % 0.0% 0.0% 0.0% skip:99.5% [libx264 @ 00000000043500a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.7% 0.0 % 0.0% direct: 0.0% skip:99.2% L0:75.6% L1:24.4% BI: 0.0% [libx264 @ 00000000043500a0] final ratefactor: -21.81 [libx264 @ 00000000043500a0] 8x8 transform intra:50.5% inter:55.5% [libx264 @ 00000000043500a0] coded y,uvDC,uvAC intra: 59.9% 6.4% 6.4% inter: 0.0 % 0.0% 0.0% [libx264 @ 00000000043500a0] i16 v,h,dc,p: 33% 27% 21% 19% [libx264 @ 00000000043500a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 27% 23% 4% 2% 1% 5% 2% 2% [libx264 @ 00000000043500a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 32% 15% 2% 7% 1% 6% 1% 1% [libx264 @ 00000000043500a0] i8c dc,h,v,p: 94% 4% 2% 0% [libx264 @ 00000000043500a0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 00000000043500a0] ref P L0: 99.1% 0.0% 0.9% [libx264 @ 00000000043500a0] ref B L0: 12.0% 88.0% [libx264 @ 00000000043500a0] ref B L1: 86.2% 13.8% [libx264 @ 00000000043500a0] kb/s:128.19 Vorgang beendet Dr?cken Sie eine beliebige Taste . . . **VISION UNLTD. CREATIVE WORX GmbH** Bruesselerstr. 85 50672 Koeln Vertretungsberechtigter Gesch?ftsf?hrer: Ercin Filizli Registergericht: Amtsgericht K?n Registernummer: HRB Nr.67972 Fon +49 (0)221 56978 42 Fax +49 (0)221 56978 11 Email s.gritz at vucx.de check out our web page: www.vucx.de die Medienprofis: www.profigilde.de official agent for visual media directory Production Paradise Am 12.07.12 15:59, schrieb Carl Eugen Hoyos: > Joshua Tidsbury bellmedia.ca> writes: > >> I have an interesting issue when transcoding MXF files that is >> generating a lot of noisy output. > What do you mean with noisy? > Is it also reproducible with current git head? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From info at picaflor-azul.com Thu Jul 12 17:10:52 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Thu, 12 Jul 2012 10:10:52 -0500 Subject: [FFmpeg-user] 2.3 Gazillion In-Reply-To: References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> <26d040ee4ea97afc823fcdb4aaf5761a.squirrel@www.picaflor-azul.com> Message-ID: <62f509def92fb91d9975382e784ff071.squirrel@www.picaflor-azul.com> Hi, Regarding the output of the following command, ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 out.mov I got the following comment from a professional dvd replicating person: The sample file works excellently and we can convert and author with this a s a base format. It is H.264 and is a very efficient but highly compressed format. I might ask what other choices there are but if you like this one, we can do anything with it. If this guy is correct, and I suspect he is, this means that my problem is in the conversion from the .mov to the .vob. Here are the commands I am using to make the vob files: ffmpeg -i output.mkv -c:v mpeg2video -mbd 2 -trellis 2 -cmp 2 -subcmp 2 -g 100 -pass 1 -b:v 8000k -s 720x480 -r 29.97 -an -f rawvideo -y /dev/null ffmpeg -i output.mkv -mbd 2 -trellis 2 -cmp 2 -subcmp 2 -g 100 -pass 2 -target ntsc-dvd -aspect 16:9 recording-filename2pass.vob -- Thanks, Anne www.picaflor-azul.com From rogerdpack2 at gmail.com Thu Jul 12 17:20:51 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 12 Jul 2012 09:20:51 -0600 Subject: [FFmpeg-user] About timestamp In-Reply-To: References: Message-ID: > I am now trying to add libav* to my project, but after reading ffmpeg's > header files, i still don't understand how to deal with timestamp(pts and > dts). > By calling ffmpeg with "-debug_ts", i found timestamps for my test file's > video stream(mpeg-asp) are 1001, 2002, 3003... Do timestamps always look > like that? Increase 1001 a step? What to do with timestamps if i want to > splice two video files? ffprobe -show_packets may be interesting to your research. -r From cehoyos at ag.or.at Thu Jul 12 17:21:21 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 15:21:21 +0000 (UTC) Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> <4FFEE4E4.5080807@vucx.de> Message-ID: Sascha Gritz vucx.de> writes: > > What do you mean with noisy? > ...sorry! Does this help? (Please do not top-post here.) No, sorry I was unclear / we are having difficulties communicating in a foreign language;-) I will differently: Is the problem also reproducible with -an or -vn (which one)? Carl Eugen From rogerdpack2 at gmail.com Thu Jul 12 17:23:37 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 12 Jul 2012 09:23:37 -0600 Subject: [FFmpeg-user] transcode to flic/anim/cdxl In-Reply-To: References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> Message-ID: >> I am wondering if ffmpeg can transcode to flic/anim/cdxl ? What is anim? -r From rogerdpack2 at gmail.com Thu Jul 12 17:24:33 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 12 Jul 2012 09:24:33 -0600 Subject: [FFmpeg-user] libx264 ignores bitrate In-Reply-To: <4FFED340.7060509@vucx.de> References: <4FFED340.7060509@vucx.de> Message-ID: > I try to encode an image sequence to a h264 mp4 file. Whatever I do my > bitrate is ignored: > ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy > -vcodec libx264 output.mov Does putting the -b:v 8000k after the vcodec part help? Just wondering. -r From michaelni at gmx.at Thu Jul 12 17:24:59 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Thu, 12 Jul 2012 17:24:59 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] nacl ffplay few failures In-Reply-To: References: Message-ID: <20120712152459.GO25121@kiste2> On Thu, Jul 12, 2012 at 06:16:38PM +0800, Symadept wrote: > Hi, > I was using ffplay to load the video file and I got the following things on > the console. Is it anything wrong. I am in mid of fixing my file location > issue, in the meanwhile can anyone check and let me know the following > failures are severe or not. > > FFplay version 0.5, Copyright (c) 2003-2009 Fabrice Bellard, et al. iam not sure what you are trying to do or what doesnt work but that ffplay version is many years old, alot has changed and been improved since then. Trying the latest from ffmpeg.org will maybe solve your problem [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB it is not once nor twice but times without number that the same ideas make their appearance in the world. -- Aristotle -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From s.gritz at vucx.de Thu Jul 12 18:08:06 2012 From: s.gritz at vucx.de (Sascha Gritz) Date: Thu, 12 Jul 2012 18:08:06 +0200 Subject: [FFmpeg-user] libx264 ignores bitrate In-Reply-To: References: <4FFED340.7060509@vucx.de> Message-ID: <4FFEF666.8020202@vucx.de> ...tried that already. No success! >> I try to encode an image sequence to a h264 mp4 file. Whatever I do my >> bitrate is ignored: >> ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy >> -vcodec libx264 output.mov > Does putting the -b:v 8000k after the vcodec part help? Just wondering. > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From Joshua.Tidsbury at bellmedia.ca Thu Jul 12 18:12:47 2012 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Thu, 12 Jul 2012 16:12:47 +0000 Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 In-Reply-To: References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> <4FFEE4E4.5080807@vucx.de> Message-ID: <3FA93E03-4566-4AE8-880D-0E0FE0C67099@bellmedia.ca> What do you mean with noisy? I mean that I get the repeated (with incrementing values): PTS 268, next:14914866 invalid dropping st:1 DTS 269, next:14981595 st:1 invalid dropping many times for every progress update, for every channel of audio being decoded. ...sorry! Does this help? (Please do not top-post here.) No, sorry I was unclear / we are having difficulties communicating in a foreign language;-) I also think that he didn't mean to reply to my thread? :) I will differently: Is the problem also reproducible with -an or -vn (which one)? If I omit audio (-an) it does not occur. If I omit video (-vn) it still occurs. I will test against the current git head and let you know. Thank you, Josh From cehoyos at ag.or.at Thu Jul 12 19:04:22 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 17:04:22 +0000 (UTC) Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> <4FFEE4E4.5080807@vucx.de> <3FA93E03-4566-4AE8-880D-0E0FE0C67099@bellmedia.ca> Message-ID: Joshua Tidsbury bellmedia.ca> writes: > > What do you mean with noisy? > > I mean that I get the repeated (with incrementing values): > > PTS 268, next:14914866 invalid dropping st:1 > DTS 269, next:14981595 st:1 invalid dropping This is ticket #1431 (Sorry, I considered that you either get audio distortion on audio playback or "snow" in every frame.) Please fix your quoting, Carl Eugen From cehoyos at ag.or.at Thu Jul 12 19:07:48 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 17:07:48 +0000 (UTC) Subject: [FFmpeg-user] transcode to flic/anim/cdxl References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> Message-ID: Roger Pack gmail.com> writes: > >> I am wondering if ffmpeg can transcode to flic/anim/cdxl ? > > What is anim? http://en.wikipedia.org/wiki/ANIM I was incorrectly assuming it would be anm Carl Eugen From cehoyos at ag.or.at Thu Jul 12 19:17:17 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 17:17:17 +0000 (UTC) Subject: [FFmpeg-user] 2.3 Gazillion References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> <26d040ee4ea97afc823fcdb4aaf5761a.squirrel@www.picaflor-azul.com> <62f509def92fb91d9975382e784ff071.squirrel@www.picaflor-azul.com> Message-ID: Anne at Picaflor Azul picaflor-azul.com> writes: > If this guy is correct, and I suspect he is, this means that > my problem is in the conversion from the .mov to the .vob. Here > are the commands I am using to make the vob files: I may completely misunderstand, but are you first encoding a mov file and then later using this mov as input for a dvd encoding? Why don't you encode to dvd as the first (and only) step? Carl Eugen From Joshua.Tidsbury at bellmedia.ca Thu Jul 12 19:26:13 2012 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Thu, 12 Jul 2012 17:26:13 +0000 Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 In-Reply-To: References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> <4FFEE4E4.5080807@vucx.de> <3FA93E03-4566-4AE8-880D-0E0FE0C67099@bellmedia.ca> Message-ID: What do you mean with noisy? I mean that I get the repeated (with incrementing values): PTS 268, next:14914866 invalid dropping st:1 DTS 269, next:14981595 st:1 invalid dropping This is ticket #1431 (Sorry, I considered that you either get audio distortion on audio playback or "snow" in every frame.) Please fix your quoting, Carl Eugen Thank you, indeed the wording was unclear. I tested against git head and the issue remains. Apologies re: quoting - trying to figure out why my e-mail client is doing that sometimes. Take care, Josh From s.gritz at vucx.de Thu Jul 12 19:34:53 2012 From: s.gritz at vucx.de (Sascha Gritz) Date: Thu, 12 Jul 2012 19:34:53 +0200 Subject: [FFmpeg-user] libx264 ignores bitrate In-Reply-To: References: <4FFED340.7060509@vucx.de> Message-ID: <4FFF0ABD.6050509@vucx.de> ...this is the console output: Does this help? C:\PROGRA~1\ffmpeg\bin\ffmpeg -i 120711_SE_Sound_AAC_02.MOV -i 120625_ly_MLm_SE_%05.jpg -s 1280x720 -acodec copy -vcodec libx264 -me_method hex -b:v 8000k test.mp4 ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:48:29 with gcc 4.7.1 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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\admin\Desktop\Neuer Ordner\120 711_SE_Sound_AAC_02.MOV': Metadata: creation_time : 2012-07-11 17:30:43 timecode : 01:00:00:00 Duration: 00:11:54.00, start: 0.000000, bitrate: 201 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 194 kb/s Metadata: creation_time : 2012-07-11 17:30:44 handler_name : Apple Alias-Datensteuerung Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-07-11 17:31:13 handler_name : Apple Alias-Datensteuerung timecode : 01:00:00:00 Input #1, image2, from 'C:\Users\admin\Desktop\Neuer Ordner\120625_ly_MLm_SE_%05 d.jpg': Duration: 00:00:04.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: mjpeg, yuvj444p, 1280x720 [SAR 72:72 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc [graph 0 input from stream 1:0 @ 0000000004335620] w:1280 h:720 pixfmt:yuvj444p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [output stream 0:0 @ 00000000043356c0] No opaque field provided [scaler for output stream 0:0 @ 0000000004335740] w:1280 h:720 fmt:yuvj444p sar: 1/1 -> w:1280 h:720 fmt:yuvj420p sar:1/1 flags:0x4 [libx264 @ 00000000043500a0] using SAR=1/1 [libx264 @ 00000000043500a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShu ffle SSE4.2 AVX [libx264 @ 00000000043500a0] profile High, level 3.1 [libx264 @ 00000000043500a0] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC cod ec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 r ef=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_pski p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b _adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min= 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 rate tol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test.mp4': Metadata: timecode : 01:00:00:00 encoder : Lavf54.15.102 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1280x720 [SAR 1 :1 DAR 16:9], q=-1--1, 8000 kb/s, 25 tbn, 25 tbc Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 194 kb/s Metadata: creation_time : 2012-07-11 17:30:44 handler_name : Apple Alias-Datensteuerung Stream mapping: Stream #1:0 -> #0:0 (mjpeg -> libx264) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 71 fps=0.0 q=0.0 size= 68kB time=00:00:00.52 bitrate=1075.9kbits/s frame= 101 fps=100 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 67 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 50 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 40 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 33 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 29 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 25 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 22 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 20 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 18 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 17 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 15 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 14 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 13 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 13 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 12 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 11 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 11 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps= 10 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=9.6 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=9.1 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=8.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=8.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=8.0 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=7.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=7.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=7.2 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.9 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.5 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.3 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=6.1 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.9 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.6 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.3 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.2 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=5.0 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.9 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.8 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.7 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.6 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.5 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.4 q=0.0 size= 107kB time=00:00:01.72 bitrate= 509.6kbits/s frame= 101 fps=4.3 q=-1.0 Lsize= 17168kB time=00:00:03.96 bitrate=35515.0kbit s/s video:64kB audio:16980kB subtitle:0 global headers:0kB muxing overhead 0.728832% [libx264 @ 00000000043500a0] frame I:1 Avg QP: 0.35 size: 55209 [libx264 @ 00000000043500a0] frame P:25 Avg QP: 0.11 size: 165 [libx264 @ 00000000043500a0] frame B:75 Avg QP: 3.10 size: 72 [libx264 @ 00000000043500a0] consecutive B-frames: 1.0% 0.0% 0.0% 99.0% [libx264 @ 00000000043500a0] mb I I16..4: 29.8% 50.9% 19.3% [libx264 @ 00000000043500a0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.5% 0.0 % 0.0% 0.0% 0.0% skip:99.5% [libx264 @ 00000000043500a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.7% 0.0 % 0.0% direct: 0.0% skip:99.2% L0:75.6% L1:24.4% BI: 0.0% [libx264 @ 00000000043500a0] final ratefactor: -21.81 [libx264 @ 00000000043500a0] 8x8 transform intra:50.5% inter:55.5% [libx264 @ 00000000043500a0] coded y,uvDC,uvAC intra: 59.9% 6.4% 6.4% inter: 0.0 % 0.0% 0.0% [libx264 @ 00000000043500a0] i16 v,h,dc,p: 33% 27% 21% 19% [libx264 @ 00000000043500a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 27% 23% 4% 2% 1% 5% 2% 2% [libx264 @ 00000000043500a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 32% 15% 2% 7% 1% 6% 1% 1% [libx264 @ 00000000043500a0] i8c dc,h,v,p: 94% 4% 2% 0% [libx264 @ 00000000043500a0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 00000000043500a0] ref P L0: 99.1% 0.0% 0.9% [libx264 @ 00000000043500a0] ref B L0: 12.0% 88.0% [libx264 @ 00000000043500a0] ref B L1: 86.2% 13.8% [libx264 @ 00000000043500a0] kb/s:128.19 Vorgang beendet Dr?cken Sie eine beliebige Taste . . . > Sascha Gritz vucx.de> writes: > >> I try to encode an image sequence to a h264 mp4 file. Whatever I do my >> bitrate is ignored: >> ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy >> -vcodec libx264 output.mov > Complete, uncut console output missing. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Thu Jul 12 19:44:46 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 12 Jul 2012 11:44:46 -0600 Subject: [FFmpeg-user] Feature request: ffmpeg --display-all-presets In-Reply-To: <20120619145050.3cd131b9@lrcd.com> References: <20120619145050.3cd131b9@lrcd.com> Message-ID: > Consider submitting this as an enhancement on the bug tracker, although > I'd prefer the presets to be listed with the libx264 preset option in > the docs instead as another separate option. http://ffmpeg.org/trac/ffmpeg/ticket/1529 Thanks! -r From rogerdpack2 at gmail.com Thu Jul 12 19:49:17 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 12 Jul 2012 11:49:17 -0600 Subject: [FFmpeg-user] libx264 ignores bitrate In-Reply-To: <4FFED340.7060509@vucx.de> References: <4FFED340.7060509@vucx.de> Message-ID: > I try to encode an image sequence to a h264 mp4 file. Whatever I do my > bitrate is ignored: > ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy > -vcodec libx264 output.mov > > I tried several things that I found in different blogs (minrates, maxrates). > But without success. seems to work here ("bitrate= 282.0kbits/s"): $ ffmpeg -y -i sintel.mpg -an -vcodec libx264 -b:v 250k yo.mp4 c:\vids>c:\installs\ffmpeg-20120706-git-8293a21-win32-shared\bin\ffmpeg.exe -y -i sintel.mpg -an -vcodec libx264 -b:v 250k yo.mp4 ffmpeg version N-42288-g8293a21 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2012 20:58:08 with gcc 4.7.1 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 02065920] ac-tex damaged at 40 7 [mpeg2video @ 02065920] Warning MVs not available [mpeg2video @ 02065920] concealing 1035 DC, 1035 AC, 1035 MV errors [mpeg @ 0049faa0] 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 [graph 0 input from stream 0:0 @ 02473020] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2 [output stream 0:0 @ 02473280] No opaque field provided [libx264 @ 02065fc0] using SAR=32/27 [libx264 @ 02065fc0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 02065fc0] profile High, level 3.0 [libx264 @ 02065fc0] 264 - core 125 r2200 999b753 - 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'yo.mp4': Metadata: encoder : Lavf54.15.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 250 kb/s, 30k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Press [q] to stop, [?] for help [mpeg2video @ 02065920] ac-tex damaged at 40 7 [mpeg2video @ 02065920] Warning MVs not available [mpeg2video @ 02065920] concealing 1035 DC, 1035 AC, 1035 MV errors frame= 1768 fps= 28 q=41.0 size= 1975kB time=00:00:57.35 bitrate= 282.0kbits/s dup=159 drop=0 From info at picaflor-azul.com Thu Jul 12 20:05:02 2012 From: info at picaflor-azul.com (Anne at Picaflor Azul) Date: Thu, 12 Jul 2012 13:05:02 -0500 Subject: [FFmpeg-user] 2.3 Gazillion In-Reply-To: References: <317c826c8e7ea4bd1b562a8829129a5d.squirrel@www.picaflor-azul.com> <26d040ee4ea97afc823fcdb4aaf5761a.squirrel@www.picaflor-azul.com> <62f509def92fb91d9975382e784ff071.squirrel@www.picaflor-azul.com> Message-ID: Hi, Wow! I never thought of that, it sounds like a very good idea. I do want to have a high quality copy around for youtube or possibly other things, but I am pretty sure I can have two output files, can't I? Thank you very much, I'll try it right away. > I may completely misunderstand, but are you first encoding a mov > file and then later using this mov as input for a dvd encoding? > Why don't you encode to dvd as the first (and only) step? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Thanks, Anne www.picaflor-azul.com From tom_a_sparks at yahoo.com.au Thu Jul 12 20:11:03 2012 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Thu, 12 Jul 2012 11:11:03 -0700 (PDT) Subject: [FFmpeg-user] transcode to flic/anim/cdxl In-Reply-To: References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> <1342093920.48641.YahooMailNeo@web120406.mail.ne1.yahoo.com> Message-ID: <1342116663.79904.YahooMailNeo@web120403.mail.ne1.yahoo.com> >> decodable only :( >> I was hoping to transcode my video into them > >I'd love to know what your application is! Some age-old installation of Amiga-based digital signage, or something? I like the idea of having this tag undernear my screencast videos "Recorded on vintage hardware/computers, Playable on vintage hardware/computers" > >P --- tom_a_sparks "It's a nerdy thing I like to do" From llarevo at gmx.net Thu Jul 12 20:19:34 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Thu, 12 Jul 2012 20:19:34 +0200 Subject: [FFmpeg-user] video4linux2: Resource temporarily unavailable In-Reply-To: <1341926861.5387.56.camel@tbastian-desktop.localdomain> References: <1341924346.5387.42.camel@tbastian-desktop.localdomain> <1341926861.5387.56.camel@tbastian-desktop.localdomain> Message-ID: <1342117174.1989.11.camel@tbastian-desktop.localdomain> > I try to change my standard encoding tool from mencoder to ffmpeg. Now > I've got a problem with analog capturing. When trying to capture with > ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors: > > libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.) > > although I set the channel prior to the capturing via > > v4lctl setchannel > > Here you see an attempt with ffmpeg (after which a zero-byte outfile is > written): > > ffmpeg -f v4l2 -i /dev/video0 out.mpg > > ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers > built on Jun 13 2012 09:51:06 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 > libv4l2: error dequeuing buf: Resource temporarily unavailable > libv4l2: error dequeuing buf: Resource temporarily unavailable > libv4l2: error dequeuing buf: Resource temporarily unavailable > libv4l2: error dequeuing buf: Resource temporarily unavailable > libv4l2: error dequeuing buf: Resource temporarily unavailable > --------5000 TIMES THE LINE ABOVE-------- > libv4l2: error dequeuing buf: Resource temporarily unavailable > libv4l2: erro^C <---------I stopped that output-------- > Estimating duration from bitrate, this may be inaccurate > Input #0, video4linux2,v4l2, from '/dev/video0': > Duration: N/A, start: 1341859570.870366, bitrate: N/A > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576, > -2147483 kb/s, 1.83 tbr, 1000k tbn, 1000k tbc > File 'out.mpeg' already exists. Overwrite ? [y/N] y > w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: > [mpeg1video @ 0x235db00] MPEG1/2 does not support 5/1 fps > Output #0, mpeg, to 'out.mpeg': > Stream #0:0: Video: mpeg1video, yuv420p, 720x576, q=2-31, 200 kb/s, > 90k tbn, 5 tbc > Stream mapping: > Stream #0:0 -> #0:0 (rawvideo -> mpeg1video) > Error while opening encoder for output stream #0:0 - maybe incorrect > parameters such as bit_rate, rate, width or height > Received signal 2: terminating. I've tested this issue now with another hardware (Terratec Cinergy XS USB) and capturing works good with it. So the problem comes somehow from the interaction between ffmpeg and the hardware, because the hardware (Terratec Cinergy 400 TV) works without any problems with other apps like mplayer, mencoder, xawtv and tvtime. Only ffmpeg is producing the problem. What does the error mean and what are common reasons for it respectively? Is this a ffmpeg problem or a video4linux problem, or both? What is ffmpeg doing differently with a v4l2 device in comparison to the working apps mentioned above? Why does the problem appear only with ffmpeg? Thanks -- Felix From onemda at gmail.com Thu Jul 12 20:25:30 2012 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 12 Jul 2012 18:25:30 +0000 Subject: [FFmpeg-user] transcode to flic/anim/cdxl In-Reply-To: <1342116663.79904.YahooMailNeo@web120403.mail.ne1.yahoo.com> References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> <1342093920.48641.YahooMailNeo@web120406.mail.ne1.yahoo.com> <1342116663.79904.YahooMailNeo@web120403.mail.ne1.yahoo.com> Message-ID: On 7/12/12, Tom Sparks wrote: >>> decodable only :( > >>> I was hoping to transcode my video into them >> >>I'd love to know what your application is! Some age-old installation of >> Amiga-based digital signage, or something? > > I like the idea of having this tag undernear my screencast videos > > "Recorded on vintage hardware/computers, > > Playable on vintage hardware/computers" Who would be interested in such low resolutions video? From cehoyos at ag.or.at Thu Jul 12 20:26:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 18:26:11 +0000 (UTC) Subject: [FFmpeg-user] libx264 ignores bitrate References: <4FFED340.7060509@vucx.de> <4FFF0ABD.6050509@vucx.de> Message-ID: Sascha Gritz vucx.de> writes: > C:\PROGRA~1\ffmpeg\bin\ffmpeg -i 120711_SE_Sound_AAC_02.MOV -i > 120625_ly_MLm_SE_%05.jpg -s 1280x720 -acodec copy -vcodec libx264 > -me_method hex -b:v 8000k test.mp4 My guess is that this bitrate cannot be reached with the given input material (the quality cannot be improved further), to make sure you could test with a very low constant quantiser >0. Please do not top-post here, Carl Eugen From cehoyos at ag.or.at Thu Jul 12 20:27:56 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 12 Jul 2012 18:27:56 +0000 (UTC) Subject: [FFmpeg-user] Noisy Output - Transcoding MXF to x264 References: <03E8FD22-3016-48DB-AC90-C84230A94378@bellmedia.ca> <4FFEE4E4.5080807@vucx.de> <3FA93E03-4566-4AE8-880D-0E0FE0C67099@bellmedia.ca> Message-ID: Joshua Tidsbury bellmedia.ca> writes: > Apologies re: quoting - trying to figure out why my e-mail > client is doing that sometimes. http://ffmpeg.org/pipermail/ffmpeg-user/2012-July/008027.html http://article.gmane.org/gmane.comp.video.ffmpeg.user/38538 Not very readable... Carl Eugen From kshawkeye at gmail.com Fri Jul 13 02:32:39 2012 From: kshawkeye at gmail.com (Kyle Schwarz) Date: Thu, 12 Jul 2012 20:32:39 -0400 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFE7421.7010408@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> Message-ID: <4FFF6CA7.8060409@gmail.com> Hi, On 7/12/2012 2:52 AM, Andy Sheen wrote: > Roger Pack wrote on Wed 11 Jul at 21:54 UK time >>>> It would be interesting to know why pthreads fails but win32threads >>>> succeeds. Also I assume that if you compile it with w32threads >>>> enabled and use -threads 0 I presume it does use all the available >>>> cores? >>> >>> I agree it would be interesting - and even more interesting why the >>> commit the git bisect causes the issue (and only with the avconv build >>> and not the ffmpeg from the same source tree). >> >> That commit (if I'm thinking of the right one) set the thread default >> to "0", which means "auto detect" (i.e. use all the cores available), >> so basically, it was forcing multi-threaded behavior by default. Why >> avconv and not ffmpeg, I have no idea, but my guess is that you'd see >> the same behavior with builds previous to that (and have to search for >> a new "offending commit") if you passed them the -threads 0 parameter. >> > > but I'm specifying -threads 8 in all my command lines, so there should > be no difference. > >>> I'm at a bit of a loss to >>> debug further - monitoring the process changes the behaviour - I don't >>> think gdb will do anything useful (I installed mingw gdb and it still >>> doesn't recognise the file - I guess as it's a 32bit build of mingw...) >>> as you can't CTRL-C the process when it is in this state. >> >> Maybe you could build a 32-bit build (does it exhibit the same >> features), or possibly the mingw-w64 peeps have a 64 bit gdb >> available, I haven't checked [1]. >> > > Can't easily see a 64-bit gdb, yes, I can build a 32 bit version and see > if the same problem occurs, but it does point to a race condition in the > wingw implementation of pthreads at the moment. I'm unable to reproduce this error. It could be because I'm not on my powerful desktop, or it could be something else. Could you give me the most basic command line that still produces the issue with my latest builds (299387e)? The reason I use pthread/winpthreads instead of w32thread is because many more packages on Linux support pthread then do w32thread. I also believe the code base to be stable and a good thread management solution. You can also compile gdb with the toolchain you used to compile FFmpeg, if your interested. Best regards, Kyle Schwarz (Zeranoe) From ale.schenberg at gmail.com Fri Jul 13 03:52:17 2012 From: ale.schenberg at gmail.com (Alexandre Schenberg) Date: Thu, 12 Jul 2012 22:52:17 -0300 Subject: [FFmpeg-user] Compiling failure In-Reply-To: References: <4FF5944D.50300@alcatel-lucent.com> <4FF6E2FB.1090201@alcatel-lucent.com> Message-ID: There isn't a --disable-sdl, however, there is a --disable-ffplay 2012/7/12, Carl Eugen Hoyos : > Alexandre Schenberg gmail.com> writes: > >> ffplay.o(.text+0x47c2):/home/leopoldo/abaco/ffmpeg-0.11.1/ffplay.c:2301: >> undefined reference to `SDL_atoi' > > This is now ticket #1525, consider either to update SDL or > to use --disable-sdl as a workaround if you don't need ffplay. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From chaupv79 at hotmail.com Fri Jul 13 04:08:49 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Fri, 13 Jul 2012 02:08:49 +0000 Subject: [FFmpeg-user] avformat_open_input segmentation fault (core dumped) Message-ID: Hi Everybody, I am using ffmpeg libary small c examle that based on Stephen Dranger http://dranger.com/ffmpeg/I use tutorial02.c, but it have some error, i have fixed it by replace some updated function in latest ffmpeg version. below is one of code block: // tutorial02.c // A pedagogical video player that will stream through every video frame as fast as it can. // // Code based on FFplay, Copyright (c) 2003 Fabrice Bellard, // and a tutorial by Martin Bohme (boehme at inb.uni-luebeckREMOVETHIS.de) // Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1 // Use // // gcc -o tutorial02 tutorial02.c -lavformat -lavcodec -lz -lm `sdl-config --cflags --libs` // to build (assuming libavformat and libavcodec are correctly installed, // and assuming you have sdl-config. Please refer to SDL docs for your installation.) // // Run using // tutorial02 myvideofile.mpg // // to play the video stream on your screen. #include "libavcodec/avcodec.h" #include "libavformat/avformat.h"#include #include #include int main(int argc, char *argv[]) { AVFormatContext *pFormatCtx; int i, videoStream; AVCodecContext *pCodecCtx; AVCodec *pCodec; AVFrame *pFrame; AVPacket packet; int frameFinished; float aspect_ratio; SDL_Overlay *bmp; SDL_Surface *screen; SDL_Rect rect; SDL_Event event; if(argc < 2) { fprintf(stderr, "Usage: test \n"); exit(1); } //Register all formats and codecs av_register_all(); if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError()); exit(1); } // Open video file if(avformat_open_input(&pFormatCtx, argv[1], NULL, NULL)!=0) return -1; // Couldn't open file // Retrieve stream information if(av_find_stream_info(pFormatCtx)<0) return -1; // Couldn't find stream information // Dump information about file onto standard error av_dump_format(pFormatCtx, 0, argv[1], 0); ..... .... I compiled succcessfully the example but when I run it ./tutorial02 myexaple.mpg => error:[root at CENT6 working]# ./tutorial02 myexaple.mpg Segmentation fault (core dumped) => The error happens in function call as below: if(avformat_open_input(&pFormatCtx, argv[1], NULL, NULL)!=0) Does enyone know what happen here? Thank YouChau Pham. From sqbing at gmail.com Fri Jul 13 04:52:39 2012 From: sqbing at gmail.com (=?UTF-8?B?5ZC05paM5paM?=) Date: Fri, 13 Jul 2012 10:52:39 +0800 Subject: [FFmpeg-user] About timestamp In-Reply-To: References: Message-ID: Roger Pack: thank you, but more confused now. I've tested "*ffprobe -show_packets **"for a few files, all of their video stream's pts/dts step differed. Here are my files: > 1. i_15bis.ogg=====theora&vorbis=====video_step:1&audio_step:N/A > 2. oceans-clip.webm=====vp8&vorbis====video_step:42&audio_step:23 > 3. oceans-clip.mp4=====h.264&aac=====video_step:1001&audio_step:1024 > 2012/7/12 Roger Pack > > I am now trying to add libav* to my project, but after reading ffmpeg's > > header files, i still don't understand how to deal with timestamp(pts and > > dts). > > By calling ffmpeg with "-debug_ts", i found timestamps for my test file's > > video stream(mpeg-asp) are 1001, 2002, 3003... Do timestamps always look > > like that? Increase 1001 a step? What to do with timestamps if i want to > > splice two video files? > > ffprobe -show_packets may be interesting to your research. > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From sqbing at gmail.com Fri Jul 13 04:56:02 2012 From: sqbing at gmail.com (=?UTF-8?B?5ZC05paM5paM?=) Date: Fri, 13 Jul 2012 10:56:02 +0800 Subject: [FFmpeg-user] avformat_open_input segmentation fault (core dumped) In-Reply-To: References: Message-ID: Try init "*AVFormatContext pFormatCtx = NULL;*" and check argc. 2012/7/13 Chau Pham > > > > Hi Everybody, I am using ffmpeg libary small c examle that based on > Stephen Dranger http://dranger.com/ffmpeg/I use tutorial02.c, but it have > some error, i have fixed it by replace some updated function in latest > ffmpeg version. below is one of code block: // tutorial02.c > // A pedagogical video player that will stream through every video frame > as fast as it can. > // > // Code based on FFplay, Copyright (c) 2003 Fabrice Bellard, > // and a tutorial by Martin Bohme (boehme at inb.uni-luebeckREMOVETHIS.de) > // Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1 > // Use > // > // gcc -o tutorial02 tutorial02.c -lavformat -lavcodec -lz -lm `sdl-config > --cflags --libs` > // to build (assuming libavformat and libavcodec are correctly installed, > // and assuming you have sdl-config. Please refer to SDL docs for your > installation.) > // > // Run using > // tutorial02 myvideofile.mpg > // > // to play the video stream on your screen. #include "libavcodec/avcodec.h" > #include "libavformat/avformat.h"#include > #include #include int main(int argc, char > *argv[]) { AVFormatContext *pFormatCtx; > int i, videoStream; > AVCodecContext *pCodecCtx; > AVCodec *pCodec; > AVFrame *pFrame; > AVPacket packet; > int frameFinished; > float aspect_ratio; SDL_Overlay *bmp; > SDL_Surface *screen; > SDL_Rect rect; > SDL_Event event; if(argc < 2) { > fprintf(stderr, "Usage: test \n"); > exit(1); > } //Register all formats and codecs > av_register_all(); if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | > SDL_INIT_TIMER)) { > fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError()); > exit(1); > } // Open video file > if(avformat_open_input(&pFormatCtx, argv[1], NULL, NULL)!=0) > return -1; // Couldn't open file // Retrieve stream information > if(av_find_stream_info(pFormatCtx)<0) > return -1; // Couldn't find stream information // Dump information > about file onto standard error > av_dump_format(pFormatCtx, 0, argv[1], 0); > ..... .... I compiled succcessfully the example but when I run it > ./tutorial02 myexaple.mpg => error:[root at CENT6 working]# ./tutorial02 > myexaple.mpg > Segmentation fault (core dumped) > => The error happens in function call as below: > if(avformat_open_input(&pFormatCtx, argv[1], NULL, NULL)!=0) Does enyone > know what happen here? Thank YouChau Pham. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Jul 13 06:24:37 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 12 Jul 2012 22:24:37 -0600 Subject: [FFmpeg-user] About timestamp In-Reply-To: References: Message-ID: > thank you, but more confused now. > I've tested "*ffprobe -show_packets **"for a few files, all of their video > stream's pts/dts step differed. what about pts_time and dts_time values? -r From sqbing at gmail.com Fri Jul 13 07:20:01 2012 From: sqbing at gmail.com (=?UTF-8?B?5ZC05paM5paM?=) Date: Fri, 13 Jul 2012 13:20:01 +0800 Subject: [FFmpeg-user] About timestamp In-Reply-To: References: Message-ID: Seems pts_time/dts_time has some kinid of relation to pts/dts, but obviously not dts_time = dts/1000. What confuses me is why step differs even two files have the same format, say .mp4. Which step to choose when join two files together? Or whether ffmpeg will help me to figure that, i just call av_*_write()? 2012/7/13 Roger Pack > > thank you, but more confused now. > > I've tested "*ffprobe -show_packets **"for a few files, all of their > video > > stream's pts/dts step differed. > > what about pts_time and dts_time values? > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ffmpeg-user at home.gofferje.net Fri Jul 13 09:27:32 2012 From: ffmpeg-user at home.gofferje.net (Stefan Gofferje) Date: Fri, 13 Jul 2012 10:27:32 +0300 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? Message-ID: <4FFFCDE4.60003@home.gofferje.net> Hi, I have recently changed my home video editing to Linux (kdenlive) to get finally completely rid of Windows. Now I'm trying to encode some home-video with ac3 sound. I do the testing/playing with a Pinnacle Showcenter network media player which is connected via fiber-optic cable to a Haman Kardon amplifier. When I play my the encoded file, the amp show "Dolby 2/0" and is silent. The Showcenter shows as audio type "Ogg". File shows RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: (6 channels, 48000 Hz) If I check older files that work on the Showcenter, the output of file is: RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: Dolby AC3 (stereo, 48000 Hz) So in my encoding, the "Dolby AC3" tag seems to be missing. I use ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 15 2012 15:33:11 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --shlibdir=/usr/lib64 --disable-stripping --enable-pthreads --enable-shared --enable-avfilter --disable-static --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-nonfree --enable-postproc --enable-shared --enable-libdc1394 --enable-libtheora --enable-libschroedinger --enable-libvpx --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-x11grab 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 and my command-line is like ffmpeg -i video.mp4 -i left.wav -i right.wav -i surr_left.wav -i surr_right.wav -i center-wav -i lfe-wav -vcodec libxvid -s 624x352 -b:v 1100k -acodec ac3 -ar 48000 -ab 448k video.avi Any hints? -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface -------------------------------------------------------------------------------- This mail was scanned for malware by ClamAV (http://www.clamav.net/) -------------------------------------------------------------------------------- From sheen.andy at googlemail.com Fri Jul 13 09:31:53 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Fri, 13 Jul 2012 08:31:53 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFF6CA7.8060409@gmail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> Message-ID: <4FFFCEE9.2010207@googlemail.com> Kyle Schwarz wrote on Fri 13 Jul at 1:32 UK time >> Can't easily see a 64-bit gdb, yes, I can build a 32 bit version and see >> if the same problem occurs, but it does point to a race condition in the >> wingw implementation of pthreads at the moment. > > I'm unable to reproduce this error. It could be because I'm not on my > powerful desktop, or it could be something else. > > Could you give me the most basic command line that still produces the > issue with my latest builds (299387e)? ffmpeg -i 7416_20120706235700.mpg -c:v libx264 nul.mp4 That short enough? It's much easier to see the spikes with -pass 1 though. ffmpeg -i 7416_20120706235700.mpg -pass 1 -c:v libx264 nul.mp4 where the file is a MPEG TS file. I have reproduced where the data file is a .mkv file too (although interestingly, the spiking does seem to be little less frequent). If you want an upload of the data, please let me know where/how much you want (it'll probably need to be a fair chunk to really show the problem - I don't think a 10M dump will show it). The command line I normally use is: ffmpeg -y -loglevel info -i 7416_20120706232700.mpg -r 25 -ss 0:0:0 -t 0:10:00 -map 0:0 -pass 1 -preset fast -tune film -profile high -fastfirstpass 1 -c:v libx264 -b:v 1200k -threads 8 -f mp4 -an nul Funnily enough, I have never seen the problem with -pass 2 in the command line. I.e. ffmpeg -i 7416_20120706235700.mpg -pass 1 -c:v libx264 -b:v 1200k -c:a copy nul.mp4 shows the problem (averages ~50% CPU use with spikes and the counter freezes) whilst: ffmpeg -i 7416_20120706235700.mpg -pass 2 -c:v libx264 -b:v 1200k -c:a copy nul.mp4 works correctly (uses ~100% of the CPU, but never freezes the counter). Just to prove I'm using your latest build, here's the first part of the output: ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:48:29 with gcc 4.7.1 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 > > The reason I use pthread/winpthreads instead of w32thread is because > many more packages on Linux support pthread then do w32thread. I also > believe the code base to be stable and a good thread management solution. > Fair point... well made :) > You can also compile gdb with the toolchain you used to compile FFmpeg, > if your interested. > Good idea. I'll try that over the weekend :) > Best regards, > Kyle Schwarz (Zeranoe) Thanks for providing all this - it is appreciated (your mingw script was the first time I managed to configure a build environment that worked *properly* for Windows builds of ffmpeg) Andy From cehoyos at ag.or.at Fri Jul 13 10:33:04 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 13 Jul 2012 08:33:04 +0000 (UTC) Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? References: <4FFFCDE4.60003@home.gofferje.net> Message-ID: Stefan Gofferje home.gofferje.net> writes: > RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, > audio: (6 channels, 48000 Hz) ^ > If I check older files that work on the Showcenter, the output of file is: > > RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, > audio: Dolby AC3 (stereo, 48000 Hz) ^^^^^^ FFmpeg developers believe that the Microsoft specification requires an avi muxer to use different headers (WAVEFORMATEX) depending on the number of channels (stereo vs 6 channels). Many playback applications are unable to read the header that is - as we believe - required for surround sound. (Note that stereo files should work fine.) There are many reports about this, so far nobody could provide any indication that FFmpeg developers are wrong in their interpretation of the standard. (The best test would be with a Xbox - if it turns out that the Xbox does not read the waveformatextensible header, the code will probably be changed, see ticket #253.) Carl Eugen From ffmpeg-user at home.gofferje.net Fri Jul 13 11:08:20 2012 From: ffmpeg-user at home.gofferje.net (Stefan Gofferje) Date: Fri, 13 Jul 2012 12:08:20 +0300 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: References: <4FFFCDE4.60003@home.gofferje.net> Message-ID: <4FFFE584.4030407@home.gofferje.net> Hi, On 07/13/2012 11:33 AM, Carl Eugen Hoyos wrote: >> RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, >> audio: Dolby AC3 (stereo, 48000 Hz) > ^^^^^^ Oops... here is a file output from another one: RIFF (little-endian) data, AVI, 720 x 480, 23.98 fps, video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz) > FFmpeg developers believe that the Microsoft specification > requires an avi muxer to use different headers (WAVEFORMATEX) > depending on the number of channels (stereo vs 6 channels). > Many playback applications are unable to read the header that is - > as we believe - required for surround sound. I don't really understand what you are talking about. I'm not very deep in this codec stuff, just a video hobbyist. Are you saying, it is not possible to create ac3 streams with ffmpeg that have the Dolby AC3 tag and work on network media players with Dolby certified amplifiers? -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface -------------------------------------------------------------------------------- This mail was scanned for malware by ClamAV (http://www.clamav.net/) -------------------------------------------------------------------------------- From nichot20 at yahoo.com Fri Jul 13 12:32:26 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 13 Jul 2012 11:32:26 +0100 Subject: [FFmpeg-user] Tagging audio channels Message-ID: <4FFFF93A.9050101@yahoo.com> When using sources with multiple audio channels I often get a warning of the form:- Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Which is fine, but if I am amerging these into a single 4 channel stream is there any way of tagging the resultant channels with something sensible (like L/R L/R for main and alternative stereo) to avoid further ambiguity? -- Tim From cehoyos at ag.or.at Fri Jul 13 12:37:44 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 13 Jul 2012 10:37:44 +0000 (UTC) Subject: [FFmpeg-user] Tagging audio channels References: <4FFFF93A.9050101@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > Guessed Channel Layout for Input Stream #0.1 : mono > Guessed Channel Layout for Input Stream #0.2 : mono > Guessed Channel Layout for Input Stream #0.3 : mono > Guessed Channel Layout for Input Stream #0.4 : mono > > Which is fine, but if I am amerging these into a single 4 channel stream > is there any way of tagging the resultant channels with something > sensible (like L/R L/R for main and alternative stereo) Do you have a sample that is tagged "L/R L/R for main and alternative stereo"? I ask because I suspect this tagging is not supported by any container supported by FFmpeg. Carl Eugen From nichot20 at yahoo.com Fri Jul 13 13:08:08 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 13 Jul 2012 12:08:08 +0100 Subject: [FFmpeg-user] Tagging audio channels In-Reply-To: References: <4FFFF93A.9050101@yahoo.com> Message-ID: <50000198.8070608@yahoo.com> On 13/07/12 11:37, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >> Guessed Channel Layout for Input Stream #0.1 : mono >> Guessed Channel Layout for Input Stream #0.2 : mono >> Guessed Channel Layout for Input Stream #0.3 : mono >> Guessed Channel Layout for Input Stream #0.4 : mono >> >> Which is fine, but if I am amerging these into a single 4 channel stream >> is there any way of tagging the resultant channels with something >> sensible (like L/R L/R for main and alternative stereo) > > Do you have a sample that is tagged "L/R L/R for main and alternative stereo"? > I ask because I suspect this tagging is not supported by any > container supported by FFmpeg. Yes. Not uncommon in .mov to have L R L R. > > Carl Eugen >[..] -- Tim From cehoyos at ag.or.at Fri Jul 13 13:39:45 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 13 Jul 2012 11:39:45 +0000 (UTC) Subject: [FFmpeg-user] Tagging audio channels References: <4FFFF93A.9050101@yahoo.com> <50000198.8070608@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > > Do you have a sample that is tagged "L/R L/R for main > > and alternative stereo"? > > I ask because I suspect this tagging is not supported by any > > container supported by FFmpeg. > > Yes. Not uncommon in .mov to have L R L R. Could you provide a sample? I just looked in the caf specification and it seems to me this is only possible with "channel description" and we do not have many samples with a useful description. Carl Eugen From nichot20 at yahoo.com Fri Jul 13 15:13:58 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 13 Jul 2012 14:13:58 +0100 Subject: [FFmpeg-user] Tagging audio channels In-Reply-To: References: <4FFFF93A.9050101@yahoo.com> <50000198.8070608@yahoo.com> Message-ID: <50001F16.5010008@yahoo.com> On 13/07/12 12:39, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >>> Do you have a sample that is tagged "L/R L/R for main >>> and alternative stereo"? >>> I ask because I suspect this tagging is not supported by any >>> container supported by FFmpeg. >> >> Yes. Not uncommon in .mov to have L R L R. > > Could you provide a sample? http://www.datafilehost.com/download-cb948a88.html Quicktime says its L/R L/R ffprobe FL/FR FL/FR. So I guess using FL/FR would work if it translated back to L/R in quicktime land. > I just looked in the caf specification and it seems to me > this is only possible with "channel description" and we do > not have many samples with a useful description. > > Carl Eugen > > [..] -- Tim From cehoyos at ag.or.at Fri Jul 13 15:42:19 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 13 Jul 2012 13:42:19 +0000 (UTC) Subject: [FFmpeg-user] Tagging audio channels References: <4FFFF93A.9050101@yahoo.com> <50000198.8070608@yahoo.com> <50001F16.5010008@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > >> Yes. Not uncommon in .mov to have L R L R. > > > > Could you provide a sample? > > http://www.datafilehost.com/download-cb948a88.html The file has four streams, you were originally asking to tag a stream with four channels as LRLR, I don't think this is (easily) possible. Carl Eugen From nichot20 at yahoo.com Fri Jul 13 16:35:58 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 13 Jul 2012 15:35:58 +0100 Subject: [FFmpeg-user] Tagging audio channels In-Reply-To: References: <4FFFF93A.9050101@yahoo.com> <50000198.8070608@yahoo.com> <50001F16.5010008@yahoo.com> Message-ID: <5000324E.9060007@yahoo.com> On 13/07/12 14:42, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >>>> Yes. Not uncommon in .mov to have L R L R. >>> >>> Could you provide a sample? >> >> http://www.datafilehost.com/download-cb948a88.html > > The file has four streams, you were originally asking to > tag a stream with four channels as LRLR, I don't think this > is (easily) possible. > True, sorry to confuse, but in Quicktime you can have it for either layout.. 4ch 1 stream version L/R L/R:- http://www.datafilehost.com/download-ae6a91cd.html I was just trying to see if it was possible in any way shape or form, and had come to the conclusion it was unlikely... I think from what you say that is still the case. > Carl Eugen > [..] -- Tim From rogerdpack2 at gmail.com Fri Jul 13 17:26:26 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 13 Jul 2012 09:26:26 -0600 Subject: [FFmpeg-user] About timestamp In-Reply-To: References: Message-ID: > Seems pts_time/dts_time has some kinid of relation to pts/dts, but > obviously not dts_time = dts/1000. Yeah it's supposed to be the "converted" "timestamp" or "humanized" or something. My guess is that ffmpeg takes care of the conversion internally. From rogerdpack2 at gmail.com Fri Jul 13 17:58:06 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 13 Jul 2012 09:58:06 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> Message-ID: > Odd, but true. Underneath is a FFmpeg 0.8.1 which on its own is sloooow. > But when called from within Mencoder it is really quick. Somehow > Mencoder grabs more of the available CPU power: > https://sessiondatabase.net/jwplayer/double5.gif Feel free to dig way down deep and decode this mystery (do you have hyper threaded cores?) :) -roger- From cehoyos at ag.or.at Fri Jul 13 18:21:26 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 13 Jul 2012 16:21:26 +0000 (UTC) Subject: [FFmpeg-user] Tagging audio channels References: <4FFFF93A.9050101@yahoo.com> <50000198.8070608@yahoo.com> <50001F16.5010008@yahoo.com> <5000324E.9060007@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > 4ch 1 stream version L/R L/R:- > > http://www.datafilehost.com/download-ae6a91cd.html Thank you for the sample! (I wonder how the application is supposed to know which of the two "chan" atoms should be used, the one that says 4.0 or the one that says LRLR? But I did not look carefully.) FFmpeg currently does not even support reading the channel layout, and unfortunately, it is incompatible with the internal representation. Stream-copying should be possible though, afair, I once posted a patch that may work. Carl Eugen From rogerdpack2 at gmail.com Fri Jul 13 20:33:39 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 13 Jul 2012 12:33:39 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <4FFFCEE9.2010207@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> Message-ID: > It's much easier to see the spikes with -pass 1 though. > > ffmpeg -i 7416_20120706235700.mpg -pass 1 -c:v libx264 nul.mp4 Ok I'm able to see it with 32-bit ffmpeg (running on 64 bit windows 7, with either an Athlon X2 or an i7). Every so often the console output "hangs" (mine uses basically 100% cpu the whole time, I don't see any spikes). Using this file: http://rogerdpack.t28.net/incoming/sintel.mpg zeranoe build ffmpeg-20120706-git-8293a21-win32-shared: ... (ran ffmpeg -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.mp4 [1]) took 32.0s (showed console pause at frame 1145) took 35.8 (showed console pauses at frames 641, 1079) took 25.27s (showed no console pauses--it got lucky!) other build (http://x32.elijst.nl/FFmpeg-20120622.7z [20120622-N-41843-gc17808c-mod Jul 11 2012]): (ran \Downloads\FFmpeg-20120622\ffmpeg.exe -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.new.mp4 [2]) took 25.6s took 26.6s took 24.5s (never shows console pauses) They make "presumably" the same file: 3780 -rw-r--r-- 1 packrd Administ 7739909 Jul 13 12:30 original.mp4 3779 -rw-r--r-- 1 packrd Administ 7739232 Jul 13 12:32 w32threads.mp4 I don't see pauses with other codecs like mpeg4 or mpeg2video codecs, just x264. > Can't easily see a 64-bit gdb, yes, I can build a 32 bit version and see > if the same problem occurs, but it does point to a race condition in the > wingw implementation of pthreads at the moment. Do these work? http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20(Win64%20hosted)/gdb Cheers! -roger- uncut output: [1] c:\installs\ffmpeg-20120706-git-8293a21-win32-shared\bin\ffmpeg.exe -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an original.mp4 ffmpeg version N-42288-g8293a21 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2012 20:58:08 with gcc 4.7.1 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 01e759e0] ac-tex damaged at 40 7 [mpeg2video @ 01e759e0] Warning MVs not available [mpeg2video @ 01e759e0] concealing 1035 DC, 1035 AC, 1035 MV errors [mpeg @ 01e63240] 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 [graph 0 input from stream 0:0 @ 01f4eb40] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2 [output stream 0:0 @ 01f4ee40] No opaque field provided [libx264 @ 01e764a0] using SAR=32/27 [libx264 @ 01e764a0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 01e764a0] profile Main, level 3.0 [libx264 @ 01e764a0] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'original.mp4': Metadata: encoder : Lavf54.15.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, pass 1, 30k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Press [q] to stop, [?] for help [mpeg2video @ 01e759e0] ac-tex damaged at 40 7 [mpeg2video @ 01e759e0] Warning MVs not available [mpeg2video @ 01e759e0] concealing 1035 DC, 1035 AC, 1035 MV errors frame= 2248 fps= 53 q=29.0 Lsize= 7559kB time=00:01:14.94 bitrate= 826.2kbits/s dup=202 drop=0 video:7537kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.290262% [libx264 @ 01e764a0] frame I:44 Avg QP:20.21 size: 12565 [libx264 @ 01e764a0] frame P:1323 Avg QP:25.44 size: 4719 [libx264 @ 01e764a0] frame B:881 Avg QP:27.98 size: 1045 [libx264 @ 01e764a0] consecutive B-frames: 38.7% 23.2% 11.7% 26.3% [libx264 @ 01e764a0] mb I I16..4: 61.4% 0.0% 38.6% [libx264 @ 01e764a0] mb P I16..4: 22.7% 0.0% 0.0% P16..4: 29.2% 0.0% 0.0% 0.0% 0.0% skip:48.2% [libx264 @ 01e764a0] mb B I16..4: 1.1% 0.0% 0.0% B16..8: 13.1% 0.0% 0.0% direct: 3.3% skip:82.5% L0:35.7% L1:49.5% BI:14.8% [libx264 @ 01e764a0] coded y,uvDC,uvAC intra: 28.5% 17.5% 1.8% inter: 8.3% 2.5% 0.0% [libx264 @ 01e764a0] i16 v,h,dc,p: 29% 37% 21% 13% [libx264 @ 01e764a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 53% 18% 2% 3% 2% 2% 2% 2% [libx264 @ 01e764a0] i8c dc,h,v,p: 68% 18% 13% 1% [libx264 @ 01e764a0] Weighted P-Frames: Y:2.3% UV:0.1% [libx264 @ 01e764a0] kb/s:823.03 took 42.473796s (ran ffmpeg -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an original.mp4) [2] timerr \Downloads\FFmpeg-20120622\ffmpeg.exe -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.new.mp4 \Downloads\FFmpeg-20120622\ffmpeg.exe -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.new.mp4 ffmpeg version 20120622-N-41843-gc17808c-mod Copyright (c) 2000-2012 the FFmpeg developers built on Jul 11 2012 02:56:33 with gcc 4.5.2 configuration: --extra-cflags=-m32 --extra-ldflags='-m32 -L/usr/local/i686-pc-mingw32/lib' --prefix=/usr/local/i686-pc-mingw32 --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libmp3lame --enable-libx264 libavutil 51. 61.100 / 51. 61.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 [mpeg2video @ 0174C900] ac-tex damaged at 40 7 [mpeg2video @ 0174C900] Warning MVs not available [mpeg2video @ 0174C900] concealing 1035 DC, 1035 AC, 1035 MV errors [mpeg @ 0174C400] 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 [buffer @ 03387FE0] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2 [ffmpeg_buffersink @ 03398160] No opaque field provided [libx264 @ 0340E6A0] using SAR=32/27 [libx264 @ 0340E6A0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0340E6A0] profile Main, level 3.0 [libx264 @ 0340E6A0] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'nul.new.mp4': Metadata: encoder : Lavf54.11.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, pass 1, 30k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Press [q] to stop, [?] for help [mpeg2video @ 0174C900] ac-tex damaged at 40 7 [mpeg2video @ 0174C900] Warning MVs not available [mpeg2video @ 0174C900] concealing 1035 DC, 1035 AC, 1035 MV errors frame= 2248 fps= 93 q=29.0 Lsize= 0kB time=00:01:14.94 bitrate= 0.0kbits/s dup=202 drop=0 video:7536kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000% [libx264 @ 0340E6A0] frame I:44 Avg QP:20.21 size: 12565 [libx264 @ 0340E6A0] frame P:1323 Avg QP:25.41 size: 4719 [libx264 @ 0340E6A0] frame B:881 Avg QP:27.98 size: 1045 [libx264 @ 0340E6A0] consecutive B-frames: 38.7% 23.2% 11.7% 26.3% [libx264 @ 0340E6A0] mb I I16..4: 61.4% 0.0% 38.6% [libx264 @ 0340E6A0] mb P I16..4: 22.7% 0.0% 0.0% P16..4: 29.2% 0.0% 0.0% 0.0% 0.0% skip:48.2% [libx264 @ 0340E6A0] mb B I16..4: 1.1% 0.0% 0.0% B16..8: 13.1% 0.0% 0.0% direct: 3.3% skip:82.5% L0:35.6% L1:49.6% BI:14.8% [libx264 @ 0340E6A0] coded y,uvDC,uvAC intra: 28.5% 17.5% 1.8% inter: 8.3% 2.5% 0.0% [libx264 @ 0340E6A0] i16 v,h,dc,p: 29% 37% 21% 13% [libx264 @ 0340E6A0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 53% 18% 2% 3% 2% 2% 2% 2% [libx264 @ 0340E6A0] i8c dc,h,v,p: 68% 18% 13% 1% [libx264 @ 0340E6A0] Weighted P-Frames: Y:2.3% UV:0.1% [libx264 @ 0340E6A0] kb/s:823.01 took 24.345798s (ran \Downloads\FFmpeg-20120622\ffmpeg.exe -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.new.mp4) From phpdev at ehrhardt.nl Fri Jul 13 20:37:18 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Fri, 13 Jul 2012 20:37:18 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> Message-ID: <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> Roger Pack in gmane.comp.video.ffmpeg.user (Wed, 11 Jul 2012 15:13:26 -0600): >> What still strikes me: on my most troublesome file (50i PAFF interlaced >> Canon HF M306 recording) the ancient Mencoder-33883 is as quick as or >> even faster than the fastest FFmpeg. See output below. > >That seems odd since I'd guess that mencoder just "calls out" to >ffmpeg underneath, anyway (or libavcodec or what not). You could >compare it to some "ancient" versions of ffmpeg I suppose :) I compiled the latest Mencoder (r35020) with underneath FFmpeg ffmpeg-HEAD-d3abbb1 (pthreaded) and ffmpeg-HEAD-d3abbb1 with the same configs. The speed difference is still there: https://sessiondatabase.net/jwplayer/dubbel5s.gif The first encode is a one pass with 2 times the same input file, knitted together to a 8:08 minute movie. However, the latest Mencoder has troubles with 2 files as input files: the audio in the second file is out-of sync. Moreover, this MEncoder has troubles with encoding 50i PAFF interlaced files to WMV files. So, the second encode does both files after each other with '-mc 1 -vf scale=448:256,harddup,telecine' and afterwards I knit them together with asfbin (the 'pause' between the encodes). The telecine filter was the only way to get a viewable and hearable result. But it is far from ideal: https://sessiondatabase.net/jwplayer/telecine.gif The still shows a person passing the camera at a short distance. The whole encoded video shows those stripes. I will report this issue in the MEncoder users list. The third encode is an ancient MEncoder. Core from r33986, Stream & demux_lavc from r34118 (which supports >2GB input files), FFmpeg 0.8.1 from Sherpya's r33883. As you can see, it is almost as fast as the latest MEncoder. And the transcode is without any issues. No troubles with more input files, no extra filters needed. The last encode is ffmpeg-HEAD-d3abbb1 on its own. Sloooow. I know I can go faster, but used this one for a fair comparison. Andy Sheen's version N-42432-gb27c7d7 (w32threaded) goes up to 111/112 fps, but even that is still slower than the ancient MEncoder 33986/34188/33883. It looks like MEncoder has some internal mechanism for extra threading. Jan PS. No, I do not have hyper threaded cores ;-) From rogerdpack2 at gmail.com Fri Jul 13 20:57:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 13 Jul 2012 12:57:55 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> Message-ID: > The last encode is ffmpeg-HEAD-d3abbb1 on its own. Sloooow. I know I can > go faster, but used this one for a fair comparison. Andy Sheen's version > N-42432-gb27c7d7 (w32threaded) goes up to 111/112 fps, but even that is > still slower than the ancient MEncoder 33986/34188/33883. > > It looks like MEncoder has some internal mechanism for extra threading. So you and I would presume it's just faster because of some internal mechanism for extra threading? I wonder if it's related to https://github.com/FFmpeg/FFmpeg/commit/47b812e9cec3e0b2 It would be interesting to see if it shows the same speed difference in linux that it does in windows. But besides that, I don't know what it is :) -roger- From rogerdpack2 at gmail.com Fri Jul 13 21:01:45 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 13 Jul 2012 13:01:45 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> Message-ID: > It would be interesting to see if it shows the same speed difference > in linux that it does in windows. But besides that, I don't know what > it is :) Also if you specify -threads = 16 does that make a difference (using the w32threads one I suppose). From neil.turner at lewes.co.uk Fri Jul 13 15:36:42 2012 From: neil.turner at lewes.co.uk (Neil) Date: Fri, 13 Jul 2012 06:36:42 -0700 (PDT) Subject: [FFmpeg-user] How to use FFmpeg in an iPhone app Message-ID: <1342186602918-4651788.post@n4.nabble.com> Hi I'm not an Objective-C developer (yet) but I need to use ffmpeg in an iphone app to compress videos Can someone tell me or point me at an idiots guide to doing that? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-use-FFmpeg-in-an-iPhone-app-tp4651788.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From phpdev at ehrhardt.nl Fri Jul 13 22:15:26 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Fri, 13 Jul 2012 22:15:26 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> Message-ID: Roger Pack in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 12:57:55 -0600): >It would be interesting to see if it shows the same speed difference >in linux that it does in windows. But besides that, I don't know what >it is :) Try it. The source: http://x32.elijst.nl/00005.MTS The commandlines: mencoder -mc 1 -vf scale=448:256,harddup,telecine -aspect 16:9 -lavcopts aspect=16/9 -sws 2 -lavdopts fast:threads=6 -of lavf -lavfopts format=asf -ovc lavc -lavcopts vcodec=wmv2:vbitrate=336:keyint=50 -oac lavc -lavcopts acodec=wmav2:abitrate=64:aglobal=1:turbo=1 -af volnorm -o wmvwma.wmv 00005.MTS ffmpeg -i 00005.MTS -vf scale=448:256 -aspect 16:9 -sws_flags bicubic -vcodec wmv2 -b 336k -r 25 -acodec wmav2 -ab 64k -threads 6 wmvwma.wmv Download MEncoder: svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer Configure: ./configure --enable-runtime-cpudetection --enable-static --yasm=/yasm --disable-decoder=exr (exr would not compile on my windows system, something with uncompress missing) It will automatically fetch the latest ffmpeg from github. There is a chance you will have to disable zlib, I installed it. Just a 'make' is good enough for testing. No need to make install. Andy: if you are reading this, can you try it on your Windows machine? Jan PS. The keyint=50 is not matched by a -g 50, I see now. As are the extra filters in the MEncoder commandline. I do not really know what 'fast' and 'turbo' do in the MEncoder commandline. PPSS. I always test with two Mencoder statements. The first with -endpos 00:00:02. See http://sourceforge.net/tracker/?func=detail&aid=3395411&group_id=205275&atid=992986 From phpdev at ehrhardt.nl Sat Jul 14 03:59:15 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 14 Jul 2012 03:59:15 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> Message-ID: <11j108pj8242qb8jti1sj0ct1bgaele2hu@4ax.com> Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 22:15:26 +0200): >Roger Pack in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 12:57:55 >-0600): >>It would be interesting to see if it shows the same speed difference >>in linux that it does in windows. But besides that, I don't know what >>it is :) > >Try it. To answer my own challenge: on *nix MEncoder is also faster on this file as well. 71.7 versus 57 fps = 25% faster. Centos 6, Mencoder r35020 with the same Git version of FFmpeg as on my Windows 7 machine. ffmpeg version git-2012-07-13-d3abbb1 ffmpeg -i 00005.MTS -vf scale=448:256 -aspect 16:9 -sws_flags bicubic -vcodec wmv2 -b 336k -r 25 -acodec wmav2 -ab 64k -threads 6 -y 00005ff.wmv fps= 57 MEncoder SVN-r35020-4.4.6 mencoder -mc 1 -vf scale=448:256,harddup,telecine -lavdopts fast:threads=6 -of lavf -lavfopts format=asf -ovc lavc -lavcopts vcodec=wmv2:vbitrate=335 -oac lavc -lavcopts acodec=wmav2:abitrate=64 -o 00005menc.wmv 00005.MTS 143.41fps (50i interlaced frames counting) = 71.7 fps The really old MEncoder SVN-r31628-4.4.5 is somewhat slower than the latest FFMpeg: 48fps. But it does not need the extra telecine filter to produce correct encoded files. MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team Note: this is a version before the MT merge! mencoder -mc 1 -vf scale=448:256,harddup -lavdopts fast:threads=6 -of lavf -lavfopts format=asf -ovc lavc -lavcopts vcodec=wmv2:vbitrate=335 -oac lavc -lavcopts acodec=wmav2:abitrate=64 -o 00005menc.wmv 00005.MTS 95.83fps (50i interlaced frames counting) = 47.9 fps Jan # ./fftest.sh ffmpeg version git-2012-07-13-d3abbb1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 14 2012 03:20:21 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3) configuration: --enable-static libavutil 51. 64.100 / 51. 64.100 libavcodec 54. 35.100 / 54. 35.100 libavformat 54. 16.104 / 54. 16.104 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 [mpegts @ 0x1ea7120] max_analyze_duration 5000000 reached at 5000000 Input #0, mpegts, from '00005.MTS': Duration: 00:04:04.32, start: 0.820033, bitrate: 5333 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 256 kb/s Please use -b:a or -b:v, -b is ambiguous [graph 0 input from stream 0:0 @ 0x1eac7c0] w:1440 h:1080 pixfmt:yuv420p tb:1/90000 fr:50/1 sar:4/3 sws_param:flags=2 [Parsed_scale_0 @ 0x1eac320] w:1440 h:1080 fmt:yuv420p sar:4/3 -> w:448 h:256 fmt:yuv420p sar:64/63 flags:0x4 [graph 1 input from stream 0:1 @ 0x1f993e0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 Output #0, asf, to '00005ff.wmv': Metadata: WM/EncodingSettings: Lavf54.16.104 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 448x256 [SAR 64:63 DAR 16:9], q=2-31, 336 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> wmv2) Stream #0:1 -> #0:1 (ac3 -> wmav2) Press [q] to stop, [?] for help frame= 6109 fps= 57 q=11.5 Lsize= 12630kB time=00:04:04.35 bitrate= 423.4kbits/s dup=1 drop=0 video:10308kB audio:1907kB subtitle:0 global headers:0kB muxing overhead 3.399911% # ./menctest.sh MEncoder SVN-r35020-4.4.6 (C) 2000-2012 MPlayer Team success: format: 0 data: 0x0 - 0x9b59800 libavformat version 54.16.104 (internal) TS file format detected. VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)! PROGRAM N. 1 FPS seems to be: 25.000000 [V] filefmt:29 fourcc:0x10000005 size:1440x1088 fps:25.000 ftime:=0.0400 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders libavcodec version 54.35.100 (internal) AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000) Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3) ========================================================================== ** MUXER_LAVF ***************************************************************** REMEMBER: MEncoder's libavformat muxing is presently broken and can generate INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer will play these INCORRECT files as if nothing were wrong! ******************************************************************************* OK, exit. Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [telecine] Opening video filter: [harddup] Opening video filter: [scale w=448 h=256] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Unsupported PixelFormat 61 Unsupported PixelFormat 53 Unsupported PixelFormat 81 1 duplicate frame(s)! Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.007 [0:0] 1 duplicate frame(s)! Pos: 0.0s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.017 [0:0] 1 duplicate frame(s)! Pos: 0.1s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.024 [0:0] 1 duplicate frame(s)! Pos: 0.1s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.037 [0:0] 1 duplicate frame(s)! Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.036 [0:0] Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. [swscaler @ 0xf97f40]BICUBIC scaler, from yuv420p to yuv420p using MMX2 videocodec: libavcodec (448x256 fourcc=32564d57 [WMV2]) New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. VIDEO CODEC ID: 19 AUDIO CODEC ID: 15008, TAG: 0 Writing header... [asf @ 0xe4c4a0]Codec for stream 0 does not use global headers but container format requires global headers [asf @ 0xe4c4a0]Codec for stream 1 does not use global headers but container format requires global headers 1 duplicate frame(s)! Pos: 0.3s 9f ( 0%) 0.00fps Trem: 0min 7mb A-V:0.036 [0:0] 1 duplicate frame(s)! Pos: 0.3s 11f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.031 [0:0] 1 duplicate frame(s)! Pos: 0.3s 12f ( 0%) 0.00fps Trem: 0min 10mb A-V:0.033 [0:0] 1 duplicate frame(s)! Pos: 0.4s 14f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.023 [0:0] 1 duplicate frame(s)! Pos: 40.5s 2015f (16%) 144.66fps Trem: 1min 11mb A-V:0.080 [322:63] Skipping frame! Pos: 81.4s 4061f (33%) 145.22fps Trem: 0min 11mb A-V:0.080 [332:64] Skipping frame! Pos: 121.9s 6089f (50%) 145.11fps Trem: 0min 12mb A-V:0.080 [340:64] Skipping frame! Pos: 163.2s 8159f (66%) 144.46fps Trem: 0min 12mb A-V:0.080 [346:64] Skipping frame! Pos: 204.1s 10205f (83%) 143.74fps Trem: 0min 12mb A-V:0.080 [343:64] Skipping frame! Pos: 243.6s 12183f (100%) 143.40fps Trem: 0min 12mb A-V:0.055 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.6s 12184f (100%) 143.41fps Trem: 0min 12mb A-V:0.074 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.7s 12185f (100%) 143.41fps Trem: 0min 12mb A-V:0.055 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.7s 12186f (100%) 143.42fps Trem: 0min 12mb A-V:0.062 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.7s 12187f (100%) 143.41fps Trem: 0min 12mb A-V:0.033 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.7s 12188f (100%) 143.42fps Trem: 0min 12mb A-V:0.054 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.8s 12189f (100%) 143.41fps Trem: 0min 12mb A-V:0.037 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.8s 12190f (100%) 143.42fps Trem: 0min 12mb A-V:0.058 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.8s 12191f (100%) 143.41fps Trem: 0min 12mb A-V:0.041 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.8s 12192f (100%) 143.42fps Trem: 0min 12mb A-V:0.050 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.8s 12193f (100%) 143.41fps Trem: 0min 12mb A-V:0.021 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.8s 12194f (100%) 143.40fps Trem: 0min 12mb A-V:0.044 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.9s 12195f (100%) 143.39fps Trem: 0min 12mb A-V:0.028 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.9s 12196f (100%) 143.40fps Trem: 0min 12mb A-V:0.050 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.9s 12197f (100%) 143.39fps Trem: 0min 12mb A-V:0.034 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 243.9s 12198f (100%) 143.40fps Trem: 0min 12mb A-V:0.043 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.0s 12199f (100%) 143.39fps Trem: 0min 12mb A-V:0.015 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.0s 12200f (100%) 143.40fps Trem: 0min 12mb A-V:0.038 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 1 duplicate frame(s)! Pos: 244.0s 12201f (100%) 143.39fps Trem: 0min 12mb A-V:0.059 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.0s 12202f (100%) 143.40fps Trem: 0min 12mb A-V:0.082 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.1s 12203f (100%) 143.39fps Trem: 0min 12mb A-V:0.066 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.1s 12204f (100%) 143.40fps Trem: 0min 12mb A-V:0.076 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.1s 12205f (100%) 143.40fps Trem: 0min 12mb A-V:0.049 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.1s 12206f (100%) 143.40fps Trem: 0min 12mb A-V:0.073 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.2s 12207f (100%) 143.39fps Trem: 0min 12mb A-V:0.059 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.2s 12208f (100%) 143.40fps Trem: 0min 12mb A-V:0.081 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.2s 12209f (100%) 143.40fps Trem: 0min 12mb A-V:0.066 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.2s 12210f (100%) 143.41fps Trem: 0min 12mb A-V:0.076 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.2s 12211f (100%) 143.40fps Trem: 0min 12mb A-V:0.049 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.2s 12212f (100%) 143.40fps Trem: 0min 12mb A-V:0.073 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.3s 12213f (100%) 143.39fps Trem: 0min 12mb A-V:0.058 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.3s 12214f (100%) 143.40fps Trem: 0min 12mb A-V:0.081 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Pos: 244.3s 12215f (100%) 143.40fps Trem: 0min 12mb A-V:0.066 [346:64] [wmav2 @ 0xecd840]Provided packet is too small, needs to be 341 Skipping frame! Pos: 244.3s 12216f (100%) 143.41fps Trem: 0min 12mb A-V:0.088 [346:64] Flushing video frames. Writing index... Video stream: 346.158 kbit/s (43269 B/s) size: 10571668 bytes 244.320 secs 12216 frames Audio stream: 64.000 kbit/s (8000 B/s) size: 1952907 bytes 244.113 secs # ./mencold.sh mencoder: /usr/local/lib/libpng12.so.0: no version information available (required by mencoder) MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team success: format: 0 data: 0x0 - 0x9b59800 TS file format detected. VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)! PROGRAM N. 1 FPS seems to be: 25.000000 [V] filefmt:29 fourcc:0x10000005 size:4x3 fps:25.000 ftime:=0.0400 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000) Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3) ========================================================================== ** MUXER_LAVF ***************************************************************** REMEMBER: MEncoder's libavformat muxing is presently broken and can generate INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer will play these INCORRECT files as if nothing were wrong! ******************************************************************************* OK, exit. Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [harddup] Opening video filter: [scale w=448 h=256] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Movie-Aspect is 1.78:1 - prescaling to correct movie aspect..000 [0:0] [swscaler @ 0x27a0d30] BICUBIC scaler, from yuv420p to yuv420p using MMX2 videocodec: libavcodec (448x256 fourcc=32564d57 [WMV2]) VIDEO CODEC ID: 19 AUDIO CODEC ID: 15008, TAG: 0 Writing header... [asf @ 0x279a710] Codec for stream 0 does not use global headers but container format requires global headers [asf @ 0x279a710] Codec for stream 1 does not use global headers but container format requires global headers 1 duplicate frame(s)! Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.023 [0:0] 1 duplicate frame(s)! Pos: 0.1s 4f ( 0%) 0.00fps Trem: 0min 11mb A-V:0.034 [0:0] 1 duplicate frame(s)! Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 11mb A-V:0.011 [0:0] 1 duplicate frame(s)! Pos: 0.2s 7f ( 0%) 0.00fps Trem: 0min 11mb A-V:0.016 [0:0] 1 duplicate frame(s)! Pos: 0.2s 8f ( 0%) 0.00fps Trem: 0min 12mb A-V:0.032 [0:0] 1 duplicate frame(s)! Pos: 0.4s 13f ( 0%) 0.00fps Trem: 0min 13mb A-V:0.022 [0:0] 1 duplicate frame(s)! Pos: 0.6s 25f ( 0%) 0.00fps Trem: 0min 15mb A-V:0.034 [0:63] 1 duplicate frame(s)! Pos: 24.9s 1234f (10%) 95.73fps Trem: 1min 11mb A-V:0.080 [333:64] Skipping frame! Pos: 65.4s 3262f (27%) 94.94fps Trem: 1min 12mb A-V:0.080 [343:63] Skipping frame! Pos: 106.2s 5302f (43%) 95.67fps Trem: 1min 12mb A-V:0.080 [354:64] Skipping frame! Pos: 147.6s 7378f (60%) 96.13fps Trem: 0min 12mb A-V:0.080 [348:64] Skipping frame! Pos: 188.2s 9406f (77%) 96.05fps Trem: 0min 12mb A-V:0.080 [345:64] Skipping frame! Pos: 228.9s 11446f (94%) 96.08fps Trem: 0min 12mb A-V:0.080 [344:64] Skipping frame! Pos: 243.7s 12187f (100%) 95.87fps Trem: 0min 12mb A-V:0.020 [345:64] 1 duplicate frame(s)! Pos: 243.8s 12191f (100%) 95.87fps Trem: 0min 12mb A-V:0.016 [345:64] 1 duplicate frame(s)! Pos: 243.9s 12193f (100%) 95.86fps Trem: 0min 12mb A-V:-0.001 [345:64] 1 duplicate frame(s)! Pos: 244.0s 12195f (100%) 95.86fps Trem: 0min 12mb A-V:0.000 [345:63] 1 duplicate frame(s)! Pos: 244.0s 12197f (100%) 95.86fps Trem: 0min 12mb A-V:-0.007 [345:64] 1 duplicate frame(s)! Pos: 244.1s 12199f (100%) 95.85fps Trem: 0min 12mb A-V:-0.041 [345:64] 1 duplicate frame(s)! Pos: 244.2s 12201f (100%) 95.85fps Trem: 0min 12mb A-V:-0.050 [345:64] 1 duplicate frame(s)! Pos: 244.3s 12203f (100%) 95.85fps Trem: 0min 12mb A-V:-0.066 [345:64] 1 duplicate frame(s)! Pos: 244.4s 12204f (100%) 95.85fps Trem: 0min 12mb A-V:-0.087 [345:64] 1 duplicate frame(s)! Pos: 244.4s 12205f (100%) 95.85fps Trem: 0min 12mb A-V:-0.070 [345:64] 1 duplicate frame(s)! Pos: 244.5s 12206f (100%) 95.84fps Trem: 0min 12mb A-V:-0.084 [345:64] 1 duplicate frame(s)! Pos: 244.5s 12207f (100%) 95.84fps Trem: 0min 12mb A-V:-0.060 [345:64] 1 duplicate frame(s)! Pos: 244.6s 12209f (100%) 95.84fps Trem: 0min 12mb A-V:-0.101 [345:64] 2 duplicate frame(s)! Pos: 244.7s 12210f (100%) 95.84fps Trem: 0min 12mb A-V:-0.092 [345:64] 1 duplicate frame(s)! Pos: 244.8s 12211f (100%) 95.84fps Trem: 0min 12mb A-V:-0.085 [345:64] 2 duplicate frame(s)! Pos: 244.9s 12213f (100%) 95.83fps Trem: 0min 12mb A-V:-0.096 [345:64] 2 duplicate frame(s)! Pos: 245.0s 12214f (100%) 95.83fps Trem: 0min 12mb A-V:-0.081 [345:64] 1 duplicate frame(s)! Pos: 245.0s 12215f (100%) 95.83fps Trem: 0min 12mb A-V:-0.073 [345:64] Flushing video frames. Writing index... Video stream: 345.637 kbit/s (43204 B/s) size: 10586847 bytes 245.040 secs 12215 frames Audio stream: 64.000 kbit/s (8000 B/s) size: 1964501 bytes 245.563 secs From paziu at yahoo.com Sat Jul 14 04:32:39 2012 From: paziu at yahoo.com (Mike F) Date: Fri, 13 Jul 2012 19:32:39 -0700 (PDT) Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <11j108pj8242qb8jti1sj0ct1bgaele2hu@4ax.com> References: <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> <11j108pj8242qb8jti1sj0ct1bgaele2hu@4ax.com> Message-ID: <1342233159.76040.YahooMailNeo@web110516.mail.gq1.yahoo.com> > Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 22:15:26 +0200): >> Roger Pack in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 12:57:55 >> -0600): >>> It would be interesting to see if it shows the same speed difference >>> in linux that it does in windows.? But besides that, I don't know > what >>> it is :) >> >> Try it. gentoo3 # time ./mencoder -mc 1 -vf scale=448:256,harddup,telecine -aspect 16:9 -lavcopts aspect=16/9 -sws 2 -lavdopts fast:threads=6 -of lavf -lavfopts format=asf -ovc lavc -lavcopts vcodec=wmv2:vbitrate=336:keyint=50 -oac lavc -lavcopts acodec=wmav2:abitrate=64:aglobal=1:turbo=1 -af volnorm -o wmvwma.wmv ../../../../encoder/00005.MTS 2>/dev/null MEncoder SVN-r35022-4.5.2 (C) 2000-2012 MPlayer Team Pos: 244.3s? 12216f (100%) 253.38fps Trem:?? 0min? 12mb? A-V:0.088 [350:64] real??? 0m48.251s user??? 1m52.929s sys???? 0m0.880s gentoo3 # time ffmpeg -i ../../../../encoder/00005.MTS -vf scale=448:256 -aspect 16:9 -sws_flags bicubic -vcodec wmv2 -b 336k -r 25 -acodec wmav2 -ab 64k -threads 6 wmvwmaff.wmv ffmpeg version N-42344-g99622f6 Copyright (c) 2000-2012 the FFmpeg developers frame= 6109 fps= 77 q=11.5 Lsize=?? 12630kB time=00:04:04.35 bitrate= 423.4kbits/s dup=1 drop=0 real??? 1m21.452s user??? 1m53.586s sys???? 0m0.907s mencoder with threads=16 same time ( again only 4 of all 8 physical cores used ) mencoder with threads=17 - Exiting... (error parsing command line) ?????? to many threads? :-] ffmpeg with 6 or 12 "threads" same result - only 2 out of 8 cores used... 1m21s sec for both 6 and 12 :-( ( real time of course ) mencoder does a better job, but still far from perfect.... ( 50% H/W used ) ffmpeg only 20% of hardware or so... ( btw, I run -j12 when compiling any source on my twin xeon quad core 54xx ) From paziu at yahoo.com Sat Jul 14 05:08:38 2012 From: paziu at yahoo.com (Mike F) Date: Fri, 13 Jul 2012 20:08:38 -0700 (PDT) Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <1342233159.76040.YahooMailNeo@web110516.mail.gq1.yahoo.com> References: <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> <11j108pj8242qb8jti1sj0ct1bgaele2hu@4ax.com> <1342233159.76040.YahooMailNeo@web110516.mail.gq1.yahoo.com> Message-ID: <1342235318.92783.YahooMailNeo@web110510.mail.gq1.yahoo.com> I looked again at the numbers, as you probably already did... the 50% as I thought is not right for mencoder, it is a bit over 20% h/w used ( 2.1 cores out of 8 ) mencoder real??? 0m48.251s user??? 1m52.929s sys???? 0m0.880s ffmpeg is using 1.4 threads efficiency during the encode process... ffmpeg real??? 1m21.452s user??? 1m53.586s sys???? 0m0.907s I might be wrong, but several other multithreaded processes show a way higher ratio between >user< and >real< Mike From phpdev at ehrhardt.nl Sat Jul 14 06:12:20 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sat, 14 Jul 2012 06:12:20 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <66erv7d1hrbidu8gm55hbiivo60hgip221@4ax.com> <4FFDD019.4010304@googlemail.com> <3omrv7p7ns981bi463k8jovnlejl7vv0ja@4ax.com> <52p008ts82o4h0vi4r7c028htfnd01uo8p@4ax.com> <11j108pj8242qb8jti1sj0ct1bgaele2hu@4ax.com> Message-ID: <9vr108l16jc84tklsg3kekiqa8cgjpvrga@4ax.com> Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Sat, 14 Jul 2012 03:59:15 +0200): >Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 22:15:26 +0200): >>Roger Pack in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 12:57:55 >>-0600): >>>It would be interesting to see if it shows the same speed difference >>>in linux that it does in windows. But besides that, I don't know what >>>it is :) >> >>Try it. > >To answer my own challenge: on *nix MEncoder is also faster on this >file as well. 71.7 versus 57 fps = 25% faster. > >Centos 6, Mencoder r35020 with the same Git version of FFmpeg as >on my Windows 7 machine. > >ffmpeg version git-2012-07-13-d3abbb1 >ffmpeg -i 00005.MTS -vf scale=448:256 -aspect 16:9 -sws_flags bicubic > -vcodec wmv2 -b 336k -r 25 -acodec wmav2 -ab 64k -threads 6 > -y 00005ff.wmv >fps= 57 > >MEncoder SVN-r35020-4.4.6 >mencoder -mc 1 -vf scale=448:256,harddup,telecine > -lavdopts fast:threads=6 -of lavf -lavfopts format=asf > -ovc lavc -lavcopts vcodec=wmv2:vbitrate=335 > -oac lavc -lavcopts acodec=wmav2:abitrate=64 > -o 00005menc.wmv 00005.MTS >143.41fps (50i interlaced frames counting) = 71.7 fps > >The really old MEncoder SVN-r31628-4.4.5 is somewhat slower than >the latest FFMpeg: 48fps. But it does not need the extra telecine >filter to produce correct encoded files. > >MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team >Note: this is a version before the MT merge! >mencoder -mc 1 -vf scale=448:256,harddup > -lavdopts fast:threads=6 -of lavf -lavfopts format=asf > -ovc lavc -lavcopts vcodec=wmv2:vbitrate=335 > -oac lavc -lavcopts acodec=wmav2:abitrate=64 > -o 00005menc.wmv 00005.MTS >95.83fps (50i interlaced frames counting) = 47.9 fps Added my Mencoder-r33986/33883/34188 mixture to the comparison. After compiling it on the same Centos 6 machine it proved to be 8% faster than the latest FFmpeg (63 versus 58 fps). And the quality of the encoded file is on par with what FFmpeg produces. Jan # ./menc33986.sh MEncoder SVN-r33986-mencoder-r33883-ffmpeg-r34118-stream-r34118-demux_lavf (C) 2000-2011 MPlayer Team success: format: 0 data: 0x0 - 0x9b59800 TS file format detected. VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)! PROGRAM N. 1 FPS seems to be: 25.000000 [V] filefmt:29 fourcc:0x10000005 size:4x3 fps:25.000 ftime:=0.0400 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000) Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3) ========================================================================== ** MUXER_LAVF ***************************************************************** REMEMBER: MEncoder's libavformat muxing is presently broken and can generate INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer will play these INCORRECT files as if nothing were wrong! ******************************************************************************* OK, exit. Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [harddup] Opening video filter: [scale w=448 h=256] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Unsupported PixelFormat 61 Unsupported PixelFormat 53 1 duplicate frame(s)! Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.007 [0:0] 1 duplicate frame(s)! Pos: 0.0s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.017 [0:0] 1 duplicate frame(s)! Pos: 0.1s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.024 [0:0] 1 duplicate frame(s)! Pos: 0.1s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.037 [0:0] 1 duplicate frame(s)! Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.036 [0:0] Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. [swscaler @ 0xcd6500]BICUBIC scaler, from yuv420p to yuv420p using MMX2 videocodec: libavcodec (448x256 fourcc=32564d57 [WMV2]) New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. VIDEO CODEC ID: 19 AUDIO CODEC ID: 15008, TAG: 0 Writing header... [asf @ 0xce5e20]Codec for stream 0 does not use global headers but container format requires global headers [asf @ 0xce5e20]Codec for stream 1 does not use global headers but container format requires global headers 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=1, last=5 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 40 Error while writing frame. Pos: 0.3s 10f ( 0%) 0.00fps Trem: 0min 7mb A-V:0.023 [0:0] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=2, last=5 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 80 Error while writing frame. Pos: 0.4s 12f ( 0%) 0.00fps Trem: 0min 6mb A-V:0.016 [0:0] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=3, last=5 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 120 Error while writing frame. Pos: 0.4s 13f ( 0%) 0.00fps Trem: 0min 6mb A-V:0.028 [0:0] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=4, last=5 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 160 Error while writing frame. Pos: 0.7s 21f ( 0%) 0.00fps Trem: 0min 12mb A-V:0.100 [0:64] Skipping frame! Pos: 0.7s 22f ( 0%) 0.00fps Trem: 0min 12mb A-V:0.087 [0:64] Skipping frame! Pos: 1.5s 65f ( 0%) 0.00fps Trem: 0min 12mb A-V:0.080 [562:63] Skipping frame! Pos: 40.5s 2015f (16%) 125.90fps Trem: 1min 11mb A-V:0.080 [312:63] Skipping frame! Pos: 81.4s 4061f (33%) 126.24fps Trem: 1min 11mb A-V:0.080 [329:64] Skipping frame! Pos: 121.9s 6089f (50%) 125.92fps Trem: 0min 12mb A-V:0.080 [339:64] Skipping frame! Pos: 163.2s 8159f (66%) 126.40fps Trem: 0min 12mb A-V:0.080 [346:64] Skipping frame! Pos: 204.1s 10205f (83%) 126.15fps Trem: 0min 12mb A-V:0.080 [343:64] Skipping frame! Pos: 243.7s 12188f (100%) 125.89fps Trem: 0min 12mb A-V:0.021 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6085, last=6093 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 243720 >= 243400 Error while writing frame. Pos: 243.8s 12190f (100%) 125.89fps Trem: 0min 12mb A-V:0.035 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6087, last=6096 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 243840 >= 243480 Error while writing frame. Pos: 244.0s 12192f (100%) 125.89fps Trem: 0min 12mb A-V:0.025 [345:63] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6089, last=6099 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 243960 >= 243560 Error while writing frame. Pos: 244.1s 12194f (100%) 125.87fps Trem: 0min 12mb A-V:0.013 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6091, last=6102 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244080 >= 243640 Error while writing frame. Pos: 244.2s 12196f (100%) 125.87fps Trem: 0min 12mb A-V:0.009 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6093, last=6105 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244200 >= 243720 Error while writing frame. Pos: 244.3s 12198f (100%) 125.87fps Trem: 0min 12mb A-V:-0.015 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6095, last=6108 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244320 >= 243800 Error while writing frame. Pos: 244.4s 12200f (100%) 125.86fps Trem: 0min 12mb A-V:-0.043 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6097, last=6111 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244440 >= 243880 Error while writing frame. Pos: 244.6s 12202f (100%) 125.86fps Trem: 0min 12mb A-V:-0.063 [345:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6099, last=6114 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244560 >= 243960 Error while writing frame. Pos: 244.7s 12204f (100%) 125.87fps Trem: 0min 12mb A-V:-0.101 [344:64] 2 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6101, last=6117 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244680 >= 244040 Error while writing frame. [wmv2 @ 0xd5df40]Error, Invalid timestamp=6102, last=6117 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244680 >= 244080 Error while writing frame. Pos: 244.7s 12205f (100%) 125.86fps Trem: 0min 12mb A-V:-0.089 [344:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6103, last=6117 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244680 >= 244120 Error while writing frame. Pos: 244.9s 12206f (100%) 125.87fps Trem: 0min 12mb A-V:-0.067 [344:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6105, last=6124 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244960 >= 244200 Error while writing frame. Pos: 245.0s 12207f (100%) 125.86fps Trem: 0min 12mb A-V:-0.084 [344:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6106, last=6124 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244960 >= 244240 Error while writing frame. Pos: 245.1s 12208f (100%) 125.87fps Trem: 0min 12mb A-V:-0.068 [344:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6108, last=6129 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245160 >= 244320 Error while writing frame. Pos: 245.2s 12209f (100%) 125.86fps Trem: 0min 12mb A-V:-0.091 [344:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6109, last=6129 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245160 >= 244360 Error while writing frame. Pos: 245.3s 12210f (100%) 125.86fps Trem: 0min 12mb A-V:-0.091 [344:64] 2 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6111, last=6134 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245360 >= 244440 Error while writing frame. [wmv2 @ 0xd5df40]Error, Invalid timestamp=6112, last=6134 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245360 >= 244480 Error while writing frame. Pos: 245.4s 12211f (100%) 125.86fps Trem: 0min 12mb A-V:-0.088 [344:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6113, last=6134 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245360 >= 244520 Error while writing frame. Pos: 245.6s 12212f (100%) 125.86fps Trem: 0min 12mb A-V:-0.079 [343:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6115, last=6141 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245640 >= 244600 Error while writing frame. Pos: 245.7s 12213f (100%) 125.85fps Trem: 0min 12mb A-V:-0.107 [343:64] 1 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6116, last=6141 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245640 >= 244640 Error while writing frame. Pos: 245.8s 12214f (100%) 125.85fps Trem: 0min 12mb A-V:-0.101 [343:64] 2 duplicate frame(s)! [wmv2 @ 0xd5df40]Error, Invalid timestamp=6118, last=6146 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245840 >= 244720 Error while writing frame. [wmv2 @ 0xd5df40]Error, Invalid timestamp=6119, last=6146 [asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245840 >= 244760 Error while writing frame. Pos: 245.9s 12215f (100%) 125.85fps Trem: 0min 12mb A-V:-0.096 [343:64] Flushing video frames. Writing index... Video stream: 343.381 kbit/s (42922 B/s) size: 10560684 bytes 246.040 secs 12215 frames Audio stream: 64.000 kbit/s (8000 B/s) size: 1972344 bytes 246.543 secs From luuk at dominicansinteractive.com Sat Jul 14 10:04:18 2012 From: luuk at dominicansinteractive.com (Dominicans Interactive) Date: Sat, 14 Jul 2012 09:04:18 +0100 Subject: [FFmpeg-user] Encoding for HLS but have a DTS problem Message-ID: <9324E595-402F-4ABC-BCC4-1E9947484311@dominicansinteractive.com> I am trying to encode video for HTS live streaming, but am having problems with validating the stream using Apple Media Validator (mediastreamvalidator). (my test file: http://dominicansinteractive.idoms.org/media/9536/playlist.m3u8) The output is: -------------------------------------------------------------------------------- http://dominicansinteractive.idoms.org/media/9536/199/prog_index.m3u8 -------------------------------------------------------------------------------- Playlist Validation: OK Segments: segment_00000.ts: ERROR: (-1) Decreasing DTS were detected in track 0 ERROR: (-1) Decreasing DTS were detected in track 1 Average segment duration: 8.07 seconds Average segment bitrate: 2155094.67 bps Average segment structural overhead: 206525.83 bps (9.58 %) --- The second segment doesn't seem to have the problem: [mpegts @ 0x1d78120] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x1d78120] stream=0 stream_type=1b pid=100 prog_reg_desc= [mpegts @ 0x1d78120] stream=1 stream_type=f pid=101 prog_reg_desc= [mpegts @ 0x1d78120] File position before avformat_find_stream_info() is 0 [h264 @ 0x1d7c1c0] Current profile doesn't provide more RBSP data in PPS, skipping [h264 @ 0x1d7c1c0] no picture [h264 @ 0x1d7c1c0] Current profile doesn't provide more RBSP data in PPS, skipping Last message repeated 3 times [mpegts @ 0x1d78120] max_analyze_duration 5000000 reached at 5013333 [mpegts @ 0x1d78120] File position after avformat_find_stream_info() is 0 --- This seems to be a serious problem for HLS, so I am looking if there is a way to fix this. When looking with FFMPEG at the encoded file I get (encoder output/command at the bottom of the email): ffmpeg -loglevel 99 -i encoded.ts ffmpeg version N-37783-gdf3a96c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 4 2012 07:44:52 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 32.100 / 54. 32.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 0x2023120] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x2023120] stream=0 stream_type=1b pid=100 prog_reg_desc= [mpegts @ 0x2023120] stream=1 stream_type=f pid=101 prog_reg_desc= [mpegts @ 0x2023120] File position before avformat_find_stream_info() is 0 [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping [h264 @ 0x20271c0] no picture [mpegts @ 0x2023120] first_dts 124080 not matching first dts 143280 in que Last message repeated 6 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 158640 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 175920 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 193200 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 210480 in que Last message repeated 7 times [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x2023120] first_dts 124080 not matching first dts 227760 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 245040 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 262320 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 279600 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 296880 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 314160 in que Last message repeated 7 times [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x2023120] first_dts 124080 not matching first dts 331440 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 348720 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 366000 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 383280 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 400560 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 417840 in que Last message repeated 6 times [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x2023120] first_dts 124080 not matching first dts 433200 in que Last message repeated 6 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 448560 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 465840 in que Last message repeated 6 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 481200 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 498480 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 515760 in que Last message repeated 7 times [mpegts @ 0x2023120] first_dts 124080 not matching first dts 533040 in que Last message repeated 6 times [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x2023120] first_dts 124080 not matching first dts 548400 in que Last message repeated 7 times [mpegts @ 0x2023120] max_analyze_duration 5000000 reached at 5000000 [mpegts @ 0x2023120] File position after avformat_find_stream_info() is 0 And when at the first segmented file: ffmpeg -loglevel 99 -i segment_00000.ts ffmpeg version N-37783-gdf3a96c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 4 2012 07:44:52 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 32.100 / 54. 32.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 0x1a0b120] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x1a0b120] stream=0 stream_type=1b pid=100 prog_reg_desc= [mpegts @ 0x1a0b120] stream=1 stream_type=f pid=101 prog_reg_desc= [mpegts @ 0x1a0b120] File position before avformat_find_stream_info() is 0 [mpegts @ 0x1a0b120] Invalid timestamps stream=0, pts=1920, dts=8589929312, size=2355 [mpegts @ 0x1a0b120] Invalid timestamps stream=0, pts=16320, dts=8589932912, size=3203 [h264 @ 0x1a0f1c0] Current profile doesn't provide more RBSP data in PPS, skipping [h264 @ 0x1a0f1c0] no picture [h264 @ 0x1a0f1c0] Current profile doesn't provide more RBSP data in PPS, skipping Last message repeated 3 times [mpegts @ 0x1a0b120] max_analyze_duration 5000000 reached at 5013333 [mpegts @ 0x1a0b120] File position after avformat_find_stream_info() is 0 This problem does not occur with the BASELINE profile, but does with MAIN. The command I use for encoding is: ffmpeg, -i, [path]/test.mov, -y, -f, mpegts, -acodec, aac, -strict, -2, -ar, 48000, -b:a, 128000, -s, 960x540, -vcodec, libx264, -b:v, 1200000, -aspect, 960:540, -r, 25, -level, 3.1, -vprofile, main, -flags, +loop, -cmp, +chroma, -partitions, +parti4x4+partp8x8+partb8x8, -subq, 5, -trellis, 1, -refs, 1, -coder, 0, -me_range, 16, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -bt, 200k, -maxrate, 1200000, -bufsize, 1200000, -rc_eq, 'blurCplx^(1-qComp)', -qcomp, 0.6, -qmin, 10, -qmax, 51, -qdiff, 4, -level, 30, -g, 30, -async, 2, [path]/encoded.ts 08:40:29,843 DEBUG ~ FFMPEG(1): libavutil 51. 63.100 / 51. 63.100 08:40:29,843 DEBUG ~ FFMPEG(1): libavcodec 54. 32.100 / 54. 32.100 08:40:29,843 DEBUG ~ FFMPEG(1): libavformat 54. 14.100 / 54. 14.100 08:40:29,843 DEBUG ~ FFMPEG(1): libavdevice 54. 0.100 / 54. 0.100 08:40:29,843 DEBUG ~ FFMPEG(1): libavfilter 3. 0.101 / 3. 0.101 08:40:29,844 DEBUG ~ FFMPEG(1): libswscale 2. 1.100 / 2. 1.100 08:40:29,844 DEBUG ~ FFMPEG(1): libswresample 0. 15.100 / 0. 15.100 08:40:29,844 DEBUG ~ FFMPEG(1): libpostproc 52. 0.100 / 52. 0.100 08:40:30,033 DEBUG ~ FFMPEG(1): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '[path]/test.mov': 08:40:30,033 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,033 DEBUG ~ FFMPEG(1): major_brand : qt 08:40:30,033 DEBUG ~ FFMPEG(1): minor_version : 537199360 08:40:30,035 DEBUG ~ FFMPEG(1): compatible_brands: qt 08:40:30,035 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:54:24 08:40:30,036 DEBUG ~ FFMPEG(1): timecode : 00:00:00:00 08:40:30,036 DEBUG ~ FFMPEG(1): Duration: 00:00:24.20, start: 0.000000, bitrate: 9912 kb/s 08:40:30,037 DEBUG ~ FFMPEG(1): Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 9777 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc 08:40:30,037 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,037 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 08:40:30,037 DEBUG ~ FFMPEG(1): handler_name : Apple Video Media Handler 08:40:30,038 DEBUG ~ FFMPEG(1): Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 129 kb/s 08:40:30,038 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,038 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 08:40:30,038 DEBUG ~ FFMPEG(1): handler_name : Apple Sound Media Handler 08:40:30,038 DEBUG ~ FFMPEG(1): Stream #0:2(eng): Data: none (tmcd / 0x64636D74) 08:40:30,038 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,038 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 08:40:30,039 DEBUG ~ FFMPEG(1): handler_name : Time Code Media Handler 08:40:30,039 DEBUG ~ FFMPEG(1): timecode : 00:00:00:00 08:40:30,092 DEBUG ~ FFMPEG(1): [graph 0 input from stream 0:0 @ 0x1c17180] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 08:40:30,092 DEBUG ~ FFMPEG(1): [output stream 0:0 @ 0x1c033a0] No opaque field provided 08:40:30,110 DEBUG ~ FFMPEG(1): [scaler for output stream 0:0 @ 0x1c18040] w:1920 h:1080 fmt:yuv420p sar:0/1 -> w:960 h:540 fmt:yuv420p sar:0/1 flags:0x4 08:40:30,110 DEBUG ~ FFMPEG(1): [graph 1 input from stream 0:1 @ 0x1c53440] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 08:40:30,110 DEBUG ~ FFMPEG(1): -async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000:max_soft_comp=0.000042. 08:40:30,122 DEBUG ~ FFMPEG(1): [graph 1 aresample for input stream 0:1 @ 0x1c36880] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] using SAR=1/1 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame MB size (60x34) > level limit (1620) 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] DPB size (4 frames, 3133440 bytes) > level limit (3 frames, 3110400 bytes) 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] MB rate (51000) > level limit (40500) 08:40:30,170 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ 08:40:30,182 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] profile Main, level 3.0 08:40:30,235 DEBUG ~ FFMPEG(1): [mpegts @ 0x1be3540] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts 08:40:30,235 DEBUG ~ FFMPEG(1): Output #0, mpegts, to '[path]/encoded.ts': 08:40:30,235 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,235 DEBUG ~ FFMPEG(1): major_brand : qt 08:40:30,235 DEBUG ~ FFMPEG(1): minor_version : 537199360 08:40:30,235 DEBUG ~ FFMPEG(1): compatible_brands: qt 08:40:30,235 DEBUG ~ FFMPEG(1): timecode : 00:00:00:00 08:40:30,235 DEBUG ~ FFMPEG(1): encoder : Lavf54.14.100 08:40:30,235 DEBUG ~ FFMPEG(1): Stream #0:0(eng): Video: h264, yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-51, 1200 kb/s, 90k tbn, 25 tbc 08:40:30,235 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,235 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 08:40:30,235 DEBUG ~ FFMPEG(1): handler_name : Apple Video Media Handler 08:40:30,236 DEBUG ~ FFMPEG(1): Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, flt, 128 kb/s 08:40:30,236 DEBUG ~ FFMPEG(1): Metadata: 08:40:30,236 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 08:40:30,236 DEBUG ~ FFMPEG(1): handler_name : Apple Sound Media Handler 08:40:30,236 DEBUG ~ FFMPEG(1): Stream mapping: 08:40:30,236 DEBUG ~ FFMPEG(1): Stream #0:0 -> #0:0 (h264 -> libx264) 08:40:30,236 DEBUG ~ FFMPEG(1): Stream #0:1 -> #0:1 (aac -> aac) [...] 08:40:55,398 DEBUG ~ FFMPEG(1): video:3121kB audio:359kB subtitle:0 global headers:0kB muxing overhead 11.132085% 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame I:21 Avg QP:21.57 size: 88153 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame P:233 Avg QP:22.74 size: 5560 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame B:351 Avg QP:27.45 size: 141 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] consecutive B-frames: 21.7% 2.0% 3.0% 73.4% 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb I I16..4: 54.5% 0.0% 45.5% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb P I16..4: 4.7% 0.0% 1.3% P16..4: 24.6% 3.5% 0.8% 0.0% 0.0% skip:65.1% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb B I16..4: 0.1% 0.0% 0.1% B16..8: 0.5% 0.1% 0.0% direct: 0.6% skip:98.6% L0:32.3% L1:47.1% BI:20.6% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] coded y,uvDC,uvAC intra: 59.4% 5.8% 0.4% inter: 5.4% 3.0% 0.0% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i16 v,h,dc,p: 58% 16% 21% 4% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 21% 17% 5% 10% 7% 5% 5% 10% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i8c dc,h,v,p: 94% 3% 3% 0% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] Weighted P-Frames: Y:13.7% UV:3.4% 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] kb/s:1056.61 For segmenting is: ffmpeg, -i,[path]encoded.ts, -y, -c, copy, -flags, global_header, -map, 0, -f, segment, -segment_time, 10, -segment_list, [path]/fileList.txt, -segment_format, mpegts, [path]/segment_%05d.ts] Any help would really be appreciated! From johnpraka at gmail.com Sat Jul 14 10:56:42 2012 From: johnpraka at gmail.com (john prakash) Date: Sat, 14 Jul 2012 14:26:42 +0530 Subject: [FFmpeg-user] ffmpeg-help Message-ID: Hi, Am a newbie to ffmpeg. I have a 64bit centos server. I was trying to install ffmpeg(tried many versions) in ma server. But during make am getting following error In file included from ffmpeg.c:37: libavformat/framehook.h:25:2: warning: #warning VHOOK is deprecated. Please help finishing libavfilter instead of wasting your time writing new filters for this crappy filter system. gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/usr/local/src/ffmpeg-0.5.5" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fPIC -DPIC -c -o cmdutils.o cmdutils.c gcc -L"/usr/local/src/ffmpeg-0.5.5"/libavdevice -L"/usr/local/src/ffmpeg-0.5.5"/libavformat -L"/usr/local/src/ffmpeg-0.5.5"/libavcodec -L"/usr/local/src/ffmpeg-0.5.5"/libavutil -rdynamic -export-dynamic -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libpostproc -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libswscale -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libavfilter -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libavdevice -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libavformat -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libavcodec -Wl,-rpath-link,"/usr/local/src/ffmpeg-0.5.5"/libavutil -Wl,-Bsymbolic -o ffmpeg_g ffmpeg.o cmdutils.o -lavdevice -lavformat -lavcodec -lavutil -lz -lbz2 -pthread -lm -lfaac -lmp3lame -lm -lopencore-amrnb -lm -lopencore-amrwb -lm -lopenjpeg -ltheora -logg -lvorbisenc -lvorbis -logg -lx264 -lm -lxvidcore -ldc1394 -lraw1394 -lasound -ldl -ldl -lasound -lX11 -lXext -lasound /usr/local/src/ffmpeg-0.5.5/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_125' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 Can any one help me out. I made sure that there is no multiple versions of x264 present. Regards, John From cehoyos at ag.or.at Sat Jul 14 11:04:19 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 14 Jul 2012 09:04:19 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg-help References: Message-ID: john prakash gmail.com> writes: > In file included from ffmpeg.c:37: > libavformat/framehook.h:25:2: warning: #warning VHOOK is deprecated. The version you are trying to install is antique, please test current git head. Carl Eugen From ffmpeg-user at home.gofferje.net Sat Jul 14 11:31:13 2012 From: ffmpeg-user at home.gofferje.net (Stefan Gofferje) Date: Sat, 14 Jul 2012 12:31:13 +0300 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: <4FFFE584.4030407@home.gofferje.net> References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> Message-ID: <50013C61.3020304@home.gofferje.net> I tried with menconder. Mencoder does produce files which are correctly recognized as Dolby 5.1 by file as well as by the Network Media Player and my amplifier. -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface -------------------------------------------------------------------------------- This mail was scanned for malware by ClamAV (http://www.clamav.net/) -------------------------------------------------------------------------------- From cehoyos at ag.or.at Sat Jul 14 11:33:58 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 14 Jul 2012 09:33:58 +0000 (UTC) Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> Message-ID: Stefan Gofferje home.gofferje.net> writes: > I tried with menconder. Mencoder does produce files which are correctly > recognized as Dolby 5.1 by file as well as by the Network Media Player > and my amplifier. Don't forget that MEncoder is not an actively maintained application for several years. Carl Eugen From sheen.andy at googlemail.com Sat Jul 14 11:42:18 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Sat, 14 Jul 2012 10:42:18 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> Message-ID: <50013EFA.2080003@googlemail.com> Roger Pack wrote on Fri 13 Jul at 19:33 UK time >> Can't easily see a 64-bit gdb, yes, I can build a 32 bit version and see >> if the same problem occurs, but it does point to a race condition in the >> wingw implementation of pthreads at the moment. > > Do these work? > http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20(Win64%20hosted)/gdb > Yes! Missed those. Thanks. I've not used gdb in the last 10-15 years (!). Any ideas how to stop the code and see what it is doing when it is 100% locked? As I can't ctrl-c the code when it is locked, I'm not sure how to stop it. What I really need is a set break when CPU=100% command, but I doubt that exists.... Or do you not need any more help from me now that you can reproduce? > Cheers! > -roger- > Andy From ffmpeg-user at home.gofferje.net Sat Jul 14 12:56:14 2012 From: ffmpeg-user at home.gofferje.net (Stefan Gofferje) Date: Sat, 14 Jul 2012 13:56:14 +0300 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> Message-ID: <5001504E.5060706@home.gofferje.net> Carl, On 07/14/2012 12:33 PM, Carl Eugen Hoyos wrote: > Don't forget that MEncoder is not an actively maintained application > for several years. What can I do...? :) The ffmpeg-developers seem to utilize an interpretation of a standard which seems to be not much widely shared, hence the created files don't work - as you said yourself - with many software. And - what's important for me - with my hardware. As the Showcenter uses a very widespread hardware and software platform, it's quite likely that the files don't work properly on a broad variety of other hardware players as well. No offense, but frankly, I don't really care about the interpretation of the standard. When it comes to ffmpeg, I'm just a dumb user. I want to watch my homevideos on my hardware media player and on my LG Smart TV. And I want my files to work on the players of my friends and family. If that doesn't work, I will not buy a new hardware player or a new Smart TV which complies with the ffmpeg interpretation of a standard, nor will I tell all my friends and family that they have to go and buy new players. Using a software that creates working files is much easier for me and if - due to lack of maintenance - mencoder will not be available in time, I will have to find another solution. But I worry about that then. Again, no offense :). Besides, the easiest way for ffmpeg to keep "the standard" but still be useable for the people with the disagreeing players would be, as a compromise, to include an additional video encoding option switch, e.g. "-ddcompat" (Dolby Digital compatibility), which activates "nonstandard" behavior and explain this in the documentation. -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface -------------------------------------------------------------------------------- This mail was scanned for malware by ClamAV (http://www.clamav.net/) -------------------------------------------------------------------------------- From cehoyos at ag.or.at Sat Jul 14 13:05:10 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 14 Jul 2012 11:05:10 +0000 (UTC) Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> <5001504E.5060706@home.gofferje.net> Message-ID: Stefan Gofferje home.gofferje.net> writes: > What can I do...? :) Did you test if my interpretation of your problem is correct at all? (Iirc you did not post complete, uncut FFmpeg console output or did you?) Note that it is extremely simple to force FFmpeg to produce invalid files, just look at line 452 of libavformat/riff.c (make it channels > 20 or something similar) > The ffmpeg-developers seem to utilize an interpretation of a standard > which seems to be not much widely shared I googled for waveformatextensible yesterday and any other (less strict) interpretation of the standard seems truly absurd to me. After testing that this is indeed the problem, could you add more information about your setup? It seems extremely unlikely to me that a Dolby decoder cares at all about a riff / wav header... Carl Eugen From ffmpeg-user at home.gofferje.net Sat Jul 14 14:46:00 2012 From: ffmpeg-user at home.gofferje.net (Stefan Gofferje) Date: Sat, 14 Jul 2012 15:46:00 +0300 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> <5001504E.5060706@home.gofferje.net> Message-ID: <50016A08.9080002@home.gofferje.net> On 07/14/2012 02:05 PM, Carl Eugen Hoyos wrote: > Did you test if my interpretation of your problem is correct at all? No, because - as I wrote - I'm not really deep in the codec topic. The only "test" I know is file and in vlc tools -> Codec information. > (Iirc you did not post complete, uncut FFmpeg console output > or did you?) No, because the console output didn't produce anything that looked suspicious to me, such as warnings or errors. I will retrace my steps and log the process. > Note that it is extremely simple to force FFmpeg to produce > invalid files, just look at line 452 of libavformat/riff.c > (make it channels > 20 or something similar) I have only very limited programming skills in bash, C and Java. I'm mainly a network/security guy. I don't compile ffmpeg myself. I use the Packman repo for Opensuse. > I googled for waveformatextensible yesterday and any other > (less strict) interpretation of the standard seems truly absurd to me. > After testing that this is indeed the problem, could you add more > information about your setup? It seems extremely unlikely to me that > a Dolby decoder cares at all about a riff / wav header... My setup in this case is: - Linux Server with Swisscenter (media server software for Syabas based network media players) and Mediatomb (DLNA server software) - Client 1: LG SmartTV (DLNA client) - Client 2: Pinnacle Showcenter 200 connected to an Haman Kardon AVR35 Dolby Digital / DTS receiver via optical cable Both clients don't play any sound with the ffmpeg-generated file. If I press "file info" on the Showcenter, it claims, Video: XVID, Audio: OGG. The AVR35 displays "Dolby 2/0" and produces no sound. In the file info in the Swisscenter menu, the file shows as 5.1 but without the Dolby Digital logo. As I wrote before, the Linux command "file" outputs RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: (6 channels, 48000 Hz) Note the missing codec info for the audio stream! The file I created with mencoder plays on both clients in 5.1 mode. The "file" command shows RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz) Note the codec info "Dolby AC3" for the audio stream! Also, in Swisscenter, the file has the Dolby Digital logo in addition to the 5.1 logo. So, without knowing anything about codecs and headers specifically, I would wildly guess, that there is something like a "Dolby Digital" flag or tag which is not set by ffmpeg. If it helps, I could create 2 short videos, 1 with ffmpeg, 1 with mencoder and put them for download to my website. That would allow a direct comparison. That might take a moment though. I already deleted the source files from this project. If it is important - I use the ffmpeg lavc for encoding ac3 in mencoder. -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface -------------------------------------------------------------------------------- This mail was scanned for malware by ClamAV (http://www.clamav.net/) -------------------------------------------------------------------------------- From andyqos at ukfsn.org Sat Jul 14 16:58:04 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Sat, 14 Jul 2012 15:58:04 +0100 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> <5001504E.5060706@home.gofferje.net> Message-ID: <500188FC.60000@ukfsn.org> Carl Eugen Hoyos wrote: > Stefan Gofferje home.gofferje.net> writes: > >> What can I do...? :) > > Did you test if my interpretation of your problem is correct at all? > (Iirc you did not post complete, uncut FFmpeg console output > or did you?) > Note that it is extremely simple to force FFmpeg to produce > invalid files, just look at line 452 of libavformat/riff.c > (make it channels > 20 or something similar) > >> The ffmpeg-developers seem to utilize an interpretation of a standard >> which seems to be not much widely shared > > I googled for waveformatextensible yesterday and any other > (less strict) interpretation of the standard seems truly absurd to me. > After testing that this is indeed the problem, could you add more > information about your setup? It seems extremely unlikely to me that > a Dolby decoder cares at all about a riff / wav header... May be taking the thread OT, but I don't know. I do have access to an xbox if you want someone to test something. One thing I notice is that if I make ac3 with ffmpeg then mediainfo shows the channels like - Channel positions : Front: L C R, Back: L R, LFE Channel positions : 3/0/2.1 I know mediainfo is not rated here :-) but the one thing I find it handy for is ac3. mediainfo -f will instantly show me if some "kind" person has ripped out drc/other metainfo. I don't know a quick way to see that with ffmpeg. Testing dvds ac3 mediainfo shows - Channel positions : Front: L C R, Side: L R, LFE Channel positions : 3/2/0.1 ffmpeg -i says side for both cases - made with ffmpeg - Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s and for a dvd Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s From andyqos at ukfsn.org Sat Jul 14 17:37:14 2012 From: andyqos at ukfsn.org (Andy Furniss) Date: Sat, 14 Jul 2012 16:37:14 +0100 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: <500188FC.60000@ukfsn.org> References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> <5001504E.5060706@home.gofferje.net> <500188FC.60000@ukfsn.org> Message-ID: <5001922A.1010502@ukfsn.org> Andy Furniss wrote: > One thing I notice is that if I make ac3 with ffmpeg then mediainfo > shows the channels like - > > Channel positions : Front: L C R, Back: L R, LFE > Channel positions : 3/0/2.1 This only seems to happen with avi. I've done the same test with mpeg, mkv and m2ts and it looks normal with them. It also reports dialnorm of -31 for these but nothing for avi. From rogerdpack2 at gmail.com Sat Jul 14 18:23:51 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 14 Jul 2012 10:23:51 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <50013EFA.2080003@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> Message-ID: > I've not used gdb in the last 10-15 years (!). Any ideas how to stop the > code and see what it is doing when it is 100% locked? As I can't ctrl-c > the code when it is locked, I'm not sure how to stop it. Have you tried ctrl-c within gdb? It might work... gdb can "attach" to remote processes, though I'm not sure if this works in windows... Another option that I thought about but never actually attempted was to "wait until it locks, then attach very sleepy to it for about 1s" to see if VS will give you the backtraces... -r From ben at bbarker.co.uk Sat Jul 14 18:31:48 2012 From: ben at bbarker.co.uk (Ben Barker) Date: Sat, 14 Jul 2012 17:31:48 +0100 Subject: [FFmpeg-user] Problems parsing SDP file for RTP type 33 Message-ID: Hi, I have two SDP files. On points to an Mpeg4 multicast stream, the other to a Mpeg 2 DVB stream. If I try to access the former with the following sdp: v=0 m=video RTP/AVP 96 c=IN IP4 a=rtpmap:96 MP4V-ES/90000 a=source-filter: incl IN IP4 All works fine, and from the command line I see that the SDP has been properly parsed: FFmpeg version git-b319052, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 15 2011 16:42:18 with gcc 4.1.2 20070626 (Red Hat 4.1.2-14) configuration: libavutil 50. 37. 0 / 50. 37. 0 libavcore 0. 16. 1 / 0. 16. 1 libavcodec 52.109. 0 / 52.109. 0 libavformat 52. 97. 0 / 52. 97. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 74. 0 / 1. 74. 0 libswscale 0. 12. 0 / 0. 12. 0 found ssm_source.. found ssm_source.... At which point streaming starts. If however I try to access my Mpeg2 stream using the following sdp: v=0 m=video RTP/AVP 33 c=IN IP4 a=rtpmap:96 MP4V-ES/90000 a=source-filter: incl IN IP4 Then ffmpeg returns: FFmpeg version git-b319052, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 15 2011 16:42:18 with gcc 4.1.2 20070626 (Red Hat 4.1.2-14) configuration: libavutil 50. 37. 0 / 50. 37. 0 libavcore 0. 16. 1 / 0. 16. 1 libavcodec 52.109. 0 / 52.109. 0 libavformat 52. 97. 0 / 52. 97. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 74. 0 / 1. 74. 0 libswscale 0. 12. 0 / 0. 12. 0 found ssm_source..|2?? udp_resolve_host: Temporary failure in name resolution found ssm_source..|2?? Here you can see that the ssm given above is not that in the SDP - not even a valid IP address. After a few trials, the key thing that causes this to happen seems to be changing the RTP type in the sdp file from 96 to 33. Can anyone suggest why this is failing? Both SDP files have been tested and ar working if passed into VLC from the same machine... From mblakeman at netspace.net.au Sun Jul 15 07:41:18 2012 From: mblakeman at netspace.net.au (Murray Blakeman) Date: Sun, 15 Jul 2012 15:41:18 +1000 Subject: [FFmpeg-user] Problem with FFMPEG 0.11.1 on Solaris 11 Message-ID: <500257FE.3060004@netspace.net.au> Compiling FFMPEG with the following config line on Solaris 11. ./configure --enable-shared --enable-pthreads --disable-ffserver --disable-ffplay --enable-postproc On an Intel Core2 Quad workstation, AMD 3DNow is still being enabled for the build and the binary/libraries have the following problem. $ ldd ffmpeg ..... libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] libswscale.so.2 => libswscale/libswscale.so.2 - hardware capability (CA_SUNW_HW_1) unsupported: 0x100 [ AMD_3DNow ] libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] libswscale.so.2 => libswscale/libswscale.so.2 - hardware capability (CA_SUNW_HW_1) unsupported: 0x100 [ AMD_3DNow ] libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] ..... Is this normal? Is there something I am doing wrong? Here are some details of my environment. gcc (GCC) 4.5.2 GNU sed version 4.2.1 GNU Awk 3.1.5 yasm 1.0.1.2326 Thanks for any help. From sheen.andy at googlemail.com Sun Jul 15 10:43:55 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Sun, 15 Jul 2012 09:43:55 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> Message-ID: <500282CB.7010904@googlemail.com> Roger Pack wrote on Sat 14 Jul at 17:23 UK time >> I've not used gdb in the last 10-15 years (!). Any ideas how to stop the >> code and see what it is doing when it is 100% locked? As I can't ctrl-c >> the code when it is locked, I'm not sure how to stop it. > > Have you tried ctrl-c within gdb? It might work... > gdb can "attach" to remote processes, though I'm not sure if this > works in windows... > CTRL-C drops you out of gdb immediately :( > Another option that I thought about but never actually attempted was > to "wait until it locks, then attach very sleepy to it for about 1s" > to see if VS will give you the backtraces... Every time I've tried it, as soon as sleepy "sees" the ffmpeg binary, the lockups stop :( From cehoyos at ag.or.at Sun Jul 15 15:51:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 15 Jul 2012 13:51:06 +0000 (UTC) Subject: [FFmpeg-user] Problem with FFMPEG 0.11.1 on Solaris 11 References: <500257FE.3060004@netspace.net.au> Message-ID: Murray Blakeman netspace.net.au> writes: > $ ldd ffmpeg > > ..... > libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware > capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] > Is this normal? Yes, I believe so. What does configure's output say about 3DNow / what does grep -i amd config.h say? Did you try --disable-amd3dnow --disable-amd3dnowext ? It is possible they do not work completely, if you report back, I will try to fix it. Please test current git head, Carl Eugen From cehoyos at ag.or.at Sun Jul 15 22:42:38 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 15 Jul 2012 20:42:38 +0000 (UTC) Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> <5001504E.5060706@home.gofferje.net> <500188FC.60000@ukfsn.org> Message-ID: Andy Furniss ukfsn.org> writes: > One thing I notice is that if I make ac3 with ffmpeg then mediainfo > shows the channels like - > > Channel positions : Front: L C R, Back: L R, LFE > Channel positions : 3/0/2.1 > Channel positions : Front: L C R, Side: L R, LFE > Channel positions : 3/2/0.1 This is completely unrelated to the original question. (Why is a waveformatextensible header written for Dolby Surround?) Allow me to repeat what I wrote in the ticket: I am absolutely willing to help with this problem, but changing FFmpeg so it does something that the specification does not allow at least needs excessive testing - I would expect that WMP does not play the invalid samples. Carl Eugen From rogerdpack2 at gmail.com Mon Jul 16 02:20:27 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sun, 15 Jul 2012 18:20:27 -0600 Subject: [FFmpeg-user] multi-threaded swscale possible? Message-ID: Hello all. It came to my attention the other day that using lanczos for scaling is "computationally slow" and that some people have found benchmark speedups by diving their image in 2, then doing lanczos on both sides [1]. Anybody know if this is trivially possible with libswscale today? I guess one could use libavfilter and split a video, perform lanczos on both halves, then recombine, but I guess my question is if there would there be any utility to adding some my looking into adding some threading/joining within libswscale itself? Thanks. -roger- [1] http://forum.doom9.org/showthread.php?p=954265#post954265 From kshawkeye at gmail.com Mon Jul 16 04:11:57 2012 From: kshawkeye at gmail.com (Kyle) Date: Sun, 15 Jul 2012 22:11:57 -0400 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> Message-ID: <5003786D.2060204@gmail.com> On 7/13/2012 2:33 PM, Roger Pack wrote: >> It's much easier to see the spikes with -pass 1 though. >> >> ffmpeg -i 7416_20120706235700.mpg -pass 1 -c:v libx264 nul.mp4 > > Ok I'm able to see it with 32-bit ffmpeg (running on 64 bit windows 7, > with either an Athlon X2 or an i7). > Every so often the console output "hangs" (mine uses basically 100% > cpu the whole time, I don't see any spikes). > > Using this file: http://rogerdpack.t28.net/incoming/sintel.mpg > > zeranoe build ffmpeg-20120706-git-8293a21-win32-shared: > ... > (ran ffmpeg -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.mp4 [1]) > > took 32.0s (showed console pause at frame 1145) > took 35.8 (showed console pauses at frames 641, 1079) > took 25.27s (showed no console pauses--it got lucky!) > > other build (http://x32.elijst.nl/FFmpeg-20120622.7z > [20120622-N-41843-gc17808c-mod Jul 11 2012]): > > (ran \Downloads\FFmpeg-20120622\ffmpeg.exe -y -i sintel.mpg -pass 1 -t > 75 -c:v libx264 -an nul.new.mp4 [2]) > took 25.6s > took 26.6s > took 24.5s > (never shows console pauses) > > They make "presumably" the same file: > 3780 -rw-r--r-- 1 packrd Administ 7739909 Jul 13 12:30 original.mp4 > 3779 -rw-r--r-- 1 packrd Administ 7739232 Jul 13 12:32 w32threads.mp4 > > I don't see pauses with other codecs like mpeg4 or mpeg2video codecs, just x264. Thank you Roger for supplying the file and command line you used. I finally got the hang to appear and that was after completely updating the toolchain+x264+ffmpeg to the latest. This is in fact a issue with the latest of everything. I bet the MinGW-w64 guys would know more about this issue. If someone could send over the information to their mailing list that would really help. I will if no one else can, but it might take a while. They should help us figure out how to properly debug this. It's odd that this error happens at random times, at least it does for me. It sometime would hang at the beginning, sometimes at other points. I have a 4.0GHz i7, so if anyone needs me to run any further tests I would be happy to. Best regards, Kyle Schwarz From jp4work at gmail.com Mon Jul 16 05:28:55 2012 From: jp4work at gmail.com (JIA Pei) Date: Sun, 15 Jul 2012 20:28:55 -0700 Subject: [FFmpeg-user] Where are the definitions of choose_sample_fmts, choose_sample_rates, choose_channel_layouts? Message-ID: Hi, all: Happen to notice these 3 functions *Code:* choose_sample_fmts() choose_sample_rates() choose_channel_layouts() in file ffmpeg.c However, I'm not able to locate where their definitions are. Actually, by "grep", the unique location of these three functions are in ffmpeg.c only. Namely, I can find these three functions *nowhere else*. Just wonder how ffmpeg.c is successfully built into ffmpeg executable? Cheers Pei -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From cehoyos at ag.or.at Mon Jul 16 07:51:08 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 16 Jul 2012 05:51:08 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Where_are_the_definitions_of_choose=5Fsam?= =?utf-8?q?ple=5Ffmts=2Cchoose=5Fsample=5Frates=2Cchoose=5Fchannel?= =?utf-8?b?X2xheW91dHM/?= References: Message-ID: JIA Pei gmail.com> writes: > choose_sample_fmts() ffmpeg.c: line 666 > choose_sample_rates() ffmpeg.c: line 673 > choose_channel_layouts() ffmpeg.c: line 680 Carl Eugen From nichot20 at yahoo.com Mon Jul 16 09:13:50 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 16 Jul 2012 08:13:50 +0100 Subject: [FFmpeg-user] Tagging audio channels In-Reply-To: References: <4FFFF93A.9050101@yahoo.com> <50000198.8070608@yahoo.com> <50001F16.5010008@yahoo.com> <5000324E.9060007@yahoo.com> Message-ID: <5003BF2E.4030107@yahoo.com> On 13/07/12 17:21, Carl Eugen Hoyos wrote: > Tim Nicholson yahoo.com> writes: > >> 4ch 1 stream version L/R L/R:- >> >> http://www.datafilehost.com/download-ae6a91cd.html > > Thank you for the sample! > (I wonder how the application is supposed to know which of > the two "chan" atoms should be used, the one that says 4.0 > or the one that says LRLR? But I did not look carefully.) > I think the 4.0 comes from ffmpeg after the initial stream copy of mono tracks, then the L/R settings, is added by quicktime which doesn't allow adjustment of the 4.0 bit. As it happens I find that I also need to set the track names (trak->udta->name atom) so I think I am going to have to knock up an atom smasher to post process the files and tweak the atoms as required... > FFmpeg currently does not even support reading the channel > layout, and unfortunately, it is incompatible with the > internal representation. > Expecting ffmpeg to support the morass of qt atoms is somewhat unrealistic, but I wanted to check there was no hidden feature I could use before diving in.. > Stream-copying should be possible though, afair, I once > posted a patch that may work. > Interesting I will have a look. > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Tim From rogerdpack2 at gmail.com Mon Jul 16 09:51:27 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 01:51:27 -0600 Subject: [FFmpeg-user] Problems parsing SDP file for RTP type 33 In-Reply-To: References: Message-ID: > FFmpeg version git-b319052, Copyright (c) 2000-2011 the FFmpeg developers > built on Aug 15 2011 16:42:18 with gcc 4.1.2 20070626 (Red Hat 4.1.2-14) Is the problem the same with newer builds of ffmpeg (i.e. latest trunk?) 0r From rogerdpack2 at gmail.com Mon Jul 16 09:52:31 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 01:52:31 -0600 Subject: [FFmpeg-user] Problem with FFMPEG 0.11.1 on Solaris 11 In-Reply-To: <500257FE.3060004@netspace.net.au> References: <500257FE.3060004@netspace.net.au> Message-ID: > On an Intel Core2 Quad workstation, AMD 3DNow is still being enabled for the > build and the binary/libraries have the following problem. > > $ ldd ffmpeg > > ..... > libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware > capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] Does it still run? -r From rogerdpack2 at gmail.com Mon Jul 16 09:55:46 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 01:55:46 -0600 Subject: [FFmpeg-user] AC3 encoding problem - wrong audio tag? In-Reply-To: <50016A08.9080002@home.gofferje.net> References: <4FFFCDE4.60003@home.gofferje.net> <4FFFE584.4030407@home.gofferje.net> <50013C61.3020304@home.gofferje.net> <5001504E.5060706@home.gofferje.net> <50016A08.9080002@home.gofferje.net> Message-ID: >> (Iirc you did not post complete, uncut FFmpeg console output >> or did you?) > > No, because the console output didn't produce anything that looked > suspicious to me, such as warnings or errors. I will retrace my steps > and log the process. It does tell us which version of ffmpeg you're using, which is at least something helpful. -roger- From rogerdpack2 at gmail.com Mon Jul 16 10:23:04 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 02:23:04 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <500282CB.7010904@googlemail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> <500282CB.7010904@googlemail.com> Message-ID: >> Have you tried ctrl-c within gdb? It might work... >> gdb can "attach" to remote processes, though I'm not sure if this >> works in windows... >> > > CTRL-C drops you out of gdb immediately :( That's odd traditionally (for me at least) it's dropped me to the gdb prompt. Odd... > Every time I've tried it, as soon as sleepy "sees" the ffmpeg binary, > the lockups stop :( Eureka! The answer to our problems! LOL. Just kidding. Appears that using gprof isn't an option for ffmpeg (?) so maybe other profilers would work: http://jonforums.github.com/cochise/2011/07/18/profiling-mingw-apps.html or vtune perhaps. How do people normally profile ffmpeg? oprofile? Also did you try attaching gdb to the running spiked process? -roger- From rogerdpack2 at gmail.com Mon Jul 16 10:42:17 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 02:42:17 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <5003786D.2060204@gmail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: > I bet the MinGW-w64 guys would know more about this issue. If someone could > send over the information to their mailing list that would really help. I > will if no one else can, but it might take a while. I could send over the test/demo file, do you think that's all they'll want/need? > It's odd that this error happens at random times, at least it does for me. > It sometime would hang at the beginning, sometimes at other points. Yeah sometimes I see it right at the beginning of a file, too, other times in the middle. Weird. -roger- From phpdev at ehrhardt.nl Mon Jul 16 10:53:27 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 16 Jul 2012 10:53:27 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: <4dk708965db4vefi11jrheg0fd27go4r0b@4ax.com> Kyle in gmane.comp.video.ffmpeg.user (Sun, 15 Jul 2012 22:11:57 -0400): >I finally got the hang to appear and that was after completely updating >the toolchain+x264+ffmpeg to the latest. This is in fact a issue with >the latest of everything. > >I bet the MinGW-w64 guys would know more about this issue. If someone >could send over the information to their mailing list that would really >help. I will if no one else can, but it might take a while. Mingw64 2.0.4 has more issues: http://www.avidemux.org/smf/index.php?topic=10761.msg57903#msg57903 It will not let you compile older FFmpeg sources. I am going back to 2.0.3 (but the first 2 attempts with your 3.0.5 script failed...). Jan From h.reindl at thelounge.net Mon Jul 16 11:01:50 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 16 Jul 2012 11:01:50 +0200 Subject: [FFmpeg-user] Fwd: excessive bounces In-Reply-To: References: Message-ID: <5003D87E.8000509@thelounge.net> well, datafilehost.com is blacklisted........ X-Barracuda-BRTS-URL-Found: datafilehost.com (*Spam.Unknown) Reason: ZeroHour Intent (datafilehost.com) -------- Original-Nachricht -------- Betreff: confirm b1f5a0db25d1eabd7008738ecae83892a4ab140c Datum: Mon, 16 Jul 2012 09:21:07 +0200 Von: ffmpeg-user-request at ffmpeg.org An: h.reindl at thelounge.net Your membership in the mailing list ffmpeg-user has been disabled due to excessive bounces The last bounce received from you was dated 16-Jul-2012. You will not get any more messages from this list until you re-enable your membership. You will receive 3 more reminders like this before your membership in the list is deleted. To re-enable your membership, you can simply respond to this message (leaving the Subject: line intact), or visit the confirmation page at http://ffmpeg.org/mailman/confirm/ffmpeg-user/b1f5a0db25d1eabd7008738ecae83892a4ab140ca You can also visit your membership page at http://ffmpeg.org/mailman/options/ffmpeg-user/h.reindl%40thelounge.net On your membership page, you can change various delivery options such as your email address and whether you get digests or not. As a reminder, your membership password is ***** If you have any questions or problems, you can contact the list owner at ffmpeg-user-owner at ffmpeg.org -- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Mon Jul 16 11:06:55 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 16 Jul 2012 11:06:55 +0200 Subject: [FFmpeg-user] Fwd: excessive bounces In-Reply-To: <5003D87E.8000509@thelounge.net> References: <5003D87E.8000509@thelounge.net> Message-ID: <5003D9AF.8030102@thelounge.net> well, datafilehost.com is blacklisted........ i have whitelisted the mailing-list for my personal account but i doubt this problem affects not only me X-Barracuda-BRTS-URL-Found: datafilehost.com (*Spam.Unknown) Reason: ZeroHour Intent (datafilehost.com) -------- Original-Nachricht -------- Betreff: confirm b1f5a0db25d1eabd7008738ecae83892a4ab140c Datum: Mon, 16 Jul 2012 09:21:07 +0200 Von: ffmpeg-user-request at ffmpeg.org An: h.reindl at thelounge.net Your membership in the mailing list ffmpeg-user has been disabled due to excessive bounces The last bounce received from you was dated 16-Jul-2012. You will not get any more messages from this list until you re-enable your membership. You will receive 3 more reminders like this before your membership in the list is deleted. To re-enable your membership, you can simply respond to this message (leaving the Subject: line intact), or visit the confirmation page at http://ffmpeg.org/mailman/confirm/ffmpeg-user/b1f5a0db25d1eabd7008738ecae83892a4ab140ca You can also visit your membership page at http://ffmpeg.org/mailman/options/ffmpeg-user/h.reindl%40thelounge.net On your membership page, you can change various delivery options such as your email address and whether you get digests or not. As a reminder, your membership password is ***** If you have any questions or problems, you can contact the list owner at ffmpeg-user-owner at ffmpeg.org -- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From nicolas.george at normalesup.org Mon Jul 16 11:57:53 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 16 Jul 2012 11:57:53 +0200 Subject: [FFmpeg-user] Fwd: excessive bounces In-Reply-To: <5003D9AF.8030102@thelounge.net> References: <5003D87E.8000509@thelounge.net> <5003D9AF.8030102@thelounge.net> Message-ID: <20120716095753.GB25941@phare.normalesup.org> Le nonidi 29 messidor, an CCXX, Reindl Harald a ?crit?: > well, datafilehost.com is blacklisted........ > > i have whitelisted the mailing-list for my personal account > but i doubt this problem affects not only me I confirm this kind of URL is rejected as spam. But I am not sure it will affect many persons: it affects people on the same mail server as you, and probably the mail servers that use the same stupid spam detection service. There is not much you can do, apart from whitelisting the list as you did and possibly reporting the problem to the mail administrator (rejecting mails solely based on URLs that can pretty well be legitimate is not a good policy at all). I have found that commercial spam-protection services were frequently as bad as spam, in a different way. As for me, I am pretty satisfied with my site's greylisting plus a personal bogofilter. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From h.reindl at thelounge.net Mon Jul 16 12:17:52 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 16 Jul 2012 12:17:52 +0200 Subject: [FFmpeg-user] Fwd: excessive bounces In-Reply-To: <20120716095753.GB25941@phare.normalesup.org> References: <5003D87E.8000509@thelounge.net> <5003D9AF.8030102@thelounge.net> <20120716095753.GB25941@phare.normalesup.org> Message-ID: <5003EA50.2000702@thelounge.net> Am 16.07.2012 11:57, schrieb Nicolas George: > Le nonidi 29 messidor, an CCXX, Reindl Harald a ?crit : >> well, datafilehost.com is blacklisted........ >> >> i have whitelisted the mailing-list for my personal account >> but i doubt this problem affects not only me > > I confirm this kind of URL is rejected as spam. But I am not sure it will > affect many persons: it affects people on the same mail server as you, and > probably the mail servers that use the same stupid spam detection service. clear, i thought it would be good to inform here > There is not much you can do, apart from whitelisting the list as you did > and possibly reporting the problem to the mail administrator i am the mail-admin :-) > (rejecting mails solely based on URLs that can pretty well be legitimate > is not a good policy at all) it is a good policy "Zero-Hour-Intent" means there was a lot of spam containing this URL and Barracuda Networks was notfied by customers as they flagged the spam which means the flagged messages are sent to Barracuda usually this sort of blacklisting catchs varying spam containing always the same URLs while obfuscating the content permanently > I have found that commercial spam-protection services were frequently as bad > as spam, in a different way. As for me, I am pretty satisfied with my site's > greylisting plus a personal bogofilter. i had days where our Barracuda appliance blocked up to 500.000 spam messages per day - depends on for how many mail-addresses you are the MX we are for > 10.000 speard all over the world -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From billlagr at gmail.com Mon Jul 16 13:13:05 2012 From: billlagr at gmail.com (Bill LaGrue) Date: Mon, 16 Jul 2012 04:13:05 -0700 (PDT) Subject: [FFmpeg-user] Cross Compile ffmpeg for ARM with LAME support Message-ID: <1342437185269-4651838.post@n4.nabble.com> Hi All I'm trying to cross compile ffmpeg for ARM (under Linux Mint 12), with support for libmp3lame. The command line I'm using is - ./configure --enable-cross-compile --cross-prefix=/usr/arm-linux-gnueabi/bin/ --arch=arm --cc=/usr/bin/arm-linux-gnueabi-gcc --enable-gpl --enable-nonfree --enable-libmp3lame --enable-armv5te --disable-armv6 --disable-mmx --enable-shared --disable-optimizations --disable-doc --target-os=linux All seems to go well until I get - ERROR: libmp3lame >= 3.98.3 not found I have installed libmp3lame and sources from the repos, and I've also downloaded the source tarball for LAME. I'm at a bit of a loss now - I'm not sure where to go from here. Any help appreciated! Thanks -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Cross-Compile-ffmpeg-for-ARM-with-LAME-support-tp4651838.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Mon Jul 16 13:48:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 16 Jul 2012 11:48:11 +0000 (UTC) Subject: [FFmpeg-user] Cross Compile ffmpeg for ARM with LAME support References: <1342437185269-4651838.post@n4.nabble.com> Message-ID: Bill LaGrue gmail.com> writes: > ./configure --enable-cross-compile > --cross-prefix=/usr/arm-linux-gnueabi/bin/ --arch=arm > --cc=/usr/bin/arm-linux-gnueabi-gcc --enable-gpl --enable-nonfree > --enable-libmp3lame --enable-armv5te --disable-armv6 --disable-mmx > --enable-shared --disable-optimizations --disable-doc --target-os=linux (Is there a reason why you are using -disable-optimizations? While it can be useful at times, it is very bad if you plan to actually use your ffmpeg executable. And you probably shouldn't use --enable-nonfree.) > All seems to go well until I get - > ERROR: libmp3lame >= 3.98.3 not found Please post the relevant content of config.log beginning with "check_lib lame" Carl Eugen From sheen.andy at googlemail.com Mon Jul 16 16:36:41 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 16 Jul 2012 15:36:41 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <5003786D.2060204@gmail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: <500426F9.6000402@googlemail.com> Kyle wrote on Mon 16 Jul at 3:11 UK time > I finally got the hang to appear and that was after completely updating > the toolchain+x264+ffmpeg to the latest. This is in fact a issue with > the latest of everything. > I can get this to happen on any of your binaries (well, all the ones I've tried I can) from this year. 32bit builds or 64 bit ones. ... > > It's odd that this error happens at random times, at least it does for > me. It sometime would hang at the beginning, sometimes at other points. > Yup. Totally random. From sheen.andy at googlemail.com Mon Jul 16 17:03:25 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 16 Jul 2012 16:03:25 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> <500282CB.7010904@googlemail.com> Message-ID: <50042D3D.3000801@googlemail.com> Roger Pack wrote on Mon 16 Jul at 9:23 UK time > Also did you try attaching gdb to the running spiked process? I did. Trying to CTRL-C ffmpeg does nothing when the code is livelocked, so no chance of interrupting it whilst it is in this state to see what it is doing. > -roger- Andy From rogerdpack2 at gmail.com Mon Jul 16 17:31:18 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 09:31:18 -0600 Subject: [FFmpeg-user] Cross Compile ffmpeg for ARM with LAME support In-Reply-To: <1342437185269-4651838.post@n4.nabble.com> References: <1342437185269-4651838.post@n4.nabble.com> Message-ID: > All seems to go well until I get - > ERROR: libmp3lame >= 3.98.3 not found > > I have installed libmp3lame and sources from the repos, and I've also > downloaded the source tarball for LAME. I assume you cross compiled libmp3lame? -roger- From rogerdpack2 at gmail.com Mon Jul 16 17:32:29 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 09:32:29 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <50042D3D.3000801@googlemail.com> References: <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> <500282CB.7010904@googlemail.com> <50042D3D.3000801@googlemail.com> Message-ID: > I did. Trying to CTRL-C ffmpeg does nothing when the code is livelocked, > so no chance of interrupting it whilst it is in this state to see what > it is doing. Do you have a build with "gdb enabled" (+gstabs) both libx264 and ffmpeg (with pthreads) that you could make available for me to test with? Thanks. -r From sheen.andy at googlemail.com Mon Jul 16 17:38:26 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Mon, 16 Jul 2012 16:38:26 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> <500282CB.7010904@googlemail.com> <50042D3D.3000801@googlemail.com> Message-ID: <50043572.7030200@googlemail.com> Roger Pack wrote on Mon 16 Jul at 16:32 UK time >> I did. Trying to CTRL-C ffmpeg does nothing when the code is livelocked, >> so no chance of interrupting it whilst it is in this state to see what >> it is doing. > > Do you have a build with "gdb enabled" (+gstabs) both libx264 and > ffmpeg (with pthreads) that you could make available for me to test > with? Will the ffmpeg_g files do from the standard build do (it's what I've been using)? If not, I can do a build if you can point me to how to configure the build... > Thanks. > -r Andy From rogerdpack2 at gmail.com Mon Jul 16 18:16:17 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 10:16:17 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <50043572.7030200@googlemail.com> References: <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <50013EFA.2080003@googlemail.com> <500282CB.7010904@googlemail.com> <50042D3D.3000801@googlemail.com> <50043572.7030200@googlemail.com> Message-ID: >> Do you have a build with "gdb enabled" (+gstabs) both libx264 and >> ffmpeg (with pthreads) that you could make available for me to test >> with? > > Will the ffmpeg_g files do from the standard build do (it's what I've > been using)? If not, I can do a build if you can point me to how to > configure the build... I think so (they might not have libx264 built with debug symbols, but they're probably good enough for me...) -r From rfg at tristatelogic.com Tue Jul 17 01:27:49 2012 From: rfg at tristatelogic.com (Ronald F. Guilmette) Date: Mon, 16 Jul 2012 16:27:49 -0700 Subject: [FFmpeg-user] novice, in need of advice regarding format conversion Message-ID: <75257.1342481269@tristatelogic.com> Greetings, I have a number (20+) of non-encrypted DVDs that I would like to convert to something (anything) that my recently acquired LG BD670 Blu-Ray player will play from its USB port and/or via its network connection (via DLNA). Basically, I'd like to get rid of all of these DVD disks and put all of the video+audio content that they contain onto a large external USB drive, which I will then hook up to my LG BD670. (Actually, due to fortunate circumstance, I already have an external 200GB USB drive that will work quite nicely.) This will be nice, because then I won't have to be shuffling physical disks around and inserting/removing them from the BD670 all of the time. I can just select what I want to watch from the content on the USB drive. The actual problem here is twofold. First, there are only a limited number of formats (codecs?) that the LG BD670 will allow to be played via either USB or network (DLNA), and these specifically DO NOT include .VOB files. (And I have verified that indeed, the BD670 refuses to play .VOB files via the USB port.) Second, and more importantly, I don't know what the hell I'm doing. What I know about codecs and container formats could fit into a thimble. I am also almost entirely ignorant about ffmpeg (the command line tool) and its multitude of options. This is really the bigger problem. I'm hoping that someone here will take pity on me a send me some enlightenment. First however, allow me to share two critical pages of documentation from the LG BD670 manual: http://www.tristatelogic.com/misc/pages-10-11.pdf As you can see in the second column of the first table on the first of these two pages, it is alleged that the BD670 can play files (from USB or network/ DLNA) that make use of the following audio & video codecs: Video: DIVX3.xx, DIVX4.xx, DIVX5.xx, DIVX6.xx (``standard playback only'') XVID MPEG1 SS H.264/MPEG-4 AVC MPEG2 PS MPEG2 TS VC-1 SM (WMV3) Audio: Dolby Digital DTS MP3 WMA AAC AC3 Separately, the first column of the first table indicates support for the following filename extensions: .avi, .divx, .mpg, .mpeg, .mkv, .mp4, .asf, .wmv, and via USB only, .m4v files. All of this stuff is pretty much greek to me. I really know little or nothing about these codecs, containers, and file formats. I don't know which is best for what I want to do, or why, and more importantly, I know nothing at all about the plethora of ffmpeg command line options or their various effects on the conversions I will ultimately perform. So I could really use some help & guidance.... like a lot of it. Given that I don't really care if I have to leave my main machine crunching all night just to convert (with maximum quality) each one of my input DVDs, I need to know: 1) To which of the BD670-supported formats (USB/DLNA) should I convert my DVDs? 2) What are all of the ffmpeg command line options I should use for each conversion? (Perhaps it goes without saying, but I would like the quality of the output video+audio to be as good as, or nearly as good as what is on the original DVDs.) Regarding question (1), I should perhaps clarify that with regarsd to this little project, I have absolutely no biases or religious predispositions. In general, I prefer ``open'' (as in ``open standards'' and ``open source'') over ``closed'', but for this project, whaever works best is all that I really care about. I really don't care which of the BD670 supported formats I convert to, as long as it works and the quality is good. (I will retain the original DVDs, so if in future I decide to re-convert them to some different/better format, I can always do that later on. For now, whatever works is good enough.) Help in the form of suggested ffmpeg command lines would be much appreciated. Before closing, I'd just like to also mention two more desires... desires which may or may not be feasible as part of the conversions I plan to do. 1) It would be Extraordinarily Nice if the converted files contained chapter markers at the same places as the original DVDs... you know, so that I can skip around among chapters using the BD670 remote while watching the converted files. 2) It would be Extravagantly Terrific if the origianl menu system of the original DVDs could be preserved in the conversions also... but I am guessing that this is almost certainly asking for too much. Regards, rfg P.S. As may perhaps be obvious from the foregoing, I am a dyed-in-the-wool UNIX bigot, and I am vastly more comfortable with a command line, as opposed to, say, almost any type of GUI. P.P.S. On the second page of the two PDF manual pages I put on my web server (see above) there are some caveats relating to the kinds of files that the BD670 will play. I don't understand any of these, but perhaps folks responding to this posting will understand them, so I have included them for the sake of completness. One thing that I do know (and that I already established for myself, experimentally) is that whereas the BD670 manual says that the thing will play .wmv files, to be more precise it will actually only play things that ffmpeg identifies as wmv3 and/or VC-1. It will most definitely NOT play things that ffmpeg identifies as wmv1 or wmv2. P.P.P.S. Interestingly, another model in this series, the LG BD640, _will_ play .VOB files (from the USB port) even though the BD670, which is ostensibly a better & more capable model, refuses to do so. I suspect that perhaps the MPAA and or some collection of its members may have persuaded LG that it would not be in LG's best interests to ship a player that could play .VOB files _and_ which also implemented DLNA. But then again, I also believe that Lee Harvey Oswald did not act alone, so readers may wish to take my opinions with a large grain of salt. From rogerdpack2 at gmail.com Tue Jul 17 01:53:34 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 16 Jul 2012 17:53:34 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <5003786D.2060204@gmail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: > I finally got the hang to appear and that was after completely updating the > toolchain+x264+ffmpeg to the latest. This is in fact a issue with the latest > of everything. > > I bet the MinGW-w64 guys would know more about this issue. If someone could > send over the information to their mailing list that would really help. I > will if no one else can, but it might take a while. Ok I believe I was able to capture some stack traces during the hang (thanks to Andy Sheen's build): https://gist.github.com/3125847 I presume it was built using this script to get the cross compiler: http://ffmpeg.zeranoe.com/blog/?p=96 I guess I should just forward on all this information to mingw-w64 then? Also am I correct in presuming that there are basically 2 "mingw" pthreads libraries out there--this: https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/experimental/winpthreads and also this: http://sourceware.org/pthreads-win32/index.html (which is apparently compatible with 64-bit builds http://en.wikipedia.org/wiki/POSIX_Threads#POSIX_Threads_for_Windows) If so then maybe using one instead of the other would work-around the problem? (it wouldn't fix the bug, of course, but just wondering). Also this note from the "very sleepy" author: > Looking at the ffmpeg stuff, my guess would be it's sitting in some kind of spinlock maybe? i.e. every time Sleepy samples the callstack, it causes Windows to schedule a different thread, breaking the spinlock. Cheers! -roger- From kshawkeye at gmail.com Tue Jul 17 07:23:10 2012 From: kshawkeye at gmail.com (Kyle Schwarz) Date: Tue, 17 Jul 2012 01:23:10 -0400 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: <5004F6BE.4090001@gmail.com> On 7/16/2012 7:53 PM, Roger Pack wrote: >> I finally got the hang to appear and that was after completely updating the >> toolchain+x264+ffmpeg to the latest. This is in fact a issue with the latest >> of everything. >> >> I bet the MinGW-w64 guys would know more about this issue. If someone could >> send over the information to their mailing list that would really help. I >> will if no one else can, but it might take a while. > > Ok I believe I was able to capture some stack traces during the hang > (thanks to Andy Sheen's build): > > https://gist.github.com/3125847 > > I presume it was built using this script to get the cross compiler: > http://ffmpeg.zeranoe.com/blog/?p=96 > > I guess I should just forward on all this information to mingw-w64 then? Yes, since the script uses MinGW-w64's threading library they should have a good idea what might be going on. They also are very helpful and can possible offer a quick fix. Are we sure the issue is not on FFmpegs end? Has anyone had a chance to test an identical version build on Linux? Maybe a FFmpeg bug report is in order? > Also am I correct in presuming that there are basically 2 "mingw" > pthreads libraries out there--this: > https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/experimental/winpthreads > and also this: > http://sourceware.org/pthreads-win32/index.html (which is apparently > compatible with 64-bit builds > http://en.wikipedia.org/wiki/POSIX_Threads#POSIX_Threads_for_Windows) > > If so then maybe using one instead of the other would work-around the > problem? (it wouldn't fix the bug, of course, but just wondering). I would like to stick with MinGW-w64s thread library if we can. Like I said they may be able to offer a fix. I'm available to compile any custom FFmpeg build with debug symbols if that is whats needed. I can configure both FFmpeg and x264 whatever way is needed. Just let me know. Best regards, Kyle Schwarz From sqbing at gmail.com Tue Jul 17 09:39:02 2012 From: sqbing at gmail.com (sqbing at gmail.com) Date: Tue, 17 Jul 2012 15:39:02 +0800 Subject: [FFmpeg-user] About timestamp In-Reply-To: References: Message-ID: <8DBA9B31-2707-4326-82F5-9C730323933C@gmail.com> So, who is responsible for pts/dts? Are they writen into video files? Will different codecs give us the same pts/dts? ? 2012-7-13???11:26? Roger Pack ??? >> Seems pts_time/dts_time has some kinid of relation to pts/dts, but >> obviously not dts_time = dts/1000. > > Yeah it's supposed to be the "converted" "timestamp" or "humanized" or > something. My guess is that ffmpeg takes care of the conversion > internally. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sheen.andy at googlemail.com Tue Jul 17 09:50:14 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 17 Jul 2012 08:50:14 +0100 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: <50051936.8020008@googlemail.com> Hi Roger, Roger Pack wrote on Tue 17 Jul at 0:53 UK time >> I finally got the hang to appear and that was after completely updating the >> toolchain+x264+ffmpeg to the latest. This is in fact a issue with the latest >> of everything. >> >> I bet the MinGW-w64 guys would know more about this issue. If someone could >> send over the information to their mailing list that would really help. I >> will if no one else can, but it might take a while. > > Ok I believe I was able to capture some stack traces during the hang > (thanks to Andy Sheen's build): > > https://gist.github.com/3125847 > > I presume it was built using this script to get the cross compiler: > http://ffmpeg.zeranoe.com/blog/?p=96 > Yes, it was. I'm glad you were able to get further than me with it :) > I guess I should just forward on all this information to mingw-w64 then? > Thanks. ... > Also this note from the "very sleepy" author: > >> Looking at the ffmpeg stuff, my guess would be it's sitting in some kind of spinlock maybe? i.e. every time Sleepy samples the callstack, it causes Windows to schedule a different thread, breaking the spinlock. > That would make a lot of sense. If you need any more help, please let me know. > Cheers! > -roger- Andy From stefasab at gmail.com Tue Jul 17 10:09:49 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Tue, 17 Jul 2012 10:09:49 +0200 Subject: [FFmpeg-user] novice, in need of advice regarding format conversion In-Reply-To: <75257.1342481269@tristatelogic.com> References: <75257.1342481269@tristatelogic.com> Message-ID: <20120717080949.GE9329@arborea> On date Monday 2012-07-16 16:27:49 -0700, Ronald F. Guilmette encoded: > > > Greetings, > > I have a number (20+) of non-encrypted DVDs that I would like to convert to > something (anything) that my recently acquired LG BD670 Blu-Ray player will > play from its USB port and/or via its network connection (via DLNA). > > Basically, I'd like to get rid of all of these DVD disks and put all of > the video+audio content that they contain onto a large external USB drive, > which I will then hook up to my LG BD670. (Actually, due to fortunate > circumstance, I already have an external 200GB USB drive that will work > quite nicely.) This will be nice, because then I won't have to be > shuffling physical disks around and inserting/removing them from the > BD670 all of the time. I can just select what I want to watch from > the content on the USB drive. > > The actual problem here is twofold. > > First, there are only a limited number of formats (codecs?) that the LG > BD670 will allow to be played via either USB or network (DLNA), and these > specifically DO NOT include .VOB files. (And I have verified that indeed, > the BD670 refuses to play .VOB files via the USB port.) > > Second, and more importantly, I don't know what the hell I'm doing. What > I know about codecs and container formats could fit into a thimble. I am > also almost entirely ignorant about ffmpeg (the command line tool) and its > multitude of options. This is really the bigger problem. I'm hoping that > someone here will take pity on me a send me some enlightenment. > > First however, allow me to share two critical pages of documentation from > the LG BD670 manual: > > http://www.tristatelogic.com/misc/pages-10-11.pdf > > As you can see in the second column of the first table on the first of these > two pages, it is alleged that the BD670 can play files (from USB or network/ > DLNA) that make use of the following audio & video codecs: > > Video: > DIVX3.xx, DIVX4.xx, DIVX5.xx, DIVX6.xx > (``standard playback only'') > XVID > MPEG1 SS > H.264/MPEG-4 AVC > MPEG2 PS > MPEG2 TS > VC-1 SM (WMV3) > > Audio: > Dolby Digital > DTS > MP3 > WMA > AAC > AC3 > > Separately, the first column of the first table indicates support for the > following filename extensions: .avi, .divx, .mpg, .mpeg, .mkv, .mp4, > .asf, .wmv, and via USB only, .m4v files. > > All of this stuff is pretty much greek to me. I really know little or > nothing about these codecs, containers, and file formats. I don't know > which is best for what I want to do, or why, and more importantly, I know > nothing at all about the plethora of ffmpeg command line options or their > various effects on the conversions I will ultimately perform. So I could > really use some help & guidance.... like a lot of it. > > Given that I don't really care if I have to leave my main machine crunching > all night just to convert (with maximum quality) each one of my input DVDs, > I need to know: > > 1) To which of the BD670-supported formats (USB/DLNA) should I convert > my DVDs? Do ffmpeg -codecs and ffmpeg -formats for getting an idea of the formats supported by ffmpeg, also keep in mind the difference between the audio/video elementary stream format, which is encoded/decoded by a CODEC, and the container format, which usually corresponds to the file suffix. In general a container format only supports a limited number of elementary stream formats (codecs), ffmpeg will tell you in the case, ffprobe -show_streams -show_format will show you more detailed information regarding the format/streams of an input. If you want something pretty portable, i suggest MPEG2 or MPEG4 part 2 (which is the equivalent of "divx") or H.264 for video, MP3 or AAC for audio, AVI, MP4 or MKV for the container (format) should be fine (mkv is less "portable" - meaning that some players may not support it, but definitively nice for the supported features). The lowest common denominator for players will be the mpeg2video+MP3+avi combination. > 2) What are all of the ffmpeg command line options I should use for each > conversion? (Perhaps it goes without saying, but I would like the > quality of the output video+audio to be as good as, or nearly as good > as what is on the original DVDs.) Example command: ffmpeg -i INPUT -vcodec mpeg2video -acodec libmp3lame out.avi then start tweaking from it. > Regarding question (1), I should perhaps clarify that with regarsd to this > little project, I have absolutely no biases or religious predispositions. > In general, I prefer ``open'' (as in ``open standards'' and ``open source'') > over ``closed'', but for this project, whaever works best is all that I > really care about. I really don't care which of the BD670 supported formats > I convert to, as long as it works and the quality is good. (I will retain > the original DVDs, so if in future I decide to re-convert them to some > different/better format, I can always do that later on. For now, whatever > works is good enough.) > > Help in the form of suggested ffmpeg command lines would be much appreciated. More than this, I suggest to give a read to the manual page or other resources on the Internet, I don't feel like I want to rewrite the manual here. > Before closing, I'd just like to also mention two more desires... desires > which may or may not be feasible as part of the conversions I plan to do. > > > 1) It would be Extraordinarily Nice if the converted files contained chapter > markers at the same places as the original DVDs... you know, so that I can > skip around among chapters using the BD670 remote while watching the converted > files. IIRC MKV (Matroska) has support for chapters, you may read more about that. > 2) It would be Extravagantly Terrific if the origianl menu system of the > original DVDs could be preserved in the conversions also... but I am guessing > that this is almost certainly asking for too much. This is impossible, a multimedia file is not a DVD, so the navigation info is definitively lost (you can still keep more than one audio tracks in a file - e.g. one for each language), and switch back and forth during playback. [...] -- ffmpeg-user random tip #2 The -y option will force the overwrite of the output, without to prompt you for your confirmation. Example: ffmpeg -i movie.avi -y movie.mp4 From luuk at dominicansinteractive.com Tue Jul 17 13:22:35 2012 From: luuk at dominicansinteractive.com (Dominicans Interactive) Date: Tue, 17 Jul 2012 12:22:35 +0100 Subject: [FFmpeg-user] Encoding for HLS but have a DTS problem In-Reply-To: <9324E595-402F-4ABC-BCC4-1E9947484311@dominicansinteractive.com> References: <9324E595-402F-4ABC-BCC4-1E9947484311@dominicansinteractive.com> Message-ID: <2B858C49-3193-41DB-9721-496ED9F7D80B@dominicansinteractive.com> Is there anybody with a suggestion what I could do? On 14 Jul 2012, at 09:04, Dominicans Interactive wrote: > I am trying to encode video for HTS live streaming, but am having problems with validating the stream using Apple Media Validator (mediastreamvalidator). > (my test file: http://dominicansinteractive.idoms.org/media/9536/playlist.m3u8) > > The output is: > -------------------------------------------------------------------------------- > http://dominicansinteractive.idoms.org/media/9536/199/prog_index.m3u8 > -------------------------------------------------------------------------------- > > Playlist Validation: > > OK > > Segments: > > segment_00000.ts: > > ERROR: (-1) Decreasing DTS were detected in track 0 > ERROR: (-1) Decreasing DTS were detected in track 1 > > Average segment duration: 8.07 seconds > Average segment bitrate: 2155094.67 bps > Average segment structural overhead: 206525.83 bps (9.58 %) > > --- > > The second segment doesn't seem to have the problem: > [mpegts @ 0x1d78120] Format mpegts probed with size=2048 and score=100 > [mpegts @ 0x1d78120] stream=0 stream_type=1b pid=100 prog_reg_desc= > [mpegts @ 0x1d78120] stream=1 stream_type=f pid=101 prog_reg_desc= > [mpegts @ 0x1d78120] File position before avformat_find_stream_info() is 0 > [h264 @ 0x1d7c1c0] Current profile doesn't provide more RBSP data in PPS, skipping > [h264 @ 0x1d7c1c0] no picture > [h264 @ 0x1d7c1c0] Current profile doesn't provide more RBSP data in PPS, skipping > Last message repeated 3 times > [mpegts @ 0x1d78120] max_analyze_duration 5000000 reached at 5013333 > [mpegts @ 0x1d78120] File position after avformat_find_stream_info() is 0 > > --- > > This seems to be a serious problem for HLS, so I am looking if there is a way to fix this. > > When looking with FFMPEG at the encoded file I get (encoder output/command at the bottom of the email): > > ffmpeg -loglevel 99 -i encoded.ts > ffmpeg version N-37783-gdf3a96c Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 4 2012 07:44:52 with gcc 4.4.5 > configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree > libavutil 51. 63.100 / 51. 63.100 > libavcodec 54. 32.100 / 54. 32.100 > libavformat 54. 14.100 / 54. 14.100 > libavdevice 54. 0.100 / 54. 0.100 > libavfilter 3. 0.101 / 3. 0.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [mpegts @ 0x2023120] Format mpegts probed with size=2048 and score=100 > [mpegts @ 0x2023120] stream=0 stream_type=1b pid=100 prog_reg_desc= > [mpegts @ 0x2023120] stream=1 stream_type=f pid=101 prog_reg_desc= > [mpegts @ 0x2023120] File position before avformat_find_stream_info() is 0 > [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping > [h264 @ 0x20271c0] no picture > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 143280 in que > Last message repeated 6 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 158640 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 175920 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 193200 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 210480 in que > Last message repeated 7 times > [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 227760 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 245040 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 262320 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 279600 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 296880 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 314160 in que > Last message repeated 7 times > [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 331440 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 348720 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 366000 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 383280 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 400560 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 417840 in que > Last message repeated 6 times > [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 433200 in que > Last message repeated 6 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 448560 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 465840 in que > Last message repeated 6 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 481200 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 498480 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 515760 in que > Last message repeated 7 times > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 533040 in que > Last message repeated 6 times > [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x2023120] first_dts 124080 not matching first dts 548400 in que > Last message repeated 7 times > [mpegts @ 0x2023120] max_analyze_duration 5000000 reached at 5000000 > [mpegts @ 0x2023120] File position after avformat_find_stream_info() is 0 > > And when at the first segmented file: > ffmpeg -loglevel 99 -i segment_00000.ts > ffmpeg version N-37783-gdf3a96c Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 4 2012 07:44:52 with gcc 4.4.5 > configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree > libavutil 51. 63.100 / 51. 63.100 > libavcodec 54. 32.100 / 54. 32.100 > libavformat 54. 14.100 / 54. 14.100 > libavdevice 54. 0.100 / 54. 0.100 > libavfilter 3. 0.101 / 3. 0.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [mpegts @ 0x1a0b120] Format mpegts probed with size=2048 and score=100 > [mpegts @ 0x1a0b120] stream=0 stream_type=1b pid=100 prog_reg_desc= > [mpegts @ 0x1a0b120] stream=1 stream_type=f pid=101 prog_reg_desc= > [mpegts @ 0x1a0b120] File position before avformat_find_stream_info() is 0 > [mpegts @ 0x1a0b120] Invalid timestamps stream=0, pts=1920, dts=8589929312, size=2355 > [mpegts @ 0x1a0b120] Invalid timestamps stream=0, pts=16320, dts=8589932912, size=3203 > [h264 @ 0x1a0f1c0] Current profile doesn't provide more RBSP data in PPS, skipping > [h264 @ 0x1a0f1c0] no picture > [h264 @ 0x1a0f1c0] Current profile doesn't provide more RBSP data in PPS, skipping > Last message repeated 3 times > [mpegts @ 0x1a0b120] max_analyze_duration 5000000 reached at 5013333 > [mpegts @ 0x1a0b120] File position after avformat_find_stream_info() is 0 > > This problem does not occur with the BASELINE profile, but does with MAIN. > > > The command I use for encoding is: > ffmpeg, -i, [path]/test.mov, -y, -f, mpegts, -acodec, aac, -strict, -2, -ar, 48000, -b:a, 128000, -s, 960x540, -vcodec, libx264, -b:v, 1200000, -aspect, 960:540, -r, 25, -level, 3.1, -vprofile, main, -flags, +loop, -cmp, +chroma, -partitions, +parti4x4+partp8x8+partb8x8, -subq, 5, -trellis, 1, -refs, 1, -coder, 0, -me_range, 16, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -bt, 200k, -maxrate, 1200000, -bufsize, 1200000, -rc_eq, 'blurCplx^(1-qComp)', -qcomp, 0.6, -qmin, 10, -qmax, 51, -qdiff, 4, -level, 30, -g, 30, -async, 2, [path]/encoded.ts > > 08:40:29,843 DEBUG ~ FFMPEG(1): libavutil 51. 63.100 / 51. 63.100 > 08:40:29,843 DEBUG ~ FFMPEG(1): libavcodec 54. 32.100 / 54. 32.100 > 08:40:29,843 DEBUG ~ FFMPEG(1): libavformat 54. 14.100 / 54. 14.100 > 08:40:29,843 DEBUG ~ FFMPEG(1): libavdevice 54. 0.100 / 54. 0.100 > 08:40:29,843 DEBUG ~ FFMPEG(1): libavfilter 3. 0.101 / 3. 0.101 > 08:40:29,844 DEBUG ~ FFMPEG(1): libswscale 2. 1.100 / 2. 1.100 > 08:40:29,844 DEBUG ~ FFMPEG(1): libswresample 0. 15.100 / 0. 15.100 > 08:40:29,844 DEBUG ~ FFMPEG(1): libpostproc 52. 0.100 / 52. 0.100 > 08:40:30,033 DEBUG ~ FFMPEG(1): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '[path]/test.mov': > 08:40:30,033 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,033 DEBUG ~ FFMPEG(1): major_brand : qt > 08:40:30,033 DEBUG ~ FFMPEG(1): minor_version : 537199360 > 08:40:30,035 DEBUG ~ FFMPEG(1): compatible_brands: qt > 08:40:30,035 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:54:24 > 08:40:30,036 DEBUG ~ FFMPEG(1): timecode : 00:00:00:00 > 08:40:30,036 DEBUG ~ FFMPEG(1): Duration: 00:00:24.20, start: 0.000000, bitrate: 9912 kb/s > 08:40:30,037 DEBUG ~ FFMPEG(1): Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 9777 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc > 08:40:30,037 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,037 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 > 08:40:30,037 DEBUG ~ FFMPEG(1): handler_name : Apple Video Media Handler > 08:40:30,038 DEBUG ~ FFMPEG(1): Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 129 kb/s > 08:40:30,038 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,038 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 > 08:40:30,038 DEBUG ~ FFMPEG(1): handler_name : Apple Sound Media Handler > 08:40:30,038 DEBUG ~ FFMPEG(1): Stream #0:2(eng): Data: none (tmcd / 0x64636D74) > 08:40:30,038 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,038 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 > 08:40:30,039 DEBUG ~ FFMPEG(1): handler_name : Time Code Media Handler > 08:40:30,039 DEBUG ~ FFMPEG(1): timecode : 00:00:00:00 > 08:40:30,092 DEBUG ~ FFMPEG(1): [graph 0 input from stream 0:0 @ 0x1c17180] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 > 08:40:30,092 DEBUG ~ FFMPEG(1): [output stream 0:0 @ 0x1c033a0] No opaque field provided > 08:40:30,110 DEBUG ~ FFMPEG(1): [scaler for output stream 0:0 @ 0x1c18040] w:1920 h:1080 fmt:yuv420p sar:0/1 -> w:960 h:540 fmt:yuv420p sar:0/1 flags:0x4 > 08:40:30,110 DEBUG ~ FFMPEG(1): [graph 1 input from stream 0:1 @ 0x1c53440] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 > 08:40:30,110 DEBUG ~ FFMPEG(1): -async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000:max_soft_comp=0.000042. > 08:40:30,122 DEBUG ~ FFMPEG(1): [graph 1 aresample for input stream 0:1 @ 0x1c36880] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz > 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] using SAR=1/1 > 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame MB size (60x34) > level limit (1620) > 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] DPB size (4 frames, 3133440 bytes) > level limit (3 frames, 3110400 bytes) > 08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] MB rate (51000) > level limit (40500) > 08:40:30,170 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ > 08:40:30,182 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] profile Main, level 3.0 > 08:40:30,235 DEBUG ~ FFMPEG(1): [mpegts @ 0x1be3540] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts > 08:40:30,235 DEBUG ~ FFMPEG(1): Output #0, mpegts, to '[path]/encoded.ts': > 08:40:30,235 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,235 DEBUG ~ FFMPEG(1): major_brand : qt > 08:40:30,235 DEBUG ~ FFMPEG(1): minor_version : 537199360 > 08:40:30,235 DEBUG ~ FFMPEG(1): compatible_brands: qt > 08:40:30,235 DEBUG ~ FFMPEG(1): timecode : 00:00:00:00 > 08:40:30,235 DEBUG ~ FFMPEG(1): encoder : Lavf54.14.100 > 08:40:30,235 DEBUG ~ FFMPEG(1): Stream #0:0(eng): Video: h264, yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-51, 1200 kb/s, 90k tbn, 25 tbc > 08:40:30,235 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,235 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 > 08:40:30,235 DEBUG ~ FFMPEG(1): handler_name : Apple Video Media Handler > 08:40:30,236 DEBUG ~ FFMPEG(1): Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, flt, 128 kb/s > 08:40:30,236 DEBUG ~ FFMPEG(1): Metadata: > 08:40:30,236 DEBUG ~ FFMPEG(1): creation_time : 2011-12-05 10:56:28 > 08:40:30,236 DEBUG ~ FFMPEG(1): handler_name : Apple Sound Media Handler > 08:40:30,236 DEBUG ~ FFMPEG(1): Stream mapping: > 08:40:30,236 DEBUG ~ FFMPEG(1): Stream #0:0 -> #0:0 (h264 -> libx264) > 08:40:30,236 DEBUG ~ FFMPEG(1): Stream #0:1 -> #0:1 (aac -> aac) > > [...] > > 08:40:55,398 DEBUG ~ FFMPEG(1): video:3121kB audio:359kB subtitle:0 global headers:0kB muxing overhead 11.132085% > 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame I:21 Avg QP:21.57 size: 88153 > 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame P:233 Avg QP:22.74 size: 5560 > 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame B:351 Avg QP:27.45 size: 141 > 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] consecutive B-frames: 21.7% 2.0% 3.0% 73.4% > 08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb I I16..4: 54.5% 0.0% 45.5% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb P I16..4: 4.7% 0.0% 1.3% P16..4: 24.6% 3.5% 0.8% 0.0% 0.0% skip:65.1% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb B I16..4: 0.1% 0.0% 0.1% B16..8: 0.5% 0.1% 0.0% direct: 0.6% skip:98.6% L0:32.3% L1:47.1% BI:20.6% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] coded y,uvDC,uvAC intra: 59.4% 5.8% 0.4% inter: 5.4% 3.0% 0.0% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i16 v,h,dc,p: 58% 16% 21% 4% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 21% 17% 5% 10% 7% 5% 5% 10% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i8c dc,h,v,p: 94% 3% 3% 0% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] Weighted P-Frames: Y:13.7% UV:3.4% > 08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] kb/s:1056.61 > > For segmenting is: > ffmpeg, -i,[path]encoded.ts, -y, -c, copy, -flags, global_header, -map, 0, -f, segment, -segment_time, 10, -segment_list, [path]/fileList.txt, -segment_format, mpegts, [path]/segment_%05d.ts] > > Any help would really be appreciated! > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From placencio87 at hotmail.com Tue Jul 17 16:58:54 2012 From: placencio87 at hotmail.com (felopla) Date: Tue, 17 Jul 2012 07:58:54 -0700 (PDT) Subject: [FFmpeg-user] Big file webcam Message-ID: <1342537134143-4651854.post@n4.nabble.com> Hi friends. I'm a newbie in FFmpeg. I search this theme but I don't have success. I'm trying to capture video from my Microsoft Lifecam Studio. I tried with a lot of commands and I achieved a good quality some times, but the problem is that the good quality give it me a very big file. The idea is get the video in 640x480 pixels or more, to 6 [MB/min] or less if it is possible. Now, the videos with good quality that I got, are bigger than 20 MB/min. Can you give me some ideas or commands please? Really I will appreciate it. If you need whatever information, don't hesitate in ask me please. Thanks in advance. Best regards from Chile Felipe. PD: sorry for my bad english. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Big-file-webcam-tp4651854.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rd at icalc.com Tue Jul 17 18:14:46 2012 From: rd at icalc.com (Rob Desilets) Date: Tue, 17 Jul 2012 11:14:46 -0500 Subject: [FFmpeg-user] Logos and Text Shrunk/Scaled Message-ID: <50058F76.40608@icalc.com> Hi All, I am using the filters to put text in the top/bottom left and logos in the top/bottom right of my converted videos. It has been working perfectly for many months. Here is my command: /usr/local/bin/ffmpeg -i 4384.mts -vf "movie=/home/bigwayvideos/processing/bottom_right_watermark.png [logo];movie=/home/bigwayvideos/processing/top_right_watermark.png [logo2];[in][logo] overlay=W-w-8:H-h-8 [in+logo];[in+logo][logo2] overlay=W-w-8:8 [in+logo2]; [in+logo2] drawtext=fontfile=/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf:text='test (Jul 2012) - Day\: 1\, Jump\: 5':fontsize=24:fontcolor=black=10:y=10,drawtext=fontfile=/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf:text='Videographer\: Rob Desilets - skydivingphotography.com':fontsize=24:fontcolor=black=10:y=H-th-10 [final];[final]yadif=1[out]" -vol 0 -y -c:v libx264 -crf 24 -preset slow -profile:v baseline -level 30 -c:a libfaac -q:a 100 -r 30 -s 480x320 test-071612-rd-4384-9.mp4 The [old] output looked like this: http://legacy.skydivingphotography.com/old.png Notice the size of the logo in top right/bottom right. About 3 weeks ago I upgraded my ffmpeg (using the steps outlined in this thread) and now when I process the videos my logos are super small. The new output looks like this: http://legacy.skydivingphotography.com/new.png Note the [small] size of the logos in top/bottom right. The video input is the same size and so are the logos themselves; the only thing different is the ffmpeg I am using. Does anyone know if I need to pass any additional/new flags into ffmpeg or what I need to do to get them the same size they were? As always, thanks for your time -Rob From focustelev at gmail.com Tue Jul 17 20:13:54 2012 From: focustelev at gmail.com (focus television) Date: Tue, 17 Jul 2012 19:13:54 +0100 Subject: [FFmpeg-user] cpu Message-ID: <5005AB62.9090505@gmail.com> Him, I am playing an mp4 file. ffmpeg -i king.avi -profile:v baseline -level 30 \ -c:v libx264 -b:v 512k -s 640x360 -r 25 \ -c:a libfaac -b:a 64k -ar 44100 \ -f:v flv \ rtmp://localhost/live/teststream and it is showing 100% usage I see that in vlc it is show h264 and mpga audio . But still it accepts the encoding and uses lot of cpu. It i take out the codec or put copy it gives error in header... ANy idea where i am wrong? From mblakeman at netspace.net.au Tue Jul 17 21:33:41 2012 From: mblakeman at netspace.net.au (Murray Blakeman) Date: Wed, 18 Jul 2012 05:33:41 +1000 Subject: [FFmpeg-user] Problem with FFMPEG 0.11.1 on Solaris 11 In-Reply-To: References: <500257FE.3060004@netspace.net.au> Message-ID: <5005BE15.2000503@netspace.net.au> On 07/15/12 11:51 PM, Carl Eugen Hoyos wrote: > Murray Blakeman netspace.net.au> writes: > >> $ ldd ffmpeg >> >> ..... >> libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware >> capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] >> Is this normal? > Yes, I believe so. What does configure's output say about 3DNow / > what does grep -i amd config.h say? $ ./configure --prefix=/opt/mbl --mandir=/opt/mbl/share/man --enable-shared --enable-pthreads --disable-ffserver --disable-ffplay --enable-postproc | grep 3DNow 3DNow! enabled yes 3DNow! extended enabled yes $ grep AMD config.h #define HAVE_AMD3DNOW 1 #define HAVE_AMD3DNOWEXT 1 > Did you try --disable-amd3dnow --disable-amd3dnowext ? > It is possible they do not work completely, if you report back, > I will try to fix it. Yes, I did try this. Output is shown below. $ ./configure --prefix=/opt/mbl --mandir=/opt/mbl/share/man --enable-shared --enable-pthreads --disable-ffserver --disable-ffplay --enable-postproc --disable-amd3dnow --disable-amd3dnowext | grep 3DNow 3DNow! enabled no 3DNow! extended enabled no $ grep AMD config.h #define HAVE_AMD3DNOW 0 #define HAVE_AMD3DNOWEXT 0 $ gmake -j4 .... $ ldd ffmpeg ..... libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware capability (CA_SUNW_HW_1) unsupported: 0x100 [ AMD_3DNow ] ..... $ ./ffmpeg ld.so.1: ffmpeg: fatal: libavcodec/libavcodec.so.54: hardware capability (CA_SUNW_HW_1) unsupported: 0x100 [ AMD_3DNow ] Killed > > Please test current git head, Carl Eugen > $ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg Cloning into ffmpeg... remote: Counting objects: 235882, done. remote: Compressing objects: 100% (56092/56092), done. remote: Total 235882 (delta 185692), reused 228240 (delta 179406) Receiving objects: 100% (235882/235882), 59.69 MiB | 210 KiB/s, done. Resolving deltas: 100% (185692/185692), done. $ cd ffmpeg $ ./configure --prefix=/opt/mbl --mandir=/opt/mbl/share/man --enable-shared --enable-pthreads --disable-ffserver --disable-ffplay --enable-postproc --disable-amd3dnow --disable-amd3dnowext | grep 3DNow 3DNow! enabled no 3DNow! extended enabled no $ ldd ffmpeg ..... libavcodec.so.54 => libavcodec/libavcodec.so.54 - hardware capability (CA_SUNW_HW_1) unsupported: 0x100 [ AMD_3DNow ] ..... $ ./ffmpeg ld.so.1: ffmpeg: fatal: libavcodec/libavcodec.so.54: hardware capability (CA_SUNW_HW_1) unsupported: 0x100 [ AMD_3DNow ] Killed Thanks again for your help. From grabner at icg.tugraz.at Tue Jul 17 22:02:15 2012 From: grabner at icg.tugraz.at (Markus Grabner) Date: Tue, 17 Jul 2012 22:02:15 +0200 Subject: [FFmpeg-user] ffplay and vdpau? Message-ID: <7994806.91dkMOmlN7@mark> Hi all! Which command line options are required to use vdpau when playing an mts video with ffplay? I tried the following: 1.) mplayer video.mts This plays the video with ~94% processor usage. 2.) mplayer -vo vdpau video.mts This plays the video with ~3% processor usage, which seems to confirm that my system supports vdpau and decoding is actually done by the GPU. 3.) ffplay video.mts This plays the video with ~107% processor usage (as reported by top, it's a dual core machine with obviously more than one thread busy). 4.) ffplay -codec:v h264_vdpau video.mts No video is rendered, only the sound is played. The following messages are displayed ~2000 times: [h264_vdpau @ 0x7fa13c004780] decoding to PIX_FMT_NONE is not supported. [h264_vdpau @ 0x7fa13c004780] ff_MPV_common_init() failed. [h264_vdpau @ 0x7fa13c004780] decode_slice_header error [h264_vdpau @ 0x7fa13c004780] no frame! 5.) ffplay -codec:v h264_vdpau -pix_fmt vdpau_h264 video.mts This terminates with the message Option -pix_fmt is deprecated, use -pixel_format. 6.) ffplay -codec:v h264_vdpau -pixel_format vdpau_h264 video.mts This terminates with the message Option pixel_format not found. I tried the following versions of ffplay: *) release 0.11.1 *) current head revision from the git repository and the following graphics cards: *) Nvidia GeForce 9500 GT *) Nvidia GeForce GTX 260 The behaviour was the same in all configurations. So how can I tell ffplay to use vdpau for decoding? Thanks & kind regards, Markus From rfg at tristatelogic.com Tue Jul 17 22:30:06 2012 From: rfg at tristatelogic.com (Ronald F. Guilmette) Date: Tue, 17 Jul 2012 13:30:06 -0700 Subject: [FFmpeg-user] novice, in need of advice regarding format conversion In-Reply-To: <20120717080949.GE9329@arborea> Message-ID: <780.1342557006@tristatelogic.com> In message <20120717080949.GE9329 at arborea>, Stefano Sabatini wrote: >On date Monday 2012-07-16 16:27:49 -0700, Ronald F. Guilmette encoded: >> Given that I don't really care if I have to leave my main machine crunching >> all night just to convert (with maximum quality) each one of my input DVDs, >> I need to know: >> >> 1) To which of the BD670-supported formats (USB/DLNA) should I convert >> my DVDs? > >Do ffmpeg -codecs and ffmpeg -formats for getting an idea of the >formats supported by ffmpeg, also keep in mind the difference between >the audio/video elementary stream format, which is encoded/decoded by >a CODEC, and the container format, which usually corresponds to the >file suffix. Thanks. That's probably the only thing about all of this stuff that I _did_ actually already understand. >If you want something pretty portable, i suggest MPEG2 or MPEG4 part 2 >(which is the equivalent of "divx") or H.264 for video, MP3 or AAC for >audio, AVI, MP4 or MKV for the container (format) should be fine (mkv >is less "portable" - meaning that some players may not support it, but >definitively nice for the supported features). > >The lowest common denominator for players will be the >mpeg2video+MP3+avi combination. As I said, I only have one target here, i.e. _anything_ that the LG BD670 can play (and I don't care which container/codec are used, as long as the LG BD670 is happy). In short, I have -zero- reason to care about ``portability''. Also, I think that for what I am doing, I will want to use whatever format gives me the MOST quality and/or functionality... NOT the ``lowest common denominator''. Lastly, as my prior popsting mentioned, this player allegedly supports .MKV files. If that container format provides more functionality that the other supported container formats, then that is probably the one I want to convert my .VOB files into. Now I just need someone to show me precisely how to do that. (An example command line please!) >> 2) What are all of the ffmpeg command line options I should use for each >> conversion? (Perhaps it goes without saying, but I would like the >> quality of the output video+audio to be as good as, or nearly as good >> as what is on the original DVDs.) > >Example command: > >ffmpeg -i INPUT -vcodec mpeg2video -acodec libmp3lame out.avi Someone else already responded to me privately and pointed out to me that my pre-existing .VOB files are _already_ MPEG2 files... just with a funny suffix. On this person's advice, I tried copying one of my input .VOB files to a file with the same name but with a .mpeg suffix, and then tried playing that on the LGBD670. That worked just fine, both video & audio, *however* for reasons that perhaps someone somewhere could explain to me (please?) the player refused to allow me gto use either the remote controls fast- forward button or its fast-reverse button when playing this ``converted'' (but really just copied from .vob) .mpeg file. (That is not really an acceptable outcome as far as I am concerned.) So anyway, I'm a bit confused because the command line you suggested above seems to be one which would convert my input (.vob aka MPEG2) files to.... MPEG2. No? If so, that ``conversion'' does seem rather pointless, does it not? >then start tweaking from it. Hummm... I guess that I should have been a bit more clear in my prior posting. Allow me to correct that oversight now. I do not know squat about ffmpeg, nor about its gazillion options, nor about video/audio file formats and codecs generally. so telling me to ``start tweaking'' is sort of like telling a blind man to pitch a no hitter against the New York Yankees. I need some help & advice on the best options to use. >> Help in the form of suggested ffmpeg command lines would be much appreciated >. > >More than this, I suggest to give a read to the manual page or other >resources on the Internet, I don't feel like I want to rewrite the >manual here. Hehe % man ffmpeg | wc 4738 20613 177135 Yea. *Just* the man page is nealy 5,000 lines! I don't know how anybody might expect a novice, who doesn't even understand most of the terminology, to read over that WHOLE thing, just to try to accomplish what seems like it ought to be a relatively simple task. One last word... I did manage to convert (using a simple command line involving the -sameq option) one of my test .vob files into a .mp4 file, and that plays just fine on my LG BD670. And unlike when I just copied the .vob file to file with suffixes of .mpg and/or .mpeg, in this case I _could_ use the fast-forward and fast-reverse controls on the LG BD670 remote control to cause the thing to fast-foward and fast-backward through the .mp4 file. That is the good news. The bad news is that the .mp4 file was about 1.7 times the size of the original .vob file! Why? What gives? I really don't understand this. Isn't MPEG4 supposed to be *more* space efficient than the earlier MPEG2? Anyway, I still am looking for help here, and I would still like somebody to give me a good (or best) ffmpeg command line. I also tried using ffmpeg to convert to a .mkv file, but I must have screwed that up somehow, because the player refused to play the resulting .mkv file, even though it allegedly supports .mkv format. Regards, rfg From cehoyos at ag.or.at Tue Jul 17 23:41:14 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Jul 2012 21:41:14 +0000 (UTC) Subject: [FFmpeg-user] ffplay and vdpau? References: <7994806.91dkMOmlN7@mark> Message-ID: Markus Grabner icg.tugraz.at> writes: > Which command line options are required to use vdpau > when playing an mts video with ffplay? ffplay does not support VDPAU. Carl Eugen From cehoyos at ag.or.at Tue Jul 17 23:42:39 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Jul 2012 21:42:39 +0000 (UTC) Subject: [FFmpeg-user] cpu References: <5005AB62.9090505@gmail.com> Message-ID: focus television gmail.com> writes: > ffmpeg -i king.avi -profile:v baseline -level 30 \ > -c:v libx264 -b:v 512k -s 640x360 -r 25 \ > -c:a libfaac -b:a 64k -ar 44100 \ > -f:v flv \ > rtmp://localhost/live/teststream > and it is showing 100% usage > I see that in vlc it is show h264 and mpga audio . But still it accepts > the encoding and uses lot of cpu. > It i take out the codec or put copy it gives error in header... > ANy idea where i am wrong? At least add complete, uncut console output. Carl Eugen From ben at bbarker.co.uk Tue Jul 17 23:55:02 2012 From: ben at bbarker.co.uk (Ben Barker) Date: Tue, 17 Jul 2012 22:55:02 +0100 Subject: [FFmpeg-user] Problems parsing SDP file for RTP type 33 In-Reply-To: References: Message-ID: I have tried it with 0.8.3-4, which is the latest in the mint repositories This gives me a slightly different error: [mpeg2video @ 0x958f160] mpeg_decode_positinit() failure On Mon, Jul 16, 2012 at 8:51 AM, Roger Pack wrote: >> FFmpeg version git-b319052, Copyright (c) 2000-2011 the FFmpeg developers >> built on Aug 15 2011 16:42:18 with gcc 4.1.2 20070626 (Red Hat 4.1.2-14) > > Is the problem the same with newer builds of ffmpeg (i.e. latest trunk?) > 0r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ben at bbarker.co.uk Wed Jul 18 00:00:14 2012 From: ben at bbarker.co.uk (Ben Barker) Date: Tue, 17 Jul 2012 23:00:14 +0100 Subject: [FFmpeg-user] Problems parsing SDP file for RTP type 33 In-Reply-To: References: Message-ID: I tell a lie...it DOES throw the below error, repeatedly, however it also successfully joins the stream after some seconds! On Tue, Jul 17, 2012 at 10:55 PM, Ben Barker wrote: > I have tried it with 0.8.3-4, which is the latest in the mint repositories > > This gives me a slightly different error: > > > [mpeg2video @ 0x958f160] mpeg_decode_positinit() failure > > > > > On Mon, Jul 16, 2012 > at 8:51 AM, Roger Pack wrote: >>> FFmpeg version git-b319052, Copyright (c) 2000-2011 the FFmpeg developers >>> built on Aug 15 2011 16:42:18 with gcc 4.1.2 20070626 (Red Hat 4.1.2-14) >> >> Is the problem the same with newer builds of ffmpeg (i.e. latest trunk?) >> 0r >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user From grabner at icg.tugraz.at Wed Jul 18 00:10:26 2012 From: grabner at icg.tugraz.at (Markus Grabner) Date: Wed, 18 Jul 2012 00:10:26 +0200 Subject: [FFmpeg-user] ffplay and vdpau? In-Reply-To: References: <7994806.91dkMOmlN7@mark> Message-ID: <4200948.drYuVO4361@mark> On Tuesday 17 July 2012 21:41:14 Carl Eugen Hoyos wrote: > Markus Grabner icg.tugraz.at> writes: > > Which command line options are required to use vdpau > > when playing an mts video with ffplay? > > ffplay does not support VDPAU. What a pity :-( I was looking for a simple way to demonstrate vdpau usage and intended to debug into ffplay to find out how vdpau is used. I probably have to change my plans... But libavcodec supports vdpau, right? What would be the next simplest way to use vdpau? Maybe mplayer? Thanks & kind regards, Markus -- Markus Grabner Institute for Computer Graphics and Vision Graz University of Technology, Inffeldgasse 16a/II, 8010 Graz, Austria WWW: http://www.icg.tugraz.at/Members/grabner From h.reindl at thelounge.net Wed Jul 18 01:02:29 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 18 Jul 2012 01:02:29 +0200 Subject: [FFmpeg-user] ffmpeg-0.10.4 does not build on recent Fedora 17 Message-ID: <5005EF05.3070108@thelounge.net> has anybody an idea what the errors below means? interesting that here is running a self-built ffmpeg from the same source tarball and i am currently out of ideas which other update in the past weeks may cause the change :-( ffmpeg-libs-0.10.4-3.fc17.20120612.rh.x86_64 ffmpeg-compat-0.6.6-1.fc17.x86_64 ffmpeg-0.10.4-3.fc17.20120612.rh.x86_64 _________________________________ currently configure from my RPM-SPEC (also unchanged since a longer time) %global ff_configure \ ../configure \\\ --prefix=%{_prefix} \\\ --bindir=%{_bindir} \\\ --datadir=%{_datadir}/ffmpeg \\\ --incdir=%{_includedir}/ffmpeg \\\ --libdir=%{_libdir} \\\ --mandir=%{_mandir} \\\ --arch=%{_target_cpu} \\\ --extra-cflags="-O3 -march=corei7 -mtune=corei7 -mmmx -msse2 -msse3 -msse4.1 -msse4.2 -fopenmp -mfpmath=sse -fsta ck-protector --param=ssp-buffer-size=4 -pipe -D_FORTIFY_SOURCE=2 -fexceptions" \\\ --extra-version=thelounge.net \\\ --enable-nonfree \\\ --enable-gpl \\\ --enable-version3 \\\ --enable-libopencore-amrnb \\\ --enable-libopencore-amrwb \\\ --enable-libdirac \\\ --enable-libfaac \\\ --enable-libgsm \\\ --enable-libmp3lame \\\ --enable-libopenjpeg \\\ --enable-libschroedinger \\\ --enable-libtheora \\\ --enable-libvorbis \\\ --enable-libx264 \\\ --enable-libxvid \\\ --enable-libvpx \\\ --enable-librtmp \\\ --enable-avfilter \\\ --enable-postproc \\\ --enable-swscale \\\ --enable-bzlib \\\ --enable-zlib \\\ --enable-libfreetype \\\ --enable-pthreads \\\ --enable-fastdiv \\\ --enable-pic \\\ --enable-libopencv \\\ --enable-shared \\\ --disable-libspeex \\\ --disable-vdpau \\\ --disable-vaapi \\\ --disable-hwaccels \\\ --disable-static \\\ --disable-libdc1394 \\\ --disable-devices \\\ --disable-amd3dnow \\\ --disable-amd3dnowext \\\ --disable-protocol=gopher \\\ --disable-debug _________________________________ In file included from /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:82:0: /usr/include/libcrystalhd/bc_dts_types.h:64:1: error: unknown type name 'bool' In file included from /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:84:0: /usr/include/libcrystalhd/libcrystalhd_if.h:149:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:177:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:215:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:255:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:300:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:339:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:371:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:402:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:452:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:486:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:522:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:569:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:604:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:635:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:666:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:695:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:726:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:757:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:786:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:829:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:878:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:908:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:954:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:990:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1031:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1068:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1104:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1138:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1170:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1198:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1228:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1265:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1298:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1329:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1363:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1393:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1423:2: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1451:2: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1478:5: error: unknown type name 'HANDLE' /usr/include/libcrystalhd/libcrystalhd_if.h:1507:5: error: unknown type name 'HANDLE' /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:125:5: error: unknown type name 'HANDLE' /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:156:7: warning: missing braces around initializer [-Wmissing-braces] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:156:7: warning: (near initialization for 'options[0].default_val') [-Wmissing-braces] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'flush': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:330:5: error: implicit declaration of function 'DtsFlushInput' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'uninit': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:337:5: error: unknown type name 'HANDLE' /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:340:5: error: implicit declaration of function 'DtsStopDecoder' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:341:5: error: implicit declaration of function 'DtsCloseDecoder' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:342:5: error: implicit declaration of function 'DtsDeviceClose' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'init': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:386:24: error: 'FALSE' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:386:24: note: each undeclared identifier is reported only once for each function it appears in /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:387:24: error: 'TRUE' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:388:37: error: 'vdecFrameRate59_94' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:400:21: error: 'vdecRESOLUTION_1080p23_976' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:469:5: error: implicit declaration of function 'DtsDeviceOpen' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:475:5: error: implicit declaration of function 'DtsCrystalHDVersion' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:490:5: error: implicit declaration of function 'DtsSetInputFormat' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:496:5: error: implicit declaration of function 'DtsOpenDecoder' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:502:5: error: implicit declaration of function 'DtsSetColorSpace' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:507:5: error: implicit declaration of function 'DtsStartDecoder' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:512:5: error: implicit declaration of function 'DtsStartCapture' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'copy_frame': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:549:53: error: 'VDEC_FLAG_BOTTOMFIELD' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:551:55: error: 'VDEC_FLAG_BOTTOM_FIRST' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:584:5: error: implicit declaration of function 'DtsGetDriverStatus' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:608:50: error: 'VDEC_FLAG_UNKNOWN_SRC' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:626:43: error: 'VDEC_FLAG_INTERLACED_SRC' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'receive_frame': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:735:5: error: unknown type name 'HANDLE' /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:740:5: error: implicit declaration of function 'DtsProcOutputNoCopy' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:762:17: error: implicit declaration of function 'DtsReleaseOutputBuffs' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:762:50: error: 'FALSE' undeclared (first use in this function) /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'decode': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:818:5: error: unknown type name 'HANDLE' /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:843:9: error: implicit declaration of function 'DtsTxFreeSize' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:906:13: error: implicit declaration of function 'DtsProcInput' [-Werror=implicit-function-declaration] /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'copy_frame': /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:723:1: warning: control reaches end of non-void function [-Wreturn-type] cc1: some warnings being treated as errors make: *** [libavcodec/crystalhd.o] Error 1 make: *** Waiting for unfinished jobs.... Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.aJk2gs (%build) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From spartman27 at itctel.com Wed Jul 18 01:14:37 2012 From: spartman27 at itctel.com (Steven Spartz) Date: Tue, 17 Jul 2012 18:14:37 -0500 Subject: [FFmpeg-user] New fellow with questions about ffmpeg to justin.tv Message-ID: <5005F1DD.1000303@itctel.com> I did accidentally post this into the server forum first so sorry if this shows up as a double post. Have been working with ffmpeg on my HP dc5800 desktop running Trisquel 5.5 and have encountered a problem. What I am doing is this, running video and audio from a Logitech C270 USB camera through ffmpeg to justin.tv If I run just the video to the justin.tv page the stream will work flawlessly for as long as I wish. However if I try to add audio to the stream it will fail with the following error: DTS 411312205 next 411318601 st:0 invalid dropping and PTS 411312205 next 411318601 invalid dropping st:0 The stream will usually fail within 5 minutes or less. Here is the command I am issuing to the server: ffmpeg -f alsa -ac 1 -i pulse -f video4linux2 -i /dev/video0 -s 1024x576 -vf drawtext="fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf: text='\%D \%r': fontcolor=white at 1.0: x=30: y=440: fontsize=30: box=1: boxcolor=black at 1.0" -vcodec libx264 -acodec libmp3lame -ab 28k -ar 22050 -vb 350k -f flv rtmp://live.justin.tv/app/live_ Here is my FFMPEG info ffmpeg -version ffmpeg version git-2012-07-03-d8013f3 built on Jul 3 2012 18:16:27 with gcc 4.6.1 configuration: --enable-gpl --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 32.100 / 54. 32.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 And a Sample of output data DTS 411032947, next:411314602 st:0 invalid dropping PTS 411032947, next:411314602 invalid dropping st:0 DTS 411127066, next:411315935 st:0 invalid dropping PTS 411127066, next:411315935 invalid dropping st:0 DTS 411220151, next:411317268 st:0 invalid dropping PTS 411220151, next:411317268 invalid dropping st:0 DTS 411312205, next:411318601 st:0 invalid dropping PTS 411312205, next:411318601 invalid dropping st:0 Trying to remove 576 samples, but que emptytime=00:17:12.68 bitrate= 347.4kbits/s frame= 1660 fps=1.2 q=16675933.0 Lsize= 50746kB time=00:19:14.90 bitrate= 360.0kbits/s video:49371kB audio:1115kB subtitle:0 global headers:0kB muxing overhead 0.515765% [libx264 @ 0xa92c840] frame I:7 Avg QP:14.20 size:161374 [libx264 @ 0xa92c840] frame P:422 Avg QP:15.51 size: 65734 [libx264 @ 0xa92c840] frame B:1231 Avg QP:21.55 size: 17617 [libx264 @ 0xa92c840] consecutive B-frames: 0.8% 0.5% 1.6% 97.1% [libx264 @ 0xa92c840] mb I I16..4: 14.4% 41.1% 44.5% [libx264 @ 0xa92c840] mb P I16..4: 0.8% 3.8% 0.9% P16..4: 33.2% 20.0% 20.7% 0.0% 0.0% skip:20.7% [libx264 @ 0xa92c840] mb B I16..4: 0.1% 1.2% 0.2% B16..8: 24.1% 4.9% 2.6% direct:14.2% skip:52.8% L0:46.3% L1:35.0% BI:18.8% [libx264 @ 0xa92c840] final ratefactor: 15.59 [libx264 @ 0xa92c840] 8x8 transform intra:69.0% inter:50.2% [libx264 @ 0xa92c840] coded y,uvDC,uvAC intra: 91.3% 94.5% 91.1% inter: 28.7% 44.7% 29.8% [libx264 @ 0xa92c840] i16 v,h,dc,p: 20% 23% 9% 47% [libx264 @ 0xa92c840] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 33% 27% 4% 3% 2% 5% 4% 8% [libx264 @ 0xa92c840] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 37% 13% 5% 6% 4% 7% 5% 7% [libx264 @ 0xa92c840] i8c dc,h,v,p: 65% 16% 12% 8% [libx264 @ 0xa92c840] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0xa92c840] ref P L0: 35.4% 4.0% 41.9% 18.7% [libx264 @ 0xa92c840] ref B L0: 56.5% 34.0% 9.5% [libx264 @ 0xa92c840] ref B L1: 86.3% 13.7% [libx264 @ 0xa92c840] kb/s:320.22 I hope this helps. I look forward to hearing from you as to what I can do to correct this. From h.reindl at thelounge.net Wed Jul 18 01:18:15 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 18 Jul 2012 01:18:15 +0200 Subject: [FFmpeg-user] ffmpeg-0.10.4 does not build on recent Fedora 17 In-Reply-To: <5005EF05.3070108@thelounge.net> References: <5005EF05.3070108@thelounge.net> Message-ID: <5005F2B7.4060200@thelounge.net> forget it, i have no idea what pulled the crystalhd packages on my F17 test-vm, nor what they are nor why they are still F14-packages - strange fact is that they are not installed on any other of my machines and without it still builds fine as all my ffmpeg-autotests for different formats are OK Jun 12 19:55:38 Installed: libcrystalhd-3.5.1-1.fc14.x86_64 Jun 12 19:55:38 Installed: crystalhd-firmware-3.5.1-1.fc14.noarch Jun 12 19:55:39 Installed: libcrystalhd-devel-3.5.1-1.fc14.x86_64 Jul 18 01:09:08 Erased: libcrystalhd-devel-3.5.1-1.fc14.x86_64 Jul 18 01:09:08 Erased: crystalhd-firmware-3.5.1-1.fc14.noarch Jul 18 01:09:08 Erased: libcrystalhd-3.5.1-1.fc14.x86_64 Am 18.07.2012 01:02, schrieb Reindl Harald: > has anybody an idea what the errors below means? > > interesting that here is running a self-built ffmpeg from the same > source tarball and i am currently out of ideas which other update > in the past weeks may cause the change :-( > > ffmpeg-libs-0.10.4-3.fc17.20120612.rh.x86_64 > ffmpeg-compat-0.6.6-1.fc17.x86_64 > ffmpeg-0.10.4-3.fc17.20120612.rh.x86_64 > _________________________________ > > currently configure from my RPM-SPEC (also unchanged since a longer time) > > %global ff_configure \ > ../configure \\\ > --prefix=%{_prefix} \\\ > --bindir=%{_bindir} \\\ > --datadir=%{_datadir}/ffmpeg \\\ > --incdir=%{_includedir}/ffmpeg \\\ > --libdir=%{_libdir} \\\ > --mandir=%{_mandir} \\\ > --arch=%{_target_cpu} \\\ > --extra-cflags="-O3 -march=corei7 -mtune=corei7 -mmmx -msse2 -msse3 -msse4.1 -msse4.2 -fopenmp -mfpmath=sse -fsta > ck-protector --param=ssp-buffer-size=4 -pipe -D_FORTIFY_SOURCE=2 -fexceptions" \\\ > --extra-version=thelounge.net \\\ > --enable-nonfree \\\ > --enable-gpl \\\ > --enable-version3 \\\ > --enable-libopencore-amrnb \\\ > --enable-libopencore-amrwb \\\ > --enable-libdirac \\\ > --enable-libfaac \\\ > --enable-libgsm \\\ > --enable-libmp3lame \\\ > --enable-libopenjpeg \\\ > --enable-libschroedinger \\\ > --enable-libtheora \\\ > --enable-libvorbis \\\ > --enable-libx264 \\\ > --enable-libxvid \\\ > --enable-libvpx \\\ > --enable-librtmp \\\ > --enable-avfilter \\\ > --enable-postproc \\\ > --enable-swscale \\\ > --enable-bzlib \\\ > --enable-zlib \\\ > --enable-libfreetype \\\ > --enable-pthreads \\\ > --enable-fastdiv \\\ > --enable-pic \\\ > --enable-libopencv \\\ > --enable-shared \\\ > --disable-libspeex \\\ > --disable-vdpau \\\ > --disable-vaapi \\\ > --disable-hwaccels \\\ > --disable-static \\\ > --disable-libdc1394 \\\ > --disable-devices \\\ > --disable-amd3dnow \\\ > --disable-amd3dnowext \\\ > --disable-protocol=gopher \\\ > --disable-debug > _________________________________ > > In file included from /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:82:0: > /usr/include/libcrystalhd/bc_dts_types.h:64:1: error: unknown type name 'bool' > In file included from /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:84:0: > /usr/include/libcrystalhd/libcrystalhd_if.h:149:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:177:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:215:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:255:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:300:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:339:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:371:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:402:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:452:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:486:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:522:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:569:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:604:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:635:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:666:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:695:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:726:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:757:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:786:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:829:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:878:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:908:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:954:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:990:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1031:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1068:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1104:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1138:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1170:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1198:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1228:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1265:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1298:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1329:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1363:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1393:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1423:2: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1451:2: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1478:5: error: unknown type name 'HANDLE' > /usr/include/libcrystalhd/libcrystalhd_if.h:1507:5: error: unknown type name 'HANDLE' > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:125:5: error: unknown type name 'HANDLE' > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:156:7: warning: missing braces around > initializer [-Wmissing-braces] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:156:7: warning: (near initialization for > 'options[0].default_val') [-Wmissing-braces] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'flush': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:330:5: error: implicit declaration of function > 'DtsFlushInput' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'uninit': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:337:5: error: unknown type name 'HANDLE' > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:340:5: error: implicit declaration of function > 'DtsStopDecoder' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:341:5: error: implicit declaration of function > 'DtsCloseDecoder' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:342:5: error: implicit declaration of function > 'DtsDeviceClose' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'init': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:386:24: error: 'FALSE' undeclared (first use in > this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:386:24: note: each undeclared identifier is > reported only once for each function it appears in > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:387:24: error: 'TRUE' undeclared (first use in > this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:388:37: error: 'vdecFrameRate59_94' undeclared > (first use in this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:400:21: error: 'vdecRESOLUTION_1080p23_976' > undeclared (first use in this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:469:5: error: implicit declaration of function > 'DtsDeviceOpen' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:475:5: error: implicit declaration of function > 'DtsCrystalHDVersion' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:490:5: error: implicit declaration of function > 'DtsSetInputFormat' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:496:5: error: implicit declaration of function > 'DtsOpenDecoder' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:502:5: error: implicit declaration of function > 'DtsSetColorSpace' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:507:5: error: implicit declaration of function > 'DtsStartDecoder' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:512:5: error: implicit declaration of function > 'DtsStartCapture' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'copy_frame': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:549:53: error: 'VDEC_FLAG_BOTTOMFIELD' > undeclared (first use in this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:551:55: error: 'VDEC_FLAG_BOTTOM_FIRST' > undeclared (first use in this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:584:5: error: implicit declaration of function > 'DtsGetDriverStatus' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:608:50: error: 'VDEC_FLAG_UNKNOWN_SRC' > undeclared (first use in this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:626:43: error: 'VDEC_FLAG_INTERLACED_SRC' > undeclared (first use in this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'receive_frame': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:735:5: error: unknown type name 'HANDLE' > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:740:5: error: implicit declaration of function > 'DtsProcOutputNoCopy' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:762:17: error: implicit declaration of function > 'DtsReleaseOutputBuffs' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:762:50: error: 'FALSE' undeclared (first use in > this function) > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'decode': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:818:5: error: unknown type name 'HANDLE' > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:843:9: error: implicit declaration of function > 'DtsTxFreeSize' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:906:13: error: implicit declaration of function > 'DtsProcInput' [-Werror=implicit-function-declaration] > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c: In function 'copy_frame': > /home/builduser/rpmbuild/BUILD/ffmpeg-0.10.4/libavcodec/crystalhd.c:723:1: warning: control reaches end of non-void > function [-Wreturn-type] > cc1: some warnings being treated as errors > make: *** [libavcodec/crystalhd.o] Error 1 > make: *** Waiting for unfinished jobs.... > Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.aJk2gs (%build) > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From hans at guardianproject.info Wed Jul 18 02:33:12 2012 From: hans at guardianproject.info (Hans-Christoph Steiner) Date: Tue, 17 Jul 2012 20:33:12 -0400 Subject: [FFmpeg-user] using an audio+video filter at the same time Message-ID: <50060448.5060302@guardianproject.info> I'm trying to run an audio and video filter at the same time on a single file, and am failing. anyone have an example of how to do this? I've tried the lavfi approach and -filter:a and -vf I'm using ffmpeg 0.10.4 on Linux Mint, built from source since I'm trying to use our two custom filters af_aredact and vf_redact. Here's my build info: configuration: --target-os=linux --enable-runtime-cpudetect --enable-pic --disable-shared --enable-static --enable-small --enable-version3 --enable-gpl --enable-memalign-hack --disable-doc --enable-yasm --enable-decoder=mjpeg --enable-decoder=rawvideo --enable-encoder=libx264 --enable-muxer=mp4 --enable-demuxer=image2 --enable-demuxer=mjpeg --enable-demuxer=mp4 --enable-demuxer=mov --enable-parser=mjpeg --enable-filter=buffer --enable-filter=buffersink --enable-filter=drawbox --enable-filter=overlay --enable-filter=redact --enable-protocol=file --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --extra-cflags=-I../x264 --extra-ldflags=-L../x264 This works for the video filter and leaves the audio untouched: ./ffmpeg/ffmpeg -y -i test.mp4 \ -filter:v 'redact=ffmpeg/redact_unsort.txt' \ -acodec copy \ output-test-vf_redact.mp4 This runs audio filter properly, but strips the video entirely: ./ffmpeg/ffmpeg \ -f lavfi -i 'amovie=test.mp4,aredact=ffmpeg/aredact_unsort.txt' \ -b:a 32k -strict experimental \ -acodec aac -vcodec copy \ -y output-test-af_aredact.mp4 This runs the video filter fine, but strips the audio entirely: ./ffmpeg/ffmpeg \ -f lavfi -i 'amovie=test.mp4,aredact=ffmpeg/aredact_unsort.txt' \ -f lavfi -i 'movie=test.mp4,redact=ffmpeg/redact_unsort.txt' \ -acodec aac -b:a 32k -strict experimental \ -vcodec libx264 -b:v 1000k -an -f mp4 \ -y output-test-redact.mp4 .hc From highgod0401 at gmail.com Wed Jul 18 04:48:56 2012 From: highgod0401 at gmail.com (Wei Gao) Date: Wed, 18 Jul 2012 10:48:56 +0800 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. Message-ID: From highgod0401 at gmail.com Wed Jul 18 04:49:09 2012 From: highgod0401 at gmail.com (Wei Gao) Date: Wed, 18 Jul 2012 10:49:09 +0800 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil.Thanks. Message-ID: From 550399108 at qq.com Wed Jul 18 05:58:02 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Wed, 18 Jul 2012 11:58:02 +0800 Subject: [FFmpeg-user] questions about audio filter "atempo" Message-ID: Why did I get a "Segmentation fault"? I used this command line: ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf "movie=2.jpg,scale=100:100[logo];[in][logo]overlay=5:5[out]" -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv it's output: ffmpeg version git-2012-07-18-56ae592 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 18 2012 11:12:33 with gcc 4.4.3 configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libtheora --enable-shared --enable-ffplay --enable-libxvid --enable-libvpx 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 1941-02-22 02:53:21 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 1941-02-22 02:53:21 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 1941-02-22 02:53:27 handler_name : GPAC ISO Audio Handler Please use -b:a or -b:v, -b is ambiguous [libx264 @ 0x99efa00] --psnr used with psy on: results will be invalid! [libx264 @ 0x99efa00] --tune psnr should be used if attempting to benchmark psnr! [libx264 @ 0x99efa00] using SAR=1/1 [libx264 @ 0x99efa00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 [libx264 @ 0x99efa00] profile High, level 2.1 [libx264 @ 0x99efa00] 264 - core 125 r2 5f615f7 - 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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'youku.mp4.flv': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 encoder : Lavf54.17.100 Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc Metadata: creation_time : 1941-02-22 02:53:21 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s Metadata: creation_time : 1941-02-22 02:53:27 handler_name : GPAC ISO Audio Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libfaac) Press [q] to stop, [?] for help Segmentation fault How to use the audio filter "atempo"? But when I tried this on a amd64 server ,I succeeded From pkoshevoy at gmail.com Wed Jul 18 07:35:52 2012 From: pkoshevoy at gmail.com (Pavel Koshevoy) Date: Tue, 17 Jul 2012 23:35:52 -0600 Subject: [FFmpeg-user] questions about audio filter "atempo" In-Reply-To: References: Message-ID: <50064B38.4080604@gmail.com> On 7/17/2012 9:58 PM, ??? wrote: > Why did I get a "Segmentation fault"? > I used this command line: > ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf "movie=2.jpg,scale=100:100[logo];[in][logo]overlay=5:5[out]" -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv > it's output: A stack trace would be helpful. When you set atempo=2 you double the audio playback rate and cut down the soundtrack duration in half. However, this does not affect the video track. You need to adjust the video track rate to match the audio track. I haven't tried this myself, but you probably need to use setpts filter for the video track (try setpts=0.5*PTS). http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video http://ffmpeg.org/ffmpeg.html#setpts Pavel. From cehoyos at ag.or.at Wed Jul 18 07:55:03 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Jul 2012 05:55:03 +0000 (UTC) Subject: [FFmpeg-user] using an audio+video filter at the same time References: <50060448.5060302@guardianproject.info> Message-ID: Hans-Christoph Steiner guardianproject.info> writes: > I'm using ffmpeg 0.10.4 on Linux Mint, built from source since I'm > trying to use our two custom filters af_aredact and vf_redact. I suspect you have to update to current git head. Carl Eugen From cehoyos at ag.or.at Wed Jul 18 08:04:17 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Jul 2012 06:04:17 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg-0.10.4 does not build on recent Fedora 17 References: <5005EF05.3070108@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > %global ff_configure \ > ../configure \\\ Just a few random comments: > --prefix=%{_prefix} \\\ > --bindir=%{_bindir} \\\ > --datadir=%{_datadir}/ffmpeg \\\ > --incdir=%{_includedir}/ffmpeg \\\ > --libdir=%{_libdir} \\\ > --mandir=%{_mandir} \\\ > --arch=%{_target_cpu} \\\ > --extra-cflags="-O3 -march=corei7 -mtune=corei7 -mmmx > -msse2 -msse3 -msse4.1 -msse4.2 -fopenmp -mfpmath=sse > -fstack-protector --param=ssp-buffer-size=4 -pipe > -D_FORTIFY_SOURCE=2 -fexceptions" \\\ I am really curious: Has any of these options a positive effect? If yes, I suspect they should be made default. [...] > --enable-avfilter \\\ > --enable-postproc \\\ > --enable-swscale \\\ > --enable-bzlib \\\ > --enable-zlib \\\ These should be default and are therefore unneeded. > --enable-libfreetype \\\ > --enable-pthreads \\\ Default (or am I wrong?) > --enable-fastdiv \\\ > --enable-pic \\\ If one of these two is needed (and good), I would suspect a bug. Could you elaborate? > --enable-libopencv \\\ > --enable-shared \\\ > --disable-libspeex \\\ Default > --disable-vdpau \\\ > --disable-vaapi \\\ > --disable-hwaccels \\\ > --disable-static \\\ > --disable-libdc1394 \\\ Default > --disable-devices \\\ > --disable-amd3dnow \\\ > --disable-amd3dnowext \\\ Are you distributing the binaries? > --disable-protocol=gopher \\\ > --disable-debug Carl Eugen From cehoyos at ag.or.at Wed Jul 18 08:05:54 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Jul 2012 06:05:54 +0000 (UTC) Subject: [FFmpeg-user] ffplay and vdpau? References: <7994806.91dkMOmlN7@mark> <4200948.drYuVO4361@mark> Message-ID: Markus Grabner icg.tugraz.at> writes: > But libavcodec supports vdpau, right? What would be the > next simplest way to use vdpau? Maybe mplayer? Afaict, MPlayer is the standard VDPAU testing application. (The VDPAU support in MPlayer was mostly written by Nvidia.) Carl Eugen From cehoyos at ag.or.at Wed Jul 18 08:08:36 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Jul 2012 06:08:36 +0000 (UTC) Subject: [FFmpeg-user] questions about audio filter "atempo" References: Message-ID: ??? <550399108 qq.com> writes: > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (aac -> libfaac) > Press [q] to stop, [?] for help > Segmentation fault Crashes are always important bugs, but without a backtrace - see http://ffmpeg.org/bugreports.html - they are unlikely to get fixed. Does the crash also happen if you use -vcodec mpeg4 -strict -experimental -acodec aac ? Does it also happen with -an or -vn? Carl Eugen From chaupv79 at hotmail.com Wed Jul 18 08:23:16 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Wed, 18 Jul 2012 06:23:16 +0000 Subject: [FFmpeg-user] SDL and Video device - swscaler - 640x360 - 0x0 is invalid scaling dimension Message-ID: Hi Everybody, I compiled and use ffmpeg for tutorial02 in Dranger guideline: http://dranger.com/ffmpeg/tutorial02.html it requires SDL, then I installed SDL and set display: export DISPLAY=:0.0 but when I play mpeg file: [root at CENT6 working]# ./tutorial02 advertisement.mpg => output: [mpeg @ 0x9265c80] max_analyze_duration 5000000 reached at 5005000 Input #0, mpeg, from 'advertisement.mpg': Duration: 00:03:36.36, start: 0.989978, bitrate: 458 kb/s Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s [swscaler @ 0x93b9540] 640x360 -> 0x0 is invalid scaling dimension Cannot initialize the conversion context! Could you show me what happen here? Thank You, Chau Pham From pkoshevoy at gmail.com Wed Jul 18 08:33:19 2012 From: pkoshevoy at gmail.com (Pavel Koshevoy) Date: Wed, 18 Jul 2012 00:33:19 -0600 Subject: [FFmpeg-user] questions about audio filter "atempo" In-Reply-To: <50064B38.4080604@gmail.com> References: <50064B38.4080604@gmail.com> Message-ID: <500658AF.8050406@gmail.com> On 7/17/2012 11:35 PM, Pavel Koshevoy wrote: > On 7/17/2012 9:58 PM, ??? wrote: >> Why did I get a "Segmentation fault"? >> I used this command line: >> ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r >> 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 >> -ac 2 -vf >> "movie=2.jpg,scale=100:100[logo];[in][logo]overlay=5:5[out]" -af >> atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv >> it's output: > > A stack trace would be helpful. > > When you set atempo=2 you double the audio playback rate and cut down > the soundtrack duration in half. However, this does not affect the > video track. You need to adjust the video track rate to match the > audio track. > > I haven't tried this myself, but you probably need to use setpts > filter for the video track (try setpts=0.5*PTS). > > http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video > > http://ffmpeg.org/ffmpeg.html#setpts > > Pavel. > I tried and could not reproduce the segfault with zeranoe 32-bit static ffmpeg build from 20120716. I tried without setpts first: ffmpeg -y -i test2.avi -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libvorbis -ab 64k -ar 44100 -ac 2 -af atempo=2 test2.mkv This did not crash, but I could see the memory footprint of ffmpeg climb from 94MB to 146MB. Without setpts audio/video were out of sync, obviously. I suspect the muxer buffers up frames to compensate for mismatched audio/video PTS rates. If the video is long and the frames are large this could cause and out-of-memory error. In my test the source file was 24min 30sec long. Anyway, when I added -vf "setpts=0.5*PTS" I did not see the crash either, audio/video came out in sync, and ffmpeg memory footprint stayed pretty flat at 94-95MB. Pavel. From nicolas.george at normalesup.org Wed Jul 18 10:22:23 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 18 Jul 2012 10:22:23 +0200 Subject: [FFmpeg-user] using an audio+video filter at the same time In-Reply-To: <50060448.5060302@guardianproject.info> References: <50060448.5060302@guardianproject.info> Message-ID: <20120718082223.GA7251@phare.normalesup.org> Le decadi 30 messidor, an CCXX, Hans-Christoph Steiner a ?crit?: > I'm using ffmpeg 0.10.4 on Linux Mint, built from source since I'm If you build from source, you should certainly use Git head. > trying to use our two custom filters af_aredact and vf_redact. What do they do? If they are useful, submitting them to the devel mailing-list would be nice, and would probably also reduce the maintenance burden for you. > > Here's my build info: > configuration: --target-os=linux --enable-runtime-cpudetect > --enable-pic --disable-shared --enable-static --enable-small > --enable-version3 --enable-gpl --enable-memalign-hack --disable-doc > --enable-yasm --enable-decoder=mjpeg --enable-decoder=rawvideo > --enable-encoder=libx264 --enable-muxer=mp4 --enable-demuxer=image2 > --enable-demuxer=mjpeg --enable-demuxer=mp4 --enable-demuxer=mov > --enable-parser=mjpeg --enable-filter=buffer --enable-filter=buffersink > --enable-filter=drawbox --enable-filter=overlay --enable-filter=redact > --enable-protocol=file --enable-hwaccels --enable-ffmpeg I do not think you need all these --enable since you did not --disable them before. > This works for the video filter and leaves the audio untouched: > ./ffmpeg/ffmpeg -y -i test.mp4 \ > -filter:v 'redact=ffmpeg/redact_unsort.txt' \ > -acodec copy \ > output-test-vf_redact.mp4 Normal. > This runs audio filter properly, but strips the video entirely: > ./ffmpeg/ffmpeg \ > -f lavfi -i 'amovie=test.mp4,aredact=ffmpeg/aredact_unsort.txt' \ > -b:a 32k -strict experimental \ > -acodec aac -vcodec copy \ > -y output-test-af_aredact.mp4 Normal: amovie only reads audio, that is what the "a" means. Also, note that the aac encoder has very poor quality for bitrate, that is the reason "-strict experimental" is needed. > This runs the video filter fine, but strips the audio entirely: > ./ffmpeg/ffmpeg \ > -f lavfi -i 'amovie=test.mp4,aredact=ffmpeg/aredact_unsort.txt' \ > -f lavfi -i 'movie=test.mp4,redact=ffmpeg/redact_unsort.txt' \ > -acodec aac -b:a 32k -strict experimental \ > -vcodec libx264 -b:v 1000k -an -f mp4 \ > -y output-test-redact.mp4 That is what "-an" does, I guess it crept there during some testing and you forgot to remove it. Also, you should consider using -filter_complex for that: using movie and amovie will result in the file being read twice. 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 nicolas.george at normalesup.org Wed Jul 18 10:43:23 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 18 Jul 2012 10:43:23 +0200 Subject: [FFmpeg-user] SDL and Video device - swscaler - 640x360 - 0x0 is invalid scaling dimension In-Reply-To: References: Message-ID: <20120718084323.GB7251@phare.normalesup.org> Le primidi 1er thermidor, an CCXX, Chau Pham a ?crit?: > > Hi Everybody, > > I compiled and use ffmpeg for tutorial02 in Dranger guideline: > http://dranger.com/ffmpeg/tutorial02.html This tutorial is grossly obsolete with regard to ffmpeg API. It uses img_convert, which has been completely removed more than three years ago and was already deprecated three years before that. It also uses avcodec_decode_video, that was also deprecated three years ago. > it requires SDL, then I installed SDL and set display: > > export DISPLAY=:0.0 > > but when I play mpeg file: > > [root at CENT6 working]# ./tutorial02 advertisement.mpg This is not related to your problem, but you should know that working like that with the root account is usually a very bad idea. That is also the reason you need to set the display. 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 focustelev at gmail.com Wed Jul 18 12:06:56 2012 From: focustelev at gmail.com (focus television) Date: Wed, 18 Jul 2012 11:06:56 +0100 Subject: [FFmpeg-user] ffmpeg background Message-ID: <50068AC0.6060603@gmail.com> Hi, Can u tell me how to run the ffmpeg in background. I dont want to stop the play when i close my shell. Can i do something that keeps the process alive even if i close the shell. I am new to linux and need to use ssl login. Can I make a play list so that the videos keep on playing for live channels for demo as live channel? I created a .sh file with same commands like ffmpeg 5 times but not sure if it is the right way George From h.reindl at thelounge.net Wed Jul 18 12:17:35 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 18 Jul 2012 12:17:35 +0200 Subject: [FFmpeg-user] ffmpeg-0.10.4 does not build on recent Fedora 17 In-Reply-To: References: <5005EF05.3070108@thelounge.net> Message-ID: <50068D3F.50806@thelounge.net> Am 18.07.2012 08:04, schrieb Carl Eugen Hoyos: > Reindl Harald thelounge.net> writes: > >> %global ff_configure \ >> ../configure \\\ > > Just a few random comments: > >> --prefix=%{_prefix} \\\ >> --bindir=%{_bindir} \\\ >> --datadir=%{_datadir}/ffmpeg \\\ >> --incdir=%{_includedir}/ffmpeg \\\ >> --libdir=%{_libdir} \\\ >> --mandir=%{_mandir} \\\ >> --arch=%{_target_cpu} \\\ > >> --extra-cflags="-O3 -march=corei7 -mtune=corei7 -mmmx >> -msse2 -msse3 -msse4.1 -msse4.2 -fopenmp -mfpmath=sse >> -fstack-protector --param=ssp-buffer-size=4 -pipe >> -D_FORTIFY_SOURCE=2 -fexceptions" \\\ > > I am really curious: > Has any of these options a positive effect? > If yes, I suspect they should be made default not benchmarked, but i try to build software with optimized flags for my hardware "-fstack-protector --param=ssp-buffer-size=4" is not for performance it is for security and fedora default i doubt it is not a good DEFAULT optimize for corei7 :-) >> --enable-avfilter \\\ >> --enable-postproc \\\ >> --enable-swscale \\\ >> --enable-bzlib \\\ >> --enable-zlib \\\ > > These should be default and are therefore unneeded. i know but prefer explicit options >> --enable-libfreetype \\\ >> --enable-pthreads \\\ > Default (or am I wrong?) maybe, se above >> --enable-fastdiv \\\ >> --enable-pic \\\ > > If one of these two is needed (and good), I would suspect a bug. > Could you elaborate? --enable-pic was needed here a long time ago and i see no reason to remove it Regards Harry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From 550399108 at qq.com Wed Jul 18 08:11:57 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Wed, 18 Jul 2012 14:11:57 +0800 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ICBxdWVzdGlvbnMgYWJvdXQgYXVk?= =?gb18030?q?io_filter_=22atempo=22?= Message-ID: Thank you ,Pavel : I tried the video filter "setpts" like this: ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv It's output: ffmpeg version git-2012-07-18-56ae592 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 18 2012 11:12:33 with gcc 4.4.3 configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libtheora --enable-shared --enable-ffplay --enable-libxvid --enable-libvpx 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 1941-02-22 02:53:21 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 1941-02-22 02:53:21 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 1941-02-22 02:53:27 handler_name : GPAC ISO Audio Handler Please use -b:a or -b:v, -b is ambiguous [libx264 @ 0x9867a00] --psnr used with psy on: results will be invalid! [libx264 @ 0x9867a00] --tune psnr should be used if attempting to benchmark psnr! [libx264 @ 0x9867a00] using SAR=1/1 [libx264 @ 0x9867a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 [libx264 @ 0x9867a00] profile High, level 2.1 [libx264 @ 0x9867a00] 264 - core 125 r2 5f615f7 - 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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'youku.mp4.flv': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 encoder : Lavf54.17.100 Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc Metadata: creation_time : 1941-02-22 02:53:21 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s Metadata: creation_time : 1941-02-22 02:53:27 handler_name : GPAC ISO Audio Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libfaac) Press [q] to stop, [?] for help Segmentation fault the same result as use -af atempo=2 only! How did you compile x264,ffmpeg on you server machine? Maybe I compiled wrong! ------------------ ???? ------------------ ???: "Pavel Koshevoy"; ????: 2012?7?18?(???) ??1:35 ???: "ffmpeg-user"; ??: Re: [FFmpeg-user] questions about audio filter "atempo" On 7/17/2012 9:58 PM, ??? wrote: > Why did I get a "Segmentation fault"? > I used this command line: > ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf "movie=2.jpg,scale=100:100[logo];[in][logo]overlay=5:5[out]" -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv > it's output: A stack trace would be helpful. When you set atempo=2 you double the audio playback rate and cut down the soundtrack duration in half. However, this does not affect the video track. You need to adjust the video track rate to match the audio track. I haven't tried this myself, but you probably need to use setpts filter for the video track (try setpts=0.5*PTS). http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video http://ffmpeg.org/ffmpeg.html#setpts Pavel. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Jul 18 13:39:44 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Jul 2012 11:39:44 +0000 (UTC) Subject: [FFmpeg-user] using an audio+video filter at the same time References: <50060448.5060302@guardianproject.info> <20120718082223.GA7251@phare.normalesup.org> Message-ID: Nicolas George normalesup.org> writes: > > trying to use our two custom filters af_aredact and vf_redact. > > What do they do? If they are useful, submitting them to the devel > mailing-list would be nice, and would probably also reduce the > maintenance burden for you. http://article.gmane.org/gmane.linux.debian.alioth.multimedia-maintainers/19401 The thread is a good example of the many lies the Debian maintainers are made to believe, it is sad that we have not been informed at the time about it;-( https://dev.guardianproject.info/attachments/48/vf_redact.c This filter unfortunately has a license issue afaict;-( Carl Eugen From ch.sureshkumar.24 at gmail.com Wed Jul 18 17:14:51 2012 From: ch.sureshkumar.24 at gmail.com (suresh kumar) Date: Wed, 18 Jul 2012 20:44:51 +0530 Subject: [FFmpeg-user] Regarding dts Message-ID: Hi, I would like know on how to get destination time stamp(dts) from encoded video frame. It will be appreciated if you help. From focustelev at gmail.com Wed Jul 18 18:02:37 2012 From: focustelev at gmail.com (focus television) Date: Wed, 18 Jul 2012 17:02:37 +0100 Subject: [FFmpeg-user] failing Message-ID: <5006DE1D.7070102@gmail.com> Hi, C:\Users\admin\Downloads\ffmpeg-20120708-git-299387e-win64-static\bin>ffmpeg -i "rtmp://cp106922.live.edgefcs.net/live/asianetnews at 53812 live=1" -acodec copy -v codec copy a.mp4 Can u pleasse lett me why it is failing while writing .. I can play and use it but it doesnt save Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted WriteN, RTMP send error 10093 (46 bytes) Any way to do this George From batguano999 at hotmail.com Wed Jul 18 18:24:36 2012 From: batguano999 at hotmail.com (bat guano) Date: Wed, 18 Jul 2012 16:24:36 +0000 Subject: [FFmpeg-user] failing In-Reply-To: <5006DE1D.7070102@gmail.com> References: <5006DE1D.7070102@gmail.com> Message-ID: ---------------------------------------- > Can u pleasse lett me why it is failing while writing .. I can play and > use it but it doesnt save > Could not write header for output file #0 (incorrect codec parameters > ?): Operation not permitted Hi Video codec used is VP6. Not permitted in mp4 container. Use different container, such as flv. ffmpeg -i "rtmp://cp106922.live.edgefcs.net/live/asianetnews at 53812 live=1" -c copy foofoo.flv General Complete name?????????? : foofoo.flv Format????????????????? : Flash Video File size?????????????? : 2.17 MiB Duration??????????????? : 30s 19ms Overall bit rate??????? : 606 Kbps Encoded date??????????? : 2012-07-18 17:16:15 Writing application???? : Lavf54.16.104 presetname????????????? : Custom videodevice???????????? : SAA7130 TV Card videokeyframe_frequency : 5 audiodevice???????????? : Realtek HD Audio Input audiochannels?????????? : 1 audioinputvolume??????? : 75 Video Format????????????????? : VP6 Codec ID??????????????? : 4 Duration??????????????? : 30s 5ms Bit rate??????????????? : 500 Kbps Width?????????????????? : 480 pixels Height????????????????? : 288 pixels Display aspect ratio??? : 1.667 Frame rate mode???????? : Constant Frame rate????????????? : 1 000.000 fps Bit depth?????????????? : 8 bits Bits/(Pixel*Frame)????? : 0.004 Stream size???????????? : 1.79 MiB (83%) Audio Format????????????????? : MPEG Audio Format version????????? : Version 2 Format profile????????? : Layer 3 Codec ID??????????????? : 2 Codec ID/Hint?????????? : MP3 Duration??????????????? : 30s 19ms Bit rate mode?????????? : Constant Bit rate??????????????? : 48.0 Kbps Channel(s)????????????? : 1 channel Sampling rate?????????? : 22.05 KHz Compression mode??????? : Lossy Stream size???????????? : 176 KiB (8%) From focustelev at gmail.com Wed Jul 18 18:43:17 2012 From: focustelev at gmail.com (focus television) Date: Wed, 18 Jul 2012 17:43:17 +0100 Subject: [FFmpeg-user] failing In-Reply-To: References: <5006DE1D.7070102@gmail.com> Message-ID: <5006E7A5.9030507@gmail.com> But if i want it h264 and aac audio what should i do? On 18-Jul-12 5:24 PM, bat guano wrote: > > > ---------------------------------------- > >> Can u pleasse lett me why it is failing while writing .. I can play and >> use it but it doesnt save >> Could not write header for output file #0 (incorrect codec parameters >> ?): Operation not permitted > Hi > Video codec used is VP6. > Not permitted in mp4 container. > Use different container, such as flv. > > ffmpeg -i "rtmp://cp106922.live.edgefcs.net/live/asianetnews at 53812 live=1" -c copy foofoo.flv > > > General > Complete name : foofoo.flv > Format : Flash Video > File size : 2.17 MiB > Duration : 30s 19ms > Overall bit rate : 606 Kbps > Encoded date : 2012-07-18 17:16:15 > Writing application : Lavf54.16.104 > presetname : Custom > videodevice : SAA7130 TV Card > videokeyframe_frequency : 5 > audiodevice : Realtek HD Audio Input > audiochannels : 1 > audioinputvolume : 75 > > Video > Format : VP6 > Codec ID : 4 > Duration : 30s 5ms > Bit rate : 500 Kbps > Width : 480 pixels > Height : 288 pixels > Display aspect ratio : 1.667 > Frame rate mode : Constant > Frame rate : 1 000.000 fps > Bit depth : 8 bits > Bits/(Pixel*Frame) : 0.004 > Stream size : 1.79 MiB (83%) > > Audio > Format : MPEG Audio > Format version : Version 2 > Format profile : Layer 3 > Codec ID : 2 > Codec ID/Hint : MP3 > Duration : 30s 19ms > Bit rate mode : Constant > Bit rate : 48.0 Kbps > Channel(s) : 1 channel > Sampling rate : 22.05 KHz > Compression mode : Lossy > Stream size : 176 KiB (8%) > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From batguano999 at hotmail.com Wed Jul 18 19:19:00 2012 From: batguano999 at hotmail.com (bat guano) Date: Wed, 18 Jul 2012 17:19:00 +0000 Subject: [FFmpeg-user] failing In-Reply-To: <5006E7A5.9030507@gmail.com> References: <5006DE1D.7070102@gmail.com>, , <5006E7A5.9030507@gmail.com> Message-ID: ---------------------------------------- > > But if i want it h264 and aac audio what should i do? > > Safe way is to download flv file then convert it later. First:- ffmpeg -i "rtmp://cp106922.live.edgefcs.net/live/asianetnews at 53812 live=1" -c copy foofoo.flv Then:- ffmpeg -i foofoo.flv -c:v libx264 -c:a aac -strict experimental foofoo1.mp4 Other way is *try* to do both jobs together. Like this:- ffmpeg -i "rtmp://cp106922.live.edgefcs.net/live/asianetnews at 53812 live=1" \ -c:v libx264 \ -c:a aac -strict experimental \ foofoo2.mp4 From pkoshevoy at gmail.com Wed Jul 18 19:20:07 2012 From: pkoshevoy at gmail.com (Pavel Koshevoy) Date: Wed, 18 Jul 2012 11:20:07 -0600 Subject: [FFmpeg-user] =?utf-8?b?5Zue5aSN77yaICBxdWVzdGlvbnMgYWJvdXQgYXVk?= =?utf-8?q?io_filter_=22atempo=22?= In-Reply-To: References: Message-ID: <5006F047.1000803@gmail.com> On 7/18/2012 12:11 AM, ??? wrote: > Thank you ,Pavel : > I tried the video filter "setpts" like this: > ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv > > > It's output: > > > ffmpeg version git-2012-07-18-56ae592 Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 18 2012 11:12:33 with gcc 4.4.3 > configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libtheora --enable-shared --enable-ffplay --enable-libxvid --enable-libvpx > 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 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': > Metadata: > major_brand : isom > minor_version : 1 > compatible_brands: isomavc1 > creation_time : 1941-02-22 02:53:21 > Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s > Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc > Metadata: > creation_time : 1941-02-22 02:53:21 > handler_name : GPAC ISO Video Handler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s > Metadata: > creation_time : 1941-02-22 02:53:27 > handler_name : GPAC ISO Audio Handler > Please use -b:a or -b:v, -b is ambiguous > [libx264 @ 0x9867a00] --psnr used with psy on: results will be invalid! > [libx264 @ 0x9867a00] --tune psnr should be used if attempting to benchmark psnr! > [libx264 @ 0x9867a00] using SAR=1/1 > [libx264 @ 0x9867a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 > [libx264 @ 0x9867a00] profile High, level 2.1 > [libx264 @ 0x9867a00] 264 - core 125 r2 5f615f7 - 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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > Output #0, flv, to 'youku.mp4.flv': > Metadata: > major_brand : isom > minor_version : 1 > compatible_brands: isomavc1 > encoder : Lavf54.17.100 > Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc > Metadata: > creation_time : 1941-02-22 02:53:21 > handler_name : GPAC ISO Video Handler > Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s > Metadata: > creation_time : 1941-02-22 02:53:27 > handler_name : GPAC ISO Audio Handler > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (aac -> libfaac) > Press [q] to stop, [?] for help > Segmentation fault > > > > > the same result as use -af atempo=2 only! > > > How did you compile x264,ffmpeg on you server machine? > Maybe I compiled wrong! I don't compile x264 myself, I use whatever version is the latest from openSUSE additional package repositories. I configured ffmpeg as follows for debugging: cd ffmpeg-git-build; ../ffmpeg-git-src/configure --prefix=/Developer/ffmpeg --enable-gpl --enable-runtime-cpudetect --disable-optimizations --disable-stripping --enable-debug=3 --enable-libxvid --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libtheora --enable-bzlib --enable-gnutls --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libcdio --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libdc1394 --enable-version3 This is a debug configuration, so it won't be the fastest. You can produce a stack trace with gdb gdb /Developer/ffmpeg run -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv When it crashes type in where in gdb and post the results here. Pavel. From rhodri at kynesim.co.uk Wed Jul 18 19:37:52 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Wed, 18 Jul 2012 18:37:52 +0100 Subject: [FFmpeg-user] failing In-Reply-To: <5006E7A5.9030507@gmail.com> References: <5006DE1D.7070102@gmail.com> <5006E7A5.9030507@gmail.com> Message-ID: [Please don't top-post. It's considered rude here because it makes things harder to read and encourages you not to bother trimming the message you are replying to. I've re-ordered this to make more sense.] On Wed, 18 Jul 2012 17:43:17 +0100, focus television wrote: > On 18-Jul-12 5:24 PM, bat guano wrote: [">>>" must be the original poster, but the attribution got trimmed] >>> Can u pleasse lett me why it is failing while writing .. I can play and >>> use it but it doesnt save >>> Could not write header for output file #0 (incorrect codec parameters >>> ?): Operation not permitted >> Hi >> Video codec used is VP6. >> Not permitted in mp4 container. >> Use different container, such as flv. >> >> ffmpeg -i "rtmp://cp106922.live.edgefcs.net/live/asianetnews at 53812 >> live=1" -c copy foofoo.flv >> [snip] >> Video >> Format : VP6 [snip] >> Audio >> Format : MPEG Audio >> Format version : Version 2 >> Format profile : Layer 3 > But if i want it h264 and aac audio what should i do? The Fine Manual explains how to select codecs, and an MP4 container is a good choice for that audio and video combination. What have you tried so far? -- Rhodri James Kynesim Ltd From michaelni at gmx.at Wed Jul 18 20:50:20 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Wed, 18 Jul 2012 20:50:20 +0200 Subject: [FFmpeg-user] Encoding for HLS but have a DTS problem In-Reply-To: <2B858C49-3193-41DB-9721-496ED9F7D80B@dominicansinteractive.com> References: <9324E595-402F-4ABC-BCC4-1E9947484311@dominicansinteractive.com> <2B858C49-3193-41DB-9721-496ED9F7D80B@dominicansinteractive.com> Message-ID: <20120718185020.GA22746@kiste2> On Tue, Jul 17, 2012 at 12:22:35PM +0100, Dominicans Interactive wrote: > Is there anybody with a suggestion what I could do? You could look at the DTS stored in the mpegts file and if they are bad try to trace from where they come from. explaining exactly how to reproduce the issue and providing links to all input files needed to reproduce it also should help [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No snowflake in an avalanche ever feels responsible. -- Voltaire -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From hans at guardianproject.info Wed Jul 18 23:13:11 2012 From: hans at guardianproject.info (Hans-Christoph Steiner) Date: Wed, 18 Jul 2012 17:13:11 -0400 Subject: [FFmpeg-user] using an audio+video filter at the same time In-Reply-To: References: <50060448.5060302@guardianproject.info> <20120718082223.GA7251@phare.normalesup.org> Message-ID: <500726E7.6040309@guardianproject.info> On 07/18/2012 07:39 AM, Carl Eugen Hoyos wrote: > Nicolas George normalesup.org> writes: > >>> trying to use our two custom filters af_aredact and vf_redact. >> >> What do they do? If they are useful, submitting them to the devel >> mailing-list would be nice, and would probably also reduce the >> maintenance burden for you. > > http://article.gmane.org/gmane.linux.debian.alioth.multimedia-maintainers/19401 > The thread is a good example of the many lies the Debian > maintainers are made to believe, it is sad that we have not > been informed at the time about it;-( Can you explain? I don't understand what are the many lies. > https://dev.guardianproject.info/attachments/48/vf_redact.c > This filter unfortunately has a license issue afaict;-( I'm working with Andrew Senior. The plan is to ultimately get it incorporated into ffmpeg under whatever license is easiest for ffmpeg. .hc From ericcocuzza12 at hotmail.com Wed Jul 18 23:49:54 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Wed, 18 Jul 2012 17:49:54 -0400 Subject: [FFmpeg-user] CPU load/performance change Message-ID: Hi Guys, It takes X cycles to do do a 480P H.264 encoding/decoding then how much it would change if the same software we use to do 1080P H264 Encoding/decoding. How much additional CPU cycles/requirements or in percentage(%) additional?? Please help me with this? --Eric. From carlos.aguero at ridgerun.com Thu Jul 19 00:45:04 2012 From: carlos.aguero at ridgerun.com (Carlos Aguero) Date: Wed, 18 Jul 2012 16:45:04 -0600 Subject: [FFmpeg-user] ffenc_bmp encode issue Message-ID: <50073C70.6090505@ridgerun.com> Hi all, I am trying to grab a frame and encode it as a bmp file, grayscale, 8bits, if I use the ffenc_pgm I get a grayscale png file as expected, but when I use the ffenc_bmp encoder the result is a dark bmp file, any suggestions? or is there a problem with the bmp encoder? *I am using this pipeline for png encode (working fine)* gst-launch v4l2src always-copy=false chain-ipipe=true num-buffers=1 ! 'video/x-raw-yuv, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! ffmpegcolorspace ! 'video/x-raw-gray, width=(int)640, height=(int)480, framerate=(fraction)30/1, bpp=(int)8, depth=(int)8' ! ffenc_pgm ! filesink location=test.png *and this one for bmp encoding (not working)* gst-launch v4l2src always-copy=false chain-ipipe=true num-buffers=1 ! 'video/x-raw-yuv, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! ffmpegcolorspace ! 'video/x-raw-gray, width=(int)640, height=(int)480, framerate=(fraction)30/1, bpp=(int)8, depth=(int)8' ! ffenc_bmp ! filesink location=test.bmp Regards, Carlos From stefasab at gmail.com Thu Jul 19 01:39:43 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Thu, 19 Jul 2012 01:39:43 +0200 Subject: [FFmpeg-user] [ANNOUNCE] SOCIS 2012 - Request for students Message-ID: <20120718233943.GB3387@arborea> We're glad to announce that FFmpeg application to SOCIS (Summer Of Code In Space) has been accepted and we've been allocated a slot for a student: http://sophia.estec.esa.int/socis2012/ The selected student will be sponsored to work on one of the tasks listed on this page: http://wiki.multimedia.cx/index.php?title=FFmpeg_Summer_Of_Code_In_Space_2012 but the student is allowed to propose a different task in case he/she has a different proposal (but we can't guarantee the task qualification only in case we'll be able to couple him/her with a mentor). Students' application timeline is on Friday July 27: http://sophia.estec.esa.int/socis2012/?q=timeline If you are a student and you want to partecipate to the program, you're invited to check more information from the SOCIS web site, in particular to read the pages: - http://sophia.estec.esa.int/socis2012/?q=faq - http://sophia.estec.esa.int/socis2012/?q=tos - http://sophia.estec.esa.int/socis2012/?q=student_agreement and get in touch as soon as possible with the FFmpeg administrators (Stefano Sabatini and Michael Niedermayer) and/or with one of the mentors. Good luck! From ali.shaheen at popcatcher.com Thu Jul 19 02:01:44 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Thu, 19 Jul 2012 02:01:44 +0200 Subject: [FFmpeg-user] AAC decoding on Android Message-ID: Hi, I am using ffmpeg to decode AAC stream on android device. but it consumes > 90% CPU and i am not able to play on slow devices. Any suggestions? Other option is OpenCore AAC decoder which uses very less CPU but in my project i am using ffmpeg for decoding other formats as well.. So it would be good if i am able to decode aac with ffmpeg as well. Any recommendations? From rogerdpack2 at gmail.com Thu Jul 19 02:29:02 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 18 Jul 2012 18:29:02 -0600 Subject: [FFmpeg-user] Big file webcam In-Reply-To: <1342537134143-4651854.post@n4.nabble.com> References: <1342537134143-4651854.post@n4.nabble.com> Message-ID: > I'm trying to capture video from my Microsoft Lifecam Studio. I tried with a > lot of commands and I achieved a good quality some times, but the problem is > that the good quality give it me a very big file. The idea is get the video > in 640x480 pixels or more, to 6 [MB/min] or less if it is possible. > > Now, the videos with good quality that I got, are bigger than 20 MB/min. What's your current command line and full uncut console output? How many fps are you trying to achieve? (for me mp4 has worked pretty well in the past...libx264 might also help) From rogerdpack2 at gmail.com Thu Jul 19 02:30:32 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 18 Jul 2012 18:30:32 -0600 Subject: [FFmpeg-user] cpu In-Reply-To: <5005AB62.9090505@gmail.com> References: <5005AB62.9090505@gmail.com> Message-ID: > It i take out the codec or put copy it gives error in header... > ANy idea where i am wrong? What's the input codec? Maybe it's not compatible with flv. (I assume your goal is to stream, and that you're running out of cpu?) From onemda at gmail.com Thu Jul 19 02:31:47 2012 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 19 Jul 2012 00:31:47 +0000 Subject: [FFmpeg-user] ffenc_bmp encode issue In-Reply-To: <50073C70.6090505@ridgerun.com> References: <50073C70.6090505@ridgerun.com> Message-ID: On 7/18/12, Carlos Aguero wrote: > Hi all, > > I am trying to grab a frame and encode it as a bmp file, grayscale, > 8bits, if I use the ffenc_pgm I get a grayscale png file as expected, > but when I use the ffenc_bmp encoder the result is a dark bmp file, any > suggestions? or is there a problem with the bmp encoder? > > *I am using this pipeline for png encode (working fine)* > gst-launch v4l2src always-copy=false chain-ipipe=true num-buffers=1 ! > 'video/x-raw-yuv, width=(int)640, height=(int)480, > framerate=(fraction)30/1' ! ffmpegcolorspace ! 'video/x-raw-gray, > width=(int)640, height=(int)480, framerate=(fraction)30/1, bpp=(int)8, > depth=(int)8' ! ffenc_pgm ! filesink location=test.png > > *and this one for bmp encoding (not working)* > gst-launch v4l2src always-copy=false chain-ipipe=true num-buffers=1 ! > 'video/x-raw-yuv, width=(int)640, height=(int)480, > framerate=(fraction)30/1' ! ffmpegcolorspace ! 'video/x-raw-gray, > width=(int)640, height=(int)480, framerate=(fraction)30/1, bpp=(int)8, > depth=(int)8' ! ffenc_bmp ! filesink location=test.bmp What FFmpeg version? From rd at icalc.com Thu Jul 19 02:44:26 2012 From: rd at icalc.com (Rob Desilets) Date: Wed, 18 Jul 2012 19:44:26 -0500 Subject: [FFmpeg-user] Logos and Text Shrunk/Scaled - Any ideas? Message-ID: <5007586A.1060703@icalc.com> Hi All, I sent out an email yesterday about my logos/text shrunk since a recent upgrade. I was wondering if anyone had any ideas or maybe a person/group I could try to contact? I want to deploy the latest ffmpeg to production but I can't with shrunk logo's :) (Thanks again!) -Rob From carlos.aguero at ridgerun.com Thu Jul 19 02:56:15 2012 From: carlos.aguero at ridgerun.com (Carlos Aguero) Date: Wed, 18 Jul 2012 18:56:15 -0600 Subject: [FFmpeg-user] ffenc_bmp encode issue In-Reply-To: References: <50073C70.6090505@ridgerun.com> Message-ID: <50075B2F.1070702@ridgerun.com> On 07/18/2012 06:31 PM, Paul B Mahol wrote: > On 7/18/12, Carlos Aguero wrote: >> Hi all, >> >> I am trying to grab a frame and encode it as a bmp file, grayscale, >> 8bits, if I use the ffenc_pgm I get a grayscale png file as expected, >> but when I use the ffenc_bmp encoder the result is a dark bmp file, any >> suggestions? or is there a problem with the bmp encoder? >> >> *I am using this pipeline for png encode (working fine)* >> gst-launch v4l2src always-copy=false chain-ipipe=true num-buffers=1 ! >> 'video/x-raw-yuv, width=(int)640, height=(int)480, >> framerate=(fraction)30/1' ! ffmpegcolorspace ! 'video/x-raw-gray, >> width=(int)640, height=(int)480, framerate=(fraction)30/1, bpp=(int)8, >> depth=(int)8' ! ffenc_pgm ! filesink location=test.png >> >> *and this one for bmp encoding (not working)* >> gst-launch v4l2src always-copy=false chain-ipipe=true num-buffers=1 ! >> 'video/x-raw-yuv, width=(int)640, height=(int)480, >> framerate=(fraction)30/1' ! ffmpegcolorspace ! 'video/x-raw-gray, >> width=(int)640, height=(int)480, framerate=(fraction)30/1, bpp=(int)8, >> depth=(int)8' ! ffenc_bmp ! filesink location=test.bmp > What FFmpeg version? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi, Thank you for your attention. I am using ffmpeg version 0.10.11 Regards, Carlos From 550399108 at qq.com Thu Jul 19 05:25:07 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Thu, 19 Jul 2012 11:25:07 +0800 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ILvYuLSjuiAgcXVlc3Rpb25zIGFi?= =?gb18030?q?out_audio_filter_=22atempo=22?= Message-ID: Hi,Pavel I tried your method gdb /usr/local/bin/ffmpeg run -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv it's output: Starting program: /usr/local/bin/ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv [Thread debugging using libthread_db enabled] ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 11:15:05 with gcc 4.4.3 configuration: --enable-gpl --enable-pthreads --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libvpx --enable-libtheora --enable-libvorbis --enable-runtime-cpudetect --enable-debug=3 --enable-ffplay --enable-shared 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 1941-02-22 02:53:21 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 1941-02-22 02:53:21 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 1941-02-22 02:53:27 handler_name : GPAC ISO Audio Handler Please use -b:a or -b:v, -b is ambiguous [libx264 @ 0x809aa00] --psnr used with psy on: results will be invalid! [libx264 @ 0x809aa00] --tune psnr should be used if attempting to benchmark psnr! [libx264 @ 0x809aa00] using SAR=1/1 [libx264 @ 0x809aa00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 [New Thread 0xb7dbfb70 (LWP 6218)] [New Thread 0xb75beb70 (LWP 6219)] [New Thread 0xb6dbdb70 (LWP 6220)] [New Thread 0xb600ab70 (LWP 6221)] [libx264 @ 0x809aa00] profile High, level 2.1 [libx264 @ 0x809aa00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [New Thread 0xb4d31b70 (LWP 6222)] [New Thread 0xb4530b70 (LWP 6223)] [New Thread 0xb3d2fb70 (LWP 6224)] Output #0, flv, to 'youku.mp4.flv': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 encoder : Lavf54.17.100 Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc Metadata: creation_time : 1941-02-22 02:53:21 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s Metadata: creation_time : 1941-02-22 02:53:27 handler_name : GPAC ISO Audio Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libfaac) Press [q] to stop, [?] for help Program received signal SIGSEGV, Segmentation fault. 0x00a186e1 in ?? () from /usr/local/lib/libavcodec.so.54 What is wrong? ------------------ ???? ------------------ ???: "Pavel Koshevoy"; ????: 2012?7?19?(???) ??1:20 ???: "ffmpeg-user"; ??: Re: [FFmpeg-user]??? questions about audio filter "atempo" On 7/18/2012 12:11 AM, ??? wrote: > Thank you ,Pavel : > I tried the video filter "setpts" like this: > ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv > > > It's output: > > > ffmpeg version git-2012-07-18-56ae592 Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 18 2012 11:12:33 with gcc 4.4.3 > configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libtheora --enable-shared --enable-ffplay --enable-libxvid --enable-libvpx > 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 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': > Metadata: > major_brand : isom > minor_version : 1 > compatible_brands: isomavc1 > creation_time : 1941-02-22 02:53:21 > Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s > Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc > Metadata: > creation_time : 1941-02-22 02:53:21 > handler_name : GPAC ISO Video Handler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s > Metadata: > creation_time : 1941-02-22 02:53:27 > handler_name : GPAC ISO Audio Handler > Please use -b:a or -b:v, -b is ambiguous > [libx264 @ 0x9867a00] --psnr used with psy on: results will be invalid! > [libx264 @ 0x9867a00] --tune psnr should be used if attempting to benchmark psnr! > [libx264 @ 0x9867a00] using SAR=1/1 > [libx264 @ 0x9867a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 > [libx264 @ 0x9867a00] profile High, level 2.1 > [libx264 @ 0x9867a00] 264 - core 125 r2 5f615f7 - 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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > Output #0, flv, to 'youku.mp4.flv': > Metadata: > major_brand : isom > minor_version : 1 > compatible_brands: isomavc1 > encoder : Lavf54.17.100 > Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc > Metadata: > creation_time : 1941-02-22 02:53:21 > handler_name : GPAC ISO Video Handler > Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s > Metadata: > creation_time : 1941-02-22 02:53:27 > handler_name : GPAC ISO Audio Handler > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (aac -> libfaac) > Press [q] to stop, [?] for help > Segmentation fault > > > > > the same result as use -af atempo=2 only! > > > How did you compile x264,ffmpeg on you server machine? > Maybe I compiled wrong! I don't compile x264 myself, I use whatever version is the latest from openSUSE additional package repositories. I configured ffmpeg as follows for debugging: cd ffmpeg-git-build; ../ffmpeg-git-src/configure --prefix=/Developer/ffmpeg --enable-gpl --enable-runtime-cpudetect --disable-optimizations --disable-stripping --enable-debug=3 --enable-libxvid --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libtheora --enable-bzlib --enable-gnutls --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libcdio --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libdc1394 --enable-version3 This is a debug configuration, so it won't be the fastest. You can produce a stack trace with gdb gdb /Developer/ffmpeg run -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv When it crashes type in where in gdb and post the results here. Pavel. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Thu Jul 19 07:50:48 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Jul 2012 05:50:48 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffenc=5Fbmp_encode_issue?= References: <50073C70.6090505@ridgerun.com> Message-ID: Carlos Aguero ridgerun.com> writes: > I am trying to grab a frame and encode it as a bmp file, grayscale, > 8bits, if I use the ffenc_pgm I get a grayscale png file as expected, > but when I use the ffenc_bmp encoder the result is a dark bmp file, any > suggestions? or is there a problem with the bmp encoder? I suggest you test ffmpeg -i input -pix_fmt gray out.bmp If it does not work, reproducing the problem will be much easier for us, if it does work, you should probably ask gst developers. Carl Eugen From cehoyos at ag.or.at Thu Jul 19 07:54:03 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Jul 2012 05:54:03 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?b?5Zue5aSN77ya5Zue5aSN77yaIHF1ZXN0aW9ucyBh?= =?utf-8?q?bout_audio_filter_=22atempo=22?= References: Message-ID: ??? <550399108 qq.com> writes: > Program received signal SIGSEGV, Segmentation fault. Does the crash also occur with -vcodec mpeg4 -strict -2 -acodec aac? If yes, please open a bugreport as explained on http://ffmpeg.org/bugreports.html (You will have to recompile without --enable-shared or with --disable-stripping to produce a useful backtrace) Consider removing options to find the one responsible for the crash. Carl Eugen From cehoyos at ag.or.at Thu Jul 19 07:55:48 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Jul 2012 05:55:48 +0000 (UTC) Subject: [FFmpeg-user] CPU load/performance change References: Message-ID: eric cocuzza hotmail.com> writes: > It takes X cycles to do do a 480P H.264 encoding/decoding then > how much it would change if the same software we > use to do 1080P H264 Encoding/decoding. I am quite sure this question cannot be answered. That said, I would expect linear performance behaviour. Carl Eugen From cehoyos at ag.or.at Thu Jul 19 08:15:08 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Jul 2012 06:15:08 +0000 (UTC) Subject: [FFmpeg-user] using an audio+video filter at the same time References: <50060448.5060302@guardianproject.info> <20120718082223.GA7251@phare.normalesup.org> <500726E7.6040309@guardianproject.info> Message-ID: Hans-Christoph Steiner guardianproject.info> writes: > > The thread is a good example of the many lies the Debian > > maintainers are made to believe, it is sad that we have not > > been informed at the time about it;-( > > Can you explain? I don't understand what are the many lies. Reading the thread, I would assume that it is unavoidable that FFmpeg and the mentioned fork are incompatible. The truth is that the FFmpeg maintainer does really everything (even silly things) to keep compatibility and make our libraries replacements for the forks' (and we have not yet received any reports about incompatibility). Note that I am not saying that we are compatible in every respect (the fork lately began to commit broken functions using the name of - afaict non-broken - functions already used in FFmpeg that are incompatible), but that this to a very high degree is not our fault (nor is it unavoidable, the developers who were less involved originally tried hard to avoid such incompatibilities). The thread claims that it is impossible to deploy FFmpeg alongside with the fork and that this is unneeded because the fork "already provides ffmpeg". (In this context, I consider the latter a really, really bad thing to write.) Fact is that the default compilation of FFmpeg provides static binaries that could of course without any change be provided. I strongly believe that the fork providing intentionally broken binaries called "FFmpeg" that contain several hundred known regressions (some of them security relevant, a few possibly exploitable) at the same time announcing it will be removed does not need further comments (especially if this is used as an argument why FFmpeg cannot be provided). This finally leads to the "all is well" attitude - if you simply ignore bug-reports, all is of course well! (Totally leaving out the "there is nothing missing in the fork" argument. The people working hard on libavfilter for several months without being payed by the money collected under the "FFmpeg" name could probably comment. The money was unfortunately used to provide some of the forks' incompatibilities.) > > https://dev.guardianproject.info/attachments/48/vf_redact.c > > This filter unfortunately has a license issue afaict;-( > > I'm working with Andrew Senior. The plan is to ultimately get it > incorporated into ffmpeg under whatever license is easiest for ffmpeg. That is great, what is missing is a license header (afaict - IANAL - we have to assume that all rights are reserved if it says "Copyright (c) 2011 Andrew Senior"), you can either copy a LGPL header from another file, or choose a less restricting license (MIT). Carl Eugen From 550399108 at qq.com Thu Jul 19 08:19:56 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Thu, 19 Jul 2012 14:19:56 +0800 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ILvYuLSjurvYuLSjuiBxdWVzdGlv?= =?gb18030?q?ns_about_audio_filter_=22atempo=22?= Message-ID: Yes,the crash also occur with -vcodec mpeg4 -strict -2 -acodec aac. But this option "-af atempo=2 " is usefull on a ubuntu amd64 server. ------------------ ???? ------------------ ???: "Carl Eugen Hoyos"; ????: 2012?7?19?(???) ??1:54 ???: "ffmpeg-user"; ??: Re: [FFmpeg-user]?????? questions about audio filter "atempo" ??? <550399108 qq.com> writes: > Program received signal SIGSEGV, Segmentation fault. Does the crash also occur with -vcodec mpeg4 -strict -2 -acodec aac? If yes, please open a bugreport as explained on http://ffmpeg.org/bugreports.html (You will have to recompile without --enable-shared or with --disable-stripping to produce a useful backtrace) Consider removing options to find the one responsible for the crash. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nichot20 at yahoo.com Thu Jul 19 08:59:13 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Thu, 19 Jul 2012 07:59:13 +0100 Subject: [FFmpeg-user] novice, in need of advice regarding format conversion In-Reply-To: <780.1342557006@tristatelogic.com> References: <780.1342557006@tristatelogic.com> Message-ID: <5007B041.7070302@yahoo.com> On 17/07/12 21:30, Ronald F. Guilmette wrote: > > In message <20120717080949.GE9329 at arborea>, > Stefano Sabatini wrote: > >> [...] >> >> The lowest common denominator for players will be the >> mpeg2video+MP3+avi combination. > > As I said, I only have one target here, i.e. _anything_ that the LG BD670 > can play (and I don't care which container/codec are used, as long as the > LG BD670 is happy). In short, I have -zero- reason to care about > ``portability''. > > Also, I think that for what I am doing, I will want to use whatever format > gives me the MOST quality and/or functionality... NOT the ``lowest common > denominator''. > The most quality will be to avoid transcoding what you already have, so a simple rewrap from .VOB to .mpg/avi would probably suffice. > Lastly, as my prior popsting mentioned, this player allegedly supports .MKV > files. If that container format provides more functionality that the other > supported container formats, then that is probably the one I want to convert > my .VOB files into. Now I just need someone to show me precisely how to do > that. (An example command line please!) > Might I suggest you try avidemux which is a gui front end for ffmpeg and easily allows selection of different options, including "stream copying" with MKV container output. This would avoid having to "know squat about ffmpeg, nor about its gazillion options", and allow you to find something that works.. [...] -- Tim From grabner at icg.tugraz.at Thu Jul 19 09:35:11 2012 From: grabner at icg.tugraz.at (Markus Grabner) Date: Thu, 19 Jul 2012 09:35:11 +0200 Subject: [FFmpeg-user] ffplay and vdpau? In-Reply-To: References: <7994806.91dkMOmlN7@mark> <4200948.drYuVO4361@mark> Message-ID: <3164223.xDXncBKZqs@mark> On Wednesday 18 July 2012 06:05:54 Carl Eugen Hoyos wrote: > Markus Grabner icg.tugraz.at> writes: > > But libavcodec supports vdpau, right? What would be the > > next simplest way to use vdpau? Maybe mplayer? > > Afaict, MPlayer is the standard VDPAU testing application. > (The VDPAU support in MPlayer was mostly written by Nvidia.) Thanks for the hint, then I'll try this! Kind regards, Markus From 550399108 at qq.com Thu Jul 19 09:46:04 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Thu, 19 Jul 2012 15:46:04 +0800 Subject: [FFmpeg-user] problems when updated the r-26400 version to the latest git version Message-ID: I used to use ffmpeg version r-26400 that is the svn-version I encode videos into x264 + faac with the command as follow: ffmpeg -y -i youku.mp4 -analyzeduration -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -an -f flv -map_chapters -1:-1 -g 50 /dev/null ffmpeg -y -i youku.mp4 -analyzeduration -pass 2 -vcodec libx264 -vpre normal -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv it works ! Now,I want to upgrade my ffmpeg to the latest git version. When i compile my ffmpeg and try to use the command above. I found there is no preset named fastfirstpass or normal.So I copy the options in this to file.I get result as follow: command: ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 3 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:39:08 with gcc 4.4.3 configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libtheora --enable-libvorbis --enable-shared --enable-ffplay --enable-debug 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-03-30 09:21:37 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2011-03-30 09:21:37 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 2011-03-30 09:21:43 handler_name : GPAC ISO Audio Handler Unrecognized option 'directpred' Failed to set value '3' for option 'directpred' command: ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:39:08 with gcc 4.4.3 configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libtheora --enable-libvorbis --enable-shared --enable-ffplay --enable-debug 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-03-30 09:21:37 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2011-03-30 09:21:37 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 2011-03-30 09:21:43 handler_name : GPAC ISO Audio Handler Please use -b:a or -b:v, -b is ambiguous [NULL @ 0x9eaa20] [Eval @ 0x7fff7da6f3b0] Undefined constant or missing '(' in 'bpyramid' [NULL @ 0x9eaa20] Unable to parse option value "bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree" [NULL @ 0x9eaa20] Error setting option flags2 to value -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree. Output #0, flv, to '/dev/null': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 Stream #0:0(und): Video: none, yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=10-51, pass 1, 512 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-03-30 09:21:37 handler_name : GPAC ISO Video Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height How can I use the lastest version ffmpeg to encode videos as the version r-26400 with 2-pass model? From pkoshevoy at gmail.com Thu Jul 19 09:47:21 2012 From: pkoshevoy at gmail.com (Pavel Koshevoy) Date: Thu, 19 Jul 2012 01:47:21 -0600 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ILvYuLSjuiAgcXVlc3Rpb25zIGFi?= =?gb18030?q?out_audio_filter_=22atempo=22?= In-Reply-To: References: Message-ID: <5007BB89.4070807@gmail.com> On 7/18/12 9:25 PM, ??? wrote: > Hi,Pavel > I tried your method > gdb /usr/local/bin/ffmpeg > > > run -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv > > > it's output: > > > Starting program: /usr/local/bin/ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv > [Thread debugging using libthread_db enabled] > ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 19 2012 11:15:05 with gcc 4.4.3 > configuration: --enable-gpl --enable-pthreads --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libvpx --enable-libtheora --enable-libvorbis --enable-runtime-cpudetect --enable-debug=3 --enable-ffplay --enable-shared > 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 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': > Metadata: > major_brand : isom > minor_version : 1 > compatible_brands: isomavc1 > creation_time : 1941-02-22 02:53:21 > Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s > Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc > Metadata: > creation_time : 1941-02-22 02:53:21 > handler_name : GPAC ISO Video Handler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s > Metadata: > creation_time : 1941-02-22 02:53:27 > handler_name : GPAC ISO Audio Handler > Please use -b:a or -b:v, -b is ambiguous > [libx264 @ 0x809aa00] --psnr used with psy on: results will be invalid! > [libx264 @ 0x809aa00] --tune psnr should be used if attempting to benchmark psnr! > [libx264 @ 0x809aa00] using SAR=1/1 > [libx264 @ 0x809aa00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 > [New Thread 0xb7dbfb70 (LWP 6218)] > [New Thread 0xb75beb70 (LWP 6219)] > [New Thread 0xb6dbdb70 (LWP 6220)] > [New Thread 0xb600ab70 (LWP 6221)] > [libx264 @ 0x809aa00] profile High, level 2.1 > [libx264 @ 0x809aa00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > [New Thread 0xb4d31b70 (LWP 6222)] > [New Thread 0xb4530b70 (LWP 6223)] > [New Thread 0xb3d2fb70 (LWP 6224)] > Output #0, flv, to 'youku.mp4.flv': > Metadata: > major_brand : isom > minor_version : 1 > compatible_brands: isomavc1 > encoder : Lavf54.17.100 > Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc > Metadata: > creation_time : 1941-02-22 02:53:21 > handler_name : GPAC ISO Video Handler > Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s > Metadata: > creation_time : 1941-02-22 02:53:27 > handler_name : GPAC ISO Audio Handler > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (aac -> libfaac) > Press [q] to stop, [?] for help > > > Program received signal SIGSEGV, Segmentation fault. > 0x00a186e1 in ?? () from /usr/local/lib/libavcodec.so.54 > > > > What is wrong? > > > > > ------------------ ???? ------------------ > ???: "Pavel Koshevoy"; > ????: 2012?7?19?(???) ??1:20 > ???: "ffmpeg-user"; > > ??: Re: [FFmpeg-user]??? questions about audio filter "atempo" > > > > On 7/18/2012 12:11 AM, ??? wrote: >> Thank you ,Pavel : >> I tried the video filter "setpts" like this: >> ffmpeg -y -i youku.mp4 -analyzeduration 2G -vcodec libx264 -b 512k -r 25 -s 576x312 -aspect 576:312 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 youku.mp4.flv >> >> >> It's output: >> >> >> ffmpeg version git-2012-07-18-56ae592 Copyright (c) 2000-2012 the FFmpeg developers >> built on Jul 18 2012 11:12:33 with gcc 4.4.3 >> configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libtheora --enable-shared --enable-ffplay --enable-libxvid --enable-libvpx >> 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 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': >> Metadata: >> major_brand : isom >> minor_version : 1 >> compatible_brands: isomavc1 >> creation_time : 1941-02-22 02:53:21 >> Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s >> Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc >> Metadata: >> creation_time : 1941-02-22 02:53:21 >> handler_name : GPAC ISO Video Handler >> Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s >> Metadata: >> creation_time : 1941-02-22 02:53:27 >> handler_name : GPAC ISO Audio Handler >> Please use -b:a or -b:v, -b is ambiguous >> [libx264 @ 0x9867a00] --psnr used with psy on: results will be invalid! >> [libx264 @ 0x9867a00] --tune psnr should be used if attempting to benchmark psnr! >> [libx264 @ 0x9867a00] using SAR=1/1 >> [libx264 @ 0x9867a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 >> [libx264 @ 0x9867a00] profile High, level 2.1 >> [libx264 @ 0x9867a00] 264 - core 125 r2 5f615f7 - 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=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 >> Output #0, flv, to 'youku.mp4.flv': >> Metadata: >> major_brand : isom >> minor_version : 1 >> compatible_brands: isomavc1 >> encoder : Lavf54.17.100 >> Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=-1--1, 512 kb/s, 1k tbn, 25 tbc >> Metadata: >> creation_time : 1941-02-22 02:53:21 >> handler_name : GPAC ISO Video Handler >> Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 64 kb/s >> Metadata: >> creation_time : 1941-02-22 02:53:27 >> handler_name : GPAC ISO Audio Handler >> Stream mapping: >> Stream #0:0 -> #0:0 (h264 -> libx264) >> Stream #0:1 -> #0:1 (aac -> libfaac) >> Press [q] to stop, [?] for help >> Segmentation fault When you get to this stage -- type in "where" or "bt" in gdb, press enter, then cut and paste the results in the e-mail and send them here. Pavel. From 550399108 at qq.com Thu Jul 19 09:56:27 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Thu, 19 Jul 2012 15:56:27 +0800 Subject: [FFmpeg-user] problems when updated the r-26400 version to thelatest git version Message-ID: ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -an -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 2 -vcodec libx264 -vpre normal -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv ------------------ Original ------------------ From: "iefv???"<550399108 at qq.com>; Date: Thu, Jul 19, 2012 03:46 PM To: "ffmpeg-user"; Subject: [FFmpeg-user] problems when updated the r-26400 version to thelatest git version I used to use ffmpeg version r-26400 that is the svn-version I encode videos into x264 + faac with the command as follow: ffmpeg -y -i youku.mp4 -analyzeduration -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -an -f flv -map_chapters -1:-1 -g 50 /dev/null ffmpeg -y -i youku.mp4 -analyzeduration -pass 2 -vcodec libx264 -vpre normal -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv it works ! Now,I want to upgrade my ffmpeg to the latest git version. When i compile my ffmpeg and try to use the command above. I found there is no preset named fastfirstpass or normal.So I copy the options in this to file.I get result as follow: command: ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 3 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:39:08 with gcc 4.4.3 configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libtheora --enable-libvorbis --enable-shared --enable-ffplay --enable-debug 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-03-30 09:21:37 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2011-03-30 09:21:37 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 2011-03-30 09:21:43 handler_name : GPAC ISO Audio Handler Unrecognized option 'directpred' Failed to set value '3' for option 'directpred' command: ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:39:08 with gcc 4.4.3 configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libtheora --enable-libvorbis --enable-shared --enable-ffplay --enable-debug 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-03-30 09:21:37 Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc Metadata: creation_time : 2011-03-30 09:21:37 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s Metadata: creation_time : 2011-03-30 09:21:43 handler_name : GPAC ISO Audio Handler Please use -b:a or -b:v, -b is ambiguous [NULL @ 0x9eaa20] [Eval @ 0x7fff7da6f3b0] Undefined constant or missing '(' in 'bpyramid' [NULL @ 0x9eaa20] Unable to parse option value "bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree" [NULL @ 0x9eaa20] Error setting option flags2 to value -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree. Output #0, flv, to '/dev/null': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 Stream #0:0(und): Video: none, yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=10-51, pass 1, 512 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-03-30 09:21:37 handler_name : GPAC ISO Video Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height How can I use the lastest version ffmpeg to encode videos as the version r-26400 with 2-pass model? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From luuk at dominicansinteractive.com Thu Jul 19 09:58:54 2012 From: luuk at dominicansinteractive.com (Dominicans Interactive) Date: Thu, 19 Jul 2012 08:58:54 +0100 Subject: [FFmpeg-user] Encoding for HLS but have a DTS problem In-Reply-To: <20120718185020.GA22746@kiste2> References: <9324E595-402F-4ABC-BCC4-1E9947484311@dominicansinteractive.com> <2B858C49-3193-41DB-9721-496ED9F7D80B@dominicansinteractive.com> <20120718185020.GA22746@kiste2> Message-ID: <053D2B89-4135-4731-8587-0947F214CDE4@dominicansinteractive.com> On 18 Jul 2012, at 19:50, Michael Niedermayer wrote: > On Tue, Jul 17, 2012 at 12:22:35PM +0100, Dominicans Interactive wrote: >> Is there anybody with a suggestion what I could do? > > You could look at the DTS stored in the mpegts file and if they are > bad try to trace from where they come from. > > explaining exactly how to reproduce the issue and providing links > to all input files needed to reproduce it also should help > > [...] > -- > Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB > > No snowflake in an avalanche ever feels responsible. -- Voltaire > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks Michael, I am not that familiar with video encoding, so don't know if I can help you with the first suggestion. But the file I use for testing can be found at: http://test.idoms.org/public/testdata/test-movie/test.mov The output of FFMPEG for this file seems ok as it doesn't give a DTS error (ffmpeg -loglevel 99 -i test.mov). The command I use for encoding is: ffmpeg -i ./test.mov -y -f mpegts -acodec aac -strict -2, -ar, 48000, -b:a, 128000, -s, 960x540, -vcodec, libx264, -b:v, 1200000, -aspect, 960:540, -r, 25, -level, 3.1, -vprofile, main, -flags, +loop, -cmp, +chroma, -partitions, +parti4x4+partp8x8+partb8x8, -subq, 5, -trellis, 1, -refs, 1, -coder, 0, -me_range, 16, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -bt, 200k, -maxrate, 1200000, -bufsize, 1200000, -rc_eq, 'blurCplx^(1-qComp)', -qcomp, 0.6, -qmin, 10, -qmax, 51, -qdiff, 4, -level, 30, -g, 30, -async, 2, ./encoded.ts I pass the uncut output below, as there is actually a PTS warning. If I now probe the file with FFMPEG (ffmpeg -loglevel 99 -i encoded.ts) I get: ffmpeg -loglevel 99 -i encoded.ts ffmpeg version N-42201-gab2356c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 4 2012 11:57:28 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 32.100 / 54. 32.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 0x7fb73b03d800] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x7fb73b03d800] stream=0 stream_type=1b pid=100 prog_reg_desc= [mpegts @ 0x7fb73b03d800] stream=1 stream_type=f pid=101 prog_reg_desc= [mpegts @ 0x7fb73b03d800] File position before avformat_find_stream_info() is 0 [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping [h264 @ 0x7fb73b052e00] no picture [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 143280 in que Last message repeated 6 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 158640 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 175920 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 193200 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 210480 in que Last message repeated 7 times [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 227760 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 245040 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 262320 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 279600 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 296880 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 314160 in que Last message repeated 7 times [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 331440 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 348720 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 366000 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 383280 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 400560 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 417840 in que Last message repeated 6 times [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 433200 in que Last message repeated 6 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 448560 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 465840 in que Last message repeated 6 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 481200 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 498480 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 515760 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 533040 in que Last message repeated 6 times [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 548400 in que Last message repeated 7 times [mpegts @ 0x7fb73b03d800] max_analyze_duration 5000000 reached at 5000000 [mpegts @ 0x7fb73b03d800] File position after avformat_find_stream_info() is 0 Input #0, mpegts, from 'encoded.ts': Duration: 00:00:24.18, start: 1.378667, bitrate: 1225 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100], 127, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 1/50, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](eng), 230, 1/90000: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 117 kb/s At least one output file must be specified [AVIOContext @ 0x7fb73ac18300] Statistics: 905360 bytes read, 2 seeks _________ Encoder output: ffmpeg -i ./test.mov -y -f mpegts -acodec aac -strict -2 -ar 48000 -b:a 128000 -s 960x540 -vcodec libx264 -b:v 1200000 -aspect 960:540 -r 25 -level 3.1 -vprofile main -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 1200000 -bufsize 1200000 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 ./encoded.ts ffmpeg version N-42201-gab2356c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 4 2012 11:57:28 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 libavutil 51. 63.100 / 51. 63.100 libavcodec 54. 32.100 / 54. 32.100 libavformat 54. 14.100 / 54. 14.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-12-05 10:54:24 timecode : 00:00:00:00 Duration: 00:00:24.20, start: 0.000000, bitrate: 9912 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 9777 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: creation_time : 2011-12-05 10:56:28 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 129 kb/s Metadata: creation_time : 2011-12-05 10:56:28 handler_name : Apple Sound Media Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2011-12-05 10:56:28 handler_name : Time Code Media Handler timecode : 00:00:00:00 [graph 0 input from stream 0:0 @ 0x11111a080] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 [output stream 0:0 @ 0x11111a210] No opaque field provided [scaler for output stream 0:0 @ 0x11111a560] w:1920 h:1080 fmt:yuv420p sar:0/1 -> w:960 h:540 fmt:yuv420p sar:0/1 flags:0x4 [graph 1 input from stream 0:1 @ 0x11111d4e0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 -async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000:max_soft_comp=0.000042. [graph 1 aresample for input stream 0:1 @ 0x11111d640] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz [libx264 @ 0x7f87e214fe00] using SAR=1/1 [libx264 @ 0x7f87e214fe00] frame MB size (60x34) > level limit (1620) [libx264 @ 0x7f87e214fe00] DPB size (4 frames, 3133440 bytes) > level limit (3 frames, 3110400 bytes) [libx264 @ 0x7f87e214fe00] MB rate (51000) > level limit (40500) [libx264 @ 0x7f87e214fe00] using cpu capabilities: none! [libx264 @ 0x7f87e214fe00] profile Main, level 3.0 [mpegts @ 0x7f87e214f800] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to './encoded.ts': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00:00 encoder : Lavf54.14.100 Stream #0:0(eng): Video: h264, yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-51, 1200 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-12-05 10:56:28 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, flt, 128 kb/s Metadata: creation_time : 2011-12-05 10:56:28 handler_name : Apple Sound Media Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> aac) Press [q] to stop, [?] for help frame= 17 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 36 fps= 35 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 47 fps= 31 q=20.0 size= 3kB time=00:00:00.-4 bitrate=-601.6kbits/Encoder did not produce proper pts, making some up. frame= 62 fps= 30 q=10.0 size= 36kB time=00:00:00.56 bitrate= 529.1kbits/frame= 76 fps= 30 q=10.0 size= 66kB time=00:00:01.12 bitrate= 486.1kbits/frame= 91 fps= 30 q=10.0 size= 102kB time=00:00:01.72 bitrate= 487.9kbits/frame= 104 fps= 29 q=22.0 size= 123kB time=00:00:02.24 bitrate= 449.9kbits/frame= 116 fps= 28 q=26.0 size= 232kB time=00:00:02.72 bitrate= 700.0kbits/frame= 126 fps= 27 q=22.0 size= 309kB time=00:00:03.12 bitrate= 811.3kbits/frame= 138 fps= 27 q=25.0 size= 439kB time=00:00:03.60 bitrate= 998.9kbits/frame= 150 fps= 27 q=30.0 size= 527kB time=00:00:04.08 bitrate=1057.6kbits/frame= 164 fps= 26 q=33.0 size= 592kB time=00:00:04.64 bitrate=1044.4kbits/frame= 176 fps= 26 q=31.0 size= 647kB time=00:00:05.12 bitrate=1035.8kbits/frame= 189 fps= 26 q=23.0 size= 760kB time=00:00:05.64 bitrate=1104.5kbits/frame= 204 fps= 26 q=30.0 size= 923kB time=00:00:06.24 bitrate=1212.1kbits/frame= 219 fps= 27 q=41.0 size= 971kB time=00:00:06.84 bitrate=1163.0kbits/frame= 235 fps= 27 q=41.0 size= 1117kB time=00:00:07.48 bitrate=1223.7kbits/frame= 250 fps= 27 q=36.0 size= 1130kB time=00:00:08.08 bitrate=1145.5kbits/frame= 264 fps= 27 q=36.0 size= 1239kB time=00:00:08.64 bitrate=1174.8kbits/frame= 280 fps= 27 q=34.0 size= 1274kB time=00:00:09.28 bitrate=1124.4kbits/frame= 296 fps= 27 q=26.0 size= 1434kB time=00:00:09.92 bitrate=1184.4kbits/frame= 312 fps= 27 q=31.0 size= 1474kB time=00:00:10.56 bitrate=1143.7kbits/frame= 328 fps= 28 q=26.0 size= 1653kB time=00:00:11.20 bitrate=1209.1kbits/frame= 343 fps= 28 q=30.0 size= 1678kB time=00:00:11.80 bitrate=1164.8kbits/frame= 358 fps= 28 q=24.0 size= 1832kB time=00:00:12.40 bitrate=1210.1kbits/frame= 373 fps= 28 q=25.0 size= 1857kB time=00:00:13.00 bitrate=1170.2kbits/frame= 388 fps= 28 q=20.0 size= 2015kB time=00:00:13.60 bitrate=1214.0kbits/frame= 403 fps= 28 q=24.0 size= 2047kB time=00:00:14.20 bitrate=1181.0kbits/frame= 418 fps= 28 q=20.0 size= 2212kB time=00:00:14.80 bitrate=1224.1kbits/frame= 433 fps= 28 q=29.0 size= 2253kB time=00:00:15.40 bitrate=1198.4kbits/frame= 448 fps= 28 q=23.0 size= 2408kB time=00:00:16.00 bitrate=1232.8kbits/frame= 462 fps= 28 q=31.0 size= 2440kB time=00:00:16.56 bitrate=1207.1kbits/frame= 476 fps= 28 q=24.0 size= 2590kB time=00:00:17.12 bitrate=1239.5kbits/frame= 491 fps= 28 q=36.0 size= 2618kB time=00:00:17.72 bitrate=1210.2kbits/frame= 507 fps= 28 q=32.0 size= 2793kB time=00:00:18.36 bitrate=1246.1kbits/frame= 522 fps= 28 q=22.0 size= 2817kB time=00:00:18.96 bitrate=1217.2kbits/frame= 537 fps= 28 q=22.0 size= 2980kB time=00:00:19.56 bitrate=1248.1kbits/frame= 551 fps= 28 q=32.0 size= 3068kB time=00:00:20.12 bitrate=1249.1kbits/frame= 564 fps= 28 q=32.0 size= 3190kB time=00:00:20.64 bitrate=1266.1kbits/frame= 580 fps= 28 q=35.0 size= 3236kB time=00:00:21.28 bitrate=1245.8kbits/frame= 595 fps= 28 q=35.0 size= 3382kB time=00:00:21.88 bitrate=1266.4kbits/frame= 605 fps= 27 q=0.0 Lsize= 3616kB time=00:00:24.12 bitrate=1228.1kbits/s video:2886kB audio:359kB subtitle:0 global headers:0kB muxing overhead 11.412771% [libx264 @ 0x7f87e214fe00] frame I:21 Avg QP:21.60 size: 87666 [libx264 @ 0x7f87e214fe00] frame P:259 Avg QP:24.97 size: 4221 [libx264 @ 0x7f87e214fe00] frame B:325 Avg QP:27.97 size: 65 [libx264 @ 0x7f87e214fe00] consecutive B-frames: 27.8% 1.0% 2.5% 68.8% [libx264 @ 0x7f87e214fe00] mb I I16..4: 55.4% 0.0% 44.6% [libx264 @ 0x7f87e214fe00] mb P I16..4: 4.8% 0.0% 1.1% P16..4: 17.7% 3.0% 0.6% 0.0% 0.0% skip:72.8% [libx264 @ 0x7f87e214fe00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.3% 0.1% 0.0% direct: 0.1% skip:99.4% L0:38.8% L1:35.8% BI:25.4% [libx264 @ 0x7f87e214fe00] coded y,uvDC,uvAC intra: 57.0% 8.3% 0.3% inter: 4.2% 2.3% 0.1% [libx264 @ 0x7f87e214fe00] i16 v,h,dc,p: 57% 16% 22% 5% [libx264 @ 0x7f87e214fe00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 21% 18% 5% 10% 7% 5% 4% 10% [libx264 @ 0x7f87e214fe00] i8c dc,h,v,p: 92% 3% 6% 0% [libx264 @ 0x7f87e214fe00] Weighted P-Frames: Y:13.1% UV:2.7% [libx264 @ 0x7f87e214fe00] kb/s:977.06 From inbox.mirror.orbisoft at gmail.com Thu Jul 19 12:52:44 2012 From: inbox.mirror.orbisoft at gmail.com (Orbisoft Support) Date: Thu, 19 Jul 2012 22:52:44 +1200 Subject: [FFmpeg-user] Newbie questions Message-ID: Hi I have just used ffmpeg for the first time today. I have a few questions. This is what I am trying to achieve: - I want a horizontal news scroller video going across the bottom of the screen - So I used ASP.NET VB code to create one wide bitmap image (25000 x 30 pixels) - On that image I used ASP.NET .DrawString to draw text (Arial 18 Bold) based on one large text string which contained news item text from a RSS - From that I extracted and saved 25000 png images, all 1920 x 30 pixels but each starting at point x from the original image where x=x+1 - Then I used the following to create a movie of it: c:\mytemp>ffmpeg -f image2 -i c:\mytemp\images\image%d.png c:\mytemp\video\video.mpg Questions: 1) What is the maximum frame rate I can use? Currently although it is smooth, it takes about 33 seconds to go from right to left since it is only moving at one pixel at a time. I want it to take about 12 seconds 2) Should I use PNG format images or choose something else (ASP.NET lets me choose the image format to Save As)? 3) I want to embed the movie on a webpage. What then is the best video format for that? 4) Are there any other things I should do to optimize the quality, smoothness and file size? Currently the movie is 92 MB. TIA Mark From placencio87 at hotmail.com Thu Jul 19 14:54:03 2012 From: placencio87 at hotmail.com (=?iso-8859-1?B?RmVsaXBlIEzzcGV6IFBsYWNlbmNpbw==?=) Date: Thu, 19 Jul 2012 08:54:03 -0400 Subject: [FFmpeg-user] Big file webcam In-Reply-To: References: <1342537134143-4651854.post@n4.nabble.com>, Message-ID: Dear Roger, Thanks for your answer. I appreciate it. I have tried to achieve 25 fps to 640x480, 800x600 or 1280x720 pixels. I tried with a lot of commands, for example: - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 2M -bt 4M -vcodec libx264 -vpre hq -t 10 output.mp4 - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -vcodec libx264 -vpre hq -crf 26 -threads 0 -t 10 output2.mp4 - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -r 30000/1001 -b 2M -bt 4M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 output3.mp4 ffmpeg -y -i output3.mp4 -r 30000/1001 -b 2M -bt 4M -vcodec libx264 -pass 2 -vpre hq -acodec libfaac -ac 2 -ar 48000 -ab 192k output4.mp4 - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 4M -bt 4M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 output3.mp4 ffmpeg -y -i output3.mp4 -r 30000/1001 -b 4M -bt 4M -vcodec libx264 -pass 2 -vpre hq output4.mp4 - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 8M -bt 8M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 2-1.mp4 ffmpeg -y -i 2-1.mp4 -r 30000/1001 -b 4M -bt 4M -vcodec libx264 -pass 2 -vpre hq 2-2.mp4 - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -acodec libfaac -ab 96k -b 8M -bt 8M -vcodec libx264 -vpre slow -crf 22 -threads 0 -t 10 bueno.mp4 With sound: - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 720x480 -r 25 -i /dev/video0 -acodec libmp3lame -ab 64k -b 2M -bt 2M -vcodec libx264 -vpre slow -crf 22 -threads 0 -async 1 out.avi - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 720x480 -r 25 -i /dev/video0 -acodec libmp3lame -ab 64k -b 2M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 18 -threads 0 out.avi Obviously I'm trying changing the bitrate, -bt, -crf, resolution (-s), and so on. The last 2 commands works fine, but the image has distortions. Looks a bit stuck (I don't know if it the correct word, sorry haha) If you need more information, don't hesitate in ask me. Best regards from Chile Felipe L?pez P. > From: rogerdpack2 at gmail.com > Date: Wed, 18 Jul 2012 18:29:02 -0600 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Big file webcam > > > I'm trying to capture video from my Microsoft Lifecam Studio. I tried with a > > lot of commands and I achieved a good quality some times, but the problem is > > that the good quality give it me a very big file. The idea is get the video > > in 640x480 pixels or more, to 6 [MB/min] or less if it is possible. > > > > Now, the videos with good quality that I got, are bigger than 20 MB/min. > > What's your current command line and full uncut console output? How > many fps are you trying to achieve? (for me mp4 has worked pretty well > in the past...libx264 might also help) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rhodri at kynesim.co.uk Thu Jul 19 14:56:22 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Thu, 19 Jul 2012 13:56:22 +0100 Subject: [FFmpeg-user] CPU load/performance change In-Reply-To: References: Message-ID: On Thu, 19 Jul 2012 06:55:48 +0100, Carl Eugen Hoyos wrote: > eric cocuzza hotmail.com> writes: > >> It takes X cycles to do do a 480P H.264 encoding/decoding then >> how much it would change if the same software we >> use to do 1080P H264 Encoding/decoding. > > I am quite sure this question cannot be answered. > That said, I would expect linear performance behaviour. Shouldn't it nearer to square, given that height is changing as well as width? -- Rhodri James Kynesim Ltd From dpcnull at gmail.com Tue Jul 17 01:52:53 2012 From: dpcnull at gmail.com (Darlyn) Date: Mon, 16 Jul 2012 19:52:53 -0400 Subject: [FFmpeg-user] Keep the original timestamp i.e. Date Modified/Date Created/Date? Message-ID: Converting some vids, need to keep the original Date Modified/Date Created/Date data. How do I do it? From gururaj.padaki at gmail.com Tue Jul 17 11:35:03 2012 From: gururaj.padaki at gmail.com (gururaj.padaki) Date: Tue, 17 Jul 2012 02:35:03 -0700 (PDT) Subject: [FFmpeg-user] TS Bitrate conversion tool Message-ID: <1342517703288-4651852.post@n4.nabble.com> Hi , I am looking for a tool which converts TS bitrate from lower to higher my inserting null packets (along with PCR time stamp modification).Is there any tool available as part of FFMPEG ? After changing PCR values we need to change DTS/PTS time stamps also ? Thanks in advance for your information. With Regards, - Gururaj -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/TS-Bitrate-conversion-tool-tp4651852.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From infofrenchcookies at gmail.com Tue Jul 17 21:28:30 2012 From: infofrenchcookies at gmail.com (Daniel Nicolas) Date: Tue, 17 Jul 2012 12:28:30 -0700 Subject: [FFmpeg-user] Can you help with ffmpeg? Message-ID: Hi Everyone I need help in installing ffmpeg in a dedicated server : centos6 / Plesk Can you help me out? I cannot do it myself. Thank you very much Daniel Nicolas 949-933 0800 From ericcocuzza12 at hotmail.com Thu Jul 19 20:36:33 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Thu, 19 Jul 2012 14:36:33 -0400 Subject: [FFmpeg-user] CPU load/performance change In-Reply-To: References: , , Message-ID: Square means 2-4 times right? > To: ffmpeg-user at ffmpeg.org > Date: Thu, 19 Jul 2012 13:56:22 +0100 > From: rhodri at kynesim.co.uk > Subject: Re: [FFmpeg-user] CPU load/performance change > > On Thu, 19 Jul 2012 06:55:48 +0100, Carl Eugen Hoyos > wrote: > > > eric cocuzza hotmail.com> writes: > > > >> It takes X cycles to do do a 480P H.264 encoding/decoding then > >> how much it would change if the same software we > >> use to do 1080P H264 Encoding/decoding. > > > > I am quite sure this question cannot be answered. > > That said, I would expect linear performance behaviour. > > Shouldn't it nearer to square, given that height is changing > as well as width? > > -- > Rhodri James > Kynesim Ltd > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ericcocuzza12 at hotmail.com Thu Jul 19 20:37:31 2012 From: ericcocuzza12 at hotmail.com (eric cocuzza) Date: Thu, 19 Jul 2012 14:37:31 -0400 Subject: [FFmpeg-user] CPU load/performance change In-Reply-To: References: , Message-ID: I am not saying 100% accurate results but can be approximately change. > To: ffmpeg-user at ffmpeg.org > From: cehoyos at ag.or.at > Date: Thu, 19 Jul 2012 05:55:48 +0000 > Subject: Re: [FFmpeg-user] CPU load/performance change > > eric cocuzza hotmail.com> writes: > > > It takes X cycles to do do a 480P H.264 encoding/decoding then > > how much it would change if the same software we > > use to do 1080P H264 Encoding/decoding. > > I am quite sure this question cannot be answered. > That said, I would expect linear performance behaviour. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Thu Jul 19 21:19:39 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Jul 2012 19:19:39 +0000 (UTC) Subject: [FFmpeg-user] CPU load/performance change References: Message-ID: Rhodri James kynesim.co.uk> writes: > >> It takes X cycles to do do a 480P H.264 encoding/decoding then > >> how much it would change if the same software we > >> use to do 1080P H264 Encoding/decoding. > > > > I am quite sure this question cannot be answered. > > That said, I would expect linear performance behaviour. > > Shouldn't it nearer to square, given that height is changing > as well as width? I of course meant linear with respect to the number of pixels, but I may be wrong... (and I may have been unclear) Carl Eugen From focustelev at gmail.com Thu Jul 19 21:29:17 2012 From: focustelev at gmail.com (focus television) Date: Thu, 19 Jul 2012 20:29:17 +0100 Subject: [FFmpeg-user] Server authentication using user name and password Message-ID: <5008600D.4010608@gmail.com> Hi, I have a requirement to show a demo. The user was using amazon and using Flash Media Encoder which create an RTMP stream But it needs a user id and password to connect . I am not sure how i can implement this since i am using Ubuntu and ffmepg.They will encode and send it to the server . I need to stream it to show a demo. Can we implement it using ffmpeg or do i need to configure using ubuntu? I tried this but not sure if it is correct ffmpeg -i priest.mp4 -loglevel verbose -f flv "rtmp://localhost:1935/tv/livestream?username=user&password=pass" Regards, George From marshadsaleem at tataelxsi.co.in Fri Jul 20 09:17:50 2012 From: marshadsaleem at tataelxsi.co.in (Mohd Arshad Saleem) Date: Fri, 20 Jul 2012 12:47:50 +0530 Subject: [FFmpeg-user] Regarding decoding the video data Message-ID: <5009061E.3020305@tataelxsi.co.in> Hi Team, We are working on H264 decoder side in which we are trying to decode the video data by using avcodec_decode_video() API. Two questions i would like to ask:- 1) Just wanted to know the size or length of decoded data which we are receiving and in which field of structure the decoded data is getting stored. 2) In AVFrame structure what is int linesize[4] field and char *data[4]. We will highly thankful to you. Thanks and Regards Arshad From mattgoble at gmail.com Fri Jul 20 11:16:49 2012 From: mattgoble at gmail.com (Matt Goble) Date: Fri, 20 Jul 2012 10:16:49 +0100 Subject: [FFmpeg-user] Number of stream maps must match number of output streams - having trouble with the syntax Message-ID: I have a video file which appears to have a video / audio offset which is causing my client some issues. I've tried to google a solution, but I seem to be having an issue with getting the syntax correct. ffmpeg -i "T:\INPUT.mov" -itsoffset 0.48 -i "T:\INPUT.mov" -map 1:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -vcodec copy -acodec copy "T:\OUTPUT.mov" -vcodec copy -newvideo -newaudio FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers built on Oct 18 2010 04:06:45 with gcc 4.4.2 configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame -- enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable- libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable -libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign -hack libavutil 50.32. 3 / 50.32. 3 libavcore 0. 9. 1 / 0. 9. 1 libavcodec 52.92. 0 / 52.92. 0 libavformat 52.83. 0 / 52.83. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.52. 0 / 1.52. 0 libswscale 0.12. 0 / 0.12. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\INPUT.mov': Duration: 00:32:55.60, start: 0.480000, bitrate: 58351 kb/s Stream #0.0(eng): Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc Stream #0.1(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0.5(eng): Data: tmcd / 0x64636D74 Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\INPUT.mov': Duration: 00:32:55.60, start: 0.480000, bitrate: 58351 kb/s Stream #1.0(eng): Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc Stream #1.1(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #1.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #1.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #1.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #1.5(eng): Data: tmcd / 0x64636D74 Number of stream maps must match number of output streams Any help greatly appreciated. Thanks Matt From nichot20 at yahoo.com Fri Jul 20 11:57:28 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 20 Jul 2012 10:57:28 +0100 Subject: [FFmpeg-user] Number of stream maps must match number of output streams - having trouble with the syntax In-Reply-To: References: Message-ID: <50092B88.4020809@yahoo.com> On 20/07/12 10:16, Matt Goble wrote: > I have a video file which appears to have a video / audio offset which is > causing my client some issues. > > I've tried to google a solution, but I seem to be having an issue with > getting the syntax correct. > > ffmpeg > > -i "T:\INPUT.mov" > -itsoffset 0.48 -i "T:\INPUT.mov" > -map 1:0 > -map 0:1 > -map 0:2 > -map 0:3 > -map 0:4 > -map 0:5 > -vcodec copy > -acodec copy > "T:\OUTPUT.mov" -vcodec copy -newvideo -newaudio > > FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers > [....] > Number of stream maps must match number of output streams > > Any help greatly appreciated. > From:0 http://ffmpeg.org/ffmpeg.html#Stream-selection "By default ffmpeg includes only one stream of each type (video, audio, subtitle) present in the input files and adds them to each output file..." You have requested -newvideo and -newaudio leading to 2 video and two audio, but you are trying to map two videos and 4 audios... Do you really want the video twice? try .... -map 1:v -map 0:a -vcodec copy -acodec copy "T:\OUTPUT.mov" > Thanks > > Matt > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Tim From james.darnley at gmail.com Fri Jul 20 12:00:27 2012 From: james.darnley at gmail.com (James Darnley) Date: Fri, 20 Jul 2012 12:00:27 +0200 Subject: [FFmpeg-user] Number of stream maps must match number of output streams - having trouble with the syntax In-Reply-To: References: Message-ID: <50092C3B.5010606@gmail.com> On 2012-07-20 11:16, Matt Goble wrote: > ffmpeg > > -i "T:\INPUT.mov" > -itsoffset 0.48 -i "T:\INPUT.mov" > -map 1:0 > -map 0:1 > -map 0:2 > -map 0:3 > -map 0:4 > -map 0:5 > -vcodec copy > -acodec copy > "T:\OUTPUT.mov" -vcodec copy -newvideo -newaudio > Number of stream maps must match number of output streams What is ambiguous about this? You have 6 maps but only 4 streams: 1 default video stream 1 default audio stream 1 newvideo stream 1 newaudio stream You need at two more -new* options. > FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers This is two years old, you might want to try updating if you don't like the way to add more streams in this version. From ali.shaheen at popcatcher.com Fri Jul 20 12:30:04 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Fri, 20 Jul 2012 12:30:04 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: Hi, I am using ffmpeg to decode AAC stream on android device. but it consumes > 90% CPU and i am not able to play on slow devices. Any suggestions? Other option is OpenCore AAC decoder which uses very less CPU but in my project i am using ffmpeg for decoding other formats as well.. So it would be good if i am able to decode aac with ffmpeg as well. Any recommendations? From chaupv79 at hotmail.com Fri Jul 20 12:59:38 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Fri, 20 Jul 2012 10:59:38 +0000 Subject: [FFmpeg-user] SDL and Video device - swscaler - 640x360 - 0x0 is invalid scaling dimension In-Reply-To: <20120718084323.GB7251@phare.normalesup.org> References: , <20120718084323.GB7251@phare.normalesup.org> Message-ID: Hi Everybody, Thank Nicolas, it's old example but I have modified it to suitable ffmpeg version, c code: ==================================== #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libswscale/swscale.h" #include #include #include int main(int argc, char *argv[]) { AVFormatContext *pFormatCtx; int i, videoStream; AVCodecContext *pCodecCtx; AVCodec *pCodec; AVFrame *pFrame; AVPacket packet; int frameFinished; float aspect_ratio; static struct SwsContext *img_convert_ctx; SDL_Overlay *bmp; SDL_Surface *screen; SDL_Rect rect; SDL_Event event; pFormatCtx = NULL; pCodecCtx = NULL; pFrame = NULL; if(argc < 2) { fprintf(stderr, "Usage: test \n"); exit(1); } //Register all formats and codecs av_register_all(); if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError()); exit(1); } // Open video file if(avformat_open_input(&pFormatCtx, argv[1], NULL, NULL)!=0) return -1; // Couldn't open file // Retrieve stream information if(av_find_stream_info(pFormatCtx)<0) return -1; // Couldn't find stream information // Dump information about file onto standard error av_dump_format(pFormatCtx, 0, argv[1], 0); // Find the first video stream videoStream=-1; for(i=0; inb_streams; i++) if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) { videoStream=i; break; } if(videoStream==-1) return -1; // Didn't find a video stream // Get a pointer to the codec context for the video stream pCodecCtx=pFormatCtx->streams[videoStream]->codec; // Find the decoder for the video stream pCodec=avcodec_find_decoder(pCodecCtx->codec_id); if(pCodec==NULL) { fprintf(stderr, "Unsupported codec!\n"); return -1; // Codec not found } // Open codec if(avcodec_open(pCodecCtx, pCodec)<0) return -1; // Could not open codec // Allocate video frame pFrame=avcodec_alloc_frame(); // Make a screen to put our video #ifndef __DARWIN__ screen = SDL_SetVideoMode(pCodecCtx->width, pCodecCtx->height, 0, 0); #else screen = SDL_SetVideoMode(pCodecCtx->width, pCodecCtx->height, 24, 0); #endif if(!screen) { fprintf(stderr, "SDL: could not set video mode - exiting\n"); exit(1); } // Allocate a place to put our YUV image on that screen bmp = SDL_CreateYUVOverlay(pCodecCtx->width, pCodecCtx->height, SDL_YV12_OVERLAY, screen); // Read frames and save first five frames to disk //***************************** AVFrame *pFrameRGB = avcodec_alloc_frame(); uint8_t *buffer; int numBytes = avpicture_get_size(PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height); buffer = (uint8_t *) av_malloc(numBytes*sizeof(uint8_t)); avpicture_fill((AVPicture*) pFrameRGB, buffer, PIX_FMT_YUVJ420P, pCodecCtx->width, pCodecCtx->height); //*************************** i=0; while(av_read_frame(pFormatCtx, &packet)>=0) { // Is this a packet from the video stream? if(packet.stream_index==videoStream) { // Decode video frame avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet); // Did we get a video frame? if(frameFinished) { //convert the image to RGB img_convert_ctx = sws_getContext(pFrame->width, pFrame->height, pCodecCtx->pix_fmt, pFrameRGB->width, pFrameRGB->height, PIX_FMT_YUVJ420P, SWS_BICUBIC, NULL, NULL, NULL); if(img_convert_ctx == NULL){ fprintf(stderr, "Cannot initialize the conversion context!\n"); return -1; } SDL_LockYUVOverlay(bmp); AVPicture pict; pict.data[0] = bmp->pixels[0]; pict.data[1] = bmp->pixels[2]; pict.data[2] = bmp->pixels[1]; pict.linesize[0] = bmp->pitches[0]; pict.linesize[1] = bmp->pitches[2]; pict.linesize[2] = bmp->pitches[1]; // Convert the image into YUV format that SDL uses //sws_scale(&pict, PIX_FMT_YUV420P,(AVPicture *)pFrame, 0, pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height); sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameRGB->data, pFrameRGB->linesize); SDL_UnlockYUVOverlay(bmp); rect.x = 0; rect.y = 0; rect.w = pCodecCtx->width; rect.h = pCodecCtx->height; SDL_DisplayYUVOverlay(bmp, &rect); } printf("7-4\n"); } // Free the packet that was allocated by av_read_frame av_free_packet(&packet); SDL_PollEvent(&event); switch(event.type) { case SDL_QUIT: SDL_Quit(); exit(0); break; default: break; } } // Free the YUV frame av_free(pFrame); // Close the codec avcodec_close(pCodecCtx); // Close the video file av_close_input_file(pFormatCtx); return 0; } ==================================== I created new user and repeated the work, however the error occurs as same as before [swscaler @ 0x147b480] 727x480 -> 0x0 is invalid scaling dimension => I think, the error is in ffmpeg's sws_getContext function in libswscale mudule. img_convert_ctx = sws_getContext(pFrame->width, pFrame->height, pCodecCtx->pix_fmt, pFrameRGB->width, pFrameRGB->height, PIX_FMT_YUVJ420P, SWS_BICUBIC, NULL, NULL, NULL); Thank You, Chau Pham. Date: Wed, 18 Jul 2012 10:43:23 +0200 From: nicolas.george at normalesup.org To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] SDL and Video device - swscaler - 640x360 - 0x0 is invalid scaling dimension Le primidi 1er thermidor, an CCXX, Chau Pham a ?crit : > > Hi Everybody, > > I compiled and use ffmpeg for tutorial02 in Dranger guideline: > http://dranger.com/ffmpeg/tutorial02.html This tutorial is grossly obsolete with regard to ffmpeg API. It uses img_convert, which has been completely removed more than three years ago and was already deprecated three years before that. It also uses avcodec_decode_video, that was also deprecated three years ago. > it requires SDL, then I installed SDL and set display: > > export DISPLAY=:0.0 > > but when I play mpeg file: > > [root at CENT6 working]# ./tutorial02 advertisement.mpg This is not related to your problem, but you should know that working like that with the root account is usually a very bad idea. That is also the reason you need to set the display. Regards, -- Nicolas George _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mani.goswami at gmail.com Fri Jul 20 13:41:52 2012 From: mani.goswami at gmail.com (Mani Goswami) Date: Fri, 20 Jul 2012 17:11:52 +0530 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp Message-ID: I am trying following command to do this: ffmpeg -i video_new.3gp -b:v 64k -vcodec h263 -acodec aac newgph263.3gp It always fails with following error message: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Here si the exact output: *[root at manig movies]# ffmpeg -i video_new.3gp -b:v 64k -vcodec h263 -acodec aac newgph263.3gp* *Metadata:* * major_brand : 3gp5* * minor_version : 0* * compatible_brands: 3gp53gp4mp41mp42isom* * creation_time : 1942-05-31 01:31:41* * Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s* * Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16, 15 kb/s* * Metadata:* * creation_time : 1942-05-31 01:31:41* * handler_name : Apple Sound Media Handler* * Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, 10 fps, 10 tbr, 10 tbn, 1k tbc* * Metadata:* * creation_time : 1942-05-31 01:31:41* * handler_name : Apple Video Media Handler* * Stream #0:2(und): Data: none (rtp / 0x20707472)* * Metadata:* * creation_time : 1942-05-30 00:34:36* * handler_name : GPAC ISO Hint Handler* * Stream #0:3(und): Data: none (rtp / 0x20707472)* * Metadata:* * creation_time : 1942-05-30 00:34:36* * handler_name : GPAC ISO Hint Handler* *File 'newgph263.3gp' already exists. Overwrite ? [y/N] y* *w/h must be a multiple of 4* *Output #0, 3gp, to 'newgph263.3gp':* * Metadata:* * major_brand : 3gp5* * minor_version : 0* * compatible_brands: 3gp53gp4mp41mp42isom* * Stream #0:0(eng): Video: h263, yuv420p, 240x302 [SAR 12:11 DAR 1440:1661], q=2-31, 64 kb/s, 90k tbn, 10 tbc* * Metadata:* * creation_time : 1942-05-31 01:31:41* * handler_name : Apple Video Media Handler* * Stream #0:1(eng): Audio: none, 16000 Hz, mono, flt, 128 kb/s* * Metadata:* * creation_time : 1942-05-31 01:31:41* * handler_name : Apple Sound Media Handler* *Stream mapping:* * Stream #0:1 -> #0:0 (mpeg4 -> h263)* * Stream #0:0 -> #0:1 (aac -> aac)* *Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height* * * * * * * Here is the version information: [root at manig movies]# ffmpeg -version ffmpeg version N-42690-gb34ce5a built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat 4.1.2-14) configuration: libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 42.100 / 54. 42.100 libavformat 54. 17.101 / 54. 17.101 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 From glueball at gmail.com Fri Jul 20 14:27:37 2012 From: glueball at gmail.com (Jaume Lopez) Date: Fri, 20 Jul 2012 14:27:37 +0200 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: 2012/7/20 Mani Goswami > ffmpeg -i video_new.3gp -b:v 64k -vcodec h263 -acodec aac newgph263.3gp > Try adding -strict experimental From coniophora at gmail.com Fri Jul 20 14:30:09 2012 From: coniophora at gmail.com (Jim Worrall) Date: Fri, 20 Jul 2012 06:30:09 -0600 Subject: [FFmpeg-user] problems when updated the r-26400 version to the latest git version In-Reply-To: References: Message-ID: On Jul 19, 2012, at 1:46 AM, ??? wrote: > I used to use ffmpeg version r-26400 that is the svn-version > I encode videos into x264 + faac with the command as follow: > > Now,I want to upgrade my ffmpeg to the latest git version. > I found there is no preset named fastfirstpass or normal.So I copy the options in this to file.I get result as follow: > > command: > ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 3 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null > > Unrecognized option 'directpred' > Failed to set value '3' for option 'directpred' > > command: > ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null > > Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height > > How can I use the lastest version ffmpeg to encode videos as the version r-26400 with 2-pass model? > In the ffmpeg command line, you can use -vprofile and -preset to control those options in x264. You can type "x264 --fullhelp" to see what those options are (--profile and --preset). Some combination of these should get you what you want. You can also use -x264opts to specify additional options in x264. For example, part of a command line I sometimes use is -c:v libx264 -vprofile main -preset slower -x264opts level=3.1:crf=17 Unless you are a real x264 expert, it's better to control these high-level settings and let them dictate the low-level settings. Jim From focustelev at gmail.com Fri Jul 20 14:37:07 2012 From: focustelev at gmail.com (focus television) Date: Fri, 20 Jul 2012 13:37:07 +0100 Subject: [FFmpeg-user] Can login Message-ID: <500950F3.2070500@gmail.com> Hi Team, I am using wowza ffmpeg -re -i priest.mp4 -c:v libx264 -b:v 512k -s 640x360 -c:a copy -loglevel verbose -f flv "rtmp://localhost/tv/livestream?username=myusername&password=mypassword" But when i connect i am getting error. I used FLME to connect using user name and password and it is logging in Am i using the right format for username and password? Property: Property: Property: NULL Property: (object begin) Property: Property: Property: Property: (object end) (object end) HandleInvoke, server invoking HandleInvoke, onStatus: NetStream.Publish.Failed Regards, George From mattgoble at gmail.com Fri Jul 20 14:45:48 2012 From: mattgoble at gmail.com (Matt Goble) Date: Fri, 20 Jul 2012 13:45:48 +0100 Subject: [FFmpeg-user] Incorrect Parameters for -vcodec copy / -acodec copy Message-ID: Based on the previous advice, I have upgraded ffmpeg to the latest static build, and I now seem to be unable to even do a single video / audio stream copy. Apologies if this is really simple stuff - if someone can point me in the direction of examples that would be a great help. ffmpeg -i "T:INPUTmov" -itsoffset 0.48 -i "T:\INPUT.mov" -map 1:0 -vcodec copy -map 0:1 -acodec copy "T:\OUTPUT.mov" ffmpeg version N-42616-g204c4e9 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 18 2012 20:21:54 with gcc 4.7.1 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. 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 [mov,mp4,m4a,3gp,3g2,mj2 @ 0233ca60] Stream #1: not enough frames to estimate ra te; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0233ca60] Stream #2: not enough frames to estimate ra te; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0233ca60] Stream #3: not enough frames to estimate ra te; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 0233ca60] Stream #5: not enough frames to estimate ra te; consider increasing probesize Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\INPUT.mov': Duration: 00:32:55.00, start: 0.480000, bitrate: 58368 kb/s Stream #0:0(eng): Video: mpeg2video (4:2:2) (xd5c / 0x63356478), yuv422p, 19 20x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc Metadata: handler_name : Apple Alias Data Handler timecode : 09:58:33:17 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #0:5(eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : Apple Alias Data Handler timecode : 09:58:33:17 [mov,mp4,m4a,3gp,3g2,mj2 @ 02874b00] Stream #1: not enough frames to estimate ra te; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 02874b00] Stream #2: not enough frames to estimate ra te; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 02874b00] Stream #3: not enough frames to estimate ra te; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 02874b00] Stream #5: not enough frames to estimate ra te; consider increasing probesize Guessed Channel Layout for Input Stream #1.1 : mono Guessed Channel Layout for Input Stream #1.2 : mono Guessed Channel Layout for Input Stream #1.3 : mono Guessed Channel Layout for Input Stream #1.4 : mono Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\INPUT.mov': Duration: 00:32:55.00, start: 0.480000, bitrate: 58368 kb/s Stream #1:0(eng): Video: mpeg2video (4:2:2) (xd5c / 0x63356478), yuv422p, 19 20x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc Metadata: handler_name : Apple Alias Data Handler timecode : 09:58:33:17 Stream #1:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #1:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #1:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #1:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream #1:5(eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : Apple Alias Data Handler timecode : 09:58:33:17 [mov @ 02850ae0] Timecode frame rate not supported Output #0, mov, to 'T:\OUTPUT.mov': Metadata: encoder : Lavf54.17.100 Stream #0:0(eng): Video: mpeg2video (xd5c / 0x63356478), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 25 fps, 2500 tbn, 2500 tbc Metadata: handler_name : Apple Alias Data Handler timecode : 09:58:33:17 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, 1152 kb/s Metadata: handler_name : Apple Alias Data Handler Stream mapping: Stream #1:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted I am trying to fix the video / audio offset in this file as described in this article here - http://www.kkoncepts.net/node/69 - but instead of transcoding to a new file, I just want to re-mux the streams with the offset corrected. Ultimately I need to do it with all 4 audio tracks and the timecode track, but since upgrading I cannot seem to even do the most simplest part of the process. Many Thanks Matt From rhodri at kynesim.co.uk Fri Jul 20 14:58:39 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Fri, 20 Jul 2012 13:58:39 +0100 Subject: [FFmpeg-user] CPU load/performance change In-Reply-To: References: Message-ID: On Thu, 19 Jul 2012 19:36:33 +0100, eric cocuzza wrote: > From: rhodri at kynesim.co.uk >> >> On Thu, 19 Jul 2012 06:55:48 +0100, Carl Eugen Hoyos >> wrote: >> >> > eric cocuzza hotmail.com> writes: >> > >> >> It takes X cycles to do do a 480P H.264 encoding/decoding then >> >> how much it would change if the same software we >> >> use to do 1080P H264 Encoding/decoding. >> > >> > I am quite sure this question cannot be answered. >> > That said, I would expect linear performance behaviour. >> >> Shouldn't it nearer to square, given that height is changing >> as well as width? >> > Square means 2-4 times right? No, it means square. As Carl Eugen put it elsewhere, time should be (roughly) proportional to the number of pixels being processed, i.e. the area of the screen. Going from 480P to 1080P you are making both the width and the height of your movie 2.25 times bigger, so you are making the area of the movie (the number of pixels involved) 2.25 * 2.25 = 5.0625 times bigger. So your movie will take roughly five times longer to encode or decode. It isn't quite that simple, of course. Dedicated hardware might scale better, small memory cache sizes might make things much worse, and a host of other factors could affect the answer. As a rough rule of thumb, that ought to do, though. -- Rhodri James Kynesim Ltd From nichot20 at yahoo.com Fri Jul 20 15:27:52 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 20 Jul 2012 14:27:52 +0100 Subject: [FFmpeg-user] Incorrect Parameters for -vcodec copy / -acodec copy In-Reply-To: References: Message-ID: <50095CD8.5040005@yahoo.com> On 20/07/12 13:45, Matt Goble wrote: > Based on the previous advice, I have upgraded ffmpeg to the latest static > build, and I now seem to be unable to even do a single video / audio stream > copy. > > Apologies if this is really simple stuff - if someone can point me in the > direction of examples that would be a great help. > > ffmpeg > -i "T:INPUTmov" > -itsoffset 0.48 -i "T:\INPUT.mov" > -map 1:0 -vcodec copy > -map 0:1 -acodec copy > "T:\OUTPUT.mov" > > ffmpeg version N-42616-g204c4e9 Copyright (c) 2000-2012 the FFmpeg > developers > [...] > Stream mapping: > Stream #1:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Could not write header for output file #0 (incorrect codec parameters ?): > Operation not permitted > I wonder if use of -itsoffset is incompatible with -vcodec copy? Your source material is long GOP mpeg and you wish to start with an offset, I can see why that might be an issue. What happens if you try the command without the -itsoffset? What happens if you specify an output codec? what happens if you specify both an audio and video codec? Try changing one thing at a time and see what effect that has. > [...] > > Many Thanks > > Matt > [..] -- Tim From cehoyos at ag.or.at Fri Jul 20 15:35:07 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 20 Jul 2012 13:35:07 +0000 (UTC) Subject: [FFmpeg-user] Incorrect Parameters for -vcodec copy / -acodec copy References: Message-ID: Matt Goble gmail.com> writes: > Apologies if this is really simple stuff - if someone can point me in the > direction of examples that would be a great help. I suspect your question is actually too complicated. > ffmpeg > -i "T:INPUTmov" > -itsoffset 0.48 -i "T:\INPUT.mov" > -map 1:0 -vcodec copy > -map 0:1 -acodec copy > "T:\OUTPUT.mov" (Why do you want to stream copy the contents of a file into the same container? There should be no desync on playback, or am I wrong?) Am I correct that you first tried (approximately) ffmpeg -i INPUT.mov OUTPUT.mov and the result was out-of-sync? Try -async 1 (this may not work with stream-copy) Carl Eugen From cehoyos at ag.or.at Fri Jul 20 15:37:07 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 20 Jul 2012 13:37:07 +0000 (UTC) Subject: [FFmpeg-user] AAC decoding on Android References: Message-ID: Ali Shaheen popcatcher.com> writes: > I am using ffmpeg to decode AAC stream on android device. > but it consumes > 90% CPU > Any recommendations? You could provide the command line you used together with complete, uncut console output just to make sure you tried something sensible. Carl Eugen From ali.shaheen at popcatcher.com Fri Jul 20 16:24:29 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Fri, 20 Jul 2012 16:24:29 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: I am not running it by command line. I am using this library in my android application. I was asking, why ffmpeg use more cpu to decode AAC as compared to mp3 or wma. Is there some special reason you know off? On 20 July 2012 15:37, Carl Eugen Hoyos wrote: > Ali Shaheen popcatcher.com> writes: > > > I am using ffmpeg to decode AAC stream on android device. > > but it consumes > 90% CPU > > > Any recommendations? > > You could provide the command line you used together with complete, > uncut console output just to make sure you tried something sensible. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Fri Jul 20 16:33:45 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 20 Jul 2012 14:33:45 +0000 (UTC) Subject: [FFmpeg-user] AAC decoding on Android References: Message-ID: Ali Shaheen popcatcher.com> writes: > I was asking, why ffmpeg use more cpu to decode AAC as > compared to mp3 or wma. Is there some special reason you > know off? I would generally assume that codecs that are defined in a later MPEG standard have a higher complexity than codecs defined in earlier MPEG standards. How did you compile FFmpeg? Which version are you using? Please do not top-post here, Carl Eugen From mattgoble at gmail.com Fri Jul 20 16:51:03 2012 From: mattgoble at gmail.com (Matt Goble) Date: Fri, 20 Jul 2012 15:51:03 +0100 Subject: [FFmpeg-user] Incorrect Parameters for -vcodec copy / -acodec copy In-Reply-To: References: Message-ID: > > (Why do you want to stream copy the contents of a file > into the same container? There should be no desync on playback, > or am I wrong?) > Our current workflow is to run an ffindex on the files, then via AVISynth, resize and apply logos, BITC, filenames etc, before transcoding to FLV via Procoder. We are noticing that these files are out of sync. My concern is that we have too many tools in the chain, and / or the offset is not being interpreted by the tools decoding the video. As such, I wanted to try and simplify things by correcting the sync in the source file. The file has been created by an Omneon generating XDCAM in a MOV wrapper. We don't have this issue with IMX50 movs we create - Our thinking seems to be inline with Tim's that this is down to the LongGOP nature of the source material, that this is somehow introducing the offset to begin with, and possibly preventing us from fixing it. The solution may be to transcode from XDCAM to something else, but my first thought was just a simple re-wrap to do the job quicker. Many Thanks Matt From focustelev at gmail.com Fri Jul 20 17:09:08 2012 From: focustelev at gmail.com (focus television) Date: Fri, 20 Jul 2012 16:09:08 +0100 Subject: [FFmpeg-user] play m3 u Message-ID: <50097494.6010001@gmail.com> Hi, I want to play and encode using ffmpeg. This is coming from my sat receiver Dreambox I tried -f playlist also.. ffmpeg -i "http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:" a.mpg In windows i am getting ... http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:: Operation not permitted Any idea what is wrong Geo From ali.shaheen at popcatcher.com Fri Jul 20 17:41:49 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Fri, 20 Jul 2012 17:41:49 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: I am using 0.8.11 and i have build for armv6. I was wondering if there is some optimization flag or something..which can enhance performance by multithreading. in build script i have used these flags. OPTIMIZE_CFLAGS="-marm -march=$CPU" --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " Thankyou On 20 July 2012 16:33, Carl Eugen Hoyos wrote: > Ali Shaheen popcatcher.com> writes: > > > I was asking, why ffmpeg use more cpu to decode AAC as > > compared to mp3 or wma. Is there some special reason you > > know off? > > I would generally assume that codecs that are defined in a > later MPEG standard have a higher complexity than codecs > defined in earlier MPEG standards. > > How did you compile FFmpeg? Which version are you using? > > Please do not top-post here, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Fri Jul 20 17:46:26 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 20 Jul 2012 15:46:26 +0000 (UTC) Subject: [FFmpeg-user] AAC decoding on Android References: Message-ID: Ali Shaheen popcatcher.com> writes: > I am using 0.8.11 and i have build for armv6. This is old, please test current git head. > I was wondering if there is some optimization flag > or something.. > which can enhance performance by multithreading. There is no multithreading for audio decoding (and I would be surprised if a device that is too slow to decode AAC provides multiple cores). > in build script i have used these flags. > OPTIMIZE_CFLAGS="-marm -march=$CPU" > --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 > -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums > -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " Do you know that any of these flags have a positive effect on performance? Carl Eugen From ali.shaheen at popcatcher.com Fri Jul 20 17:59:07 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Fri, 20 Jul 2012 17:59:07 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: I have tried with the latest (0.11.1) but when built using same script and run with my application it gives this exception. 07-20 17:54:56.260: E/AndroidRuntime(22901): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]: 139 cannot locate 'avcodec_init'... I searched a lot about the solution of the exception above and then moved back to 0.8.11. Thanks On 20 July 2012 17:46, Carl Eugen Hoyos wrote: > Ali Shaheen popcatcher.com> writes: > > > I am using 0.8.11 and i have build for armv6. > > This is old, please test current git head. > > > I was wondering if there is some optimization flag > > or something.. > > > which can enhance performance by multithreading. > > There is no multithreading for audio decoding > (and I would be surprised if a device that is too slow > to decode AAC provides multiple cores). > > > in build script i have used these flags. > > OPTIMIZE_CFLAGS="-marm -march=$CPU" > > --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 > > -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums > > -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " > > Do you know that any of these flags have a positive effect > on performance? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ali.shaheen at popcatcher.com Fri Jul 20 18:06:06 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Fri, 20 Jul 2012 18:06:06 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: Carl, I ll try to run with 0.11.1 and then comeback to you. thanks On 20 July 2012 17:59, Ali Shaheen wrote: > I have tried with the latest (0.11.1) but when built using same script and > run with my application it gives this exception. > 07-20 17:54:56.260: E/AndroidRuntime(22901): Caused by: > java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]: > 139 cannot locate 'avcodec_init'... > > I searched a lot about the solution of the exception above and then moved > back to 0.8.11. > > Thanks > > > > On 20 July 2012 17:46, Carl Eugen Hoyos wrote: > >> Ali Shaheen popcatcher.com> writes: >> >> > I am using 0.8.11 and i have build for armv6. >> >> This is old, please test current git head. >> >> > I was wondering if there is some optimization flag >> > or something.. >> >> > which can enhance performance by multithreading. >> >> There is no multithreading for audio decoding >> (and I would be surprised if a device that is too slow >> to decode AAC provides multiple cores). >> >> > in build script i have used these flags. >> > OPTIMIZE_CFLAGS="-marm -march=$CPU" >> > --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 >> > -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums >> > -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " >> >> Do you know that any of these flags have a positive effect >> on performance? >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From nicolas.george at normalesup.org Fri Jul 20 18:14:24 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 20 Jul 2012 18:14:24 +0200 Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: References: Message-ID: <20120720161424.GA9916@phare.normalesup.org> Le duodi 2 thermidor, an CCXX, Orbisoft Support a ?crit?: > I have just used ffmpeg for the first time today. I have a few questions. Not a big deal, but in the future, try to choose a subject text that says what your question is about. > - I want a horizontal news scroller video going across the bottom of the > screen > - So I used ASP.NET VB code to create one wide bitmap image (25000 x 30 > pixels) > - On that image I used ASP.NET .DrawString to draw text (Arial 18 Bold) > based on one large text string which contained news item text from a RSS > - From that I extracted and saved 25000 png images, all 1920 x 30 pixels > but each starting at point x from the original image where x=x+1 Technically, you can only do extract 25000-1920+1 = 23081 PNG like that. > 1) What is the maximum frame rate I can use? Currently although it is > smooth, it takes about 33 seconds to go from right to left since it is only > moving at one pixel at a time. I want it to take about 12 seconds With MPEG like you did, not much. With other codecs and containers, you can go to ridiculously high frame rates. But that is just wasting CPU: just draw the text or extract the part of the text at the rate you need. > 2) Should I use PNG format images or choose something else (ASP.NET lets me > choose the image format to Save As)? PNG seems very fine for that. But you do not have to do that at all, you can do everything in ffmpeg, using the drawtext filter: ./ffmpeg_g -i video -vf "drawtext=fontfile=LinLibertine_R.otf:\ text=You should not be watching this:fontsize=40:\ fontcolor=white:shadowcolor=black:shadowx=1:shadowy=1:\ x=W*(1-0.2*t):y=H+descent-ascent' output The coefficient before t in the x expression controls the speed. > 3) I want to embed the movie on a webpage. What then is the best video > format for that? This is a difficult question. > 4) Are there any other things I should do to optimize the quality, > smoothness and file size? Currently the movie is 92 MB. It depends completely on the answer to question 3. 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 llarevo at gmx.net Fri Jul 20 18:31:11 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Fri, 20 Jul 2012 18:31:11 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable Message-ID: <1342801871.2511.54.camel@tbastian-desktop.localdomain> Hi, capturing from analog cards Terratec Cinergy 400 TV and Terratec Cinergy XS USB isn't possible in ffmpeg versions from 0.7.13 to 0.11.1. The cards are proved OK for Linux and working with all of my other apps (tvtime, xawtv, mplayer, mencoder). See my discussion on linux-media http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/51055 I'm using Fedora 17 and tried different versions from 0.5.x wih different hardware. The cards were tuned to Channel E10 (europe-west) and had good quality signal (analog cable). The test results are Cinergy XS USB Cinergy 400 TV 0.5.10 OK OK 0.7.13 OK broken (differently, s.b.) 0.8.12 OK broken (differently, s.b.) 0.9.2 OK broken (differently, s.b.) 0.9.2 (--enable-libv4l2) OK broken (like in subject) 0.10.4 (--enable-libv4l2) OK broken (like in subject) 0.11.1 OK broken (differently, s.b.) 0.11.1 (--enable-libv4l2) OK broken (like in subject) The detailed error from the broken test cases are below. Is something wrong with my command line? Thanks in advance -- Felix 0.11.1 (--enable-lib4vl2) Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b:v 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 15:52:59 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-libass --enable-libbluray --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-openssl --enable-gpl --enable-version3 --disable-crystalhd 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 libv4l2: error dequeuing buf: Resource temporarily unavailable (10000 times/s this Error)^C Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1342800064.407901, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, -2147483 kb/s, 1.67 tbr, 1000k tbn, 1000k tbc [buffer @ 0x3120c40] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2 [buffersink @ 0x3120a60] No opaque field provided [scale @ 0x3121300] w:640 h:480 fmt:yuv420p sar:0/1 -> w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4 Output #0, dvd, to 'out-vga-2M-5min.mpg': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg2video) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate= 0.0kbits/s video:0kB audio:0kB global headers:0kB muxing overhead -nan% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Received signal 2: terminating. 0.11.1 (without --enable-libv4l2) Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b:v 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 18:21:19 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-libass --enable-libbluray --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-openssl --enable-gpl --enable-version3 --disable-crystalhd 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 ^CEstimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1342801330.121303, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, -2147483 kb/s, 1.67 tbr, 1000k tbn, 1000k tbc [buffer @ 0x182aa60] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2 [buffersink @ 0x182b300] No opaque field provided [scale @ 0x1831a20] w:640 h:480 fmt:yuv420p sar:0/1 -> w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4 Output #0, dvd, to 'out-vga-2M-5min.mpg': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg2video) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate= 0.0kbits/s video:0kB audio:0kB global headers:0kB muxing overhead -nan% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Received signal 2: terminating. 0.10.4. (--enable-libv4l2) Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b:v 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 13 2012 09:51:06 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 libv4l2: error dequeuing buf: Resource temporarily unavailable (10000 times/s this Error)^C Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1342801628.759741, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, -2147483 kb/s, 1.67 tbr, 1000k tbn, 1000k tbc [buffer @ 0x1de0020] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x1de7d60] w:640 h:480 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4 Output #0, dvd, to 'out-vga-2M-5min.mpg': Metadata: encoder : Lavf53.32.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg2video) Press [q] to stop, [?] for help frame= 0 fps= 0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate= 0.0kbits/s video:0kB audio:0kB global headers:0kB muxing overhead -nan% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Received signal 2: terminating. 0.9.2 (--enable-libv4l2) Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b:v 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.9.2, Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 16:34:02 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-openssl --enable-gpl --enable-version3 --disable-crystalhd libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 4 / 53. 42. 4 libavformat 53. 24. 2 / 53. 24. 2 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 libv4l2: error dequeuing buf: Resource temporarily unavailable (10000 times/s this Error)^C Estimating duration from bitrate, this may be inaccurate /dev/video0: could not find codec parameters 0.9.2 (without --enable-libv4l2) Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b:v 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.9.2, Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 18:08:18 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-openssl --enable-gpl --enable-version3 --disable-crystalhd libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 4 / 53. 42. 4 libavformat 53. 24. 2 / 53. 24. 2 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 ^C Estimating duration from bitrate, this may be inaccurate /dev/video0: could not find codec parameters Received signal 2: terminating. 0.8.12 Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.8.12, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 20 2012 16:39:40 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-gpl --enable-version3 --disable-crystalhd libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 8. 0 / 53. 8. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 ^C 0.7.13 Terratec Cinergy 400 TV ffmpeg -y -t 300 -f video4linux2 -s vga -b 2000k -i /dev/video0 -target pal-dvd out-vga-2M-5min.mpg ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 20 2012 16:50:52 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-gpl --enable-version3 --disable-crystalhd 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 ^C From wagner.patriota at gmail.com Fri Jul 20 20:10:14 2012 From: wagner.patriota at gmail.com (Wagner Patriota) Date: Fri, 20 Jul 2012 15:10:14 -0300 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: aren't you able to access the hardware decoder in this case? On Fri, Jul 20, 2012 at 1:06 PM, Ali Shaheen wrote: > Carl, I ll try to run with 0.11.1 and then comeback to you. thanks > > > On 20 July 2012 17:59, Ali Shaheen wrote: > > > I have tried with the latest (0.11.1) but when built using same script > and > > run with my application it gives this exception. > > 07-20 17:54:56.260: E/AndroidRuntime(22901): Caused by: > > java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]: > > 139 cannot locate 'avcodec_init'... > > > > I searched a lot about the solution of the exception above and then moved > > back to 0.8.11. > > > > Thanks > > > > > > > > On 20 July 2012 17:46, Carl Eugen Hoyos wrote: > > > >> Ali Shaheen popcatcher.com> writes: > >> > >> > I am using 0.8.11 and i have build for armv6. > >> > >> This is old, please test current git head. > >> > >> > I was wondering if there is some optimization flag > >> > or something.. > >> > >> > which can enhance performance by multithreading. > >> > >> There is no multithreading for audio decoding > >> (and I would be surprised if a device that is too slow > >> to decode AAC provides multiple cores). > >> > >> > in build script i have used these flags. > >> > OPTIMIZE_CFLAGS="-marm -march=$CPU" > >> > --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 > >> > -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums > >> > -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " > >> > >> Do you know that any of these flags have a positive effect > >> on performance? > >> > >> 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 mani.goswami at gmail.com Fri Jul 20 20:28:37 2012 From: mani.goswami at gmail.com (Mani Goswami) Date: Fri, 20 Jul 2012 23:58:37 +0530 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: Hi Jaume, Thanks for your reply. But it does not help. It still says "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height" Mani On Fri, Jul 20, 2012 at 5:57 PM, Jaume Lopez wrote: > 2012/7/20 Mani Goswami > > > ffmpeg -i video_new.3gp -b:v 64k -vcodec h263 -acodec aac newgph263.3gp > > > > > Try adding -strict experimental > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Mani Shankar Goswami From mbradshaw at sorensonmedia.com Fri Jul 20 20:34:01 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 20 Jul 2012 12:34:01 -0600 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: On Fri, Jul 20, 2012 at 12:28 PM, Mani Goswami wrote: > Hi Jaume, > > Thanks for your reply. But it does not help. It still says "Error while > opening encoder for output stream #0:0 - maybe incorrect parameters such as > bit_rate, rate, width or height" Please post complete, uncut console output. --Michael From mani.goswami at gmail.com Fri Jul 20 20:51:23 2012 From: mani.goswami at gmail.com (Mani Goswami) Date: Sat, 21 Jul 2012 00:21:23 +0530 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: Here is the complete console output: [manig at littlefamous-dr movies]$ sudo ffmpeg -i video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp -b:v 64k -vcodec h263 -acodec aac -strict experimental newgph263.3gp Password: ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat 4.1.2-14) configuration: libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 42.100 / 54. 42.100 libavformat 54. 17.101 / 54. 17.101 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp': Metadata: major_brand : 3gp5 minor_version : 0 compatible_brands: 3gp53gp4mp41mp42isom creation_time : 1942-05-31 01:31:41 Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16, 15 kb/s Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Sound Media Handler Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, 10 fps, 10 tbr, 10 tbn, 1k tbc Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Video Media Handler Stream #0:2(und): Data: none (rtp / 0x20707472) Metadata: creation_time : 1942-05-30 00:34:36 handler_name : GPAC ISO Hint Handler Stream #0:3(und): Data: none (rtp / 0x20707472) Metadata: creation_time : 1942-05-30 00:34:36 handler_name : GPAC ISO Hint Handler File 'newgph263.3gp' already exists. Overwrite ? [y/N] y w/h must be a multiple of 4 Output #0, 3gp, to 'newgph263.3gp': Metadata: major_brand : 3gp5 minor_version : 0 compatible_brands: 3gp53gp4mp41mp42isom Stream #0:0(eng): Video: h263, yuv420p, 240x302 [SAR 12:11 DAR 1440:1661], q=2-31, 64 kb/s, 90k tbn, 10 tbc Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: none, 16000 Hz, mono, flt, 128 kb/s Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Sound Media Handler Stream mapping: Stream #0:1 -> #0:0 (mpeg4 -> h263) Stream #0:0 -> #0:1 (aac -> aac) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Regards, Mani On Sat, Jul 21, 2012 at 12:04 AM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Fri, Jul 20, 2012 at 12:28 PM, Mani Goswami > wrote: > > Hi Jaume, > > > > Thanks for your reply. But it does not help. It still says "Error while > > opening encoder for output stream #0:0 - maybe incorrect parameters such > as > > bit_rate, rate, width or height" > > Please post complete, uncut console output. > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Mani Shankar Goswami From mbradshaw at sorensonmedia.com Fri Jul 20 21:02:56 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 20 Jul 2012 13:02:56 -0600 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: On Fri, Jul 20, 2012 at 12:51 PM, Mani Goswami wrote: > Here is the complete console output: > > [manig at littlefamous-dr movies]$ sudo ffmpeg -i > video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp > -b:v 64k -vcodec h263 -acodec aac -strict experimental newgph263.3gp > Password: > ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg > developers > built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat > 4.1.2-14) > configuration: > libavutil 51. 65.100 / 51. 65.100 > libavcodec 54. 42.100 / 54. 42.100 > libavformat 54. 17.101 / 54. 17.101 > 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 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp': > Metadata: > major_brand : 3gp5 > minor_version : 0 > compatible_brands: 3gp53gp4mp41mp42isom > creation_time : 1942-05-31 01:31:41 > Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s > Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16, > 15 kb/s > Metadata: > creation_time : 1942-05-31 01:31:41 > handler_name : Apple Sound Media Handler > Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), > yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, > 10 fps, 10 tbr, 10 tbn, 1k tbc > Metadata: > creation_time : 1942-05-31 01:31:41 > handler_name : Apple Video Media Handler > Stream #0:2(und): Data: none (rtp / 0x20707472) > Metadata: > creation_time : 1942-05-30 00:34:36 > handler_name : GPAC ISO Hint Handler > Stream #0:3(und): Data: none (rtp / 0x20707472) > Metadata: > creation_time : 1942-05-30 00:34:36 > handler_name : GPAC ISO Hint Handler > File 'newgph263.3gp' already exists. Overwrite ? [y/N] y > w/h must be a multiple of 4 Console output says w/h needs to be a multiple of 4. Your height is 302. You either need to a) crop it down to 300, b) pad it to 304, or c) squish/stretch it to 300 or 304 by setting -s 240x300 (or -s 240x304). --Michael From mani.goswami at gmail.com Fri Jul 20 21:09:41 2012 From: mani.goswami at gmail.com (Mani Goswami) Date: Sat, 21 Jul 2012 00:39:41 +0530 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: Thanks Michael for your response. But even that don't seem to work. Here is the response: [manig at littlefamous-dr movies]$ sudo ffmpeg -i video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp -b:v 64k -vcodec h263 -acodec aac -s 240x300 -strict experimental newgph263.3gp ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat 4.1.2-14) configuration: libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 42.100 / 54. 42.100 libavformat 54. 17.101 / 54. 17.101 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp': Metadata: major_brand : 3gp5 minor_version : 0 compatible_brands: 3gp53gp4mp41mp42isom creation_time : 1942-05-31 01:31:41 Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16, 15 kb/s Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Sound Media Handler Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, 10 fps, 10 tbr, 10 tbn, 1k tbc Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Video Media Handler Stream #0:2(und): Data: none (rtp / 0x20707472) Metadata: creation_time : 1942-05-30 00:34:36 handler_name : GPAC ISO Hint Handler Stream #0:3(und): Data: none (rtp / 0x20707472) Metadata: creation_time : 1942-05-30 00:34:36 handler_name : GPAC ISO Hint Handler File 'newgph263.3gp' already exists. Overwrite ? [y/N] y Invalid pixel aspect ratio 1800/1661, limit is 255/255 reducing [h263 @ 0x9904080] The specified picture size of 240x300 is not valid for the H.263 codec. Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+. Output #0, 3gp, to 'newgph263.3gp': Metadata: major_brand : 3gp5 minor_version : 0 compatible_brands: 3gp53gp4mp41mp42isom Stream #0:0(eng): Video: h263, yuv420p, 240x300 [SAR 246:227 DAR 984:1135], q=2-31, 64 kb/s, SAR 1800:1661 DAR 1440:1661, 90k tbn, 10 tbc Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: none, 16000 Hz, mono, flt, 128 kb/s Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Sound Media Handler Stream mapping: Stream #0:1 -> #0:0 (mpeg4 -> h263) Stream #0:0 -> #0:1 (aac -> aac) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Also, if I try picking any of the one size recommended, I get to see following error: [manig at littlefamous-dr movies]$ sudo ffmpeg -i video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp -b:v 64k -vcodec h263 -acodec aac -s 128x96 -strict experimental newgph263.3gp ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat 4.1.2-14) configuration: libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 42.100 / 54. 42.100 libavformat 54. 17.101 / 54. 17.101 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp': Metadata: major_brand : 3gp5 minor_version : 0 compatible_brands: 3gp53gp4mp41mp42isom creation_time : 1942-05-31 01:31:41 Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16, 15 kb/s Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Sound Media Handler Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, 10 fps, 10 tbr, 10 tbn, 1k tbc Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Video Media Handler Stream #0:2(und): Data: none (rtp / 0x20707472) Metadata: creation_time : 1942-05-30 00:34:36 handler_name : GPAC ISO Hint Handler Stream #0:3(und): Data: none (rtp / 0x20707472) Metadata: creation_time : 1942-05-30 00:34:36 handler_name : GPAC ISO Hint Handler File 'newgph263.3gp' already exists. Overwrite ? [y/N] y Invalid pixel aspect ratio 1080/1661, limit is 255/255 reducing [aac @ 0xa7e3f20] Too many bits per frame requested Output #0, 3gp, to 'newgph263.3gp': Metadata: major_brand : 3gp5 minor_version : 0 compatible_brands: 3gp53gp4mp41mp42isom Stream #0:0(eng): Video: h263, yuv420p, 128x96 [SAR 158:243 DAR 632:729], q=2-31, 64 kb/s, SAR 1080:1661 DAR 1440:1661, 90k tbn, 10 tbc Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: aac, 16000 Hz, mono, flt, 128 kb/s Metadata: creation_time : 1942-05-31 01:31:41 handler_name : Apple Sound Media Handler Stream mapping: Stream #0:1 -> #0:0 (mpeg4 -> h263) Stream #0:0 -> #0:1 (aac -> aac) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height Regards, Mani On Sat, Jul 21, 2012 at 12:32 AM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Fri, Jul 20, 2012 at 12:51 PM, Mani Goswami > wrote: > > Here is the complete console output: > > > > [manig at littlefamous-dr movies]$ sudo ffmpeg -i > > > video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp > > -b:v 64k -vcodec h263 -acodec aac -strict experimental newgph263.3gp > > Password: > > ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg > > developers > > built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat > > 4.1.2-14) > > configuration: > > libavutil 51. 65.100 / 51. 65.100 > > libavcodec 54. 42.100 / 54. 42.100 > > libavformat 54. 17.101 / 54. 17.101 > > 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 > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > > > 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp': > > Metadata: > > major_brand : 3gp5 > > minor_version : 0 > > compatible_brands: 3gp53gp4mp41mp42isom > > creation_time : 1942-05-31 01:31:41 > > Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s > > Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, > s16, > > 15 kb/s > > Metadata: > > creation_time : 1942-05-31 01:31:41 > > handler_name : Apple Sound Media Handler > > Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), > > yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, > > 10 fps, 10 tbr, 10 tbn, 1k tbc > > Metadata: > > creation_time : 1942-05-31 01:31:41 > > handler_name : Apple Video Media Handler > > Stream #0:2(und): Data: none (rtp / 0x20707472) > > Metadata: > > creation_time : 1942-05-30 00:34:36 > > handler_name : GPAC ISO Hint Handler > > Stream #0:3(und): Data: none (rtp / 0x20707472) > > Metadata: > > creation_time : 1942-05-30 00:34:36 > > handler_name : GPAC ISO Hint Handler > > File 'newgph263.3gp' already exists. Overwrite ? [y/N] y > > w/h must be a multiple of 4 > > Console output says w/h needs to be a multiple of 4. Your height is > 302. You either need to a) crop it down to 300, b) pad it to 304, or > c) squish/stretch it to 300 or 304 by setting -s 240x300 (or -s > 240x304). > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Mani Shankar Goswami From ubitux at gmail.com Fri Jul 20 21:19:33 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Fri, 20 Jul 2012 21:19:33 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: <1342801871.2511.54.camel@tbastian-desktop.localdomain> References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> Message-ID: <20120720191933.GB25072@leki> On Fri, Jul 20, 2012 at 06:31:11PM +0200, llarevo at gmx.net wrote: > Hi, > > capturing from analog cards Terratec Cinergy 400 TV and Terratec Cinergy > XS USB isn't possible in ffmpeg versions from 0.7.13 to 0.11.1. The > cards are proved OK for Linux and working with all of my other apps > (tvtime, xawtv, mplayer, mencoder). See my discussion on linux-media > http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/51055 > > I'm using Fedora 17 and tried different versions from 0.5.x wih > different hardware. The cards were tuned to Channel E10 (europe-west) > and had good quality signal (analog cable). > > The test results are > Cinergy XS USB Cinergy 400 TV > 0.5.10 OK OK Oh so it worked without libv4l2 at some point... That's interesting. That's hard to tell like this what change could have cause the regression since we have no way of testing; would you mind trying to git bisect on libavdevice/v4l2.c between 0.5 and 0.7 and see if one of the commit introduced that issue? > 0.7.13 OK broken (differently, s.b.) > 0.8.12 OK broken (differently, s.b.) > 0.9.2 OK broken (differently, s.b.) > 0.9.2 (--enable-libv4l2) OK broken (like in subject) > 0.10.4 (--enable-libv4l2) OK broken (like in subject) > 0.11.1 OK broken (differently, s.b.) > 0.11.1 (--enable-libv4l2) OK broken (like in subject) [...] -- 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 jrosensw at gmail.com Fri Jul 20 21:32:20 2012 From: jrosensw at gmail.com (Joseph Rosensweig) Date: Fri, 20 Jul 2012 12:32:20 -0700 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. Message-ID: Hey all, I assume I'm missing something really simple here. But I'm not quite sure what I'm doing wrong. I checked out the ffmpeg and x264 git versions indicated in my subject header. I wanted to test out encoding H264 with high, high10, high422, and high444 using libx264. However when I try to encode with anything above high, the output always just shows high rather than say high 4:2:2. Here are a few examples: $ cat test.yuv | ffmpeg -f rawvideo -pix_fmt yuv420p -s 1280x720 -y -an -r 30 -i pipe:0 -vcodec libx264 -profile:v high -vframes 300 -r 30 test.mp4 ffmpeg version N-37116-g55ed91c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:10:41 with gcc 4.4.3 configuration: --prefix=/source/opensource/ffmpeg_x264_latest --enable-static --enable-libx264 --enable-gpl --disable-ffplay --disable-ffprobe --disable-ffserver 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 [rawvideo @ 0x1fd2560] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'pipe:0': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 30 tbr, 30 tbn, 30 tbc [libx264 @ 0x1fdbc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0x1fdbc00] profile High, level 3.1 $ cat test.yuv | ffmpeg -f rawvideo -pix_fmt yuv420p -s 1280x720 -y -an -r 30 -i pipe:0 -vcodec libx264 -profile:v high10 -vframes 300 -r 30 test.mp4 ffmpeg version N-37116-g55ed91c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:10:41 with gcc 4.4.3 configuration: --prefix=/source/opensource/ffmpeg_x264_latest --enable-static --enable-libx264 --enable-gpl --disable-ffplay --disable-ffprobe --disable-ffserver 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 [rawvideo @ 0x33e3560] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'pipe:0': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 30 tbr, 30 tbn, 30 tbc [libx264 @ 0x33ecc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0x33ecc00] profile High, level 3.1 $ cat test.yuv | ffmpeg -f rawvideo -pix_fmt yuv420p -s 1280x720 -y -an -r 30 -i pipe:0 -vcodec libx264 -profile:v high422 -vframes 300 -r 30 test.mp4 ffmpeg version N-37116-g55ed91c Copyright (c) 2000-2012 the FFmpeg developers built on Jul 19 2012 12:10:41 with gcc 4.4.3 configuration: --prefix=/source/opensource/ffmpeg_x264_latest --enable-static --enable-libx264 --enable-gpl --disable-ffplay --disable-ffprobe --disable-ffserver 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 [rawvideo @ 0x1957560] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'pipe:0': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 30 tbr, 30 tbn, 30 tbc [libx264 @ 0x1960c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0x1960c00] profile High, level 3.1 Any help here :-)? Thanks, JD From meet.coolrohan at gmail.com Fri Jul 20 12:30:14 2012 From: meet.coolrohan at gmail.com (rohankasat) Date: Fri, 20 Jul 2012 03:30:14 -0700 (PDT) Subject: [FFmpeg-user] Stream a playlist Message-ID: <1342780214876-4651928.post@n4.nabble.com> can we stream .pls or .m3u ( playlist files) directly from console using ffplay ? is it possible ? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Stream-a-playlist-tp4651928.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mbradshaw at sorensonmedia.com Fri Jul 20 23:04:15 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 20 Jul 2012 15:04:15 -0600 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: On Fri, Jul 20, 2012 at 1:09 PM, Mani Goswami wrote: >[...] > Also, if I try picking any of the one size recommended, I get to see > following error: > > [manig at littlefamous-dr movies]$ sudo ffmpeg -i > video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp > -b:v 64k -vcodec h263 -acodec aac -s 128x96 -strict experimental > newgph263.3gp > ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg > developers > built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat > 4.1.2-14) > configuration: > libavutil 51. 65.100 / 51. 65.100 > libavcodec 54. 42.100 / 54. 42.100 > libavformat 54. 17.101 / 54. 17.101 > 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 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp': > Metadata: > major_brand : 3gp5 > minor_version : 0 > compatible_brands: 3gp53gp4mp41mp42isom > creation_time : 1942-05-31 01:31:41 > Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s > Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16, > 15 kb/s > Metadata: > creation_time : 1942-05-31 01:31:41 > handler_name : Apple Sound Media Handler > Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), > yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661, > 10 fps, 10 tbr, 10 tbn, 1k tbc > Metadata: > creation_time : 1942-05-31 01:31:41 > handler_name : Apple Video Media Handler > Stream #0:2(und): Data: none (rtp / 0x20707472) > Metadata: > creation_time : 1942-05-30 00:34:36 > handler_name : GPAC ISO Hint Handler > Stream #0:3(und): Data: none (rtp / 0x20707472) > Metadata: > creation_time : 1942-05-30 00:34:36 > handler_name : GPAC ISO Hint Handler > File 'newgph263.3gp' already exists. Overwrite ? [y/N] y > Invalid pixel aspect ratio 1080/1661, limit is 255/255 reducing > [aac @ 0xa7e3f20] Too many bits per frame requested Looks like aac is complaining you're requesting too high of a bitrate. Also, please refrain from top posting. --Michael From ali.shaheen at popcatcher.com Fri Jul 20 23:54:21 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Fri, 20 Jul 2012 23:54:21 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: Hi Wagner, Actually i need decoded stream as well. I already implemented in ffmpeg for mp3,wma. So i am trying to use same for aac. -Ali On 20 July 2012 20:10, Wagner Patriota wrote: > aren't you able to access the hardware decoder in this case? > > On Fri, Jul 20, 2012 at 1:06 PM, Ali Shaheen >wrote: > > > Carl, I ll try to run with 0.11.1 and then comeback to you. thanks > > > > > > On 20 July 2012 17:59, Ali Shaheen wrote: > > > > > I have tried with the latest (0.11.1) but when built using same script > > and > > > run with my application it gives this exception. > > > 07-20 17:54:56.260: E/AndroidRuntime(22901): Caused by: > > > java.lang.UnsatisfiedLinkError: Cannot load library: > reloc_library[1311]: > > > 139 cannot locate 'avcodec_init'... > > > > > > I searched a lot about the solution of the exception above and then > moved > > > back to 0.8.11. > > > > > > Thanks > > > > > > > > > > > > On 20 July 2012 17:46, Carl Eugen Hoyos wrote: > > > > > >> Ali Shaheen popcatcher.com> writes: > > >> > > >> > I am using 0.8.11 and i have build for armv6. > > >> > > >> This is old, please test current git head. > > >> > > >> > I was wondering if there is some optimization flag > > >> > or something.. > > >> > > >> > which can enhance performance by multithreading. > > >> > > >> There is no multithreading for audio decoding > > >> (and I would be surprised if a device that is too slow > > >> to decode AAC provides multiple cores). > > >> > > >> > in build script i have used these flags. > > >> > OPTIMIZE_CFLAGS="-marm -march=$CPU" > > >> > --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 > > >> > -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums > > >> > -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " > > >> > > >> Do you know that any of these flags have a positive effect > > >> on performance? > > >> > > >> 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 rfg at tristatelogic.com Sat Jul 21 00:17:10 2012 From: rfg at tristatelogic.com (Ronald F. Guilmette) Date: Fri, 20 Jul 2012 15:17:10 -0700 Subject: [FFmpeg-user] (serious) novice, in need of advice regarding format conversion In-Reply-To: <5007B041.7070302@yahoo.com> Message-ID: <66646.1342822630@tristatelogic.com> In message <5007B041.7070302 at yahoo.com>, Tim Nicholson wrote: >On 17/07/12 21:30, Ronald F. Guilmette wrote: >> >> In message <20120717080949.GE9329 at arborea>, >> Stefano Sabatini wrote: >> >>> [...] >>> >>> The lowest common denominator for players will be the >>> mpeg2video+MP3+avi combination. >> >> As I said, I only have one target here, i.e. _anything_ that the LG BD670 >> can play (and I don't care which container/codec are used, as long as the >> LG BD670 is happy). In short, I have -zero- reason to care about >> ``portability''. >> >> Also, I think that for what I am doing, I will want to use whatever format >> gives me the MOST quality and/or functionality... NOT the ``lowest common >> denominator''. >> > >The most quality will be to avoid transcoding what you already have, so >a simple rewrap from .VOB to .mpg/avi would probably suffice. Please define "rewrap" in this context. As I previously mentioned, I tried just renaming the .vob file to a .mpg file. The player (LG BD670) _would_ then play the file, but the fast-forward and fast-reverse controls then failed entirely to operate as the file was playing. Do you have some solution for this problem? Are you proposing that I use ffmpeg to transcode MPEG2 to (somehow slightly different) MPEG2? If so, I'd love to see what you are suggesting in the way of a command line. >> Lastly, as my prior popsting mentioned, this player allegedly supports .MKV >> files. If that container format provides more functionality that the other >> supported container formats, then that is probably the one I want to convert >> my .VOB files into. Now I just need someone to show me precisely how to do >> that. (An example command line please!) >> > >Might I suggest you try avidemux which is a gui front end for ffmpeg and >easily allows selection of different options, Yes, you may suggest it. I have it here. It is installed and it does seem to run OK. However as I mentioned in my prior posting, I have a natural aversion to GUIs, and prefer command lines. (I am basically a UNIX guy, but a point-and-drool Windoze type.) I feel sure that anything that I can do with the GUI I can also accomplish with an appropriate command line.... if only someone here would be kind and help me out a little bit. (I will try to ask specific questions from now on in the hopes that that may elicit more useful information from the knowlegable denizens here.) >... including "stream copying" ... I wish I knew what that meant in the context. Could you define please? >with MKV container output. So I guess that you must mean just simply lifting the "mpeg2video" and "ac3" out of the existing .vob file and transplanting them (unchanged?) into a .mkv container. Is that correct? Is that what you meant? If so, what's the command line for doing that? >This would avoid having to "know squat about >ffmpeg, nor about its gazillion options", and allow you to find >something that works.. I'n not sure why you think that using a GUI interface (versus a command line) somehow relieves the user of having to know, at least marginally, what he is trying to do, and how (or even weather) ffmpeg is going to be persuaded to do it for him. But obviously, I have stumbled into a place with general disdain for folks like me, who are just trying to accomplish something simple, and are not entirely eager to read all 5,000 lines of the (apparently seriously deficient) man page and/or to become experts on all manner of video & audio encoding. So instead of asking in a generalize way for help, I'll henceforth ask very specific questions. (NOTE: The first two questions below relate more to my specific hardware than to ffmpeg, so anybody not working with BD players can skip those. The rest of the questions below are very ffmpeg-specific however.) 1) Why is it that the LG BD670 refuses to honor fast-forward and/or fast- reverse command when playing a .vob which has been renamed to a .mpg? (It's OK if nobody has an answer for this one. It may just come down to an idiosyncracy of the LG BD670.) 2) Does anyone here own _any_ LG BD player which can for fast-forward and/or fast-reverse on _any_ kind of file containing an MPEG2 video stream? 3) Why is it the case that when I used ffmpeg to convert a (DVD) .vob file to a .mp4 file, using straightforward options as shown below, the resulting file was about 1.7 times the size of the original .vob file? (Specifically, 1073739776 bytes in the original versus 1714326125 in the .mp4 output file.) ffmpeg -analyzeduration 14M -i vts_02_1.vob -b 3878k -sameq vts_02_1.mp4 (As I said in a prior posting, I _really_ don't understand this. Isn't MPEG4 supposed to be a _more_ space-efficient way of encoding than the older MPEG2?) 4) What exactly is the effect of the "-analyzeduration" option? (Note that I found this suggested on some web site as a way to make certain wanrings/ errors go away, but this command line option is _NOT_ even mentioned in the ffmpeg man page that I have here. And oh, BTW, that is yet another reason why I'm not eager to spend hours reading the ffmpeg man page... Obviously, it is not complete, and only describes a subset of the actual ffmpeg options.) 5) What, if anything would be the drawback/downside to specifying an -analyzeduration of, say, fifty billion? If there is none, then why isn't that the default, rather than, say, the curent default of 5M (which is apparently too low)? 6) Does the -sameq option effectively override the -b option? If not, then how could it be the case that the bitrate for the file created by the command line shown above would actually come out to be 6192k/s ? 7) Under normal curcumstances, when using ffmpeg to transcode some arbitrary pre-existing video+audio streams, if one wishes to preserve as much of the quality of the originals as possible, how should one select the value to use in the -b option? Is this a black art? Or is there some simple rule to follow? (I see that using "ffmpeg -i original" gives some information on the bitrate used by video and... separately... audio streams in an original video+audio file, but how should one use that information to manufacture a value to supply in the -b option for the output file? Looking at the output of "ffmpeg -i" for the .mp4 file manufactured by the command line shown above, I see one bitrate for video, one for audio, and one which appears to be for both together. That's swell, except the numbers are 6123 kb/s, 63 kb/s, and 6192 kb/s. Well, 6123+63 does _not_ equal 6192. So what gives? Apparently there is an additional overhead/fudgefactor involved here, yes? Is that a fixed amount, or is it a percentage of the other bitrates? Is the size of this overhead factor dependent upon the specific output (container?) format used? 8) Why does ffmpeg sometimes produce the following error? And what does this mean anyway? Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001) Is this due to some sort of "authoring" error? And if so, then why does it arise even in the context of a file (.mp4) created by ffmpeg itself? (See command line above.) (To my way of thinking, if ffmpeg is going to produce output files that contain this specific kind of "error", then perhaps it ought not to be complaining about it when it sees a file containing this error on input.) 9) When transcoding a .vob file to a .mp4 file (via the command line shown above), at the very end of the process, I get the following warnings/errors. What do these mean and are they anything to worry about? [mpeg2video @ 0x805a0fb20] ac-tex damaged at 6 9 [mpeg2video @ 0x805a0fb20] Warning MVs not available [mpeg2video @ 0x805a0fb20] concealing 945 DC, 945 AC, 945 MV errors How may I "repair" the "damaged" ac-tex? How may I supply the missing "MVs"? Whose errors are being concealed? Mine? The original author's? His software's? And why aren't any of the above warnings/errors mentioned at all in the ffmpeg man page? (As with the respoonses to my queries here, the implicit assumption seems to be that either (a) all ffmpeg users are clairvoiant, or else (b) all ffmpeg users are so throughly steeped in this stuff, and the terminology, that no explanation of any of the above messages is all necessary.) 10) Because Tim Nicholson suggested I "rewrap" my .vob file to .mpeg, I just now tried this: ffmpeg -analyzeduration 14M -i vts_02_1.vob -sameq vts_02_1.mpeg Interestingly, this generated the following warning almost immediately: [mpeg @ 0x806004020] VBV buffer size not set, muxing may fail What does this mean? How can I make it go away? And why is it that the ffmpeg man page seems to contain -no- mention whatsoever of "VBV" anything? (I'm not sure that it is helpful for folks here to be telling new arrivals to go away and RTFM when TFM seems to be missing so much vital information.) 11) For laughs, I tried to see if I could get ffmpeg to ``transcode'' my existing .vob file (mpeg2video/ac3) into an output file that would use the same audio&viedo codecs, but which would have a .mpg suffix. So I did this: ffmpeg -analyzeduration 14M -i vts_02_1.vob -sameq -vcodec mpeg2video -acodec ac3 vts_02_1.mpg The resulting file was approximately twich as big as the original. Why? 12) The file resulting from the above experiment also contained what appears to be a number of serious problems, most specifically, a total lack of audio. Why? Just FYI - Here is what mplayer had to say about the resulting file: MPlayer SVN-r34821-snapshot-4.6.4 (C) 2000-2012 MPlayer Team Playing vts_02_1.mpg. libavformat version 54.2.100 (internal) MPEG-PS file format detected. Too many video packets in the buffer: (4096 in 8354836 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 0.0 kbps ( 0.0 kbyte/s) Load subtitles in ./ ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.12.100 (internal) Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== Audio: no sound Starting playback... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- That's all the questions I have for now. As I hope may be obvious from the above, I _am_ willing to learn, and to delve into details. Now I just gotta hope that somebody (anybody) here recoginizes that and doesn't just blow me off by telling to go and use the point-and-drool GUI that was apparently intended to keep all of the Windoze weenies from annoying the folks here by asking too many annoying basic questions. Regards, rfg From rfg at tristatelogic.com Sat Jul 21 00:21:41 2012 From: rfg at tristatelogic.com (Ronald F. Guilmette) Date: Fri, 20 Jul 2012 15:21:41 -0700 Subject: [FFmpeg-user] (serious) novice, in need of advice regarding format conversion In-Reply-To: <66646.1342822630@tristatelogic.com> Message-ID: <66709.1342822901@tristatelogic.com> In message <66646.1342822630 at tristatelogic.com>, I wrote: >... However as I mentioned in my prior posting, I have a natural >aversion to GUIs, and prefer command lines. (I am basically a UNIX guy, >but a point-and-drool Windoze type.) Sorry. A serious typo on my part. Obviously, what I meant to write was: (I am basically a UNIX guy, NOT a point-and-drool Windoze type.) From focustelev at gmail.com Sat Jul 21 01:31:47 2012 From: focustelev at gmail.com (focus television) Date: Sat, 21 Jul 2012 00:31:47 +0100 Subject: [FFmpeg-user] Rtmpe doesnt work Message-ID: <5009EA63.7010808@gmail.com> Hi, I am a trying ffmpeg and getting the error... ffmpeg -i "rtmpe://31.204.154.61/tv playpath=sabtvhq9_desistreams swfUrl=http://www.110cas t.com/player/player-licensed.swf pageUrl=http://www.110cast.com/embed.php?u=sabt vhq9_desistreams live=true timeout=15" a.mpg Error: Trying different position for server digest! Pls help From lists.davep at gmail.com Sat Jul 21 04:06:15 2012 From: lists.davep at gmail.com (Dave P) Date: Fri, 20 Jul 2012 22:06:15 -0400 Subject: [FFmpeg-user] (serious) novice, in need of advice regarding format conversion In-Reply-To: <66646.1342822630@tristatelogic.com> References: <5007B041.7070302@yahoo.com> <66646.1342822630@tristatelogic.com> Message-ID: On Jul 20, 2012 6:17 PM, "Ronald F. Guilmette" wrote: > > > In message <5007B041.7070302 at yahoo.com>, > Tim Nicholson wrote: > > >On 17/07/12 21:30, Ronald F. Guilmette wrote: > >> > >> In message <20120717080949.GE9329 at arborea>, > >> Stefano Sabatini wrote: > >> > >>> [...] > >>> > >>> The lowest common denominator for players will be the > >>> mpeg2video+MP3+avi combination. > >> > >> As I said, I only have one target here, i.e. _anything_ that the LG BD670 > >> can play (and I don't care which container/codec are used, as long as the > >> LG BD670 is happy). In short, I have -zero- reason to care about > >> ``portability''. > >> > >> Also, I think that for what I am doing, I will want to use whatever format > >> gives me the MOST quality and/or functionality... NOT the ``lowest common > >> denominator''. > >> > > > >The most quality will be to avoid transcoding what you already have, so > >a simple rewrap from .VOB to .mpg/avi would probably suffice. > > Please define "rewrap" in this context. > > As I previously mentioned, I tried just renaming the .vob file to a .mpg > file. The player (LG BD670) _would_ then play the file, but the fast-forward > and fast-reverse controls then failed entirely to operate as the file was > playing. > > Do you have some solution for this problem? Are you proposing that I use > ffmpeg to transcode MPEG2 to (somehow slightly different) MPEG2? If so, > I'd love to see what you are suggesting in the way of a command line. This works well for me (interlaced widescreen NTSC VOB source to progressive MPEG-2 PS): ffmpeg.exe -report -f vob -target ntsc-dvd -c:v mpeg2video -q:v 2 -g 18 -bf 2 -mbd 2 -trellis 1 -vf yadif=0,scale=720:480,setdar=16:9 -c:a mp2 -ac 2 -ar 48000 -b:a 384k -y output.mpg I would be surprised if the above command doesn't get you in the ballpark. Post the contents of the report if you need tweaks here or there. The many other questions you asked are valid, but I can't answer them all at once. Many will be answered if you continue to subscribe to the list and read posts and replies every day for a few years... From inbox.mirror.orbisoft at gmail.com Sat Jul 21 04:54:10 2012 From: inbox.mirror.orbisoft at gmail.com (Orbisoft Support) Date: Fri, 20 Jul 2012 19:54:10 -0700 (PDT) Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <20120720161424.GA9916@phare.normalesup.org> References: <20120720161424.GA9916@phare.normalesup.org> Message-ID: <1342839250875-4651964.post@n4.nabble.com> Thanks very much for that Nicolas. 1) I think I would like to try the DrawText method you mentioned. I was a bit unsure of your syntax though: ./ffmpeg_g -i video -vf "drawtext=fontfile=LinLibertine_R.otf:\ text=You should not be watching this:fontsize=40:\ fontcolor=white:shadowcolor=black:shadowx=1:shadowy=1:\ x=W*(1-0.2*t):y=H+descent-ascent' output I take it I: - I need to remove the ./ - Use ffmpeg instead of ffmpeg_g - Use ascent" rather than ascent' 2) On my original command string, I did change the output file to FLV and as a result was able to use a frame rate of 80 frames per second which mad it smoother: c:\mytemp\ffmpeg -r 80 -y -f image2 -i f:\mytemp\images\image%d.png c:\mytemp\video\video.flv The result can be seen here: http://www.orbisoft.com/ffmpeg/video.flv The sample text I used is here: http://www.orbisoft.com/ffmpeg/TheTickerText.txt I used white "Arial", 26, FontStyle.Bold on a black rectangle background of 1920x50 pixels. 3) So using the method you mentioned I take it I would only need to add one frame in total (the black rectangle) then the text would just scroll on that? The blank frame is at: http://www.orbisoft.com/ffmpeg/image1.png 4) Would you be kind enough to tell me what the command line should be in light of those parameters? I am hoping the file size of the resultant flv created using your mentioned methodolgy may somehow be less than the 110 MB for the full FLV I created by adding 100,000 or so png frames. TIA Mark -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Newbie-questions-tp4651915p4651964.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Sat Jul 21 08:44:57 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 21 Jul 2012 06:44:57 +0000 (UTC) Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> Message-ID: Orbisoft Support gmail.com> writes: > c:\mytemp\ffmpeg -r 80 -y -f image2 -i f:\mytemp\images\image%d.png > c:\mytemp\video\video.flv Most people's screens cannot show 80fps. Carl Eugen From inbox.mirror.orbisoft at gmail.com Sat Jul 21 10:31:19 2012 From: inbox.mirror.orbisoft at gmail.com (Orbisoft Support) Date: Sat, 21 Jul 2012 01:31:19 -0700 (PDT) Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> Message-ID: <1342859479106-4651966.post@n4.nabble.com> Thanks Carl. I had it at 50 fps previously and changed it to 80. It made quite a difference on my Dell Laptop in my opinion -- made it scroll across the screen faster. The question will be will it make a difference should it be displayed on either of these TVs which we hope to have the webpage on: a) Sony 40 inch LED TV internet browser: http://www.sony.co.nz/product/kdl-40ex650 (this TV browser doesn't support Flash flv but does support HTML5 video with mp4 only. I'm assuming ffmpeg can save as mp4 (with 80fps -- it can save flv at 80 fps) b) Samsung 40 inch LED TV internet browser: http://www.samsung.com/nz/consumer/tv-audio-video/television/led-tv/UA40ES6600MXRD-spec (this TV browser supports Flash flv and HTML5 video with mp4 or .webm) Mark -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Newbie-questions-tp4651915p4651966.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Sat Jul 21 11:08:02 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 21 Jul 2012 11:08:02 +0200 Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <1342839250875-4651964.post@n4.nabble.com> References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> Message-ID: <20120721090802.GA18086@phare.normalesup.org> Le tridi 3 thermidor, an CCXX, Orbisoft Support a ?crit?: > - I need to remove the ./ I ran ffmpeg from my build tree. > - Use ffmpeg instead of ffmpeg_g I frequently only build ffmpeg_g to gain some time. > - Use ascent" rather than ascent' My bad, I must have changed the quotes inconsistently when rewrapping for the mail. > 2) On my original command string, I did change the output file to FLV and as > a result was able to use a frame rate of 80 frames per second which mad it > smoother: > > c:\mytemp\ffmpeg -r 80 -y -f image2 -i f:\mytemp\images\image%d.png > c:\mytemp\video\video.flv FLV is very not a good choice, especially since you do not set any encoding parameters. Since this is an intermediary video, you should go for lossles: ffmpeg -i image%d.png -c copy images.mkv It will be faster and preserve the full quality of the overlay. You can also try lossless H.264: -c libx264 -crf 0 -pix_fmt yuv444p It will take more time, but hopefully produce a smaller file. > 3) So using the method you mentioned I take it I would only need to add one > frame in total (the black rectangle) then the text would just scroll on > that? The blank frame is at: http://www.orbisoft.com/ffmpeg/image1.png With drawtext, you do not need to add anything, you put the text directly on the video where you need it. > 4) Would you be kind enough to tell me what the command line should be in > light of those parameters? I am hoping the file size of the resultant flv > created using your mentioned methodolgy may somehow be less than the 110 MB > for the full FLV I created by adding 100,000 or so png frames. This is hard to predict. 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 nicolas.george at normalesup.org Sat Jul 21 11:08:58 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 21 Jul 2012 11:08:58 +0200 Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> Message-ID: <20120721090858.GB18086@phare.normalesup.org> Le quartidi 4 thermidor, an CCXX, Carl Eugen Hoyos a ?crit?: > Most people's screens cannot show 80fps. The file is used as an intermediary to feed to the overlay filter, so this is not a problem. Not that the method is efficient, though. 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 nicolas.george at normalesup.org Sat Jul 21 11:18:54 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 21 Jul 2012 11:18:54 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] SDL and Video device - swscaler - 640x360 - 0x0 is invalid scaling dimension In-Reply-To: References: <20120718084323.GB7251@phare.normalesup.org> Message-ID: <20120721091854.GA20034@phare.normalesup.org> Le tridi 3 thermidor, an CCXX, Chau Pham a ?crit?: > Hi Everybody, Hi. Please do not top-post on this mailing-list; and if you do not know what it means, look it up. > it's old example but I have modified it to suitable ffmpeg version, It looks more modern. > => I think, the error is in ffmpeg's sws_getContext function in libswscale mudule. > > img_convert_ctx = sws_getContext(pFrame->width, pFrame->height, pCodecCtx->pix_fmt, > pFrameRGB->width, pFrameRGB->height, PIX_FMT_YUVJ420P, SWS_BICUBIC, NULL, NULL, NULL); Then you should probably add a printf just before and just after, tu be sure; and at the same time you print the values of the arguments to see whether they are valid. If they are not, you move the printf upwards to see where the invalid values come from. That is a bit tedious but in the end it works. 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 focustelev at gmail.com Sat Jul 21 11:31:37 2012 From: focustelev at gmail.com (focus television) Date: Sat, 21 Jul 2012 10:31:37 +0100 Subject: [FFmpeg-user] background process getting terminated Message-ID: <500A76F9.30405@gmail.com> Hi, I am using (nohup ffmpeg -i "rtmp://localhost:1935/base2 Playpath=mam1.stream live=1" -vcodec copy -b:v 700k -c:a copy -f flv rtmp://localhost/mal1/mam1 ;)& I am inputting about 15 repeated streams in the same .sh file in ubuntu But after some time it is getting terminated. Not sure if it is due to the bug nohup file or because i close the terminal session. I tried screen and background but still the process terminates after some hours. Not sure what is wrong. I dont want the log file and want to run it in background so that it doesnt get terminated when i close ssh. Any idea? From nicolas.george at normalesup.org Sat Jul 21 11:47:12 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 21 Jul 2012 11:47:12 +0200 Subject: [FFmpeg-user] background process getting terminated In-Reply-To: <500A76F9.30405@gmail.com> References: <500A76F9.30405@gmail.com> Message-ID: <20120721094712.GA27290@phare.normalesup.org> Le quartidi 4 thermidor, an CCXX, focus television a ?crit?: > I am using (nohup ffmpeg -i "rtmp://localhost:1935/base2 nohup is a stupid hack that does not really work. You should use setsid to really detach the process from the controlling tty. > Playpath=mam1.stream live=1" -vcodec copy -b:v 700k -c:a copy -f > flv rtmp://localhost/mal1/mam1 ;)& You need to prevent ffmpeg from reading on its standard input. For that, either add "< /dev/null" or use the new -nostdin option. > But after some time it is getting terminated. Not sure if it is due > to the bug nohup file or because i close the terminal session. > I tried screen and background but still the process terminates after > some hours. > Not sure what is wrong. > I dont want the log file and want to run it in background so that it > doesnt get terminated when i close ssh. Maybe you do not want the log file, but if it does not work, you need it. If The advice above do not fix that problem, be sure to read the errors in the log. You can consider discarding the log once you are sure everything works fine (but even so, I do not advise to). 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 llarevo at gmx.net Sat Jul 21 16:09:21 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Sat, 21 Jul 2012 16:09:21 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: <20120720191933.GB25072@leki> References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> Message-ID: <1342879761.12462.10.camel@tbastian-desktop.localdomain> > > capturing from analog cards Terratec Cinergy 400 TV and Terratec Cinergy > > XS USB isn't possible in ffmpeg versions from 0.7.13 to 0.11.1. The > > cards are proved OK for Linux and working with all of my other apps > > (tvtime, xawtv, mplayer, mencoder). See my discussion on linux-media > > http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/51055 > > > > I'm using Fedora 17 and tried different versions from 0.5.x wih > > different hardware. The cards were tuned to Channel E10 (europe-west) > > and had good quality signal (analog cable). > > > > The test results are > > Cinergy XS USB Cinergy 400 TV > > 0.5.10 OK OK > > Oh so it worked without libv4l2 at some point... That's interesting. > That's hard to tell like this what change could have cause the regression > since we have no way of testing; would you mind trying to git bisect on > libavdevice/v4l2.c between 0.5 and 0.7 and see if one of the commit > introduced that issue? I can try. But could you please describe the necessary steps a bit more detailed? I am not very familiar with git. A list of commands and short instructions and where to start or some howto should be sufficient. Thank You -- Felix From james.darnley at gmail.com Sat Jul 21 16:44:37 2012 From: james.darnley at gmail.com (James Darnley) Date: Sat, 21 Jul 2012 16:44:37 +0200 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. In-Reply-To: References: Message-ID: <500AC055.5010404@gmail.com> On 2012-07-20 21:32, Joseph Rosensweig wrote: > Hey all, > > I assume I'm missing something really simple here. But I'm not quite > sure what I'm doing wrong. I checked out the ffmpeg and x264 git versions > indicated in my subject header. I wanted to test out encoding H264 with > high, high10, high422, and high444 using libx264. However when I try to > encode with anything above high, the output always just shows high rather > than say high 4:2:2. Here are a few examples: > > Input #0, rawvideo, from 'pipe:0': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 30 tbr, 30 tbn, 30 tbc > > Any help here :-)? Why would anything higher than High Profile be used for 8-bit 4:2:0 video? If you want to use High422 Profile then give x264 4:2:2 video (-pix_fmt yuv422p). If you want to use High10 Profile then compile a 10-bit build of x264 and link ffmpeg to that. Setting the profile option for x264 does not force it to turn on all particular encoding features available in a profile. In fact it does just the opposite: it disables all features that are not allowed or returns an error in cases where it cannot. From coniophora at gmail.com Sat Jul 21 19:44:21 2012 From: coniophora at gmail.com (Jim Worrall) Date: Sat, 21 Jul 2012 11:44:21 -0600 Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp In-Reply-To: References: Message-ID: <4E06F525-D9E2-4F16-A56B-E09E132BA5E5@gmail.com> On Jul 20, 2012, at 3:04 PM, Michael Bradshaw wrote: >> >> Invalid pixel aspect ratio 1080/1661, limit is 255/255 reducing >> [aac @ 0xa7e3f20] Too many bits per frame requested > > Looks like aac is complaining you're requesting too high of a bitrate. > > Also, please refrain from top posting. > > --Michael Also invalid pixel aspect ratio. Seems like h263 is a very finicky codec. It is nice you are getting informative error messages though! Jim From rogerdpack2 at gmail.com Sun Jul 22 07:14:01 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 21 Jul 2012 23:14:01 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <5004F6BE.4090001@gmail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> <5004F6BE.4090001@gmail.com> Message-ID: >> I guess I should just forward on all this information to mingw-w64 then? > > > Yes, since the script uses MinGW-w64's threading library they should have a > good idea what might be going on. They also are very helpful and can > possible offer a quick fix. > > Are we sure the issue is not on FFmpegs end? Has anyone had a chance to test > an identical version build on Linux? Maybe a FFmpeg bug report is in order? I asked earlier and "nobody" seemed to have seen it reproduce on a linux build. However, I don't have a linux box (oddly) so haven't yet tested it myself. My guess is that it doesn't reproduce though. > I would like to stick with MinGW-w64s thread library if we can. Like I said > they may be able to offer a fix. Ok pinged them. > I'm available to compile any custom FFmpeg build with debug symbols if that > is whats needed. I can configure both FFmpeg and x264 whatever way is > needed. Just let me know. ffmpeg_g with libx264 compiled with debug symbols might be a bit useful/helpful. Thanks! -roger- From focustelev at gmail.com Sun Jul 22 12:20:55 2012 From: focustelev at gmail.com (focus television) Date: Sun, 22 Jul 2012 11:20:55 +0100 Subject: [FFmpeg-user] Using ffmpeg with flash encoder Message-ID: <500BD407.4050209@gmail.com> Hi, I have a requirement. One streamer client is using Flash media encoder and sending the stream to the Server. But i am using ffmpeg on my server. So in order to use it what should i do ? I want to control the stream connection from the server But currently the setup is such that the client uses FME and connects from his side . But if i restart server , i have to ask him to connect it again which is difficult everytime. So instead of he connecting to our server , can we use ffmpeg or someother means to connect to his machine and access FMLE? George From cehoyos at ag.or.at Sun Jul 22 13:29:06 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Jul 2012 11:29:06 +0000 (UTC) Subject: [FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp References: <4E06F525-D9E2-4F16-A56B-E09E132BA5E5@gmail.com> Message-ID: Jim Worrall gmail.com> writes: > >> Invalid pixel aspect ratio 1080/1661, limit is 255/255 reducing > >> [aac @ 0xa7e3f20] Too many bits per frame requested > > > > Looks like aac is complaining you're requesting too high of a bitrate. > > > > Also, please refrain from top posting. > > Also invalid pixel aspect ratio. The message about pixel aspect ratio above is a warning (about a problem FFmpeg was able to fix itself), the aac message is an error (that stops encoding). Either reduce the bitrate or consider using an external aac encoder library. > Seems like h263 is a very finicky codec. It is specified like this, if you want an extremely similar, less restrictive codec, use h263p. Carl Eugen From cehoyos at ag.or.at Sun Jul 22 13:40:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Jul 2012 11:40:01 +0000 (UTC) Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> Message-ID: llarevo gmx.net gmx.net> writes: > I can try. But could you please describe the necessary steps a bit more > detailed? I am not very familiar with git. A list of commands and short > instructions and where to start or some howto should be sufficient. Could you test 44b2784? (make distclean && git checkout 44b2784 && ./configure && make) I will try to guide you through the bisecting process, if above works ok you can also try yourself (but it is unfortunately not always trivial): git checkout 44b2784 git bisect good git checkout n0.7 git bisect bad (you should of course test if that is really true) ... Carl Eugen From llarevo at gmx.net Sun Jul 22 14:06:08 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Sun, 22 Jul 2012 14:06:08 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> Message-ID: <1342958768.15693.21.camel@tbastian-desktop.localdomain> > > I can try. But could you please describe the necessary steps a bit more > > detailed? I am not very familiar with git. A list of commands and short > > instructions and where to start or some howto should be sufficient. > > Could you test 44b2784? > (make distclean && git checkout 44b2784 && ./configure && make) It doesn't compile. I did git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg/ git checkout 44b2784 ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-gpl --enable-version3 make -j8 The Result is (...) libavcodec/x86/h264_qpel_mmx.c: Assembler messages: libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp' make: *** [libavcodec/x86/dsputil_mmx.o] Fehler 1 I tried also ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 This fails with libavcodec/x86/h264_qpel_mmx.c: Assembler messages: libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp' libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp' make: *** [libavcodec/x86/dsputil_mmx.o] Fehler 1 make: *** Warte auf noch nicht beendete Prozesse... In file included from libavcodec/mpegvideo.h:32:0, from libavcodec/dsputil.c:37: libavcodec/get_bits.h: In Funktion ?skip_bits?: How could I proceed? Thanks -- Felix From fernando.martinelli at gmail.com Sun Jul 22 14:11:21 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Sun, 22 Jul 2012 14:11:21 +0200 Subject: [FFmpeg-user] Problem converting from FLV to MP4 Message-ID: Hello everybody, I would really appreciate if you could shed some light on my problem... I need to convert videos with different characteristics (resolution, fps, etc) from format FLV to format MP4 with always the same output resolution (320x240) and fps (24). Although I managed to do that, some of my videos are changing a lot their lengths, which is causing Audio-Video synchronization problems (as I'm merging audio streams independently with SOX and merge audio and video at the end). So what I would like to have is an *MP4 converted like said above but with the SAME length as the FLV input file*. Is that possible? If so, how? *Thanks a lot for any help, this is really urgent!* Fernando PS: Here is the command I'm using to convert the flv files and the information of the input and output files (input has length 11:25 BUT output 11:46) Command: *input.flv -vcodec libx264 -b:v 200k -r 24 -vf scale=320:240 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 0 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -an -y output.mp4* * * File info: *Input #0, flv, from '**input.flv*'*:* * Metadata:* * creationdate : Sat Jul 21 12:20:45* * Duration: 00:11:25.61, start: 0.000000, bitrate: 211 kb/s* * Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 12 tbr, 1k tbn, 24 tbc* * Stream #0:1: Audio: speex, 16000 Hz, mono, s16* *Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':* * Metadata:* * major_brand : isom* * minor_version : 512* * compatible_brands: isomiso2avc1mp41* * encoder : Lavf54.6.100* * Duration: 00:11:46.87, start: 0.000000, bitrate: 203 kb/s* * Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 202 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc* * Metadata:* * handler_name : VideoHandler* From cehoyos at ag.or.at Sun Jul 22 14:39:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Jul 2012 12:39:01 +0000 (UTC) Subject: [FFmpeg-user] Problem converting from FLV to MP4 References: Message-ID: Fernando Martinelli gmail.com> writes: > Although I managed to do that, some of my videos are changing a lot their > lengths, which is causing Audio-Video synchronization problems (as I'm > merging audio streams independently with SOX and merge audio and video at > the end). Why don't you process audio and video together? There will be samples where this is needed to keep A/V sync. > PS: Here is the command I'm using to convert the flv files and the > information of the input and output files (input has length 11:25 BUT > output 11:46) Please post complete, uncut console output together with your command line and if the problem is also reproducible without external libraries use -vcodec mpeg4. Carl Eugen From cehoyos at ag.or.at Sun Jul 22 14:39:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Jul 2012 12:39:49 +0000 (UTC) Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1342958768.15693.21.camel@tbastian-desktop.localdomain> Message-ID: llarevo gmx.net gmx.net> writes: > libavcodec/x86/h264_qpel_mmx.c: Assembler messages: > libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for > `cmp' Try --disable-decoder=h264 or --disable-asm or both. Carl Eugen From fernando.martinelli at gmail.com Sun Jul 22 15:34:07 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Sun, 22 Jul 2012 15:34:07 +0200 Subject: [FFmpeg-user] Problem converting from FLV to MP4 In-Reply-To: References: Message-ID: Hi Carl, I appreciate your quick answer! Let me explain the reason why I'm not doing it with the sound: I have as inputs: - Video 1 FLV + Audio 1 - Video 2 FLV + Audio 2 The output I want: - Video 1 MP4 + Audio 1 + Audio 2 - Video 2 MP4 + Audio 1 + Audio 2 So what I do is: 1. Extract the audios of both files with ffmpeg and merge them with SOX 2. Convert Video 1 and Video 2 to MP4 with ffmpeg 3. Merge Video 1 with the merged Audios and then Video 2 with the same merged audios I'm only doing it this way because I *did not manage to map two audio streams to one output* video using ffmpeg. I would like to ideally map one audio stream to one channel (left) of the output and the other audio input to the other channel (right). Is there a way to do it that I don't know of? Danke sehr f?r deine Hilfe! Viele Gr??e, Fernando PS: The entire script is as follows (sorry but I can't paste the entire output as it is huuuge - it has a lot of lines like this *invalid dropping st:0** DTS 8520, next:10374000*...): echo "Extracts sounds of video files" ffmpeg -i $1$input_video_interviewer -vn -ar 44100 -ac 2 -ab 192 -f wav -y $2$3"audio_interviewer.wav" ffmpeg -i $1$input_video_interviewee -vn -ar 44100 -ac 2 -ab 192 -f wav -y $2$4"audio_interviewee.wav" #read -p "STEP 3- Extracted wav audio from flv videos" echo "/n/nMixes both sounds for interviewer\`s video" sox -M $2$3"audio_interviewer.wav" $2$4"audio_interviewee.wav" $2$3$4"both_audios.wav" #read -p "STEP 4- Sox mixed wav audio files" echo "/n/nTransforms video 1 from flv to mp4" ffmpeg -i $1$input_video_interviewer -i $2$3$4"both_audios.wav" -vcodec libx264 -b:v 200k -r 24 -vf scale=320:240 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 0 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -ar 44100 -map 0:0 -map 1:0 -y $2$input_video_interviewer".mp4" #read -p "STEP 1- Interviewer video has one audio track in mp4" echo "/n/nTransforms video 2 from flv to mp4" ffmpeg -i $1$input_video_interviewee -i $2$3$4"both_audios.wav" -vcodec libx264 -b:v 200k -r 24 -vf scale=320:240 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 0 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -ar 44100 -map 0:0 -map 1:0 -y $2$input_video_interviewee".mp4" #read -p "STEP 2- Interviewee video has one audio track in mp4" echo "/n/nDeletes intermediate files" rm -f $2$3"audio_interviewer.wav" $2$4"audio_interviewee.wav" $2$3$4"both_audios.wav" ----------------------------- 2012/7/22 Carl Eugen Hoyos > Fernando Martinelli gmail.com> writes: > > > Although I managed to do that, some of my videos are changing a lot their > > lengths, which is causing Audio-Video synchronization problems (as I'm > > merging audio streams independently with SOX and merge audio and video at > > the end). > > Why don't you process audio and video together? > There will be samples where this is needed to keep A/V sync. > > > PS: Here is the command I'm using to convert the flv files and the > > information of the input and output files (input has length 11:25 BUT > > output 11:46) > > Please post complete, uncut console output together with your command > line and if the problem is also reproducible without external > libraries use -vcodec mpeg4. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Regards/ viele Gr??e, Fernando From cehoyos at ag.or.at Sun Jul 22 16:15:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Jul 2012 14:15:09 +0000 (UTC) Subject: [FFmpeg-user] Problem converting from FLV to MP4 References: Message-ID: Fernando Martinelli gmail.com> writes: > I have as inputs: > > - Video 1 FLV + Audio 1 > - Video 2 FLV + Audio 2 > > The output I want: > > - Video 1 MP4 + Audio 1 + Audio 2 > - Video 2 MP4 + Audio 1 + Audio 2 I believe this works with FFmpeg, consider reading about Audio Filters on http://ffmpeg.org/ffmpeg.html [...] > sorry but I can't paste the entire output as it is huuuge - > it has a lot of lines like this *invalid dropping > st:0** DTS 8520, next:10374000*... Then cut those beginning from ~ the fifth line until a few lines before end of transcoding. Please do not top-post here, Carl Eugen From llarevo at gmx.net Sun Jul 22 18:15:49 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Sun, 22 Jul 2012 18:15:49 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1342958768.15693.21.camel@tbastian-desktop.localdomain> Message-ID: <1342973749.3108.12.camel@tbastian-desktop.localdomain> > > libavcodec/x86/h264_qpel_mmx.c: Assembler messages: > > libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for > > `cmp' > > Try --disable-decoder=h264 or --disable-asm or both. Thanks, the latter allowed compilation. But the so compiled ffmpeg shows the io error: /usr/local/bin/ffmpeg -t 300 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0 out-vga-2M-5min.mpg FFmpeg version git-44b2784, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 22 2012 18:02:34 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libx264 --enable-libxvid --disable-asm libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 0 / 0.16. 0 libavcodec 52.102. 0 / 52.102. 0 libavformat 52.92. 0 / 52.92. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.72. 0 / 1.72. 0 libswscale 0.12. 0 / 0.12. 0 [video4linux2 @ 0x2084d80] ioctl set time per frame(1/25) failed /dev/video0: Input/output error Without setting the framerate, nothing happens after starting ffmpeg: /usr/local/bin/ffmpeg -t 300 -f video4linux2 -s vga -b 2000k -i /dev/video0 out-vga-2M-5min.mpg FFmpeg version git-44b2784, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 22 2012 18:02:34 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libx264 --enable-libxvid --disable-asm libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 0 / 0.16. 0 libavcodec 52.102. 0 / 52.102. 0 libavformat 52.92. 0 / 52.92. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.72. 0 / 1.72. 0 libswscale 0.12. 0 / 0.12. 0 ^C ffmpeg 0.5.10 without setting the framerate doesn't work too, but gives: /usr/local/bin/ffmpeg -t 300 -f video4linux2 -s vga -b 2000k -i /dev/video0 out-vga-2M-5min.mpg FFmpeg version 0.5.10, Copyright (c) 2000-2012 Fabrice Bellard, et al. configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-libamr-nb --enable-libamr-wb --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdirac --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libx264 --enable-libxvid libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 built on Jul 22 2012 17:56:49, gcc: 4.7.0 20120507 (Red Hat 4.7.0-5) I. [video4linux2 @ 0x2e1ca90][3]Capabilities: 5010015 From tim.bradstock at googlemail.com Sun Jul 22 19:32:58 2012 From: tim.bradstock at googlemail.com (Tim Bradstock) Date: Sun, 22 Jul 2012 18:32:58 +0100 Subject: [FFmpeg-user] Converting to WMV - Fails under Media Player Message-ID: Dear All, I'm trying to convert FLV files to WMV using FFmpeg GPL (Shared) but Windows Media Player is refusing to play the resulting WMV and reports "Windows Media Player encountered a problem...error message C00D11B1". For reference I'm using FFmpeg git-85761ef 32-bit Shared (2012-07-20) but have also tried earlier builds and also a LGPL build without success. The command line I'm using is... ffmpeg -y -i Input.flv -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 output.wmv FFmpeg generates the output without any warnings. The above command line comes straight from WinFF and WinFF generates the WMV perfectly i.e. one that plays correctly under Media Player. Given WinFF is able to successfully generate WMV that play under Media Player, I don't want to start copying across more codecs to solve the problem as there must be a solution that will work with the default install of Media Player. Any help is much appreciated. Thanks. Tim Bradstock From batguano999 at hotmail.com Sun Jul 22 20:20:47 2012 From: batguano999 at hotmail.com (bat guano) Date: Sun, 22 Jul 2012 18:20:47 +0000 Subject: [FFmpeg-user] Converting to WMV - Fails under Media Player In-Reply-To: References: Message-ID: > > I'm trying to convert FLV files to WMV... Hi WinFF-v1.4.2 for Windows uses "FFmpeg version N-38632-g4cda8aa". When you use command:- ... -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r25... Are you suggesting that files produced by "FFmpeg version N-38632-g4cda8aa" will play OK with Windows Media Player... and files produced by "FFmpeg git-85761ef 32-bit Shared (2012-07-20)" won't play OK with Windows Media Player? From tim.bradstock at googlemail.com Sun Jul 22 20:24:06 2012 From: tim.bradstock at googlemail.com (Tim Bradstock) Date: Sun, 22 Jul 2012 19:24:06 +0100 Subject: [FFmpeg-user] Converting to WMV - Fails under Media Player In-Reply-To: References: Message-ID: Hi Bat, Yes that seems to be the case. WMV files produced by "FFmpeg git-85761ef 32-bit Shared (2012-07-20)" won't play OK with the default installation of Windows Media Player. However, using the same command line with WinFF generates a WMV which does correctly play under Windows Media Player. Best wishes, Tim On Sun, Jul 22, 2012 at 7:20 PM, bat guano wrote: > > > > > > > > I'm trying to convert FLV files to WMV... > > Hi > WinFF-v1.4.2 for Windows uses "FFmpeg version N-38632-g4cda8aa". > > When you use command:- > ... -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r25... > Are you suggesting that files produced by "FFmpeg version > N-38632-g4cda8aa" will play OK with Windows Media Player... > and files produced by "FFmpeg git-85761ef 32-bit Shared (2012-07-20)" > won't play OK with Windows Media Player? > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tim.bradstock at googlemail.com Sun Jul 22 22:29:16 2012 From: tim.bradstock at googlemail.com (Tim Bradstock) Date: Sun, 22 Jul 2012 21:29:16 +0100 Subject: [FFmpeg-user] Converting to WMV - Fails under Media Player In-Reply-To: References: Message-ID: Hi, Attached for reference is a copy of the command line activity for both tests. As mentioned, only the WinFF WMV will play under Windows Media Player - the other WMV created by FFmpeg (Shared) fails to play - even though exactly the same command line parameters were used in both instances... ffmpeg -y -i Input.flv -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 output.wmv Tim On Sun, Jul 22, 2012 at 7:24 PM, Tim Bradstock wrote: > Hi Bat, > > Yes that seems to be the case. > > WMV files produced by "FFmpeg git-85761ef 32-bit Shared (2012-07-20)" > won't play OK with the default installation of Windows Media Player. > However, using the same command line with WinFF generates a WMV which does > correctly play under Windows Media Player. > > Best wishes, > > Tim > > On Sun, Jul 22, 2012 at 7:20 PM, bat guano wrote: > >> >> >> >> >> > >> > I'm trying to convert FLV files to WMV... >> >> Hi >> WinFF-v1.4.2 for Windows uses "FFmpeg version N-38632-g4cda8aa". >> >> When you use command:- >> ... -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r25... >> Are you suggesting that files produced by "FFmpeg version >> N-38632-g4cda8aa" will play OK with Windows Media Player... >> and files produced by "FFmpeg git-85761ef 32-bit Shared (2012-07-20)" >> won't play OK with Windows Media Player? >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > -------------- next part -------------- FFmpeg_LGPL>ffmpeg -y -i Input.flv -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 outputMyWinFFString.wmv ffmpeg version N-40601-g9eb99ab Copyright (c) 2000-2012 the FFmpeg developers built on May 11 2012 20:32:47 with gcc 4.6.3 configuration: --disable-static --enable-shared --enable-version3 --disable-w3 2threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-fr ei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libope ncore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-lib speex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-zlib libavutil 51. 50.100 / 51. 50.100 libavcodec 54. 21.101 / 54. 21.101 libavformat 54. 4.100 / 54. 4.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.105 / 2. 72.105 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 Input #0, flv, from 'Input.flv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : Duration: 00:09:56.41, start: 0.000000, bitrate: 1097 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 100 5 kb/s, 24 tbr, 1k tbn, 48 tbc Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 110 kb/s [buffer @ 01a2ac60] w:854 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:fl ags=2 [buffersink @ 01a2ae80] No opaque field provided Output #0, asf, to 'outputMyWinFFString.wmv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : WM/EncodingSettings: Lavf54.4.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 1000 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 159 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> wmv2) Stream #0:1 -> #0:1 (aac -> wmav2) Press [q] to stop, [?] for help frame= 28 fps=0.0 q=2.0 size= 135kB time=00:00:01.12 bitrate= 990.2kbits/s -------------- next part -------------- C:\Program Files\WinFF>title Converting Input.flv (1/1) C:\Program Files\WinFF>"C:\Program Files\WinFF\ffmpeg.exe" -y -i "C:\FFmpeg_LGPL \Input.flv" -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 "C:\FFmpeg_LGP L\Successfull WMF Conversions\Input.wmv" ffmpeg version N-38632-g4cda8aa Copyright (c) 2000-2012 the FFmpeg developers built on Mar 8 2012 02:38:08 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc 14) configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch= x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect --enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 - lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx libavutil 51. 42.100 / 51. 42.100 libavcodec 54. 10.100 / 54. 10.100 libavformat 54. 2.100 / 54. 2.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 63.100 / 2. 63.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 7.100 / 0. 7.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, flv, from 'C:\FFmpeg_LGPL\Input.flv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : Duration: 00:09:56.41, start: 0.000000, bitrate: 1097 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 100 5 kb/s, 24 tbr, 1k tbn, 48 tbc Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 110 kb/s [buffer @ 0x3de0da0] w:854 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: Output #0, asf, to 'C:\FFmpeg_LGPL\Successfull WMF Conversions\Input.wmv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : WM/EncodingSettings: Lavf54.2.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 1000 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 159 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> wmv2) Stream #0:1 -> #0:1 (aac -> wmav2) Press [q] to stop, [?] for help frame= 35 fps=0.0 q=2.0 size= 207kB time=00:00:01.40 bitrate=1212.7kbits/s From tim.bradstock at googlemail.com Sun Jul 22 22:34:19 2012 From: tim.bradstock at googlemail.com (Tim Bradstock) Date: Sun, 22 Jul 2012 21:34:19 +0100 Subject: [FFmpeg-user] Converting to WMV - Fails under Media Player In-Reply-To: References: Message-ID: Hi, Attached for reference is a copy of the command line activity for both tests. As mentioned, only the WinFF WMV will play under Windows Media Player - the other WMV created by FFmpeg (Shared) fails to play - even though exactly the same command line parameters were used in both instances... ffmpeg -y -i Input.flv -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 output.wmv Tim Dear All, > > I'm trying to convert FLV files to WMV using FFmpeg GPL (Shared) but > Windows Media Player is refusing to play the resulting WMV and reports > "Windows Media Player encountered a problem...error message C00D11B1". > > For reference I'm using FFmpeg git-85761ef 32-bit Shared (2012-07-20) but > have also tried earlier builds and also a LGPL build without success. > > The command line I'm using is... > > ffmpeg -y -i Input.flv -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r > 25 output.wmv > > FFmpeg generates the output without any warnings. > > The above command line comes straight from WinFF and WinFF generates the > WMV perfectly i.e. one that plays correctly under Media Player. > > Given WinFF is able to successfully generate WMV that play under Media > Player, I don't want to start copying across more codecs to solve the > problem as there must be a solution that will work with the default install > of Media Player. > > Any help is much appreciated. Thanks. > > Tim Bradstock > -------------- next part -------------- FFmpeg_LGPL>ffmpeg -y -i Input.flv -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 outputMyWinFFString.wmv ffmpeg version N-40601-g9eb99ab Copyright (c) 2000-2012 the FFmpeg developers built on May 11 2012 20:32:47 with gcc 4.6.3 configuration: --disable-static --enable-shared --enable-version3 --disable-w3 2threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-fr ei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libope ncore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-lib speex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-zlib libavutil 51. 50.100 / 51. 50.100 libavcodec 54. 21.101 / 54. 21.101 libavformat 54. 4.100 / 54. 4.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.105 / 2. 72.105 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 Input #0, flv, from 'Input.flv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : Duration: 00:09:56.41, start: 0.000000, bitrate: 1097 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 100 5 kb/s, 24 tbr, 1k tbn, 48 tbc Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 110 kb/s [buffer @ 01a2ac60] w:854 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:fl ags=2 [buffersink @ 01a2ae80] No opaque field provided Output #0, asf, to 'outputMyWinFFString.wmv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : WM/EncodingSettings: Lavf54.4.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 1000 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 159 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> wmv2) Stream #0:1 -> #0:1 (aac -> wmav2) Press [q] to stop, [?] for help frame= 28 fps=0.0 q=2.0 size= 135kB time=00:00:01.12 bitrate= 990.2kbits/s -------------- next part -------------- C:\Program Files\WinFF>title Converting Input.flv (1/1) C:\Program Files\WinFF>"C:\Program Files\WinFF\ffmpeg.exe" -y -i "C:\FFmpeg_LGPL \Input.flv" -vcodec wmv2 -acodec wmav2 -b:v 1000k -b:a 160k -r 25 "C:\FFmpeg_LGP L\Successfull WMF Conversions\Input.wmv" ffmpeg version N-38632-g4cda8aa Copyright (c) 2000-2012 the FFmpeg developers built on Mar 8 2012 02:38:08 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc 14) configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch= x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect --enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 - lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx libavutil 51. 42.100 / 51. 42.100 libavcodec 54. 10.100 / 54. 10.100 libavformat 54. 2.100 / 54. 2.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 63.100 / 2. 63.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 7.100 / 0. 7.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, flv, from 'C:\FFmpeg_LGPL\Input.flv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : Duration: 00:09:56.41, start: 0.000000, bitrate: 1097 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 100 5 kb/s, 24 tbr, 1k tbn, 48 tbc Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 110 kb/s [buffer @ 0x3de0da0] w:854 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: Output #0, asf, to 'C:\FFmpeg_LGPL\Successfull WMF Conversions\Input.wmv': Metadata: starttime : 0 totalduration : 596 totaldatarate : 1097 bytelength : 81844829 canseekontime : true sourcedata : BD43847C6HH1342369653122385 purl : pmsg : WM/EncodingSettings: Lavf54.2.100 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 1000 kb/s, 1k tbn, 25 tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 159 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> wmv2) Stream #0:1 -> #0:1 (aac -> wmav2) Press [q] to stop, [?] for help frame= 35 fps=0.0 q=2.0 size= 207kB time=00:00:01.40 bitrate=1212.7kbits/s From fernando.martinelli at gmail.com Mon Jul 23 02:52:51 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Mon, 23 Jul 2012 02:52:51 +0200 Subject: [FFmpeg-user] Problem converting from FLV to MP4 In-Reply-To: References: Message-ID: 2012/7/22 Carl Eugen Hoyos > Fernando Martinelli gmail.com> writes: > > > I have as inputs: > > > > - Video 1 FLV + Audio 1 > > - Video 2 FLV + Audio 2 > > > > The output I want: > > > > - Video 1 MP4 + Audio 1 + Audio 2 > > - Video 2 MP4 + Audio 1 + Audio 2 > > I believe this works with FFmpeg, consider reading about Audio > Filters on http://ffmpeg.org/ffmpeg.html > > I did, but did not manage to apply it.. But this is not the main issue, as I can do the processing with multiple steps.. The problem is the async between audio and video. > [...] > > > sorry but I can't paste the entire output as it is huuuge - > > it has a lot of lines like this *invalid dropping > > st:0** DTS 8520, next:10374000*... > > Then cut those beginning from ~ the fifth line until a few > lines before end of transcoding. > I tested the code below with and without the fps parameter (-r 24, which I need in the output files). Without it the length of the mp4 video remains almost exactly the same as the flv input. However (see below), with the -r parameter the output video is much longer although the audio stays the same (causing the asynchronicity). *Here is the command and the output:* ffmpeg -i input.flv -vcodec mpeg4 -b:v 200k -r 24 -vf scale=320:240 -ar 44100 -y output.mp4 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 12 2012 15:00:45 with gcc 4.7.1 configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --disable-decoder=libdirac --enable-libvorbis --disable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu 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 [libspeex @ 0xc22b80] Missing Speex header, assuming defaults. Guessed Channel Layout for Input Stream #0.1 : mono Input #0, flv, from ' input .flv': Metadata: creationdate : Sat Jul 21 12:20:45 Duration: 00:11:25.61, start: 0.000000, bitrate: 211 kb/s Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 12 tbr, 1k tbn, 24 tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 [buffer @ 0xc23160] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:1/1 sws_param:flags=2 [buffersink @ 0xca0cc0] No opaque field provided [scale @ 0xc30ee0] w:320 h:240 fmt:yuv420p sar:1/1 -> w:320 h:240 fmt:yuv420p sar:1/1 flags:0x4 [aformat @ 0xc32180] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 0xc1d6c0] chl:mono fmt:s16 r:16000Hz -> chl:mono fmt:s16 r:44100Hz [libspeex @ 0xc22b80] Missing Speex header, assuming defaults. Output #0, mp4, to 'output.mp4': Metadata: creationdate : Sat Jul 21 12:20:45 encoder : Lavf54.6.100 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 24 tbn, 24 tbc Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, mono, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg4) Stream #0:1 -> #0:1 (libspeex -> libfaac) Press [q] to stop, [?] for help DTS 2068, next:2151333 st:0 invalid dropping PTS 2068, next:2151333 invalid dropping st:0 [... many lines like that] frame=16965 fps=487 q=6.1 Lsize= 24311kB time=00:11:25.63 bitrate= 290.5kbits/s dup=8762 drop=0 video:17580kB audio:6327kB global headers:0kB muxing overhead 1.692541% *Then when I run only ffmpeg -i output.mp4:* Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf54.6.100 Duration: 00:11:46.87, start: 0.000000, bitrate: 281 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 203 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 75 kb/s Metadata: handler_name : SoundHandler At least one output file must be specified > > Please do not top-post here, Carl Eugen > Sorry, I'm new here and still have a lot to learn =) Thanks a lot again Carl! > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Regards/ viele Gr??e, Fernando From phpdev at ehrhardt.nl Mon Jul 23 03:21:01 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Mon, 23 Jul 2012 03:21:01 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> <5004F6BE.4090001@gmail.com> Message-ID: <5c9p08tbqnsgp4g3n7hqhqthbjit0a7njc@4ax.com> Roger Pack in gmane.comp.video.ffmpeg.user (Sat, 21 Jul 2012 23:14:01 -0600): >ffmpeg_g with libx264 compiled with debug symbols might be a bit useful/helpful. http://x32.elijst.nl/ffdebug.zip FFmpeg b27c7d7 (Andy's revision) with x264 999b753 (Kyle's current version), x64, pthreaded. x264 compiled with --enable-debug, ffmpeg & ffprobe with their _g versions. I did not yet check if the spikes occur, but it would also be interesting if they don't. Built with Kyle's 3.0.5 script on Ubuntu 12 (in a Virtualbox). Jan From 550399108 at qq.com Mon Jul 23 03:43:19 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Mon, 23 Jul 2012 09:43:19 +0800 Subject: [FFmpeg-user] use two video filters together Message-ID: Hi,all I used to add a logo into a movie with the command line that "-vf 'movie=logo.png,scale=100:50[logo];[in][logo]overlay=10:10[out]'". It works! Now,I want to add another video filter that "-vf setpts=0.5*PTS". If I use the two together ,only the second one is effective. How can I transencod my video with the two filters together and make sure those two are both effective. From inbox.mirror.orbisoft at gmail.com Mon Jul 23 03:39:54 2012 From: inbox.mirror.orbisoft at gmail.com (Orbisoft Support) Date: Sun, 22 Jul 2012 18:39:54 -0700 (PDT) Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <20120721090802.GA18086@phare.normalesup.org> References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> <20120721090802.GA18086@phare.normalesup.org> Message-ID: <1343007594906-4651994.post@n4.nabble.com> Thanks. Using: c:\mytemp\ffmpeg -y -i C:\mytemp\video\video.flv -vf "drawtext=fontfile=/Windows/Fonts/arialbd.ttf:text=YOU SHOULD NOT BE WATCHING THIS:fontsize=46:fontcolor=white:shadowcolor=black:shadowx=1:shadowy=1:x=W*(1-0.05*t):y=H+descent-ascent" c:\mytemp\video\t1.flv I got this: http://www.orbisoft.com/ffmpeg/test001.flv Questions: 1) If I want to simply make a video out of the ticker only, would I still need an original video to overlay the text on or can I simply create it from the drawtext? If I do need a blank video to start with (e.g. a black rectangle 1920x50 pixels) how would I know how long to create the video for and how could I create it? 2) The drawstring text in http://www.orbisoft.com/ffmpeg/test001.flv doesn't in my opinion appear as smooth as the png animation - was a bit jumpy occasionally. I know my png were anti-aliased. Do you know how I could improve it? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Newbie-questions-tp4651915p4651994.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From misha.penkov at gmail.com Mon Jul 23 05:46:15 2012 From: misha.penkov at gmail.com (Misha Penkov) Date: Mon, 23 Jul 2012 12:46:15 +0900 Subject: [FFmpeg-user] Playback problems for video compressed as lossless H.264 Message-ID: Hi, I'm compressing a video with ffmpeg and libx264. I want lossless compression: ffmpeg -i h.264/00.mp4 -vcodec libx264 -g 30 -qmax 0 -y bad.mp4 > bad.txt 2>&1 If I try to play back the file in any standard video player (e.g. VLC), then the video does not play back smoothly, and many frames are just gray. Strangely, in ffplay, it seems to work just fine. If I use lossy compression: ffmpeg -i h.264/00.mp4 -vcodec libx264 -g 30 -y good.mp4 > good.txt 2>&1 then things work fine. What could be the problem? I can provide the test media if required. My version of ffmpeg is N-42806-gf4451d2. Cheers, Misha -------------- next part -------------- ffmpeg version N-42806-gf4451d2 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 23 2012 12:00:06 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 --enable-shared --enable-pic --enable-libopencv libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 44.100 / 54. 44.100 libavformat 54. 19.100 / 54. 19.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 3.100 / 3. 3.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h.264/00.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.6.101 Duration: 00:00:10.08, start: 0.000000, bitrate: 143388 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 143385 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: handler_name : VideoHandler [libx264 @ 0x2634e80] using SAR=1/1 [libx264 @ 0x2634e80] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x2634e80] profile High, level 3.1 [libx264 @ 0x2634e80] 264 - core 118 r2085 8a62835 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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=30 keyint_min=3 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=0 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'bad.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.19.100 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1-0, 25 tbn, 25 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Press [q] to stop, [?] for help DTS -1, next:-40000 st:0 invalid dropping frame= 16 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 34 fps= 33 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 42 fps= 25 q=0.0 size= 1024kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 45 fps= 20 q=0.0 size= 3275kB time=00:00:00.12 bitrate=223600.3kbits/s frame= 48 fps= 17 q=0.0 size= 5359kB time=00:00:00.24 bitrate=182913.2kbits/s frame= 54 fps= 15 q=0.0 size= 9581kB time=00:00:00.48 bitrate=163514.3kbits/s frame= 57 fps= 13 q=0.0 size= 11897kB time=00:00:00.60 bitrate=162439.3kbits/s frame= 63 fps= 12 q=0.0 size= 16490kB time=00:00:00.84 bitrate=160813.7kbits/s frame= 69 fps= 11 q=0.0 size= 20938kB time=00:00:01.08 bitrate=158816.3kbits/s frame= 75 fps= 11 q=0.0 size= 25402kB time=00:00:01.32 bitrate=157646.7kbits/s frame= 78 fps= 10 q=0.0 size= 27503kB time=00:00:01.44 bitrate=156464.1kbits/s frame= 82 fps=9.9 q=0.0 size= 30324kB time=00:00:01.60 bitrate=155258.1kbits/s frame= 87 fps=9.8 q=0.0 size= 33863kB time=00:00:01.80 bitrate=154115.0kbits/s frame= 89 fps=9.4 q=0.0 size= 35336kB time=00:00:01.88 bitrate=153974.9kbits/s frame= 94 fps=9.4 q=0.0 size= 38994kB time=00:00:02.08 bitrate=153576.9kbits/s frame= 97 fps=9.0 q=0.0 size= 41214kB time=00:00:02.20 bitrate=153467.8kbits/s frame= 103 fps=8.9 q=0.0 size= 45532kB time=00:00:02.44 bitrate=152867.9kbits/s frame= 109 fps=8.8 q=0.0 size= 49762kB time=00:00:02.68 bitrate=152109.0kbits/s frame= 113 fps=8.6 q=0.0 size= 52724kB time=00:00:02.84 bitrate=152084.1kbits/s frame= 117 fps=8.6 q=0.0 size= 55770kB time=00:00:03.00 bitrate=152288.8kbits/s frame= 120 fps=8.5 q=0.0 size= 58111kB time=00:00:03.12 bitrate=152579.2kbits/s frame= 122 fps=8.3 q=0.0 size= 59621kB time=00:00:03.20 bitrate=152629.0kbits/s frame= 127 fps=8.3 q=0.0 size= 63087kB time=00:00:03.40 bitrate=152001.6kbits/s frame= 130 fps=8.1 q=0.0 size= 65199kB time=00:00:03.52 bitrate=151737.0kbits/s frame= 135 fps=8.1 q=0.0 size= 69020kB time=00:00:03.72 bitrate=151991.5kbits/s frame= 141 fps=8.1 q=0.0 size= 73555kB time=00:00:03.96 bitrate=152162.6kbits/s frame= 144 fps=7.9 q=0.0 size= 75805kB time=00:00:04.08 bitrate=152204.4kbits/s frame= 149 fps=7.9 q=0.0 size= 79309kB time=00:00:04.28 bitrate=151799.7kbits/s frame= 155 fps=7.9 q=0.0 size= 83518kB time=00:00:04.52 bitrate=151367.9kbits/s frame= 158 fps=7.8 q=0.0 size= 85670kB time=00:00:04.64 bitrate=151251.2kbits/s frame= 163 fps=7.7 q=0.0 size= 89292kB time=00:00:04.84 bitrate=151132.0kbits/s frame= 169 fps=7.7 q=0.0 size= 93798kB time=00:00:05.08 bitrate=151258.2kbits/s frame= 174 fps=7.7 q=0.0 size= 97567kB time=00:00:05.28 bitrate=151376.9kbits/s frame= 177 fps=7.6 q=0.0 size= 99713kB time=00:00:05.40 bitrate=151268.4kbits/s frame= 181 fps=7.6 q=0.0 size= 102604kB time=00:00:05.56 bitrate=151174.1kbits/s frame= 184 fps=7.5 q=0.0 size= 104743kB time=00:00:05.68 bitrate=151066.1kbits/s frame= 190 fps=7.5 q=0.0 size= 108876kB time=00:00:05.92 bitrate=150660.6kbits/s frame= 194 fps=7.5 q=0.0 size= 111953kB time=00:00:06.08 bitrate=150842.1kbits/s frame= 198 fps=7.5 q=0.0 size= 114997kB time=00:00:06.24 bitrate=150970.4kbits/s frame= 203 fps=7.5 q=0.0 size= 118728kB time=00:00:06.44 bitrate=151028.3kbits/s frame= 208 fps=7.4 q=0.0 size= 122522kB time=00:00:06.64 bitrate=151160.2kbits/s frame= 214 fps=7.4 q=0.0 size= 126894kB time=00:00:06.88 bitrate=151092.2kbits/s frame= 218 fps=7.4 q=0.0 size= 129773kB time=00:00:07.04 bitrate=151008.4kbits/s frame= 222 fps=7.4 q=0.0 size= 132802kB time=00:00:07.20 bitrate=151099.5kbits/s frame= 228 fps=7.4 q=0.0 size= 136915kB time=00:00:07.44 bitrate=150753.5kbits/s frame= 234 fps=7.4 q=0.0 size= 141048kB time=00:00:07.68 bitrate=150451.3kbits/s frame= 240 fps=7.4 q=0.0 size= 145114kB time=00:00:07.92 bitrate=150097.7kbits/s frame= 243 fps=7.4 q=0.0 size= 147067kB time=00:00:08.04 bitrate=149847.0kbits/s frame= 252 fps=6.6 q=-1.0 Lsize= 176407kB time=00:00:10.00 bitrate=144512.9kbits/s video:176403kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.002658% [libx264 @ 0x2634e80] frame I:11 Avg QP: 0.00 size:760577 [libx264 @ 0x2634e80] frame P:118 Avg QP: 0.00 size:757793 [libx264 @ 0x2634e80] frame B:123 Avg QP: 0.00 size:673575 [libx264 @ 0x2634e80] consecutive B-frames: 7.1% 78.6% 14.3% 0.0% [libx264 @ 0x2634e80] mb I I16..4: 16.8% 24.7% 58.4% [libx264 @ 0x2634e80] mb P I16..4: 0.3% 1.4% 18.1% P16..4: 30.7% 29.3% 20.2% 0.0% 0.0% skip: 0.0% [libx264 @ 0x2634e80] mb B I16..4: 0.0% 0.0% 0.2% B16..8: 46.0% 10.7% 10.7% direct:32.0% skip: 0.3% L0:17.0% L1:15.4% BI:67.6% [libx264 @ 0x2634e80] 8x8 transform intra:12.8% inter:46.6% [libx264 @ 0x2634e80] coded y,uvDC,uvAC intra: 98.5% 99.9% 99.8% inter: 98.9% 99.4% 99.4% [libx264 @ 0x2634e80] i16 v,h,dc,p: 19% 18% 42% 21% [libx264 @ 0x2634e80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 14% 40% 3% 4% 5% 6% 5% 7% [libx264 @ 0x2634e80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 19% 10% 6% 9% 8% 13% 9% 14% [libx264 @ 0x2634e80] i8c dc,h,v,p: 68% 12% 9% 11% [libx264 @ 0x2634e80] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2634e80] ref P L0: 60.9% 19.8% 12.0% 7.3% [libx264 @ 0x2634e80] ref B L0: 89.3% 9.7% 1.0% [libx264 @ 0x2634e80] ref B L1: 98.5% 1.5% [libx264 @ 0x2634e80] kb/s:143361.61 -------------- next part -------------- ffmpeg version N-42806-gf4451d2 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 23 2012 12:00:06 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 --enable-shared --enable-pic --enable-libopencv libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 44.100 / 54. 44.100 libavformat 54. 19.100 / 54. 19.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 3.100 / 3. 3.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h.264/00.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.6.101 Duration: 00:00:10.08, start: 0.000000, bitrate: 143388 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 143385 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: handler_name : VideoHandler [libx264 @ 0xbc9e80] using SAR=1/1 [libx264 @ 0xbc9e80] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0xbc9e80] profile High, level 3.1 [libx264 @ 0xbc9e80] 264 - core 118 r2085 8a62835 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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=30 keyint_min=3 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'good.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.19.100 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 tbn, 25 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Press [q] to stop, [?] for help DTS -1, next:-40000 st:0 invalid dropping frame= 17 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 37 fps= 28 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 46 fps= 25 q=28.0 size= 314kB time=00:00:00.16 bitrate=16055.6kbits/s frame= 54 fps= 22 q=28.0 size= 606kB time=00:00:00.48 bitrate=10344.6kbits/s frame= 61 fps= 21 q=28.0 size= 961kB time=00:00:00.76 bitrate=10360.5kbits/s frame= 67 fps= 19 q=28.0 size= 1237kB time=00:00:01.00 bitrate=10132.6kbits/s frame= 75 fps= 19 q=28.0 size= 1663kB time=00:00:01.32 bitrate=10323.7kbits/s frame= 82 fps= 18 q=28.0 size= 1922kB time=00:00:01.60 bitrate=9839.4kbits/s frame= 87 fps= 17 q=28.0 size= 2090kB time=00:00:01.80 bitrate=9513.6kbits/s frame= 94 fps= 17 q=28.0 size= 2408kB time=00:00:02.08 bitrate=9482.1kbits/s frame= 102 fps= 17 q=28.0 size= 2871kB time=00:00:02.40 bitrate=9800.0kbits/s frame= 109 fps= 17 q=28.0 size= 3099kB time=00:00:02.68 bitrate=9473.9kbits/s frame= 117 fps= 16 q=28.0 size= 3450kB time=00:00:03.00 bitrate=9420.9kbits/s frame= 125 fps= 16 q=28.0 size= 3807kB time=00:00:03.32 bitrate=9393.4kbits/s frame= 134 fps= 16 q=28.0 size= 4299kB time=00:00:03.68 bitrate=9569.9kbits/s frame= 141 fps= 16 q=28.0 size= 4587kB time=00:00:03.96 bitrate=9490.0kbits/s frame= 150 fps= 16 q=28.0 size= 4966kB time=00:00:04.32 bitrate=9416.7kbits/s frame= 155 fps= 15 q=28.0 size= 5125kB time=00:00:04.52 bitrate=9288.8kbits/s frame= 164 fps= 16 q=28.0 size= 5602kB time=00:00:04.88 bitrate=9404.5kbits/s frame= 171 fps= 15 q=28.0 size= 5878kB time=00:00:05.16 bitrate=9332.0kbits/s frame= 179 fps= 15 q=28.0 size= 6199kB time=00:00:05.48 bitrate=9267.0kbits/s frame= 187 fps= 15 q=28.0 size= 6483kB time=00:00:05.80 bitrate=9156.9kbits/s frame= 195 fps= 15 q=28.0 size= 6910kB time=00:00:06.12 bitrate=9249.1kbits/s frame= 203 fps= 15 q=28.0 size= 7290kB time=00:00:06.44 bitrate=9273.1kbits/s frame= 213 fps= 15 q=28.0 size= 7744kB time=00:00:06.84 bitrate=9274.5kbits/s frame= 221 fps= 15 q=28.0 size= 8204kB time=00:00:07.16 bitrate=9386.4kbits/s frame= 229 fps= 15 q=28.0 size= 8406kB time=00:00:07.48 bitrate=9205.8kbits/s frame= 240 fps= 15 q=28.0 size= 8725kB time=00:00:07.92 bitrate=9024.6kbits/s frame= 252 fps= 15 q=-1.0 Lsize= 9833kB time=00:00:10.00 bitrate=8054.9kbits/s video:9829kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.038719% [libx264 @ 0xbc9e80] frame I:11 Avg QP:22.28 size:174168 [libx264 @ 0xbc9e80] frame P:118 Avg QP:26.07 size: 58803 [libx264 @ 0xbc9e80] frame B:123 Avg QP:30.08 size: 9834 [libx264 @ 0xbc9e80] consecutive B-frames: 7.1% 78.6% 14.3% 0.0% [libx264 @ 0xbc9e80] mb I I16..4: 6.0% 69.8% 24.2% [libx264 @ 0xbc9e80] mb P I16..4: 0.0% 1.9% 1.0% P16..4: 41.2% 26.4% 18.4% 0.0% 0.0% skip:11.0% [libx264 @ 0xbc9e80] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 33.1% 2.9% 1.1% direct: 7.5% skip:55.4% L0:28.1% L1:54.0% BI:17.9% [libx264 @ 0xbc9e80] 8x8 transform intra:68.5% inter:53.3% [libx264 @ 0xbc9e80] coded y,uvDC,uvAC intra: 88.3% 84.7% 65.6% inter: 38.9% 13.2% 1.4% [libx264 @ 0xbc9e80] i16 v,h,dc,p: 74% 14% 11% 1% [libx264 @ 0xbc9e80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 20% 16% 4% 7% 7% 10% 7% 11% [libx264 @ 0xbc9e80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 19% 10% 6% 9% 9% 13% 8% 13% [libx264 @ 0xbc9e80] i8c dc,h,v,p: 55% 22% 17% 6% [libx264 @ 0xbc9e80] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0xbc9e80] ref P L0: 68.1% 19.3% 8.2% 4.3% [libx264 @ 0xbc9e80] ref B L0: 89.0% 10.8% 0.2% [libx264 @ 0xbc9e80] ref B L1: 98.9% 1.1% [libx264 @ 0xbc9e80] kb/s:7987.36 From cehoyos at ag.or.at Mon Jul 23 07:51:33 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 05:51:33 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Playback_problems_for_video_compressed_as?= =?utf-8?q?_lossless=09H=2E264?= References: Message-ID: Misha Penkov gmail.com> writes: > ffmpeg -i h.264/00.mp4 -vcodec libx264 -g 30 -qmax 0 -y bad.mp4 > bad.txt 2>&1 > > If I try to play back the file in any standard video player (e.g. > VLC), then the video does not play back smoothly, and many frames are > just gray. Strangely, in ffplay, it seems to work just fine. Then why do you report the problem here instead of trac.videolan.org ? Seriously: You will need a newer version of vlc (it is also possible that you hit one of the regressions that vlc decided to introduce with newer versions, I don't know). Carl Eugen From cehoyos at ag.or.at Mon Jul 23 07:53:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 05:53:24 +0000 (UTC) Subject: [FFmpeg-user] use two video filters together References: Message-ID: ??? <550399108 qq.com> writes: > How can I transencod my video with the two filters together and > make sure those two are both effective. > "-vf 'movie=logo.png,scale=100:50[logo];[in][logo]overlay=10:10[out]'". _^_ The answer is well hidden in the command line you provided (that already uses two filters, movie and scale). Carl Eugen From cehoyos at ag.or.at Mon Jul 23 07:56:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 05:56:09 +0000 (UTC) Subject: [FFmpeg-user] Problem converting from FLV to MP4 References: Message-ID: Fernando Martinelli gmail.com> writes: > > > The output I want: > > > > > > - Video 1 MP4 + Audio 1 + Audio 2 > > > - Video 2 MP4 + Audio 1 + Audio 2 > > > > I believe this works with FFmpeg, consider reading about Audio > > Filters on http://ffmpeg.org/ffmpeg.html > > > I did, but did not manage to apply it.. But this is not the main issue, as > I can do the processing with multiple steps.. The problem is the async > between audio and video. While your report may be valid (I did not test yet), as said, there will be files where A/V sync is only possible if you do everything in one step. Please update to current git head, some of the mentioned filters are new. Carl Eugen From nichot20 at yahoo.com Mon Jul 23 09:19:13 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 23 Jul 2012 08:19:13 +0100 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. In-Reply-To: References: Message-ID: <500CFAF1.4070802@yahoo.com> On 20/07/12 20:32, Joseph Rosensweig wrote: > Hey all, > > I assume I'm missing something really simple here. But I'm not quite > sure what I'm doing wrong. I checked out the ffmpeg and x264 git versions > indicated in my subject header. I wanted to test out encoding H264 with > high, high10, high422, and high444 using libx264. However when I try to > encode with anything above high, the output always just shows high rather > than say high 4:2:2. Here are a few examples: > > [...] > Have you realised that although x264 supports both 8 and 10 bit encoding this must be specified at compile time, so you need to build two versions to support both flavours... > Any help here :-)? > > Thanks, > > JD > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Tim From nicolas.george at normalesup.org Mon Jul 23 10:55:55 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 23 Jul 2012 10:55:55 +0200 Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <1343007594906-4651994.post@n4.nabble.com> References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> <20120721090802.GA18086@phare.normalesup.org> <1343007594906-4651994.post@n4.nabble.com> Message-ID: <20120723085555.GA21800@phare.normalesup.org> Le quintidi 5 thermidor, an CCXX, Orbisoft Support a ?crit?: > 1) If I want to simply make a video out of the ticker only, would I still > need an original video to overlay the text on or can I simply create it from > the drawtext? If I do need a blank video to start with (e.g. a black > rectangle 1920x50 pixels) how would I know how long to create the video for > and how could I create it? You can use the "color" filter source: http://ffmpeg.org/ffmpeg.html#color The correct duration depends on the total width of your text. drawtext prints it at debug level, so you can get it using -loglevel debug. > 2) The drawstring text in http://www.orbisoft.com/ffmpeg/test001.flv doesn't > in my opinion appear as smooth as the png animation - was a bit jumpy > occasionally. I know my png were anti-aliased. I am not sure what you mean. "Jumpy" is about movement, while "anti-aliased" is about the quality of each images individually. If you mean the artifacts around the edges of the letters, this is completely normal: FLV1 is a lossy video codec. Video codecs are especially bad at sharp edges, and a text on black background is all about sharp edges. Furthermore, you did not add any option to increase the bit rate (bigger file, less artifacts), keeping the somewhat low default. > Do you know how I could > improve it? Do not use intermediary files. I repeat: do not use intermediary files. ffmpeg have everything you need to produce the final output in a single run, either from your PNGs (if you could use ffmpeg to produce the intermediary video from them, you can use them directly in your final run: they are, together, a video) or using builtin features (drawtext to display the text, drawbox to put the black background behind). Every temporary file you use is likely to cause quality loss, especially if you do not choose your formats, codecs and settings carefully. 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 fernando.martinelli at gmail.com Mon Jul 23 11:28:22 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Mon, 23 Jul 2012 11:28:22 +0200 Subject: [FFmpeg-user] Problem converting from FLV to MP4 In-Reply-To: References: Message-ID: 2012/7/23 Carl Eugen Hoyos > Fernando Martinelli gmail.com> writes: > > > > > The output I want: > > > > > > > > - Video 1 MP4 + Audio 1 + Audio 2 > > > > - Video 2 MP4 + Audio 1 + Audio 2 > > > > > > I believe this works with FFmpeg, consider reading about Audio > > > Filters on http://ffmpeg.org/ffmpeg.html > > > > > I did, but did not manage to apply it.. But this is not the main issue, > as > > I can do the processing with multiple steps.. The problem is the async > > between audio and video. > > While your report may be valid (I did not test yet), as said, > there will be files where A/V sync is only possible if you do > everything in one step. > Ok. However this is happening within one step (in my command above I just converted from flv to mp4 and the video increased by more than 20s while the audio has stayed the same. And that *only *happens when I fix the output fps. Is that a bug? > Please update to current git head, some of the mentioned filters > are new. > Thanks for the tip. I'll do it and try out the new filters. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Regards/ viele Gr??e, Fernando From focustelev at gmail.com Mon Jul 23 13:31:36 2012 From: focustelev at gmail.com (focus television) Date: Mon, 23 Jul 2012 12:31:36 +0100 Subject: [FFmpeg-user] background process getting terminated In-Reply-To: <20120721094712.GA27290@phare.normalesup.org> References: <500A76F9.30405@gmail.com> <20120721094712.GA27290@phare.normalesup.org> Message-ID: <500D3618.6050802@gmail.com> On 21-Jul-12 10:47 AM, Nicolas George wrote: Le quartidi 4 thermidor, an CCXX, focus television a ?crit : I am using (nohup ffmpeg -i "rtmp://localhost:1935/base2 nohup is a stupid hack that does not really work. You should use setsid to really detach the process from the controlling tty. Playpath=mam1.stream live=1" -vcodec copy -b:v 700k -c:a copy -f flv rtmp://localhost/mal1/mam1 ;)& You need to prevent ffmpeg from reading on its standard input. For that, either add " /dev/null" or use the new -nostdin option. But after some time it is getting terminated. Not sure if it is due to the bug nohup file or because i close the terminal session. I tried screen and background but still the process terminates after some hours. Not sure what is wrong. I dont want the log file and want to run it in background so that it doesnt get terminated when i close ssh. Maybe you do not want the log file, but if it does not work, you need it. If The advice above do not fix that problem, be sure to read the errors in the log. You can consider discarding the log once you are sure everything works fine (but even so, I do not advise to). Regards, Hi Nick & others, i tried (setsid ffmpeg -i "rtmp://121.110.230.10:1935/base2 Playpath=movi.stream live=1" -vcodec copy -b:v 700k -c:a copy -f flv rtmp://localhost/malxtra/movi;)& But still it gets terminated. What i feel is that some times the source rtmp://121.110.230.10:1935/base2 (changed the ip) doesnt send data or there is a delay and due to which the process gets closed. It my guess.. I have to restart the process alwatys after 1-2 hours. I have 10 streams like this line pasted in an sh file. Some terminate and some run after 2 hours.. Thats why i assumed. Regards, Geo From onemda at gmail.com Mon Jul 23 13:37:28 2012 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 23 Jul 2012 11:37:28 +0000 Subject: [FFmpeg-user] Playback problems for video compressed as lossless H.264 In-Reply-To: References: Message-ID: On 7/23/12, Misha Penkov wrote: > Hi, > > I'm compressing a video with ffmpeg and libx264. I want lossless > compression: > > ffmpeg -i h.264/00.mp4 -vcodec libx264 -g 30 -qmax 0 -y bad.mp4 > bad.txt > 2>&1 > > If I try to play back the file in any standard video player (e.g. > VLC), then the video does not play back smoothly, and many frames are VLC, unlike mplayer, is not standard video player. From inbox.mirror.orbisoft at gmail.com Mon Jul 23 13:43:30 2012 From: inbox.mirror.orbisoft at gmail.com (Orbisoft Support) Date: Mon, 23 Jul 2012 23:43:30 +1200 Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <20120723085555.GA21800@phare.normalesup.org> References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> <20120721090802.GA18086@phare.normalesup.org> <1343007594906-4651994.post@n4.nabble.com> <20120723085555.GA21800@phare.normalesup.org> Message-ID: Thanks. I switched from FLV to MP4 and noticed the final output file went from 145 MB down to just 11 MB which was good. *"The correct duration depends on the total width of your text. drawtext prints it at debug level, so you can get it using -loglevel debug." * Even though the RSS text file content (and therefore text length) is not static -- i.e. it changes each time we read it (my ASP.NET code had used the code below to measure the text length in pixels)? ' see how big the text will be intClsTextRectangleWidth = CInt(DrawGraphics.MeasureString(strTheText, DrawFont).Width) intClsTextRectangleHeight = CInt(DrawGraphics.MeasureString(strTheText, DrawFont).Height) On Mon, Jul 23, 2012 at 8:55 PM, Nicolas George < nicolas.george at normalesup.org> wrote: > Le quintidi 5 thermidor, an CCXX, Orbisoft Support a ?crit : > > 1) If I want to simply make a video out of the ticker only, would I still > > need an original video to overlay the text on or can I simply create it > from > > the drawtext? If I do need a blank video to start with (e.g. a black > > rectangle 1920x50 pixels) how would I know how long to create the video > for > > and how could I create it? > > You can use the "color" filter source: > http://ffmpeg.org/ffmpeg.html#color > > The correct duration depends on the total width of your text. drawtext > prints it at debug level, so you can get it using -loglevel debug. > > > 2) The drawstring text in http://www.orbisoft.com/ffmpeg/test001.flvdoesn't > > in my opinion appear as smooth as the png animation - was a bit jumpy > > occasionally. I know my png were anti-aliased. > > I am not sure what you mean. "Jumpy" is about movement, while > "anti-aliased" > is about the quality of each images individually. > > If you mean the artifacts around the edges of the letters, this is > completely normal: FLV1 is a lossy video codec. Video codecs are especially > bad at sharp edges, and a text on black background is all about sharp > edges. > Furthermore, you did not add any option to increase the bit rate (bigger > file, less artifacts), keeping the somewhat low default. > > > Do you know how I could > > improve it? > > Do not use intermediary files. > > I repeat: do not use intermediary files. > > ffmpeg have everything you need to produce the final output in a single > run, > either from your PNGs (if you could use ffmpeg to produce the intermediary > video from them, you can use them directly in your final run: they are, > together, a video) or using builtin features (drawtext to display the text, > drawbox to put the black background behind). > > Every temporary file you use is likely to cause quality loss, especially if > you do not choose your formats, codecs and settings carefully. > > Regards, > > -- > Nicolas George > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlANEZsACgkQsGPZlzblTJOXOACgpqlUeoN4mKjM0PoFzrnc39mc > J+0An2vQdrx9wvP91XQfW6dT0N9H/U/Q > =S0kM > -----END PGP SIGNATURE----- > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From cehoyos at ag.or.at Mon Jul 23 14:02:37 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 12:02:37 +0000 (UTC) Subject: [FFmpeg-user] Problem converting from FLV to MP4 References: Message-ID: Fernando Martinelli gmail.com> writes: > ffmpeg -i input.flv -vcodec mpeg4 -b:v 200k -r 24 > -vf scale=320:240 -ar 44100 -y output.mp4 Does the problem also occur without -ar 44100 ? Carl Eugen From 550399108 at qq.com Mon Jul 23 07:56:41 2012 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Mon, 23 Jul 2012 13:56:41 +0800 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ICB1c2UgdHdvIHZpZGVvIGZpbHRl?= =?gb18030?q?rs_together?= Message-ID: Thank you! I have got it! ------------------ ???? ------------------ ???: "Carl Eugen Hoyos"; ????: 2012?7?23?(???) ??1:53 ???: "ffmpeg-user"; ??: Re: [FFmpeg-user] use two video filters together ??? <550399108 qq.com> writes: > How can I transencod my video with the two filters together and > make sure those two are both effective. > "-vf 'movie=logo.png,scale=100:50[logo];[in][logo]overlay=10:10[out]'". _^_ The answer is well hidden in the command line you provided (that already uses two filters, movie and scale). Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nicolas.george at normalesup.org Mon Jul 23 14:30:21 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 23 Jul 2012 14:30:21 +0200 Subject: [FFmpeg-user] background process getting terminated In-Reply-To: <500D3618.6050802@gmail.com> References: <500A76F9.30405@gmail.com> <20120721094712.GA27290@phare.normalesup.org> <500D3618.6050802@gmail.com> Message-ID: <20120723123021.GA29398@phare.normalesup.org> Le sextidi 6 thermidor, an CCXX, focus television a ?crit?: > i tried > (setsid ffmpeg -i "rtmp://121.110.230.10:1935/base2 > Playpath=movi.stream live=1" -vcodec copy -b:v 700k -c:a copy -f flv > rtmp://localhost/malxtra/movi;)& > But still it gets terminated. There was other things in my mail apart from the pointer to setsid. I do not understand why you did not take them into account. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From cehoyos at ag.or.at Mon Jul 23 15:48:43 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 13:48:43 +0000 (UTC) Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1342958768.15693.21.camel@tbastian-desktop.localdomain> <1342973749.3108.12.camel@tbastian-desktop.localdomain> Message-ID: llarevo gmx.net gmx.net> writes: > Thanks, the latter allowed compilation. But the so compiled > ffmpeg shows the io error: > > /usr/local/bin/ffmpeg -t 300 -f video4linux2 -s vga -r 25 > -b 2000k -i /dev/video0 out-vga-2M-5min.mpg > FFmpeg version git-44b2784, Copyright (c) 2000-2011 > the FFmpeg developers Could you test 932d775 and c57a8fe ? Carl Eugen From llarevo at gmx.net Mon Jul 23 17:05:22 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Mon, 23 Jul 2012 17:05:22 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> Message-ID: <1343055922.3570.7.camel@tbastian-desktop.localdomain> > > I can try. But could you please describe the necessary steps a bit more > > detailed? I am not very familiar with git. A list of commands and short > > instructions and where to start or some howto should be sufficient. > > Could you test 44b2784? > (make distclean && git checkout 44b2784 && ./configure && make) > > I will try to guide you through the bisecting process, > if above works ok you can also try yourself (but it is unfortunately > not always trivial): > git checkout 44b2784 > git bisect good > git checkout n0.7 > git bisect bad (you should of course test if that is really true) > ... I tried to find the change in libavdevice/v4l2.c manually, using the info from http://git.videolan.org/?p=ffmpeg.git;a=blame;f=libavdevice/v4l2.c;hb=eae3cf06a5410cf6d06235de4ceea28e33e53be3 I checked out different commits, then I built using: ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid --disable-asm The result is: 01058893 2010-09-12 19:44:45 OK 30b4ee79 2011-09-23 20:50:11 not OK So http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=libavdevice/v4l2.c;hb=0105889358a460c725a64aa613d29a5b2004fccd is OK, while http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=libavdevice/v4l2.c;hb=30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b is not OK. Unfortunately I now too little about C and the ffmpeg internals to have an idea what went wrong. There are several changes in the file. Perhaps somebody could have a look? Thanks -- Felix From llarevo at gmx.net Mon Jul 23 17:15:24 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Mon, 23 Jul 2012 17:15:24 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1342958768.15693.21.camel@tbastian-desktop.localdomain> <1342973749.3108.12.camel@tbastian-desktop.localdomain> Message-ID: <1343056524.3570.13.camel@tbastian-desktop.localdomain> > > Thanks, the latter allowed compilation. But the so compiled > > ffmpeg shows the io error: > > > > /usr/local/bin/ffmpeg -t 300 -f video4linux2 -s vga -r 25 > > -b 2000k -i /dev/video0 out-vga-2M-5min.mpg > > FFmpeg version git-44b2784, Copyright (c) 2000-2011 > > the FFmpeg developers > > Could you test 932d775 and c57a8fe ? Meanwhile I tried something different, see my post some minutes ago. The information mentioned there should be OK. So write please, if I am to perform the tests with 932d775 and c57a8fe. Thanks -- Felix From placencio87 at hotmail.com Mon Jul 23 19:01:53 2012 From: placencio87 at hotmail.com (=?iso-8859-1?B?RmVsaXBlIEzzcGV6IFBsYWNlbmNpbw==?=) Date: Mon, 23 Jul 2012 13:01:53 -0400 Subject: [FFmpeg-user] Big file webcam In-Reply-To: References: <1342537134143-4651854.post@n4.nabble.com>, , , Message-ID: Hi friends, I have been trying with a lot of commands. I want to know if these two are correct. Work well but, sometimes I get "overread", and when you play the video I see like a little glued in the moment that appear "overread". The weight of 1 minutes of video is around 6 or 8 MB (Depends of the capture, like audio, movement, and so on) - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 -acodec libfaac -aq 255 -ar 44100 -b 8M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 22 -bufsize 5000K example.mp4 - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 -acodec libfaac -aq 255 -ar 44100 -b 8M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 22 example.mp4 Can you give me some advices to improve this command? Also, I want to use this command with a pipe to ffmpeg2theora and oggfwd with Icecast2. This is possible with this format of video? Thanks in advance. Best regards Felipe L?pez P. > From: placencio87 at hotmail.com > To: ffmpeg-user at ffmpeg.org > Date: Thu, 19 Jul 2012 08:54:03 -0400 > Subject: Re: [FFmpeg-user] Big file webcam > > > Dear Roger, > > > Thanks for your answer. I appreciate it. > > > > I have tried to achieve 25 fps to 640x480, 800x600 or 1280x720 pixels. > > > I tried with a lot of commands, for example: > > > - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 2M -bt 4M -vcodec libx264 -vpre hq -t 10 output.mp4 > > - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -vcodec libx264 -vpre hq -crf 26 -threads 0 -t 10 output2.mp4 > > - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -r 30000/1001 -b 2M -bt 4M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 output3.mp4 > > ffmpeg -y -i output3.mp4 -r 30000/1001 -b 2M -bt 4M -vcodec libx264 -pass 2 -vpre hq -acodec libfaac -ac 2 -ar 48000 -ab 192k output4.mp4 > > - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 4M -bt 4M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 output3.mp4 > > ffmpeg -y -i output3.mp4 -r 30000/1001 -b 4M -bt 4M -vcodec libx264 -pass 2 -vpre hq output4.mp4 > > - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 8M -bt 8M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 2-1.mp4 > ffmpeg -y -i 2-1.mp4 -r 30000/1001 -b 4M -bt 4M -vcodec libx264 -pass 2 -vpre hq 2-2.mp4 > > > - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -acodec libfaac -ab 96k -b 8M -bt 8M -vcodec libx264 -vpre slow -crf 22 -threads 0 -t 10 bueno.mp4 > > > With sound: > - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 720x480 -r 25 -i /dev/video0 -acodec libmp3lame -ab 64k -b 2M -bt 2M -vcodec libx264 -vpre slow -crf 22 -threads 0 -async 1 out.avi > - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 720x480 -r 25 -i /dev/video0 -acodec libmp3lame -ab 64k -b 2M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 18 -threads 0 out.avi > > > Obviously I'm trying changing the bitrate, -bt, -crf, resolution (-s), and so on. > > > The last 2 commands works fine, but the image has distortions. Looks a bit stuck (I don't know if it the correct word, sorry haha) > > > If you need more information, don't hesitate in ask me. > > > Best regards from Chile > Felipe L?pez P. > > > > From: rogerdpack2 at gmail.com > > Date: Wed, 18 Jul 2012 18:29:02 -0600 > > To: ffmpeg-user at ffmpeg.org > > Subject: Re: [FFmpeg-user] Big file webcam > > > > > I'm trying to capture video from my Microsoft Lifecam Studio. I tried with a > > > lot of commands and I achieved a good quality some times, but the problem is > > > that the good quality give it me a very big file. The idea is get the video > > > in 640x480 pixels or more, to 6 [MB/min] or less if it is possible. > > > > > > Now, the videos with good quality that I got, are bigger than 20 MB/min. > > > > What's your current command line and full uncut console output? How > > many fps are you trying to achieve? (for me mp4 has worked pretty well > > in the past...libx264 might also help) > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Mon Jul 23 19:24:32 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 17:24:32 +0000 (UTC) Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1343055922.3570.7.camel@tbastian-desktop.localdomain> Message-ID: llarevo gmx.net gmx.net> writes: > 01058893 2010-09-12 19:44:45 OK > 30b4ee79 2011-09-23 20:50:11 not OK The next version to test would be 70f7736 Carl Eugen From llarevo at gmx.net Mon Jul 23 20:23:25 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Mon, 23 Jul 2012 20:23:25 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1343055922.3570.7.camel@tbastian-desktop.localdomain> Message-ID: <1343067805.4326.5.camel@tbastian-desktop.localdomain> Am Montag, den 23.07.2012, 17:24 +0000 schrieb Carl Eugen Hoyos: > llarevo gmx.net gmx.net> writes: > > > 01058893 2010-09-12 19:44:45 OK > > 30b4ee79 2011-09-23 20:50:11 not OK > > The next version to test would be 70f7736 Oh, I didn't found this, sorry. It is not OK: /usr/local/bin/ffmpeg -t 300 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0 out-vga-2M-5min.mpg FFmpeg version git-70f7736, Copyright (c) 2000-2010 the FFmpeg developers built on Jul 23 2012 20:22:21 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid --disable-asm libavutil 50.27. 0 / 50.27. 0 libavcore 0. 9. 0 / 0. 9. 0 libavcodec 52.89. 0 / 52.89. 0 libavformat 52.78. 5 / 52.78. 5 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.39. 0 / 1.39. 0 libswscale 0.11. 0 / 0.11. 0 [video4linux2 @ 0x21ffc90] ioctl set time per frame(1/25) failed /dev/video0: Input/output error From cehoyos at ag.or.at Mon Jul 23 20:43:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Jul 2012 18:43:24 +0000 (UTC) Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1343055922.3570.7.camel@tbastian-desktop.localdomain> <1343067805.4326.5.camel@tbastian-desktop.localdomain> Message-ID: llarevo gmx.net gmx.net> writes: > Am Montag, den 23.07.2012, 17:24 +0000 schrieb Carl Eugen Hoyos: > > llarevo gmx.net gmx.net> writes: > > > > > 01058893 2010-09-12 19:44:45 OK > > > 30b4ee79 2011-09-23 20:50:11 not OK > > > > The next version to test would be 70f7736 > > Oh, I didn't found this, sorry. It is not OK: You may test now 6ac6e3d to make absolutely sure 70f7736 / r25159 is the version introducing the regression. Unfortunately, I am currently away from my v4l2 equipment for several weeks, consider opening a report on trac (please do not just link to this thread, add all necessary information there). Carl Eugen From vadim.lungu at radiocom.md Mon Jul 23 12:38:35 2012 From: vadim.lungu at radiocom.md (radiocm) Date: Mon, 23 Jul 2012 03:38:35 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg live stream transcoding Message-ID: <1343039915215-4652003.post@n4.nabble.com> Hello every one, I'm interested in transcoding a multicast stream that is coming from codesc. Stream format is: mp4 video and MPEG1 audo. I want to transcode this stream on ffmpeg server that is on certain machine and to stream it on other server that is using as Wowza as streaming server. Now i have several questions: how to cache as stream that is comming from codec rtp://239.0.12.2:5000 transcode it with ffmpeg and pass it to Wowza. I will highly appreciate if someone could provide some how tutorials, because I am totally new on this area, and I'm getting lost at the moment. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-live-stream-transcoding-tp4652003.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From master at io.ua Mon Jul 23 11:52:50 2012 From: master at io.ua (Andrew Gora) Date: Mon, 23 Jul 2012 12:52:50 +0300 Subject: [FFmpeg-user] Two videos within one movie alongside each other Message-ID: <27402262375.20120723125250@io.ua> > Cle'ment Boesch recently added this to libavfilter documentation for > overlay: > > # play an original video and a filtered version (here with the deshake > filter) > # side by side > ffplay input.avi -vf 'split[a][b]; [a]pad=iw*2:ih[src]; > [b]deshake[filt]; [src][filt]overlay=w' > > # the previous example is the same as: > ffplay input.avi -vf 'split[b], pad=iw*2[src], [b]deshake, > [src]overlay=w' Thanks a lot! It works. Sincerely, Andrew Gora From jrosensw at gmail.com Mon Jul 23 22:43:51 2012 From: jrosensw at gmail.com (Joseph Rosensweig) Date: Mon, 23 Jul 2012 13:43:51 -0700 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. In-Reply-To: <500AC055.5010404@gmail.com> References: <500AC055.5010404@gmail.com> Message-ID: On Sat, Jul 21, 2012 at 7:44 AM, James Darnley wrote: > On 2012-07-20 21:32, Joseph Rosensweig wrote: > > Hey all, > > > > I assume I'm missing something really simple here. But I'm not quite > > sure what I'm doing wrong. I checked out the ffmpeg and x264 git > versions > > indicated in my subject header. I wanted to test out encoding H264 with > > high, high10, high422, and high444 using libx264. However when I try to > > encode with anything above high, the output always just shows high rather > > than say high 4:2:2. Here are a few examples: > > > > Input #0, rawvideo, from 'pipe:0': > > Duration: N/A, start: 0.000000, bitrate: N/A > > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, > 30 tbr, 30 tbn, 30 tbc > > > > Any help here :-)? > > Why would anything higher than High Profile be used for 8-bit 4:2:0 > video? If you want to use High422 Profile then give x264 4:2:2 video > (-pix_fmt yuv422p). If you want to use High10 Profile then compile a > 10-bit build of x264 and link ffmpeg to that. > > Setting the profile option for x264 does not force it to turn on all > particular encoding features available in a profile. In fact it does > just the opposite: it disables all features that are not allowed or > returns an error in cases where it cannot. > Thanks for the replies. I'm pretty new to FFMPEG so I'm picking these things up as I go. So for the first issue with the high444 and high422 coming out as high. In an earlier version of FFMPEG, when I took raw 4:2:0 YUV data and encoded it using the ultrafast lossless preset. FFMPEG would show "High 4:4:4 Predictive", despite the fact that I was feeding it 4:2:0 YUV. That is where this confusion came from for me. Basically what I'm gathering from this is that High10P, High422, and High444 don't add anything that would be useful to an 8-bit 4:2:0 YUV frame. Using a high profile is sufficient. I think I was under the impression that in addition to adding support for more Sample Depths and Chroma Formats, there would be more algorithmic features as well. From focustelev at gmail.com Tue Jul 24 01:21:50 2012 From: focustelev at gmail.com (focus television) Date: Tue, 24 Jul 2012 00:21:50 +0100 Subject: [FFmpeg-user] ffmpeg as repeater Message-ID: <500DDC8E.90204@gmail.com> Hi, I want to know if we can use ffmpeg as a repeater application. RIght now it downloads the stream even if no one is using the stream Can we make it dynamic so that it downloads only when some one watches the stream? Geo From rogerdpack2 at gmail.com Tue Jul 24 06:04:38 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 23 Jul 2012 22:04:38 -0600 Subject: [FFmpeg-user] ffmpeg live stream transcoding In-Reply-To: <1343039915215-4652003.post@n4.nabble.com> References: <1343039915215-4652003.post@n4.nabble.com> Message-ID: > I want to transcode this stream on ffmpeg server that is on certain machine > and to stream it on other server > that is using as Wowza as streaming server. > > Now i have several questions: > > how to cache as stream that is comming from codec rtp://239.0.12.2:5000 > transcode it with ffmpeg and pass it to Wowza. I'm unaware of ffmpeg having its own transcoding buffer by default...though the rtbufsize might mean something here. regardless, this may be of some use to you: http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide And yes, I have heard of people successfully streaming to wowza using ffmpeg. -r From rogerdpack2 at gmail.com Tue Jul 24 06:15:35 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 23 Jul 2012 22:15:35 -0600 Subject: [FFmpeg-user] Can you help with ffmpeg? In-Reply-To: References: Message-ID: > I need help in installing ffmpeg in a dedicated server : centos6 / Plesk > Can you help me out? I cannot do it myself. I'd try a $ yum search ffmpeg to start. HTH. -r From rogerdpack2 at gmail.com Tue Jul 24 06:16:19 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 23 Jul 2012 22:16:19 -0600 Subject: [FFmpeg-user] Keep the original timestamp i.e. Date Modified/Date Created/Date? In-Reply-To: References: Message-ID: > Converting some vids, need to keep the original Date Modified/Date > Created/Date data. How do I do it? I'm unaware of an ffmpeg command to do "just that" so if I were you I'd wrap ffmpeg with a script that just adjusts the file modification timestamp after they are created. -r From rogerdpack2 at gmail.com Tue Jul 24 06:43:15 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 23 Jul 2012 22:43:15 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <5c9p08tbqnsgp4g3n7hqhqthbjit0a7njc@4ax.com> References: <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> <5004F6BE.4090001@gmail.com> <5c9p08tbqnsgp4g3n7hqhqthbjit0a7njc@4ax.com> Message-ID: On Sun, Jul 22, 2012 at 7:21 PM, Jan Ehrhardt wrote: > Roger Pack in gmane.comp.video.ffmpeg.user (Sat, 21 Jul 2012 23:14:01 > -0600): >>ffmpeg_g with libx264 compiled with debug symbols might be a bit useful/helpful. > > http://x32.elijst.nl/ffdebug.zip Thanks Jan, I was able to get it to reproduce the bug and generate some backtraces that may be potentially helpful. Thanks. -r From rogerdpack2 at gmail.com Tue Jul 24 06:50:50 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 23 Jul 2012 22:50:50 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <5003786D.2060204@gmail.com> References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: > I bet the MinGW-w64 guys would know more about this issue. If someone could > send over the information to their mailing list that would really help. I > will if no one else can, but it might take a while. > > They should help us figure out how to properly debug this. > > It's odd that this error happens at random times, at least it does for me. > It sometime would hang at the beginning, sometimes at other points. > > I have a 4.0GHz i7, so if anyone needs me to run any further tests I would > be happy to. Ok I pinged them: http://sourceforge.net/mailarchive/forum.php?thread_name=500CD44E.9000803%40gmail.com&forum_name=mingw-w64-public They apparently committed an "r5250" which might help fix the problem, would it be possible to try it? Also a build that defines WINPTHREAD_DBG might apparently be useful. Thanks! -roger- From rogerdpack2 at gmail.com Tue Jul 24 06:57:47 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 23 Jul 2012 22:57:47 -0600 Subject: [FFmpeg-user] compiling ffmpeg with swscale In-Reply-To: References: <393554371.252241341931605247.JavaMail.www@wwinf7124> <20120710172929.GA17429@phare.normalesup.org> Message-ID: >> > I guess your problem is actually of the "c++ sucks" variety. >> >> Speaking of which, did you surround your includes with extern "C" {}? >> > > No I didn't and that was the problem indeed... Maybe all the publically exported .h files should have extern "C" { } around themselves? (Sorry for asking--I know little about C, but somebody else also just ran into the same problem: http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=636&p=2023#p2023 So thought I'd mention something... =r From vikasmk at allgosystems.com Tue Jul 24 07:54:54 2012 From: vikasmk at allgosystems.com (vikasmk) Date: Tue, 24 Jul 2012 11:24:54 +0530 Subject: [FFmpeg-user] h264 encoder constant QP Message-ID: <500E38AE.7000104@allgosystems.com> Hi , I am trying to get the RD plot of the ffmpeg H264 encoder (x264) baseline profile to use it as a comparison against our companies h264 encoder . As I understand , I need to disable the RD loop and get the PSNR and bitrate values at various values of QP ( 10 to 51 ) . I tried setting the qp constant with -qscale 10 . But ffmpeg seems to be overridding the qp values and is not using the constant value of 10 . I need a way to set qp constant and disable the RD loop. Or any work around that would give an rd plot . the flags I use are flags : "-vcodec libx264 -profile:v baseline -qscale 10 -refs 1 " ffmpeg version : ./ffmpeg -v ffmpeg version N-42619-g6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 20:06:49 with gcc 4.5.2 Any help would be appreciated. Regards, Vikas From cehoyos at ag.or.at Tue Jul 24 07:59:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 24 Jul 2012 05:59:09 +0000 (UTC) Subject: [FFmpeg-user] compiling ffmpeg with swscale References: <393554371.252241341931605247.JavaMail.www@wwinf7124> <20120710172929.GA17429@phare.normalesup.org> Message-ID: Roger Pack gmail.com> writes: > >> > I guess your problem is actually of the "c++ sucks" variety. > >> > >> Speaking of which, did you surround your includes with extern "C" {}? > > > > No I didn't and that was the problem indeed... > > Maybe all the publically exported .h files should have extern "C" { } > around themselves? That would imply that the FFmpeg headers are C++ headers or that we at least do support C++ in the sense that we test it and make sure it does not brake. Reality is that FFmpeg offers C headers, if somebody wants to use them from C++, it is his responsibility to ensure that all necessary measure are being taken care of (that is not only extern "C"). Carl Eugen From luuk at dominicansinteractive.com Tue Jul 24 09:24:21 2012 From: luuk at dominicansinteractive.com (Luuk D. Jansen OP) Date: Tue, 24 Jul 2012 08:24:21 +0100 Subject: [FFmpeg-user] Encoding for HLS but have a DTS problem In-Reply-To: <053D2B89-4135-4731-8587-0947F214CDE4@dominicansinteractive.com> References: <9324E595-402F-4ABC-BCC4-1E9947484311@dominicansinteractive.com> <2B858C49-3193-41DB-9721-496ED9F7D80B@dominicansinteractive.com> <20120718185020.GA22746@kiste2> <053D2B89-4135-4731-8587-0947F214CDE4@dominicansinteractive.com> Message-ID: <280144A4-70D6-47F7-A9EE-3E797DCD77AB@dominicansinteractive.com> On 19 Jul 2012, at 08:58, Dominicans Interactive wrote: > > On 18 Jul 2012, at 19:50, Michael Niedermayer wrote: > >> On Tue, Jul 17, 2012 at 12:22:35PM +0100, Dominicans Interactive wrote: >>> Is there anybody with a suggestion what I could do? >> >> You could look at the DTS stored in the mpegts file and if they are >> bad try to trace from where they come from. >> >> explaining exactly how to reproduce the issue and providing links >> to all input files needed to reproduce it also should help >> >> [...] >> -- >> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB >> >> No snowflake in an avalanche ever feels responsible. -- Voltaire >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > Thanks Michael, > > I am not that familiar with video encoding, so don't know if I can help you with the first suggestion. > But the file I use for testing can be found at: > http://test.idoms.org/public/testdata/test-movie/test.mov > > The output of FFMPEG for this file seems ok as it doesn't give a DTS error (ffmpeg -loglevel 99 -i test.mov). > > The command I use for encoding is: > ffmpeg -i ./test.mov -y -f mpegts -acodec aac -strict -2, -ar, 48000, -b:a, 128000, -s, 960x540, -vcodec, libx264, -b:v, 1200000, -aspect, 960:540, -r, 25, -level, 3.1, -vprofile, main, -flags, +loop, -cmp, +chroma, -partitions, +parti4x4+partp8x8+partb8x8, -subq, 5, -trellis, 1, -refs, 1, -coder, 0, -me_range, 16, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -bt, 200k, -maxrate, 1200000, -bufsize, 1200000, -rc_eq, 'blurCplx^(1-qComp)', -qcomp, 0.6, -qmin, 10, -qmax, 51, -qdiff, 4, -level, 30, -g, 30, -async, 2, ./encoded.ts > > I pass the uncut output below, as there is actually a PTS warning. If I now probe the file with FFMPEG (ffmpeg -loglevel 99 -i encoded.ts) I get: > > ffmpeg -loglevel 99 -i encoded.ts > ffmpeg version N-42201-gab2356c Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 4 2012 11:57:28 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) > configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 > libavutil 51. 63.100 / 51. 63.100 > libavcodec 54. 32.100 / 54. 32.100 > libavformat 54. 14.100 / 54. 14.100 > libavdevice 54. 0.100 / 54. 0.100 > libavfilter 3. 0.101 / 3. 0.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [mpegts @ 0x7fb73b03d800] Format mpegts probed with size=2048 and score=100 > [mpegts @ 0x7fb73b03d800] stream=0 stream_type=1b pid=100 prog_reg_desc= > [mpegts @ 0x7fb73b03d800] stream=1 stream_type=f pid=101 prog_reg_desc= > [mpegts @ 0x7fb73b03d800] File position before avformat_find_stream_info() is 0 > [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping > [h264 @ 0x7fb73b052e00] no picture > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 143280 in que > Last message repeated 6 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 158640 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 175920 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 193200 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 210480 in que > Last message repeated 7 times > [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 227760 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 245040 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 262320 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 279600 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 296880 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 314160 in que > Last message repeated 7 times > [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 331440 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 348720 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 366000 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 383280 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 400560 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 417840 in que > Last message repeated 6 times > [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 433200 in que > Last message repeated 6 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 448560 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 465840 in que > Last message repeated 6 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 481200 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 498480 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 515760 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 533040 in que > Last message repeated 6 times > [h264 @ 0x7fb73b052e00] Current profile doesn't provide more RBSP data in PPS, skipping > [mpegts @ 0x7fb73b03d800] first_dts 124080 not matching first dts 548400 in que > Last message repeated 7 times > [mpegts @ 0x7fb73b03d800] max_analyze_duration 5000000 reached at 5000000 > [mpegts @ 0x7fb73b03d800] File position after avformat_find_stream_info() is 0 > Input #0, mpegts, from 'encoded.ts': > Duration: 00:00:24.18, start: 1.378667, bitrate: 1225 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100], 127, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 1/50, 25 fps, 25 tbr, 90k tbn, 50 tbc > Stream #0:1[0x101](eng), 230, 1/90000: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 117 kb/s > At least one output file must be specified > [AVIOContext @ 0x7fb73ac18300] Statistics: 905360 bytes read, 2 seeks > > _________ > > > Encoder output: > ffmpeg -i ./test.mov -y -f mpegts -acodec aac -strict -2 -ar 48000 -b:a 128000 -s 960x540 -vcodec libx264 -b:v 1200000 -aspect 960:540 -r 25 -level 3.1 -vprofile main -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 1200000 -bufsize 1200000 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 ./encoded.ts > ffmpeg version N-42201-gab2356c Copyright (c) 2000-2012 the FFmpeg developers > built on Jul 4 2012 11:57:28 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) > configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 > libavutil 51. 63.100 / 51. 63.100 > libavcodec 54. 32.100 / 54. 32.100 > libavformat 54. 14.100 / 54. 14.100 > libavdevice 54. 0.100 / 54. 0.100 > libavfilter 3. 0.101 / 3. 0.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './test.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2011-12-05 10:54:24 > timecode : 00:00:00:00 > Duration: 00:00:24.20, start: 0.000000, bitrate: 9912 kb/s > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 9777 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc > Metadata: > creation_time : 2011-12-05 10:56:28 > handler_name : Apple Video Media Handler > Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 129 kb/s > Metadata: > creation_time : 2011-12-05 10:56:28 > handler_name : Apple Sound Media Handler > Stream #0:2(eng): Data: none (tmcd / 0x64636D74) > Metadata: > creation_time : 2011-12-05 10:56:28 > handler_name : Time Code Media Handler > timecode : 00:00:00:00 > [graph 0 input from stream 0:0 @ 0x11111a080] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 > [output stream 0:0 @ 0x11111a210] No opaque field provided > [scaler for output stream 0:0 @ 0x11111a560] w:1920 h:1080 fmt:yuv420p sar:0/1 -> w:960 h:540 fmt:yuv420p sar:0/1 flags:0x4 > [graph 1 input from stream 0:1 @ 0x11111d4e0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 > -async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000:max_soft_comp=0.000042. > [graph 1 aresample for input stream 0:1 @ 0x11111d640] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz > [libx264 @ 0x7f87e214fe00] using SAR=1/1 > [libx264 @ 0x7f87e214fe00] frame MB size (60x34) > level limit (1620) > [libx264 @ 0x7f87e214fe00] DPB size (4 frames, 3133440 bytes) > level limit (3 frames, 3110400 bytes) > [libx264 @ 0x7f87e214fe00] MB rate (51000) > level limit (40500) > [libx264 @ 0x7f87e214fe00] using cpu capabilities: none! > [libx264 @ 0x7f87e214fe00] profile Main, level 3.0 > [mpegts @ 0x7f87e214f800] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts > Output #0, mpegts, to './encoded.ts': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > timecode : 00:00:00:00 > encoder : Lavf54.14.100 > Stream #0:0(eng): Video: h264, yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-51, 1200 kb/s, 90k tbn, 25 tbc > Metadata: > creation_time : 2011-12-05 10:56:28 > handler_name : Apple Video Media Handler > Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, flt, 128 kb/s > Metadata: > creation_time : 2011-12-05 10:56:28 > handler_name : Apple Sound Media Handler > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (aac -> aac) > Press [q] to stop, [?] for help > frame= 17 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 36 fps= 35 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 47 fps= 31 q=20.0 size= 3kB time=00:00:00.-4 bitrate=-601.6kbits/Encoder did not produce proper pts, making some up. > frame= 62 fps= 30 q=10.0 size= 36kB time=00:00:00.56 bitrate= 529.1kbits/frame= 76 fps= 30 q=10.0 size= 66kB time=00:00:01.12 bitrate= 486.1kbits/frame= 91 fps= 30 q=10.0 size= 102kB time=00:00:01.72 bitrate= 487.9kbits/frame= 104 fps= 29 q=22.0 size= 123kB time=00:00:02.24 bitrate= 449.9kbits/frame= 116 fps= 28 q=26.0 size= 232kB time=00:00:02.72 bitrate= 700.0kbits/frame= 126 fps= 27 q=22.0 size= 309kB time=00:00:03.12 bitrate= 811.3kbits/frame= 138 fps= 27 q=25.0 size= 439kB time=00:00:03.60 bitrate= 998.9kbits/frame= 150 fps= 27 q=30.0 size= 527kB time=00:00:04.08 bitrate=1057.6kbits/frame= 164 fps= 26 q=33.0 size= 592kB time=00:00:04.64 bitrate=1044.4kbits/frame= 176 fps= 26 q=31.0 size= 647kB time=00:00:05.12 bitrate=1035.8kbits/frame= 189 fps= 26 q=23.0 size= 760kB time=00:00:05.64 bitrate=1104.5kbits/frame= 204 fps= 26 q=30.0 size= 923kB time=00:00:06.24 bitrate=1212.1kbits/frame= 219 fps= 27 q=41.0 siz > e= 971kB time=00:00:06.84 bitrate=1163.0kbits/frame= 235 fps= 27 q=41.0 size= 1117kB time=00:00:07.48 bitrate=1223.7kbits/frame= 250 fps= 27 q=36.0 size= 1130kB time=00:00:08.08 bitrate=1145.5kbits/frame= 264 fps= 27 q=36.0 size= 1239kB time=00:00:08.64 bitrate=1174.8kbits/frame= 280 fps= 27 q=34.0 size= 1274kB time=00:00:09.28 bitrate=1124.4kbits/frame= 296 fps= 27 q=26.0 size= 1434kB time=00:00:09.92 bitrate=1184.4kbits/frame= 312 fps= 27 q=31.0 size= 1474kB time=00:00:10.56 bitrate=1143.7kbits/frame= 328 fps= 28 q=26.0 size= 1653kB time=00:00:11.20 bitrate=1209.1kbits/frame= 343 fps= 28 q=30.0 size= 1678kB time=00:00:11.80 bitrate=1164.8kbits/frame= 358 fps= 28 q=24.0 size= 1832kB time=00:00:12.40 bitrate=1210.1kbits/frame= 373 fps= 28 q=25.0 size= 1857kB time=00:00:13.00 bitrate=1170.2kbits/frame= 388 fps= 28 q=20.0 size= 2015kB time=00:00:13.60 bitrate=1214.0kbits/frame= 403 fps= 28 q=24.0 size= 2047kB time=00:00:14.20 > bitrate=1181.0kbits/frame= 418 fps= 28 q=20.0 size= 2212kB time=00:00:14.80 bitrate=1224.1kbits/frame= 433 fps= 28 q=29.0 size= 2253kB time=00:00:15.40 bitrate=1198.4kbits/frame= 448 fps= 28 q=23.0 size= 2408kB time=00:00:16.00 bitrate=1232.8kbits/frame= 462 fps= 28 q=31.0 size= 2440kB time=00:00:16.56 bitrate=1207.1kbits/frame= 476 fps= 28 q=24.0 size= 2590kB time=00:00:17.12 bitrate=1239.5kbits/frame= 491 fps= 28 q=36.0 size= 2618kB time=00:00:17.72 bitrate=1210.2kbits/frame= 507 fps= 28 q=32.0 size= 2793kB time=00:00:18.36 bitrate=1246.1kbits/frame= 522 fps= 28 q=22.0 size= 2817kB time=00:00:18.96 bitrate=1217.2kbits/frame= 537 fps= 28 q=22.0 size= 2980kB time=00:00:19.56 bitrate=1248.1kbits/frame= 551 fps= 28 q=32.0 size= 3068kB time=00:00:20.12 bitrate=1249.1kbits/frame= 564 fps= 28 q=32.0 size= 3190kB time=00:00:20.64 bitrate=1266.1kbits/frame= 580 fps= 28 q=35.0 size= 3236kB time=00:00:21.28 bitrate=1245.8kbits/frame= > 595 fps= 28 q=35.0 size= 3382kB time=00:00:21.88 bitrate=1266.4kbits/frame= 605 fps= 27 q=0.0 Lsize= 3616kB time=00:00:24.12 bitrate=1228.1kbits/s > video:2886kB audio:359kB subtitle:0 global headers:0kB muxing overhead 11.412771% > [libx264 @ 0x7f87e214fe00] frame I:21 Avg QP:21.60 size: 87666 > [libx264 @ 0x7f87e214fe00] frame P:259 Avg QP:24.97 size: 4221 > [libx264 @ 0x7f87e214fe00] frame B:325 Avg QP:27.97 size: 65 > [libx264 @ 0x7f87e214fe00] consecutive B-frames: 27.8% 1.0% 2.5% 68.8% > [libx264 @ 0x7f87e214fe00] mb I I16..4: 55.4% 0.0% 44.6% > [libx264 @ 0x7f87e214fe00] mb P I16..4: 4.8% 0.0% 1.1% P16..4: 17.7% 3.0% 0.6% 0.0% 0.0% skip:72.8% > [libx264 @ 0x7f87e214fe00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.3% 0.1% 0.0% direct: 0.1% skip:99.4% L0:38.8% L1:35.8% BI:25.4% > [libx264 @ 0x7f87e214fe00] coded y,uvDC,uvAC intra: 57.0% 8.3% 0.3% inter: 4.2% 2.3% 0.1% > [libx264 @ 0x7f87e214fe00] i16 v,h,dc,p: 57% 16% 22% 5% > [libx264 @ 0x7f87e214fe00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 21% 18% 5% 10% 7% 5% 4% 10% > [libx264 @ 0x7f87e214fe00] i8c dc,h,v,p: 92% 3% 6% 0% > [libx264 @ 0x7f87e214fe00] Weighted P-Frames: Y:13.1% UV:2.7% > [libx264 @ 0x7f87e214fe00] kb/s:977.06 > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Michael, did you manage to maybe get a chance to see what the problem could be, or direct me in a direction? I have posted on multiple sites, and your response is the only one so far. From sheen.andy at googlemail.com Tue Jul 24 09:42:54 2012 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 24 Jul 2012 09:42:54 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: References: <4FFC699A.2080109@googlemail.com> <4FFC8E21.8050506@googlemail.com> <4FFCADE4.2080805@googlemail.com> <4FFD2D2E.7070506@googlemail.com> <4FFD78D0.70307@googlemail.com> <966rv7t64jgevcjj507oim6amctvpd2j4q@4ax.com> <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: On 24 July 2012 06:50, Roger Pack wrote: > > Ok I pinged them: > > http://sourceforge.net/mailarchive/forum.php?thread_name=500CD44E.9000803%40gmail.com&forum_name=mingw-w64-public > They apparently committed an "r5250" which might help fix the problem, > would it be possible to try it? > Also a build that defines WINPTHREAD_DBG might apparently be useful. > Thanks! > -roger- > > > Just to let you know I'm not ignoring the thread, I'm away from my computer for 10 days, so can't help with builds :( But hopefully Jan can help :)) From llarevo at gmx.net Tue Jul 24 11:37:53 2012 From: llarevo at gmx.net (llarevo at gmx.net) Date: Tue, 24 Jul 2012 11:37:53 +0200 Subject: [FFmpeg-user] libv4l2: error dequeuing buf: Resource temporarily unavailable In-Reply-To: References: <1342801871.2511.54.camel@tbastian-desktop.localdomain> <20120720191933.GB25072@leki> <1342879761.12462.10.camel@tbastian-desktop.localdomain> <1343055922.3570.7.camel@tbastian-desktop.localdomain> <1343067805.4326.5.camel@tbastian-desktop.localdomain> Message-ID: <1343122673.4326.9.camel@tbastian-desktop.localdomain> > > > llarevo gmx.net gmx.net> writes: > > > > > > > 01058893 2010-09-12 19:44:45 OK > > > > 30b4ee79 2011-09-23 20:50:11 not OK > > > > > > The next version to test would be 70f7736 > > > > Oh, I didn't found this, sorry. It is not OK: > > You may test now 6ac6e3d to make absolutely sure > 70f7736 / r25159 is the version introducing the > regression. > Unfortunately, I am currently away from my v4l2 > equipment for several weeks, consider opening a > report on trac (please do not just link to this > thread, add all necessary information there). I created a ticket: http://ffmpeg.org/trac/ffmpeg/ticket/1570 Regards -- Felix From phpdev at ehrhardt.nl Tue Jul 24 12:16:53 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Tue, 24 Jul 2012 12:16:53 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: <6cts08l6af7orn55dqg0knbped31mr12fp@4ax.com> Roger Pack in gmane.comp.video.ffmpeg.user (Mon, 23 Jul 2012 22:50:50 -0600): >Ok I pinged them: >http://sourceforge.net/mailarchive/forum.php?thread_name=500CD44E.9000803%40gmail.com&forum_name=mingw-w64-public >They apparently committed an "r5250" which might help fix the problem, >would it be possible to try it? >Also a build that defines WINPTHREAD_DBG might apparently be useful. Hmmm. 9 days ago I set up my first Ubuntu ever in a Oracle/Sun Virtualbox. Now I am already cloning this one into a production Virtual Ubuntu and a dev one... Andy: take care of the sun. Jan From focustelev at gmail.com Tue Jul 24 12:59:11 2012 From: focustelev at gmail.com (focus television) Date: Tue, 24 Jul 2012 11:59:11 +0100 Subject: [FFmpeg-user] Need help playlist.m3u8 Message-ID: <500E7FFF.8030304@gmail.com> Hi, I http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0 This comes from my dreambox. I can play in vlc ffmpeg -i "http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0" -acodec copy -vcodec copy test.mpg It doest take the source url http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0: Operation not permitted Can some one help me please.. Regards Joe From fernando.martinelli at gmail.com Tue Jul 24 13:11:03 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Tue, 24 Jul 2012 13:11:03 +0200 Subject: [FFmpeg-user] Problem converting from FLV to MP4 In-Reply-To: References: Message-ID: 2012/7/23 Carl Eugen Hoyos > Fernando Martinelli gmail.com> writes: > > > ffmpeg -i input.flv -vcodec mpeg4 -b:v 200k -r 24 > > -vf scale=320:240 -ar 44100 -y output.mp4 > > Does the problem also occur without -ar 44100 ? > It shows an error if I take out the -ar 44100: *ffmpeg -i input.flv -vcodec mpeg4 -b:v 200k -r 24 -vf scale=320:240 -y output.mp4 * * * *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* * built on Jul 12 2012 15:00:45 with gcc 4.7.1* * configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --disable-decoder=libdirac --enable-libvorbis --disable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu* * 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* *[libspeex @ 0x155ab80] Missing Speex header, assuming defaults.* *Guessed Channel Layout for Input Stream #0.1 : mono* *Input #0, flv, from 'input.flv':* * Metadata:* * creationdate : Sat Jul 21 12:20:45* * Duration: 00:11:25.61, start: 0.000000, bitrate: 211 kb/s* * Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 12 tbr, 1k tbn, 24 tbc* * Stream #0:1: Audio: speex, 16000 Hz, mono, s16* *[buffer @ 0x155b1a0] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:1/1 sws_param:flags=2* *[buffersink @ 0x15d8bc0] No opaque field provided* *[scale @ 0x1568d00] w:320 h:240 fmt:yuv420p sar:1/1 -> w:320 h:240 fmt:yuv420p sar:1/1 flags:0x4* *[libfaac @ 0x15d8080] libfaac doesn't support this output format!* *Output #0, mp4, to 'output.mp4':* * Metadata:* * creationdate : Sat Jul 21 12:20:45* * Stream #0:0: Video: mpeg4, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 24 tbc* * Stream #0:1: Audio: aac, 16000 Hz, mono, s16, 128 kb/s* *Stream mapping:* * Stream #0:0 -> #0:0 (h264 -> mpeg4)* * Stream #0:1 -> #0:1 (libspeex -> libfaac)* *Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height* From rhodri at kynesim.co.uk Tue Jul 24 15:02:27 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 24 Jul 2012 14:02:27 +0100 Subject: [FFmpeg-user] Need help playlist.m3u8 In-Reply-To: <500E7FFF.8030304@gmail.com> References: <500E7FFF.8030304@gmail.com> Message-ID: On Tue, 24 Jul 2012 11:59:11 +0100, focus television wrote: > Hi, > I http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0 > This comes from my dreambox. > I can play in vlc > > ffmpeg -i > "http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0" > -acodec copy -vcodec copy test.mpg > > It doest take the source url > http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0: > Operation not permitted > Can some one help me please.. You've asked this several times now. Any chance of giving us the *complete* *uncut* console output, as the developers always request? I would hazard a guess that you are using a version of ffmpeg that tries to seek on streamed input, an issue I've had with some stream types in the past. That's only a guess though; you don't give us enough information to work from. Cheers, Rhodri -- Rhodri James Kynesim Ltd From rhodri at kynesim.co.uk Tue Jul 24 15:56:47 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 24 Jul 2012 14:56:47 +0100 Subject: [FFmpeg-user] Need help playlist.m3u8 In-Reply-To: <500EA6A4.3080006@gmail.com> References: <500E7FFF.8030304@gmail.com> <500EA6A4.3080006@gmail.com> Message-ID: [Replying to list] On Tue, 24 Jul 2012 14:44:04 +0100, focus television wrote: > > On 24-Jul-12 2:02 PM, Rhodri James wrote: >> On Tue, 24 Jul 2012 11:59:11 +0100, focus television >> wrote: >> >>> Hi, >>> I http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0 >>> This comes from my dreambox. >>> I can play in vlc >>> >>> ffmpeg -i >>> "http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0" >>> -acodec copy -vcodec copy test.mpg >>> >>> It doest take the source url >>> http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0: >>> Operation not permitted >>> Can some one help me please.. >> >> You've asked this several times now. Any chance of giving us the >> *complete* *uncut* console output, as the developers always request? >> > Hi Rhodri > > > C:\Users\admin\Downloads\ffmpeg-20120708-git-299387e-win64-static\bin>ffmpeg > -i > "http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0" > -loglevel deb > ug -acodec copy -vcodec copy test.mpg > ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg > developers > built on Jul 8 2012 15:48:29 with gcc 4.7.1 > 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. 64.100 / 51. 64.100 > libavcodec 54. 33.100 / 54. 33.100 > libavformat 54. 15.102 / 54. 15.102 > libavdevice 54. 1.100 / 54. 1.100 > libavfilter 3. 1.100 / 3. 1.100 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > [AVIOContext @ 0000000001e3fbe0] Statistics: 118 bytes read, 0 seeks > http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0: > Operation not permitted > > This is the things i get on screen .. Do i need to add anything more.. > The output is mpeg2. If the output gets as far as being not empty, then this isn't the complete and uncut console output :-) OK, that's a fairly recent ffmpeg. I'm not familiar with ffmpeg's handling of m3u playlists, so I can only repeat my guess that something is trying to do a seek on the stream, which won't work because streams aren't seekable. Unfortunately I'm not going to have time in the near future to go digging in the source code, so I'm going to have to hand you over to someone more knowledgeable. Anyone? -- Rhodri James Kynesim Ltd From dan at streemit.net Tue Jul 24 16:12:57 2012 From: dan at streemit.net (Dan M) Date: Tue, 24 Jul 2012 09:12:57 -0500 Subject: [FFmpeg-user] ffmpeg live stream transcoding In-Reply-To: <1343039915215-4652003.post@n4.nabble.com> References: <1343039915215-4652003.post@n4.nabble.com> Message-ID: <500EAD69.4030406@streemit.net> I can't address the caching issue, but I recently completed a project where I had VLC encoding a stream and sending to to ffmpeg over UDP, then ffmpeg transcoded the stream and pushed it on to Wowza. If you do "ffplay rtp://239.0.12.2:5000 " does it play the input stream? On 07/23/2012 05:38 AM, radiocm wrote: > Hello every one, > I'm interested in transcoding a multicast stream that is coming from codesc. > > Stream format is: mp4 video and MPEG1 audo. > > I want to transcode this stream on ffmpeg server that is on certain machine > and to stream it on other server > that is using as Wowza as streaming server. > > Now i have several questions: > > how to cache as stream that is comming from codec rtp://239.0.12.2:5000 > transcode it with ffmpeg and pass it to Wowza. > > I will highly appreciate if someone could provide some how tutorials, > because I am totally new on this area, and I'm getting lost at the moment. > > > > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-live-stream-transcoding-tp4652003.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 phpdev at ehrhardt.nl Tue Jul 24 18:41:00 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Tue, 24 Jul 2012 18:41:00 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: Roger Pack in gmane.comp.video.ffmpeg.user (Mon, 23 Jul 2012 22:50:50 -0600): >They apparently committed an "r5250" which might help fix the problem, >would it be possible to try it? >Also a build that defines WINPTHREAD_DBG might apparently be useful. I decided to start from scrath with a new Ubuntu and had a lot of trouble installing mingw64 with Zeranoe's 3.0.5 script. In the mean time I have seen revision 5257, 5358 and 5259 of mingw64. With the r5259 I finally managed to get a working 64-bit environment. Download: http://x32.elijst.nl/ffdebug.tar.bz2 No WINPTHREAD_DBG yet, but the latest ffmpeg and the latest stable x264, compiled with --enable-debug Jan PS. For Kyle: configure: mingw-w64-runtime 3.0b configure: ------------------------------------------------------------------------ configure: configure: configure: Configuration Options Summary: configure: configure: WinCE runtime........: no configure: Win32 runtime........: yes configure: Win64 runtime........: no configure: C Warning Flags......: -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes configure: C++ Warning Flags....: configure: Common Warning Flags.: -Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline configure: Makefile:26134: *** missing separator. Stop From lou at lrcd.com Tue Jul 24 19:27:54 2012 From: lou at lrcd.com (Lou) Date: Tue, 24 Jul 2012 09:27:54 -0800 Subject: [FFmpeg-user] h264 encoder constant QP In-Reply-To: <500E38AE.7000104@allgosystems.com> References: <500E38AE.7000104@allgosystems.com> Message-ID: <20120724092754.103c466d@lrcd.com> On Tue, 24 Jul 2012 11:24:54 +0530 vikasmk wrote: > I need a way to set qp constant and disable the RD loop. Or any work > around that would give an rd plot . > the flags I use are > flags : "-vcodec libx264 -profile:v baseline -qscale 10 -refs 1 " Do no use -qscale with libx264. See the libx264 AVOptions in "ffmpeg -h". The -qp option is listed there. From phpdev at ehrhardt.nl Tue Jul 24 22:49:55 2012 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Tue, 24 Jul 2012 22:49:55 +0200 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly References: <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> Message-ID: <362u08di3r2ibntbsqa8uace48h822v489@4ax.com> Roger Pack in gmane.comp.video.ffmpeg.user (Mon, 23 Jul 2012 22:50:50 -0600): >Ok I pinged them: >http://sourceforge.net/mailarchive/forum.php?thread_name=500CD44E.9000803%40gmail.com&forum_name=mingw-w64-public >They apparently committed an "r5250" which might help fix the problem, >would it be possible to try it? >Also a build that defines WINPTHREAD_DBG might apparently be useful. http://x32.elijst.nl/ffdebug2.tar.bz2 contains versions with WINPTHREAD_DBG. It wasn't simply uncommenting #define WINPTHREAD_DBG 1 in in pthread.h. At the very last end of Zeranoe's script compilation failed, because of double declarations of void mutex_print() in mutex.h and mutex.c and more of those errors. I had to debug to get it running... Also in some functions print_state was declared as 0, apparently prohibiting the desired output. I have changed that everywhere to print_state = 1. Jan From dan at hentschels.com Tue Jul 24 23:21:04 2012 From: dan at hentschels.com (Dan Hentschel) Date: Tue, 24 Jul 2012 17:21:04 -0400 Subject: [FFmpeg-user] ffmpeg fails to detect subtitles in a VOB file Message-ID: First some simple background information. I will try to be brief. Some years ago, I ripped my entire anime collection and mothballed all the DVDs in the basement. I have been adding to it over the years, and am starting to wish that the files would take up less room, so I am contemplating transcoding all the *.vob files to *.mkv files using the x264 codec. Here's the catch: I want to maintain the subtitle tracks, but ffmpeg doesn't always detect the subtitles. WORKING EXAMPLE: ffmpeg -i 01\ Child\ High\ School\ Student\ --\ She\'s\ a\ Prodigy\ --\ Scary\ Maybe\ --\ Wildcat\ Tomo-chan\!\ --\ The\ Osakan\ Gal.vob ffmpeg version git-2012-07-10-9b3f9f4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 10 2012 21:09:09 with gcc 4.6.3 ... snip ... Input #0, mpeg, from '01 Child High School Student -- She's a Prodigy -- Scary Maybe -- Wildcat Tomo-chan! -- The Osakan Gal.vob': Duration: 00:24:11.10, start: 0.233567, bitrate: 6400 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 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 Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, s16, 224 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle ---------------------------------------------------------------------------- Notice that ffmpeg sees two subtitle tracks in this vob. I am able to then create an mkv file that has these subtitle tracks in it. I am happy with the results. NONWORKING EXAMPLE: ffmpeg -i 001\ Enter\ Naruto\ Uzumaki\!.vob ffmpeg version git-2012-07-10-9b3f9f4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 10 2012 21:09:09 with gcc 4.6.3 ... snip ... Input #0, mpeg, from '001 Enter Naruto Uzumaki!.vob': Duration: 00:23:06.84, start: 0.060000, bitrate: 8318 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9800 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x81]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s ----------------------------------------------------------------------------------- For this one, ffmpeg doesn't see any subtitle tracks. However, I can play the video with either MythTV's video player, or with VLC, and both of them are able to detect and display English subtitles. I am not an expert on the file format in VOBs, but my observation is that neither of the aforementioned players detects that there is a subtitle stream present until about 10-20 seconds into the video, at about the time that the first subtitle is displayed. Is it possible that ffmpeg is not reading far enough into the file to see the subtitle stream? Is there some way to increase how much of the file is parsed? I have tried using both the -probesize and the -analyzeduration fields, but neither seems to help the situation. Any recommendations? -- dan B hentschel dan at hentschels.com From cehoyos at ag.or.at Tue Jul 24 23:33:39 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 24 Jul 2012 21:33:39 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg fails to detect subtitles in a VOB file References: Message-ID: Dan Hentschel hentschels.com> writes: > For this one, ffmpeg doesn't see any subtitle tracks. However, I can play > the video with either MythTV's video player, or with VLC, and both of them > are able to detect and display English subtitles. I am not an expert on the > file format in VOBs, but my observation is that neither of the > aforementioned players detects that there is a subtitle stream present > until about 10-20 seconds into the video, at about the time that the first > subtitle is displayed. Consider adding yourself to the CC list of ticket #598: https://ffmpeg.org/trac/ffmpeg/ticket/598 It unfortunately describes several problems, one of them is the one you see. Carl Eugen From dan at hentschels.com Wed Jul 25 03:00:37 2012 From: dan at hentschels.com (Dan Hentschel) Date: Tue, 24 Jul 2012 21:00:37 -0400 Subject: [FFmpeg-user] ffmpeg fails to detect subtitles in a VOB file In-Reply-To: References: Message-ID: Thank you very much for the link. It was very helpful. It turns out that the -analyzeduration and -probesize flags actually DO work just fine. I was just placing them incorrectly. They need to be BEFORE the -i flag. I was placing them after. I changed my command line as follows: ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i 001\ Enter\ Naruto\ Uzumaki\!.vob ... snip ... Input #0, mpeg, from '001 Enter Naruto Uzumaki!.vob': Duration: 00:23:06.84, start: 0.060000, bitrate: 8318 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9800 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x81]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle ----------------------------------------------------------- And now I can see the subtitle just fine. I somehow missed the fact that they needed to come before the -i. The link you provided had an example command line that provided the spark. Thanks again. - dan On Tue, Jul 24, 2012 at 5:33 PM, Carl Eugen Hoyos wrote: > Dan Hentschel hentschels.com> writes: > > > For this one, ffmpeg doesn't see any subtitle tracks. However, I can play > > the video with either MythTV's video player, or with VLC, and both of > them > > are able to detect and display English subtitles. I am not an expert on > the > > file format in VOBs, but my observation is that neither of the > > aforementioned players detects that there is a subtitle stream present > > until about 10-20 seconds into the video, at about the time that the > first > > subtitle is displayed. > > Consider adding yourself to the CC list of ticket #598: > https://ffmpeg.org/trac/ffmpeg/ticket/598 > It unfortunately describes several problems, one of them is > the one you see. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- dan B hentschel dan at hentschels.com From vikasmk at allgosystems.com Wed Jul 25 08:24:28 2012 From: vikasmk at allgosystems.com (vikasmk) Date: Wed, 25 Jul 2012 11:54:28 +0530 Subject: [FFmpeg-user] h264 encoder constant QP In-Reply-To: <20120724092754.103c466d@lrcd.com> References: <500E38AE.7000104@allgosystems.com> <20120724092754.103c466d@lrcd.com> Message-ID: <500F911C.4030206@allgosystems.com> Thanks . I used -qmin and -qmax to the same value . It seemed to work . On Tuesday 24 July 2012 10:57 PM, Lou wrote: > On Tue, 24 Jul 2012 11:24:54 +0530 > vikasmk wrote: > >> I need a way to set qp constant and disable the RD loop. Or any work >> around that would give an rd plot . >> the flags I use are >> flags : "-vcodec libx264 -profile:v baseline -qscale 10 -refs 1 " > Do no use -qscale with libx264. See the libx264 AVOptions in "ffmpeg > -h". The -qp option is listed there. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From luke at audiomotion.com Wed Jul 25 13:12:01 2012 From: luke at audiomotion.com (Luke) Date: Wed, 25 Jul 2012 12:12:01 +0100 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline Message-ID: <500FD481.8050507@audiomotion.com> Hello, We are testing ffmpeg in our compression pipeline as our commercial software does not provide the functionality we need. We run a multithreaded compression (ffmpeg multithreading isn't used, our own solution is) using the following command: ffmpeg -i #input# -f mp4 -vcodec libx264 -s 1024x576 -b:v 2000k -g 33 -acodec libmp3lame -b:a 128k -ar 44100 -vf "movie=#logo# [wm]; [in][wm] overlay=10:main_h-overlay_h-10 [out]" -y #output# Approx. 75% threads complete without any problems, the remaining ones get stuck - cpu usage on each thread drops to 0, memory usage gets stuck at around 300MB. Initially we used aac and libvo_aacenc coders for audio, but the hangs seemed more frequent. Tested on a few recent ffmpeg builds, including the one compiled on 20/07. Any help would be greatly appreciated. Many thanks, Luke -- *Luke Niejadlik* Audiomotion Studios Ltd. T: +44 (0)8701 600 504 F: +44 (0)1865 725 651 www.audiomotion.com Develop Awards - Best Services Winner 2011, 2009 & 2004 */JOIN THE MOVEMENT!/* - www.facebook.com/audiomotion.studios - twitter.com/audiomotion - http://www.join-the-movement.co.uk/ From fernando.martinelli at gmail.com Wed Jul 25 13:19:12 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Wed, 25 Jul 2012 13:19:12 +0200 Subject: [FFmpeg-user] Problem converting from FLV to MP4 In-Reply-To: References: Message-ID: 2012/7/24 Fernando Martinelli > 2012/7/23 Carl Eugen Hoyos > >> Fernando Martinelli gmail.com> writes: >> >> > ffmpeg -i input.flv -vcodec mpeg4 -b:v 200k -r 24 >> > -vf scale=320:240 -ar 44100 -y output.mp4 >> >> Does the problem also occur without -ar 44100 ? >> > > It shows an error if I take out the -ar 44100: > Is that then a bug Carl? THanks! > > *ffmpeg -i input.flv -vcodec mpeg4 -b:v 200k -r 24 -vf scale=320:240 -y > output.mp4 * > * > * > *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* > * built on Jul 12 2012 15:00:45 with gcc 4.7.1* > * configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector > --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' > --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared > --enable-libmp3lame --enable-gpl --enable-nonfree > --disable-decoder=libdirac --enable-libvorbis --disable-pthreads > --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab > --enable-libgsm --enable-libtheora --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libx264 --enable-libspeex > --enable-nonfree --disable-stripping --enable-libschroedinger > --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg > --enable-libvpx --enable-librtmp --enable-avfilter --enable-libfreetype > --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc > --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda > --enable-libbluray --enable-libdc1394 --disable-altivec --disable-armv5te > --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu* > * 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* > *[libspeex @ 0x155ab80] Missing Speex header, assuming defaults.* > *Guessed Channel Layout for Input Stream #0.1 : mono* > *Input #0, flv, from 'input.flv':* > * Metadata:* > * creationdate : Sat Jul 21 12:20:45* > * Duration: 00:11:25.61, start: 0.000000, bitrate: 211 kb/s* > * Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR > 4:3], 12 tbr, 1k tbn, 24 tbc* > * Stream #0:1: Audio: speex, 16000 Hz, mono, s16* > *[buffer @ 0x155b1a0] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:1/1 > sws_param:flags=2* > *[buffersink @ 0x15d8bc0] No opaque field provided* > *[scale @ 0x1568d00] w:320 h:240 fmt:yuv420p sar:1/1 -> w:320 h:240 > fmt:yuv420p sar:1/1 flags:0x4* > *[libfaac @ 0x15d8080] libfaac doesn't support this output format!* > *Output #0, mp4, to 'output.mp4':* > * Metadata:* > * creationdate : Sat Jul 21 12:20:45* > * Stream #0:0: Video: mpeg4, yuv420p, 320x240 [SAR 1:1 DAR 4:3], > q=2-31, 200 kb/s, 90k tbn, 24 tbc* > * Stream #0:1: Audio: aac, 16000 Hz, mono, s16, 128 kb/s* > *Stream mapping:* > * Stream #0:0 -> #0:0 (h264 -> mpeg4)* > * Stream #0:1 -> #0:1 (libspeex -> libfaac)* > *Error while opening encoder for output stream #0:1 - maybe incorrect > parameters such as bit_rate, rate, width or height* > > > -- Regards/ viele Gr??e, Fernando From vadim.lungu at radiocom.md Wed Jul 25 13:31:07 2012 From: vadim.lungu at radiocom.md (radiocm) Date: Wed, 25 Jul 2012 04:31:07 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg live stream transcoding In-Reply-To: References: <1343039915215-4652003.post@n4.nabble.com> Message-ID: <1343215867351-4652047.post@n4.nabble.com> I will be very glad if someone would have an opportunity to offer such a tutorial. Because the tutorial from Wowza website keep me unclear. Thank you for your receptivity. ----- Best regards, Vadim. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-live-stream-transcoding-tp4652003p4652047.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Wed Jul 25 13:43:18 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 25 Jul 2012 13:43:18 +0200 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline In-Reply-To: <500FD481.8050507@audiomotion.com> References: <500FD481.8050507@audiomotion.com> Message-ID: <20120725114318.GA25200@phare.normalesup.org> L'octidi 8 thermidor, an CCXX, Luke a ?crit?: > We are testing ffmpeg in our compression pipeline as our commercial > software does not provide the functionality we need. > > We run a multithreaded compression (ffmpeg multithreading isn't > used, our own solution is) using the following command: > ffmpeg -i #input# -f mp4 -vcodec libx264 -s 1024x576 -b:v 2000k -g > 33 -acodec libmp3lame -b:a 128k -ar 44100 -vf "movie=#logo# [wm]; > [in][wm] overlay=10:main_h-overlay_h-10 [out]" -y #output# > > Approx. 75% threads complete without any problems, the remaining > ones get stuck - cpu usage on each thread drops to 0, memory usage > gets stuck at around 300MB. Can you reproduce the problem with another video codec, such as the internal MPEG4 encoder, or maybe even with -f null? Can you try to find out where ffmpeg is stuck? A way to do that would be to run the debug version (ffmpeg_g), and when it is stuck, attach it with gdb (gdb ffmpeg_g $(pidof ffmpeg_g)), get a backtrace and then detach it: a few iterations of that would show where ffmpeg spends most of its time. > Initially we used aac and libvo_aacenc coders for audio, but the > hangs seemed more frequent. You will probably get more quality out of lame anyway. 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 vadim.lungu at radiocom.md Wed Jul 25 13:18:19 2012 From: vadim.lungu at radiocom.md (radiocm) Date: Wed, 25 Jul 2012 04:18:19 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg live stream transcoding In-Reply-To: <500EAD69.4030406@streemit.net> References: <1343039915215-4652003.post@n4.nabble.com> <500EAD69.4030406@streemit.net> Message-ID: <1343215099472-4652045.post@n4.nabble.com> Here is the result, when I'm trying to play with ffplay # ffplay rtp://239.0.12.2:5000 ffplay version 0.7.13, Copyright (c) 2003-2011 the FFmpeg developers built on Jun 13 2012 14:14:09 with gcc 4.4.5 configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis libavutil 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 commandline read: ffplay commandline read: rtp://239.0.12.2:5000 ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2010-06-30 18:13) (*) Direct/Memcpy: Using Generic 64bit memcpy() (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed --> No such file or directory (!) DirectFB/FBDev: Error opening framebuffer device! (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable. (!) DirectFB/Core: Could not initialize 'system_core' core! --> Initialization error! Could not initialize SDL - DirectFBCreate: Initialization error! ----- Best regards, Vadim. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-live-stream-transcoding-tp4652003p4652045.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ch.sureshkumar.24 at gmail.com Wed Jul 25 16:15:35 2012 From: ch.sureshkumar.24 at gmail.com (suresh kumar) Date: Wed, 25 Jul 2012 19:45:35 +0530 Subject: [FFmpeg-user] [ffmpeg-user]Query on Conversion format using SWSCONTEXT Message-ID: Hi, I have done piece of code for conversion from RGB24 to YUV420P. After converting i am giving YUV420P data to encode purpose after than it writes the data. The frame size is 320x240. My problem is my project is closed automatically due to encode problem. I refer sample code and documentation , it seems not clear idea i get. I am working in MSVC2010. c->pix_fmt=PIX_FMT_RGB24; static struct SwsContext *img_convert_fromRGBtoYUV; if(c->pix_fmt!=PIX_FMT_YUV420P) { if(img_convert_fromRGBtoYUV==NULL) { img_convert_fromRGBtoYUV = sws_getContext(c->width,c->height,c->pix_fmt,c->width,c->height,PIX_FMT_YUV420P,sws_flags,NULL,NULL,NULL); if(img_convert_fromRGBtoYUV==NULL) { printf("Cannot initialize the conversion context\n"); exit(1); } avpicture_fill((AVPicture*)pict2[q],RGBdata,PIX_FMT_RGB24,c->width,c->height); sws_scale(img_convert_fromRGBtoYUV,pict2[q]->data,pict2[q]->linesize,0,c->height,temp_pict[q]->data,temp_pict[q]->linesize); avpicture_layout((AVPicture*)temp_pict[q],PIX_FMT_YUV420P,c->width,c->height,YUVdata,115200); } } /* encode the image */ out_size = avcodec_encode_video(c, video_outbuf[q], video_outbuf_size[q],temp_pict[q]); Can any one help me on this. From s.gritz at vucx.de Wed Jul 25 17:55:48 2012 From: s.gritz at vucx.de (Sascha Gritz) Date: Wed, 25 Jul 2012 17:55:48 +0200 Subject: [FFmpeg-user] qt animation Message-ID: <50101704.7030200@vucx.de> Dear list, I 'd like to encode a video as Quicktime Animation with compressor quality at 100%. this is my command line: ./ffmpeg -i MLM_LT_%*.jpg -s 1280x720 -vcodec qtrle -r 25 test.mov The result is smaller and worse than the result from QT pro. Settings in QT Pro are: fps: 25 keyframe every 24 frames colors 16,7 quality: optimal Which parameters do I have to add. Many thanks, Sascha -- ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 9 2012 15:43:10 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --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 Input #0, image2, from '/Users/sgritz/Desktop/test/120717_LY_MLM_LT_%*.jpg': Duration: 00:00:04.44, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj444p, 1280x720 [SAR 72:72 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc [buffer @ 0x100116ac0] w:1280 h:720 pixfmt:yuvj444p tb:1/25 sar:72/72 sws_param:flags=2 [buffersink @ 0x100116da0] No opaque field provided [scale @ 0x100116fc0] w:1280 h:720 fmt:yuvj444p sar:72/72 -> w:1280 h:720 fmt:rgb24 sar:1/1 flags:0x4 Output #0, mov, to '/Users/sgritz/Desktop/test//081512_ly_mlm_66.mov': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: qtrle (rle / 0x20656C72), rgb24, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> qtrle) Press [q] to stop, [?] for help frame= 26 fps=0.0 q=0.0 size= 738kB time=00:00:01.04 bitrate=5815.1kbits/sframe= 53 fps= 50 q=0.0 size= 1230kB time=00:00:02.12 bitrate=4754.6kbits/sframe= 79 fps= 50 q=0.0 size= 1723kB time=00:00:03.16 bitrate=4465.8kbits/sframe= 108 fps= 52 q=0.0 size= 2215kB time=00:00:04.32 bitrate=4200.0kbits/sframe= 111 fps= 51 q=0.0 Lsize= 2462kB time=00:00:04.44 bitrate=4542.6kbits/s video:2461kB audio:0kB global headers:0kB muxing overhead 0.049010% grinch:Applications sgritz$ From rogerdpack2 at gmail.com Wed Jul 25 19:07:24 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 11:07:24 -0600 Subject: [FFmpeg-user] qt animation In-Reply-To: <50101704.7030200@vucx.de> References: <50101704.7030200@vucx.de> Message-ID: > ./ffmpeg -i MLM_LT_%*.jpg -s 1280x720 -vcodec qtrle -r 25 test.mov > > The result is smaller and worse than the result from QT pro. What do you mean worse? quality is worse? From rogerdpack2 at gmail.com Wed Jul 25 20:02:23 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 12:02:23 -0600 Subject: [FFmpeg-user] Newbie questions In-Reply-To: References: Message-ID: > - From that I extracted and saved 25000 png images, all 1920 x 30 pixels > but each starting at point x from the original image where x=x+1 > - Then I used the following to create a movie of it: > > c:\mytemp>ffmpeg -f image2 -i c:\mytemp\images\image%d.png > c:\mytemp\video\video.mpg > > Questions: > > 1) What is the maximum frame rate I can use? Currently although it is > smooth, it takes about 33 seconds to go from right to left since it is only > moving at one pixel at a time. I want it to take about 12 seconds You can use any frame rate you want, probably. > 2) Should I use PNG format images or choose something else (ASP.NET lets me > choose the image format to Save As)? Shouldn't matter, PNG might be "less lossy" than jpeg. > 3) I want to embed the movie on a webpage. What then is the best video > format for that? flv ? > 4) Are there any other things I should do to optimize the quality, > smoothness and file size? Currently the movie is 92 MB. You can specify an output video codec, like libx264. GL! -r From dan at streemit.net Wed Jul 25 20:30:08 2012 From: dan at streemit.net (Dan M) Date: Wed, 25 Jul 2012 13:30:08 -0500 Subject: [FFmpeg-user] ffmpeg live stream transcoding In-Reply-To: <1343215867351-4652047.post@n4.nabble.com> References: <1343039915215-4652003.post@n4.nabble.com> <1343215867351-4652047.post@n4.nabble.com> Message-ID: <50103B30.4010900@streemit.net> On 07/25/2012 06:31 AM, radiocm wrote: > I will be very glad if someone would have an opportunity to offer such a > tutorial. Because the tutorial from Wowza website keep me unclear. Thank you > for your receptivity. > > > > ----- > Best regards, Vadim. > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-live-stream-transcoding-tp4652003p4652047.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 I can't really offer a tutorial, but I can show you how I did something similar recently. In my application, I have a server running vlc sucking streams from some cameras, encoding them as MPEG2 streams and sending them to ports 5000 through 5003 on my intermediary server (I'll have to let someone else explain how to set that up, as that was someone else's part of the project). I have another server running Wowza, with an instance named "live". And I've got an intermediate server that sucks in MPEG2 streams coming in on ports 5000 to 5003, transcoding them into mp4 streams with H.264 and AAC codecs, and pushing the transcoded streams on to Wowza. The command line I use to pull the stream from port 5000, transcode it, and push it is: ffmpeg -i 'udp://localhost:5000?fifo_size=1000000&overrun_nonfatal=1' -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -r 25 -b:v 500k -f flv 'rtmp:///live/cam0' -i 'udp://localhost:5000?fifo_size=1000000&overrun_nonfatal=1' tells ffmpeg where to pull the input stream from. The parts after the ? are probably not needed most of the time, but I did need it after all. -crf 30 sets the Content Rate Factor. That's an x264 argument that tries to keep reasonably consistent video quality. A value of 30 allows somewhat lower quality and bit rate. -preset ultrafast as the name implies provides for the fastest possible encoding. If some tradeoff between quality and encode speed, go for the speed. This might be needed if you are going to be transcoding multiple streams on one machine. -acodec aac sets the audio codec -strict experimental allows use of some experimental codecs -ar 44100 set the audio sample rate -ac 2 specifies two channels of audio -b:a 96k sets the audio bit rate -vcodec libx264 sets the video codec -r 25 set the frame rate -b:v 500k set the video bit rate -f flv says to deliver the output stream in an flv wrapper 'rtmp:///live/cam0' is where the transcoded video stream gets pushed to From james.darnley at gmail.com Wed Jul 25 20:39:35 2012 From: james.darnley at gmail.com (James Darnley) Date: Wed, 25 Jul 2012 20:39:35 +0200 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. In-Reply-To: References: <500AC055.5010404@gmail.com> Message-ID: <50103D67.1070706@gmail.com> On 2012-07-23 22:43, Joseph Rosensweig wrote: > Thanks for the replies. I'm pretty new to FFMPEG so I'm picking these > things up as I go. So for the first issue with the high444 and high422 > coming out as high. In an earlier version of FFMPEG, when I took raw 4:2:0 > YUV data and encoded it using the ultrafast lossless preset. FFMPEG would > show "High 4:4:4 Predictive", despite the fact that I was feeding it 4:2:0 > YUV. That is where this confusion came from for me. Just a quick follow-up to let you know that "High 4:4:4 Predictive" was used because it is the only profile to allow lossless encoding. From jrosensw at gmail.com Wed Jul 25 21:06:27 2012 From: jrosensw at gmail.com (Joseph Rosensweig) Date: Wed, 25 Jul 2012 12:06:27 -0700 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. In-Reply-To: <50103D67.1070706@gmail.com> References: <500AC055.5010404@gmail.com> <50103D67.1070706@gmail.com> Message-ID: He James, Thanks for the follow up. So in the latest version of FFMPEG how would I achieve lossless encoding? Would I still specify "High 4:4:4 Predictive", or is there a different way now? Thanks! -JD On Wed, Jul 25, 2012 at 11:39 AM, James Darnley wrote: > On 2012-07-23 22:43, Joseph Rosensweig wrote: > > Thanks for the replies. I'm pretty new to FFMPEG so I'm picking these > > things up as I go. So for the first issue with the high444 and high422 > > coming out as high. In an earlier version of FFMPEG, when I took raw > 4:2:0 > > YUV data and encoded it using the ultrafast lossless preset. FFMPEG > would > > show "High 4:4:4 Predictive", despite the fact that I was feeding it > 4:2:0 > > YUV. That is where this confusion came from for me. > > Just a quick follow-up to let you know that "High 4:4:4 Predictive" was > used because it is the only profile to allow lossless encoding. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Wed Jul 25 21:15:46 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 13:15:46 -0600 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline In-Reply-To: <500FD481.8050507@audiomotion.com> References: <500FD481.8050507@audiomotion.com> Message-ID: > We run a multithreaded compression (ffmpeg multithreading isn't used, our > own solution is) using the following command: > ffmpeg -i #input# -f mp4 -vcodec libx264 -s 1024x576 -b:v 2000k -g 33 > -acodec libmp3lame -b:a 128k -ar 44100 -vf "movie=#logo# [wm]; [in][wm] > overlay=10:main_h-overlay_h-10 [out]" -y #output# What do you mean that your own solution is using multithreading? > Approx. 75% threads complete without any problems, the remaining ones get > stuck - cpu usage on each thread drops to 0, memory usage gets stuck at > around 300MB. What OS? Full uncut complete console and output please? Also gdb backtraces of stuck threads? From cehoyos at ag.or.at Wed Jul 25 21:42:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 25 Jul 2012 19:42:40 +0000 (UTC) Subject: [FFmpeg-user] qt animation References: <50101704.7030200@vucx.de> Message-ID: Sascha Gritz vucx.de> writes: > ./ffmpeg -i MLM_LT_%*.jpg -s 1280x720 -vcodec qtrle -r 25 test.mov > > The result is smaller and worse than the result from QT pro. Since qtrle is a lossless codec, this makes no sense. Carl Eugen From rogerdpack2 at gmail.com Wed Jul 25 21:55:23 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 13:55:23 -0600 Subject: [FFmpeg-user] qt animation In-Reply-To: References: <50101704.7030200@vucx.de> Message-ID: > Since qtrle is a lossless codec, this makes no sense. I thought the same thing (I think it's implementation within ffmpeg is losless). However QT Pro or the like do provide users with "quality level" settings so I presume they allow the user to lose data if desired. I don't think ffmpeg does though... From rogerdpack2 at gmail.com Wed Jul 25 21:56:38 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 13:56:38 -0600 Subject: [FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly In-Reply-To: <362u08di3r2ibntbsqa8uace48h822v489@4ax.com> References: <4FFDA597.5010404@googlemail.com> <4FFDE4AB.1090706@googlemail.com> <4FFE7421.7010408@googlemail.com> <4FFF6CA7.8060409@gmail.com> <4FFFCEE9.2010207@googlemail.com> <5003786D.2060204@gmail.com> <362u08di3r2ibntbsqa8uace48h822v489@4ax.com> Message-ID: > http://x32.elijst.nl/ffdebug2.tar.bz2 contains versions with > WINPTHREAD_DBG. Sweet thanks for the builds and hints. $ ffmpeg -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.mp4 "C:\Downloads\ffdebug2.tar\ffdebug2\ffmpeg.exe" took 37.3s freeze's at frame 1964, 2201 took 42.9s freezes 767, 1361, 1812 Looks like it's not quite fixed yet, will ping the mingw-w64 guys and let you know... -r From rogerdpack2 at gmail.com Wed Jul 25 22:01:45 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 14:01:45 -0600 Subject: [FFmpeg-user] Big file webcam In-Reply-To: References: <1342537134143-4651854.post@n4.nabble.com> Message-ID: > I have been trying with a lot of commands. I want to know if these two are correct. Work well but, sometimes I get "overread", and when you play the video I see like a little glued in the moment that appear "overread". complete command line and console output that lists "overread"? My guess is that your system just can't keep up, so adjust something (see "latency/cpu-usage" http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide), but I don't know for sure :P -r From james.darnley at gmail.com Thu Jul 26 01:25:41 2012 From: james.darnley at gmail.com (James Darnley) Date: Thu, 26 Jul 2012 01:25:41 +0200 Subject: [FFmpeg-user] ffmpeg-55ed91c and x264-d9d2288. Profile setting differs from output. In-Reply-To: References: <500AC055.5010404@gmail.com> <50103D67.1070706@gmail.com> Message-ID: <50108075.4040903@gmail.com> On 2012-07-25 21:06, Joseph Rosensweig wrote: > He James, > > Thanks for the follow up. So in the latest version of FFMPEG how would > I achieve lossless encoding? Would I still specify "High 4:4:4 > Predictive", or is there a different way now? Either in the the manner used for years: -cqp 0 Or in a possible new way: -x264opts qp=0 Or in another possible new way: -qp 0 From rogerdpack2 at gmail.com Thu Jul 26 01:44:59 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 25 Jul 2012 17:44:59 -0600 Subject: [FFmpeg-user] show anticipated final duration Message-ID: Since ffmpeg seems to have bitrate available to it, possibly when it first starts up, it can list the anticipated "end size" of the destination file? Just thinking out loud. It would be useful at times. Cheers! -r From luke at audiomotion.com Wed Jul 25 23:24:26 2012 From: luke at audiomotion.com (Luke) Date: Wed, 25 Jul 2012 22:24:26 +0100 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline In-Reply-To: <20120725114318.GA25200@phare.normalesup.org> References: <500FD481.8050507@audiomotion.com> <20120725114318.GA25200@phare.normalesup.org> Message-ID: <5010640A.6060502@audiomotion.com> Hello, Thanks for your responses. > Can you reproduce the problem with another video codec, such as the internal > MPEG4 encoder, or maybe even with -f null? I tested this using internal mp4, as well as libvpx. In both cases the pipeline completed without a glitch on a sample of 1400 videos. > Can you try to find out where ffmpeg is stuck? A way to do that would be to > run the debug version (ffmpeg_g), and when it is stuck, attach it with gdb > (gdb ffmpeg_g $(pidof ffmpeg_g)), get a backtrace and then detach it: a few > iterations of that would show where ffmpeg spends most of its time. Unfortunately the system is running Windows 7 and we have no option of running linux (users not linux friendly). > What do you mean that your own solution is using multithreading? As you will notice from the attached logs the pipeline is based on Ruby. The whole objective of it is to ingest files from the capture servers, rename them, create branding, compress & watermark, and distribute compressed output to client machines as well as HTML5 web app. Which should explain testing libvo_aac and VP8. The Ruby app creates runs multiple threads based on the size of the queue. > What OS? Windows 7 > Full uncut complete console and output please? Logs from FFMPEG attached. One of a comression which completed fine, and 3 which got stuck. Getting stuck seems a bit random, as force closing and reopening the thread usually allows the compression to complete fine. If not on the 1st try, then 2nd. Usually 1st re-run is enough. We're trying another approach - building timeout into the multithreading process. However it would be quicker and more efficient if we were able to run FFMPEG without a glitch. > Also gdb backtraces of stuck threads? Correct me if I'm wrong, but I won't be able to get it in Windows, will I? Many thanks for your help, *Luke Niejadlik* Audiomotion Studios Ltd. T: +44 (0)8701 600 504 F: +44 (0)1865 725 651 www.audiomotion.com Develop Awards - Best Services Winner 2011, 2009 & 2004 */JOIN THE MOVEMENT!/* - www.facebook.com/audiomotion.studios - twitter.com/audiomotion - http://www.join-the-movement.co.uk/ -------------- next part -------------- A non-text attachment was scrubbed... Name: logs.zip Type: application/x-zip-compressed Size: 155529 bytes Desc: not available URL: From chaupv79 at hotmail.com Thu Jul 26 06:30:59 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Thu, 26 Jul 2012 04:30:59 +0000 Subject: [FFmpeg-user] ffmpeg get current state of transcoding Message-ID: Hi Everybody, Is it possible to get current state of ffmpeg transcoding by using command? for example, I want to know how many percent ffmpeg has transcoded in current state? Thank you, Chau Pham. From chaupv79 at hotmail.com Thu Jul 26 06:35:59 2012 From: chaupv79 at hotmail.com (Chau Pham) Date: Thu, 26 Jul 2012 04:35:59 +0000 Subject: [FFmpeg-user] Can you help with ffmpeg? In-Reply-To: References: Message-ID: I installed ffmpeg successfully when looked at this guideline http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide > Date: Tue, 17 Jul 2012 12:28:30 -0700 > From: infofrenchcookies at gmail.com > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] Can you help with ffmpeg? > > Hi Everyone > > I need help in installing ffmpeg in a dedicated server : centos6 / Plesk > Can you help me out? I cannot do it myself. > > Thank you very much > Daniel Nicolas > 949-933 0800 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From fernando.martinelli at gmail.com Thu Jul 26 12:12:45 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Thu, 26 Jul 2012 12:12:45 +0200 Subject: [FFmpeg-user] How to concatenate mp4 files using ffmpeg? Message-ID: Hello, What I want to do is concatenate several mp4 files with the same fps, resolution and other characteristics into an output file whose length is the sum of the lengths of the input files (that is, it plays all input files one after the other). I should be something simple, but I only managed to do it with mencoder: mencoder file1.mp4 file2.mp4 file3.mp4 ... -ovc copy -oac faac -o output.mp4 However sometimes mencoder is crashing without any apparent reason. So my question: *how to do the same with ffmpeg?* Thanks a lot for your help! Fernando From s.gritz at vucx.de Thu Jul 26 12:24:33 2012 From: s.gritz at vucx.de (s.gritz at vucx.de) Date: Thu, 26 Jul 2012 12:24:33 +0200 (CEST) Subject: [FFmpeg-user] qt animation In-Reply-To: References: <50101704.7030200@vucx.de> Message-ID: <1605149937.937586.1343298273390.JavaMail.open-xchange@email.1und1.de> Roger Pack hat am 25. Juli 2012 um 21:55 geschrieben: > > Since qtrle is a lossless codec, this makes no sense. > > I thought the same thing (I think it's implementation within ffmpeg is > losless). However QT Pro or the like do provide users with "quality > level" settings so I presume they allow the user to lose data if > desired. I don't think ffmpeg does though... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user thanks, guys. ...worse in terms of quality is what I mean. But the issue is solved. I re-rendered the image sequence and did the same process with ffmpeg again. Now it looks great. Maybe a corrupt first fram of the sequence? Thanks again From pb at das-werkstatt.com Thu Jul 26 12:59:59 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 26 Jul 2012 12:59:59 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? Message-ID: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> I just ran into a really weird issue with "born digital" video material: I've tried to transcode a FFv1/PCM lossless file (720x576 @29.970fps) to a DVD conform MPEG, but mencoder threw the following error message: "MPEG1/2 does not support 2997/100 fps" If I tell mencoder to use "-ofps 30000/1001" everything works fine. Now, my question is: Can I use ffmpeg to "clean" my original file to have the fps stored "correctly"? I've tried this: "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" but the resulting file still had the "wrong" fps (2997/100). Thank you very much in advance, Pb From rogerdpack2 at gmail.com Thu Jul 26 15:25:41 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 07:25:41 -0600 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline In-Reply-To: <5010640A.6060502@audiomotion.com> References: <500FD481.8050507@audiomotion.com> <20120725114318.GA25200@phare.normalesup.org> <5010640A.6060502@audiomotion.com> Message-ID: > I tested this using internal mp4, as well as libvpx. In both cases the > pipeline completed without a glitch on a sample of 1400 videos. This sounds vaguely familiar...f it fails with libx264 but works well with the others, you may be running up against a threading issue we're trying to resolve in the zeranoe builds. Could you try with this build and see if it works? http://x32.elijst.nl/FFmpeg-20120622.7z >> Also gdb backtraces of stuck threads? > > Correct me if I'm wrong, but I won't be able to get it in Windows, will I? Believe it or not the mingw people have ported gdb to windows, and it works quite well. http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20(Win64%20hosted)/gdb/ It can even attach to remote processes. You'll want to be running a debug version of ffmpeg, though even a non debug version of it might show some interesting material. basically start gdb, then (gdb) attach (gdb) thread apply all bt GL! From rogerdpack2 at gmail.com Thu Jul 26 15:28:45 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 07:28:45 -0600 Subject: [FFmpeg-user] How to concatenate mp4 files using ffmpeg? In-Reply-To: References: Message-ID: > What I want to do is concatenate several mp4 files with the same fps, > resolution and other characteristics into an output file whose length is > the sum of the lengths of the input files (that is, it plays all input > files one after the other). I should be something simple, but I only > managed to do it with mencoder: see concat: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f From rogerdpack2 at gmail.com Thu Jul 26 15:33:01 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 07:33:01 -0600 Subject: [FFmpeg-user] ffmpeg get current state of transcoding In-Reply-To: References: Message-ID: > Is it possible to get current state of ffmpeg transcoding by using command? > > for example, I want to know how many percent ffmpeg has transcoded in current state? In general you have to just parse the output that ffmpeg is generating. I believe Nicolas committed something recently that can help make that 'easier' https://github.com/FFmpeg/FFmpeg/commit/7b521c52c41471fa682a90248632d0d0d7333e59 HTH. -r From rogerdpack2 at gmail.com Thu Jul 26 15:35:21 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 07:35:21 -0600 Subject: [FFmpeg-user] ffmpeg background In-Reply-To: <50068AC0.6060603@gmail.com> References: <50068AC0.6060603@gmail.com> Message-ID: > Can u tell me how to run the ffmpeg in background. > I dont want to stop the play when i close my shell. > Can i do something that keeps the process alive even if i close the shell. > I am new to linux and need to use ssl login. the "nohup" command or the "screen" command are what I typically use. From rogerdpack2 at gmail.com Thu Jul 26 15:37:50 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 07:37:50 -0600 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. In-Reply-To: References: Message-ID: > I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. You may be able to edit the "CFLAGS" environment variable and add it in there, or some similar environment variable. Or edit the Makefile by hand :) -r From ali.shaheen at popcatcher.com Thu Jul 26 16:22:22 2012 From: ali.shaheen at popcatcher.com (Ali Shaheen) Date: Thu, 26 Jul 2012 16:22:22 +0200 Subject: [FFmpeg-user] AAC decoding on Android In-Reply-To: References: Message-ID: Hi, I tried with latest 0.11.1 ..it was giving error with avcodec_init() .. i think now it has been removed in 0.11.1. After commenting that, now i am getting SIGSEGV fault when av_find_stream_info(formatctx) tries to fill my formatctx with the info from custom stream ( AVIOContext) . I think i should move back to 0.8.11 again on which it was working :) Thanks On 20 July 2012 17:46, Carl Eugen Hoyos wrote: > Ali Shaheen popcatcher.com> writes: > > > I am using 0.8.11 and i have build for armv6. > > This is old, please test current git head. > > > I was wondering if there is some optimization flag > > or something.. > > > which can enhance performance by multithreading. > > There is no multithreading for audio decoding > (and I would be surprised if a device that is too slow > to decode AAC provides multiple cores). > > > in build script i have used these flags. > > OPTIMIZE_CFLAGS="-marm -march=$CPU" > > --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 > > -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums > > -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " > > Do you know that any of these flags have a positive effect > on performance? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nicolas.george at normalesup.org Thu Jul 26 17:24:31 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 26 Jul 2012 17:24:31 +0200 Subject: [FFmpeg-user] ffmpeg background In-Reply-To: References: <50068AC0.6060603@gmail.com> Message-ID: <20120726152431.GA6988@phare.normalesup.org> Le nonidi 9 thermidor, an CCXX, Roger Pack a ?crit?: > the "nohup" command It is the traditional command, but nohup is a stupid hack that does not even work. The correct way to detach a process from its controlling tty is setsid. But it will not address ffmpeg reading from its standard input; for that, either redirecting from /dev/null or using the new -nostdin option will do the trick. I tell you that purely for your information; as for "focus television", I already told them exactly the same thing about a week ago and they did not heed it. > or the "screen" command are what I typically use. Of course, screen will work perfectly and give additional features, but it is much more expensive. It all depends on the context. 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 Thu Jul 26 18:05:33 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 10:05:33 -0600 Subject: [FFmpeg-user] ffmpeg as repeater In-Reply-To: <500DDC8E.90204@gmail.com> References: <500DDC8E.90204@gmail.com> Message-ID: > I want to know if we can use ffmpeg as a repeater application. > RIght now it downloads the stream even if no one is using the stream > Can we make it dynamic so that it downloads only when some one watches the > stream? What do you mean by repeater? How are you serving the stream? http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide may be useful to you... From rogerdpack2 at gmail.com Thu Jul 26 18:07:29 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 10:07:29 -0600 Subject: [FFmpeg-user] Can login In-Reply-To: <500950F3.2070500@gmail.com> References: <500950F3.2070500@gmail.com> Message-ID: > I am using wowza > ffmpeg -re -i priest.mp4 -c:v libx264 -b:v 512k -s 640x360 -c:a copy > -loglevel verbose -f flv > "rtmp://localhost/tv/livestream?username=myusername&password=mypassword" > But when i connect i am getting error. > I used FLME to connect using user name and password and it is logging in > Am i using the right format for username and password? Maybe use wireshark to see if it is sending on your username/password as expected? From rogerdpack2 at gmail.com Thu Jul 26 20:44:19 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 12:44:19 -0600 Subject: [FFmpeg-user] play m3 u In-Reply-To: <50097494.6010001@gmail.com> References: <50097494.6010001@gmail.com> Message-ID: > ffmpeg -i > "http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:" a.mpg > In windows i am getting ... > http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:: Operation > not > permitted > > Any idea what is wrong Full uncut command line and console output please? From rogerdpack2 at gmail.com Thu Jul 26 20:45:04 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 12:45:04 -0600 Subject: [FFmpeg-user] About timestamp In-Reply-To: <8DBA9B31-2707-4326-82F5-9C730323933C@gmail.com> References: <8DBA9B31-2707-4326-82F5-9C730323933C@gmail.com> Message-ID: > So, who is responsible for pts/dts? The muxer I presume. > Are they writen into video files? Yes. > Will different codecs give us the same pts/dts? Not sure. I think it's a muxer thing...so they shouldn't. From focustelev at gmail.com Fri Jul 27 00:30:57 2012 From: focustelev at gmail.com (focus television) Date: Thu, 26 Jul 2012 23:30:57 +0100 Subject: [FFmpeg-user] ffmpeg as repeater In-Reply-To: References: <500DDC8E.90204@gmail.com> Message-ID: <5011C521.1060501@gmail.com> On 26-Jul-12 5:05 PM, Roger Pack wrote: >> I want to know if we can use ffmpeg as a repeater application. >> RIght now it downloads the stream even if no one is using the stream >> Can we make it dynamic so that it downloads only when some one watches the >> stream? > What do you mean by repeater? How are you serving the stream? > http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide > may be useful to you... I was using relaying one rtmp stream and encoding and supplying to another url But the problem was even when no one was watching it it was still pulling stream from the server. I am using wowza for distrubution. Wowza doesnt stream or use data when no one is using but ffmpeg works always. I want ffmpeg to work when there is some request and stop if there is no one watching. If we can i can use ffmpeg for distribution instead of wowza but i am not sure if i can use it as a server. Joe From focustelev at gmail.com Fri Jul 27 00:32:27 2012 From: focustelev at gmail.com (focus television) Date: Thu, 26 Jul 2012 23:32:27 +0100 Subject: [FFmpeg-user] play m3 u In-Reply-To: References: <50097494.6010001@gmail.com> Message-ID: <5011C57B.8000207@gmail.com> On 26-Jul-12 7:44 PM, Roger Pack wrote: >> ffmpeg -i >> "http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:" a.mpg >> In windows i am getting ... >> http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:: Operation >> not >> permitted >> >> Any idea what is wrong Hi Roger, C:\Users\admin\Downloads\ffmpeg-20120708-git-299387e-win64-static\bin>ffmpeg -i "http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0" -loglevel deb ug -acodec copy -vcodec copy test.mpg ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 8 2012 15:48:29 with gcc 4.7.1 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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.102 / 54. 15.102 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 1.100 / 3. 1.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [AVIOContext @ 0000000001e3fbe0] Statistics: 118 bytes read, 0 seeks http://dm800se/web/stream.m3u?ref=1:0:1:C530:965:2:11A0000:0:0:0: Operation not permitted This is the things i get on screen .. Do i need to add anything more.. The output is mpeg2. Joe From stefasab at gmail.com Fri Jul 27 00:34:14 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 27 Jul 2012 00:34:14 +0200 Subject: [FFmpeg-user] [ANNOUNCE] SOCIS 2012 - Request for students In-Reply-To: <20120718233943.GB3387@arborea> References: <20120718233943.GB3387@arborea> Message-ID: <20120726223414.GE19421@arborea> On date Thursday 2012-07-19 01:39:43 +0200, Stefano Sabatini encoded: > We're glad to announce that FFmpeg application to SOCIS (Summer > Of Code In Space) has been accepted and we've been allocated a slot > for a student: > http://sophia.estec.esa.int/socis2012/ > > The selected student will be sponsored to work on one of the tasks > listed on this page: > http://wiki.multimedia.cx/index.php?title=FFmpeg_Summer_Of_Code_In_Space_2012 > > but the student is allowed to propose a different task in case he/she > has a different proposal (but we can't guarantee the task > qualification only in case we'll be able to couple him/her with a > mentor). > > Students' application timeline is on Friday July 27: > http://sophia.estec.esa.int/socis2012/?q=timeline > > If you are a student and you want to partecipate to the program, > you're invited to check more information from the SOCIS web site, in > particular to read the pages: > - http://sophia.estec.esa.int/socis2012/?q=faq > - http://sophia.estec.esa.int/socis2012/?q=tos > - http://sophia.estec.esa.int/socis2012/?q=student_agreement > > and get in touch as soon as possible with the FFmpeg administrators > (Stefano Sabatini and Michael Niedermayer) and/or with one of the > mentors. REMINDER Students application deadline is approaching tomorrow (11 AM UTC), please apply if you are interested. Students proposals will be evaluated based on the qualification task performance and resume in the next few days. Evaluation deadline will happen on July 31, on the next Tuesday, so please propose your qualification task as soon as possible. Thanks and good luck to all candidate contributors! From focustelev at gmail.com Fri Jul 27 00:36:32 2012 From: focustelev at gmail.com (focus television) Date: Thu, 26 Jul 2012 23:36:32 +0100 Subject: [FFmpeg-user] ffmpeg background In-Reply-To: <20120726152431.GA6988@phare.normalesup.org> References: <50068AC0.6060603@gmail.com> <20120726152431.GA6988@phare.normalesup.org> Message-ID: <5011C670.8030109@gmail.com> On 26-Jul-12 4:24 PM, Nicolas George wrote: > Le nonidi 9 thermidor, an CCXX, Roger Pack a ?crit : >> the "nohup" command > It is the traditional command, but nohup is a stupid hack that does not even > work. The correct way to detach a process from its controlling tty is > setsid. > > But it will not address ffmpeg reading from its standard input; for that, > either redirecting from /dev/null or using the new -nostdin option will do > the trick. > > I tell you that purely for your information; as for "focus television", I > already told them exactly the same thing about a week ago and they did not > heed it. > >> or the "screen" command are what I typically use. > Of course, screen will work perfectly and give additional features, but it > is much more expensive. It all depends on the context. Hi Nick, you were right and i was able to use setsid but the only problem was if due to some reason if the source stream is down , the process was closed There were i think no retries and if it is there i dont know to configure. So the process was closed once the source stopped for some time. From highgod0401 at gmail.com Fri Jul 27 02:41:49 2012 From: highgod0401 at gmail.com (Wei Gao) Date: Fri, 27 Jul 2012 08:41:49 +0800 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. In-Reply-To: References: Message-ID: Hi Roger, Thanks.I have fix the problem and run my Opencl kernel. I want to ask a question again.I read the ffmpeg code but I didn't find any CUDA foot print to optimize ffmpeg.Why don't you use CUDA to optimize? Thanks Best regards 2012/7/26 Roger Pack > > I want to add opencl to ffmpeg, but I don't know how to modify the make > file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. > > You may be able to edit the "CFLAGS" environment variable and add it > in there, or some similar environment variable. Or edit the Makefile > by hand :) > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Jul 27 07:43:22 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 26 Jul 2012 23:43:22 -0600 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> Message-ID: > I've tried this: > "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" > > but the resulting file still had the "wrong" fps (2997/100). Full uncut output please? From rogerdpack2 at gmail.com Fri Jul 27 08:13:43 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 27 Jul 2012 00:13:43 -0600 Subject: [FFmpeg-user] Regarding dts In-Reply-To: References: Message-ID: > I would like know on how to get destination time stamp(dts) from > encoded video frame. It will be appreciated if you help. ffprobe -show_packets might fit the bill... From james.darnley at gmail.com Fri Jul 27 09:34:49 2012 From: james.darnley at gmail.com (James Darnley) Date: Fri, 27 Jul 2012 09:34:49 +0200 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. In-Reply-To: References: Message-ID: <50124499.2010002@gmail.com> On 2012-07-27 02:41, Wei Gao wrote: > Hi Roger, > > Thanks.I have fix the problem and run my Opencl kernel. > > I want to ask a question again.I read the ffmpeg code but I didn't find > any CUDA foot print to optimize ffmpeg.Why don't you use CUDA to optimize? That is because nobody has written any yet. If the same reasoning from x264 also applies to FFmpeg, that is because: 1 - It is not very useful. You can't just magically speed up the code you run on a CPU by running it on a GPU. Code designed specifically for the GPU may not be any faster or produce any better quality. 2 - The complexity of writing it makes people run off into the night screaming. Only a team of mighty warriors has managed to produce some code to offload x264's lookahead to the GPU. It has been (at least) 8 months and it is still a work in progress. From krueger at lesspain.de Fri Jul 27 13:55:09 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 27 Jul 2012 13:55:09 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> Message-ID: On Thu, Jul 26, 2012 at 12:59 PM, Peter B. wrote: > I just ran into a really weird issue with "born digital" video material: > > I've tried to transcode a FFv1/PCM lossless file (720x576 @29.970fps) to a > DVD conform MPEG, but mencoder threw the following error message: > > "MPEG1/2 does not support 2997/100 fps" > > If I tell mencoder to use "-ofps 30000/1001" everything works fine. > > > Now, my question is: > Can I use ffmpeg to "clean" my original file to have the fps stored > "correctly"? > > I've tried this: > "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" > > but the resulting file still had the "wrong" fps (2997/100). > > > Thank you very much in advance, > Pb > If you wouldn't just remux but reencode (which you don't want, I know) you could use the setpts filter to do the job but AKAIK filters do not work for remuxing by design and I do not know of a similar mechanism for remuxing (something like a packet filter). The current docs could also be interpreted in such a way that the "-r" option _before_ the input should do the job but it doesn't. >From docs: "As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps." but a quick glimpse at the code doesn't look as if it is used in the remuxing case. In fact, I have a simple example with a mov file I generated with 2997/100 for which it does not work even if I recode the video stream, which is kind of strange. I had once hacked a command line option that manipulated the video package timestamps by a factor before handing them over to the decoder (I think) and that did work for that use case. however, I doubt that was a clean solution and would be accepted as a patch. The clean solution should probably be to make the "-r" option before the input work as documented for the remuxing case. However, I don't know if there are any hidden traps in that for certain formats (e.g. problems due to inconsistencies between timestamps in the bitstream and the container). Maybe someone could comment, if that should be postet as a bug report. Then I will do that. From shlomi at shalem.co Fri Jul 27 15:14:41 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 16:14:41 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. Message-ID: Hello everybody, Recently, I've been trying to use FFmpeg for an application which requires a VERY accurate manipulation when it comes to the time parameter (milliseconds resolution). Unfortunately, I was surprised to find out that FFmpeg's manipulation functionalities return some inaccurate results. Here is the output of '*ffmpeg*': *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* * built on Jul 25 2012 19:55:05 with gcc 4.2.1 (Apple Inc. build 5664)* * configuration: --enable-gpl --enable-shared --enable-pthreads --enable-libx264 --enable-libmp3lame* * 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* Now, let's assume I want to rip the audio track of 'foo.mov'. Here is the relevant output of '*ffmpeg -i foo.mov*': *Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.mov':* * Metadata:* * major_brand : qt * * minor_version : 0* * compatible_brands: qt * * creation_time : 2012-07-24 23:16:08* * Duration: 00:00:40.38, start: 0.000000, bitrate: 805 kb/s* * Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x360, 733 kb/s, 24.46 fps, 29.97 tbr, 600 tbn, 1200 tbc* * Metadata:* * rotate : 90* * creation_time : 2012-07-24 23:16:08* * handler_name : Core Media Data Handler* * Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 63 kb/s* * Metadata:* * creation_time : 2012-07-24 23:16:08* * handler_name : Core Media Data Handler* * * As you probably noticed, the video file duration is 00:00:40.38. Using the following command, I ripped it's audio track: '*ffmpeg -i foo.mov foo.wav*' Output: *Output #0, wav, to 'foo.wav':* * Metadata:* * major_brand : qt * * minor_version : 0* * compatible_brands: qt * * creation_time : 2012-07-24 23:16:08* * encoder : Lavf54.6.100* * Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* * Metadata:* * creation_time : 2012-07-24 23:16:08* * handler_name : Core Media Data Handler* *Stream mapping:* * Stream #0:1 -> #0:0 (aac -> pcm_s16le)* *Press [q] to stop, [?] for help* *size= 3482kB time=00:00:40.42 bitrate= 705.6kbits/s * *video:0kB audio:3482kB global headers:0kB muxing overhead 0.001290%* * * As you can see, the output file is longer than the file in the input. Another example is audio (and video) file trimming: Let's assume I would like to use ffmpeg for audio file trimming. I used the next command: '*ffmpeg -t 00:00:10.000 -i foo.wav trimmed_foo.wav -ss 00:00:25.000*' Output: *[wav @ 0x10180e800] max_analyze_duration 5000000 reached at 5015510* *Guessed Channel Layout for Input Stream #0.0 : mono* *Input #0, wav, from 'foo.wav':* * Duration: 00:00:40.42, bitrate: 705 kb/s* * Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* *Output #0, wav, to 'trimmed_foo.wav':* * Metadata:* * encoder : Lavf54.6.100* * Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* *Stream mapping:* * Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)* *Press [q] to stop, [?] for help* *size= 864kB time=00:00:10.03 bitrate= 705.6kbits/s * *video:0kB audio:864kB global headers:0kB muxing overhead 0.005199%* * * Again, the output file is 30 milliseconds longer than I expected. I tried, for a long time, to research the issue without any success. I you guys have any idea about how to solve this problem, I will appreciate a lot! Thanks, Shlomi. From cehoyos at ag.or.at Fri Jul 27 15:46:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Jul 2012 13:46:30 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg accuracy issues. References: Message-ID: Shlomi Shalem shalem.co> writes: > *[wav @ 0x10180e800] max_analyze_duration 5000000 reached at 5015510* This is the relevant line answering your question regarding wav. There is an option -analyzeduration Regarding mov, I am not completely sure, I suspect the input duration is stored in the file. If this does not answer your question, please post complete, uncut console output (not just a part of it). Carl Eugen From nicolas.george at normalesup.org Fri Jul 27 15:50:02 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 27 Jul 2012 15:50:02 +0200 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: <20120727134959.GA30121@phare.normalesup.org> Le decadi 10 thermidor, an CCXX, Shlomi Shalem a ?crit?: > Recently, I've been trying to use FFmpeg for an application which requires > a VERY accurate manipulation when it comes to the time parameter > (milliseconds resolution). Unfortunately, I was surprised to find out that > FFmpeg's manipulation functionalities return some inaccurate results. > > Here is the output of '*ffmpeg*': > > *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* You should try with git head, I believe some of the issues you are reporting have been addressed, some other issues are being discussed. Regards, -- Nicolas George From cehoyos at ag.or.at Fri Jul 27 16:00:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Jul 2012 14:00:25 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?How_can_I_remux_a_video_from_2997/100_to_?= =?utf-8?q?30000/1001=09fps=3F?= References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> Message-ID: Peter B. das-werkstatt.com> writes: > I've tried to transcode a FFv1/PCM lossless file (720x576 @29.970fps) > to a DVD conform MPEG, but mencoder threw the following error message: > "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" Why don't you convert to a DVD-conforming MPEG with FFmpeg if you need it ' and leave the file untouched if you want an avi? Or do I misunderstand? Carl Eugen From shlomi at shalem.co Fri Jul 27 16:27:18 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 17:27:18 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: Thanks for your answer, Carl! I have been reading a little bit about the 'analyzedurayion' flag. I tried to use it as follows: '*ffmpeg -t 00:00:10.000 -analyzeduration 0 -i foo.wav trimmed_foo.wav -ss 00:00:25.000*'. The full console output is: * foo.wav trimmed_foo.wav -ss 00:00:25.000* *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* * built on Jul 25 2012 19:55:05 with gcc 4.2.1 (Apple Inc. build 5664)* * configuration: --enable-gpl --enable-shared --enable-pthreads --enable-libx264 --enable-libmp3lame* * 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* *[wav @ 0x10180e800] max_analyze_duration 0 reached at 0* *Guessed Channel Layout for Input Stream #0.0 : mono* *Input #0, wav, from 'foo.wav':* * Duration: 00:00:40.42, bitrate: 705 kb/s* * Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* *Output #0, wav, to 'trimmed_foo.wav':* * Metadata:* * encoder : Lavf54.6.100* * Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* *Stream mapping:* * Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)* *Press [q] to stop, [?] for help* *size= 864kB time=00:00:10.03 bitrate= 705.6kbits/s * *video:0kB audio:864kB global headers:0kB muxing overhead 0.005199%* As you can see, it didn't solve the problem. Am I misusing it? Any other idea? Thanks a lot for your help! On Fri, Jul 27, 2012 at 4:46 PM, Carl Eugen Hoyos wrote: > Shlomi Shalem shalem.co> writes: > > > *[wav @ 0x10180e800] max_analyze_duration 5000000 reached at 5015510* > > This is the relevant line answering your question regarding wav. > There is an option -analyzeduration > > Regarding mov, I am not completely sure, I suspect the input > duration is stored in the file. > > If this does not answer your question, please post complete, uncut > console output (not just a part of it). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From shlomi at shalem.co Fri Jul 27 16:28:55 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 17:28:55 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: <20120727134959.GA30121@phare.normalesup.org> References: <20120727134959.GA30121@phare.normalesup.org> Message-ID: Thanks for your answer, Nicolas! Currently, I prefer trying to solve this problem with the stable version of FFmpeg. Thank again, Shlomi. On Fri, Jul 27, 2012 at 4:50 PM, Nicolas George < nicolas.george at normalesup.org> wrote: > Le decadi 10 thermidor, an CCXX, Shlomi Shalem a ?crit : > > Recently, I've been trying to use FFmpeg for an application which > requires > > a VERY accurate manipulation when it comes to the time parameter > > (milliseconds resolution). Unfortunately, I was surprised to find out > that > > FFmpeg's manipulation functionalities return some inaccurate results. > > > > Here is the output of '*ffmpeg*': > > > > *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* > > You should try with git head, I believe some of the issues you are > reporting > have been addressed, some other issues are being discussed. > > Regards, > > -- > Nicolas George > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mbradshaw at sorensonmedia.com Fri Jul 27 16:46:34 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 27 Jul 2012 08:46:34 -0600 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: Please don't top post (if you need to you can google it). On Fri, Jul 27, 2012 at 8:27 AM, Shlomi Shalem wrote: > [...] > > As you can see, it didn't solve the problem. Am I misusing it? Any other > idea? Yeah, you're misusing it. Some files don't have the duration or other info stored in some header that FFmpeg can just parse. Some files, these things have to be guessed, and the only way to do that is to just read part of the file in. The more you read, the better your guess will be (if you read the whole file, you should have very accurate results). analyzeduration sets the amount that FFmpeg should read from the file in order to make the guesses it needs. Setting it to zero is like saying don't read it and just guess outright (iiuc). Setting it to a higher number allows FFmpeg to read more of the file. The default value is 5000000 (5MB). --Michael From mbradshaw at sorensonmedia.com Fri Jul 27 16:49:34 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Fri, 27 Jul 2012 08:49:34 -0600 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: <20120727134959.GA30121@phare.normalesup.org> Message-ID: On Fri, Jul 27, 2012 at 8:28 AM, Shlomi Shalem wrote: > Thanks for your answer, Nicolas! > > Currently, I prefer trying to solve this problem with the stable version of > FFmpeg. > I think one of the reasons Nicolas was suggesting this is 1) git head is stable, and 2) it's possible people have already fixed these issues, but we need you to test with your files to see if anything is fixed or still broken for you. If it's already fixed, and you don't test with current git head to see and tell us it's fixed, some developer might hunt down a ghost bug that doesn't exist anymore. --Michael From shlomi at shalem.co Fri Jul 27 16:51:19 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 17:51:19 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: <20120727134959.GA30121@phare.normalesup.org> Message-ID: OK, I will try it. Thanks! On Fri, Jul 27, 2012 at 5:49 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > On Fri, Jul 27, 2012 at 8:28 AM, Shlomi Shalem wrote: > > > Thanks for your answer, Nicolas! > > > > Currently, I prefer trying to solve this problem with the stable version > of > > FFmpeg. > > > > I think one of the reasons Nicolas was suggesting this is 1) git head is > stable, and 2) it's possible people have already fixed these issues, but we > need you to test with your files to see if anything is fixed or still > broken for you. If it's already fixed, and you don't test with current git > head to see and tell us it's fixed, some developer might hunt down a ghost > bug that doesn't exist anymore. > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From shlomi at shalem.co Fri Jul 27 16:54:08 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 17:54:08 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: I tried that as well: '*ffmpeg -t 00:00:10.000 -analyzeduration 500000000 -i foo.wav trimmed_foo.wav -ss 00:00:25.000'* * * Full console output: *ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers* * built on Jul 25 2012 19:55:05 with gcc 4.2.1 (Apple Inc. build 5664)* * configuration: --enable-gpl --enable-shared --enable-pthreads --enable-libx264 --enable-libmp3lame* * 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.0 : mono* *Input #0, wav, from 'foo.wav':* * Duration: 00:00:40.42, bitrate: 705 kb/s* * Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* *File 'trimmed_foo.wav' already exists. Overwrite ? [y/N] y* *Output #0, wav, to 'trimmed_foo.wav':* * Metadata:* * encoder : Lavf54.6.100* * Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s* *Stream mapping:* * Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)* *Press [q] to stop, [?] for help* *size= 864kB time=00:00:10.03 bitrate= 705.6kbits/s * *video:0kB audio:864kB global headers:0kB muxing overhead 0.005199%* * * Still didn't solve the problem. The output file is too long (even when I'm checking it with another applications). On Fri, Jul 27, 2012 at 5:46 PM, Michael Bradshaw < mbradshaw at sorensonmedia.com> wrote: > Please don't top post (if you need to you can google it). > > On Fri, Jul 27, 2012 at 8:27 AM, Shlomi Shalem wrote: > > > [...] > > > > As you can see, it didn't solve the problem. Am I misusing it? Any other > > idea? > > > Yeah, you're misusing it. Some files don't have the duration or other info > stored in some header that FFmpeg can just parse. Some files, these things > have to be guessed, and the only way to do that is to just read part of the > file in. The more you read, the better your guess will be (if you read the > whole file, you should have very accurate results). analyzeduration sets > the amount that FFmpeg should read from the file in order to make the > guesses it needs. Setting it to zero is like saying don't read it and just > guess outright (iiuc). Setting it to a higher number allows FFmpeg to read > more of the file. The default value is 5000000 (5MB). > > --Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Jul 27 17:45:11 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 27 Jul 2012 09:45:11 -0600 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: > *size= 864kB time=00:00:10.03 bitrate= 705.6kbits/s * > *video:0kB audio:864kB global headers:0kB muxing overhead 0.005199%* > * > * > Still didn't solve the problem. The output file is too long (even when I'm > checking it with another applications). If you use ffprobe -show_packets what is the difference in pts_time between your first and last audio packets? (and video?) From rogerdpack2 at gmail.com Fri Jul 27 17:59:38 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 27 Jul 2012 09:59:38 -0600 Subject: [FFmpeg-user] Using ffmpeg with flash encoder In-Reply-To: <500BD407.4050209@gmail.com> References: <500BD407.4050209@gmail.com> Message-ID: > I want to control the stream connection from the server But currently the > setup is such that the client uses > FME and connects from his side . But if i restart server , i have to ask him > to connect it again which is difficult everytime. > So instead of he connecting to our server , can we use ffmpeg or someother > means to connect to his machine and access FMLE? So your client is using ffmpeg, and ffmpeg "doesn't stop" when the server goes down? From shlomi at shalem.co Fri Jul 27 18:03:51 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 19:03:51 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: Hello Roger, This is the first packet of the video file ('foo.mov'): *[PACKET]* *codec_type=audio* *stream_index=1* *pts=0* *pts_time=0.000000* *dts=0* *dts_time=0.000000* *duration=1024* *duration_time=0.023220* *size=4* *pos=36* *flags=K* *[/PACKET]* * * And the last packet: *[PACKET]* *codec_type=video* *stream_index=0* *pts=24208* *pts_time=40.346667* *dts=24208* *dts_time=40.346667* *duration=25* *duration_time=0.041667* *size=3096* *pos=4041485* *flags=_* *[/PACKET]* This is the first packet of the audio file ('foo.wav'): *[PACKET]* *codec_type=audio* *stream_index=0* *pts=0* *pts_time=0.000000* *dts=0* *dts_time=0.000000* *duration=2048* *duration_time=0.046440* *size=4096* *pos=46* *flags=K* *[/PACKET]* And the last packet: *[PACKET]* *codec_type=audio* *stream_index=0* *pts=1781760* *pts_time=40.402721* *dts=1781760* *dts_time=40.402721* *duration=1024* *duration_time=0.023220* *size=2048* *pos=3563566* *flags=K* *[/PACKET]* On Fri, Jul 27, 2012 at 6:45 PM, Roger Pack wrote: > > *size= 864kB time=00:00:10.03 bitrate= 705.6kbits/s * > > *video:0kB audio:864kB global headers:0kB muxing overhead 0.005199%* > > * > > * > > Still didn't solve the problem. The output file is too long (even when > I'm > > checking it with another applications). > > If you use ffprobe -show_packets what is the difference in pts_time > between your first and last audio packets? (and video?) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Jul 27 20:02:31 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 27 Jul 2012 12:02:31 -0600 Subject: [FFmpeg-user] request for review: feature request of "disallow unallowed bitrates" Message-ID: Hello all. It's come to my attention that ffmpeg accepts parameters like this: $ ffmpeg -i in.mp3 -b:a 40000k out.mp3 (it ends up writing it as a 320 Kb/s audio bitrate--not the specified "impossible" number). Similarly. $ ffmpeg -i in.mp3 -b:a 310k out.mp3 seemingly "magically" produces a file with 320 Kb/s bitrate--not 310) So I was thinking of filing a trac with a request to at least "warn" when it ends up picking some bitrate other than that specified. Any feedback before I do so? Thanks. -r From cehoyos at ag.or.at Fri Jul 27 20:10:16 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Jul 2012 18:10:16 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?request_for_review=3A_feature_request_of_?= =?utf-8?q?=22disallow=09unallowed_bitrates=22?= References: Message-ID: Roger Pack gmail.com> writes: > $ ffmpeg -i in.mp3 -b:a 40000k out.mp3 > > (it ends up writing it as a 320 Kb/s audio bitrate--not the specified > "impossible" number). > > Similarly. > $ ffmpeg -i in.mp3 -b:a 310k out.mp3 > > seemingly "magically" produces a file with 320 Kb/s bitrate--not 310) > > So I was thinking of filing a trac with a request to at least "warn" > when it ends up picking some bitrate other than that specified. > Any feedback before I do so? How should FFmpeg know that (the installed version of) lame will not encode the requested bit-rate? Carl Eugen From cehoyos at ag.or.at Fri Jul 27 20:11:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Jul 2012 18:11:30 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg accuracy issues. References: Message-ID: Shlomi Shalem shalem.co> writes: > '*ffmpeg -t 00:00:10.000 -analyzeduration 500000000 -i foo.wav > trimmed_foo.wav -ss 00:00:25.000'* > Still didn't solve the problem. The output file is too long > (even when I'm checking it with another applications). How is this related to the problem you originally reported? Carl Eugen From rogerdpack2 at gmail.com Fri Jul 27 20:15:53 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 27 Jul 2012 12:15:53 -0600 Subject: [FFmpeg-user] request for review: feature request of "disallow unallowed bitrates" In-Reply-To: References: Message-ID: >> So I was thinking of filing a trac with a request to at least "warn" >> when it ends up picking some bitrate other than that specified. >> Any feedback before I do so? > > How should FFmpeg know that (the installed version of) lame > will not encode the requested bit-rate? Knowing nothing of liblame... libmp3lame $ ack 320 libmp3lame/util.c 301:FindNearestBitrate(int bRate, /* legal rates from 8 to 320 */ 347: { 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 }; 356: /* We assume specified bitrate will be 320kbps */ Possibly? (I presume libmp3lame automatically uses the nearest bitrate?) -r From shlomi at shalem.co Fri Jul 27 20:34:04 2012 From: shlomi at shalem.co (Shlomi Shalem) Date: Fri, 27 Jul 2012 21:34:04 +0300 Subject: [FFmpeg-user] FFmpeg accuracy issues. In-Reply-To: References: Message-ID: <7EACF548-5900-4386-BB27-52D6A81C725B@shalem.co> The file suppose to be 10 seconds long, and it is 30 milliseconds longer. On 27 ???? 2012, at 21:11, Carl Eugen Hoyos wrote: > Shlomi Shalem shalem.co> writes: > >> '*ffmpeg -t 00:00:10.000 -analyzeduration 500000000 -i foo.wav >> trimmed_foo.wav -ss 00:00:25.000'* > >> Still didn't solve the problem. The output file is too long >> (even when I'm checking it with another applications). > > How is this related to the problem you originally reported? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From batguano999 at hotmail.com Fri Jul 27 21:04:52 2012 From: batguano999 at hotmail.com (bat guano) Date: Fri, 27 Jul 2012 19:04:52 +0000 Subject: [FFmpeg-user] request for review: feature request of "disallow unallowed bitrates" In-Reply-To: References: Message-ID: > > So I was thinking of filing a trac with a request to at least "warn" > when it ends up picking some bitrate other than that specified. > Any feedback before I do so? Hi This happens already (in some cases). Example (Using FFmpeg version git-2012-07-26-d5d5e3d):- ffmpeg -i foo.wav -c:a libvo_amrwbenc -b:a 48k -ar 16k -ac 1 output.amr ... bitrate not supported: use one of 6.60k, 8.85k, 12.65k, 14.25k, 15.85k, 18.25k, 19.85k, 23.05k, 23.85k, using 23.85k From jcbfonseca at gmail.com Fri Jul 27 21:16:45 2012 From: jcbfonseca at gmail.com (Jorge Fonseca) Date: Fri, 27 Jul 2012 16:16:45 -0300 Subject: [FFmpeg-user] FFmpeg in Android Platform - Too slow... Message-ID: Hi All, I need to create a video from a set of images in Android Platform. The simple way is ro execute a command like this: - ffmpeg -i INPUT_%d.png OUTPUT.mpg For 450 frames/images (*1280x720*), the duration time is around *60s* - its very slow....... I tried many image and FFmpeg options/formats/codecs but the durations are similar... If i reduce frame size to 640x480 the duration reaches around 50s. ----------------------- Please, let me know if someone knows how to simply this command execution and improving ffmpeg performance... ----------------------- Note. I executed *ffmpeg *throw *command line* and *Android NDK layer*. ----------------------- Regards, Jorge. From rogerdpack2 at gmail.com Fri Jul 27 21:30:38 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 27 Jul 2012 13:30:38 -0600 Subject: [FFmpeg-user] request for review: feature request of "disallow unallowed bitrates" In-Reply-To: References: Message-ID: > ffmpeg -i foo.wav -c:a libvo_amrwbenc -b:a 48k -ar 16k -ac 1 output.amr > ... > bitrate not supported: use one of 6.60k, 8.85k, 12.65k, 14.25k, 15.85k, 18.25k, 19.85k, 23.05k, 23.85k, using 23.85k So it actually fails in this case? (if so then maybe libmp3lame should as well? I'd be down with that...) From cehoyos at ag.or.at Fri Jul 27 23:19:07 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Jul 2012 21:19:07 +0000 (UTC) Subject: [FFmpeg-user] Logos and Text Shrunk/Scaled - Any ideas? References: <5007586A.1060703@icalc.com> Message-ID: Rob Desilets icalc.com> writes: > I sent out an email yesterday about my logos/text shrunk since a recent > upgrade. I was wondering if anyone had any ideas or maybe a person/group > I could try to contact? Please point us to the message you sent. Carl Eugen From michaelni at gmx.at Sat Jul 28 02:49:31 2012 From: michaelni at gmx.at (Michael Niedermayer) Date: Sat, 28 Jul 2012 02:49:31 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> Message-ID: <20120728004930.GF23570@kiste2> On Thu, Jul 26, 2012 at 12:59:59PM +0200, Peter B. wrote: > I just ran into a really weird issue with "born digital" video material: > > I've tried to transcode a FFv1/PCM lossless file (720x576 > @29.970fps) to a DVD conform MPEG, but mencoder threw the following > error message: > > "MPEG1/2 does not support 2997/100 fps" > > If I tell mencoder to use "-ofps 30000/1001" everything works fine. > > > Now, my question is: > Can I use ffmpeg to "clean" my original file to have the fps stored > "correctly"? > > I've tried this: > "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" > > but the resulting file still had the "wrong" fps (2997/100). i cant reproduce this here: Stream #0:0, 1, 100/2997: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 720x576, 100/2997, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc changes to: Stream #0:0, 1, 1001/30000: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 720x576, 1001/30000, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew ..." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From matt.bione at gmail.com Sat Jul 28 07:11:24 2012 From: matt.bione at gmail.com (Matt Bione) Date: Fri, 27 Jul 2012 22:11:24 -0700 Subject: [FFmpeg-user] custom video enhancements using ffmpeg Message-ID: Hi, I am looking to do the following : Add some custom enhancement (using my own code using opencv or something similar) to a video. I am looking at ffmpeg to produce raw frames which I can tweak and then give back to the ffmpeg to transcode it back. Is there a way to do this using the ffmpeg command line tools - maybe using pipes or creating streams ? I can think of a really inefficient way to do this - dump every frame to the disk using ffmpeg (e.g. , ffmpeg -i video.mpg image%d.jpg); read those files and apply my modifications to those images and finally call ffmpeg to produce a video using those frames(e.g. ffmpeg -f image2 -i image%d.jpg video.mpg ). But hopefully there is a better way that someone can point me to ? Regards Matt From marcus at noveis.net Sat Jul 28 08:06:53 2012 From: marcus at noveis.net (Marcus) Date: Fri, 27 Jul 2012 23:06:53 -0700 Subject: [FFmpeg-user] Remuxing from MKV to MP4 Unsmooth Video Message-ID: Hello all, I'm trying to remux some videos from MKV or M2TS to MP4. For the most part the MP4s play better than the MKV/M2TS (faster skipping etc). However some of videos stutter or aren't smooth - yet they are fine in the original MKV or M2TS container. Here is a command line I am using for all the videos I'm remuxing: ffmpeg -analyzeduration 25000000 -i "file.mkv" -vcodec copy -acodec copy "file.mp4" Here is the ffmpeg output/log: https://raw.github.com/gist/3191367/e767d97bde4a2afcad8071e1cf0487b78fd2d120/ffmpeg%20log. But here is something interesting that popups (a lot) in the log: DTS 83, next:126000 st:0 invalid dropping PTS 83, next:126000 invalid dropping st:0 Below are some out puts from MediaInfo that show the usual differences between ones that remux and play smoothly and those that don't. Maybe someone will be able to tell me how to fix my issues based of it. Here is the MediaInfo of one the videos that does not play back smoothly in MP4: General ID : 1 (0x1) Format : BDAV Format/Info : Blu-ray Video File size : 596 MiB Duration : 21mn 9s Overall bit rate mode : Variable Overall bit rate : 3 937 Kbps Maximum Overall bit rate : 35.5 Mbps Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : AVC Format/Info : Advanced Video Codec Format profile : High at L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 5 frames Codec ID : 27 Duration : 21mn 9s Bit rate mode : Variable Bit rate : 3 305 Kbps Maximum bit rate : 40.0 Mbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Stream size : 513 MiB (86%) Writing library : x264 core 102 r1666 d058f37 Encoding settings : cabac=1 / ref=5 / deblock=1:-1:-1 / 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=0 / chroma_qp_offset=-2 / threads=16 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=3305 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.1 Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Mode extension : CM (complete main) Format settings, Endianness : Big Codec ID : 129 Duration : 21mn 9s Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 16 bits Compression mode : Lossy Stream size : 58.1 MiB (10%) And here is that of one that plays smoothly. General ID : 1 (0x1) Format : BDAV Format/Info : Blu-ray Video File size : 703 MiB Duration : 21mn 28s Overall bit rate mode : Variable Overall bit rate : 4 574 Kbps Maximum Overall bit rate : 35.5 Mbps Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : AVC Format/Info : Advanced Video Codec Format profile : High at L3.1 Format settings, CABAC : No Format settings, ReFrames : 2 frames Codec ID : 27 Duration : 21mn 28s Bit rate mode : Variable Bit rate : 4 000 Kbps Maximum bit rate : 40.0 Mbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Stream size : 614 MiB (87%) Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Mode extension : CM (complete main) Format settings, Endianness : Big Codec ID : 129 Duration : 21mn 28s Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 16 bits Compression mode : Lossy Stream size : 59.0 MiB (8%) From anacrolix at gmail.com Sat Jul 28 10:23:51 2012 From: anacrolix at gmail.com (Matt Joiner) Date: Sat, 28 Jul 2012 16:23:51 +0800 Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream In-Reply-To: References: Message-ID: I've seen several questions around regarding doing this, but nobody seems to find a solution: I'm transcoding arbitrary files to MPEGTS through a pipe. The subtitle files are separate and have extension .srt. Here's the command line I'm attempting: ffmpeg -ss 0:3:50 -i movie.avi -i movie.srt -scodec dvbsub -target pal-dvd pipe: | vlc - This works just fine, with no errors, and the subtitle is listed under the available subtitle tracks in VLC. But there are no subtitles shown. What is the appropriate subtitle codec to use for MPEG-TS (sending to a Panasonic Viera TV)? Must I separately seek the subtitle file too? (-ss) I am using ffmpeg 0.11.1. From luke at audiomotion.com Sat Jul 28 10:41:41 2012 From: luke at audiomotion.com (Luke) Date: Sat, 28 Jul 2012 09:41:41 +0100 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline In-Reply-To: References: <500FD481.8050507@audiomotion.com> <20120725114318.GA25200@phare.normalesup.org> <5010640A.6060502@audiomotion.com> Message-ID: <5013A5C5.1090609@audiomotion.com> > This sounds vaguely familiar...f it fails with libx264 but works well > with the others, you may be running up against a threading issue we're > trying to resolve in the zeranoe builds. > Could you try with this build and see if it works? > http://x32.elijst.nl/FFmpeg-20120622.7z I tried this, but the overlay filter did not work in it. However going along theses lines I worked my way down the previous builds and found one that works without a glitch. Which probably confirms what you suspected anyway. > Believe it or not the mingw people have ported gdb to windows, and it > works quite well. > http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20(Win64%20hosted)/gdb/ > It can even attach to remote processes. > You'll want to be running a debug version of ffmpeg, though even a non > debug version of it might show some interesting material. > > basically start gdb, then > (gdb) attach > (gdb) thread apply all bt > GL! I didn't have a need to do this in the end. I tested the build in most likely scenarios off line. I also replaced the build on the live compression system and ran it all day yesterday - older build worked like a charm. However if you'd find the outcome of thread traces useful for your purposes I'm happy to do some testing for you. Once again, thank you for your help. Fewer late nights for me now! All the best, Luke From krueger at lesspain.de Sat Jul 28 11:21:59 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 28 Jul 2012 11:21:59 +0200 Subject: [FFmpeg-user] custom video enhancements using ffmpeg In-Reply-To: References: Message-ID: On Sat, Jul 28, 2012 at 7:11 AM, Matt Bione wrote: > Hi, > I am looking to do the following : > Add some custom enhancement (using my own code using opencv or something > similar) to a video. > > I am looking at ffmpeg to produce raw frames which I can tweak and then > give back to the ffmpeg to transcode it back. Is there a way to do this > using the ffmpeg command line tools - maybe using pipes or creating streams > ? I can think of a really inefficient way to do this - dump every frame to > the disk using ffmpeg (e.g. , ffmpeg -i video.mpg image%d.jpg); read those > files and apply my modifications to those images and finally call ffmpeg to > produce a video using those frames(e.g. ffmpeg -f image2 -i image%d.jpg > video.mpg ). But hopefully there is a better way that someone can point me > to ? > > Regards > Matt look at libavfilter (http://ffmpeg.org/ffmpeg.html#Filtering). or what you describe you would typically implement your own videofilter, compile it into your version of ffmpeg and use it on the command line. There are many examples of this in the codebase. Look for files vf_*.c and take a look at /doc/examples/filtering_video.c. From jp4work at gmail.com Sat Jul 28 14:33:49 2012 From: jp4work at gmail.com (JIA Pei) Date: Sat, 28 Jul 2012 05:33:49 -0700 Subject: [FFmpeg-user] How to analyze video files? Message-ID: Hi, all: Again, I'd love to ask this question. It's convenient for me to encode a video file from multiple .jpg files, for example: [code]$ ffmpeg -i %3d.jpg video.mpg[/code] However, how can I use ffmpeg command (or other commands) to analyse how many frames in such a .mpg file? It may have something to do with how I encode (for example, the framerate, etc.), right? But, the default encoding shouldn't change the number of frames in such a encoded .mpg file, right? Anyway, can anybody please help how I can analyse a video file ---- how many frames (better, both audio and video streams) in such a video file? Thank you very much. Best Regards -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From stefasab at gmail.com Sat Jul 28 14:45:00 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Sat, 28 Jul 2012 14:45:00 +0200 Subject: [FFmpeg-user] How to analyze video files? In-Reply-To: References: Message-ID: <20120728124500.GJ6146@arborea> On date Saturday 2012-07-28 05:33:49 -0700, JIA Pei encoded: > Hi, all: > > Again, I'd love to ask this question. > It's convenient for me to encode a video file from multiple .jpg files, for > example: > [code]$ ffmpeg -i %3d.jpg video.mpg[/code] > However, how can I use ffmpeg command (or other commands) to analyse how > many frames in such a .mpg file? It may have something to do with how I > encode (for example, the framerate, etc.), right? But, the default encoding > shouldn't change the number of frames in such a encoded .mpg file, right? > > Anyway, can anybody please help how I can analyse a video file ---- how > many frames (better, both audio and video streams) in such a video file? Check ffprobe -count_frames -show_frames. -- ffmpeg-user random tip #2 The -y option will force the overwrite of the output, without to prompt you for your confirmation. Example: ffmpeg -i movie.avi -y movie.mp4 From nicolas.george at normalesup.org Sat Jul 28 15:23:26 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 28 Jul 2012 15:23:26 +0200 Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream In-Reply-To: References: Message-ID: <20120728132326.GA10040@phare.normalesup.org> Le primidi 11 thermidor, an CCXX, Matt Joiner a ?crit?: > Here's the command line I'm attempting: > > ffmpeg -ss 0:3:50 -i movie.avi -i movie.srt -scodec dvbsub -target > pal-dvd pipe: | vlc - > > This works just fine, with no errors, and the subtitle is listed under > the available subtitle tracks in VLC. But there are no subtitles > shown. dvbsub works with bitmap subtitles, and srt files are text subtitles. Neither ffmpeg nor libavcodec is able to rasterize text subtitles. I see two solutions to your problem: If you are ok with hardcoding the subtitles in the video, you can convert the srt file to ASS and use the ass filter: -vf ass=movie.ass If you really want a separate sub track, you can try encoding the video to a VOB file, then using spumux from the dvdauthor project to rasterize the srt file and mux it into the VOB file, and then again ffmpeg to remux the result to MPEG-TS, converting dvdsub into dvbsub. This solution is very likely to fail for one reason or another. > Must I separately seek the subtitle file too? (-ss) Yes. 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 nicolas.george at normalesup.org Sat Jul 28 15:29:58 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 28 Jul 2012 15:29:58 +0200 Subject: [FFmpeg-user] custom video enhancements using ffmpeg In-Reply-To: References: Message-ID: <20120728132958.GB10040@phare.normalesup.org> Le decadi 10 thermidor, an CCXX, Matt Bione a ?crit?: > I am looking to do the following : > Add some custom enhancement (using my own code using opencv or something > similar) to a video. > > I am looking at ffmpeg to produce raw frames which I can tweak and then > give back to the ffmpeg to transcode it back. Is there a way to do this > using the ffmpeg command line tools - maybe using pipes or creating streams > ? I can think of a really inefficient way to do this - dump every frame to > the disk using ffmpeg (e.g. , ffmpeg -i video.mpg image%d.jpg); read those > files and apply my modifications to those images and finally call ffmpeg to > produce a video using those frames(e.g. ffmpeg -f image2 -i image%d.jpg > video.mpg ). But hopefully there is a better way that someone can point me > to ? Note that JPEG would be a very bad choice for an intermediate format, since it is lossy: you would be losing time and quality twice (once for the file that ffmpeg just decoded, a second time for the file that you modified). Apart from Robert's suggestion to write your process as filters, which may or may not be convenient for you, you have a variety of other options. The simplest one would be to output your video to rawvideo format, and read it back the same, using pipes. Slightly more complex, but more robust, you can use PAM instead of rawvideo. Note that you will have to adjust the vsync method if your video is not exactly fixed frame rate. Another solution would be to use the ffmpeg C API instead of the command-line tool. Note that if you decide to write it as filters, you can consider submitting your work to the devel mailing list. 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 delentef at gmail.com Sat Jul 28 18:56:40 2012 From: delentef at gmail.com (Fabrice DELENTE) Date: Sat, 28 Jul 2012 18:56:40 +0200 Subject: [FFmpeg-user] Error compiling mplayer snapshot of today Message-ID: <20120728165640.GA17296@smtp.free.fr> Hello. When I try compiling today's (2012 Jul. 28) snapshot of mplayer, I get ffmpeg/libavcodec/libavcodec.a(eamad.o): In function `decode_frame': eamad.c:(.text+0xb5f): undefined reference to `ff_inv_aanscales' eamad.c:(.text+0xb84): undefined reference to `ff_inv_aanscales' ffmpeg/libavcodec/libavcodec.a(eatgq.o): In function `tgq_decode_frame': eatgq.c:(.text+0x150): undefined reference to `ff_inv_aanscales' eatgq.c:(.text+0x159): undefined reference to `ff_inv_aanscales' ffmpeg/libavcodec/libavcodec.a(eatqi.o): In function `tqi_decode_frame': eatqi.c:(.text+0x4d0): undefined reference to `ff_inv_aanscales' ffmpeg/libavcodec/libavcodec.a(eatqi.o):eatqi.c:(.text+0x4fc): more undefined references to `ff_inv_aanscales' follow ffmpeg/libavcodec/libavcodec.a(mpegvideo_enc.o): In function `ff_convert_matrix': mpegvideo_enc.c:(.text+0x19de4): undefined reference to `ff_aanscales' mpegvideo_enc.c:(.text+0x19ef3): undefined reference to `ff_aanscales' collect2: ld returned 1 exit status make: *** [mplayer] Error 1 in the linking phase. Is it because ffmpeg/libavcodec/aandcttab.o is not linked with the rest, or in libavcodec.a? Thanks. -- F. Delente From rogerdpack2 at gmail.com Sat Jul 28 21:37:52 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 28 Jul 2012 13:37:52 -0600 Subject: [FFmpeg-user] Encoding x264 hangs in a high turn over pipeline In-Reply-To: <5013A5C5.1090609@audiomotion.com> References: <500FD481.8050507@audiomotion.com> <20120725114318.GA25200@phare.normalesup.org> <5010640A.6060502@audiomotion.com> <5013A5C5.1090609@audiomotion.com> Message-ID: >> Could you try with this build and see if it works? >> http://x32.elijst.nl/FFmpeg-20120622.7z > > I tried this, but the overlay filter did not work in it. However going along > theses lines I worked my way down the previous builds and found one that > works without a glitch. Which probably confirms what you suspected anyway. Which builds "last worked" and which ones "first started showing" the error? -r From rogerdpack2 at gmail.com Sat Jul 28 21:42:50 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 28 Jul 2012 13:42:50 -0600 Subject: [FFmpeg-user] custom video enhancements using ffmpeg In-Reply-To: <20120728132958.GB10040@phare.normalesup.org> References: <20120728132958.GB10040@phare.normalesup.org> Message-ID: >> I am looking at ffmpeg to produce raw frames which I can tweak and then >> give back to the ffmpeg to transcode it back. > ... > Another solution would be to use the ffmpeg C API instead of the > command-line tool. Yeah you could do it as a "custom" application that uses ffmpeg's C API http://ffmpeg.org/developer.html#API (or as a filter, etc.) From cehoyos at ag.or.at Sat Jul 28 22:43:35 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 28 Jul 2012 20:43:35 +0000 (UTC) Subject: [FFmpeg-user] Error compiling mplayer snapshot of today References: <20120728165640.GA17296@smtp.free.fr> Message-ID: Fabrice DELENTE gmail.com> writes: > When I try compiling today's (2012 Jul. 28) snapshot of mplayer, I get > > ffmpeg/libavcodec/libavcodec.a(eamad.o): In function `decode_frame': Wrong mailing list. (FFmpeg developers are not responsible for MPlayer build system.) Carl Eugen From highgod0401 at gmail.com Sun Jul 29 01:56:27 2012 From: highgod0401 at gmail.com (Wei Gao) Date: Sun, 29 Jul 2012 07:56:27 +0800 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. In-Reply-To: <50124499.2010002@gmail.com> References: <50124499.2010002@gmail.com> Message-ID: Hi Roger and James Thank you for your reply. We want to do some optimization on ffmpeg and contribute our code to ffmpeg. 1.Add hwaccel to ffmpeg.exe to optimize the decode process using dxva2,we have done some work on it,and it has been testing now.It has made some effort on h264,mpeg2,vc1,wmv3. 2.Add opencl code to optimize filter process for libs,such as deshake,unsharp,scale. 3.Optimize pipline to make it can switch between cpu and gpu. So when we complete coding and testing,how can we submit it to ffmpeg?Will you accept it? Btw,I want ask a question.I found that the hwaccel is based on dx9,we want to upgrade it to dx11,will you accept it? Thanks Best regards 2012/7/27 James Darnley > On 2012-07-27 02:41, Wei Gao wrote: > > Hi Roger, > > > > Thanks.I have fix the problem and run my Opencl kernel. > > > > I want to ask a question again.I read the ffmpeg code but I didn't find > > any CUDA foot print to optimize ffmpeg.Why don't you use CUDA to > optimize? > > That is because nobody has written any yet. If the same reasoning from > x264 also applies to FFmpeg, that is because: > > 1 - It is not very useful. You can't just magically speed up the code > you run on a CPU by running it on a GPU. Code designed specifically for > the GPU may not be any faster or produce any better quality. > > 2 - The complexity of writing it makes people run off into the night > screaming. Only a team of mighty warriors has managed to produce some > code to offload x264's lookahead to the GPU. It has been (at least) 8 > months and it is still a work in progress. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From lou at lrcd.com Sun Jul 29 04:21:04 2012 From: lou at lrcd.com (Lou) Date: Sat, 28 Jul 2012 18:21:04 -0800 Subject: [FFmpeg-user] custom video enhancements using ffmpeg In-Reply-To: References: Message-ID: <1343528464.4783.140661107883785.182486B3@webmail.messagingengine.com> On Fri, Jul 27, 2012, at 09:11 PM, Matt Bione wrote: > Hi, > I am looking to do the following : > Add some custom enhancement (using my own code using opencv or something > similar) to a video. > > I am looking at ffmpeg to produce raw frames which I can tweak and then > give back to the ffmpeg to transcode it back. Is there a way to do this > using the ffmpeg command line tools - maybe using pipes or creating > streams > ? I can think of a really inefficient way to do this - dump every frame > to > the disk using ffmpeg (e.g. , ffmpeg -i video.mpg image%d.jpg); read > those > files and apply my modifications to those images and finally call ffmpeg > to > produce a video using those frames(e.g. ffmpeg -f image2 -i image%d.jpg > video.mpg ). But hopefully there is a better way that someone can point > me > to ? > > Regards > Matt You can pipe from and to ffmpeg. Possibly overly simple example: ffmpeg -i input -f - | | ffmpeg -i - output From zengpongju8 at 163.com Thu Jul 26 09:46:55 2012 From: zengpongju8 at 163.com (niko) Date: Thu, 26 Jul 2012 15:46:55 +0800 Subject: [FFmpeg-user] ffmpeg build error Message-ID: A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 77269 bytes Desc: not available URL: From wladi8 at hotmail.com Sun Jul 29 00:20:09 2012 From: wladi8 at hotmail.com (Wladi) Date: Sat, 28 Jul 2012 15:20:09 -0700 (PDT) Subject: [FFmpeg-user] Combining 4 videos in 1 video in raster. Message-ID: <1343514009077-4652126.post@n4.nabble.com> I would like some help, poiters, examples for combining 4 videos into 1 video. I have 4 FullHD movies (1920x1080) and want to have 1 movie with the resolution of 3840x2160. This code will make a canvas with the right resolution bit only the upper part, how can I add the lower part (left bottom / right bottom). ffmpeg.exe -i VideoLeftTop.MP4 -ss 00:00:00 -t 00:00:03 -vf "[in] scale=iw:ih, pad=2*iw:ih*2 [left]; movie=VideoRightTop.MP4, scale=iw:ih [right]; [left][right] overlay=main_w/2:0[out]" -b:v 768k VideoFull.mp4 examples on http://ffmpeg-users.933282.n4.nabble.com/stitching-together-videos-with-Libavfilter-td2538492.html are not working :-( -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Combining-4-videos-in-1-video-in-raster-tp4652126.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From matayou at ymail.com Sat Jul 28 11:16:33 2012 From: matayou at ymail.com (fendard) Date: Sat, 28 Jul 2012 02:16:33 -0700 (PDT) Subject: [FFmpeg-user] FFmpeg can't open mjpeg stream Message-ID: <1343466993615-4652116.post@n4.nabble.com> Hello everyone, I am stuck on a I think tricky problem. If I try to do the following command : ffmpeg -v 9 -loglevel 99 -i http://216.62.222.100/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg output.avi -report Nothing happens, only this two lines after 5 minutes more or less : " [loas @ 0218c160] Format loas detected only with low score of 1, misdetection possible! [loas @ 0218c160] File position before avformat_find_stream_info() is 0 " I do not have any idea or what is wrong. FFmpeg version is ffmpeg-20120720-git-85761ef-win32-static (one of the lastest) and the behaviour is similar when trying to open this stream with opencv since it uses FFmpeg as well. Any help would be appreciated =D -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFmpeg-can-t-open-mjpeg-stream-tp4652116.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From anacrolix at gmail.com Sat Jul 28 10:02:48 2012 From: anacrolix at gmail.com (Matt Joiner) Date: Sat, 28 Jul 2012 16:02:48 +0800 Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream Message-ID: I've seen several questions around regarding doing this, but nobody seems to find a solution: I'm transcoding arbitrary files to MPEGTS through a pipe. The subtitle files are separate and have extension .srt. Here's the command line I'm attempting: ffmpeg -ss 0:3:50 -i movie.avi -i movie.srt -scodec dvbsub -target pal-dvd pipe: | vlc - This works just fine, with no errors, and the subtitle is listed under the available subtitle tracks in VLC. But there are no subtitles shown. What is the appropriate subtitle codec to use for MPEG-TS (sending to a Panasonic Viera TV)? Must I separately seek the subtitle file too? (-ss) I am using ffmpeg 0.11.1. From aharonmalachi at gmail.com Sat Jul 28 15:25:18 2012 From: aharonmalachi at gmail.com (=?UTF-8?B?15DXlNeo15XXnyDXntec15DXm9eZ?=) Date: Sat, 28 Jul 2012 16:25:18 +0300 Subject: [FFmpeg-user] using ffmpeg gnu gpl version 3 in commercial software via command line Message-ID: Hi I wolud like to use the binary ffmpeg under gpl gnu version 3 in a commercial software. I'll not use or compile the code or any dll, just using the ffmpeg.exe binary file via command line to cut and covert film. Do you think it could be a license problem? Do I need to add credit to FFmpeg in the about box? Thanks Aaron From tariq.connect at gmail.com Sun Jul 29 07:59:09 2012 From: tariq.connect at gmail.com (Tariq) Date: Sun, 29 Jul 2012 11:29:09 +0530 Subject: [FFmpeg-user] Combining 4 videos in 1 video in raster. Message-ID: Wladi wrote: >I would like some help, poiters, examples for combining 4 videos into 1 >video. > >I have 4 FullHD movies (1920x1080) and want to have 1 movie with the >resolution of 3840x2160. > > >This code will make a canvas with the right resolution bit only the upper >part, how can I add the lower part (left bottom / right bottom). > >ffmpeg.exe -i VideoLeftTop.MP4 -ss 00:00:00 -t 00:00:03 -vf "[in] >scale=iw:ih, pad=2*iw:ih*2 [left]; movie=VideoRightTop.MP4, scale=iw:ih >[right]; [left][right] overlay=main_w/2:0[out]" -b:v 768k VideoFull.mp4 > > >examples on >http://ffmpeg-users.933282.n4.nabble.com/stitching-together-videos-with-Libavfilter-td2538492.html >are not working :-( > > > >-- >View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Combining-4-videos-in-1-video-in-raster-tp4652126.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 nicolas.george at normalesup.org Sun Jul 29 09:36:14 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 29 Jul 2012 09:36:14 +0200 Subject: [FFmpeg-user] FFmpeg can't open mjpeg stream In-Reply-To: <1343466993615-4652116.post@n4.nabble.com> References: <1343466993615-4652116.post@n4.nabble.com> Message-ID: <20120729073614.GA11270@phare.normalesup.org> Le primidi 11 thermidor, an CCXX, fendard a ?crit?: > I am stuck on a I think tricky problem. If I try to do the following command > : > ffmpeg -v 9 -loglevel 99 -i > http://216.62.222.100/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg > output.avi -report The server replies: Content-Type: multipart/x-mixed-replace; boundary=--myboundary --myboundary Content-Type: image/jpeg Content-Length: 44552 According to wikipedia, this "multipart/x-mixed-replace" is an experimental attempt at HTTP server-push that was never widely adopted. Implementing it as a format may be possible. Just in case: Can we count on that URL to stay available for testing? 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 inbox.mirror.orbisoft at gmail.com Sun Jul 29 11:54:11 2012 From: inbox.mirror.orbisoft at gmail.com (Orbisoft Support) Date: Sun, 29 Jul 2012 02:54:11 -0700 (PDT) Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <20120723085555.GA21800@phare.normalesup.org> References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> <20120721090802.GA18086@phare.normalesup.org> <1343007594906-4651994.post@n4.nabble.com> <20120723085555.GA21800@phare.normalesup.org> Message-ID: <1343555651249-4652135.post@n4.nabble.com> Just to clarify Nicolas, when you said: /"The correct duration depends on the total width of your text. drawtext prints it at debug level, so you can get it using -loglevel debug." / Does that mean I can get that number automatically returned via some command line so that I can use that value in a later ffmpeg command line (which actually draws the text) or does it mean I can only manually see the number on the screen and therefore couldn't automate it (since the text is from a RSS which always changes)? TIA -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Newbie-questions-tp4651915p4652135.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From victorpaesa at googlemail.com Sun Jul 29 12:20:17 2012 From: victorpaesa at googlemail.com (=?UTF-8?Q?V=C3=ADctor_Paesa?=) Date: Sun, 29 Jul 2012 12:20:17 +0200 Subject: [FFmpeg-user] FFmpeg in Android Platform - Too slow... In-Reply-To: References: Message-ID: Hola, On 7/27/12, Jorge Fonseca wrote: > Hi All, > > I need to create a video from a set of images in Android Platform. > The simple way is ro execute a command like this: > > - ffmpeg -i INPUT_%d.png OUTPUT.mpg > > For 450 frames/images (*1280x720*), the duration time is around *60s* - its > very slow....... I tried many image and FFmpeg options/formats/codecs but > the durations are similar... > If i reduce frame size to 640x480 the duration reaches around 50s. > > ----------------------- > > Please, let me know if someone knows how to simply this command execution > and improving ffmpeg performance... > > ----------------------- > > Note. I executed *ffmpeg *throw *command line* and *Android NDK layer*. Android devices often shine on low power consumption, but rarely on high CPU speed. Two posibilities: - Use a CPU with more than one core, and in ffmpeg use -threads, and a codec that supports multithreading (MPEG2, h264). - Use a CPU with NEON instructions, and a ffmpeg build optimized for NEON. Regards, V?ctor From nicolas.george at normalesup.org Sun Jul 29 12:26:13 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 29 Jul 2012 12:26:13 +0200 Subject: [FFmpeg-user] Sliding text banner (was: Newbie questions) In-Reply-To: <1343555651249-4652135.post@n4.nabble.com> References: <20120720161424.GA9916@phare.normalesup.org> <1342839250875-4651964.post@n4.nabble.com> <20120721090802.GA18086@phare.normalesup.org> <1343007594906-4651994.post@n4.nabble.com> <20120723085555.GA21800@phare.normalesup.org> <1343555651249-4652135.post@n4.nabble.com> Message-ID: <20120729102613.GA12007@phare.normalesup.org> Le duodi 12 thermidor, an CCXX, Orbisoft Support a ?crit?: > Does that mean I can get that number automatically returned via some command > line so that I can use that value in a later ffmpeg command line (which > actually draws the text) or does it mean I can only manually see the number > on the screen and therefore couldn't automate it (since the text is from a > RSS which always changes)? It means that if you run ffmpeg with "-loglevel debug", you can see this: [Parsed_drawtext_0 @ 0x1a39c80] n:0 t:0.000000 text_w:46 text_h:7 x:0 y:0 And of course, if you can see it in ffmpeg's output, you can obviously capture it, parse it and reuse it in a second call to ffmpeg. The exact way to do it depends on your operating system, calling language, etc., and is beyond the scope of this list. You just need to know that ffmpeg's console output goes to stderr, not stdout. Also, note that the width of the text is also available as the "text_h" or "th" variables inside the expressions for the text position, so you can, for example, write the expression for x so that the text goes through the screen in a fixed amount of time. Said fixed amount of time could be decided based on the char count of the text: a text with a lot of "m"s would scroll slightly faster than a text with a lot of "i"s, but that would probably be negligible in real conditions. 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 Sun Jul 29 13:05:03 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Jul 2012 11:05:03 +0000 (UTC) Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. References: <50124499.2010002@gmail.com> Message-ID: Wei Gao gmail.com> writes: > So when we complete coding and testing,how can we submit it to ffmpeg? http://ffmpeg.org/developer.html > Will you accept it? (I believe this was already answered on irc, sorry if I am wrong.) The question if some feature will be accepted can not be answered, every new feature will probably be accepted, but not every patch will be accepted (please read above link). So to answer your question, it is necessary that you send a patch. Please note that even if your patch does not get accepted, I strongly believe that ffmpeg-devel is the right place for patches, other people can use or improve them. Carl Eugen From cehoyos at ag.or.at Sun Jul 29 13:30:00 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Jul 2012 11:30:00 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?using_ffmpeg_gnu_gpl_version_3_in_commerc?= =?utf-8?q?ial_software=09via_command_line?= References: Message-ID: ????? ????? gmail.com> writes: > I wolud like to use the binary ffmpeg under gpl gnu > version 3 in a commercial software. > I'll not use or compile the code or any dll, just using the > ffmpeg.exe binary file via command line to cut and covert film. Please note that the GPL covers neither compilation nor usage (both are "allowed" in whatever situation afaict), it only covers distribution. If you distribute a binary that is covered by the LGPL or the GPL (or in other words: If you distribute a binary based on FFmpeg source code), then you have to fulfill the requirements of the respective license for the binary that is based on source published under the LGPL or the GPL. > Do you think it could be a license problem? Please ask your lawyer. > Do I need to add credit to FFmpeg in the about box? I hope you understand that you will not find many friends if you ask if you can use software that we offer for free without giving credit (this is completely orthogonal to the license question imo). Carl Eugen From chatlumo.ovh at gmail.com Sun Jul 29 17:00:40 2012 From: chatlumo.ovh at gmail.com (Julien J.) Date: Sun, 29 Jul 2012 17:00:40 +0200 Subject: [FFmpeg-user] Issue with compilation Message-ID: Hello, I'm trying to install ffmpeg on Debian Squeeze 64 bits. I use a part of this guide : http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide So, when i'm on the "make" command for ffmeg, i have this (last lines) : CC ffmpeg.o ffmpeg.c: In function ?poll_filters?: ffmpeg.c:1933: warning: ?ret_all? may be used uninitialized in this function CC cmdutils.o LD ffmpeg_g libavcodec/libavcodec.a(libx264.o): In function `X264_init': /home/sources/ffmpeg/libavcodec/libx264.c:487: undefined reference to `x264_encoder_open_125' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 Do you know how can i resolve it ? PS : sorry for my bad english. Thanks, Julien From 50295 at web.de Sun Jul 29 20:21:36 2012 From: 50295 at web.de (Olumide) Date: Sun, 29 Jul 2012 19:21:36 +0100 Subject: [FFmpeg-user] Concatenating 30fps video with audio, using ffmpeg Message-ID: <50157F30.3060009@web.de> In essence, my question is about how to specify the framerate of an input video file and the resulting, output video file when concatenating a video and an audio file. I am trying to concatenate a 30fps video with a 44k audio file but the video and audio portions of the output are out of synch. (This does not happen when the framerate of the video is 25fps, suggests to me that ffmpeg has a default framerate.) I've tried specifying the framerate of the output video as well, like so ffmpeg -i inFile.avi -i audio.wav -b:v 2500k -r 30 outFile.mpg but that doesn't seem to help. What am I doing wrong? Regards, - Olumide From jabowery at gmail.com Sun Jul 29 20:30:33 2012 From: jabowery at gmail.com (James Bowery) Date: Sun, 29 Jul 2012 13:30:33 -0500 Subject: [FFmpeg-user] Dumbing down the options? Message-ID: Newbie question: Is there an simple way to make ffmpeg to take defaults that will get rid of the message: "Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or heigh" ? Related question: Given that message, how can one go about narrowing down what the problem is? From cehoyos at ag.or.at Sun Jul 29 21:10:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Jul 2012 19:10:30 +0000 (UTC) Subject: [FFmpeg-user] Dumbing down the options? References: Message-ID: James Bowery gmail.com> writes: > "Error while opening encoder for output stream #0:1 - maybe > incorrect parameters such as bit_rate, rate, width or heigh" Please provide your command line together with complete, uncut console output. Carl Eugen From cehoyos at ag.or.at Sun Jul 29 21:14:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Jul 2012 19:14:49 +0000 (UTC) Subject: [FFmpeg-user] Issue with compilation References: Message-ID: Julien J. gmail.com> writes: > LD ffmpeg_g > libavcodec/libavcodec.a(libx264.o): In function `X264_init': > /home/sources/ffmpeg/libavcodec/libx264.c:487: undefined > reference to `x264_encoder_open_125' I suspect your x264 installation is broken (header and library version are different). Carl Eugen From cehoyos at ag.or.at Sun Jul 29 21:12:56 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Jul 2012 19:12:56 +0000 (UTC) Subject: [FFmpeg-user] Concatenating 30fps video with audio, using ffmpeg References: <50157F30.3060009@web.de> Message-ID: Olumide <50295 web.de> writes: > I am trying to concatenate a 30fps video with a 44k audio file but the > video and audio portions of the output are out of synch. How do you concatenate "a" (one) file? Please provide command line together with complete, uncut console output. Carl Eugen From jabowery at gmail.com Sun Jul 29 22:44:51 2012 From: jabowery at gmail.com (James Bowery) Date: Sun, 29 Jul 2012 15:44:51 -0500 Subject: [FFmpeg-user] Dumbing down the options? In-Reply-To: References: Message-ID: On Sun, Jul 29, 2012 at 2:10 PM, Carl Eugen Hoyos wrote: > Please provide your command line together with complete, uncut > console output. > > $ ffmpeg -strict -2 -i 33272.flv 33272.webm ffmpeg version N-43027-g981d97f Copyright (c) 2000-2012 the FFmpeg developers built on Jul 29 2012 12:50:41 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-libvpx libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 45.100 / 54. 45.100 libavformat 54. 21.100 / 54. 21.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 5.100 / 3. 5.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 Input #0, flv, from '33272.flv': Metadata: hasKeyframes : true hasVideo : true canSeekToEnd : true datasize : 94783292 lasttimestamp : 900 audiosize : 7612525 hasAudio : true audiodelay : 0 videosize : 87128533 metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2 lastkeyframetimestamp: 900 hasMetadata : true hasCuePoints : false Duration: 00:15:00.03, start: 0.000000, bitrate: 844 kb/s Stream #0:0: Video: flv1, yuv420p, 640x480, 790 kb/s, 30 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 64 kb/s File '33272.webm' already exists. Overwrite ? [y/N] y v1.1.0 [NULL @ 0x1c65380] Codec is experimental but experimental codecs are not enabled, try -strict -2 Output #0, webm, to '33272.webm': Metadata: hasKeyframes : true hasVideo : true canSeekToEnd : true datasize : 94783292 lasttimestamp : 900 audiosize : 7612525 hasAudio : true audiodelay : 0 videosize : 87128533 metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2 lastkeyframetimestamp: 900 hasMetadata : true hasCuePoints : false Stream #0:0: Video: vp8, yuv420p, 640x480, q=-1--1, 200 kb/s, 90k tbn, 30 tbc Stream #0:1: Audio: none, 44100 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (flv -> libvpx) Stream #0:1 -> #0:1 (mp3 -> vorbis) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height From jabowery at gmail.com Sun Jul 29 23:11:15 2012 From: jabowery at gmail.com (James Bowery) Date: Sun, 29 Jul 2012 16:11:15 -0500 Subject: [FFmpeg-user] Dumbing down the options? In-Reply-To: References: Message-ID: I discovered that the "-strict -2" needed to go after the input file name. Its running now. On Sun, Jul 29, 2012 at 3:44 PM, James Bowery wrote: > On Sun, Jul 29, 2012 at 2:10 PM, Carl Eugen Hoyos wrote: > >> Please provide your command line together with complete, uncut >> console output. >> >> > $ ffmpeg -strict -2 -i 33272.flv 33272.webm > ffmpeg version N-43027-g981d97f Copyright (c) 2000-2012 the FFmpeg > developers > built on Jul 29 2012 12:50:41 with gcc 4.4.6 (GCC) 20120305 (Red Hat > 4.4.6-4) > configuration: --enable-libvpx > libavutil 51. 65.100 / 51. 65.100 > libavcodec 54. 45.100 / 54. 45.100 > libavformat 54. 21.100 / 54. 21.100 > libavdevice 54. 2.100 / 54. 2.100 > libavfilter 3. 5.100 / 3. 5.100 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > Input #0, flv, from '33272.flv': > Metadata: > hasKeyframes : true > hasVideo : true > canSeekToEnd : true > datasize : 94783292 > lasttimestamp : 900 > audiosize : 7612525 > hasAudio : true > audiodelay : 0 > videosize : 87128533 > metadatacreator : inlet media FLVTool2 v1.0.6 - > http://www.inlet-media.de/flvtool2 > lastkeyframetimestamp: 900 > hasMetadata : true > hasCuePoints : false > Duration: 00:15:00.03, start: 0.000000, bitrate: 844 kb/s > Stream #0:0: Video: flv1, yuv420p, 640x480, 790 kb/s, 30 tbr, 1k tbn, > 1k tbc > Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 64 kb/s > File '33272.webm' already exists. Overwrite ? [y/N] y > v1.1.0 > [NULL @ 0x1c65380] Codec is experimental but experimental codecs are not > enabled, try -strict -2 > Output #0, webm, to '33272.webm': > Metadata: > hasKeyframes : true > hasVideo : true > canSeekToEnd : true > datasize : 94783292 > lasttimestamp : 900 > audiosize : 7612525 > hasAudio : true > audiodelay : 0 > videosize : 87128533 > metadatacreator : inlet media FLVTool2 v1.0.6 - > http://www.inlet-media.de/flvtool2 > lastkeyframetimestamp: 900 > hasMetadata : true > hasCuePoints : false > Stream #0:0: Video: vp8, yuv420p, 640x480, q=-1--1, 200 kb/s, 90k tbn, > 30 tbc > Stream #0:1: Audio: none, 44100 Hz, stereo, s16, 128 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (flv -> libvpx) > Stream #0:1 -> #0:1 (mp3 -> vorbis) > Error while opening encoder for output stream #0:1 - maybe incorrect > parameters such as bit_rate, rate, width or height > > > From highgod0401 at gmail.com Mon Jul 30 02:24:48 2012 From: highgod0401 at gmail.com (Wei Gao) Date: Mon, 30 Jul 2012 08:24:48 +0800 Subject: [FFmpeg-user] Hi, I want to add opencl to ffmpeg, but I don't know how to modify the make file to make the ffmpeg link OpenCL.lib.I add the OpenCL in to libavutil. In-Reply-To: References: <50124499.2010002@gmail.com> Message-ID: Thank you very much. We will submit our patch when we complete to test. Best regards 2012/7/29 Carl Eugen Hoyos > Wei Gao gmail.com> writes: > > > So when we complete coding and testing,how can we submit it to ffmpeg? > > http://ffmpeg.org/developer.html > > > Will you accept it? > > (I believe this was already answered on irc, sorry if I am wrong.) > The question if some feature will be accepted can not be answered, > every new feature will probably be accepted, but not every patch > will be accepted (please read above link). > So to answer your question, it is necessary that you send a patch. > > Please note that even if your patch does not get accepted, I strongly > believe that ffmpeg-devel is the right place for patches, other > people can use or improve them. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tom_a_sparks at yahoo.com.au Mon Jul 30 05:06:19 2012 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Sun, 29 Jul 2012 20:06:19 -0700 (PDT) Subject: [FFmpeg-user] transcode to flic/anim/cdxl References: <1342089610.42384.YahooMailNeo@web120403.mail.ne1.yahoo.com> <1342093920.48641.YahooMailNeo@web120406.mail.ne1.yahoo.com> <1342116663.79904.YahooMailNeo@web120403.mail.ne1.yahoo.com> Message-ID: <1343617579.76312.YahooMailNeo@web120405.mail.ne1.yahoo.com> ----- Original Message ----- > From: Paul B Mahol > To: FFmpeg user questions and RTFMs > Cc: > Sent: Friday, 13 July 2012 4:25 AM > Subject: Re: [FFmpeg-user] transcode to flic/anim/cdxl > > On 7/12/12, Tom Sparks wrote: >>>>??decodable only :( >> >>>>??I was hoping to transcode my video into them >>> >>> I'd love to know what your application is! Some age-old installation > of >>>??Amiga-based digital signage, or something? >> >>??I like the idea of having this tag undernear my screencast videos >> >>??"Recorded on vintage hardware/computers, >> >>??Playable on vintage hardware/computers" > > Who would be interested in such low resolutions video? I am capture the video at a higher resolution that the true computer native Composite video output captured at Standard-definition VGA output is captured at 800x600 Emulation output captured at native Emulation resolution I fascination with these older video format because they dont have patents excepted CDXL tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mihamina at rktmb.org Mon Jul 30 09:36:22 2012 From: mihamina at rktmb.org (Mihamina Rakotomandimby) Date: Mon, 30 Jul 2012 10:36:22 +0300 Subject: [FFmpeg-user] WebM conversion fails Message-ID: <50163976.6000304@rktmb.org> Hi all, I want to convert a video taken from an iPad to Webm: ffmpeg -i IPAD_VIDEO.MOV -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b:v 345k -s 640x360 output.webm ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 27 2012 17:29:58 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable The iPad video is here: http://demo.ovh.net/en/e711598f319c6ed7e42068e3a1db830d/ The conversion takes place (I mean no error nor warning), but the result is not visible with any player I use. Here is the full output: http://pastebin.com/FLcsgYqj The test I show you is with a 0.10.2, I also tried with a 0.11.1 with same result. What should I look for in order to have "to WebM " conversion working? -- RMA. From cehoyos at ag.or.at Mon Jul 30 09:52:34 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 30 Jul 2012 07:52:34 +0000 (UTC) Subject: [FFmpeg-user] WebM conversion fails References: <50163976.6000304@rktmb.org> Message-ID: Mihamina Rakotomandimby rktmb.org> writes: > The conversion takes place (I mean no error nor warning), but the result > is not visible with any player I use. Which player? > Here is the full output: http://pastebin.com/FLcsgYqj Please post the complete, uncut console output together with the command line here on the mailing list, do not use external resources, they may disappear. And please post the 0.11 output. Carl Eugen From mihamina at rktmb.org Mon Jul 30 10:13:14 2012 From: mihamina at rktmb.org (Mihamina Rakotomandimby) Date: Mon, 30 Jul 2012 11:13:14 +0300 Subject: [FFmpeg-user] WebM conversion fails In-Reply-To: References: <50163976.6000304@rktmb.org> Message-ID: <5016421A.4040406@rktmb.org> On 07/30/2012 10:52 AM, Carl Eugen Hoyos wrote: >> The conversion takes place (I mean no error nor warning), but the result >> is not visible with any player I use. > Which player? - gstreamer based ones - VLC >> Here is the full output: http://pastebin.com/FLcsgYqj > > Please post the complete, uncut console output together with > the command line here on the mailing list, do not use > external resources, they may disappear. > > And please post the 0.11 output. [mihamina at centos6-01 ~]$ ffmpeg -i Video/IPAD_VIDEO.MOV -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b:v 345k -s 640x360 Video/output.webm ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 27 2012 20:42:36 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video/IPAD_VIDEO.MOV': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2012-07-23 14:33:52 encoder : 4.3.5 encoder-fra : 4.3.5 date : 2012-07-23T17:33:52+0300 date-fra : 2012-07-23T17:33:52+0300 Duration: 00:00:02.57, start: 0.000000, bitrate: 10509 kb/s Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 10584 kb/s, 24.02 fps, 24 tbr, 600 tbn, 1200 tbc Metadata: rotate : 90 creation_time : 2012-07-23 14:33:52 handler_name : Core Media Data Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 62 kb/s Metadata: creation_time : 2012-07-23 14:33:52 handler_name : Core Media Data Handler File 'Video/output.webm' already exists. Overwrite ? [y/N] y w:1280 h:720 pixfmt:yuv420p tb:1/600 sar:0/1 sws_param:flags=2 [buffersink @ 0xe42d60] No opaque field provided [scale @ 0xe43020] w:1280 h:720 fmt:yuv420p sar:0/1 -> w:640 h:360 fmt:yuv420p sar:0/1 flags:0x4 [aformat @ 0x1076f40] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 0x1078060] chl:mono fmt:s16 r:44100Hz -> chl:stereo fmt:flt r:44100Hz [libvpx @ 0xe44a00] v1.0.0 Output #0, webm, to 'Video/output.webm': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2012-07-23 14:33:52 date-fra : 2012-07-23T17:33:52+0300 encoder-fra : 4.3.5 date : 2012-07-23T17:33:52+0300 encoder : Lavf54.6.100 Stream #0:0(und): Video: vp8, yuv420p, 640x360, q=-1--1, 345 kb/s, 1k tbn, 24 tbc Metadata: rotate : 90 creation_time : 2012-07-23 14:33:52 handler_name : Core Media Data Handler Stream #0:1(und): Audio: vorbis, 44100 Hz, stereo, flt, 96 kb/s Metadata: creation_time : 2012-07-23 14:33:52 handler_name : Core Media Data Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libvpx) Stream #0:1 -> #0:1 (aac -> libvorbis) Press [q] to stop, [?] for help [libvorbis @ 0xe1f280] Que input is backward in time frame= 61 fps= 33 q=0.0 Lsize= 141kB time=00:00:02.54 bitrate= 454.2kbits/s video:113kB audio:22kB global headers:4kB muxing overhead 1.385328% [mihamina at centos6-01 ~]$ Thank you for your help. -- RMA. From mihamina at rktmb.org Mon Jul 30 10:28:30 2012 From: mihamina at rktmb.org (Mihamina Rakotomandimby) Date: Mon, 30 Jul 2012 11:28:30 +0300 Subject: [FFmpeg-user] WebM conversion fails In-Reply-To: References: <50163976.6000304@rktmb.org> Message-ID: <501645AE.3020301@rktmb.org> On 07/30/2012 10:52 AM, Carl Eugen Hoyos wrote: >> The conversion takes place (I mean no error nor warning), but the result >> >is not visible with any player I use. > Which player? > Well, Carl, your question made me wondered. I tried with my usual video player, nothing appeared. I looked for a webm sample file over the web and found: http://kisdigital.wordpress.com/2011/04/05/using-ffmpeg-to-encode-video-with-webm/ It played in my browser (Firefox) but no in my desktop player. So, I tested my encoded video with my browser and it works! The culprit is me (or my installed gstreamer plugins). The conclusion: I should have tested the videos with my browser prior than with my usual video player... -- RMA. From cehoyos at ag.or.at Mon Jul 30 10:28:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 30 Jul 2012 08:28:25 +0000 (UTC) Subject: [FFmpeg-user] WebM conversion fails References: <50163976.6000304@rktmb.org> <5016421A.4040406@rktmb.org> Message-ID: Mihamina Rakotomandimby rktmb.org> writes: > On 07/30/2012 10:52 AM, Carl Eugen Hoyos wrote: > >> The conversion takes place (I mean no error nor warning), > >> but the result is not visible with any player I use. > > Which player? > > - gstreamer based ones > - VLC I tested with your command line and sample and the resulting webm plays fine with MPlayer and ffplay. Carl Eugen From pb at das-werkstatt.com Mon Jul 30 11:40:00 2012 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 30 Jul 2012 11:40:00 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120728004930.GF23570@kiste2> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> <20120728004930.GF23570@kiste2> Message-ID: <20120730114000.66816m8nbu1yck1c@webmail.tuwien.ac.at> Quoting Michael Niedermayer : > On Thu, Jul 26, 2012 at 12:59:59PM +0200, Peter B. wrote: >> I just ran into a really weird issue with "born digital" video material: >> >> I've tried to transcode a FFv1/PCM lossless file (720x576 >> @29.970fps) to a DVD conform MPEG, but mencoder threw the following >> error message: >> >> "MPEG1/2 does not support 2997/100 fps" >> >> If I tell mencoder to use "-ofps 30000/1001" everything works fine. >> >> >> Now, my question is: >> Can I use ffmpeg to "clean" my original file to have the fps stored >> "correctly"? >> >> I've tried this: >> "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" >> >> but the resulting file still had the "wrong" fps (2997/100). > > i cant reproduce this > here: > Stream #0:0, 1, 100/2997: Video: ffv1 (FFV1 / 0x31564646), yuv420p, > 720x576, 100/2997, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc > changes to: > Stream #0:0, 1, 1001/30000: Video: ffv1 (FFV1 / 0x31564646), > yuv420p, 720x576, 1001/30000, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 > tbn, 29.97 tbc Hm... How do you get the output which shows the exact fps as fraction (100/2997, 1001/30000) - and why are they written reversed (100/2997 != 2997/100) ? I only get this: //--------------------------------- $ ffprobe cer-s1-5v-125-000.avi //--------------------------------- ffprobe version N-42853-g0e1925d Copyright (c) 2007-2012 the FFmpeg developers built on Jul 24 2012 15:26:10 with gcc 4.4.5 (Debian 4.4.5-8) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-avfi lter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libschroedinger libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 44.100 / 54. 44.100 libavformat 54. 20.100 / 54. 20.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 3.100 / 3. 3.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [avi @ 0xa48a5e0] non-interleaved AVI Input #0, avi, from 'cer-s1-5v-125-000.avi': Metadata: IARL : cer-s1-5v-125 date : 2012-06-13T00:23:58+02:00 title : "Der Riese vom Steinfeld" (op. 125) track : 1 / 15 encoder : Lavf52.111.0 Duration: 00:00:50.05, start: 0.000000, bitrate: 70654 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x486, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s //--------------------------------- I'll try again with current git, but as you can see I've been using a quite recently compiled version (24. July) Thanks, Pb From pb at das-werkstatt.com Mon Jul 30 11:43:26 2012 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 30 Jul 2012 11:43:26 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> Message-ID: <20120730114326.17391u0l3u9uiwji@webmail.tuwien.ac.at> Quoting Robert Kr?ger : > If you wouldn't just remux but reencode (which you don't want, I know) > you could use the setpts filter to do the job but AKAIK filters do not > work for remuxing by design and I do not know of a similar mechanism > for remuxing (something like a packet filter). The current docs could > also be interpreted in such a way that the "-r" option _before_ the > input should do the job but it doesn't. Since it's lossless I could as well reencode. However, I agree with you and think that it would be good if remuxing was enough, because then this problem could also be solved in case of lossy codecs. > From docs: "As an input option, ignore any timestamps stored in the > file and instead generate timestamps assuming constant frame rate > fps." > > but a quick glimpse at the code doesn't look as if it is used in the > remuxing case. In fact, I have a simple example with a mov file I > generated with 2997/100 for which it does not work even if I recode > the video stream, which is kind of strange. I had once hacked a > command line option that manipulated the video package timestamps by a > factor before handing them over to the decoder (I think) and that did > work for that use case. however, I doubt that was a clean solution and > would be accepted as a patch. The clean solution should probably be to > make the "-r" option before the input work as documented for the > remuxing case. However, I don't know if there are any hidden traps in > that for certain formats (e.g. problems due to inconsistencies between > timestamps in the bitstream and the container). Maybe someone could > comment, if that should be postet as a bug report. Then I will do > that. Michael's message says it's possible to remux and change the fps. I don't know about the current code, but it seems doable already somehow. I'll go check. Thanks, Pb From pb at das-werkstatt.com Mon Jul 30 11:49:54 2012 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 30 Jul 2012 11:49:54 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> Message-ID: <20120730114954.164961ngkgg595fm@webmail.tuwien.ac.at> Quoting Carl Eugen Hoyos : > Peter B. das-werkstatt.com> writes: > >> I've tried to transcode a FFv1/PCM lossless file (720x576 @29.970fps) >> to a DVD conform MPEG, but mencoder threw the following error message: > >> "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" > > Why don't you convert to a DVD-conforming MPEG with FFmpeg if you need it > ' and leave the file untouched if you want an avi? > Or do I misunderstand? The AVI is the long-term preservation copy for the archive - and the MPEG is just the proxy copy. The AVI was transcoded from a digital lossy source, which is the reason why the 2997/100 silently sneaked in. Since the AVI is *the* archive copy, I want them to be "clean" - which means that if I have NTSC fps, I want all files to behave the same way, and not "some" like this and "some" like that... ;) I'd love to use ffmpeg for transcoding, but as I've mentioned in previous posts here already, I couldn't use ffmpeg for handling multiple AVI segments as input files (000.avi, 001.avi, ...) in one step. Mencoder can do this - *and* I've verified that it's not losing any frames and/or audio-samples. As I know, you've told me that mencoder is practically unmaintained, I'm also not happy with the current situation, but as I've understood the threads about splitting/concatenating files with ffmpeg, it's not going to change - right? Thanks, Pb From krueger at lesspain.de Mon Jul 30 13:22:31 2012 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Mon, 30 Jul 2012 13:22:31 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120730114326.17391u0l3u9uiwji@webmail.tuwien.ac.at> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> <20120730114326.17391u0l3u9uiwji@webmail.tuwien.ac.at> Message-ID: On Mon, Jul 30, 2012 at 11:43 AM, Peter B. wrote: > Quoting Robert Kr?ger : > > >> If you wouldn't just remux but reencode (which you don't want, I know) >> you could use the setpts filter to do the job but AKAIK filters do not >> work for remuxing by design and I do not know of a similar mechanism >> for remuxing (something like a packet filter). The current docs could >> also be interpreted in such a way that the "-r" option _before_ the >> input should do the job but it doesn't. > > > Since it's lossless I could as well reencode. > However, I agree with you and think that it would be good if remuxing was > enough, because then this problem could also be solved in case of lossy > codecs. > > >> From docs: "As an input option, ignore any timestamps stored in the >> file and instead generate timestamps assuming constant frame rate >> fps." >> >> but a quick glimpse at the code doesn't look as if it is used in the >> remuxing case. In fact, I have a simple example with a mov file I >> generated with 2997/100 for which it does not work even if I recode >> the video stream, which is kind of strange. I had once hacked a >> command line option that manipulated the video package timestamps by a >> factor before handing them over to the decoder (I think) and that did >> work for that use case. however, I doubt that was a clean solution and >> would be accepted as a patch. The clean solution should probably be to >> make the "-r" option before the input work as documented for the >> remuxing case. However, I don't know if there are any hidden traps in >> that for certain formats (e.g. problems due to inconsistencies between >> timestamps in the bitstream and the container). Maybe someone could >> comment, if that should be postet as a bug report. Then I will do >> that. > > > Michael's message says it's possible to remux and change the fps. I don't > know about the current code, but it seems doable already somehow. > > I'll go check. > > > Thanks, > Pb I checked again with a test case. I made a small mjpeg/mov file named test-2997.mov with 2997/100 FPS, ffprobe displays r_frame_rate=2997/100 avg_frame_rate=2997/100 when I do: ffmpeg -r 30000/1001 -i test-2997.mov -vcodec copy -acodec copy test-30000-1001-r-input.mov this, according to docs should ignore the timestamps and interprete it as 30000/1001, which does not work. Resulting file is displayed in ffprobe as having: r_frame_rate=2997/100 avg_frame_rate=2997/100 when I do: ffmpeg -i test-2997.mov -vcodec copy -acodec copy -r 30000/1001 test-30000-1001-r-output.mov The resulting file does indeed have 2997/100 as michael said. when I use this for a little more extreme conforming, e.g. slowing down 2997/100 to 25 fps, i.e.: ffmpeg -i test-2997.mov -vcodec copy -acodec copy -r 25 test-25-r-output.mov I get: [mov @ 0x101009e00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3 >= 3 av_interleaved_write_frame(): Invalid argument It would be nice to know what kind of behaviour is expected, because either the docs are wrong or there are some bugs: -r Set frame rate (Hz value, fraction or abbreviation). As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. -> this does not work for remuxing at least not in my case. should I file a bug report for that or submit a documentation patch stating that this is not supported when only remuxing? As an output option, duplicate or drop input frames to achieve constant output frame rate fps -> If this is correct, this is not really what someone wants when conforming to a frame rate. in your case 2997/100 -> 30000/1001 this is hardly noticable because the error is one frame every 9 1/2 hours (if I calculated correctly), so practically nothing but conforming 24 -> 25 or similar stuff would yield visible problems. So the conforming option, i.e. just reinterpreting timestamps is not available in ffmpeg currently when remuxing AFAICS. That was what I hacked with my packet-level timestamp manipulation code but that is IMHO from a user's point of view really what -r should do as an input option if the docs are supposed to stay that way. Regards, Robert From pb at das-werkstatt.com Mon Jul 30 16:25:29 2012 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 30 Jul 2012 16:25:29 +0200 Subject: [FFmpeg-user] ffprobe documentation seems mixed up with ffmpeg docs Message-ID: <20120730162529.441956g9ruhj7dy1@webmail.tuwien.ac.at> I just wanted to consult the ffprobe documentation [1] and it seems to be mixed up with parts which actually apply to transcoding using ffmpeg, rather than what ffprobe does. e.g. The example mentioned in the section "Options > AVOptions" shows using "ffmpeg" for transcoding flac to mp3. Other parts of that documentation also seem to actually apply to ffmpeg rather than ffprobe. In case this is intended, I think it's good if you knew that it might be confusing ;) How is this text edited? If it's somewhere in the repositories, could someone (for example: me) propose patches? Regards, Pb == References: [1] http://ffmpeg.org/ffprobe.html [2] http://ffmpeg.org/ffprobe.html#AVOptions From pb at das-werkstatt.com Mon Jul 30 16:29:08 2012 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 30 Jul 2012 16:29:08 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120728004930.GF23570@kiste2> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> <20120728004930.GF23570@kiste2> Message-ID: <20120730162908.11095kms01h1c20k@webmail.tuwien.ac.at> Quoting Michael Niedermayer : > On Thu, Jul 26, 2012 at 12:59:59PM +0200, Peter B. wrote: >> I just ran into a really weird issue with "born digital" video material: >> >> I've tried to transcode a FFv1/PCM lossless file (720x576 >> @29.970fps) to a DVD conform MPEG, but mencoder threw the following >> error message: >> >> "MPEG1/2 does not support 2997/100 fps" >> >> If I tell mencoder to use "-ofps 30000/1001" everything works fine. >> >> >> Now, my question is: >> Can I use ffmpeg to "clean" my original file to have the fps stored >> "correctly"? >> >> I've tried this: >> "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi" >> >> but the resulting file still had the "wrong" fps (2997/100). > > i cant reproduce this > here: > Stream #0:0, 1, 100/2997: Video: ffv1 (FFV1 / 0x31564646), yuv420p, > 720x576, 100/2997, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc > changes to: > Stream #0:0, 1, 1001/30000: Video: ffv1 (FFV1 / 0x31564646), > yuv420p, 720x576, 1001/30000, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 > tbn, 29.97 tbc I've now tried it with the current git version of ffmpeg and it indeed worked as expected. The same commandline as posted above, but my previous attempt was using Debian's ffmpeg version (0.7). I was now successfully able to remux the file with the proper framerate. Thank you very much! Pb From pb at das-werkstatt.com Mon Jul 30 16:31:41 2012 From: pb at das-werkstatt.com (Peter B.) Date: Mon, 30 Jul 2012 16:31:41 +0200 Subject: [FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps? In-Reply-To: <20120730114000.66816m8nbu1yck1c@webmail.tuwien.ac.at> References: <20120726125959.19431d0rmlvxmrsf@webmail.tuwien.ac.at> <20120728004930.GF23570@kiste2> <20120730114000.66816m8nbu1yck1c@webmail.tuwien.ac.at> Message-ID: <20120730163141.15045c77oezwcgjx@webmail.tuwien.ac.at> Quoting "Peter B." : > How do you get the output which shows the exact fps as fraction > (100/2997, 1001/30000) - and why are they written reversed (100/2997 > != 2997/100) ? Figured it out: "$ ffprobe -v debug input.avi" But as I'm still curious: Why is the fraction written inversed (as asked above)? Thanks, Pb From rogerdpack2 at gmail.com Mon Jul 30 17:57:12 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 30 Jul 2012 09:57:12 -0600 Subject: [FFmpeg-user] FFmpeg in Android Platform - Too slow... In-Reply-To: References: Message-ID: > Please, let me know if someone knows how to simply this command execution > and improving ffmpeg performance... You might be able to try a different output video codec, if you're using ffmpeg binary then please paste the full uncute command line and console here. If video codec isn't what's using your cpu then your only option is I guess to profile the code somehow and see where bottlenecks are and see if you can alleviate them (for instance, is it waiting on disk for too long?) From rogerdpack2 at gmail.com Mon Jul 30 21:04:35 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 30 Jul 2012 13:04:35 -0600 Subject: [FFmpeg-user] How do I use the HW accerlator? In-Reply-To: <50344A4E-0073-4477-A38C-55CD3271D778@mimectl> References: <46935cf30fb6e0be99f4ea5ef8ed84ea@win4net.com> <361393b8e6ff95de7948fa62fea02a1f@win4net.com> <50344A4E-0073-4477-A38C-55CD3271D778@mimectl> Message-ID: > I've similarly been battling to get DXVA2 to work for H264 decoding. The following is what I've learned: > > libavcodec does include some support for DXVA2, but it doesn't do all the work necessary to be able to automatically use DXVA2. > The "Player" (i.e. the program that you write to use libavcodec) needs to do half of the work. ffmpeg.exe and ffplay.exe have not been written to use DXVA2. > Everyone points to the VLC open source player as the best (only) example of how to use DXVA2 with libavcodec. Unfortunately VLC is very complex > and hard to even recompile on Windows. It would be great to have a simple/minimal player example that could demonstrate how to do it. > > From what I understand the basic steps are to: > 1) get ffmpeg libraries to compile with DXVA2 support enabled. > 2) Create a DirectXVideoDecoderService (http://msdn.microsoft.com/en-us/library/windows/desktop/aa965245(v=vs.85).aspx#Decoding) > 3) Choose a Decoder configuration and create an array of Direct3DSurfaces > 3) Create a dxva_context structure and initialize it's fields with the above objects > 4) Get the AVCodecContext for your video stream, e.g: pCodecCtx = pFormatCtx->streams[videoStream]->codec > 5) Before you open the decoder, override the get_format, get_buffer, release_buffer functions of this context, eg: pCodecCtx->get_format = MyGetFormat > 6) Set the hwaccel_context of this context to the dxva_context structure created earlier. > 7) Your get_format function needs to select the PIX_FMT_DXVA2_VLD pixel format. > 8) Your get_buffer function needs to return one of your unused Direct3DSurfaces > 9) Your release_buffer function needs to note that your Direct3DSurface is now available to be reused. > > I've followed these steps and got it to run. It definitely does use the DXVA accelerator and it doesn't crash, but the output frames are garbled rubbish, which by the was is the same output that I get when I turn on DXVA2 decoding in VLC. I suspect the problem is that I haven't set all of the corrrect parameter values when configuring my DirectX objects to match the video format that I'm trying to play. I know that DVXA2 does definitely work on my machine because I can see Windows Media Player using it successfully. Perhaps you could publish it as an example app somewhere? (I mean...ideally all this code would be contained with ffmpeg, yes? but still for example use.) -roger- From rogerdpack2 at gmail.com Mon Jul 30 21:05:36 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 30 Jul 2012 13:05:36 -0600 Subject: [FFmpeg-user] ffmpeg build error In-Reply-To: References: Message-ID: ld: symbol(s) not found for architecture armv7 collect2: ld returned 1 exit status C compiler test failed. is mentioned at the end. Wonder why... From cehoyos at ag.or.at Mon Jul 30 22:16:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 30 Jul 2012 20:16:49 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg build error References: Message-ID: niko 163.com> writes: > Attachment (config.log): application/octet-stream, 75 KiB First, allow me to say that afaict, you are expected to post (not attach) your configure line and the end config.log, in this case the part beginning with check_ld. > ld: warning: directory not found for option > '-L/Users/niko/Desktop/src/vlc/extras/contrib/hosts/arm-apple-darwin10/ios/lib' I suspect you have to pass existing library directories as --extra-ldflags Carl Eugen From fernando.martinelli at gmail.com Mon Jul 30 22:36:57 2012 From: fernando.martinelli at gmail.com (Fernando Martinelli) Date: Mon, 30 Jul 2012 22:36:57 +0200 Subject: [FFmpeg-user] How to concatenate mp4 files using ffmpeg? In-Reply-To: References: Message-ID: Thanks a lot Roger! 2012/7/26 Roger Pack > > What I want to do is concatenate several mp4 files with the same fps, > > resolution and other characteristics into an output file whose length is > > the sum of the lengths of the input files (that is, it plays all input > > files one after the other). I should be something simple, but I only > > managed to do it with mencoder: > > see concat: > http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Regards/ viele Gr??e, Fernando From rogerdpack2 at gmail.com Tue Jul 31 00:50:55 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 30 Jul 2012 16:50:55 -0600 Subject: [FFmpeg-user] ffmpeg as repeater In-Reply-To: <5011C521.1060501@gmail.com> References: <500DDC8E.90204@gmail.com> <5011C521.1060501@gmail.com> Message-ID: > I was using relaying one rtmp stream and encoding and supplying to another > url > But the problem was even when no one was watching it it was still pulling > stream from the server. > I am using wowza for distrubution. Wowza doesnt stream or use data when no > one is using but > ffmpeg works always. > I want ffmpeg to work when there is some request and stop if there is no one > watching. > If we can i can use ffmpeg for distribution instead of wowza but i am not > sure if i can use it as a server. Yeah, since ffmpeg isn't a server "in itself" it basically doesn't know when nobody is watching "on the other end" so you'd need to send it a message (and/or restart it) using some other system... From rogerdpack2 at gmail.com Tue Jul 31 00:56:32 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 30 Jul 2012 16:56:32 -0600 Subject: [FFmpeg-user] play m3 u In-Reply-To: <5011C57B.8000207@gmail.com> References: <50097494.6010001@gmail.com> <5011C57B.8000207@gmail.com> Message-ID: >>> "http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:" Does the url work? Does ffmpeg support m3u? $ ffplay -i http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u c:\dev\3.0\dps_trunk>c:\installs\ffmpeg-20120706-git-8293a21-win32-shared\bin\ff play.exe -i http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u ffplay version N-42288-g8293a21 Copyright (c) 2003-2012 the FFmpeg developers built on Jul 5 2012 20:58:08 with gcc 4.7.1 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. 64.100 / 51. 64.100 libavcodec 54. 33.100 / 54. 33.100 libavformat 54. 15.100 / 54. 15.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 0.101 / 3. 0.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u: Input/output error From mylaneza at gmail.com Tue Jul 31 01:15:28 2012 From: mylaneza at gmail.com (Ignacio Gonzalez) Date: Mon, 30 Jul 2012 18:15:28 -0500 Subject: [FFmpeg-user] play m3 u In-Reply-To: References: <50097494.6010001@gmail.com> <5011C57B.8000207@gmail.com> Message-ID: Hi there, i have tested ffplay with .m3u files but your uri does not work when i tested. 2012/7/30 Roger Pack > >>> "http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:" > > Does the url work? > Does ffmpeg support m3u? > > $ ffplay -i http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u > > > c:\dev\3.0\dps_trunk>c:\installs\ffmpeg-20120706-git-8293a21-win32-shared\bin\ff > play.exe -i http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u > ffplay version N-42288-g8293a21 Copyright (c) 2003-2012 the FFmpeg > developers > built on Jul 5 2012 20:58:08 with gcc 4.7.1 > 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. 64.100 / 51. 64.100 > libavcodec 54. 33.100 / 54. 33.100 > libavformat 54. 15.100 / 54. 15.100 > libavdevice 54. 1.100 / 54. 1.100 > libavfilter 3. 0.101 / 3. 0.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 15.100 / 0. 15.100 > libpostproc 52. 0.100 / 52. 0.100 > http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u: Input/output error > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From focustelev at gmail.com Tue Jul 31 09:31:21 2012 From: focustelev at gmail.com (focus television) Date: Tue, 31 Jul 2012 08:31:21 +0100 Subject: [FFmpeg-user] play m3 u In-Reply-To: References: <50097494.6010001@gmail.com> <5011C57B.8000207@gmail.com> Message-ID: <501789C9.1030101@gmail.com> "http://dm800se/web/stream.m3u?ref=1:0:1:C75D:96B:2:11A0000:0:0:0:" Does the url work? Does ffmpeg support m3u? $ ffplay -i http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u I have asked the same question and it needs fixing on ffmpeg i think. Vlc plays but ffplay or ffmpeg doesnt work... Developers need to work on this or it is not supported. From bojan85 at gmail.com Tue Jul 31 14:42:55 2012 From: bojan85 at gmail.com (=?ISO-8859-2?Q?Bojan_Petrovi=E6?=) Date: Tue, 31 Jul 2012 14:42:55 +0200 Subject: [FFmpeg-user] Audio sync problem Message-ID: Hi everyone, I'm trying to capture the screen and sound on Windows. I can get a good result when capturing either video or audio. But when I capture both audio is choppy and too fast. Here are commands I used: gives good audio ffmpeg.exe -f dshow -i audio="virtual-audio-capturer" -acodec ac3 -t 10 asdf.mp4 gives good video ffmpeg.exe -f dshow -i video="UScreenCapture" -b 500k -vcodec libx264 -crf 0 -preset UltraFast -tune ZeroLatency -t 10 asdf.mp4 gives good video BUT audio is too fast and choppy ffmpeg.exe -f dshow -i video="UScreenCapture":audio="virtual-audio-capturer" -vcodec libx264 -crf 0 -preset UltraFast -tune ZeroLatency -acodec ac3 -t 10 asdf.mp4 CPU is not maxing out, so I think it's not a performance problem. Does anybody know where the problem might and has anybody done this with success? Thanks, Bojan From koxaniy at mail.ru Tue Jul 31 14:29:47 2012 From: koxaniy at mail.ru (Tuuls) Date: Tue, 31 Jul 2012 05:29:47 -0700 (PDT) Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream In-Reply-To: <20120728132326.GA10040@phare.normalesup.org> References: <20120728132326.GA10040@phare.normalesup.org> Message-ID: <1343737787588-4652172.post@n4.nabble.com> In last version of ffmpeg , builds for windows , "ass" filter not working :( -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Encoding-SRT-subtitle-into-an-MPEG-TS-stream-tp4652131p4652172.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Tue Jul 31 14:58:27 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Tue, 31 Jul 2012 14:58:27 +0200 Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream In-Reply-To: <1343737787588-4652172.post@n4.nabble.com> References: <20120728132326.GA10040@phare.normalesup.org> <1343737787588-4652172.post@n4.nabble.com> Message-ID: <20120731125827.GA11241@phare.normalesup.org> Le quartidi 14 thermidor, an CCXX, Tuuls a ?crit?: > In last version of ffmpeg , builds for windows , "ass" filter not working :( Works for mi right now in my working tree. Your bug report is not detailed enough. http://ffmpeg.org/bugreports.html 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 coniophora at gmail.com Tue Jul 31 16:00:19 2012 From: coniophora at gmail.com (Jim Worrall) Date: Tue, 31 Jul 2012 08:00:19 -0600 Subject: [FFmpeg-user] Concatenating 30fps video with audio, using ffmpeg In-Reply-To: <50157F30.3060009@web.de> References: <50157F30.3060009@web.de> Message-ID: On Jul 29, 2012, at 12:21 PM, Olumide wrote: > I am trying to concatenate a 30fps video with a 44k audio file but the video and audio portions of the output are out of synch. If you have a video and audio file, and you want to put them together in one file, in sync, that is not concatenating. Concatenate means to put two files together end-to-end, so the second one begins where the first one ends. It sounds as if you want to mux the video and audio streams from your two files into one container file, so they play simultaneously. Jim From koxaniy at mail.ru Tue Jul 31 15:59:26 2012 From: koxaniy at mail.ru (Tuuls) Date: Tue, 31 Jul 2012 06:59:26 -0700 (PDT) Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream In-Reply-To: <20120731125827.GA11241@phare.normalesup.org> References: <20120728132326.GA10040@phare.normalesup.org> <1343737787588-4652172.post@n4.nabble.com> <20120731125827.GA11241@phare.normalesup.org> Message-ID: <1343743166288-4652175.post@n4.nabble.com> most informatoins http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&p=993&hilit=ass#p993 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Encoding-SRT-subtitle-into-an-MPEG-TS-stream-tp4652131p4652175.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Tue Jul 31 16:30:15 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Tue, 31 Jul 2012 16:30:15 +0200 Subject: [FFmpeg-user] Encoding SRT subtitle into an MPEG-TS stream In-Reply-To: <1343743166288-4652175.post@n4.nabble.com> References: <20120728132326.GA10040@phare.normalesup.org> <1343737787588-4652172.post@n4.nabble.com> <20120731125827.GA11241@phare.normalesup.org> <1343743166288-4652175.post@n4.nabble.com> Message-ID: <20120731143015.GA31311@phare.normalesup.org> Le quartidi 14 thermidor, an CCXX, Tuuls a ?crit?: > most informatoins > http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&p=993&hilit=ass#p993 I do not have windows and can not do anything with a truncated non-debug console-output. All I can say is that it works for me. 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 mlefe74 at gmail.com Tue Jul 31 17:29:45 2012 From: mlefe74 at gmail.com (LsBender) Date: Tue, 31 Jul 2012 08:29:45 -0700 (PDT) Subject: [FFmpeg-user] obtaining an image from a video stream Message-ID: <1343748585236-4652178.post@n4.nabble.com> Hello everyone, I was wondering if I can capture an image from a video stream (H.264 cam) with FFmpeg? The aim is to rapidly know if all the cameras I have are working properly (quality of pictures) Thanks in advance for your help Marc -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/obtaining-an-image-from-a-video-stream-tp4652178.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rhodri at kynesim.co.uk Tue Jul 31 18:42:15 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 31 Jul 2012 17:42:15 +0100 Subject: [FFmpeg-user] obtaining an image from a video stream In-Reply-To: <1343748585236-4652178.post@n4.nabble.com> References: <1343748585236-4652178.post@n4.nabble.com> Message-ID: On Tue, 31 Jul 2012 16:29:45 +0100, LsBender wrote: > Hello everyone, > > I was wondering if I can capture an image from a video stream (H.264 cam) > with FFmpeg? Yes. Since you haven't told us what sort of stream, or even what sort of image, I'd be guessing if I said much more than that. > The aim is to rapidly know if all the cameras I have are working properly > (quality of pictures) You'll get a better idea of the quality of picture by actually watching the stream on a player (mplayer or VLC, say). Stills from videos tend not to be great quality. -- Rhodri James Kynesim Ltd From mlefe74 at gmail.com Tue Jul 31 18:53:14 2012 From: mlefe74 at gmail.com (LsBender) Date: Tue, 31 Jul 2012 09:53:14 -0700 (PDT) Subject: [FFmpeg-user] obtaining an image from a video stream In-Reply-To: References: <1343748585236-4652178.post@n4.nabble.com> Message-ID: <1343753594477-4652180.post@n4.nabble.com> Hi Rhodri James and thanks for your time. This is an H.264 stream. For the sort of images, PNG or BMP could be great, even JPEG. Indeed default on some camera could be seen with only one picture, they are quite visible. Moreover I have a lot of camera to test so a command line which gave me one picture for every camera stream will allow me to test them faster. Once again thanks -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/obtaining-an-image-from-a-video-stream-tp4652178p4652180.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From delentef at gmail.com Tue Jul 31 19:14:36 2012 From: delentef at gmail.com (Fabrice DELENTE) Date: Tue, 31 Jul 2012 19:14:36 +0200 Subject: [FFmpeg-user] CODEC_FLAG_SVCD_SCAN_OFFSET deprecated? Message-ID: <20120731171436.GA23504@smtp.free.fr> Hello. I'm trying to compile transcode, but compilation fails with export_ffmpeg.c:452:34: error: ?CODEC_FLAG_SVCD_SCAN_OFFSET? undeclared (first use in this function) It seems that ?CODEC_FLAG_SVCD_SCAN_OFFSET? should be defined in /usr/include/libavcodec/avcodec.h However, I have downloaded the latest ffmpeg git, and libavcodec/avcodec.h doesn't define CODEC_FLAG_SVCD_SCAN_OFFSET. Is transcode out of date, or have I not downloaded the ffmpeg git version uncorrectly? Thanks. -- F. Delente From mbradshaw at sorensonmedia.com Tue Jul 31 19:19:20 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 31 Jul 2012 11:19:20 -0600 Subject: [FFmpeg-user] obtaining an image from a video stream In-Reply-To: <1343748585236-4652178.post@n4.nabble.com> References: <1343748585236-4652178.post@n4.nabble.com> Message-ID: On Tue, Jul 31, 2012 at 9:29 AM, LsBender wrote: > Hello everyone, > > I was wondering if I can capture an image from a video stream (H.264 cam) > with FFmpeg? > > The aim is to rapidly know if all the cameras I have are working properly > (quality of pictures) > What have you tried? Simply googling "ffmpeg save frame" gave this page: http://muzso.hu/2008/12/28/extracting-thumbnails-still-images-frames-from-a-video-with-ffmpeg Which I think will answer your question. --Michael From rhodri at kynesim.co.uk Tue Jul 31 19:25:27 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 31 Jul 2012 18:25:27 +0100 Subject: [FFmpeg-user] obtaining an image from a video stream In-Reply-To: <1343753594477-4652180.post@n4.nabble.com> References: <1343748585236-4652178.post@n4.nabble.com> <1343753594477-4652180.post@n4.nabble.com> Message-ID: On Tue, 31 Jul 2012 17:53:14 +0100, LsBender wrote: > Hi Rhodri James and thanks for your time. > > This is an H.264 stream. > For the sort of images, PNG or BMP could be great, even JPEG. I'll take a wild stab in the dark and suggest that it's an RTP stream containing H.264. Can you watch the camera stream using "mplayer rtsp:///" ? > Indeed default on some camera could be seen with only one picture, they > are quite visible. > Moreover I have a lot of camera to test so a command line which gave me > one picture for every camera stream will allow me to test them faster. I'll take your word for it, but personally I think that this will be a slower and less reliable test than just watching the stream for a few seconds. -- Rhodri James Kynesim Ltd From mbradshaw at sorensonmedia.com Tue Jul 31 19:27:16 2012 From: mbradshaw at sorensonmedia.com (Michael Bradshaw) Date: Tue, 31 Jul 2012 11:27:16 -0600 Subject: [FFmpeg-user] CODEC_FLAG_SVCD_SCAN_OFFSET deprecated? In-Reply-To: <20120731171436.GA23504@smtp.free.fr> References: <20120731171436.GA23504@smtp.free.fr> Message-ID: On Tue, Jul 31, 2012 at 11:14 AM, Fabrice DELENTE wrote: > Hello. > > I'm trying to compile transcode, but compilation fails with > > export_ffmpeg.c:452:34: error: ?CODEC_FLAG_SVCD_SCAN_OFFSET? undeclared > (first use in this function) > > It seems that ?CODEC_FLAG_SVCD_SCAN_OFFSET? should be defined in > /usr/include/libavcodec/avcodec.h > > However, I have downloaded the latest ffmpeg git, and > libavcodec/avcodec.h doesn't define CODEC_FLAG_SVCD_SCAN_OFFSET. > > Is transcode out of date, or have I not downloaded the ffmpeg git > version uncorrectly? > transcode is out of date. See http://git.ffmpeg.org/doxygen/trunk/group__deprecated__flags.html It doesn't seem to be in FFmpeg anymore. There's a patch out there for transcode at http://www.linuxfromscratch.org/patches/blfs/svn/transcode-1.1.7-ffmpeg-1.patch transcode looks like a dead project though. I'd tell you to contact their mailing list, but judging by their lack of commits, I doubt they have a working mailing list. Why not just use ffmpeg if you want to transcode something? --Michael From matt.bione at gmail.com Tue Jul 31 20:11:18 2012 From: matt.bione at gmail.com (Matt Bione) Date: Tue, 31 Jul 2012 11:11:18 -0700 Subject: [FFmpeg-user] custom video enhancements using ffmpeg In-Reply-To: <1343528464.4783.140661107883785.182486B3@webmail.messagingengine.com> References: <1343528464.4783.140661107883785.182486B3@webmail.messagingengine.com> Message-ID: Thanks for all the suggestions. What if I want to use a simple scene cut detector as the above filter ? I see that there is a sc_threshold but I think that is used in encoding the stream in general and deciding on when to put I-frames in particular. Is there a way to say that I want all the frames where the sc_threshold is crossed to be dumped into a jpg ? Thanks Matt On Sat, Jul 28, 2012 at 7:21 PM, Lou wrote: > On Fri, Jul 27, 2012, at 09:11 PM, Matt Bione wrote: > > Hi, > > I am looking to do the following : > > Add some custom enhancement (using my own code using opencv or something > > similar) to a video. > > > > I am looking at ffmpeg to produce raw frames which I can tweak and then > > give back to the ffmpeg to transcode it back. Is there a way to do this > > using the ffmpeg command line tools - maybe using pipes or creating > > streams > > ? I can think of a really inefficient way to do this - dump every frame > > to > > the disk using ffmpeg (e.g. , ffmpeg -i video.mpg image%d.jpg); read > > those > > files and apply my modifications to those images and finally call ffmpeg > > to > > produce a video using those frames(e.g. ffmpeg -f image2 -i image%d.jpg > > video.mpg ). But hopefully there is a better way that someone can point > > me > > to ? > > > > Regards > > Matt > > You can pipe from and to ffmpeg. Possibly overly simple example: > > ffmpeg -i input -f - | | ffmpeg -i - output > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Tue Jul 31 20:14:33 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 31 Jul 2012 12:14:33 -0600 Subject: [FFmpeg-user] Audio sync problem In-Reply-To: References: Message-ID: > gives good video BUT audio is too fast and choppy > ffmpeg.exe -f dshow -i > video="UScreenCapture":audio="virtual-audio-capturer" -vcodec libx264 -crf > 0 -preset UltraFast -tune ZeroLatency -acodec ac3 -t 10 asdf.mp4 Have you tried with "split" input, one with -i video= and one with -i audio=? In general though, it's a problem I want to/wish to solve but I'm not sure why it fails. From luap161 at yahoo.co.uk Sun Jul 29 23:22:55 2012 From: luap161 at yahoo.co.uk (paul aungiers) Date: Sun, 29 Jul 2012 22:22:55 +0100 (BST) Subject: [FFmpeg-user] Applian Replay Media Catcher 4 won't record proper screen ratio. Need ffmpeg codec to help. Message-ID: <1343596975.44892.YahooMailNeo@web28705.mail.ir2.yahoo.com> ? Dear Sir, My Applian (US company) Replay Media Catcher 4 recorder will not record widescreen pictures propely. They reproduce as 4:3 ratio! Applian technical support say their software is not at fault but rather my PC needs ffmpeg codec in order to make it record ratios properly. Applian will not tell me what kind of ffmpeg codec I need, or where to aquire one from or any helpful details really! I do not know where to turn with this because I want to record widescreen movies as soon as possible. Can you help me at all? What kind of ffmpeg codec would I need? Where could I aquire it from? Is there any specific part of my PC I need to download it to??? My PC is Windows Vista. Hoping you can help, Sincerely P. A From wladi8 at hotmail.com Sun Jul 29 13:30:32 2012 From: wladi8 at hotmail.com (Wladi) Date: Sun, 29 Jul 2012 04:30:32 -0700 (PDT) Subject: [FFmpeg-user] Combining 4 videos in 1 video in raster. In-Reply-To: References: <1343514009077-4652126.post@n4.nabble.com> Message-ID: <1343561432775-4652139.post@n4.nabble.com> Something went wrong with the reply I think... -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Combining-4-videos-in-1-video-in-raster-tp4652126p4652139.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rogerdpack2 at gmail.com Tue Jul 31 21:24:35 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 31 Jul 2012 13:24:35 -0600 Subject: [FFmpeg-user] Applian Replay Media Catcher 4 won't record proper screen ratio. Need ffmpeg codec to help. In-Reply-To: <1343596975.44892.YahooMailNeo@web28705.mail.ir2.yahoo.com> References: <1343596975.44892.YahooMailNeo@web28705.mail.ir2.yahoo.com> Message-ID: > Applian technical support say their software is not at fault but rather my PC needs ffmpeg codec in order to make it record ratios properly. Applian will not tell me what kind of ffmpeg codec I need, or where to aquire one from or any helpful details really! Perhaps they're referring to ffdshow (tryouts)? -r From rogerdpack2 at gmail.com Tue Jul 31 21:43:30 2012 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 31 Jul 2012 13:43:30 -0600 Subject: [FFmpeg-user] --enable-runtime-cpudetection needed for distributable? Message-ID: Hello all. I'm familiar with the fact that using -march=native results in a distributable that "might only run on the machine it was compiled on." Is the same try for ffmpeg if I leave out the --enable-runtime-cpudetect configure flag? What cpu does it use if I leave out that flag? The host cpu? also what is the relationship between --cpu= and --arch= and --enable-runtime-cpudetect, anybody know? Do they just map to gcc's -mtune and -march? Thanks for any help here. -roger- From ffmpeg at csmiller.demon.co.uk Tue Jul 31 22:04:31 2012 From: ffmpeg at csmiller.demon.co.uk (Colin S. Miller) Date: Tue, 31 Jul 2012 21:04:31 +0100 Subject: [FFmpeg-user] mpeg2encode stream id Message-ID: <50183A4F.8000801@csmiller.demon.co.uk> Hi, How do I set the MPEG2 video stream ID to 0xe0, instead of 0x1e0, which seems to be the default value? TIA, Colin S. Miller Sample session - cmiller at miller-pc3:~/menu$ cmiller at miller-pc3:~/menu$ ffmpeg -loop_input -f image2 -i frame.png -t 30 -r 25 -vcodec mpeg2video -acodec null \ -aspect 4:3 out.mpeg FFmpeg version SVN-r0.5.9-4:0.5.9-1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.9-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enabl e-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect - -enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --di sable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jun 10 2012 10:30:14, gcc: 4.4.5 Input #0, image2, from 'frame.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: png, rgb24, 720x576, 25 tbr, 25 tbn, 25 tbc Output #0, mpeg, to 'out.mpeg': Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 750 fps= 26 q=16.0 Lsize= 1108kB time=29.96 bitrate= 303.0kbits/s video:1099kB audio:0kB global headers:0kB muxing overhead 0.826542% cmiller at miller-pc3:~/menu$ ffmpeg -i out.mpeg FFmpeg version SVN-r0.5.9-4:0.5.9-1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.9-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enabl e-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect - -enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --di sable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jun 10 2012 10:30:14, gcc: 4.4.5 Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1) Input #0, mpeg, from 'out.mpeg': Duration: 00:00:29.96, start: 0.500000, bitrate: 302 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 104857 kb/s, 25 tbr, 90k tbn, 50 tbc At least one output file must be specified cmiller at miller-pc3:~/menu$ ffmpeg -version FFmpeg version SVN-r0.5.9-4:0.5.9-1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.9-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enabl e-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect - -enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --di sable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jun 10 2012 10:30:14, gcc: 4.4.5 FFmpeg SVN-r0.5.9-4:0.5.9-1 libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 From bojan85 at gmail.com Tue Jul 31 23:43:31 2012 From: bojan85 at gmail.com (=?ISO-8859-2?Q?Bojan_Petrovi=E6?=) Date: Tue, 31 Jul 2012 23:43:31 +0200 Subject: [FFmpeg-user] Audio sync problem In-Reply-To: References: Message-ID: That's great! Splitting the input did the trick. This the command I used now: ffmpeg.exe -f dshow -i video="screen-capture-recorder" -f dshow -i audio="virtual-audio-capturer" -vcodec libx264 -crf 0 -preset UltraFast -tune ZeroLatency -acodec ac3 -t 7 asdf.mp4 So do you have any clue why it's not working with sources combined? And are there any downsides of split input? And I am getting "real-time buffer 189% full! frame dropped!" messages. Should I worry about those? Here's the whole output: ffmpeg version N-42704-g85761ef Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 20:37:16 with gcc 4.7.1 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --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. 65.100 / 51. 65.100 libavcodec 54. 42.100 / 54. 42.100 libavformat 54. 18.100 / 54. 18.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 [dshow @ 0052e840] Estimating duration from bitrate, this may be inaccurate Input #0, dshow, from 'video=screen-capture-recorder': Duration: N/A, start: 56018.366000, bitrate: N/A Stream #0:0: Video: rawvideo, rgb555le, 1600x900, 30 tbr, 10000k tbn, 30 tbc [dshow @ 0287b3c0] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, dshow, from 'audio=virtual-audio-capturer': Duration: N/A, start: 56018.404000, bitrate: 1411 kb/s Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s [libx264 @ 02877220] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 [libx264 @ 02877220] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit [libx264 @ 02877220] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=2 lookahead_threads=2 sliced_threads=1 slices=2 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0 Output #0, mp4, to 'asdf.mp4': Metadata: encoder : Lavf54.18.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 1600x900, q=-1--1, 10000k tbn, 30 tbc Stream #0:1: Audio: ac3 ([165][0][0][0] / 0x00A5), 44100 Hz, stereo, flt, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libx264) Stream #1:0 -> #0:1 (pcm_s16le -> ac3) Press [q] to stop, [?] for help frame= 16 fps=0.0 q=0.0 size= 701kB time=00:00:00.48 bitrate=11914.0kbits/s frame= 30 fps= 29 q=0.0 size= 748kB time=00:00:00.89 bitrate=6813.0kbits/s dup=1 drop=0 frame= 45 fps= 29 q=0.0 size= 955kB time=00:00:01.38 bitrate=5638.0kbits/s dup=1 drop=0 frame= 60 fps= 29 q=0.0 size= 1014kB time=00:00:01.90 bitrate=4352.2kbits/s dup=1 drop=0 frame= 76 fps= 30 q=0.0 size= 1127kB time=00:00:02.43 bitrate=3799.5kbits/s dup=1 drop=0 frame= 89 fps= 29 q=0.0 size= 1199kB time=00:00:02.88 bitrate=3406.4kbits/s dup=1 drop=0 real-time buffer 189% full! frame dropped! frame= 107 fps= 29 q=0.0 size= 1371kB time=00:00:03.47 bitrate=3230.3kbits/s dup=7 drop=0 real-time buffer 189% full! frame dropped! [dshow @ 0052e840] real-time buffer 189% full! frame dropped! Last message repeated 2 times frame= 116 fps= 28 q=0.0 size= 1738kB time=00:00:03.72 bitrate=3826.2kbits/s dup=7 drop=3 real-time buffer 189% full! frame dropped! [dshow @ 0052e840] real-time buffer 189% full! frame dropped! Last message repeated 5 times frame= 125 fps= 27 q=0.0 size= 1803kB time=00:00:04.06 bitrate=3630.4kbits/s dup=8 drop=3 real-time buffer 189% full! frame dropped! [dshow @ 0052e840] real-time buffer 189% full! frame dropped! Last message repeated 3 times frame= 144 fps= 28 q=0.0 size= 4129kB time=00:00:04.69 bitrate=7202.9kbits/s dup=16 drop=3 real-time buffer 189% full! frame dropped! [dshow @ 0052e840] real-time buffer 189% full! frame dropped! frame= 162 fps= 28 q=0.0 size= 4302kB time=00:00:05.28 bitrate=6664.3kbits/s dup=21 drop=3 real-time buffer 189% full! frame dropped! frame= 178 fps= 29 q=0.0 size= 4385kB time=00:00:05.88 bitrate=6109.0kbits/s dup=22 drop=3 real-time buffer 189% full! frame dropped! [dshow @ 0052e840] real-time buffer 189% full! frame dropped! Last message repeated 2 times frame= 190 fps= 28 q=0.0 size= 4435kB time=00:00:06.26 bitrate=5800.8kbits/s dup=23 drop=3 real-time buffer 189% full! frame dropped! [dshow @ 0052e840] real-time buffer 189% full! frame dropped! frame= 208 fps= 29 q=0.0 size= 4776kB time=00:00:06.82 bitrate=5736.0kbits/s dup=28 drop=3 real-time buffer 189% full! frame dropped! frame= 211 fps= 29 q=0.0 Lsize= 4812kB time=00:00:06.99 bitrate=5636.1kbits/s dup=29 drop=3 video:4642kB audio:164kB subtitle:0 global headers:0kB muxing overhead 0.131516% [libx264 @ 02877220] frame I:1 Avg QP: 0.00 size:665684 [libx264 @ 02877220] frame P:210 Avg QP: 0.00 size: 19461 [libx264 @ 02877220] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 02877220] mb P I16..4: 41.3% 0.0% 0.0% P16..4: 0.4% 0.0% 0.0% 0.0% 0.0% skip:58.4% [libx264 @ 02877220] coded y,u,v intra: 1.8% 1.8% 1.7% inter: 0.3% 0.3% 0.3% [libx264 @ 02877220] i16 v,h,dc,p: 97% 3% 0% 0% [libx264 @ 02877220] kb/s:5405.68 [dshow @ 0052e840] real-time buffer 189% full! frame dropped! On 31 July 2012 20:14, Roger Pack wrote: > > gives good video BUT audio is too fast and choppy > > ffmpeg.exe -f dshow -i > > video="UScreenCapture":audio="virtual-audio-capturer" -vcodec libx264 > -crf > > 0 -preset UltraFast -tune ZeroLatency -acodec ac3 -t 10 asdf.mp4 > > Have you tried with "split" input, one with -i video= and one with -i > audio=? > In general though, it's a problem I want to/wish to solve but I'm not > sure why it fails. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From fasb_2008 at yahoo.com Tue Jul 31 21:10:49 2012 From: fasb_2008 at yahoo.com (Fayaz Ali) Date: Tue, 31 Jul 2012 12:10:49 -0700 (PDT) Subject: [FFmpeg-user] Help needed regarding ffmpeg conversion issue Message-ID: <1343761849.68930.YahooMailNeo@web45014.mail.sp1.yahoo.com> Hi Ffmpeg team , I am having trouble with ffmpeg conversion on my Ubuntu machine .i get the following when i convert any file. File for preset 'normal' not found ?? Failed to state file I am converting as? ffmpeg -i inputfile output file .? Please let me know how can i fix the above or how i can load all its presets that should solve my problem.? Your support will highly be appreciated. Look forward to hear from you soon . thanks Fayaz