From dork at penguinsleuth.com Tue Jul 1 01:39:10 2014 From: dork at penguinsleuth.com (David baker) Date: Mon, 30 Jun 2014 16:39:10 -0700 Subject: [FFmpeg-user] libquvi missing Message-ID: <20140630163910.B81DB1F9@m0048141.ppops.net> >> pkg-config --exists --print-errors libquvi >> Package libquvi was not found in the pkg-config search path. >> Perhaps you should add the directory containing `libquvi.pc' > > I see the next issue coming though: > ffmpeg uses this include in its source: >> #include I get: Package libquvi was not found in the pkg-config search path. Perhaps you should add the directory containing `libquvi.pc' to the PKG_CONFIG_PATH environment variable No package 'libquvi' found I then ran locate libquvi.pc to no avail I'm using version 0.9.2 is it supported? Since I don't have a pc file can I create one or perhaps you can pass me yours? I could probably modify it to my system. Thanks, David _____________________________________________________________ This message sent using Putercop.org's FREE E-Mail Service. Visit www.putercops.org, the Ultimate Cybercop Resource and get your own FREE Cybercop E-Mail account. Several Cybercop domains to choose from! From h.reindl at thelounge.net Tue Jul 1 01:44:14 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 01 Jul 2014 01:44:14 +0200 Subject: [FFmpeg-user] libquvi missing In-Reply-To: <20140630163910.B81DB1F9@m0048141.ppops.net> References: <20140630163910.B81DB1F9@m0048141.ppops.net> Message-ID: <53B1F64E.7000406@thelounge.net> Am 01.07.2014 01:39, schrieb David baker: >>> pkg-config --exists --print-errors libquvi >>> Package libquvi was not found in the pkg-config search path. >>> Perhaps you should add the directory containing `libquvi.pc' >> >> I see the next issue coming though: >> ffmpeg uses this include in its source: >>> #include > > I get: > Package libquvi was not found in the pkg-config search path. > Perhaps you should add the directory containing `libquvi.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libquvi' found > > I then ran locate libquvi.pc to no avail I'm using version 0.9.2 is it supported? > Since I don't have a pc file can I create one or perhaps you can pass me yours? I could probably modify it to my system which operating system? what have you installed? on most distributions devel files are in own sub-packages because they are not needed from 99 out of 100 users, and so on Fedora as example it would be "yum install libquvi-devel" -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From nichot20 at yahoo.com Tue Jul 1 09:07:05 2014 From: nichot20 at yahoo.com (tim nicholson) Date: Tue, 01 Jul 2014 08:07:05 +0100 Subject: [FFmpeg-user] duration discrepancies when transcoding mov with edit lists In-Reply-To: References: Message-ID: <53B25E19.5080702@yahoo.com> On 26/06/14 19:33, Dave Rice wrote: > Hi all, > I believe this issue is related to an open ticket http://trac.ffmpeg.org/ticket/1137, but in the meanwhile I'm looking for advice for a workaround. > > [...] > > My workaround seems to see to use `ffmpeg -i` or ffprobe to get the start time and duration of the video file and then to use these values in -ss and -t during the transcode. So instead of > > ffmpeg -i 1sec1frame_v210_according_to_QT.mov [options here] nowhowlong.mov > I would use > ffmpeg -i 1sec1frame_v210_according_to_QT.mov -ss 0.210210 -t 00:00:01.03 [options here] nowhowlong.mov > > So far that seems to work for me, but is this a sane approach to the issue? the -t approach is one I have adopted to good effect, basically ffmpeg will transcode till it runs out of material, but mov files from capture cards often have mangled frames at the end so the end of the clip is marked back from there. Not usually had an issue with the start though > Dave Rice > _______________________________________________ > [..] -- Tim. Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 From shallow_reg at 163.com Tue Jul 1 09:09:58 2014 From: shallow_reg at 163.com (shallow) Date: Tue, 1 Jul 2014 15:09:58 +0800 (CST) Subject: [FFmpeg-user] segment to hls ,non-existing PPS 0 referenced Message-ID: <4b637b6f.9873.146f0c23934.Coremail.shallow_reg@163.com> hi all I trying split mpegts to some segment,used: "./ffmpeg -i lanjl.ts -map 0 -codec copy -async 1 -f ssegment -segment_time 20 -segment_list_flags live -segment_list_type m3u8 -segment_list out.csv out%3d.ts " .This work fine of some file, but one file convert play failed,ffmpeg report non-existing PPS 0 referenced upload file here https://www.dropbox.com/s/ezpdsnrd6ceijev/lanjl.ts # ./ffmpeg -i lanjl.ts -map 0 -codec copy -async 1 -f ssegment -segment_time 20 -segment_list_flags live -segment_list_type m3u8 -segment_list out.csv out%3d.ts ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jun 7 2014 17:30:15 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-static --disable-shared --disable-ffserver libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 66.100 / 55. 66.100 libavformat 55. 42.101 / 55. 42.101 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 6.100 / 4. 6.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 Input #0, mpegts, from 'lanjl.ts': Duration: 00:01:43.60, start: 1.400000, bitrate: 3073 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1268x720 [SAR 1:1 DAR 317:180], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 120 kb/s Output #0, stream_segment,ssegment, to 'out%3d.ts': Metadata: encoder : Lavf55.42.101 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1268x720 [SAR 1:1 DAR 317:180], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 120 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 2484 fps=0.0 q=-1.0 Lsize=N/A time=00:01:43.52 bitrate=N/A video:34070kB audio:1648kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: unknown ./ffprobe -i out002.ts ffprobe version 2.2.git Copyright (c) 2007-2014 the FFmpeg developers built on Jun 7 2014 17:30:15 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-static --disable-shared --disable-ffserver libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 66.100 / 55. 66.100 libavformat 55. 42.101 / 55. 42.101 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 6.100 / 4. 6.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 [h264 @ 0x33f10e0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x33f10e0] decode_slice_header error [h264 @ 0x33f10e0] no frame! [h264 @ 0x33f10e0] non-existing PPS 0 referenced Last message repeated 1 times ----------Delete the duplicate message [mpegts @ 0x33ed020] decoding for stream 0 failed [mpegts @ 0x33ed020] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'out002.ts': Duration: 00:00:20.93, start: 43.304756, bitrate: 4251 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), 23.98 fps, 23.98 tbr, 90k tbn, 180k tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 136 kb/s thanks From barsnick at gmx.net Tue Jul 1 09:52:49 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 1 Jul 2014 09:52:49 +0200 Subject: [FFmpeg-user] libquvi missing In-Reply-To: <20140630163910.B81DB1F9@m0048141.ppops.net> References: <20140630163910.B81DB1F9@m0048141.ppops.net> Message-ID: <20140701075249.GB7557@sunshine.barsnick.net> On Mon, Jun 30, 2014 at 16:39:10 -0700, David baker wrote: > I then ran locate libquvi.pc to no avail I'm using version 0.9.2 is it supported? "rpm -ql libquvi-devel" should tell you if and where libquvi.pc is located. Fedora packages it as libquvi-0.9.pc, probably to avoid conflicts with the 0.4 package. That said, the point we tried to make before - sorry if it wasn't clear - is that ffmpeg does not (yet?) support libquvi-0.9. This version has a new API, and ffmpeg only support libquvi-0.4, which holds the "stable" API. You should probably slip quvi support on your platform for the time being, unless you really know you need it. Moritz From battistel at gmail.com Tue Jul 1 11:52:35 2014 From: battistel at gmail.com (Massimo Battistel) Date: Tue, 1 Jul 2014 11:52:35 +0200 Subject: [FFmpeg-user] Set audio level in aevalsrc audio filter Message-ID: Hello, with the following command line I can generate 1kHz tone: ffmpeg -f lavfi -i aevalsrc=0.165*sin(1000*2*PI*t) -acodec pcm_s16le -ac 2 -ar 48000 -t 10 tone.wav I cannot understand how to set the signal amplitude (0.165 in my case). My target is -18dB. "0.165" is an empiric value that generates a level close to -18 (but not identical). Using the formulas: dB = 20 * log10(val) 0<=val<=1 val = 10 ^ (dB/20) I should obtain ~0.12589 for -18dB Removing the constant 0.165 (multipling by 1) I do not get 0 dB as expected. Can you explain how to properly generate the amplitude constant starting from a dB level? thanks, MB From barsnick at gmx.net Tue Jul 1 12:12:56 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 1 Jul 2014 12:12:56 +0200 Subject: [FFmpeg-user] Set audio level in aevalsrc audio filter In-Reply-To: References: Message-ID: <20140701101256.GA1496@sunshine.barsnick.net> On Tue, Jul 01, 2014 at 11:52:35 +0200, Massimo Battistel wrote: > I should obtain ~0.12589 for -18dB You do and you don't. :-) You must understand that the average level of a sine signal is -3.0dB: http://en.wikipedia.org/wiki/Crest_factor#Examples You can confirm this thus: # ffmpeg -f lavfi -i 'aevalsrc=sin(1000*2*PI*t)' -af volumedetect -t 00:01:00 -f null - [...] [Parsed_volumedetect_0 @ 0xb9da6a0] n_samples: 2647040 [Parsed_volumedetect_0 @ 0xb9da6a0] mean_volume: -3.0 dB [Parsed_volumedetect_0 @ 0xb9da6a0] max_volume: 0.0 dB [Parsed_volumedetect_0 @ 0xb9da6a0] histogram_0db: 792312 The aevalsrc uses the full maximum aplitude, but the resulting mathematical (and measured, as by volumedetect) "average" is -3.0. Your example with the (correctly) calculated -18 dB factor gives this result: # ffmpeg -f lavfi -i 'aevalsrc=0.12589*sin(1000*2*PI*t)' -af volumedetect -t 00:01:00 -f null - [...] [Parsed_volumedetect_0 @ 0x9c656a0] n_samples: 2647040 [Parsed_volumedetect_0 @ 0x9c656a0] mean_volume: -21.0 dB [Parsed_volumedetect_0 @ 0x9c656a0] max_volume: -18.0 dB [Parsed_volumedetect_0 @ 0x9c656a0] histogram_18db: 792312 Thus exactly what is to be expected. By the way, the factor you are looking for, i.e. for -15dB, is 0.1778279. Using the same math that you quoted. :-) You only need to know what exactly you desire; one of the two is correct for you. Instead, you could probably also use the volume filter ("-af volume=-15dB"), but I'd have to think about whether that gives the same result or could introduce quantification errors (other than aevalsrc would do). Perhaps the latter are not even your concern. I'm being extremely picky with this note. Cheers, MB, eh, Moritz From sw.craftsman at gmail.com Tue Jul 1 12:45:02 2014 From: sw.craftsman at gmail.com (Shyam Sundar) Date: Tue, 1 Jul 2014 16:15:02 +0530 Subject: [FFmpeg-user] Bad audio for MXF output Message-ID: Hi, I am trying to convert many videos (of different formats / containers) into MXF, the audio quality seems really poor in output, it is getting messed up, i.e. either the audio is completely missing or it gets distorted. Happens for all files, not really a file-specific, you can try wildlife.wmv that comes in all windows machines and check its MXF output to see the issue. I am trying something like this : ffmpeg.exe -i Wildlife.wmv -f mxf_d10 -r 29.97 -b:v 30000 k -g 12 -acodec pcm_s16le -ar 48000 Wildlife.mxf Is this a known problem / limitation ? Thanks, Rajiv From matthieu.bouron at gmail.com Tue Jul 1 13:20:59 2014 From: matthieu.bouron at gmail.com (Matthieu Bouron) Date: Tue, 1 Jul 2014 13:20:59 +0200 Subject: [FFmpeg-user] Bad audio for MXF output In-Reply-To: References: Message-ID: On Tue, Jul 1, 2014 at 12:45 PM, Shyam Sundar wrote: > Hi, > Hello, > > I am trying to convert many videos (of different formats / containers) into > MXF, the audio quality seems really poor in output, it is getting messed > up, i.e. either the audio is completely missing or it gets distorted. > > Happens for all files, not really a file-specific, you can try wildlife.wmv > that comes in all windows machines and check its MXF output to see the > issue. > > I am trying something like this : ffmpeg.exe -i Wildlife.wmv -f mxf_d10 -r > 29.97 -b:v 30000 k -g 12 -acodec pcm_s16le -ar 48000 Wildlife.mxf > Which player are you using ? Have you tried using ffplay ? [...] From adf.lists at gmail.com Tue Jul 1 16:44:55 2014 From: adf.lists at gmail.com (Andy Furniss) Date: Tue, 01 Jul 2014 15:44:55 +0100 Subject: [FFmpeg-user] problem of transcoding HD DVB-T program In-Reply-To: <53aaaf73.a307c20a.3363.090bSMTPIN_ADDED_BROKEN@mx.google.com> References: <539fdfe2.064eb40a.3a55.ffff8676SMTPIN_ADDED_BROKEN@mx.google.com> <53A07462.5010600@gmail.com> <53a10b73.076ab40a.1edb.fffff544SMTPIN_ADDED_BROKEN@mx.google.com> <53A1FE02.7030908@gmail.com> <53aaaf73.a307c20a.3363.090bSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <53B2C967.7060504@gmail.com> Soundwin / Andy wrote: > Thank you very much! > > Our system is responsible for transcoding the DVB-T streams(generated > by dvblast) into HLS format, users can access our system to watch > videos via smart phones > > I have tried to modify the parameters which you hint, and it seems > that it is much more stable than before. > > The transcoding server is with the Intel Core i7 4770, and it runs > two ffmpeg instances, one dvblast instance. > > Therefore, ffmpeg can use the slow preset because the cpu loading is > not very heavy. > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ > COMMAND 1130 root 0 -20 1042296 207644 3760 S 243.0 2.6 > 110:43.29 ffmpeg 11101 root 0 -20 1173340 206592 3788 S 59.1 > 2.6 31:58.05 ffmpeg 1117 root -2 0 12352 2592 956 S > 6.6 0.0 1:37.03 dvblast Ok, though I don't always trust top/ps to reliably show me when I am running out of CPU. I would also have only altered dvblast. Though saying that I am not a dev and have never done what you are doing, so am really just making this up :-) > However, it stops to transcode sometimes in random. > In addition, it sometimes outputs " Non-monotonous DTS in output > stream", " Delay between the first packet and last packet", " no > picture" and the ffmpeg should be restarted to return to normal. It's > not big problem because the shell script will rerun it > automatically, but I still desire to solve these problem. Can't help with that I am afraid. Recording a stream to disk so it can be reproduced from a file you can provise would be the best way to get help. > > Now, I try to record the udp stream generated by dvblast to a file. > Second, that file will be transcoded by ffmpeg in same parameters to > determine these strange phenomenon will not happen again > > > The final command and output is in the below. > > /home/andy/ffmpeg -re -f mpegts -i udp://127.0.0.1:50000 -c:v > libx264 -preset slow -deinterlace -crf 23 -pix_fmt yuv420p -g 150 > -acodec libfdk_aac -b:a 128k -ac 2 -ar 44100 -loglevel debug -threads > 0 -hls_time 5 -hls_list_size 24 -hls_wrap 100 -f hls > /mnt/video/1/E139091DC956.m3u8 > > And, the below output is ffmpeg stops to transcode. > Applying option deinterlace (this option is deprecated, use the yadif > filter instead) with argument 1. Side issue, I guess yadif is bettter, though -vf yadif=0 rather than one would probably do for phone use. If you really wanted to it's possible to use the idet filter and more arguments for yadif to only deinterlace what is really interlaced, though on a phone the difference may be had to see. > Error while decoding stream #0:1: Invalid data found when processing > input udp://127.0.0.1:50001: Input/output error [libx264 @ 0x3f80b00] > frame=140638 QP=30.21 NAL=0 Slice:B Poc:104 I:0 P:122 SKIP:1198 > size=224 bytes [libx264 @ 0x3f80b00] frame=140639 QP=25.62 NAL=2 > Slice:P Poc:112 I:29 P:428 SKIP:863 size=2915 bytes [output stream > 0:0 @ 0x3f8aa40] EOF on sink link output stream 0:0:default. [output > stream 0:1 @ 0x3f85b80] EOF on sink link output stream 0:1:default. > No more output streams to write to, finishing. I am not sure how to read this, I don't know if ffmpeg is confused by preceeding errors, or id dvblast does something. From sw.craftsman at gmail.com Tue Jul 1 17:31:27 2014 From: sw.craftsman at gmail.com (Shyam Sundar) Date: Tue, 1 Jul 2014 21:01:27 +0530 Subject: [FFmpeg-user] Bad audio for MXF output In-Reply-To: References: Message-ID: Hi Matthieu, I was using VLC .. but now I just tried ffplay, wherein audio is looking much better :) So ... what does that mean .. should we always use ffplay to verify any issue ? problem is that users will always be using vlc etc wherein they may see issue. :( Wondering ... is there any way to make it work for VLC ? Thanks, Rajiv From egoeimi at mail.ru Tue Jul 1 11:17:57 2014 From: egoeimi at mail.ru (egoeimi at mail.ru) Date: Tue, 01 Jul 2014 13:17:57 +0400 Subject: [FFmpeg-user] =?utf-8?q?non-zero_start_after_transcoding?= Message-ID: <1404206277.326498959@f309.i.mail.ru> hello, i have a file I want to transcode: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input/BM_1_2014-06-28_1345_C0003.mov': ? Metadata: ??? creation_time?? : 2014-06-28 08:45:30 ??? timecode??????? : 13:45:30:00 ? Duration: 00:28:38.60, start: 0.000000, bitrate: 185819 kb/s ??? Stream #0:0(eng): Data: none (tmcd / 0x64636D74) (default) ??? Metadata: ????? creation_time?? : 2014-06-28 08:45:30 ????? handler_name??? : Apple Alias Data Handler ????? timecode??????? : 13:45:30:00 ??? Stream #0:1(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183460 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default) ??? Metadata: ????? creation_time?? : 2014-06-28 08:45:30 ????? handler_name??? : Apple Alias Data Handler ????? timecode??????? : 13:45:30:00 ??? Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s (default) ??? Metadata: ????? creation_time?? : 2014-06-28 08:45:30 ????? handler_name??? : Apple Alias Data Handler ????? timecode??????? : 13:45:30:00 i'm trying to make a sample: ffmpeg -t 00:00:15 -i input/BM_1_2014-06-28_1345_C0003.mov -vcodec h264 -preset slow -pix_fmt yuv420p -acodec libvorbis -ac 1 -ar 44100 yuv420p.mkv and getting this: Input #0, matroska,webm, from 'yuv420p.mkv': ? Metadata: ??? TIMECODE??????? : 13:45:30:00 ??? ENCODER???????? : Lavf55.33.101 ? Duration: 00:00:15.08, start: 0.077000, bitrate: 1626 kb/s ??? Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default) ??? Metadata: ????? CREATION_TIME?? : 2014-06-28 08:45:30 ????? LANGUAGE??????? : eng ????? HANDLER_NAME??? : Apple Alias Data Handler ????? TIMECODE??????? : 13:45:30:00 ??? Stream #0:1(eng): Audio: vorbis, 44100 Hz, mono, fltp (default) ??? Metadata: ????? CREATION_TIME?? : 2014-06-28 08:45:30 ????? LANGUAGE??????? : eng ????? HANDLER_NAME??? : Apple Alias Data Handler ????? TIMECODE??????? : 13:45:30:00 why does the start become non-zero? how to keep it at zero? thank you. From battistel at gmail.com Tue Jul 1 18:31:03 2014 From: battistel at gmail.com (Massimo Battistel) Date: Tue, 1 Jul 2014 18:31:03 +0200 Subject: [FFmpeg-user] Improve recording in .mp4 format In-Reply-To: References: Message-ID: > > > This is unavoidable if you use mov (or its friends) > as output format, use any other format instead. > > > Thanks, using .mkv solved my problem. File is also playable during recording (but not seekable). Do you know of any format that allows to seek during recording? thanks, MB From battistel at gmail.com Tue Jul 1 18:45:03 2014 From: battistel at gmail.com (Massimo Battistel) Date: Tue, 1 Jul 2014 18:45:03 +0200 Subject: [FFmpeg-user] Set audio level in aevalsrc audio filter In-Reply-To: <20140701101256.GA1496@sunshine.barsnick.net> References: <20140701101256.GA1496@sunshine.barsnick.net> Message-ID: 2014-07-01 12:12 GMT+02:00 Moritz Barsnick : > On Tue, Jul 01, 2014 at 11:52:35 +0200, Massimo Battistel wrote: > > I should obtain ~0.12589 for -18dB > > You do and you don't. :-) > > You must understand that the average level of a sine signal is -3.0dB: > http://en.wikipedia.org/wiki/Crest_factor#Examples > > > Thanks Moritz, very useful informations. I solved my issue. An additional hint: "aevalsrc" generates a mono track by default: using "-ac 2" option causes some kind of audio mixing and output level, when converted to stereo, is 3dB lower. This can be solved setting "channel_layout=stereo" directly in "aevalsrc" filter options. bye, MB From ffmpeg-user at c-14.de Tue Jul 1 20:07:10 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Tue, 1 Jul 2014 20:07:10 +0200 Subject: [FFmpeg-user] Improve recording in .mp4 format In-Reply-To: References: Message-ID: <20140701180710.GA2040@anonymous> On 01/07/14 at 18:31, Massimo Battistel wrote: > > This is unavoidable if you use mov (or its friends) > > as output format, use any other format instead. > Thanks, using .mkv solved my problem. File is also playable during > recording (but not seekable). > > Do you know of any format that allows to seek during recording? Works just fine for me. What are you trying to do exactly? -- Simon Thelen From perera.amila at gmail.com Tue Jul 1 20:24:29 2014 From: perera.amila at gmail.com (Amila Perera) Date: Tue, 1 Jul 2014 23:54:29 +0530 Subject: [FFmpeg-user] Sending dynamically generated ffmpeg output as a byte stream to a client Message-ID: I am trying to convert a .mov file to .mp4 and send the converted byte stream to a client machine. In order to test if this can be really acquired with ffmpeg I tried the following command in a shell. TERMINAL1: %ffmpeg -i sample_iTunes.mov -vcodec libx264 -crf 35 -pix_fmt yuv420p -strict -2 -f mp4 "tcp://localhost:8080?listen" Then in another shell I just wanted to access the stream via tcp with ffplay. TERMINAL2: %ffplay "tcp://localhost:8080" I get the following error o/p in the TERMINAL1. ----------- % ffmpeg -i sample_iTunes.mov -vcodec libx264 -crf 35 -pix_fmt yuv420p -strict -2 -f mp4 "tcp://localhost:8080?listen" ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers built on Feb 25 2014 08:24:47 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample_iTunes.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2005-10-17 22:54:32 Duration: 00:01:25.50, start: 0.000000, bitrate: 307 kb/s Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 261 kb/s, 10 fps, 10 tbr, 3k tbn, 25 tbc (default) Metadata: creation_time : 2005-10-17 22:54:33 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 43 kb/s (default) Metadata: creation_time : 2005-10-17 22:54:34 handler_name : Apple Sound Media Handler [libx264 @ 0x19bed20] using SAR=1/1 [libx264 @ 0x19bed20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x19bed20] profile High, level 2.2 [libx264 @ 0x19bed20] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=35.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mp4 @ 0x199ff20] *muxer does not support non seekable output* Output #0, mp4, to 'tcp://localhost:8080?listen': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.19.104 Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 10 tbc (default) Metadata: creation_time : 2005-10-17 22:54:33 handler_name : Apple Video Media Handler Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 32000 Hz, mono, fltp, 128 kb/s (default) Metadata: creation_time : 2005-10-17 22:54:34 handler_name : Apple Sound Media Handler Stream mapping: Stream #0:0 -> #0:0 (mpeg4 -> libx264) Stream #0:1 -> #0:1 (aac -> aac) *Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument* ------------------------- Am I doing anything wrong here?? Or else is there another way to achieve the same results. However my requirement is to, convert an .mov to .mp4 on the fly and send those byte stream to a client pc. Thank you in advance! *Amila Perera.* From james.darnley at gmail.com Tue Jul 1 20:40:46 2014 From: james.darnley at gmail.com (James Darnley) Date: Tue, 01 Jul 2014 20:40:46 +0200 Subject: [FFmpeg-user] Sending dynamically generated ffmpeg output as a byte stream to a client In-Reply-To: References: Message-ID: <53B300AE.80601@gmail.com> On 2014-07-01 20:24, Amila Perera wrote: > Am I doing anything wrong here?? > Or else is there another way to achieve the same results. > However my requirement is to, convert an .mov to .mp4 on the fly and send > those byte stream to a client pc. Yes. The error message, highlighted in red, tells you exactly what you are doing wrong. > [mp4 @ 0x199ff20] *muxer does not support non seekable output* You cannot create an mp4 file with the output being written to a pipe or a network stream. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From stefasab at gmail.com Tue Jul 1 20:41:29 2014 From: stefasab at gmail.com (Stefano Sabatini) Date: Tue, 1 Jul 2014 20:41:29 +0200 Subject: [FFmpeg-user] Failing to produce a clip with video start offset In-Reply-To: References: Message-ID: <20140701184129.GD7746@barisone> On date Friday 2014-06-27 17:15:36 +0200, Robert Kr?ger wrote: > Hi, > > I am intentionally trying to desync video and audio of an input file > by one frame by the following command line (full output is given) but > it does not work. The resulting file has a start time of zero for all > streams (you can easily check this using ffprobe). I did this > successfully for audio by basically the same command line only with > the itsoffset applied to the second input file. I assume I am making a > stupid mistake somewhere but I don't see it atm. > > ffmpeg -itsoffset 0.04 -i input.mov -i input.mov -c:v mpeg4 -q 8 -c:a > pcm_s16le -t 2 -map 0:0 -map 1:1 -y video_offset_one_frame_2s.mov Note that ffmpeg by default will remove the initial offset (yes I find this quite annoying). You can disable that behavior by using -copyts, I'm not sure how it will interact with -itsoffset. -debug_ts will provide help debugging the issue. [...] From battistel at gmail.com Tue Jul 1 20:50:42 2014 From: battistel at gmail.com (Massimo Battistel) Date: Tue, 1 Jul 2014 20:50:42 +0200 Subject: [FFmpeg-user] Improve recording in .mp4 format In-Reply-To: <20140701180710.GA2040@anonymous> References: <20140701180710.GA2040@anonymous> Message-ID: > Works just fine for me. What are you trying to do exactly? > I would like to start a recording, access the file being recorded, seek to a start point and play for n seconds (while recording). With .mkv I just can play from the begin, but no seek (I used vlc 2.1.3 under Windows 7). MB From ffmpeg-user at c-14.de Tue Jul 1 20:58:45 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Tue, 1 Jul 2014 20:58:45 +0200 Subject: [FFmpeg-user] Improve recording in .mp4 format In-Reply-To: References: <20140701180710.GA2040@anonymous> Message-ID: <20140701185845.GB2040@anonymous> On 01/07/14 at 20:50, Massimo Battistel wrote: > > Works just fine for me. What are you trying to do exactly? > > > > I would like to start a recording, access the file being recorded, seek to > a start point and play for n seconds (while recording). > With .mkv I just can play from the begin, but no seek (I used vlc 2.1.3 > under Windows 7). Worked fine for me under linux with mpv. Did you wait to make sure there was actually enough encoded so that you can seek? Maybe try a different player? -- Simon Thelen From battistel at gmail.com Tue Jul 1 21:14:48 2014 From: battistel at gmail.com (Massimo Battistel) Date: Tue, 1 Jul 2014 21:14:48 +0200 Subject: [FFmpeg-user] Issue with -async parameter (and maybe with asf container) In-Reply-To: References: Message-ID: I've found another sample causing an almost identical issue: http://www.datafilehost.com/d/89098169 ffmpeg -i sample.mp2 -acodec pcm_s16le -async 2 -f null - ffmpeg version N-64326-g46563af Copyright (c) 2000-2014 the FFmpeg developers built on Jun 30 2014 22:02:05 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 90.101 / 52. 90.101 libavcodec 55. 68.100 / 55. 68.100 libavformat 55. 44.100 / 55. 44.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 9.100 / 4. 9.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [mp3 @ 02eba020] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from 'sample.mp2': Duration: 00:25:16.45, start: 0.000000, bitrate: 222 kb/s Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16p, 222 kb/s -async is forwarded to lavfi similarly to -af aresample=async=2:min_hard_comp=0.100000:first_pts=0. [null @ 02894680] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, null, to 'pipe:': Metadata: encoder : Lavf55.44.100 Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Metadata: encoder : Lavc55.68.100 pcm_s16le Stream mapping: Stream #0:0 -> #0:0 (mp2 (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help size=N/A time=00:01:07.77 bitrate=N/A size=N/A time=00:02:15.21 bitrate=N/A size=N/A time=00:03:22.87 bitrate=N/A size=N/A time=00:04:30.14 bitrate=N/A size=N/A time=00:05:36.52 bitrate=N/A size=N/A time=00:06:40.87 bitrate=N/A size=N/A time=00:07:45.69 bitrate=N/A size=N/A time=00:08:53.20 bitrate=N/A size=N/A time=00:10:00.14 bitrate=N/A size=N/A time=00:11:07.56 bitrate=N/A size=N/A time=00:12:14.92 bitrate=N/A size=N/A time=00:13:22.36 bitrate=N/A size=N/A time=00:14:29.85 bitrate=N/A size=N/A time=00:15:37.34 bitrate=N/A size=N/A time=00:16:44.88 bitrate=N/A size=N/A time=00:17:52.56 bitrate=N/A size=N/A time=00:19:00.19 bitrate=N/A size=N/A time=00:20:07.96 bitrate=N/A [mp2 @ 028942a0] Header missing Error while decoding stream #0:0: Invalid data found when processing input [mp2 @ 028942a0] Header missing Error while decoding stream #0:0: Invalid data found when processing input [null @ 02894680] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 60228864 >= 0 [null @ 02894680] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 60228864 >= 1136 [pcm_s16le @ 02ebf080] Failed to allocate packet of size 240933696 Audio encoding failed (avcodec_encode_audio2) Conversion failed! Without "-async 2" everything run fine till the end. thanks, MB From darkmoon at verizon.net Tue Jul 1 20:37:18 2014 From: darkmoon at verizon.net (Jeff) Date: Tue, 01 Jul 2014 11:37:18 -0700 Subject: [FFmpeg-user] Where to place '-shortest' when saving streams to separate files? Message-ID: Hi, I use Zeranoe's FFMPEG builds with Nero's AAC encoder this way: $ ffmpeg -y -i InputFile -map 0:0 -vf "some,filters" -c:v libx264 \ -crf xx -preset veryslow temp.m4v -map 0:1 -af "aresample=async=1" \ -f wav - | neroaacenc -q 0.xx -ignorelength -if - -of temp.m4a $ ffmpeg -y -i temp.m4v -i temp.m4a -map_chapters -1 -shortest \ -movflags faststart -c copy OutputFile.mp4 The results are almost always in sync, but I suspect that '-shortest' would be better (read: more accurate) if placed in the first command line where the transcoding is taking place, rather than in the second where the streams are muxed into the final A/V file. But...how to write the first command line so that '-shortest' stops the transcoding of both streams when the end of the shorter one is reached? Maybe, different command line(s) altogether? Thanks, Jeff From cehoyos at ag.or.at Tue Jul 1 21:39:51 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 1 Jul 2014 19:39:51 +0000 (UTC) Subject: [FFmpeg-user] Improve recording in .mp4 format References: Message-ID: Massimo Battistel gmail.com> writes: > Thanks, using .mkv solved my problem. File is also > playable during recording (but not seekable). Works fine here with "vlc --demux=ffmpeg" here. (That is what MPlayer uses by default.) > Do you know of any format that allows to seek > during recording? Apart from MPEG streams? Carl Eugen From krueger at lesspain.de Tue Jul 1 22:18:20 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 1 Jul 2014 22:18:20 +0200 Subject: [FFmpeg-user] Failing to produce a clip with video start offset In-Reply-To: <20140701184129.GD7746@barisone> References: <20140701184129.GD7746@barisone> Message-ID: On Tue, Jul 1, 2014 at 8:41 PM, Stefano Sabatini wrote: > On date Friday 2014-06-27 17:15:36 +0200, Robert Kr?ger wrote: >> Hi, >> >> I am intentionally trying to desync video and audio of an input file >> by one frame by the following command line (full output is given) but >> it does not work. The resulting file has a start time of zero for all >> streams (you can easily check this using ffprobe). I did this >> successfully for audio by basically the same command line only with >> the itsoffset applied to the second input file. I assume I am making a >> stupid mistake somewhere but I don't see it atm. >> >> ffmpeg -itsoffset 0.04 -i input.mov -i input.mov -c:v mpeg4 -q 8 -c:a >> pcm_s16le -t 2 -map 0:0 -map 1:1 -y video_offset_one_frame_2s.mov > > Note that ffmpeg by default will remove the initial offset (yes I find > this quite annoying). You can disable that behavior by using -copyts, > I'm not sure how it will interact with -itsoffset. -debug_ts will > provide help debugging the issue. Thanks! Adding -copyts produces the desired result, i.e. the video stream offset by one frame. I did not know that and simply was surprised that it only happens for video and not for audio. From perera.amila at gmail.com Wed Jul 2 02:41:33 2014 From: perera.amila at gmail.com (Amila Perera) Date: Wed, 2 Jul 2014 06:11:33 +0530 Subject: [FFmpeg-user] Sending dynamically generated ffmpeg output as a byte stream to a client In-Reply-To: <53B300AE.80601@gmail.com> References: <53B300AE.80601@gmail.com> Message-ID: On Wed, Jul 2, 2014 at 12:10 AM, James Darnley wrote: > You cannot create an mp4 file with the output being written to a pipe or > a network stream. > So, is there any other type of protocol that I can use for mp4 files. Can I use a different protocol(something other than network or pipe) and obtain the byte stream? Regards -- *Amila Perera.* From andycivil at gmail.com Wed Jul 2 04:53:26 2014 From: andycivil at gmail.com (Andy Civil) Date: Tue, 01 Jul 2014 22:53:26 -0400 Subject: [FFmpeg-user] Message about bounces In-Reply-To: <53AD3CCB.60501@yahoo.com> References: <1403800562.5703.YahooMailNeo@web161906.mail.bf1.yahoo.com> <53AD3CCB.60501@yahoo.com> Message-ID: <53B37426.8040706@gmail.com> On 2014-06-27 5:43 AM, tim nicholson wrote: > On 26/06/14 17:36, mark_a_lee-abeng at yahoo.ca wrote: >> I've been getting what I think are all the messages generated by the list but I got one not long ago saying my account had been suspended because of bounces and I needed to reconfirm. >> >> Is that normal? >> > > For Yahoo yes, unfortunately. Its part of Yahho's new anti spam policy. > emails that claim to come from yahoo, must come from a yahoo mail sever > I am currently tying to find sensible way round this that doesn't impact > on everybody. > > On the subject of bounces and spam, I have trouble with google getting false positives on messages from this list. Despite agreeing twice to "submit my false positives to google engineers for analysis", they continue to be filtered out. The problem is command line examples that contain urls for streaming. And I can't "add the sender to my contacts list" which is the normal way to correct false positives, because of course, they come from different people. I mention this because: 1. other mail services labelling our email as spam may cause us problems 2. other gmail users may like to check their spam folder on the web -- Andy From xdenser at gmail.com Wed Jul 2 07:20:58 2014 From: xdenser at gmail.com (Denys Khanzhyiev) Date: Wed, 2 Jul 2014 08:20:58 +0300 Subject: [FFmpeg-user] Sending dynamically generated ffmpeg output as a byte stream to a client In-Reply-To: References: <53B300AE.80601@gmail.com> Message-ID: You may google it. Try this link http://sixserv.org/2010/11/30/live-transcoding-for-video-and-audio-streaming/ Read comments. 2014-07-02 3:41 GMT+03:00 Amila Perera : > On Wed, Jul 2, 2014 at 12:10 AM, James Darnley > wrote: > > > You cannot create an mp4 file with the output being written to a pipe or > > a network stream. > > > > So, is there any other type of protocol that I can use for mp4 files. > Can I use a different protocol(something other than network or pipe) and > obtain the > byte stream? > > > Regards > -- > > > > *Amila Perera.* > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From perera.amila at gmail.com Wed Jul 2 07:57:30 2014 From: perera.amila at gmail.com (Amila Perera) Date: Wed, 2 Jul 2014 11:27:30 +0530 Subject: [FFmpeg-user] Sending dynamically generated ffmpeg output as a byte stream to a client In-Reply-To: References: <53B300AE.80601@gmail.com> Message-ID: Thanks Denys.. Adding -frag_duration option apperently did what I wanted. I ll later try to get this results to the real application. Thank you very much for the information. On Wed, Jul 2, 2014 at 10:50 AM, Denys Khanzhyiev wrote: > You may google it. > Try this link > > http://sixserv.org/2010/11/30/live-transcoding-for-video-and-audio-streaming/ > Read comments. > > > 2014-07-02 3:41 GMT+03:00 Amila Perera : > > > On Wed, Jul 2, 2014 at 12:10 AM, James Darnley > > wrote: > > > > > You cannot create an mp4 file with the output being written to a pipe > or > > > a network stream. > > > > > > > So, is there any other type of protocol that I can use for mp4 files. > > Can I use a different protocol(something other than network or pipe) and > > obtain the > > byte stream? > > > > > > Regards > > -- > > > > > > > > *Amila Perera.* > > _______________________________________________ > > 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 > -- *Amila Perera.* From battistel at gmail.com Wed Jul 2 09:47:31 2014 From: battistel at gmail.com (Massimo Battistel) Date: Wed, 2 Jul 2014 09:47:31 +0200 Subject: [FFmpeg-user] Improve recording in .mp4 format In-Reply-To: References: Message-ID: > > > Works fine here with "vlc --demux=ffmpeg" here. > (That is what MPlayer uses by default.) > > Works here too. thanks. Any chance to have a duration that updates over time? MB From barsnick at gmx.net Wed Jul 2 10:30:41 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 2 Jul 2014 10:30:41 +0200 Subject: [FFmpeg-user] Improve recording in .mp4 format In-Reply-To: References: , Message-ID: > Any chance to have a duration that updates over time? My PVR (a.k.a. STB) is capable of updating the duration of a TS (MPEG Transport Stream) while it is being created. It works perfectly e.g. while using ffmpeg to convert something directly to the PVR's (remotely mounted) disk. I'm not sure whether that's of any help to you though, and I haven't seen other (SW) player be so smart yet. :) Moritz From matthieu.bouron at gmail.com Wed Jul 2 15:17:05 2014 From: matthieu.bouron at gmail.com (Matthieu Bouron) Date: Wed, 2 Jul 2014 15:17:05 +0200 Subject: [FFmpeg-user] Bad audio for MXF output In-Reply-To: References: Message-ID: On Tue, Jul 1, 2014 at 5:31 PM, Shyam Sundar wrote: > Hi Matthieu, > > I was using VLC .. but now I just tried ffplay, wherein audio is looking > much better :) > > So ... what does that mean .. should we always use ffplay to verify any > issue ? problem is that users will always be using vlc etc wherein they may > see issue. :( > > Wondering ... is there any way to make it work for VLC ? > If VLC is build upon an old version of libav (I haven't checked with a recent version), it is known to not handle properly audio from MXF files @ 29.97fps or 59.94fps. The relevant fix has been merged a long time ago in ffmpeg and I don't know if the fix has been ported back to libav. Regards, Matthieu [...] From bart.gopnik at gmail.com Wed Jul 2 17:41:35 2014 From: bart.gopnik at gmail.com (=?UTF-8?B?0JHQsNGA0YIg0JPQvtC/0L3QuNC6?=) Date: Wed, 2 Jul 2014 19:41:35 +0400 Subject: [FFmpeg-user] [POSSIBLE BUG] Why I can't set "-max_prediction_order" parameter to its default value "8"? Message-ID: I compress pcm_s16le 44100 Hz 2 channels audio. Default value of "-compression_level" parameter for "flac" encoder is "5". This means that default value of "-max_prediction_order" parameter for "flac" encoder is "8". If I set "-lpc_type" parameter to value "fixed" and set "-min_prediction_order" parameter to value "0" all is OK, but if I explicitly set also "-max_prediction_order" parameter to its default value "8", FFMPEG says that "invalid max prediction order: 8". Why? Is it bug? Here command lines and complete, uncut console outputs: ffmpeg -loglevel debug -i input.wav -lpc_type fixed -min_prediction_order 0 output.flac ffmpeg version N-64033-g7f52960 Copyright (c) 2000-2014 the FFmpeg developers built on Jun 17 2014 23:21:41 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable- libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libope njpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsox r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab - -enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable- libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 67.100 / 55. 67.100 libavformat 55. 43.100 / 55. 43.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 8.100 / 4. 8.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'input.wav'. Reading option '-lpc_type' ... matched as AVOption 'lpc_type' with argument 'fix ed'. Reading option '-min_prediction_order' ... matched as AVOption 'min_prediction_o rder' with argument '0'. Reading option 'output.flac' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file input.wav. Successfully parsed a group of options. Opening an input file: input.wav. [wav @ 0000000002b28960] Format wav probed with size=2048 and score=99 [wav @ 0000000002b28960] Before avformat_find_stream_info() pos: 44 bytes read:3 2768 seeks:0 [wav @ 0000000002b28960] parser not found for codec pcm_s16le, packets or times may be invalid. [wav @ 0000000002b28960] probing stream 0 pp:14 [wav @ 0000000002b28960] probing stream 0 pp:13 [wav @ 0000000002b28960] probing stream 0 pp:12 [wav @ 0000000002b28960] probing stream 0 pp:11 [wav @ 0000000002b28960] probing stream 0 pp:10 [wav @ 0000000002b28960] probing stream 0 pp:9 [wav @ 0000000002b28960] probing stream 0 pp:8 [wav @ 0000000002b28960] probing stream 0 pp:7 [wav @ 0000000002b28960] probing stream 0 pp:6 [wav @ 0000000002b28960] probing stream 0 pp:5 [wav @ 0000000002b28960] probing stream 0 pp:4 [wav @ 0000000002b28960] probing stream 0 pp:3 [wav @ 0000000002b28960] probing stream 0 pp:2 [wav @ 0000000002b28960] probing stream 0 pp:1 [wav @ 0000000002b28960] probed stream 0 [wav @ 0000000002b28960] parser not found for codec pcm_s16le, packets or times may be invalid. [wav @ 0000000002b28960] max_analyze_duration 5000000 reached at 5015510 microse conds [wav @ 0000000002b28960] After avformat_find_stream_info() pos: 897068 bytes rea d:917504 seeks:0 frames:218 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'input.wav': Duration: 00:04:12.31, bitrate: 1411 kb/s Stream #0:0, 218, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 H z, 2 channels, s16, 1411 kb/s Successfully opened the file. Parsing a group of options: output file output.flac. Successfully parsed a group of options. Opening an output file: output.flac. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 0000000002b30f20] Setting 'time_base' to value '1/44100' [graph 0 input from stream 0:0 @ 0000000002b30f20] Setting 'sample_rate' to valu e '44100' [graph 0 input from stream 0:0 @ 0000000002b30f20] Setting 'sample_fmt' to value 's16' [graph 0 input from stream 0:0 @ 0000000002b30f20] Setting 'channel_layout' to v alue '0x3' [graph 0 input from stream 0:0 @ 0000000002b30f20] tb:1/44100 samplefmt:s16 samp lerate:44100 chlayout:0x3 [audio format for output stream 0:0 @ 0000000000377ce0] Setting 'sample_fmts' to value 's16|s32' [AVFilterGraph @ 0000000002b43020] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed [flac @ 0000000002b30320] compression: 5 [flac @ 0000000002b30320] lpc type: Fixed pre-defined coefficients [flac @ 0000000002b30320] prediction order: 0, 8 [flac @ 0000000002b30320] order method: estimate [flac @ 0000000002b30320] partition order: 0, 8 [flac @ 0000000002b30320] block size: 4608 [flac @ 0000000002b30320] lpc precision: 15 Output #0, flac, to 'output.flac': Metadata: encoder : Lavf55.43.100 Stream #0:0, 0, 1/90000: Audio: flac, 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc55.67.100 flac Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> flac (native)) Press [q] to stop, [?] for help [output stream 0:0 @ 0000000002b2dd20] EOF on sink link output stream 0:0:defaul t. No more output streams to write to, finishing. size= 36483kB time=00:04:12.41 bitrate=1184.0kbits/s video:0kB audio:36475kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.022190% Input file #0 (input.wav): Input stream #0:0 (audio): 10867 packets read (44507524 bytes); 10867 frames d ecoded (11126881 samples); Total: 10867 packets (44507524 bytes) demuxed Output file #0 (output.flac): Output stream #0:0 (audio): 2415 frames encoded (11126881 samples); 2416 packe ts muxed (37350517 bytes); Total: 2416 packets (37350517 bytes) muxed 10867 frames successfully decoded, 0 decoding errors [AVIOContext @ 000000000037fd80] Statistics: 2 seeks, 2416 writeouts [AVIOContext @ 0000000002b31020] Statistics: 44507568 bytes read, 0 seeks ffmpeg -loglevel debug -i input.wav -lpc_type fixed -min_prediction_order 0 -max_prediction_order 8 output.flac ffmpeg version N-64033-g7f52960 Copyright (c) 2000-2014 the FFmpeg developers built on Jun 17 2014 23:21:41 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable- libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libope njpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsox r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab - -enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable- libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 67.100 / 55. 67.100 libavformat 55. 43.100 / 55. 43.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 8.100 / 4. 8.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'input.wav'. Reading option '-lpc_type' ... matched as AVOption 'lpc_type' with argument 'fix ed'. Reading option '-min_prediction_order' ... matched as AVOption 'min_prediction_o rder' with argument '0'. Reading option '-max_prediction_order' ... matched as AVOption 'max_prediction_o rder' with argument '8'. Reading option 'output.flac' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file input.wav. Successfully parsed a group of options. Opening an input file: input.wav. [wav @ 000000000036f680] Format wav probed with size=2048 and score=99 [wav @ 000000000036f680] Before avformat_find_stream_info() pos: 44 bytes read:3 2768 seeks:0 [wav @ 000000000036f680] parser not found for codec pcm_s16le, packets or times may be invalid. [wav @ 000000000036f680] probing stream 0 pp:14 [wav @ 000000000036f680] probing stream 0 pp:13 [wav @ 000000000036f680] probing stream 0 pp:12 [wav @ 000000000036f680] probing stream 0 pp:11 [wav @ 000000000036f680] probing stream 0 pp:10 [wav @ 000000000036f680] probing stream 0 pp:9 [wav @ 000000000036f680] probing stream 0 pp:8 [wav @ 000000000036f680] probing stream 0 pp:7 [wav @ 000000000036f680] probing stream 0 pp:6 [wav @ 000000000036f680] probing stream 0 pp:5 [wav @ 000000000036f680] probing stream 0 pp:4 [wav @ 000000000036f680] probing stream 0 pp:3 [wav @ 000000000036f680] probing stream 0 pp:2 [wav @ 000000000036f680] probing stream 0 pp:1 [wav @ 000000000036f680] probed stream 0 [wav @ 000000000036f680] parser not found for codec pcm_s16le, packets or times may be invalid. [wav @ 000000000036f680] max_analyze_duration 5000000 reached at 5015510 microse conds [wav @ 000000000036f680] After avformat_find_stream_info() pos: 897068 bytes rea d:917504 seeks:0 frames:218 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'input.wav': Duration: 00:04:12.31, bitrate: 1411 kb/s Stream #0:0, 218, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 H z, 2 channels, s16, 1411 kb/s Successfully opened the file. Parsing a group of options: output file output.flac. Successfully parsed a group of options. Opening an output file: output.flac. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 00000000002fd840] Setting 'time_base' to value '1/44100' [graph 0 input from stream 0:0 @ 00000000002fd840] Setting 'sample_rate' to valu e '44100' [graph 0 input from stream 0:0 @ 00000000002fd840] Setting 'sample_fmt' to value 's16' [graph 0 input from stream 0:0 @ 00000000002fd840] Setting 'channel_layout' to v alue '0x3' [graph 0 input from stream 0:0 @ 00000000002fd840] tb:1/44100 samplefmt:s16 samp lerate:44100 chlayout:0x3 [audio format for output stream 0:0 @ 00000000003995a0] Setting 'sample_fmts' to value 's16|s32' [AVFilterGraph @ 00000000003adea0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed [flac @ 0000000000390020] invalid max prediction order: 8 Output #0, flac, to 'output.flac': Stream #0:0, 0, 1/90000: Audio: flac, 0 channels, 128 kb/s Metadata: encoder : Lavc55.67.100 flac Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> flac (native)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [AVIOContext @ 00000000003a8a60] Statistics: 0 seeks, 0 writeouts [AVIOContext @ 0000000000390c40] Statistics: 917504 bytes read, 0 seeks From cehoyos at ag.or.at Wed Jul 2 18:21:41 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 2 Jul 2014 16:21:41 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?=5BPOSSIBLE_BUG=5D_Why_I_can=27t_set_-max?= =?utf-8?q?=5Fprediction=5Forder_parameter_to_its_default_value_8?= =?utf-8?q?=3F?= References: Message-ID: ???? ?????? gmail.com> writes: > I compress pcm_s16le 44100 Hz 2 channels audio. Default > value of "-compression_level" parameter for "flac" > encoder is "5". This means that default value of > "-max_prediction_order" parameter for "flac" encoder is > "8". Not if you set lpc_type to fixed. > If I set "-lpc_type" parameter to value "fixed" and > set "-min_prediction_order" parameter to value "0" all > is OK, but if I explicitly set also "-max_prediction_order" > parameter to its default value "8" (Why do you believe that max_prediction_order defaults to 8?) > FFMPEG says that "invalid max prediction order: 8". Why? For lpc_type fixed, max_prediction_order is limited to 4. Carl Eugen From david at davidfavor.com Thu Jul 3 01:58:54 2014 From: david at davidfavor.com (David Favor) Date: Wed, 02 Jul 2014 18:58:54 -0500 Subject: [FFmpeg-user] 2 problem with ffmpeg and x265 In-Reply-To: <87DD789D-1693-4BA1-87E3-DD336FCD1017@apost.plala.or.jp> References: <87DD789D-1693-4BA1-87E3-DD336FCD1017@apost.plala.or.jp> Message-ID: <53B49CBE.10509@davidfavor.com> ?? ?? wrote: > Hi, I?m now trying to build ffmpeg with static x265. But configure script rejects with error. The error is "ERROR: x265 not found? > > I?m using Mac OS X 10.9.2 and LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) > > Here?s a part of config.log > > check_pkg_config x265 x265.h x265_encoder_encode > pkg-config --exists --print-errors x265 > check_func_headers x265.h x265_encoder_encode -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -lx265 > check_ld cc -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -lx265 > check_cc -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib > BEGIN /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.EjOwyBdL.c > 1 #include > 2 long check_x265_encoder_encode(void) { return (long) x265_encoder_encode; } > 3 int main(void) { return 0; } > END /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.EjOwyBdL.c > gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -pthread -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -c -o /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.UUCyIpQ5.o /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.EjOwyBdL.c > clang: warning: argument unused during compilation: '-L/Volumes/ffmpeg_compile/lib' > gcc -Wl,-dynamic,-search_paths_first -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -o /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.d9N4vA5m /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.UUCyIpQ5.o -lx265 -lm -lbz2 -lz -pthread > clang: warning: argument unused during compilation: '-pthread' > Undefined symbols for architecture x86_64: > "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::ios_base::getloc() const", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::basic_string, std::__1::allocator >::__init(unsigned long, char)", referenced from: > std::__1::ostreambuf_iterator > std::__1::__pad_and_output >(std::__1::ostreambuf_iterator >, char const*, char const*, char const*, std::__1::ios_base&, char) in libx265.a(TComRom.cpp.o) > "std::__1::basic_string, std::__1::allocator >::~basic_string()", referenced from: > std::__1::ostreambuf_iterator > std::__1::__pad_and_output >(std::__1::ostreambuf_iterator >, char const*, char const*, char const*, std::__1::ios_base&, char) in libx265.a(TComRom.cpp.o) > "std::__1::basic_ostream >::put(char)", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > "std::__1::basic_ostream >::flush()", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > "std::__1::basic_ostream >::sentry::sentry(std::__1::basic_ostream >&)", referenced from: > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::basic_ostream >::sentry::~sentry()", referenced from: > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::basic_ostream >::operator<<(int)", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > "std::__1::cerr", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > "std::__1::ctype::id", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::locale::~locale()", referenced from: > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from: > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::__1::ios_base::clear(unsigned int)", referenced from: > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "std::terminate()", referenced from: > ___clang_call_terminate in libx265.a(TComRom.cpp.o) > ___clang_call_terminate in libx265.a(bitcost.cpp.o) > ___clang_call_terminate in libx265.a(encoder.cpp.o) > ___clang_call_terminate in libx265.a(threadpool.cpp.o) > ___clang_call_terminate in libx265.a(frameencoder.cpp.o) > ___clang_call_terminate in libx265.a(TComPic.cpp.o) > ___clang_call_terminate in libx265.a(slicetype.cpp.o) > ... > "vtable for __cxxabiv1::__class_type_info", referenced from: > typeinfo for x265_encoder in libx265.a(encoder.cpp.o) > typeinfo for x265::FrameFilter in libx265.a(encoder.cpp.o) > typeinfo for x265::TComPicYuv in libx265.a(TComPicYuv.cpp.o) > typeinfo for x265::ThreadPool in libx265.a(threadpool.cpp.o) > typeinfo for x265::SEI in libx265.a(frameencoder.cpp.o) > typeinfo for x265::FrameFilter in libx265.a(frameencoder.cpp.o) > typeinfo for x265::TComBitIf in libx265.a(frameencoder.cpp.o) > ... > NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. > "vtable for __cxxabiv1::__si_class_type_info", referenced from: > typeinfo for x265::Encoder in libx265.a(encoder.cpp.o) > typeinfo for x265::ThreadPoolImpl in libx265.a(threadpool.cpp.o) > typeinfo for x265::PoolThread in libx265.a(threadpool.cpp.o) > typeinfo for x265::SEIPictureTiming in libx265.a(frameencoder.cpp.o) > typeinfo for x265::SEIRecoveryPoint in libx265.a(frameencoder.cpp.o) > typeinfo for x265::SEIGradualDecodingRefreshInfo in libx265.a(frameencoder.cpp.o) > typeinfo for x265::SEIDisplayOrientation in libx265.a(frameencoder.cpp.o) > ... > NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. > "vtable for __cxxabiv1::__vmi_class_type_info", referenced from: > typeinfo for x265::FrameEncoder in libx265.a(frameencoder.cpp.o) > typeinfo for x265::TEncSbac in libx265.a(TEncSbac.cpp.o) > typeinfo for x265::MotionEstimate in libx265.a(motion.cpp.o) > NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. > "operator delete[](void*)", referenced from: > x265::BitCost::destroy() in libx265.a(bitcost.cpp.o) > x265::Encoder::create() in libx265.a(encoder.cpp.o) > x265::Encoder::destroy() in libx265.a(encoder.cpp.o) > x265::TComPicSym::destroy() in libx265.a(TComPicSym.cpp.o) > x265::FrameEncoder::destroy() in libx265.a(frameencoder.cpp.o) > x265::FrameEncoder::init(x265::Encoder*, int) in libx265.a(frameencoder.cpp.o) > x265::FrameEncoder::compressFrame() in libx265.a(frameencoder.cpp.o) > ... > "operator delete(void*)", referenced from: > _x265_encoder_open_15 in libx265.a(api.cpp.o) > x265::Encoder::~Encoder() in libx265.a(encoder.cpp.o) > x265::Encoder::create() in libx265.a(encoder.cpp.o) > x265::Encoder::destroy() in libx265.a(encoder.cpp.o) > x265::Encoder::encode(bool, x265_picture const*, x265_picture*, x265::NALUnitEBSP**) in libx265.a(encoder.cpp.o) > x265::FrameFilter::~FrameFilter() in libx265.a(encoder.cpp.o) > x265::TComPicSym::create(int, int, int, unsigned int, unsigned int) in libx265.a(TComPicSym.cpp.o) > ... > "operator new[](unsigned long)", referenced from: > x265::BitCost::setQP(unsigned int) in libx265.a(bitcost.cpp.o) > x265::BitCost::CalculateLogs() in libx265.a(bitcost.cpp.o) > x265::Encoder::create() in libx265.a(encoder.cpp.o) > x265::TComPicSym::create(int, int, int, unsigned int, unsigned int) in libx265.a(TComPicSym.cpp.o) > x265::FrameEncoder::init(x265::Encoder*, int) in libx265.a(frameencoder.cpp.o) > x265::FrameEncoder::compressFrame() in libx265.a(frameencoder.cpp.o) > x265::TComLoopFilter::create(unsigned int) in libx265.a(TComLoopFilter.cpp.o) > ... > "operator new(unsigned long)", referenced from: > _x265_encoder_open_15 in libx265.a(api.cpp.o) > x265::Encoder::create() in libx265.a(encoder.cpp.o) > x265::Encoder::encode(bool, x265_picture const*, x265_picture*, x265::NALUnitEBSP**) in libx265.a(encoder.cpp.o) > x265::TComPicSym::create(int, int, int, unsigned int, unsigned int) in libx265.a(TComPicSym.cpp.o) > x265::TComPicSym::allocSaoParam(x265::TComSampleAdaptiveOffset*) in libx265.a(TComPicSym.cpp.o) > x265::ThreadPool::allocThreadPool(int) in libx265.a(threadpool.cpp.o) > x265::FrameEncoder::compressFrame() in libx265.a(frameencoder.cpp.o) > ... > "___cxa_begin_catch", referenced from: > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > ___clang_call_terminate in libx265.a(TComRom.cpp.o) > ___clang_call_terminate in libx265.a(bitcost.cpp.o) > ___clang_call_terminate in libx265.a(encoder.cpp.o) > ___clang_call_terminate in libx265.a(threadpool.cpp.o) > ___clang_call_terminate in libx265.a(frameencoder.cpp.o) > ___clang_call_terminate in libx265.a(TComPic.cpp.o) > ... > "___cxa_end_catch", referenced from: > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > "___cxa_pure_virtual", referenced from: > vtable for x265::Thread in libx265.a(threading.cpp.o) > vtable for x265::WaveFront in libx265.a(wavefront.cpp.o) > "___dynamic_cast", referenced from: > x265::JobProvider::flush() in libx265.a(threadpool.cpp.o) > "___gxx_personality_v0", referenced from: > _x265_encoder_open_15 in libx265.a(api.cpp.o) > Dwarf Exception Unwind Info (__eh_frame) in libx265.a(api.cpp.o) > x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) > std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) > std::__1::ostreambuf_iterator > std::__1::__pad_and_output >(std::__1::ostreambuf_iterator >, char const*, char const*, char const*, std::__1::ios_base&, char) in libx265.a(TComRom.cpp.o) > Dwarf Exception Unwind Info (__eh_frame) in libx265.a(TComRom.cpp.o) > x265::BitCost::setQP(unsigned int) in libx265.a(bitcost.cpp.o) > ... > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > ERROR: x265 not found > > > And also, I can build ffmpeg with shared x265 but this time dyld: Library not loaded error occurred. > > $ which ffmpeg > /Volumes/ffmpeg_compile/bin/ffmpeg > $ ffmpeg > dyld: Library not loaded: libx265.15.dylib > Referenced from: /Volumes/ffmpeg_compile/bin/ffmpeg > Reason: image not found > Trace/BPT trap: 5 > $ otool -L /Volumes/ffmpeg_compile/bin/ffmpeg > /Volumes/ffmpeg_compile/bin/ffmpeg: > /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit (compatibility version 1.0.0, current version 1.0.0) > /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1056.13.0) > /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.8.0) > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.14.0) > /System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/VideoDecodeAcceleration (compatibility version 1.0.0, current version 1.0.0) > libx265.15.dylib (compatibility version 15.0.0, current version 0.9.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) > /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.8.0) > /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) > > > if I put libx265.15.dylib to /usr/local/lib, ffmpeg can execute. > > My final aim is to build ffmpeg with static x265 library. But as a part of try and error, I have encountered 2 problems. Please solve them... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Post all the commands you use to build x265 + ffmpeg. Likely someone can help you. From david at davidfavor.com Thu Jul 3 02:01:37 2014 From: david at davidfavor.com (David Favor) Date: Wed, 02 Jul 2014 19:01:37 -0500 Subject: [FFmpeg-user] About ffmpeg transcode time In-Reply-To: References: Message-ID: <53B49D61.50104@davidfavor.com> miles chan wrote: > hi all, > > I wonder if there is a way to forecast the time is gonna cost in > transcoding with the options that you going to use,i don't need to be very > precisely,roughly is enough. I do this on regular movie files by offsetting into the file 3 minutes + transcode 1 minute of video. The 3 minute offset skips over the intro which tends to be filled with completely empty frames + animations which transcode fast + if you're using -vf mpdecimate, transcode at light speed. From soho123.2012 at gmail.com Thu Jul 3 04:04:48 2014 From: soho123.2012 at gmail.com (Diaz Soho) Date: Thu, 3 Jul 2014 10:04:48 +0800 Subject: [FFmpeg-user] ffmpeg take a long to fine stream info since "no picture ooo" from h264 Message-ID: hi all, the command line below I use to capture video from a usb webcam that h.264 support. I just like to do stream copy. transcode is not included. but ffmpeg take long time to fine stream information when ffmpeg starts. ffmpeg try to decode video frame from usb webcam, but it's output "no picture ooo" then it repeately gets "no picture ooo" does any one have ideas? how to fix this problem such that h264 will not get "no picture ooo"? ffmpeg -loglevel debug -sn -f video4linux2 -r 30 -s 1280x720 -input_format h264 -i /dev/video1 -vcodec copy http://localhost:8090/feed.ffm ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 2 2014 16:19:32 with gcc 4.4.5-1.5.5p2 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --disable-ffprobe --disable-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --disable-w32threads --disable-os2threads --disable-mipsdspr2 --disable-mipsfpu --disable-dct --disable-dwt --disable-lsp --disable-lzo --disable-mdct --disable-rdft --disable-fft --enable-small --prefix=/stream_server/ffmpeg/romfs --bindir=/stream_server/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx264 --extra-cflags=-fPIC --enable-filter='aformat,aresample,anull,copy,format,fps,framestep,resample' --disable-encoders --enable-encoder='mjpeg,libx264,libx264rgb,pcm_s16be,pcm_mulaw,pcm_alaw,pcm_s16le,pcm_s8,pcm_u8 libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debug'. Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'video4linux2'. Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1280x720'. Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'h264'. Reading option '-i' ... matched as input file with argument '/dev/video1'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'. Reading option 'http://localhost:8090/feed.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set libav* logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /dev/video1. Applying option sn (disable subtitle) with argument 1. Applying option f (force format) with argument video4linux2. Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30. Applying option s (set frame size (WxH or abbreviation)) with argument 1280x720. Successfully parsed a group of options. Opening an input file: /dev/video1. [video4linux2,v4l2 @ 0x68c040] fd:8 capabilities:4000001 [video4linux2,v4l2 @ 0x68c040] Selecting input_channel: 0 [video4linux2,v4l2 @ 0x68c040] input_channel: 0, input_name: Camera 1 [video4linux2,v4l2 @ 0x68c040] Setting time per frame to 1/30 [h264 @ 0x68cde0] Using externally provided dimensions [h264 @ 0x68cde0] Frame num gap 8 6 [h264 @ 0x68cde0] Frame num gap 24 22 [h264 @ 0x68cde0] Frame num gap 20 18 [h264 @ 0x68cde0] no picture ooo Last message repeated 1 times Last message repeated 1 times [h264 @ 0x68cde0] Frame num gap 17 15 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 14 12 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 10 8 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 6 4 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 1 255 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 21 19 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 20 18 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 14 12 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 13 11 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 12 10 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 8 6 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 2 0 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 26 24 [h264 @ 0x68cde0] Frame num gap 25 23 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 20 18 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 16 14 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 14 12 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 8 6 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 2 0 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 25 23 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 22 20 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 17 15 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 11 9 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 7 5 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 3 1 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 2 0 [h264 @ 0x68cde0] no picture ooo Last message repeated 1 times Last message repeated 1 times [h264 @ 0x68cde0] Frame num gap 4 2 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 1 255 [h264 @ 0x68cde0] no picture ooo [h264 @ 0x68cde0] Frame num gap 29 27 [video4linux2,v4l2 @ 0x68c870] All info found [video4linux2,v4l2 @ 0x68c040] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video1': Duration: N/A, start: 1404351410.670000, bitrate: N/A Stream #0:0, 11, 1/1000000: Video: h264, yuv420p, 1280x720, 1/2000000, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 2000k tbc Successfully opened the file. Parsing a group of options: output file http://localhost:8090/feed.ffm. Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy. Successfully parsed a group of options. Opening an output file: http://localhost:8090/feed.ffm. [ffm @ 0x83eb20] Format ffm probed with size=2048 and score=101 [ffm @ 0x833020] Format ffm probed with size=2048 and score=101 [AVIOContext @ 0x83f750] Statistics: 32768 bytes read, 0 seeks Thu Jul 3 09:37:01 2014 0.0.0.0 - - [GET] "/feed.ffm HTTP/1.1" 200 32847 [AVIOContext @ 0x847120] Statistics: 32768 bytes read, 0 seeks Successfully opened the file. Output #0, ffm, to 'http://localhost:8090/feed.ffm': Metadata: creation_time : now encoder : Lavf54.63.104 Stream #0:0, 0, 1/1000000: Video: h264, yuv420p, 1280x720, 1/1000000, q=2-31, -5 kb/s, 30 fps, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help From mak66345 at gmail.com Thu Jul 3 06:38:24 2014 From: mak66345 at gmail.com (Mike Makowski) Date: Wed, 2 Jul 2014 21:38:24 -0700 Subject: [FFmpeg-user] Unable to capture video from a cx231xx card on ubuntu 14.04 Message-ID: I am running ffmpeg on ubuntu 14.04 LTS I have a Hauppauge USB Live-2 video capture card connecting a Sony TR33 Camcorder to a USB2 port and am trying to digitize the video. The problem is that whenever I turn on the camcorder, ffmpeg seems to capture a single blue frame that is somewhat distorted (skewed) but recognizable as coming from the camcorder. While the camcorder is on the frame count stops incrementing and the corresponding diagnostic information (fps, q, ...) remains static. If the camcorder is then turned off, the frame count advances and the diagnostic information updates. The cx231xx driver for the Hauppauge video card appears to be installed properly. ----------------------- v4l2-ctl --get-fmt-video -d /dev/video1 --all Driver Info (not using libv4l2): Driver name : cx231xx Card type : Hauppauge USB Live 2 Bus info : usb-0000:00:14.0-11 Driver version: 3.13.11 Capabilities : 0x85000011 Video Capture VBI Capture Read/Write Streaming Device Capabilities Device Caps : 0x05000001 Video Capture Read/Write Streaming Priority: 2 Video input : 0 (Composite1: no signal, no hsync lock.) Video Standard = 0x000000ff PAL-B/B1/G/H/I/D/D1/K Format Video Capture: Width/Height : 720/576 Pixel Format : 'YUYV' Field : Interlaced Bytes per Line: 1440 Size Image : 829440 Colorspace : Broadcast NTSC/PAL (SMPTE170M/ITU601) Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 720, Height 576 Default : Left 0, Top 0, Width 720, Height 576 Pixel Aspect: 54/59 Streaming Parameters Video Capture: Frames per second: 25.000 (25/1) Read buffers : 2 User Controls brightness (int) : min=0 max=255 step=1 default=128 value=128 flags=slider contrast (int) : min=0 max=127 step=1 default=64 value=64 flags=slider saturation (int) : min=0 max=127 step=1 default=64 value=64 flags=slider hue (int) : min=-128 max=127 step=1 default=0 value=0 flags=slider volume (int) : min=0 max=65535 step=655 default=60928 value=60928 flags=slider balance (int) : min=0 max=65535 step=655 default=32768 value=32768 flags=slider bass (int) : min=0 max=65535 step=655 default=32768 value=32768 flags=slider treble (int) : min=0 max=65535 step=655 default=32768 value=32768 flags=slider mute (bool) : default=0 value=0 ------------------- The line "Video input : 0 (Composite1: no signal, no hsync lock.)" -> "Video input : 0 (Composite1: ok)"if the camcorder is turned on when v4l2-ctl is executed. Also ls /dev/v4l/by-id usb-046d_0809_0CE9EA59-video-index0 usb-Hauppauge_WinTV_USB2a_0013501619-video-index0 ------------------- Output from ffmpeg is as follows: ffmpeg -y -loglevel debug -t 7 -f rawvideo -s pal -pix_fmt yuyv422 -i /dev/video1 -an -s pal -pix_fmt yuv420p -b:v 20.736M rawvideo.nut ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 53. 5.103 / 53. 5.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Splitting the commandline. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debug'. Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '7'. Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument 'pal'. Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuyv422'. Reading option '-i' ... matched as input file with argument '/dev/video1'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument 'pal'. Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'. Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '20.736M'. Reading option 'rawvideo.nut' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option y (overwrite output files) with argument 1. Applying option loglevel (set libav* logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /dev/video1. Applying option t (record or transcode "duration" seconds of audio/video) with argument 7. Applying option f (force format) with argument rawvideo. Applying option s (set frame size (WxH or abbreviation)) with argument pal. Applying option pix_fmt (set pixel format) with argument yuyv422. Successfully parsed a group of options. Opening an input file: /dev/video1. [rawvideo @ 0x1000820] File position before avformat_find_stream_info() is 0 [rawvideo @ 0x1000820] All info found [rawvideo @ 0x1000820] Estimating duration from bitrate, this may be inaccurate [rawvideo @ 0x1000820] File position after avformat_find_stream_info() is 829440 Input #0, rawvideo, from '/dev/video1': Duration: N/A, start: 0.000000, bitrate: 165888 kb/s Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 1/25, 165888 kb/s, 25 tbr, 25 tbn, 25 tbc Successfully opened the file. -t is not an input option, keeping it for the next output; consider fixing your command line. Parsing a group of options: output file rawvideo.nut. Applying option an (disable audio) with argument 1. Applying option s (set frame size (WxH or abbreviation)) with argument pal. Applying option pix_fmt (set pixel format) with argument yuv420p. Applying option b:v (video bitrate (please use -b:v)) with argument 20.736M. Successfully parsed a group of options. Opening an output file: rawvideo.nut. Successfully opened the file. [buffer @ 0xfe4d20] Setting entry with key 'video_size' to value '720x576' [buffer @ 0xfe4d20] Setting entry with key 'pix_fmt' to value '1' [buffer @ 0xfe4d20] Setting entry with key 'time_base' to value '1/25' [buffer @ 0xfe4d20] Setting entry with key 'pixel_aspect' to value '0/1' [buffer @ 0xfe4d20] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 0xfe4d20] Setting entry with key 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x10006c0] w:720 h:576 pixfmt:yuyv422 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 [scale @ 0xff6f00] Setting 'w' to value '720' [scale @ 0xff6f00] Setting 'h' to value '576' [scale @ 0xff6f00] Setting 'flags' to value '0x4' [scaler for output stream 0:0 @ 0xff6e00] w:720 h:576 flags:'0x4' interl:0 [scaler for output stream 0:0 @ 0xff6e00] w:720 h:576 fmt:yuyv422 sar:0/1 -> w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4 [mpeg4 @ 0xff5ba0] detected 8 logical cores [mpeg4 @ 0xff5ba0] intra_quant_bias = 0 inter_quant_bias = -64 Output #0, nut, to 'rawvideo.nut': Metadata: encoder : Lavf54.63.104 Stream #0:0, 0, 1/51200: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576, 1/25, q=2-31, 20736 kb/s, 51200 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg4) Press [q] to stop, [?] for help No more output streams to write to, finishing.=00:00:06.96 bitrate= 489.9kbits/s frame= 175 fps=9.8 q=2.0 Lsize= 439kB time=00:00:07.00 bitrate= 514.3kbits/s video:438kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.262922% Statistics: 145981440 bytes read, 0 seeks(2) (xim-xlib/warning) Warning: XCreateIC failed. --------------------- This version of ffmpeg was obtained from the severinson website. I have also built version 2.1.5 of ffmpeg as obtained from the ffmpeg.org website with the same result. I was concerned about the option --arch=amd64 and recompiled with --arch=x86_64, but this also made no difference. Any suggestions would be welcome. Cheers, Mike From paul at mastermoz.com Thu Jul 3 07:01:26 2014 From: paul at mastermoz.com (Paul at MasterMOZ.com) Date: Thu, 3 Jul 2014 01:01:26 -0400 Subject: [FFmpeg-user] Unable to capture video from a cx231xx card on ubuntu 14.04 In-Reply-To: References: Message-ID: On Jul 3, 2014 12:38 AM, "Mike Makowski" wrote: > > I am running ffmpeg on ubuntu 14.04 LTS > > I have a Hauppauge USB Live-2 video capture card connecting a Sony > TR33 Camcorder to a USB2 port and am trying to digitize the video. > The problem is that whenever I turn on the camcorder, ffmpeg seems > to capture a single blue frame that is somewhat distorted (skewed) > but recognizable as coming from the camcorder. While the > camcorder is on the frame count stops incrementing and the > corresponding diagnostic information (fps, q, ...) remains static. > If the camcorder is then turned off, the frame count advances and > the diagnostic information updates. > > The cx231xx driver for the Hauppauge video card appears to be > installed properly. > You should look at the specs, I believe TR33 USB is for transferring stored media pictures not for streaming playback video. You need to connect the AV out of the TR33 to your capture cards. From cehoyos at ag.or.at Thu Jul 3 07:10:39 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 3 Jul 2014 05:10:39 +0000 (UTC) Subject: [FFmpeg-user] Unable to capture video from a cx231xx card on ubuntu 14.04 References: Message-ID: Mike Makowski gmail.com> writes: > ffmpeg -f rawvideo -i /dev/video1 This cannot work, the syntax is -f v4l2 -i /dev/video1 > ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Please test current FFmpeg git head before asking for support here. Carl Eugen From cehoyos at ag.or.at Thu Jul 3 07:33:32 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 3 Jul 2014 05:33:32 +0000 (UTC) Subject: [FFmpeg-user] non-zero start after transcoding References: <1404206277.326498959@f309.i.mail.ru> Message-ID: mail.ru> writes: > ffmpeg -t 00:00:15 -i input/BM_1_2014-06-28_1345_C0003.mov > -vcodec h264 -preset slow -pix_fmt yuv420p > -acodec libvorbis -ac 1 -ar 44100 yuv420p.mkv (Complete, uncut console output missing.) > ? Duration: 00:00:15.08, start: 0.077000, bitrate: 1626 kb/s > why does the start become non-zero? Why is this a problem? Carl Eugen From bart.gopnik at gmail.com Thu Jul 3 07:55:16 2014 From: bart.gopnik at gmail.com (=?UTF-8?B?0JHQsNGA0YIg0JPQvtC/0L3QuNC6?=) Date: Thu, 3 Jul 2014 09:55:16 +0400 Subject: [FFmpeg-user] [POSSIBLE BUG] Why I can't set -max_prediction_order parameter to its default value 8? In-Reply-To: References: Message-ID: >> I compress pcm_s16le 44100 Hz 2 channels audio. Default value of "-compression_level" parameter for "flac" encoder is "5". This means that default value of "-max_prediction_order" parameter for "flac" encoder is "8". < Not if you set lpc_type to fixed. >> FFMPEG says that "invalid max prediction order: 8". Why? < For lpc_type fixed, max_prediction_order is limited to 4. Where can I found info about limitation of each parameters for each value of other parameters? >> If I set "-lpc_type" parameter to value "fixed" and set "-min_prediction_order" parameter to value "0" all is OK, but if I explicitly set also "-max_prediction_order" parameter to its default value "8" < (Why do you believe that max_prediction_order defaults to 8?) Please look at console outputs again. If I set "-lpc_type" parameter to value "fixed" (e.g. ffmpeg -loglevel debug -i input.wav -lpc_type fixed output.flac) FFMPEG says: [flac @ 0000000000350240] compression: 5 [flac @ 0000000000350240] lpc type: Fixed pre-defined coefficients [flac @ 0000000000350240] prediction order: 1, 8 [flac @ 0000000000350240] order method: estimate [flac @ 0000000000350240] partition order: 0, 8 [flac @ 0000000000350240] block size: 4608 [flac @ 0000000000350240] lpc precision: 15 Please look at 1st and 3rd strings. It mean that "lpc_type" is "fixed" and "max_prediction_order" is "8" (simultaneously). From george at nsup.org Thu Jul 3 07:56:19 2014 From: george at nsup.org (Nicolas George) Date: Thu, 3 Jul 2014 07:56:19 +0200 Subject: [FFmpeg-user] non-zero start after transcoding In-Reply-To: References: <1404206277.326498959@f309.i.mail.ru> Message-ID: <20140703055618.GA30331@phare.normalesup.org> Le quintidi 15 messidor, an CCXXII, Carl Eugen Hoyos a ?crit?: > > why does the start become non-zero? > Why is this a problem? If the resulting file is to be synced with other streams from that did not get the same processing, it will cause desync. It can happen when remuxing the resulting streams with streams from the original file. I usually disable -avoid_negative_ts when I do not forget about it, and I would be in favour of disabling by default. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From murat.maman at gmail.com Thu Jul 3 10:10:39 2014 From: murat.maman at gmail.com (Murat Maman) Date: Thu, 3 Jul 2014 11:10:39 +0300 Subject: [FFmpeg-user] audio and video sync problem Message-ID: Dear All, I am having problem with video and audio sync but not always. This is my ffmpeg code which am using. sudo ffmpeg -y -f mpegts -i 'udp://@ 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ -maxrate 2M -bufsize 2M \ -af volume=1.1 \ -strict experimental \ -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v 900k \ -preset superfast -tune zerolatency -threads 8 -crf 25 \ -map 0:0 -map 0:1 \ -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111' I am getting live mpegts data form source and after processing then trying send to wowza server via rtmp. I can reproduce problem, for example if i shake satellite then source is break down and after a while problem beginning. I can easily see sync problem between video and audio. Often audio ahead than video. When problem happening in the source how can i prevent sync problem between audio and video. regards, Murat From christophgerstbauer at gmail.com Thu Jul 3 11:12:50 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Thu, 03 Jul 2014 11:12:50 +0200 Subject: [FFmpeg-user] ffmpeg SDI playout via Decklink on a Windows system Message-ID: <53B51E92.7020100@gmail.com> Hello, is it possible to playout video via ffmpeg to SDI by a Decklink card from Blackmagic on a Windows system? I only read about that it can be done on Linux, but not on Windows. bg Christoph From xanadu at apost.plala.or.jp Thu Jul 3 12:44:53 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Thu, 3 Jul 2014 19:44:53 +0900 Subject: [FFmpeg-user] 2 problem with ffmpeg and x265 In-Reply-To: <53B49CBE.10509@davidfavor.com> References: <87DD789D-1693-4BA1-87E3-DD336FCD1017@apost.plala.or.jp> <53B49CBE.10509@davidfavor.com> Message-ID: <14A781FB-5B80-4965-87F4-FB2948C74D14@apost.plala.or.jp> 2014/07/03 8:58?David Favor ????? > ?? ?? wrote: >> Hi, I?m now trying to build ffmpeg with static x265. But configure script rejects with error. The error is "ERROR: x265 not found? >> I?m using Mac OS X 10.9.2 and LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) >> Here?s a part of config.log >> check_pkg_config x265 x265.h x265_encoder_encode >> pkg-config --exists --print-errors x265 >> check_func_headers x265.h x265_encoder_encode -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -lx265 >> check_ld cc -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -lx265 >> check_cc -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib >> BEGIN /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.EjOwyBdL.c >> 1 #include >> 2 long check_x265_encoder_encode(void) { return (long) x265_encoder_encode; } >> 3 int main(void) { return 0; } >> END /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.EjOwyBdL.c >> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -pthread -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -c -o /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.UUCyIpQ5.o /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.EjOwyBdL.c >> clang: warning: argument unused during compilation: '-L/Volumes/ffmpeg_compile/lib' >> gcc -Wl,-dynamic,-search_paths_first -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -o /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.d9N4vA5m /var/folders/qk/x9k9r6f955d75dnv5dd2rgm00000gn/T//ffconf.UUCyIpQ5.o -lx265 -lm -lbz2 -lz -pthread >> clang: warning: argument unused during compilation: '-pthread' >> Undefined symbols for architecture x86_64: >> "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::ios_base::getloc() const", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_string, std::__1::allocator >::__init(unsigned long, char)", referenced from: >> std::__1::ostreambuf_iterator > std::__1::__pad_and_output >(std::__1::ostreambuf_iterator >, char const*, char const*, char const*, std::__1::ios_base&, char) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_string, std::__1::allocator >::~basic_string()", referenced from: >> std::__1::ostreambuf_iterator > std::__1::__pad_and_output >(std::__1::ostreambuf_iterator >, char const*, char const*, char const*, std::__1::ios_base&, char) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_ostream >::put(char)", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_ostream >::flush()", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_ostream >::sentry::sentry(std::__1::basic_ostream >&)", referenced from: >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_ostream >::sentry::~sentry()", referenced from: >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::basic_ostream >::operator<<(int)", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> "std::__1::cerr", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> "std::__1::ctype::id", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::locale::~locale()", referenced from: >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from: >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::__1::ios_base::clear(unsigned int)", referenced from: >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "std::terminate()", referenced from: >> ___clang_call_terminate in libx265.a(TComRom.cpp.o) >> ___clang_call_terminate in libx265.a(bitcost.cpp.o) >> ___clang_call_terminate in libx265.a(encoder.cpp.o) >> ___clang_call_terminate in libx265.a(threadpool.cpp.o) >> ___clang_call_terminate in libx265.a(frameencoder.cpp.o) >> ___clang_call_terminate in libx265.a(TComPic.cpp.o) >> ___clang_call_terminate in libx265.a(slicetype.cpp.o) >> ... >> "vtable for __cxxabiv1::__class_type_info", referenced from: >> typeinfo for x265_encoder in libx265.a(encoder.cpp.o) >> typeinfo for x265::FrameFilter in libx265.a(encoder.cpp.o) >> typeinfo for x265::TComPicYuv in libx265.a(TComPicYuv.cpp.o) >> typeinfo for x265::ThreadPool in libx265.a(threadpool.cpp.o) >> typeinfo for x265::SEI in libx265.a(frameencoder.cpp.o) >> typeinfo for x265::FrameFilter in libx265.a(frameencoder.cpp.o) >> typeinfo for x265::TComBitIf in libx265.a(frameencoder.cpp.o) >> ... >> NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. >> "vtable for __cxxabiv1::__si_class_type_info", referenced from: >> typeinfo for x265::Encoder in libx265.a(encoder.cpp.o) >> typeinfo for x265::ThreadPoolImpl in libx265.a(threadpool.cpp.o) >> typeinfo for x265::PoolThread in libx265.a(threadpool.cpp.o) >> typeinfo for x265::SEIPictureTiming in libx265.a(frameencoder.cpp.o) >> typeinfo for x265::SEIRecoveryPoint in libx265.a(frameencoder.cpp.o) >> typeinfo for x265::SEIGradualDecodingRefreshInfo in libx265.a(frameencoder.cpp.o) >> typeinfo for x265::SEIDisplayOrientation in libx265.a(frameencoder.cpp.o) >> ... >> NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. >> "vtable for __cxxabiv1::__vmi_class_type_info", referenced from: >> typeinfo for x265::FrameEncoder in libx265.a(frameencoder.cpp.o) >> typeinfo for x265::TEncSbac in libx265.a(TEncSbac.cpp.o) >> typeinfo for x265::MotionEstimate in libx265.a(motion.cpp.o) >> NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. >> "operator delete[](void*)", referenced from: >> x265::BitCost::destroy() in libx265.a(bitcost.cpp.o) >> x265::Encoder::create() in libx265.a(encoder.cpp.o) >> x265::Encoder::destroy() in libx265.a(encoder.cpp.o) >> x265::TComPicSym::destroy() in libx265.a(TComPicSym.cpp.o) >> x265::FrameEncoder::destroy() in libx265.a(frameencoder.cpp.o) >> x265::FrameEncoder::init(x265::Encoder*, int) in libx265.a(frameencoder.cpp.o) >> x265::FrameEncoder::compressFrame() in libx265.a(frameencoder.cpp.o) >> ... >> "operator delete(void*)", referenced from: >> _x265_encoder_open_15 in libx265.a(api.cpp.o) >> x265::Encoder::~Encoder() in libx265.a(encoder.cpp.o) >> x265::Encoder::create() in libx265.a(encoder.cpp.o) >> x265::Encoder::destroy() in libx265.a(encoder.cpp.o) >> x265::Encoder::encode(bool, x265_picture const*, x265_picture*, x265::NALUnitEBSP**) in libx265.a(encoder.cpp.o) >> x265::FrameFilter::~FrameFilter() in libx265.a(encoder.cpp.o) >> x265::TComPicSym::create(int, int, int, unsigned int, unsigned int) in libx265.a(TComPicSym.cpp.o) >> ... >> "operator new[](unsigned long)", referenced from: >> x265::BitCost::setQP(unsigned int) in libx265.a(bitcost.cpp.o) >> x265::BitCost::CalculateLogs() in libx265.a(bitcost.cpp.o) >> x265::Encoder::create() in libx265.a(encoder.cpp.o) >> x265::TComPicSym::create(int, int, int, unsigned int, unsigned int) in libx265.a(TComPicSym.cpp.o) >> x265::FrameEncoder::init(x265::Encoder*, int) in libx265.a(frameencoder.cpp.o) >> x265::FrameEncoder::compressFrame() in libx265.a(frameencoder.cpp.o) >> x265::TComLoopFilter::create(unsigned int) in libx265.a(TComLoopFilter.cpp.o) >> ... >> "operator new(unsigned long)", referenced from: >> _x265_encoder_open_15 in libx265.a(api.cpp.o) >> x265::Encoder::create() in libx265.a(encoder.cpp.o) >> x265::Encoder::encode(bool, x265_picture const*, x265_picture*, x265::NALUnitEBSP**) in libx265.a(encoder.cpp.o) >> x265::TComPicSym::create(int, int, int, unsigned int, unsigned int) in libx265.a(TComPicSym.cpp.o) >> x265::TComPicSym::allocSaoParam(x265::TComSampleAdaptiveOffset*) in libx265.a(TComPicSym.cpp.o) >> x265::ThreadPool::allocThreadPool(int) in libx265.a(threadpool.cpp.o) >> x265::FrameEncoder::compressFrame() in libx265.a(frameencoder.cpp.o) >> ... >> "___cxa_begin_catch", referenced from: >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> ___clang_call_terminate in libx265.a(TComRom.cpp.o) >> ___clang_call_terminate in libx265.a(bitcost.cpp.o) >> ___clang_call_terminate in libx265.a(encoder.cpp.o) >> ___clang_call_terminate in libx265.a(threadpool.cpp.o) >> ___clang_call_terminate in libx265.a(frameencoder.cpp.o) >> ___clang_call_terminate in libx265.a(TComPic.cpp.o) >> ... >> "___cxa_end_catch", referenced from: >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> "___cxa_pure_virtual", referenced from: >> vtable for x265::Thread in libx265.a(threading.cpp.o) >> vtable for x265::WaveFront in libx265.a(wavefront.cpp.o) >> "___dynamic_cast", referenced from: >> x265::JobProvider::flush() in libx265.a(threadpool.cpp.o) >> "___gxx_personality_v0", referenced from: >> _x265_encoder_open_15 in libx265.a(api.cpp.o) >> Dwarf Exception Unwind Info (__eh_frame) in libx265.a(api.cpp.o) >> x265::ScanGenerator::GetNextIndex(unsigned int, unsigned int) in libx265.a(TComRom.cpp.o) >> std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*) in libx265.a(TComRom.cpp.o) >> std::__1::ostreambuf_iterator > std::__1::__pad_and_output >(std::__1::ostreambuf_iterator >, char const*, char const*, char const*, std::__1::ios_base&, char) in libx265.a(TComRom.cpp.o) >> Dwarf Exception Unwind Info (__eh_frame) in libx265.a(TComRom.cpp.o) >> x265::BitCost::setQP(unsigned int) in libx265.a(bitcost.cpp.o) >> ... >> ld: symbol(s) not found for architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see invocation) >> ERROR: x265 not found >> And also, I can build ffmpeg with shared x265 but this time dyld: Library not loaded error occurred. >> $ which ffmpeg >> /Volumes/ffmpeg_compile/bin/ffmpeg >> $ ffmpeg dyld: Library not loaded: libx265.15.dylib >> Referenced from: /Volumes/ffmpeg_compile/bin/ffmpeg >> Reason: image not found >> Trace/BPT trap: 5 >> $ otool -L /Volumes/ffmpeg_compile/bin/ffmpeg >> /Volumes/ffmpeg_compile/bin/ffmpeg: >> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit (compatibility version 1.0.0, current version 1.0.0) >> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1056.13.0) >> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.8.0) >> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.14.0) >> /System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/VideoDecodeAcceleration (compatibility version 1.0.0, current version 1.0.0) >> libx265.15.dylib (compatibility version 15.0.0, current version 0.9.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) >> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.8.0) >> /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) >> if I put libx265.15.dylib to /usr/local/lib, ffmpeg can execute. >> My final aim is to build ffmpeg with static x265 library. But as a part of try and error, I have encountered 2 problems. Please solve them... >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > Post all the commands you use to build x265 + ffmpeg. > > Likely someone can help you. I am ?? ??. Changed sender name to "Kimio Miyamura". Well, I build x265 with following command: $ hg clone https://bitbucket.org/multicoreware/x265 $ cd x265/source $ cmake -DCMAKE_INSTALL_PREFIX:PATH=${TARGET} -DENABLE_SHARED=NO . $ make && make install Note that you have to install mercuria to build x265. And I build ffmpeg with following command: $ git clone git://source.ffmpeg.org/ffmpeg.git $ cd ffmpeg $ export LDFLAGS="-L${TARGET}/lib $CFLAGS" $ export CFLAGS="-I${TARGET}/include $LDFLAGS" $ ./configure --prefix=${TARGET} --pkg-config-flags=--static --enable-gpl --enable-libx265 Most important point is add "--pkg-config-flags=--static". It can be rewrite with "pkg_config='pkg-config --static'". This is mentioned on "[FFmpeg-user] Enabling libx265" thread too. Additionally, executing error when build x265 as shared library is my fault. I forget to add "export DYLD_LIBRARY_PATH=path/to/dyld". Best Regards, // Miya From sw.craftsman at gmail.com Thu Jul 3 17:57:04 2014 From: sw.craftsman at gmail.com (Shyam Sundar) Date: Thu, 3 Jul 2014 21:27:04 +0530 Subject: [FFmpeg-user] Is it possible to convert any video to DV 50 Mbps using FFMpeg ? Message-ID: Hi, I am trying to convert video to DV format with 50 Mb/s (like DVCPRO50 or something) using following command, but no matter what we give in -b:v, it always produces 24.4 Mbps output. e.g. ffmpeg.exe -i Wildlife.wmv -f dv -target ntsc-dv -b:v 50m -qscale 15 -vol 256 -strict experimental Wildlife.dv Does FFMpeg support this ? Thanks, Rajiv From cehoyos at ag.or.at Thu Jul 3 18:19:46 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 3 Jul 2014 18:19:46 +0200 Subject: [FFmpeg-user] Is it possible to convert any video to DV 50 Mbps using FFMpeg ? In-Reply-To: References: Message-ID: <201407031819.46073.cehoyos@ag.or.at> On Thursday 03 July 2014 05:57:04 pm Shyam Sundar wrote: > Hi, > > I am trying to convert video to DV format with 50 Mb/s (like DVCPRO50 or > something) using following command, but no matter what we give in -b:v, it > always produces 24.4 Mbps output. Add -pix_fmt yuv422p > e.g. ffmpeg.exe -i Wildlife.wmv -f dv -target ntsc-dv -b:v 50m -qscale 15 > -vol 256 -strict experimental Wildlife.dv For future questions: Please always post the command line together with the complete, uncut console output if you need support here. Carl Eugen From adf.lists at gmail.com Thu Jul 3 19:16:44 2014 From: adf.lists at gmail.com (Andy Furniss) Date: Thu, 03 Jul 2014 18:16:44 +0100 Subject: [FFmpeg-user] Is it possible to convert any video to DV 50 Mbps using FFMpeg ? In-Reply-To: <201407031819.46073.cehoyos@ag.or.at> References: <201407031819.46073.cehoyos@ag.or.at> Message-ID: <53B58FFC.2070401@gmail.com> Carl Eugen Hoyos wrote: > On Thursday 03 July 2014 05:57:04 pm Shyam Sundar wrote: >> Hi, >> >> I am trying to convert video to DV format with 50 Mb/s (like >> DVCPRO50 or something) using following command, but no matter what >> we give in -b:v, it always produces 24.4 Mbps output. > > Add -pix_fmt yuv422p > >> e.g. ffmpeg.exe -i Wildlife.wmv -f dv -target ntsc-dv -b:v 50m >> -qscale 15 -vol 256 -strict experimental Wildlife.dv Beware of 2 possible issues if interlacing is involved. The use of -target + a pix_fmt conversion may mean even if you try to do an interlace aware scale/CSC, which of course you should, it may not be seen. dv has/had assumptions about field order in weaved frames which may mean complications using de-interlacers on the result. Both potential issues untested by me - just from historic memory of posts/tests, though they weren't exactly the same as this case. From sw.craftsman at gmail.com Thu Jul 3 20:22:53 2014 From: sw.craftsman at gmail.com (Shyam Sundar) Date: Thu, 3 Jul 2014 23:52:53 +0530 Subject: [FFmpeg-user] Is it possible to convert any video to DV 50 Mbps using FFMpeg ? In-Reply-To: <201407031819.46073.cehoyos@ag.or.at> References: <201407031819.46073.cehoyos@ag.or.at> Message-ID: Hi, Thanks Carl & Andy for the reply, I tried .. but it doesn't seem to generate 50 Mbps video-bitrate output. I am checking video properties in Media Info. -------------------------------------------------------------------------------------------------------------------------- C:\>ffmpeg -i C:\Wildlife.wmv -f dv -target ntsc-dv -b:v 50m - qscale 15 -vol 256 -strict experimental -pix_fmt yuv422p "C:\Wildlife.dv" ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers built on Apr 11 2014 00:32:01 with gcc 4.8.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libswscale 2. 5.102 / 2. 5.102 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, asf, from 'C:\Users\Public\Videos\Sample Videos\Wildlife.wmv': Metadata: SfOriginalFPS : 299700 WMFSDKVersion : 11.0.6001.7000 WMFSDKNeeded : 0.0.0.0000 comment : Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball title : Wildlife in HD copyright : ?? 2008 Microsoft Corporation IsVBR : 0 DeviceConformanceTemplate: AP at L3 Duration: 00:00:30.09, start: 0.000000, bitrate: 6977 kb/s Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp , 192 kb/s Stream #0:1(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1280x7 20, 5942 kb/s, 29.97 tbr, 1k tbn, 1k tbc Please use -q:a or -q:v, -qscale is ambiguous File 'C:\Users\Public\Videos\Sample Videos\Wildlife.dv' already exists. Overwrit e ? [y/N] y Output #0, dv, to 'C:\Users\Public\Videos\Sample Videos\Wildlife.dv': Metadata: SfOriginalFPS : 299700 WMFSDKVersion : 11.0.6001.7000 WMFSDKNeeded : 0.0.0.0000 comment : Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball title : Wildlife in HD copyright : ?? 2008 Microsoft Corporation IsVBR : 0 DeviceConformanceTemplate: AP at L3 encoder : Lavf55.33.100 Stream #0:0(eng): Video: dvvideo, yuv422p, 720x480, q=2-31, 90k tbn, 29.97 t bc Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:1 -> #0:0 (vc1 -> dvvideo) Stream #0:0 -> #0:1 (wmav2 -> pcm_s16le) Press [q] to stop, [?] for help frame= 19 fps=0.0 q=0.0 size= 0kB time=00:00:00.63 bitrate= 0.0kbits/s frame= 39 fps= 39 q=0.0 size= 0kB time=00:00:01.30 bitrate= 0.0kbits/s frame= 60 fps= 39 q=0.0 size= 0kB time=00:00:02.00 bitrate= 0.0kbits/s frame= 81 fps= 40 q=0.0 size= 0kB time=00:00:02.70 bitrate= 0.0kbits/s frame= 102 fps= 40 q=0.0 size= 0kB time=00:00:03.40 bitrate= 0.0kbits/s frame= 122 fps= 40 q=0.0 size= 4453kB time=00:00:04.07 bitrate=8961.5kbits/s frame= 146 fps= 41 q=0.0 size= 8203kB time=00:00:04.87 bitrate=13794.4kbits/ frame= 167 fps= 41 q=0.0 size= 14531kB time=00:00:05.57 bitrate=21363.1kbits/ frame= 186 fps= 41 q=0.0 size= 20391kB time=00:00:06.20 bitrate=26915.0kbits/ frame= 204 fps= 40 q=0.0 size= 28359kB time=00:00:06.80 bitrate=34130.6kbits/ frame= 230 fps= 41 q=0.0 size= 32109kB time=00:00:07.67 bitrate=34275.3kbits/ frame= 258 fps= 42 q=0.0 size= 36562kB time=00:00:08.60 bitrate=34793.1kbits/ frame= 286 fps= 43 q=0.0 size= 40312kB time=00:00:09.54 bitrate=34606.0kbits/ frame= 314 fps= 44 q=0.0 size= 45703kB time=00:00:10.47 bitrate=35735.0kbits/ frame= 343 fps= 45 q=0.0 size= 49688kB time=00:00:11.44 bitrate=35565.6kbits/ frame= 365 fps= 45 q=0.0 size= 55078kB time=00:00:12.17 bitrate=37047.9kbits/ frame= 386 fps= 45 q=0.0 size= 60938kB time=00:00:12.87 bitrate=38759.2kbits/ frame= 407 fps= 44 q=0.0 size= 66094kB time=00:00:13.58 bitrate=39869.7kbits/ frame= 428 fps= 44 q=0.0 size= 71250kB time=00:00:14.28 bitrate=40871.3kbits/ frame= 448 fps= 44 q=0.0 size= 76641kB time=00:00:14.94 bitrate=42000.9kbits/ frame= 471 fps= 44 q=0.0 size= 81094kB time=00:00:15.71 bitrate=42271.1kbits/ frame= 493 fps= 44 q=0.0 size= 84844kB time=00:00:16.44 bitrate=42252.3kbits/ frame= 514 fps= 44 q=0.0 size= 89531kB time=00:00:17.15 bitrate=42765.0kbits/ frame= 532 fps= 44 q=0.0 size= 96328kB time=00:00:17.75 bitrate=44454.8kbits/ frame= 549 fps= 43 q=0.0 size= 102656kB time=00:00:18.31 bitrate=45908.2kbits/ frame= 565 fps= 43 q=0.0 size= 109922kB time=00:00:18.85 bitrate=47765.3kbits/ frame= 583 fps= 42 q=0.0 size= 116250kB time=00:00:19.45 bitrate=48955.5kbits/ frame= 603 fps= 42 q=0.0 size= 121875kB time=00:00:20.12 bitrate=49622.0kbits/ frame= 622 fps= 42 q=0.0 size= 128203kB time=00:00:20.75 bitrate=50604.1kbits/ frame= 641 fps= 42 q=0.0 size= 134062kB time=00:00:21.38 bitrate=51348.3kbits/ frame= 664 fps= 42 q=0.0 size= 138516kB time=00:00:22.15 bitrate=51216.3kbits/ frame= 686 fps= 42 q=0.0 size= 145078kB time=00:00:22.88 bitrate=51922.4kbits/ frame= 708 fps= 42 q=0.0 size= 150000kB time=00:00:23.62 bitrate=52015.8kbits/ frame= 728 fps= 42 q=0.0 size= 155625kB time=00:00:24.29 bitrate=52483.8kbits/ frame= 749 fps= 42 q=0.0 size= 160312kB time=00:00:24.99 bitrate=52548.8kbits/ frame= 774 fps= 42 q=0.0 size= 164297kB time=00:00:25.82 bitrate=52115.3kbits/ frame= 799 fps= 42 q=0.0 size= 166875kB time=00:00:26.65 bitrate=51276.9kbits/ frame= 824 fps= 43 q=0.0 size= 171094kB time=00:00:27.49 bitrate=50978.1kbits/ frame= 846 fps= 43 q=0.0 size= 176016kB time=00:00:28.22 bitrate=51080.8kbits/ frame= 867 fps= 43 q=0.0 size= 180938kB time=00:00:28.92 bitrate=51237.3kbits/ frame= 887 fps= 42 q=0.0 size= 186797kB time=00:00:29.59 bitrate=51703.9kbits/ frame= 901 fps= 42 q=0.0 Lsize= 211172kB time=00:00:30.09 bitrate=57486.5kbits /s video:211172kB audio:5651kB subtitle:0 data:0 global headers:0kB muxing overhead -2.606347% -------------------------------------------------------------------------------------------------------------------------- Video Properties in Media Info : -------------------------------------------------------------------------------------------------------------------------- General Complete name : C:\Wildlife.dv Format : DV Commercial name : DVCPRO File size : 206 MiB Duration : 1mn 0s Overall bit rate mode : Constant Overall bit rate : 28.8 Mbps Recorded date : 1970-01-01 00:00:00.000 Video Format : DV Commercial name : DVCPRO Duration : 1mn 0s Bit rate mode : Constant *Bit rate : 24.4 Mbps* Width : 720 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 29.970 fps Standard : NTSC Bit depth : 8 bits Scan type : Interlaced Scan order : Bottom Field First Compression mode : Lossy Bits/(Pixel*Frame) : 2.357 Time code of first frame : 00:00:00:00 Time code source : Subcode time code Stream size : 175 MiB (85%) Audio #1 ID : 0 Format : PCM Duration : 1mn 0s Bit rate mode : Constant Bit rate : 1 536 Kbps Encoded bit rate : 0 bps Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 11.0 MiB (5%) Audio #2 ID : 1 Format : PCM Duration : 1mn 0s Bit rate mode : Constant Bit rate : 1 536 Kbps Encoded bit rate : 0 bps Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 11.0 MiB (5%) -------------------------------------------------------------------------------------------------------------------------- Was wondering if you have any further suggestion ... Thanks, Rajiv From adf.lists at gmail.com Thu Jul 3 22:03:45 2014 From: adf.lists at gmail.com (Andy Furniss) Date: Thu, 03 Jul 2014 21:03:45 +0100 Subject: [FFmpeg-user] Is it possible to convert any video to DV 50 Mbps using FFMpeg ? In-Reply-To: References: <201407031819.46073.cehoyos@ag.or.at> Message-ID: <53B5B721.2020301@gmail.com> Shyam Sundar wrote: > Hi, > > Thanks Carl & Andy for the reply, > > I tried .. but it doesn't seem to generate 50 Mbps video-bitrate output. I > am checking video properties in Media Info. mediainfo is wrong. > > -------------------------------------------------------------------------------------------------------------------------- > C:\>ffmpeg -i C:\Wildlife.wmv -f dv -target ntsc-dv -b:v 50m - > qscale 15 -vol 256 -strict experimental -pix_fmt yuv422p "C:\Wildlife.dv" I see there is a dv50 target, so just using that (ntsc-dv50) will also get you 50mbit and do the conversion to 422 + scale if needed. I don't know what if anything the qscale 15 does with dv, do you? AIUI SD DV is an interlaced format - it may not matter that you use it for progressive, but for whatever reason using (and I have looked now) -target does a progressive format conversion. > frame= 901 fps= 42 q=0.0 Lsize= 211172kB time=00:00:30.09 > bitrate=57486.5kbits Correct time and bitrate > Video Properties in Media Info : > -------------------------------------------------------------------------------------------------------------------------- > General > Complete name : C:\Wildlife.dv > Format : DV > Commercial name : DVCPRO > File size : 206 MiB > Duration : 1mn 0s wrong time leading to > Overall bit rate mode : Constant > Overall bit rate : 28.8 Mbps wrong bitrate. From felipe.lacerda at upx.com.br Thu Jul 3 22:07:30 2014 From: felipe.lacerda at upx.com.br (Felipe Lacerda) Date: Thu, 3 Jul 2014 17:07:30 -0300 Subject: [FFmpeg-user] Transcode videos Message-ID: Hello, I need transcode the many videos for they run in old iPhone (3, 3gs) and I need change the profile and level of videos but even now I can't do that. My videos must change only these two flags of following way: - Profile: Baseline; - Level: 3.0 Can anyone help me, please? Thanks a lot, Regards, Felipe Lacerda Kneipp UPX http://www.upx.com.br Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 S?o Paulo +55 (11) 2626-3952 Bras?lia +55 (61) 2626-1248 Belo-Horizonte +55 (31) 2626-2019 Miami - USA +1 (305) 331-6649 From adf.lists at gmail.com Thu Jul 3 22:37:58 2014 From: adf.lists at gmail.com (Andy Furniss) Date: Thu, 03 Jul 2014 21:37:58 +0100 Subject: [FFmpeg-user] Is it possible to convert any video to DV 50 Mbps using FFMpeg ? In-Reply-To: <53B5B721.2020301@gmail.com> References: <201407031819.46073.cehoyos@ag.or.at> <53B5B721.2020301@gmail.com> Message-ID: <53B5BF26.3070807@gmail.com> Andy Furniss wrote: > AIUI SD DV is an interlaced format Ignore that - it seems you can have DVCPRO50 progressive as well as interlaced. From bumblebritches57 at gmail.com Fri Jul 4 04:18:21 2014 From: bumblebritches57 at gmail.com (Marcus Johnson) Date: Thu, 3 Jul 2014 22:18:21 -0400 Subject: [FFmpeg-user] Table_Options.h Message-ID: any idea why it says ffmpeg can encode DTS-HD MA? there's this line in the file: {"dts_hd_ma", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_DTS_HD_MA }, INT_MIN, INT_MAX, A|E, "profile"} and A|E means audio and encoding, is there an encoder in there? I mean, probably not, but idk what else this could mean... From jeetbhatnagar.8941 at gmail.com Fri Jul 4 08:51:08 2014 From: jeetbhatnagar.8941 at gmail.com (Jeet Bhatnagar) Date: Fri, 4 Jul 2014 12:21:08 +0530 Subject: [FFmpeg-user] Delay in Stream Message-ID: Hi Whenever I play the video it starts from beginning,but what I want to achieve is to view the stream from the point when player is started.My application is for surveillance so real time view of stream is needed *My command line is* ffmpeg -y -loglevel debug -fflags nobuffer -avioflags direct -rtbufsize 32k -b:v 512 -b:a 96 -vcodec mpeg1video -acodec mp2 -r 30 -i "input" -acodec copy http://i.p address:port/test.ffm *Console logs are* ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers built on Apr 26 2014 18:47:56 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu --enable-shared --disable-static avutil configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc avcodec configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc avformat configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc avdevice configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc avfilter configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc swscale configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc swresample configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc postproc configuration: --arch=i386 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-programs --disable-doc libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 53. 5.103 / 53. 5.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Splitting the commandline. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debug'. Reading option '-fflags' ... matched as AVOption 'fflags' with argument 'nobuffer'. Reading option '-avioflags' ... matched as AVOption 'avioflags' with argument 'direct'. Reading option '-rtbufsize' ... matched as AVOption 'rtbufsize' with argument '32k'. Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '512'. Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '96'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'mpeg1video'. Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'mp2'. Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'. Reading option '-i' ... matched as input file with argument '/home/rjil/Our_World___Beauty_of_Nature__Short_Film.mpg'. Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'. Reading option 'http://i.p :port/test.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option y (overwrite output files) with argument 1. Applying option loglevel (set libav* logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /home/rjil/Our_World___Beauty_of_Nature__Short_Film.mpg. Applying option b:v (video bitrate (please use -b:v)) with argument 512. Applying option b:a (video bitrate (please use -b:v)) with argument 96. Applying option vcodec (force video codec ('copy' to copy stream)) with argument mpeg1video. Applying option acodec (force audio codec ('copy' to copy stream)) with argument mp2. Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30. Successfully parsed a group of options. Opening an input file: /home/rjil/Our_World___Beauty_of_Nature__Short_Film.mpg. [mpeg @ 0x8ba0c80] Format mpeg probed with size=16384 and score=52 [mpeg @ 0x8ba0c80] File position before avformat_find_stream_info() is 0 [mpeg @ 0x8ba0c80] probing stream 0 pp:2500 [mpeg @ 0x8ba0c80] Probe with size=2002, packets=1 detected mpegvideo with score=25 [mpeg @ 0x8ba0c80] probing stream 0 pp:2499 [mpeg @ 0x8ba0c80] Probe with size=4043, packets=2 detected mpegvideo with score=25 [mpeg @ 0x8ba0c80] probing stream 0 pp:2498 [mpeg @ 0x8ba0c80] Probe with size=6084, packets=3 detected mpegvideo with score=25 [mpeg @ 0x8ba0c80] probing stream 0 pp:2497 [mpeg @ 0x8ba0c80] probing stream 0 pp:2496 [mpeg @ 0x8ba0c80] Probe with size=10157, packets=5 detected mpegvideo with score=51 [mpeg @ 0x8ba0c80] probed stream 0 [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 45000 in the queue [mpeg @ 0x8ba0c80] first_dts 45000 not matching first dts 59106 in the queue Last message repeated 4 times [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 66000 in the queue [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 72000 in the queue [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 81000 in the queue [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 87000 in the queue [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 102000 in the queue [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 117000 in the queue [mpeg @ 0x8ba0c80] first_dts 45000 not matching first dts 73212 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19650000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6535 PTS:19605000 T:653500.000000 POS:16740364 INTERLACED:0 -> PTS:6535 T:217.833333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6536 PTS:19608000 T:653600.000000 POS:16742412 INTERLACED:0 -> PTS:6536 T:217.866667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19605490 in the queue Last message repeated 5 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6537 PTS:19611000 T:653700.000000 POS:16744460 INTERLACED:0 -> PTS:6537 T:217.900000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19659000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6538 PTS:19614000 T:653800.000000 POS:nan INTERLACED:0 -> PTS:6538 T:217.933333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6539 PTS:19617000 T:653900.000000 POS:16760832 INTERLACED:0 -> PTS:6539 T:217.966667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6540 PTS:19620000 T:654000.000000 POS:16762892 INTERLACED:0 -> PTS:6540 T:218.000000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19668000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6541 PTS:19623000 T:654100.000000 POS:nan INTERLACED:0 -> PTS:6541 T:218.033333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6542 PTS:19626000 T:654200.000000 POS:16764940 INTERLACED:0 -> PTS:6542 T:218.066667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19621947 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19674000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6543 PTS:19629000 T:654300.000000 POS:16766988 INTERLACED:0 -> PTS:6543 T:218.100000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6544 PTS:19632000 T:654400.000000 POS:nan INTERLACED:0 -> PTS:6544 T:218.133333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19680000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6545 PTS:19635000 T:654500.000000 POS:16773120 INTERLACED:0 -> PTS:6545 T:218.166667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6546 PTS:19638000 T:654600.000000 POS:nan INTERLACED:0 -> PTS:6546 T:218.200000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19636053 in the queue Last message repeated 5 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6547 PTS:19641000 T:654700.000000 POS:16775180 INTERLACED:0 -> PTS:6547 T:218.233333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6548 PTS:19644000 T:654800.000000 POS:nan INTERLACED:0 -> PTS:6548 T:218.266667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19692000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6549 PTS:19647000 T:654900.000000 POS:16779276 INTERLACED:0 -> PTS:6549 T:218.300000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6550 PTS:19650000 T:655000.000000 POS:16781324 INTERLACED:0 -> PTS:6550 T:218.333333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6551 PTS:19653000 T:655100.000000 POS:16795648 INTERLACED:0 -> PTS:6551 T:218.366667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19652510 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19701000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6552 PTS:19656000 T:655200.000000 POS:nan INTERLACED:0 -> PTS:6552 T:218.400000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6553 PTS:19659000 T:655300.000000 POS:nan INTERLACED:0 -> PTS:6553 T:218.433333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19707000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6554 PTS:19662000 T:655400.000000 POS:16799756 INTERLACED:0 -> PTS:6554 T:218.466667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6555 PTS:19665000 T:655500.000000 POS:nan INTERLACED:0 -> PTS:6555 T:218.500000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6556 PTS:19668000 T:655600.000000 POS:16803840 INTERLACED:0 -> PTS:6556 T:218.533333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19666616 in the queue Last message repeated 4 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6557 PTS:19671000 T:655700.000000 POS:nan INTERLACED:0 -> PTS:6557 T:218.566667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6558 PTS:19674000 T:655800.000000 POS:nan INTERLACED:0 -> PTS:6558 T:218.600000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19722000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6559 PTS:19677000 T:655900.000000 POS:16807948 INTERLACED:0 -> PTS:6559 T:218.633333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6560 PTS:19680000 T:656000.000000 POS:16809996 INTERLACED:0 -> PTS:6560 T:218.666667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6561 PTS:19683000 T:656100.000000 POS:16812044 INTERLACED:0 -> PTS:6561 T:218.700000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19680722 in the queue Last message repeated 5 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6562 PTS:19686000 T:656200.000000 POS:nan INTERLACED:0 -> PTS:6562 T:218.733333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19734000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6563 PTS:19689000 T:656300.000000 POS:16824320 INTERLACED:0 -> PTS:6563 T:218.766667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6564 PTS:19692000 T:656400.000000 POS:16828428 INTERLACED:0 -> PTS:6564 T:218.800000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19740000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6565 PTS:19695000 T:656500.000000 POS:16830476 INTERLACED:0 -> PTS:6565 T:218.833333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6566 PTS:19698000 T:656600.000000 POS:nan INTERLACED:0 -> PTS:6566 T:218.866667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19697179 in the queue Last message repeated 4 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6567 PTS:19701000 T:656700.000000 POS:16832524 INTERLACED:0 -> PTS:6567 T:218.900000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6568 PTS:19704000 T:656800.000000 POS:nan INTERLACED:0 -> PTS:6568 T:218.933333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19752000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6569 PTS:19707000 T:656900.000000 POS:16836620 INTERLACED:0 -> PTS:6569 T:218.966667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6570 PTS:19710000 T:657000.000000 POS:16838668 INTERLACED:0 -> PTS:6570 T:219.000000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6571 PTS:19713000 T:657100.000000 POS:16840716 INTERLACED:0 -> PTS:6571 T:219.033333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19711286 in the queue Last message repeated 5 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6572 PTS:19716000 T:657200.000000 POS:nan INTERLACED:0 -> PTS:6572 T:219.066667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6573 PTS:19719000 T:657300.000000 POS:nan INTERLACED:0 -> PTS:6573 T:219.100000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6574 PTS:19722000 T:657400.000000 POS:16844812 INTERLACED:0 -> PTS:6574 T:219.133333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6575 PTS:19725000 T:657500.000000 POS:16855040 INTERLACED:0 -> PTS:6575 T:219.166667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19773000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6576 PTS:19728000 T:657600.000000 POS:16857100 INTERLACED:0 -> PTS:6576 T:219.200000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6577 PTS:19731000 T:657700.000000 POS:16859148 INTERLACED:0 -> PTS:6577 T:219.233333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6578 PTS:19734000 T:657800.000000 POS:16861196 INTERLACED:0 -> PTS:6578 T:219.266667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19727743 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19782000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6579 PTS:19737000 T:657900.000000 POS:nan INTERLACED:0 -> PTS:6579 T:219.300000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6580 PTS:19740000 T:658000.000000 POS:nan INTERLACED:0 -> PTS:6580 T:219.333333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6581 PTS:19743000 T:658100.000000 POS:16867328 INTERLACED:0 -> PTS:6581 T:219.366667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19741849 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19791000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6582 PTS:19746000 T:658200.000000 POS:nan INTERLACED:0 -> PTS:6582 T:219.400000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6583 PTS:19749000 T:658300.000000 POS:16869388 INTERLACED:0 -> PTS:6583 T:219.433333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6584 PTS:19752000 T:658400.000000 POS:16873484 INTERLACED:0 -> PTS:6584 T:219.466667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6585 PTS:19755000 T:658500.000000 POS:nan INTERLACED:0 -> PTS:6585 T:219.500000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6586 PTS:19758000 T:658600.000000 POS:nan INTERLACED:0 -> PTS:6586 T:219.533333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19758306 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19806000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6587 PTS:19761000 T:658700.000000 POS:16883712 INTERLACED:0 -> PTS:6587 T:219.566667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6588 PTS:19764000 T:658800.000000 POS:16887808 INTERLACED:0 -> PTS:6588 T:219.600000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6589 PTS:19767000 T:658900.000000 POS:16891916 INTERLACED:0 -> PTS:6589 T:219.633333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19815000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6590 PTS:19770000 T:659000.000000 POS:nan INTERLACED:0 -> PTS:6590 T:219.666667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6591 PTS:19773000 T:659100.000000 POS:16893964 INTERLACED:0 -> PTS:6591 T:219.700000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19821000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6592 PTS:19776000 T:659200.000000 POS:16896012 INTERLACED:0 -> PTS:6592 T:219.733333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6593 PTS:19779000 T:659300.000000 POS:nan INTERLACED:0 -> PTS:6593 T:219.766667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19772412 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19827000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6594 PTS:19782000 T:659400.000000 POS:16898060 INTERLACED:0 -> PTS:6594 T:219.800000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6595 PTS:19785000 T:659500.000000 POS:nan INTERLACED:0 -> PTS:6595 T:219.833333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6596 PTS:19788000 T:659600.000000 POS:16902156 INTERLACED:0 -> PTS:6596 T:219.866667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19788869 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19836000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6597 PTS:19791000 T:659700.000000 POS:nan INTERLACED:0 -> PTS:6597 T:219.900000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6598 PTS:19794000 T:659800.000000 POS:16904204 INTERLACED:0 -> PTS:6598 T:219.933333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19842000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6599 PTS:19797000 T:659900.000000 POS:16916480 INTERLACED:0 -> PTS:6599 T:219.966667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6600 PTS:19800000 T:660000.000000 POS:nan INTERLACED:0 -> PTS:6600 T:220.000000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19848000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6601 PTS:19803000 T:660100.000000 POS:16918540 INTERLACED:0 -> PTS:6601 T:220.033333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6602 PTS:19806000 T:660200.000000 POS:nan INTERLACED:0 -> PTS:6602 T:220.066667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19802975 in the queue Last message repeated 5 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6603 PTS:19809000 T:660300.000000 POS:16920588 INTERLACED:0 -> PTS:6603 T:220.100000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19857000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6604 PTS:19812000 T:660400.000000 POS:nan INTERLACED:0 -> PTS:6604 T:220.133333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6605 PTS:19815000 T:660500.000000 POS:16924684 INTERLACED:0 -> PTS:6605 T:220.166667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6606 PTS:19818000 T:660600.000000 POS:16926732 INTERLACED:0 -> PTS:6606 T:220.200000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19819433 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19866000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6607 PTS:19821000 T:660700.000000 POS:nan INTERLACED:0 -> PTS:6607 T:220.233333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6608 PTS:19824000 T:660800.000000 POS:16928780 INTERLACED:0 -> PTS:6608 T:220.266667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19872000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6609 PTS:19827000 T:660900.000000 POS:16932876 INTERLACED:0 -> PTS:6609 T:220.300000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6610 PTS:19830000 T:661000.000000 POS:nan INTERLACED:0 -> PTS:6610 T:220.333333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6611 PTS:19833000 T:661100.000000 POS:16941056 INTERLACED:0 -> PTS:6611 T:220.366667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6612 PTS:19836000 T:661200.000000 POS:nan INTERLACED:0 -> PTS:6612 T:220.400000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19833539 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19884000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6613 PTS:19839000 T:661300.000000 POS:16943116 INTERLACED:0 -> PTS:6613 T:220.433333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6614 PTS:19842000 T:661400.000000 POS:16945164 INTERLACED:0 -> PTS:6614 T:220.466667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6615 PTS:19845000 T:661500.000000 POS:16949260 INTERLACED:0 -> PTS:6615 T:220.500000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19893000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6616 PTS:19848000 T:661600.000000 POS:nan INTERLACED:0 -> PTS:6616 T:220.533333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6617 PTS:19851000 T:661700.000000 POS:16951308 INTERLACED:0 -> PTS:6617 T:220.566667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19849996 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19899000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6618 PTS:19854000 T:661800.000000 POS:16953356 INTERLACED:0 -> PTS:6618 T:220.600000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6619 PTS:19857000 T:661900.000000 POS:nan INTERLACED:0 -> PTS:6619 T:220.633333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6620 PTS:19860000 T:662000.000000 POS:16957452 INTERLACED:0 -> PTS:6620 T:220.666667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6621 PTS:19863000 T:662100.000000 POS:nan INTERLACED:0 -> PTS:6621 T:220.700000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19864102 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19911000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6622 PTS:19866000 T:662200.000000 POS:nan INTERLACED:0 -> PTS:6622 T:220.733333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6623 PTS:19869000 T:662300.000000 POS:16963584 INTERLACED:0 -> PTS:6623 T:220.766667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19917000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6624 PTS:19872000 T:662400.000000 POS:16967692 INTERLACED:0 -> PTS:6624 T:220.800000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6625 PTS:19875000 T:662500.000000 POS:nan INTERLACED:0 -> PTS:6625 T:220.833333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6626 PTS:19878000 T:662600.000000 POS:16969740 INTERLACED:0 -> PTS:6626 T:220.866667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19926000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6627 PTS:19881000 T:662700.000000 POS:nan INTERLACED:0 -> PTS:6627 T:220.900000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6628 PTS:19884000 T:662800.000000 POS:nan INTERLACED:0 -> PTS:6628 T:220.933333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19878208 in the queue Last message repeated 5 times frame= 6629 fps=218 q=1.6 size= 16220kB time=00:03:40.90 bitrate= 601.5kbits/sfirst_dts 42000 not matching first dts 19932000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6629 PTS:19887000 T:662900.000000 POS:16971788 INTERLACED:0 -> PTS:6629 T:220.966667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6630 PTS:19890000 T:663000.000000 POS:nan INTERLACED:0 -> PTS:6630 T:221.000000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19938000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6631 PTS:19893000 T:663100.000000 POS:16975884 INTERLACED:0 -> PTS:6631 T:221.033333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6632 PTS:19896000 T:663200.000000 POS:nan INTERLACED:0 -> PTS:6632 T:221.066667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19894665 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19944000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6633 PTS:19899000 T:663300.000000 POS:16977932 INTERLACED:0 -> PTS:6633 T:221.100000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6634 PTS:19902000 T:663400.000000 POS:nan INTERLACED:0 -> PTS:6634 T:221.133333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19950000 in the queue Last message repeated 2 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6635 PTS:19905000 T:663500.000000 POS:16984064 INTERLACED:0 -> PTS:6635 T:221.166667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6636 PTS:19908000 T:663600.000000 POS:nan INTERLACED:0 -> PTS:6636 T:221.200000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6637 PTS:19911000 T:663700.000000 POS:16986124 INTERLACED:0 -> PTS:6637 T:221.233333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6638 PTS:19914000 T:663800.000000 POS:nan INTERLACED:0 -> PTS:6638 T:221.266667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19908771 in the queue Last message repeated 5 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6639 PTS:19917000 T:663900.000000 POS:nan INTERLACED:0 -> PTS:6639 T:221.300000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6640 PTS:19920000 T:664000.000000 POS:nan INTERLACED:0 -> PTS:6640 T:221.333333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19968000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6641 PTS:19923000 T:664100.000000 POS:16990220 INTERLACED:0 -> PTS:6641 T:221.366667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6642 PTS:19926000 T:664200.000000 POS:16992268 INTERLACED:0 -> PTS:6642 T:221.400000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19925228 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19974000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6643 PTS:19929000 T:664300.000000 POS:16994316 INTERLACED:0 -> PTS:6643 T:221.433333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6644 PTS:19932000 T:664400.000000 POS:nan INTERLACED:0 -> PTS:6644 T:221.466667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19980000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6645 PTS:19935000 T:664500.000000 POS:16998412 INTERLACED:0 -> PTS:6645 T:221.500000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6646 PTS:19938000 T:664600.000000 POS:nan INTERLACED:0 -> PTS:6646 T:221.533333 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19986000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6647 PTS:19941000 T:664700.000000 POS:17002496 INTERLACED:0 -> PTS:6647 T:221.566667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6648 PTS:19944000 T:664800.000000 POS:nan INTERLACED:0 -> PTS:6648 T:221.600000 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19939335 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19992000 in the queue Last message repeated 1 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6649 PTS:19947000 T:664900.000000 POS:17004556 INTERLACED:0 -> PTS:6649 T:221.633333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6650 PTS:19950000 T:665000.000000 POS:nan INTERLACED:0 -> PTS:6650 T:221.666667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6651 PTS:19953000 T:665100.000000 POS:17008652 INTERLACED:0 -> PTS:6651 T:221.700000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20001000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6652 PTS:19956000 T:665200.000000 POS:nan INTERLACED:0 -> PTS:6652 T:221.733333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6653 PTS:19959000 T:665300.000000 POS:nan INTERLACED:0 -> PTS:6653 T:221.766667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19955792 in the queue Last message repeated 4 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6654 PTS:19962000 T:665400.000000 POS:17010700 INTERLACED:0 -> PTS:6654 T:221.800000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20010000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6655 PTS:19965000 T:665500.000000 POS:nan INTERLACED:0 -> PTS:6655 T:221.833333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6656 PTS:19968000 T:665600.000000 POS:17014796 INTERLACED:0 -> PTS:6656 T:221.866667 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20016000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6657 PTS:19971000 T:665700.000000 POS:17016844 INTERLACED:0 -> PTS:6657 T:221.900000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6658 PTS:19974000 T:665800.000000 POS:nan INTERLACED:0 -> PTS:6658 T:221.933333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19969898 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20022000 in the queue [force CFR for input from stream 0:0 @ 0x9532a40] N:6659 PTS:19977000 T:665900.000000 POS:17018892 INTERLACED:0 -> PTS:6659 T:221.966667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6660 PTS:19980000 T:666000.000000 POS:nan INTERLACED:0 -> PTS:6660 T:222.000000 [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20028000 in the queue Last message repeated 2 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6661 PTS:19983000 T:666100.000000 POS:17022988 INTERLACED:0 -> PTS:6661 T:222.033333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6662 PTS:19986000 T:666200.000000 POS:nan INTERLACED:0 -> PTS:6662 T:222.066667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6663 PTS:19989000 T:666300.000000 POS:17025036 INTERLACED:0 -> PTS:6663 T:222.100000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6664 PTS:19992000 T:666400.000000 POS:nan INTERLACED:0 -> PTS:6664 T:222.133333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19986355 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20040000 in the queue Last message repeated 2 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6665 PTS:19995000 T:666500.000000 POS:nan INTERLACED:0 -> PTS:6665 T:222.166667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6666 PTS:19998000 T:666600.000000 POS:nan INTERLACED:0 -> PTS:6666 T:222.200000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6667 PTS:20001000 T:666700.000000 POS:17029132 INTERLACED:0 -> PTS:6667 T:222.233333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6668 PTS:20004000 T:666800.000000 POS:nan INTERLACED:0 -> PTS:6668 T:222.266667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20000461 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20052000 in the queue Last message repeated 10 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6669 PTS:20007000 T:666900.000000 POS:nan INTERLACED:0 -> PTS:6669 T:222.300000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6670 PTS:20010000 T:667000.000000 POS:nan INTERLACED:0 -> PTS:6670 T:222.333333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6671 PTS:20013000 T:667100.000000 POS:17033228 INTERLACED:0 -> PTS:6671 T:222.366667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6672 PTS:20016000 T:667200.000000 POS:nan INTERLACED:0 -> PTS:6672 T:222.400000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6673 PTS:20019000 T:667300.000000 POS:nan INTERLACED:0 -> PTS:6673 T:222.433333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6674 PTS:20022000 T:667400.000000 POS:nan INTERLACED:0 -> PTS:6674 T:222.466667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6675 PTS:20025000 T:667500.000000 POS:nan INTERLACED:0 -> PTS:6675 T:222.500000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6676 PTS:20028000 T:667600.000000 POS:nan INTERLACED:0 -> PTS:6676 T:222.533333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6677 PTS:20031000 T:667700.000000 POS:nan INTERLACED:0 -> PTS:6677 T:222.566667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6678 PTS:20034000 T:667800.000000 POS:nan INTERLACED:0 -> PTS:6678 T:222.600000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6679 PTS:20037000 T:667900.000000 POS:nan INTERLACED:0 -> PTS:6679 T:222.633333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6680 PTS:20040000 T:668000.000000 POS:nan INTERLACED:0 -> PTS:6680 T:222.666667 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20016918 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20031024 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20088000 in the queue Last message repeated 21 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6681 PTS:20043000 T:668100.000000 POS:nan INTERLACED:0 -> PTS:6681 T:222.700000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6682 PTS:20046000 T:668200.000000 POS:nan INTERLACED:0 -> PTS:6682 T:222.733333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6683 PTS:20049000 T:668300.000000 POS:17039372 INTERLACED:0 -> PTS:6683 T:222.766667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6684 PTS:20052000 T:668400.000000 POS:nan INTERLACED:0 -> PTS:6684 T:222.800000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6685 PTS:20055000 T:668500.000000 POS:nan INTERLACED:0 -> PTS:6685 T:222.833333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6686 PTS:20058000 T:668600.000000 POS:nan INTERLACED:0 -> PTS:6686 T:222.866667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6687 PTS:20061000 T:668700.000000 POS:nan INTERLACED:0 -> PTS:6687 T:222.900000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6688 PTS:20064000 T:668800.000000 POS:nan INTERLACED:0 -> PTS:6688 T:222.933333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6689 PTS:20067000 T:668900.000000 POS:nan INTERLACED:0 -> PTS:6689 T:222.966667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6690 PTS:20070000 T:669000.000000 POS:nan INTERLACED:0 -> PTS:6690 T:223.000000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6691 PTS:20073000 T:669100.000000 POS:nan INTERLACED:0 -> PTS:6691 T:223.033333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6692 PTS:20076000 T:669200.000000 POS:nan INTERLACED:0 -> PTS:6692 T:223.066667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6693 PTS:20079000 T:669300.000000 POS:nan INTERLACED:0 -> PTS:6693 T:223.100000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6694 PTS:20082000 T:669400.000000 POS:nan INTERLACED:0 -> PTS:6694 T:223.133333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6695 PTS:20085000 T:669500.000000 POS:nan INTERLACED:0 -> PTS:6695 T:223.166667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6696 PTS:20088000 T:669600.000000 POS:nan INTERLACED:0 -> PTS:6696 T:223.200000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6697 PTS:20091000 T:669700.000000 POS:nan INTERLACED:0 -> PTS:6697 T:223.233333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6698 PTS:20094000 T:669800.000000 POS:nan INTERLACED:0 -> PTS:6698 T:223.266667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6699 PTS:20097000 T:669900.000000 POS:nan INTERLACED:0 -> PTS:6699 T:223.300000 frame= 6700 fps=217 q=2.0 size= 16268kB time=00:03:43.26 bitrate= 596.9kbits/sN:6700 PTS:20100000 T:670000.000000 POS:nan INTERLACED:0 -> PTS:6700 T:223.333333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6701 PTS:20103000 T:670100.000000 POS:nan INTERLACED:0 -> PTS:6701 T:223.366667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6702 PTS:20106000 T:670200.000000 POS:nan INTERLACED:0 -> PTS:6702 T:223.400000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6703 PTS:20109000 T:670300.000000 POS:nan INTERLACED:0 -> PTS:6703 T:223.433333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20047482 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20061588 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20075694 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20092151 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20106257 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20157000 in the queue Last message repeated 4 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6704 PTS:20112000 T:670400.000000 POS:nan INTERLACED:0 -> PTS:6704 T:223.466667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6705 PTS:20115000 T:670500.000000 POS:nan INTERLACED:0 -> PTS:6705 T:223.500000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6706 PTS:20118000 T:670600.000000 POS:17051660 INTERLACED:0 -> PTS:6706 T:223.533333 [force CFR for input from stream 0:0 @ 0x9532a40] N:6707 PTS:20121000 T:670700.000000 POS:nan INTERLACED:0 -> PTS:6707 T:223.566667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6708 PTS:20124000 T:670800.000000 POS:nan INTERLACED:0 -> PTS:6708 T:223.600000 [force CFR for input from stream 0:0 @ 0x9532a40] N:6709 PTS:20127000 T:670900.000000 POS:nan INTERLACED:0 -> PTS:6709 T:223.633333 [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20122714 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20136820 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20153277 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20167384 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20183841 in the queue Last message repeated 4 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20197947 in the queue Last message repeated 5 times [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20214404 in the queue Last message repeated 4 times [force CFR for input from stream 0:0 @ 0x9532a40] N:6710 PTS:20130000 T:671000.000000 POS:nan INTERLACED:0 -> PTS:6710 T:223.666667 [force CFR for input from stream 0:0 @ 0x9532a40] N:6711 PTS:20133000 T:671100.000000 POS:nan INTERLACED:0 -> PTS:6711 T:223.700000 [output stream 0:1 @ 0x9547c80] EOF on sink link output stream 0:1:default. No more output streams to write to, finishing. *Sever config file is as follows* tPort port no rt 21090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 10000 CustomLog - #NoDaemon RTSPPort port no File /tmp/test.ffm FileMaxSize 200M #ACL allow 127.0.0.1 Format mpeg #rtp Feed test.ffm VideoCodec mpeg2video # this must match the ffmpeg -r argument VideoFrameRate 30 # generally leave this is a large number #VideoBufferSize 1000 #80000 VideoGopSize 10 # another quality tweak VideoBitRate 512 # quality ranges - 1-31 (1 = best, 31 = worst) #VideoQMin 1 #VideoQMax 5 #VideoSize 320x240 #160x128 # this sets how many seconds in past to start Preroll 30 # wecams don't have audio #VideoIntraOnly #Strict -1 #Noaudio From barsnick at gmx.net Fri Jul 4 10:55:06 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 4 Jul 2014 10:55:06 +0200 Subject: [FFmpeg-user] Table_Options.h In-Reply-To: References: Message-ID: <20140704085506.GC8583@sunshine.barsnick.net> On Thu, Jul 03, 2014 at 22:18:21 -0400, Marcus Johnson wrote: > any idea why it says ffmpeg can encode DTS-HD MA? > > there's this line in the file: {"dts_hd_ma", NULL, 0, AV_OPT_TYPE_CONST, > {.i64 = FF_PROFILE_DTS_HD_MA }, INT_MIN, INT_MAX, A|E, "profile"} > > and A|E means audio and encoding, is there an encoder in there? I mean, > probably not, but idk what else this could mean... It probably means exactly that. Have you checked # ffmpeg -encoders | grep -i dts ?? I can encode something using these command line arguments. (That input is just some arbitrary sound generation I had in my shell history.): barsnick at sunshine:~ > ffmpeg -y -f lavfi -i aevalsrc="sin(420*2*PI*t)|cos(430*2*PI*t):c=FC|BC" -vn -t 3 -c:a dca -strict experimental -profile:a dts_hd_ma ~/tmp/test.vob ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jun 19 2014 12:27:50 with icc (ICC) 14.0.3 20140422 configuration: --prefix=/usr/new/tools/video/install/ffmpeg/20140618 --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-x11grab --enable-gnutls --enable-libcdio --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --cc=icc --cxx=icpc --extra-ldflags='-L/usr/new/tools/video/install/x264/current/lib -L/usr/new/tools/video/install/fdk-aac/current/lib' --extra-cflags='-I/usr/new/tools/video/install/x264/current/include -I/usr/new/tools/video/install/fdk-aac/current/include' libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 67.100 / 55. 67.100 libavformat 55. 43.100 / 55. 43.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 8.100 / 4. 8.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, lavfi, from 'aevalsrc=sin(420*2*PI*t)|cos(430*2*PI*t):c=FC|BC': Duration: N/A, start: 0.000000, bitrate: 5644 kb/s Stream #0:0: Audio: pcm_f64le, 44100 Hz, 2 channels (FC+BC), dbl, 5644 kb/s Output #0, svcd, to '/home/barsnick/tmp/test.vob': Metadata: encoder : Lavf55.43.100 Stream #0:0: Audio: dts (dca), 44100 Hz, quad(side), s32, 1411 kb/s Metadata: encoder : Lavc55.67.100 dca Stream mapping: Stream #0:0 -> #0:0 (pcm_f64le (native) -> dts (dca)) Press [q] to stop, [?] for help size= 530kB time=00:00:03.00 bitrate=1443.9kbits/s video:0kB audio:518kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.266667% My mplayer can play that, so the content seems to make some sort of sense. Whether that's really "DTS HD MA" is up to others to decide. Moritz From cehoyos at ag.or.at Fri Jul 4 11:01:18 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 4 Jul 2014 11:01:18 +0200 Subject: [FFmpeg-user] Table_Options.h In-Reply-To: References: Message-ID: <201407041101.18674.cehoyos@ag.or.at> On Friday 04 July 2014 04:18:21 am Marcus Johnson wrote: > any idea why it says ffmpeg can encode DTS-HD MA? > > there's this line in the file: {"dts_hd_ma", NULL, 0, AV_OPT_TYPE_CONST, > {.i64 = FF_PROFILE_DTS_HD_MA }, INT_MIN, INT_MAX, A|E, "profile"} It says that the option exists but FFmpeg does not actually support encoding dts-hd. Carl Eugen From cehoyos at ag.or.at Fri Jul 4 11:07:25 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 4 Jul 2014 11:07:25 +0200 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: References: Message-ID: <201407041107.25820.cehoyos@ag.or.at> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: > sudo ffmpeg -y -f mpegts -i 'udp://@ Unrelated: I believe that everybody on this list agrees that "sudo ffmpeg" is a very bad idea. > 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ > -maxrate 2M -bufsize 2M \ > -af volume=1.1 \ > -strict experimental \ > -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ > -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v > 900k \ > -preset superfast -tune zerolatency -threads 8 -crf 25 \ > -map 0:0 -map 0:1 \ > -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111' (Complete, uncut console output missing.) Why are you using -vsync 1? Did you try -async 1? Am I correct that the problem is reproducible with file output instead of network output? Is the problem reproducible if you save the udp stream to a file (including the reception problems) and transcode the file with FFmpeg? Carl Eugen From murat.maman at gmail.com Fri Jul 4 11:32:35 2014 From: murat.maman at gmail.com (Murat Maman) Date: Fri, 4 Jul 2014 12:32:35 +0300 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: <201407041107.25820.cehoyos@ag.or.at> References: <201407041107.25820.cehoyos@ag.or.at> Message-ID: Hi Carl, Thanks for your reply, Why are you using -vsync 1? First i thought my source of problem -vsync but i saw that that was not solution. Did you try -async 1? Yes i also tried -async 1 but unfortunately this is also not solution. Am I correct that the problem is reproducible with file output instead of network output? Yes we can re produce the problem for example when raining or if shake satellite antenna then audio and video beginning out of sync. In that case i am checking source by vlc but there is no problem, i could not see out of sync problem between audio and video. Sorry how can i do this ? You mean just save out put of the udp live stream to disk? Or can you direct to me how can do this. Is the problem reproducible if you save the udp stream to a file (including the reception problems) and transcode the file with FFmpeg? (Complete, uncut console output missing.) ffmpeg version git-2014-01-26-9651239 built on Jan 26 2014 18:29:39 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libass --enable-libfdk-aac --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-mmx --enable-nonfree --enable-version3 --enable-libx264 libavutil 52. 63.100 / 52. 63.100 libavcodec 55. 49.100 / 55. 49.100 libavformat 55. 26.100 / 55. 26.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 1.101 / 4. 1.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Murat On Fri, Jul 4, 2014 at 12:07 PM, Carl Eugen Hoyos wrote: > On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: > > > sudo ffmpeg -y -f mpegts -i 'udp://@ > > Unrelated: I believe that everybody on this list agrees > that "sudo ffmpeg" is a very bad idea. > > > 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ > > -maxrate 2M -bufsize 2M \ > > -af volume=1.1 \ > > -strict experimental \ > > -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ > > -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v > > 900k \ > > -preset superfast -tune zerolatency -threads 8 -crf 25 \ > > -map 0:0 -map 0:1 \ > > -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111' > > (Complete, uncut console output missing.) > > Why are you using -vsync 1? > Did you try -async 1? > > Am I correct that the problem is reproducible with file output > instead of network output? > > Is the problem reproducible if you save the udp stream to a file > (including the reception problems) and transcode the file with > FFmpeg? > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From belcampo at zonnet.nl Fri Jul 4 14:29:39 2014 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Fri, 4 Jul 2014 14:29:39 +0200 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: Message-ID: On 03 Jul 2014, at 22:07, Felipe Lacerda wrote: > Hello, > > I need transcode the many videos for they run in old iPhone (3, 3gs) and I > need change the profile and level of videos but even now I can't do that. > My videos must change only these two flags of following way: > > - Profile: Baseline; > - Level: 3.0 > > Can anyone help me, please? What have you tried to achieve what you want ? Complete command. > > Thanks a lot, > Regards, > > Felipe Lacerda Kneipp > > UPX > http://www.upx.com.br > > Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 > S?o Paulo +55 (11) 2626-3952 > Bras?lia +55 (61) 2626-1248 > Belo-Horizonte +55 (31) 2626-2019 > Miami - USA +1 (305) 331-6649 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 842 bytes Desc: Message signed with OpenPGP using GPGMail URL: From egekhter at pixcel.com Fri Jul 4 14:32:40 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Fri, 4 Jul 2014 07:32:40 -0500 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: <201407041107.25820.cehoyos@ag.or.at> References: <201407041107.25820.cehoyos@ag.or.at> Message-ID: Carl, Can you explain why sudo ffmpeg is a bad idea? Thx. Sent from my iPhone > On Jul 4, 2014, at 4:07 AM, Carl Eugen Hoyos wrote: > >> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: >> >> sudo ffmpeg -y -f mpegts -i 'udp://@ > > Unrelated: I believe that everybody on this list agrees > that "sudo ffmpeg" is a very bad idea. > >> 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ >> -maxrate 2M -bufsize 2M \ >> -af volume=1.1 \ >> -strict experimental \ >> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ >> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v >> 900k \ >> -preset superfast -tune zerolatency -threads 8 -crf 25 \ >> -map 0:0 -map 0:1 \ >> -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111' > > (Complete, uncut console output missing.) > > Why are you using -vsync 1? > Did you try -async 1? > > Am I correct that the problem is reproducible with file output > instead of network output? > > Is the problem reproducible if you save the udp stream to a file > (including the reception problems) and transcode the file with > FFmpeg? > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From david.cassany at i2cat.net Fri Jul 4 14:42:21 2014 From: david.cassany at i2cat.net (David Cassany Viladomat) Date: Fri, 4 Jul 2014 14:42:21 +0200 Subject: [FFmpeg-user] (no subject) Message-ID: Dear all, I have a buffer with the data of an AVFrame, I filled it using the method "avpicture_layout", then I want to read this buffer to fill another AVFrame, I am using "avpicture_fill" method for that, but i doesn't seam to work. Does anyone knows if avpicture_fill shouldn't be used in that way? Thanks in advance, David From felipe.lacerda at upx.com.br Fri Jul 4 15:51:33 2014 From: felipe.lacerda at upx.com.br (Felipe Lacerda) Date: Fri, 4 Jul 2014 10:51:33 -0300 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: Message-ID: Hello Henk, I'm beginning with ffmpeg, so I have many doubts and I did can't mount a command line for this job. My version of ffmpeg is 0.8.12 and follow below the characteristics of my videos: Video: h264 (High), 640x360, 29.97 fps Audio: aac, 48000 Hz, stereo Profile: Main Level: 3.1 Can you help me to mount this command line, please? Thanks, Felipe Lacerda Kneipp UPX http://www.upx.com.br Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 S?o Paulo +55 (11) 2626-3952 Bras?lia +55 (61) 2626-1248 Belo-Horizonte +55 (31) 2626-2019 Miami - USA +1 (305) 331-6649 2014-07-04 9:29 GMT-03:00 Henk D. Schoneveld : > > On 03 Jul 2014, at 22:07, Felipe Lacerda > wrote: > > > Hello, > > > > I need transcode the many videos for they run in old iPhone (3, 3gs) and > I > > need change the profile and level of videos but even now I can't do that. > > My videos must change only these two flags of following way: > > > > - Profile: Baseline; > > - Level: 3.0 > > > > Can anyone help me, please? > What have you tried to achieve what you want ? Complete command. > > > > Thanks a lot, > > Regards, > > > > Felipe Lacerda Kneipp > > > > UPX > > http://www.upx.com.br > > > > Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 > > S?o Paulo +55 (11) 2626-3952 > > Bras?lia +55 (61) 2626-1248 > > Belo-Horizonte +55 (31) 2626-2019 > > Miami - USA +1 (305) 331-6649 > > _______________________________________________ > > 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 4 18:38:10 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 4 Jul 2014 10:38:10 -0600 Subject: [FFmpeg-user] compiling tools/ismindex.c Message-ID: Is there an approved/easy way to build tools/XXX ? like "make tools/lsmindex" but it has all the linker options setup for you? Thank you! -roger- From rogerdpack2 at gmail.com Fri Jul 4 18:39:24 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 4 Jul 2014 10:39:24 -0600 Subject: [FFmpeg-user] strftime deprecated...in favor of what? Message-ID: I saw that drawtext "strftime" was marked as deprecated, the question is, in favor of what, now, to replace it? (Just got this question from a user). Thanks! -roger- From barsnick at gmx.net Fri Jul 4 19:12:49 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 4 Jul 2014 19:12:49 +0200 Subject: [FFmpeg-user] compiling tools/ismindex.c In-Reply-To: References: Message-ID: <20140704171249.GA12473@sunshine.barsnick.net> On Fri, Jul 04, 2014 at 10:38:10 -0600, Roger Pack wrote: > Is there an approved/easy way to build tools/XXX ? > like "make tools/lsmindex" but it has all the linker options setup for you? For me, it seems to be set up correctly if I call "make" from the top-level directory. I get a functional binary. See the command below. Are you looking for something else? Moritz $ make V=1 tools/ismindex icc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/usr/new/tools/video/install/x264/current/include -I/usr/new/tools/video/install/fdk-aac/current/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/freetype2 -I/usr/include/freetype2 -I/usr/kerberos/include -I/usr/new/tools/video/install/vid.stab/20140104/include -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -w1 -wd144,167,188,556,1292,1419,10006,10148,10156 -falign-stack=maintain-16-byte -MMD -c -o tools/ismindex.o tools/ismindex.c tools/ismindex.c(129): warning #3179: deprecated conversion of string literal to char* (should be const char*) const char *type = track->is_video ? "video" : "audio"; ^ tools/ismindex.c(409): warning #3179: deprecated conversion of string literal to char* (should be const char*) const char *type = track->is_video ? "video" : "audio"; ^ icc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -L/usr/new/tools/video/install/x264/current/lib -L/usr/new/tools/video/install/fdk-aac/current/lib -Wl,--as-needed -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -wd10156,11030 -o tools/ismindex tools/ismindex.o -lavformat -lavcodec -lswresample -lavutil -lXv -lX11 -lXext -lXfixes -lXext -lX11 -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -lSDL -lpthread -lgcrypt -lopenal -lx264 -L/usr/new/tools/video/install/vid.stab/20140104/lib -lvidstab -lv4l2 -L/usr/kerberos/lib -lrtmp -lssl -lcrypto -ldl -lz -lopenjpeg -DOPJ_STATIC -lopencore-amrwb -lopencore-amrnb -lmp3lame -lfreetype -lfdk-aac -lass -lgnutls -lm -lbz2 -lz -pthread -lrt From mak66345 at gmail.com Fri Jul 4 20:56:52 2014 From: mak66345 at gmail.com (Mike Makowski) Date: Fri, 4 Jul 2014 11:56:52 -0700 Subject: [FFmpeg-user] Unable to capture video from a cx231xx card on ubuntu 14.04 In-Reply-To: References: Message-ID: Rebuilt ffmpeg using instructions at https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu The problem persists: when camcorder is turned on, video capture appears to stop after a single frame, frame rate decreases, diagnostics stop updating. Upon turning off camcorder, capture resumes. ./ffmpeg -loglevel debug -t 7 -y -f v4l2 -i /dev/video1 rawvideo.nut ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 4 2014 11:02:30 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 90.101 / 52. 90.101 libavcodec 55. 68.100 / 55. 68.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '7'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'. Reading option '-i' ... matched as input file with argument '/dev/video1'. Reading option 'rawvideo.nut' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file /dev/video1. Applying option t (record or transcode "duration" seconds of audio/video) with argument 7. Applying option f (force format) with argument v4l2. Successfully parsed a group of options. Opening an input file: /dev/video1. [video4linux2,v4l2 @ 0x3872b60] fd:3 capabilities:85000011 [video4linux2,v4l2 @ 0x3872b60] Current input_channel: 0, input_name: Composite1, input_std: ffffff [video4linux2,v4l2 @ 0x3872b60] Current standard: PAL, id: ff, frameperiod: 1/25 [video4linux2,v4l2 @ 0x3872b60] Querying the device for the current frame size [video4linux2,v4l2 @ 0x3872b60] Setting frame size to 720x576 [video4linux2,v4l2 @ 0x3872b60] Trying to set codec:rawvideo pix_fmt:yuv420p Last message repeated 1 times [video4linux2,v4l2 @ 0x3872b60] Trying to set codec:rawvideo pix_fmt:yuv422p [video4linux2,v4l2 @ 0x3872b60] Trying to set codec:rawvideo pix_fmt:yuyv422 [video4linux2,v4l2 @ 0x3872b60] The V4L2 driver is using the interlaced mode [video4linux2,v4l2 @ 0x3872b60] All info found Input #0, video4linux2,v4l2, from '/dev/video1': Duration: N/A, start: 313134.452399, bitrate: 165888 kb/s Stream #0:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc Successfully opened the file. Parsing a group of options: output file rawvideo.nut. Successfully parsed a group of options. Opening an output file: rawvideo.nut. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'pix_fmt' to value '1' [graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'time_base' to value '1/1000000' [graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'pixel_aspect' to value '0/1' [graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x3869ce0] w:720 h:576 pixfmt:yuyv422 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2 [format @ 0x3863720] compat: called with args=[yuv420p] [format @ 0x3863720] Setting 'pix_fmts' to value 'yuv420p' [auto-inserted scaler 0 @ 0x3863ec0] Setting 'flags' to value '0x4' [auto-inserted scaler 0 @ 0x3863ec0] w:iw h:ih flags:'0x4' interl:0 [format @ 0x3863720] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0x3861e00] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0x3863ec0] w:720 h:576 fmt:yuyv422 sar:0/1 -> w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4 [mpeg4 @ 0x38763a0] intra_quant_bias = 0 inter_quant_bias = -64 [nut @ 0x3874620] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, nut, to 'rawvideo.nut': Metadata: encoder : Lavf55.45.100 Stream #0:0, 0, 1/51200: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576, 1/25, q=2-31, 200 kb/s, 25 fps, 51200 tbn, 25 tbc Metadata: encoder : Lavc55.68.100 mpeg4 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native)) Press [q] to stop, [?] for help [output stream 0:0 @ 0x38632a0] EOF on sink link output stream 0:0:default.its/s No more output streams to write to, finishing. frame= 69 fps=9.6 q=1.6 Lsize= 247kB time=00:00:05.36 bitrate= 377.7kbits/s video:246kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.290503% Input file #0 (/dev/video1): Input stream #0:0 (video): 70 packets read (58060800 bytes); 70 frames decoded; Total: 70 packets (58060800 bytes) demuxed Output file #0 (rawvideo.nut): Output stream #0:0 (video): 69 frames encoded; 69 packets muxed (252321 bytes); Total: 69 packets (252321 bytes) muxed 70 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x3880e20] Statistics: 0 seeks, 76 writeouts Any other suggestions On Wed, Jul 2, 2014 at 10:10 PM, Carl Eugen Hoyos wrote: > Mike Makowski gmail.com> writes: > > > ffmpeg -f rawvideo -i /dev/video1 > > This cannot work, the syntax is -f v4l2 -i /dev/video1 > > > ffmpeg version 1.2.6-7:1.2.6-1~trusty1 > > Please test current FFmpeg git head before asking for > support here. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From Andre.Weidemann at web.de Fri Jul 4 22:36:19 2014 From: Andre.Weidemann at web.de (=?ISO-8859-1?Q?Andr=E9_Weidemann?=) Date: Fri, 04 Jul 2014 22:36:19 +0200 Subject: [FFmpeg-user] How to set "fixed_frame_rate_flag" using ffmpeg? In-Reply-To: <536B30B6.5000503@web.de> References: <536B30B6.5000503@web.de> Message-ID: <53B71043.7000304@web.de> On 08.05.2014 09:22, Andr? Weidemann wrote: > I would very much like to create an h.264 MPEG-TS stream using ffmpeg, > where the fixed_frame_rate_flag is set to 1. > How can I set the fixed_frame_rate_flag? Really no one here can shed some light on it? Any help would be greatly appreciated. Thanks in advance. Andr? From l1 at newanswertech.com Sat Jul 5 05:29:54 2014 From: l1 at newanswertech.com (Luke Davis) Date: Fri, 4 Jul 2014 23:29:54 -0400 (EDT) Subject: [FFmpeg-user] Help Getting a higher quality windows-style format from an MP4 Message-ID: Hello First, I am no video guy, so there is a great deal I don't know about the terminology and best practices. This is probably trivial for most of you. I have a need to play an MP4 file on some very big screens, from a rather flaky Windows computer. I am trying to convert the MP4 into something that doesn't require quicktime (I.E. more windows friendly). I thought first of ASF, but am open to other options. Source MP4 (extract from youtube, using youtube-dl -f best): https://www.dropbox.com/s/vk3qglmfgizgajg/There%20She%20Stands%20-%20Michael%20W.%20Smith-i2hvouzjswo.mp4 First attempt: ffmpeg -i file.mp4 file.asf That works fine, but the quality frankly sucks. Result: https://www.dropbox.com/s/y2bvbbcdgdu4bj0/There%20She%20Stands%20-%20Michael%20W.%20Smith_non-quicktime.asf Pixilation, etc.. I next tried this: ffmpeg -i file.mp4 -an -b 2020 file.asf Result: https://www.dropbox.com/s/z9k2vqulc52i3wd/There%20She%20Stands%20-%20Michael%20W.%20Smith%20%28Windows%20version%29.asf (I don't care about audio) What can I do to improve the quality of this process? Thank you. Luke From bobm-ffmpeg at burner.com Sat Jul 5 05:46:02 2014 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Fri, 04 Jul 2014 21:46:02 -0600 Subject: [FFmpeg-user] Help Getting a higher quality windows-style format from an MP4 In-Reply-To: References: Message-ID: <53B774FA.8020202@burner.com> On 7/4/2014 9:29 PM, Luke Davis wrote: > I have a need to play an MP4 file on some very big screens, from a > rather flaky Windows computer. > > I am trying to convert the MP4 into something that doesn't require > quicktime (I.E. more windows friendly). FWIW if you're on Windows 7+, Windows Media player should be able to play the MP4 just fine. Otherwise I'd suggest just getting VLC and using that for playback rather than recompressing and already highly compressed stream. Having said all that, you can try Windows Media: ffmpeg -i Input.mp4 -codec:v wmv2 -q:v 5 -an Output.wmv You can decrease the file size/quality by increasing the -q:v value, and -an wipes out the audio. From bobm-ffmpeg at burner.com Sat Jul 5 05:51:57 2014 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Fri, 04 Jul 2014 21:51:57 -0600 Subject: [FFmpeg-user] [Autoreply] Re: Help Getting a higher quality windows-style format from an MP4 In-Reply-To: <7300-1404532013-894873@sneakemail.com> References: <7300-1404532013-894873@sneakemail.com> Message-ID: <53B7765D.2070704@burner.com> On 7/4/2014 9:46 PM, n4y5m3ma5j at snkmail.com wrote: > I will be out of the office until the 04th of August. I will read your message when I return. When you get back, get your IT guy to make your mail system look for the "Precedence: list" header in emails you receive and not send vacation auto-responses to them. From egoeimi at mail.ru Fri Jul 4 07:58:26 2014 From: egoeimi at mail.ru (egoeimi at mail.ru) Date: Fri, 04 Jul 2014 09:58:26 +0400 Subject: [FFmpeg-user] =?utf-8?q?non-zero_start_after_transcoding?= Message-ID: <1404453506.520542045@f405.i.mail.ru> > I usually disable -avoid_negative_ts thank you, Nicolas, for your suggestion, however if i add this option: ffmpeg -t 00:00:10 -i input/BM_1_2014-06-28_1221_C0000.mov -avoid_negative_ts 0 -vcodec libx264 -pix_fmt yuv420p -vlevel 4.1 -refs 4 -preset slow -acodec ac3 -ac 1 -ab 128k 0.mkv i'm getting closer to 0, but the start is still non-zero: Duration: 00:00:10.01, start: 0.005000, bitrate: 1512 kb/s From subeesh.babu at industeqsite.com Fri Jul 4 08:09:19 2014 From: subeesh.babu at industeqsite.com (subeesh.babu) Date: Fri, 4 Jul 2014 11:39:19 +0530 Subject: [FFmpeg-user] Reg: CPU Usage Issue Message-ID: Hi, a.. I am using ffmpeg library for video streaming its taking 99% of CPU usage . The configuration of My system is given below b.. TI DM8148 Davinci Processor with ARM core of 600MHz speed . c.. 512MB RAM d.. I am trying to stream a video file through ethernet . The command which am using is given below ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234 a.. It takes 99% of CPU usage . Any one suggest how to reduce my CPU usage . Regards, Subeesh babu Mob: +91-8939229627 **************** CAUTION - Disclaimer *****************This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. *********** End of Disclaimer ***********DataPatterns ITS Group********** From darkmoon at verizon.net Sat Jul 5 12:19:35 2014 From: darkmoon at verizon.net (Jeff) Date: Sat, 05 Jul 2014 03:19:35 -0700 Subject: [FFmpeg-user] Where to place '-shortest' when saving streams to References: Message-ID: <3E9tTx3lQbkH092yn@verizon.net> Well, I guess I know where to "put it," now. Many thanks to the FFMPEG developers for cheerfully helping the rest of us figure out how to use their creative work. So long, and thanks for all the fish! From barsnick at gmx.net Sat Jul 5 12:58:33 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sat, 5 Jul 2014 12:58:33 +0200 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: Message-ID: <20140705105833.GA28058@sunshine.barsnick.net> Hi Felipe, On Fri, Jul 04, 2014 at 10:51:33 -0300, Felipe Lacerda wrote: > My version of ffmpeg is 0.8.12 Please get hold of a newer version of ffmpeg. This is quite old and unsupported, and some tips you get just won't apply to your version. > > > I need transcode the many videos for they run in old iPhone (3, 3gs) and Check the compatibility section in this FAQ: https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips Quote: > If you want your videos to have highest compatibility with target > devices (older iOS versions or all Android devices): > > -profile:v baseline -level 3.0 So basically ffmpeg -i inputvideofile -c:a copy -c:v libx264 -profile:v baseline -level 3.0 outputvideofile Moritz From barsnick at gmx.net Sat Jul 5 13:10:44 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sat, 5 Jul 2014 13:10:44 +0200 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: References: Message-ID: <20140705111044.GB28058@sunshine.barsnick.net> On Fri, Jul 04, 2014 at 11:39:19 +0530, subeesh.babu wrote: > ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234 > a.. It takes 99% of CPU usage . Any one suggest how to reduce my CPU usage . If video.mp4 already contains the correct codecs with the correct parameters for your streamed mpegts, you could avoid recoding totally by adding: -c copy (or -c:v copy, if it shall only apply to video). That avoids very much of the CPU usage. Apart from that, we usually expect your full ffmpeg command line and the complete, uncut output on this list, to better understand your scenario. Moritz From zahid.mahmood2010 at gmail.com Sat Jul 5 12:51:04 2014 From: zahid.mahmood2010 at gmail.com (zahid mahmood) Date: Sat, 5 Jul 2014 03:51:04 -0700 Subject: [FFmpeg-user] Create a thumbnail image every X seconds of the video Message-ID: hello i have following command to get every second images from video. ffmpeg -i input.flv -f image2 -vf fps=fps=1 out%d.png this command extract whole image every second . i want to get images from specific (x,y) position. for example i want to get images from top of left side of video. From cliff.r.wong at gmail.com Sat Jul 5 20:33:47 2014 From: cliff.r.wong at gmail.com (Cliff R Wong) Date: Sat, 5 Jul 2014 14:33:47 -0400 Subject: [FFmpeg-user] mkv to wav conversion out of sync Message-ID: Dear All, I am using ffmpeg to extract the audio from an mkv file to wav with the following command: ffmpeg -i [input.mkv] -ar 8000 -ac 1 output.wav However, there is a roughly one second delay in the audio of the input mkv file and the output wav file. This is not a problem for avi and mp4 files. I have also observed this using the VLC converter. Getting the sync is very important for my application. Does anybody have any idea how to fix this? Or if you know the exact time delay, that would be great too. Thanks ahead for your help. Cliff From l1 at newanswertech.com Sat Jul 5 21:51:22 2014 From: l1 at newanswertech.com (Luke Davis) Date: Sat, 5 Jul 2014 15:51:22 -0400 (EDT) Subject: [FFmpeg-user] Help Getting a higher quality windows-style format from an MP4 In-Reply-To: References: Message-ID: On Fri, 4 Jul 2014, Luke Davis wrote: > Hello > > First, I am no video guy, so there is a great deal I don't know about the > terminology and best practices. This is probably trivial for most of you. > > I have a need to play an MP4 file on some very big screens, from a rather > flaky Windows computer. > > I am trying to convert the MP4 into something that doesn't require quicktime > (I.E. more windows friendly). I thought first of ASF, but am open to other > options. > > Source MP4 (extract from youtube, using youtube-dl -f best): > https://www.dropbox.com/s/vk3qglmfgizgajg/There%20She%20Stands%20-%20Michael%20W.%20Smith-i2hvouzjswo.mp4 > > First attempt: > ffmpeg -i file.mp4 file.asf > > That works fine, but the quality frankly sucks. > > Result: > https://www.dropbox.com/s/y2bvbbcdgdu4bj0/There%20She%20Stands%20-%20Michael%20W.%20Smith_non-quicktime.asf > > Pixilation, etc.. I next tried this: > > ffmpeg -i file.mp4 -an -b 2020 file.asf > > Result: > https://www.dropbox.com/s/z9k2vqulc52i3wd/There%20She%20Stands%20-%20Michael%20W.%20Smith%20%28Windows%20version%29.asf > > (I don't care about audio) > > What can I do to improve the quality of this process? > > Thank you. > > Luke My apologies, but if anyone answered this, I didn't see it--the list decided I was bouncing messages again, and cut me off. Luke From spencer.graves at prodsyse.com Sun Jul 6 05:23:48 2014 From: spencer.graves at prodsyse.com (Spencer Graves) Date: Sat, 05 Jul 2014 20:23:48 -0700 Subject: [FFmpeg-user] live link in a video? Message-ID: <53B8C144.1030804@prodsyse.com> Is there a way to include a live link in a video, so a user could stop the video, click on the link, and have it go there? If yes, how? For example, is there a way to include a live link in a png (or similar image file) that can be preserved by ffmpeg? Thanks, Spencer From f at vine.co Sun Jul 6 06:26:34 2014 From: f at vine.co (Felix Fung) Date: Sun, 6 Jul 2014 00:26:34 -0400 Subject: [FFmpeg-user] What happens when the input codec is the same as the output codec? Message-ID: In relation to both video and audio streams, I'm wondering what the behaviour is when the output codec is specified (e.g. -vcodec libx264) but is the same as the inputted video? Will there be a decode and re-encode or will it behave the same as -vcodec copy? Cheers, Felix From bumblebritches57 at gmail.com Sun Jul 6 09:21:33 2014 From: bumblebritches57 at gmail.com (Marcus Johnson) Date: Sun, 6 Jul 2014 03:21:33 -0400 Subject: [FFmpeg-user] What happens when the input codec is the same as the output codec? In-Reply-To: References: Message-ID: I don't know the details about it, but I do know for a fact that it's re-encoded. On Sun, Jul 6, 2014 at 12:26 AM, Felix Fung wrote: > In relation to both video and audio streams, I'm wondering what the > behaviour is when the output codec is specified (e.g. -vcodec libx264) but > is the same as the inputted video? Will there be a decode and re-encode or > will it behave the same as -vcodec copy? > > Cheers, > Felix > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Rev. Marcus Johnson Ordained Dudeist Priest at Dudeism, the Church of the Latter-Day Dude From oliver at fromme.com Sun Jul 6 11:34:41 2014 From: oliver at fromme.com (Oliver Fromme) Date: Sun, 6 Jul 2014 11:34:41 +0200 (CEST) Subject: [FFmpeg-user] live link in a video? In-Reply-To: <53B8C144.1030804@prodsyse.com> Message-ID: <201407060934.s669YfVS085995@haluter.fromme.com> Spencer Graves wrote: > Is there a way to include a live link in a video, so a user could > stop the video, click on the link, and have it go there? If yes, how? > > For example, is there a way to include a live link in a png (or > similar image file) that can be preserved by ffmpeg? No, the PNG standard does not support that. However, URLs can be included in general-purpose TXT chunks inside a PNG file, but I'm not aware of any software that would interpret this as a "live link" that would be preserved as such during conversion. Another possibility, of course, would be to include a QR code or DataMatrix code in the image contents itself, but I assume that's not what you have in mind. Best regards Oliver Fromme (member of the PNG group) -- ``We are all but compressed light'' (Albert Einstein) From barsnick at gmx.net Sun Jul 6 16:15:46 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 6 Jul 2014 16:15:46 +0200 Subject: [FFmpeg-user] strftime deprecated...in favor of what? In-Reply-To: References: Message-ID: <20140706141546.GA9208@sunshine.barsnick.net> On Fri, Jul 04, 2014 at 10:39:24 -0600, Roger Pack wrote: > I saw that drawtext "strftime" was marked as deprecated, the question is, > in favor of what, now, to replace it? (Just got this question from a user). The "normal" expansion mode provides the gmtime and localtime functions which both interpret strftime() type expressions. I assume you are supposed to use those instead. An example using the strftime type expression is given, which actually requires more escaping in my Unix shell: drawtext='fontfile=FreeSans.ttf:text=%{localtime:%a %b %d %Y}' Moritz From spencer.graves at prodsyse.com Sun Jul 6 18:00:53 2014 From: spencer.graves at prodsyse.com (Spencer Graves) Date: Sun, 06 Jul 2014 09:00:53 -0700 Subject: [FFmpeg-user] live link in a video? In-Reply-To: <201407060934.s669YfVS085995@haluter.fromme.com> References: <201407060934.s669YfVS085995@haluter.fromme.com> Message-ID: <53B972B5.9050206@prodsyse.com> Hello, Oliver Fromme: On 7/6/2014 2:34 AM, Oliver Fromme wrote: > Spencer Graves wrote: > > Is there a way to include a live link in a video, so a user could > > stop the video, click on the link, and have it go there? If yes, how? > > > > For example, is there a way to include a live link in a png (or > > similar image file) that can be preserved by ffmpeg? > > No, the PNG standard does not support that. > > However, URLs can be included in general-purpose TXT chunks > inside a PNG file, but I'm not aware of any software that > would interpret this as a "live link" that would be preserved > as such during conversion. > > Another possibility, of course, would be to include a QR code > or DataMatrix code in the image contents itself, but I assume > that's not what you have in mind. Thanks for this. Might it be feasible to include such in a subtitle? I'm told that subtitles can be included for any number of languages, and a user can turn on whatever language s/he wants. I know nothing about how to do that. I found "https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo", but I don't know if this would support subtitling options or a live link. Thanks again, Spencer > > Best regards > Oliver Fromme (member of the PNG group) > > From h.reindl at thelounge.net Sun Jul 6 18:03:16 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 06 Jul 2014 18:03:16 +0200 Subject: [FFmpeg-user] live link in a video? In-Reply-To: <53B972B5.9050206@prodsyse.com> References: <201407060934.s669YfVS085995@haluter.fromme.com> <53B972B5.9050206@prodsyse.com> Message-ID: <53B97344.6030705@thelounge.net> Am 06.07.2014 18:00, schrieb Spencer Graves: > On 7/6/2014 2:34 AM, Oliver Fromme wrote: >> Spencer Graves wrote: >> > Is there a way to include a live link in a video, so a user could >> > stop the video, click on the link, and have it go there? If yes, how? >> > >> > For example, is there a way to include a live link in a png (or >> > similar image file) that can be preserved by ffmpeg? >> >> No, the PNG standard does not support that. >> >> However, URLs can be included in general-purpose TXT chunks >> inside a PNG file, but I'm not aware of any software that >> would interpret this as a "live link" that would be preserved >> as such during conversion. >> >> Another possibility, of course, would be to include a QR code >> or DataMatrix code in the image contents itself, but I assume >> that's not what you have in mind. > > Thanks for this. Might it be feasible to include such in a subtitle? > I'm told that subtitles can be included for any number of languages, and a user can turn on whatever language > s/he wants. I know nothing about how to do that. I found > "https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo", but I don't know if this would support subtitling > options or a live link there is nothing like "live link" for any image or video format both are not a website -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From spencer.graves at prodsyse.com Sun Jul 6 18:29:34 2014 From: spencer.graves at prodsyse.com (Spencer Graves) Date: Sun, 06 Jul 2014 09:29:34 -0700 Subject: [FFmpeg-user] live link in a video? In-Reply-To: <53B97344.6030705@thelounge.net> References: <201407060934.s669YfVS085995@haluter.fromme.com> <53B972B5.9050206@prodsyse.com> <53B97344.6030705@thelounge.net> Message-ID: <53B9796E.9020801@prodsyse.com> On 7/6/2014 9:03 AM, Reindl Harald wrote: > > Am 06.07.2014 18:00, schrieb Spencer Graves: >> On 7/6/2014 2:34 AM, Oliver Fromme wrote: >>> Spencer Graves wrote: >>> > Is there a way to include a live link in a video, so a user could >>> > stop the video, click on the link, and have it go there? If yes, how? >>> > >>> > For example, is there a way to include a live link in a png (or >>> > similar image file) that can be preserved by ffmpeg? >>> >>> No, the PNG standard does not support that. >>> >>> However, URLs can be included in general-purpose TXT chunks >>> inside a PNG file, but I'm not aware of any software that >>> would interpret this as a "live link" that would be preserved >>> as such during conversion. >>> >>> Another possibility, of course, would be to include a QR code >>> or DataMatrix code in the image contents itself, but I assume >>> that's not what you have in mind. >> Thanks for this. Might it be feasible to include such in a subtitle? >> I'm told that subtitles can be included for any number of languages, and a user can turn on whatever language >> s/he wants. I know nothing about how to do that. I found >> "https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo", but I don't know if this would support subtitling >> options or a live link > there is nothing like "live link" for any image or video format > both are not a website So my best option is to use a QR or DataMatrix code? Thanks very much. Spencer > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From oliver at fromme.com Sun Jul 6 18:34:03 2014 From: oliver at fromme.com (Oliver Fromme) Date: Sun, 6 Jul 2014 18:34:03 +0200 (CEST) Subject: [FFmpeg-user] live link in a video? In-Reply-To: <53B972B5.9050206@prodsyse.com> Message-ID: <201407061634.s66GY3Zk087320@haluter.fromme.com> Spencer Graves wrote: > On 7/6/2014 2:34 AM, Oliver Fromme wrote: > > Spencer Graves wrote: > > > Is there a way to include a live link in a video, so a user could > > > stop the video, click on the link, and have it go there? If yes, how? > > > > > > For example, is there a way to include a live link in a png (or > > > similar image file) that can be preserved by ffmpeg? > > > > No, the PNG standard does not support that. > > > > However, URLs can be included in general-purpose TXT chunks > > inside a PNG file, but I'm not aware of any software that > > would interpret this as a "live link" that would be preserved > > as such during conversion. > > > > Another possibility, of course, would be to include a QR code > > or DataMatrix code in the image contents itself, but I assume > > that's not what you have in mind. > > > Thanks for this. Might it be feasible to include such in a > subtitle? You mean a QR code (or similar)? Yes, certainly, but it will not be a "live link" that you can click. A player would have to implement such a feature, and I'm not aware of any player (software nor hardware) that does that. The only thing you can do with a QR code is to scan it with a smartphone (then your smartphone's browser will open the linked web page), or -- if you want to open the webpage on your PC -- make a screen shot and feed it into an online decoder like xing.org or webqr.com (there are hundreds like these). There are also browser plugins (for Firefox and Opera, maybe others, too). But all of that is not exactly what you want, according to your description. The only thing that comes close is the way Youtube (and some other online video sites) embed links into their videos, but these only work with Youtube's own player. I don't think that there is any generic video software that supports this. ffmpeg certainly does not. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From spencer.graves at prodsyse.com Sun Jul 6 19:07:23 2014 From: spencer.graves at prodsyse.com (Spencer Graves) Date: Sun, 06 Jul 2014 10:07:23 -0700 Subject: [FFmpeg-user] live link in a video? In-Reply-To: <201407061634.s66GY3Zk087320@haluter.fromme.com> References: <201407061634.s66GY3Zk087320@haluter.fromme.com> Message-ID: <53B9824B.2080407@prodsyse.com> On 7/6/2014 9:34 AM, Oliver Fromme wrote: > Spencer Graves wrote: > > On 7/6/2014 2:34 AM, Oliver Fromme wrote: > > > Spencer Graves wrote: > > > > Is there a way to include a live link in a video, so a user could > > > > stop the video, click on the link, and have it go there? If yes, how? > > > > > > > > For example, is there a way to include a live link in a png (or > > > > similar image file) that can be preserved by ffmpeg? > > > > > > No, the PNG standard does not support that. > > > > > > However, URLs can be included in general-purpose TXT chunks > > > inside a PNG file, but I'm not aware of any software that > > > would interpret this as a "live link" that would be preserved > > > as such during conversion. > > > > > > Another possibility, of course, would be to include a QR code > > > or DataMatrix code in the image contents itself, but I assume > > > that's not what you have in mind. > > > > > > Thanks for this. Might it be feasible to include such in a > > subtitle? > > You mean a QR code (or similar)? Yes, certainly, but it will > not be a "live link" that you can click. A player would have > to implement such a feature, and I'm not aware of any player > (software nor hardware) that does that. > > The only thing you can do with a QR code is to scan it with a > smartphone (then your smartphone's browser will open the linked > web page), or -- if you want to open the webpage on your PC -- > make a screen shot and feed it into an online decoder like > xing.org or webqr.com (there are hundreds like these). There > are also browser plugins (for Firefox and Opera, maybe others, > too). > > But all of that is not exactly what you want, according to > your description. The only thing that comes close is the way > Youtube (and some other online video sites) embed links into > their videos, but these only work with Youtube's own player. > I don't think that there is any generic video software that > supports this. ffmpeg certainly does not. > > Best regards > Oliver Thanks very much for your help on this. Spencer > -- Spencer Graves, PE, PhD President and Chief Technology Officer Structure Inspection and Monitoring, Inc. 751 Emerson Ct. San Jos?, CA 95126 ph: 408-655-4567 web: www.structuremonitoring.com From lou at lrcd.com Mon Jul 7 01:00:09 2014 From: lou at lrcd.com (Lou) Date: Sun, 06 Jul 2014 15:00:09 -0800 Subject: [FFmpeg-user] Create a thumbnail image every X seconds of the video In-Reply-To: References: Message-ID: <1404687609.2682.138654761.55FE1478@webmail.messagingengine.com> On Sat, Jul 5, 2014, at 02:51 AM, zahid mahmood wrote: > hello i have following command to get every second images from video. > > ffmpeg -i input.flv -f image2 -vf fps=fps=1 out%d.png > > this command extract whole image every second . i want to get images from > specific (x,y) position. for example i want to get images from top of > left > side of video. Try the crop filter: http://ffmpeg.org/ffmpeg-filters.html#crop From murat.maman at gmail.com Mon Jul 7 07:57:22 2014 From: murat.maman at gmail.com (Murat Maman) Date: Mon, 7 Jul 2014 08:57:22 +0300 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: References: <201407041107.25820.cehoyos@ag.or.at> Message-ID: Hi Carl, Yesterday out of syn problem again occurred and i saved file where to my disk, i saw that there is no out of sync problem. What does it mean, what is the source of problem, am i have internet problem, why frame drop during the broadcasting, is it rtmp problem. regards, Murat On Fri, Jul 4, 2014 at 3:32 PM, Eugene Gekhter wrote: > Carl, > > Can you explain why sudo ffmpeg is a bad idea? > > Thx. > > Sent from my iPhone > > > On Jul 4, 2014, at 4:07 AM, Carl Eugen Hoyos wrote: > > > >> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: > >> > >> sudo ffmpeg -y -f mpegts -i 'udp://@ > > > > Unrelated: I believe that everybody on this list agrees > > that "sudo ffmpeg" is a very bad idea. > > > >> 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ > >> -maxrate 2M -bufsize 2M \ > >> -af volume=1.1 \ > >> -strict experimental \ > >> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ > >> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v > >> 900k \ > >> -preset superfast -tune zerolatency -threads 8 -crf 25 \ > >> -map 0:0 -map 0:1 \ > >> -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111' > > > > (Complete, uncut console output missing.) > > > > Why are you using -vsync 1? > > Did you try -async 1? > > > > Am I correct that the problem is reproducible with file output > > instead of network output? > > > > Is the problem reproducible if you save the udp stream to a file > > (including the reception problems) and transcode the file with > > FFmpeg? > > > > 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 tevans.uk at googlemail.com Mon Jul 7 12:03:23 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 7 Jul 2014 11:03:23 +0100 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: References: <201407041107.25820.cehoyos@ag.or.at> Message-ID: On Fri, Jul 4, 2014 at 1:32 PM, Eugene Gekhter wrote: > Carl, > > Can you explain why sudo ffmpeg is a bad idea? > Giving a process more privileges than are necessary for that process to do its function leads you to be more exposed if any security holes can be found in that process, since the attacker self-evidently has more privileges available. ffmpeg doesn't require enhanced privileges, just to be able to read its inputs and write to its outputs. Controlling access to input/output files can be done by changing file owner or group or file permissions, so using "sudo" solely in order to make an unreadable input file readable is a lazy and insecure practise that inevitably exposes you to more risks as outlined in the first paragraph. Cheers Tom From tevans.uk at googlemail.com Mon Jul 7 12:05:53 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 7 Jul 2014 11:05:53 +0100 Subject: [FFmpeg-user] mkv to wav conversion out of sync In-Reply-To: References: Message-ID: On Sat, Jul 5, 2014 at 7:33 PM, Cliff R Wong wrote: > Dear All, > > I am using ffmpeg to extract the audio from an mkv file to wav with the > following command: > > ffmpeg -i [input.mkv] -ar 8000 -ac 1 output.wav > > However, there is a roughly one second delay in the audio of the input mkv > file and the output wav file. This is not a problem for avi and mp4 files. > I have also observed this using the VLC converter. Getting the sync is very > important for my application. Does anybody have any idea how to fix this? > Or if you know the exact time delay, that would be great too. Thanks ahead > for your help. > > Cliff You're extracting an audio only track, so I'm curious, what is the audio out of sync with? Cheers Tom From cliff.r.wong at gmail.com Mon Jul 7 13:54:11 2014 From: cliff.r.wong at gmail.com (Cliff R Wong) Date: Mon, 7 Jul 2014 07:54:11 -0400 Subject: [FFmpeg-user] mkv to wav conversion out of sync In-Reply-To: References: Message-ID: This no longer seems to be a problem. Sorry for not mentioning it earlier. Thanks for your response. Cliff On Mon, Jul 7, 2014 at 6:05 AM, Tom Evans wrote: > On Sat, Jul 5, 2014 at 7:33 PM, Cliff R Wong > wrote: > > Dear All, > > > > I am using ffmpeg to extract the audio from an mkv file to wav with the > > following command: > > > > ffmpeg -i [input.mkv] -ar 8000 -ac 1 output.wav > > > > However, there is a roughly one second delay in the audio of the input > mkv > > file and the output wav file. This is not a problem for avi and mp4 > files. > > I have also observed this using the VLC converter. Getting the sync is > very > > important for my application. Does anybody have any idea how to fix this? > > Or if you know the exact time delay, that would be great too. Thanks > ahead > > for your help. > > > > Cliff > > You're extracting an audio only track, so I'm curious, what is the > audio out of sync with? > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From oliver at fromme.com Mon Jul 7 15:54:11 2014 From: oliver at fromme.com (Oliver Fromme) Date: Mon, 7 Jul 2014 15:54:11 +0200 (CEST) Subject: [FFmpeg-user] Create a thumbnail image every X seconds of the In-Reply-To: <1404687609.2682.138654761.55FE1478@webmail.messagingengine.com> Message-ID: <201407071354.s67DsB5Z091606@haluter.fromme.com> Lou wrote: > On Sat, Jul 5, 2014, at 02:51 AM, zahid mahmood wrote: > > hello i have following command to get every second images from video. > > > > ffmpeg -i input.flv -f image2 -vf fps=fps=1 out%d.png > > > > this command extract whole image every second . i want to get images from > > specific (x,y) position. for example i want to get images from top of > > left > > side of video. > > Try the crop filter: > http://ffmpeg.org/ffmpeg-filters.html#crop Another possibility is to use third-party tools for the cropping afterwards, e.g. the pbmtools (a.k.a. netpbm) or ImageMagick or something similar. The advantage of that approach is that it's more efficient if you don't know the exact cropping positions beforehand. When it turns out that the positions weren't quite right, you don't have to decode the whole video again, but you just re-crop the images that you extracted before. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From egekhter at pixcel.com Mon Jul 7 16:34:02 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Mon, 7 Jul 2014 09:34:02 -0500 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: References: <201407041107.25820.cehoyos@ag.or.at> Message-ID: <3B2504CC-0587-4D80-B600-8635056883B0@pixcel.com> Makes sense, thanks for the explanation. Sent from my iPhone > On Jul 7, 2014, at 5:03 AM, Tom Evans wrote: > >> On Fri, Jul 4, 2014 at 1:32 PM, Eugene Gekhter wrote: >> Carl, >> >> Can you explain why sudo ffmpeg is a bad idea? >> > > Giving a process more privileges than are necessary for that process > to do its function leads you to be more exposed if any security holes > can be found in that process, since the attacker self-evidently has > more privileges available. > > ffmpeg doesn't require enhanced privileges, just to be able to read > its inputs and write to its outputs. Controlling access to > input/output files can be done by changing file owner or group or file > permissions, so using "sudo" solely in order to make an unreadable > input file readable is a lazy and insecure practise that inevitably > exposes you to more risks as outlined in the first paragraph. > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From perera.amila at gmail.com Mon Jul 7 16:50:39 2014 From: perera.amila at gmail.com (Amila Perera) Date: Mon, 7 Jul 2014 20:20:39 +0530 Subject: [FFmpeg-user] Abnormal video playback behaviour in Chrome Message-ID: Hi all, I know that this question is not directly related to ffmpeg, but if you guys have similar experiences your advice/support is greatly appreciated. I transcode a .mov file in realtime with the following command and send the ouput byte stream in http response to google chrome. %ffmpeg.exe -i input.mov -vcodec libx264 -b:v 800k -s vga -pix_fmt yuv420p -r 30 -frag_duration 2 -f mp4 tcp://localhost:1234?listen I view the video as html5 video and google chrome plays it back but the playback speed of the video is very fast. The same video palys back at normal speed in IE11. I tried different versions of the ffmpeg command (vsync etc.) but still the problem is unsolved. Do you have any idea or any suggestion for improving ffmpeg command that might help to solve this issue. Thank you in advance. -- *Amila Perera.* From barsnick at gmx.net Mon Jul 7 17:24:13 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 7 Jul 2014 17:24:13 +0200 Subject: [FFmpeg-user] Abnormal video playback behaviour in Chrome In-Reply-To: References: Message-ID: <20140707152413.GE16730@sunshine.barsnick.net> Hi Amila, On Mon, Jul 07, 2014 at 20:20:39 +0530, Amila Perera wrote: > %ffmpeg.exe -i input.mov -vcodec libx264 -b:v 800k -s vga -pix_fmt yuv420p > -r 30 -frag_duration 2 -f mp4 tcp://localhost:1234?listen > > I view the video as html5 video and google chrome plays it back but the > playback speed of the video is very fast. > The same video palys back at normal speed in IE11. I think this may be an FAQ: https://trac.ffmpeg.org/wiki/StreamingGuide#The-reflag I can't reproduce though, because: - my ffmpeg refuses to stream mp4 (as it is non-seekable) - I haven't set up HTML5 around the stream, and the browsers don't show a video, but the binary content instead. But that's just my problem. ;-) Moritz From patrick.fischer at vitec.com Mon Jul 7 08:58:35 2014 From: patrick.fischer at vitec.com (Patrick Fischer) Date: Mon, 7 Jul 2014 08:58:35 +0200 Subject: [FFmpeg-user] audio and video sync problem In-Reply-To: References: <201407041107.25820.cehoyos@ag.or.at> Message-ID: <53BA451B.5070706@vitec.com> Hello Carl, did you save the stream as raw mpegts to disk? a player (like VLC) can handle mpegts files much better then an mp4 file. due to PTS/DTS values. t think the problem is that the ffmpeg cli failed handle missing audio/video frames. in summary: mpegts file -> play with VLC -> sync mpegts file -> create mp4 with ffmpeg -> play mp4 file with VLC -> async Is that your problem? If so, i have the same problem. I have made some test to duplicate some frames to fill the missing frames and send to decoder. It seems to work but sometimes i have detected that 1-100 frames are missing. best regards Patrick Am 07.07.2014 07:57, schrieb Murat Maman: > Hi Carl, > > Yesterday out of syn problem again occurred and i saved file where to my > disk, i saw that there is no out of sync problem. What does it mean, what > is the source of problem, am i have internet problem, why frame drop during > the broadcasting, is it rtmp problem. > > regards, > > Murat > > > On Fri, Jul 4, 2014 at 3:32 PM, Eugene Gekhter wrote: > >> Carl, >> >> Can you explain why sudo ffmpeg is a bad idea? >> >> Thx. >> >> Sent from my iPhone >> >>> On Jul 4, 2014, at 4:07 AM, Carl Eugen Hoyos wrote: >>> >>>> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: >>>> >>>> sudo ffmpeg -y -f mpegts -i 'udp://@ >>> Unrelated: I believe that everybody on this list agrees >>> that "sudo ffmpeg" is a very bad idea. >>> >>>> 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ >>>> -maxrate 2M -bufsize 2M \ >>>> -af volume=1.1 \ >>>> -strict experimental \ >>>> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ >>>> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v >>>> 900k \ >>>> -preset superfast -tune zerolatency -threads 8 -crf 25 \ >>>> -map 0:0 -map 0:1 \ >>>> -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111' >>> (Complete, uncut console output missing.) >>> >>> Why are you using -vsync 1? >>> Did you try -async 1? >>> >>> Am I correct that the problem is reproducible with file output >>> instead of network output? >>> >>> Is the problem reproducible if you save the udp stream to a file >>> (including the reception problems) and transcode the file with >>> FFmpeg? >>> >>> 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 -- *Patrick Fischer* Software Developer VITEC T. +49-(0)4307-8358-0 E. patrick.fischer at vitec.com W. http://www.vitec.com -- VITEC GmbH, Lise-Meitner Str. 15, 24223 Schwentinental Gesch?ftsf?hrer/Managing Director: Norman Schlomka HRB Pl?n 1584 / Steuernummer: 1929705211 / VATnumber: DE134878603 From libor.salda at gmail.com Mon Jul 7 10:51:15 2014 From: libor.salda at gmail.com (=?UTF-8?B?TGlib3IgxaBhbGRh?=) Date: Mon, 7 Jul 2014 10:51:15 +0200 Subject: [FFmpeg-user] Use ffmpeg to pool a stream from an IP camera and push it to MS Windows Media Server (Win 2008 R2) Message-ID: Hi guys, Do someone know if it is possible at all and if it is, can you send me a command line for it? There are these possibilities on the IP camera I have: * http / https with MPEG-4 or JPEG * RTPS By MS Expression Encoder I can push a stream to Windows Media Server using this link: http://streamsrvr.libi.cz/ppoint1 I would appreciate any solution to solve this problem, but the camera / transcoding laptop will be connected to public networks so stream to Windows Media Server must be pushed (are behind NAT). Thanks in advance, Libor From perera.amila at gmail.com Mon Jul 7 18:11:07 2014 From: perera.amila at gmail.com (Amila Perera) Date: Mon, 7 Jul 2014 21:41:07 +0530 Subject: [FFmpeg-user] Abnormal video playback behaviour in Chrome In-Reply-To: <20140707152413.GE16730@sunshine.barsnick.net> References: <20140707152413.GE16730@sunshine.barsnick.net> Message-ID: On Mon, Jul 7, 2014 at 8:54 PM, Moritz Barsnick wrote: > I think this may be an FAQ: > https://trac.ffmpeg.org/wiki/StreamingGuide#The-reflag > I will look in to these. But still I wonder how it works on IE11 and not in Chrome. > > > I can't reproduce though, because: > - my ffmpeg refuses to stream mp4 (as it is non-seekable) > As you can see in my command -frag_duration did the trick for me. refer : http://sixserv.org/2010/11/30/live-transcoding-for-video-and-audio-streaming/ Regards, -- *Amila Perera.* From barsnick at gmx.net Mon Jul 7 18:24:36 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 7 Jul 2014 18:24:36 +0200 Subject: [FFmpeg-user] Abnormal video playback behaviour in Chrome In-Reply-To: References: <20140707152413.GE16730@sunshine.barsnick.net> Message-ID: <20140707162436.GH16730@sunshine.barsnick.net> On Mon, Jul 07, 2014 at 21:41:07 +0530, Amila Perera wrote: > > I can't reproduce though, because: > > - my ffmpeg refuses to stream mp4 (as it is non-seekable) > > > As you can see in my command -frag_duration did the trick for me. > refer : > http://sixserv.org/2010/11/30/live-transcoding-for-video-and-audio-streaming/ Thanks. You did give the complete command line, and I failed to copy the relevant part in my trials. ;) Moritz From georg+ffmpeg at schaathun.net Mon Jul 7 20:21:05 2014 From: georg+ffmpeg at schaathun.net (Hans Georg Schaathun) Date: Mon, 7 Jul 2014 19:21:05 +0100 Subject: [FFmpeg-user] live link in a video? In-Reply-To: <201407061634.s66GY3Zk087320@haluter.fromme.com> References: <53B972B5.9050206@prodsyse.com> <201407061634.s66GY3Zk087320@haluter.fromme.com> Message-ID: <20140707182105.GA32135@golay.schaathun.net> On Sun, Jul 06, 2014 at 06:34:03PM +0200, Oliver Fromme wrote: > But all of that is not exactly what you want, according to > your description. The only thing that comes close is the way > Youtube (and some other online video sites) embed links into > their videos, but these only work with Youtube's own player. > I don't think that there is any generic video software that > supports this. ffmpeg certainly does not. It depends on how you want to define ?generic video software?. With HTML5, any web browser is video software, and it is pretty generic too. :-) I am not sure how to do it with HTML5; for all that I know it could be pretty ugly, but I feel confident it can be done rather generically. It would be real multimedia --- with at least one more medium on top of video -- thus out of scope for ffmpeg, which is just a bimedia tool (sound and picture). There are obviously many good reasons why live links should be out of scope. There are enough signal processing challenges involved in video and audio coding, and ffmpeg is an excellent tool by handling those challenges so flexibly and generically. Lumping the tool down with features from a totally different domain is a sure way to make a tool which is less flexible and harder to use. -- :-- Hans Georg From jules.gorny at gmail.com Tue Jul 8 14:14:26 2014 From: jules.gorny at gmail.com (Jules Gorny) Date: Tue, 8 Jul 2014 14:14:26 +0200 Subject: [FFmpeg-user] Edit metadata of a file (C++) Message-ID: Hello, My question is written on the ffmpeg forum : http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=2048 Thanks for reading, Jules From barsnick at gmx.net Tue Jul 8 18:45:04 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 8 Jul 2014 18:45:04 +0200 Subject: [FFmpeg-user] Edit metadata of a file (C++) In-Reply-To: References: Message-ID: <20140708164504.GE3950@sunshine.barsnick.net> On Tue, Jul 08, 2014 at 14:14:26 +0200, Jules Gorny wrote: > My question is written on the ffmpeg forum : Well, you could have written it here as well. Some of the audience won't go to the trouble of going elsewhere. Anyway, I have no idea, but: - You might want to provide a full code example for reproducing. - You say it crashes but don't provide a backtrace. - And regarding use of the API: You're not checking return values. That's okay for a hack, but as soon as you're having problems, you want to know if/where something is going wrong. Moritz From pshirkey at boosthardware.com Tue Jul 8 19:55:24 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 03:55:24 +1000 (EST) Subject: [FFmpeg-user] compiling for android Message-ID: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> Hi, I have successfully compiled and run ffmpeg and ffserver on my android-4.4 device using the ffmpeg4android scripts here: http://sourceforge.net/projects/ffmpeg4android/ I am now trying to get x264 included so I can run ffserver with h264 encoding enabled. I am running into two problems. 1: Using the scripts above the build fails when trying to link the executables. I suspect this is because it is looking for the static lib in "out/target/product/wing-k70/obj/STATIC_LIBRARIES/x264_intermediates" or similar. ==== target StaticLib: libswresample-2.2.git (out/target/product/wing-k70/obj/STATIC_LIBRARIES/libswresample-2.2.git_intermediates/libswresample-2.2.git.a) target StaticLib: libavutil-2.2.git (out/target/product/wing-k70/obj/STATIC_LIBRARIES/libavutil-2.2.git_intermediates/libavutil-2.2.git.a) target StaticLib: libswscale-2.2.git (out/target/product/wing-k70/obj/STATIC_LIBRARIES/libswscale-2.2.git_intermediates/libswscale-2.2.git.a) target StaticLib: libpostproc-2.2.git (out/target/product/wing-k70/obj/STATIC_LIBRARIES/libpostproc-2.2.git_intermediates/libpostproc-2.2.git.a) target Executable: ffprobe-static-2.2.git (out/target/product/wing-k70/obj/EXECUTABLES/ffprobe-static-2.2.git_intermediates/LINKED/ffprobe-static-2.2.git) target Executable: ffmpeg-static-2.2.git (out/target/product/wing-k70/obj/EXECUTABLES/ffmpeg-static-2.2.git_intermediates/LINKED/ffmpeg-static-2.2.git) target Executable: ffserver-static-2.2.git (out/target/product/wing-k70/obj/EXECUTABLES/ffserver-static-2.2.git_intermediates/LINKED/ffserver-static-2.2.git) external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:748: error: undefined reference to 'x264_bit_depth' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:308: error: undefined reference to 'x264_encoder_close' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:169: error: undefined reference to 'x264_picture_init' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:189: error: undefined reference to 'x264_encoder_reconfig' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:195: error: undefined reference to 'x264_encoder_reconfig' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:202: error: undefined reference to 'x264_encoder_reconfig' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:222: error: undefined reference to 'x264_encoder_reconfig' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:267: error: undefined reference to 'x264_encoder_encode' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:267: error: undefined reference to 'x264_encoder_encode' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:273: error: undefined reference to 'x264_encoder_delayed_frames' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:133: error: undefined reference to 'x264_bit_depth' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:371: error: undefined reference to 'x264_param_default' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:378: error: undefined reference to 'x264_param_default_preset' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:400: error: undefined reference to 'x264_param_parse' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:430: error: undefined reference to 'x264_param_parse' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:507: error: undefined reference to 'x264_param_parse' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:508: error: undefined reference to 'x264_param_parse' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:561: error: undefined reference to 'x264_param_apply_fastfirstpass' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:592: error: undefined reference to 'x264_param_apply_profile' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:676: error: undefined reference to 'x264_encoder_open_142' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:689: error: undefined reference to 'x264_encoder_headers' external/ffmpeg-HEAD-7558e55.android/libavcodec/libx264.c:708: error: undefined reference to 'x264_levels' collect2: error: ld returned 1 exit status make: *** [out/target/product/wing-k70/obj/EXECUTABLES/ffserver-static-2.2.git_intermediates/LINKED/ffserver-static-2.2.git] Error 1 make: *** Waiting for unfinished jobs.... ==== 2: Using the standard build method ./configure;make I cannot get past the error for sincos/sincosf which is not accessible in the default NDK libm.a. I am not sure how to go about building ffmpeg against Bionic. I have tried a few tricks but they all fail for me. libavcodec/aacps_tablegen.h:153: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:154: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:166: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:166: error: undefined reference to 'sincosf' collect2: error: ld returned 1 exit status make: *** [ffprobe_g] Error 1 - I have tried many different methods to beat the issue with various configuration commands/combinations but it seems I will have to hard code those functions into ffmpeg. I have set these flags : --extra-cflags='-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon -D_GNU_SOURCE -fno-builtin-sin -fno-builtin-cos -std=c99' - I have also tried -DGNU_SOURCE -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Tue Jul 8 21:39:26 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 8 Jul 2014 19:39:26 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > I have successfully compiled and run ffmpeg and > ffserver on my android-4.4 device > using the ffmpeg4android scripts here: External build scripts are not supported here. > 2: Using the standard build method > > ./configure;make > > I cannot get past the error for sincos/sincosf which > is not accessible in the default NDK libm.a. Please elaborate. (configure line etc.) Carl Eugen From pshirkey at boosthardware.com Wed Jul 9 07:38:56 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 15:38:56 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> Message-ID: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> On Wed, July 9, 2014 5:39 am, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> I have successfully compiled and run ffmpeg and >> ffserver on my android-4.4 device >> using the ffmpeg4android scripts here: > > External build scripts are not supported here. > Understood. I was hoping someone might know where to put the libx264.a file so that the linker can find it. FYI, for android FW developers this script is the most powerful of the bunch as it allows building ffmpeg directly into the /external tree as a default application. It also builds ffserver and several other tools (except ffplay) in both shared and static binaries. IMO this script should be well understood by FFMPEG developers as it enables a nearly complete ffmpeg solution to be bundled with the default android codebase. All the other options I have found only do partial static builds. Also the script works perfectly if I do not try to include x264 so all round it is quite an accomplishment. >> 2: Using the standard build method >> >> ./configure;make >> >> I cannot get past the error for sincos/sincosf which >> is not accessible in the default NDK libm.a. > > Please elaborate. > (configure line etc.) > Here's the full configure : ./configure --arch=arm --target-os=linux --enable-cross-compile \ --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ --disable-shared --enable-static --enable-gpl --enable-avresample --enable-libx264 --enable-encoder=libx264 \ --extra-cflags='-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon -D_GNU_SOURCE -fno-builtin-sin -fno-builtin-cos -std=c99' \ --extra-ldflags='-Wl,--fix-cortex-a8' \ --extra-libs="/4.4/external/x264/libx264.a"; - I also tried -DGNU_SOURCE - I am working with the complete android 4.4 tree not the stand alone NDK. math.h has ifdef _GNU_SOURCE for sincos/sincof/sincosl - however nm shows that they are not available so they were not enabled at compile. nm /4.4/prebuilts/ndk/9/platforms/android-18/arch-arm/usr/lib/libm.a | grep sin isinf.o: 00000000 T __isinf 00000000 T __isinff 00000000 T __isinfl U sin e_asin.o: 00000000 T asin e_asinf.o: 00000000 T asinf U sin U sinf U sin U sinf U sin U __kernel_sin 00000000 t sin_pi U __kernel_sindf 00000000 t sin_pif e_sinh.o: 00000000 T sinh e_sinhf.o: 00000000 T sinhf k_sin.o: 00000000 T __kernel_sin k_sinf.o: 00000000 T __kernel_sindf s_asinh.o: 00000000 T asinh s_asinhf.o: 00000000 T asinhf U __kernel_sin s_sin.o: U __kernel_sin 00000000 T sin s_sinf.o: 00000000 T sinf - I have looked at rebuilding libm.a with GNU_SOURCE enabled but I can't find a method for that either. That is probably outside the scope of this thread though. -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 9 08:48:02 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 06:48:02 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > >> I have successfully compiled and run ffmpeg and > >> ffserver on my android-4.4 device > >> using the ffmpeg4android scripts here: > > > > External build scripts are not supported here. I forgot to add that the script in question is known to contains severe deficiencies, so it really shouldn't be used. If something is wrong with our configure script, *please* report it. [...] > Here's the full configure : > > ./configure --arch=arm --target-os=linux --enable-cross-compile \ > --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ > arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ > --disable-shared --enable-static --enable-gpl --enable-avresample > --enable-libx264 --enable-encoder=libx264 \ > --extra-cflags='-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon > -D_GNU_SOURCE -fno-builtin-sin -fno-builtin-cos -std=c99' \ > --extra-ldflags='-Wl,--fix-cortex-a8' \ > --extra-libs="/4.4/external/x264/libx264.a"; --disable-shared --enable-static --enable-encoder=libx264 are the default, please remove them. The --extra-libs option looks wrong / superfluous, please remove it. If your libx264 library is in /4.4/external/x264, you have to tell configure with --extra-ldflags=-L/4.4/external/x264 Why are --extra-cflags needed? arm compilations often use --cpu (in your case: --cpu=cortex-a8) What is failing when using above configure line? Carl Eugen From pshirkey at boosthardware.com Wed Jul 9 10:13:46 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 18:13:46 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> Message-ID: <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> On Wed, July 9, 2014 4:48 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> >> I have successfully compiled and run ffmpeg and >> >> ffserver on my android-4.4 device >> >> using the ffmpeg4android scripts here: >> > >> > External build scripts are not supported here. > > I forgot to add that the script in question is known > to contains severe deficiencies, so it really shouldn't > be used. > FWIW, it worked well for me without x264 and limited knowledge of the ffmpeg arm/android build process at the time. I was able to quickly build an almost complete set of binaries and have them included in the fw image automatically. When I have the build with x264 working I would still like to utilise parts of the script to include ffmpeg in the /external tree. It utilises ./configure too but has additional code which modifies various config files before building which appears to fix the sincos/sincosf issue while running the script. I am not sure why it works as running the script manually doesn't help with the default built process. i.e. cat config.h | \ sed 's/\#define av_restrict /\#ifdef av_restrict\n\#undef av_restrict\n\#endif\n\#define av_restrict /g' | \ sed 's/\#define ARCH_ARM /\#ifdef ARCH_ARM\n\#undef ARCH_ARM\n\#endif\n\#define ARCH_ARM /g' | \ sed 's/\#define ARCH_MIPS /\#ifdef ARCH_MIPS\n\#undef ARCH_MIPS\n\#endif\n\#define ARCH_MIPS /g' | \ sed 's/\#define ARCH_X86 /\#ifdef ARCH_X86\n\#undef ARCH_X86\n\#endif\n\#define ARCH_X86 /g' | \ sed 's/\#define HAVE_PTHREADS/\#ifdef HAVE_PTHREADS\n\#undef HAVE_PTHREADS\n\#endif\n\#define HAVE_PTHREADS/g' | \ sed 's/\#define HAVE_MALLOC_H/\#ifdef HAVE_MALLOC_H\n\#undef HAVE_MALLOC_H\n\#endif\n\#define HAVE_MALLOC_H/g' | \ sed 's/\#define HAVE_STRERROR_R 1/\#define HAVE_STRERROR_R 0/g' | \ sed 's/\#define HAVE_SYSCTL 1/\#define HAVE_SYSCTL 0/g' | \ cat > config.h.tmp; \ mv config.h config.h.bak; \ mv config.h.tmp config.h; \ \ cat config.mak | \ sed 's/HAVE_STRERROR_R=yes/!HAVE_STRERROR_R=yes/g' | \ sed 's/HAVE_SYSCTL=yes/!HAVE_SYSCTL=yes/g' | \ cat > config.mak.tmp; \ mv config.mak config.mak.bak; \ mv config.mak.tmp config.mak; Finally it installs everything (without x264 enabled) into the correct location in the /out/... folders. I haven't seen any other attempts with the last step anywhere else. > If something is wrong with our configure script, > *please* report it. > > [...] > >> Here's the full configure : >> >> ./configure --arch=arm --target-os=linux --enable-cross-compile \ >> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ >> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ >> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ >> --disable-shared --enable-static --enable-gpl --enable-avresample >> --enable-libx264 --enable-encoder=libx264 \ >> --extra-cflags='-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon >> -D_GNU_SOURCE -fno-builtin-sin -fno-builtin-cos -std=c99' \ >> --extra-ldflags='-Wl,--fix-cortex-a8' \ >> --extra-libs="/4.4/external/x264/libx264.a"; > > --disable-shared --enable-static --enable-encoder=libx264 > are the default, please remove them. > > The --extra-libs option looks wrong / superfluous, please > remove it. > If your libx264 library is in /4.4/external/x264, you have to > tell configure with --extra-ldflags=-L/4.4/external/x264 > I tried several variations on that based on the details on this page on stackoverflow which comes up near the top of the search results for me. http://stackoverflow.com/questions/8812827/build-ffmpeg-with-x264-for-android Strangely with your suggestion of just -L and no -I it finds the library. My previous attempts were not able to find it for some reason which is why I resorted to --extra-libs and dropped -L / -I completely > Why are --extra-cflags needed? > No specific reason. They worked for the script above without x264 so I was starting from there. > arm compilations often use --cpu (in your case: --cpu=cortex-a8) > > What is failing when using above configure line? > With the following configure the build is much cleaner but it still bails out on the same location. "undefined reference to sincos/sincosf" - I tried with/without --extra-cflags - I run make clean between builds - I left the warnings in this time but I don't think they are relevant. I get the same warnings when building x264. ./configure --arch=arm --target-os=linux --cpu=cortex-a8 --enable-cross-compile \ --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ --enable-gpl --enable-avresample --enable-libx264 \ --extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos' \ --extra-ldflags='-Wl,--fix-cortex-a8,-L/.4.4/external/x264' AR libavutil/libavutil.a AR libpostproc/libpostproc.a LD ffmpeg_g LD ffprobe_g LD ffserver_g /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(pixel-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(mc-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(dct-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(deblock-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(pixel-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(mc-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(dct-a.o) for Cortex-A8 erratum because it has no mapping symbols. /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: warning: cannot scan executable section 1 of /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib/libx264.a(deblock-a.o) for Cortex-A8 erratum because it has no mapping symbols. libavfilter/avf_showcqt.c:332: error: undefined reference to 'sincos' libavfilter/avf_showcqt.c:335: error: undefined reference to 'sincos' libavfilter/avf_showspectrum.c:372: error: undefined reference to 'sincos' libavfilter/vf_deshake.c:242: error: undefined reference to 'sincos' libavcodec/aacps_tablegen.h:154: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:155: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:166: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:166: error: undefined reference to 'sincosf' collect2: error: ld returned 1 exit status make: *** [ffserver_g] Error 1 -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 9 11:37:52 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 09:37:52 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > It utilises ./configure too but has additional code > which modifies various config files before building This is one of the reasons why you definitely shouldn't use this script. [...] > > Why are --extra-cflags needed? > > No specific reason. They worked for the script above > without x264 so I was starting from there. > ./configure --arch=arm --target-os=linux --cpu=cortex-a8 > --enable-cross-compile \ > --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ > arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ > --enable-gpl --enable-avresample --enable-libx264 \ > --extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos' \ > --extra-ldflags='-Wl,--fix-cortex-a8,-L/.4.4/external/x264' Sorry if this is obvious to you (it isn't to me), why are you using --extra-cflags? I believe -DGNU_SOURCE is both wrong and unneeded. And why --fix-cortex-a8? The main reason I ask this is that there may be something missing in our configure script (that wasn't reported yet or - even worse - the report was missed). In this case it would make sense to fix it for all users. [...] > libavfilter/avf_showcqt.c:332: error: undefined reference to 'sincos' Doesn't this mean that your headers (or toolchain) do not match your math library? The following compiles fine here (no cross-compiling) with gcc -lm. If it doesn't work for your cross-compiler, I suspect you have to fix it before you can compile FFmpeg. #define _GNU_SOURCE #include int main(void) { double a, b, c; sincos(a, &b, &c); return b*c; } Carl Eugen From pshirkey at boosthardware.com Wed Jul 9 12:19:19 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 20:19:19 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> Message-ID: <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> On Wed, July 9, 2014 7:37 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> It utilises ./configure too but has additional code >> which modifies various config files before building > > This is one of the reasons why you definitely shouldn't > use this script. > > [...] > >> > Why are --extra-cflags needed? >> >> No specific reason. They worked for the script above >> without x264 so I was starting from there. > >> ./configure --arch=arm --target-os=linux --cpu=cortex-a8 >> --enable-cross-compile \ >> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ >> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ >> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ >> --enable-gpl --enable-avresample --enable-libx264 \ >> --extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos' \ >> --extra-ldflags='-Wl,--fix-cortex-a8,-L/.4.4/external/x264' > > Sorry if this is obvious to you (it isn't to me), why > are you using --extra-cflags? > I believe -DGNU_SOURCE is both wrong and unneeded. > And why --fix-cortex-a8? > I have tried with --extra-cfags and without. -DCNU_SOURCE is an ifdef in math.h included in the NDK. /* BIONIC: GLibc compatibility - required by the ARM toolchain */ #ifdef _GNU_SOURCE void sincos(double x, double *sin, double *cos); void sincosf(float x, float *sin, float *cos); void sincosl(long double x, long double *sin, long double *cos); #endif > The main reason I ask this is that there may be something > missing in our configure script (that wasn't reported yet > or - even worse - the report was missed). In this case it > would make sense to fix it for all users. > I don't think anything is missing from the configure script. The issue appears to be a lack of ability to tell if sincos/sincof/sincol is available. IIUC, that is usually handled by the compiler with --extra-cflags but it seems in this case the compiler is not able to deal with them. --extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos' I don't know if that is because of ffmpeg configuration or because the compiler is lacking that logic. I have observed that the ffmpeg4android script is somehow able to bypass the error but running the previous code snippet manually does not do anything so there seems to be some other magic going on. > [...] > >> libavfilter/avf_showcqt.c:332: error: undefined reference to 'sincos' > > Doesn't this mean that your headers (or toolchain) do > not match your math library? > > The following compiles fine here (no cross-compiling) with > gcc -lm. If it doesn't work for your cross-compiler, I > suspect you have to fix it before you can compile FFmpeg. > > #define _GNU_SOURCE > #include > int main(void) > { > double a, b, c; > sincos(a, &b, &c); > return b*c; > } > The sincos/sincosf/sincol functions are not available in the 4.4 android NDK libm.a. There are various suggestions for ways to get around it during the build. One person wrote a patch for an older version of the ffmpeg configure scripts that was deemed unnecessary to include in ffmpeg based on the same reason you have above. http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2012-September/130664.html However, it is not possible to build the complete ffmpeg with x264 enabled on android 4.4 without getting around the lack of sincos/sincosf/sincosl in the NDK math.h/libm.a - I have tried several options for trying to bypass the problem but none of them are working for me. At this point my options are to figure out how to rebuild libm.a from the NDK with the functions enabled, figure out the correct way to build with the bionic libm.a or add the workarounds directly to ffmpeg. - I have tried building against bionic libm.a and math.h but that screws things up with the libraries built against the NDK includes. - This is code that needs to be dealt with. I don't know why the compiler wants to use sincos if it is not available in libm.a. It is not being called by ffmpeg. I don't know why the cflags don't work to disable it either. bionic/libm/sincos.c void sincos(double x, double* p_sin, double* p_cos) { *p_sin = sin(x); *p_cos = cos(x); } void sincosf(float x, float* p_sinf, float* p_cosf) { *p_sinf = sinf(x); *p_cosf = cosf(x); } void sincosl(long double x, long double* p_sinl, long double* p_cosl) { *p_sinl = sinl(x); *p_cosl = cosl(x); } -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 9 12:38:54 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 10:38:54 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > -DCNU_SOURCE is an ifdef in math.h included in the NDK. > #ifdef _GNU_SOURCE Now please remove it from your configure line, as said it is not just wrong but also unneeded: If it turns out that it is needed, it would be a serious bug in FFmpeg, please report it (in that case)! > > The following compiles fine here (no cross-compiling) with > > gcc -lm. If it doesn't work for your cross-compiler, I > > suspect you have to fix it before you can compile FFmpeg. > > > > #define _GNU_SOURCE > > #include > > int main(void) > > { > > double a, b, c; > > sincos(a, &b, &c); > > return b*c; > > } > - I have tried several options for trying to bypass > the problem Did you try to compile the code I posted? Without any options? With -fno-builtin-sincos? Carl Eugen From pshirkey at boosthardware.com Wed Jul 9 14:16:57 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 22:16:57 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> Message-ID: <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> On Wed, July 9, 2014 8:38 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> -DCNU_SOURCE is an ifdef in math.h included in the NDK. >> #ifdef _GNU_SOURCE > > Now please remove it from your configure line, as said > it is not just wrong but also unneeded: If it turns out > that it is needed, it would be a serious bug in FFmpeg, > please report it (in that case)! > >> > The following compiles fine here (no cross-compiling) with >> > gcc -lm. If it doesn't work for your cross-compiler, I >> > suspect you have to fix it before you can compile FFmpeg. >> > IIUC, the error comes about because the compiler tries to optimise when sin and cos are used within one line of each other. If it is the compiler that is making the decision to use the sincos functions I would have to recompile the compiler to support -fno-builtin-sincos in order to turn it off. However I don't know why -fno-builtin-sincos does not kick in during the build. Is there a location in configure where I can force it? >> > #define _GNU_SOURCE >> > #include >> > int main(void) >> > { >> > double a, b, c; >> > sincos(a, &b, &c); >> > return b*c; >> > } > >> - I have tried several options for trying to bypass >> the problem > > Did you try to compile the code I posted? > Without any options? > With -fno-builtin-sincos? > I might have screwed up the command but both with and without -fno-builtin-sincos return the following: /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc \ -I/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/include \ -L/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib ../testlm.c ../testlm.c: In function 'main': ../testlm.c:6:2: warning: incompatible implicit declaration of built-in function 'sincos' [enabled by default] /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory /tmp/ccsomEJz.o:testlm.c:function main: error: undefined reference to 'sincos' collect2: error: ld returned 1 exit status -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 9 14:24:07 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 12:24:07 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > --extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos' \ Does it work with: --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos' ? Carl Euge From cehoyos at ag.or.at Wed Jul 9 14:25:39 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 12:25:39 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > However I don't know why -fno-builtin-sincos does not > kick in during the build. Is there a location in > configure where I can force it? (Yes, --extra-cflags) Because - iirc - you are the first to report here that it may be needed. Does it fix the issue for you if you add it to extra-cflags? Carl Eugen From pshirkey at boosthardware.com Wed Jul 9 15:16:36 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 23:16:36 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> Message-ID: <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> On Wed, July 9, 2014 10:25 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> However I don't know why -fno-builtin-sincos does not >> kick in during the build. Is there a location in >> configure where I can force it? > > (Yes, --extra-cflags) > > Because - iirc - you are the first to report here that > it may be needed. > > Does it fix the issue for you if you add it to extra-cflags? > I have tried with : --extra-cflags='-fno-builtin-sin -fno-builtin-cos' --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos' --extra-cflags='-fno-builtin-sincos' --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf' Unfortunately all these flags not working for me. Does that suggest a problem (in this case) with the compiler or ffmpeg? -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 9 15:27:39 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 13:27:39 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > I have tried with : > --extra-cflags='-fno-builtin-sin -fno-builtin-cos' > --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos' > --extra-cflags='-fno-builtin-sincos' > --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf' > > Unfortunately all these flags not working for me. Sorry, I am not a native speaker and I (probably) don't understand: Do you mean all above flags brake configure? What is the exact configure line that you tested and how did it fail? Carl Eugen From pshirkey at boosthardware.com Wed Jul 9 15:51:16 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 9 Jul 2014 23:51:16 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> Message-ID: <54199.86.107.254.57.1404913876.squirrel@boosthardware.com> On Wed, July 9, 2014 11:27 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> I have tried with : >> --extra-cflags='-fno-builtin-sin -fno-builtin-cos' >> --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos' >> --extra-cflags='-fno-builtin-sincos' >> --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf' >> >> Unfortunately all these flags not working for me. > > Sorry, I am not a native speaker and I (probably) don't > understand: Do you mean all above flags brake configure? > > What is the exact configure line that you tested and how > did it fail? > I have tried with this configure line. I have replaced the --extra-cflags with the various combinations listed above. ./configure --arch=arm --target-os=linux --cpu=cortex-a7 --enable-cross-compile \ --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ --enable-gpl --enable-avresample --enable-libx264 \ --extra-cflags='-fno-builtin-sin -fno-builtin-cos' \ --extra-ldflags='-Wl,-L/home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/external/x264' The build errors are the following: --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos -fno-builtin-sincosf' libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf' --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf' libavcodec/imc.c:206: error: undefined reference to 'sincos' libavcodec/imc.c:209: error: undefined reference to 'sincos' libavcodec/mdct_template.c:83: error: undefined reference to 'sincos' libavcodec/qdm2.c:1589: error: undefined reference to 'sincos' libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf' --extra-cflags='-fno-builtin-sin -fno-builtin-cos' libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf' libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf' -- Patrick Shirkey Boost Hardware Ltd From george at nsup.org Wed Jul 9 16:44:49 2014 From: george at nsup.org (Nicolas George) Date: Wed, 9 Jul 2014 16:44:49 +0200 Subject: [FFmpeg-user] compiling for android In-Reply-To: <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> Message-ID: <20140709144449.GA1121@phare.normalesup.org> Le primidi 21 messidor, an CCXXII, Patrick Shirkey a ?crit?: > Unfortunately all these flags not working for me. Does that suggest a > problem (in this case) with the compiler or ffmpeg? You can try to compile the following simple code: #include double test(double x) { return cos(x) + sin(x); } If the compiler from the Android NDK issues code using sincos, then it is broken, since the platform does not provide it. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From pshirkey at boosthardware.com Wed Jul 9 17:26:00 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Thu, 10 Jul 2014 01:26:00 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: <20140709144449.GA1121@phare.normalesup.org> References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> Message-ID: <54900.86.107.254.57.1404919560.squirrel@boosthardware.com> On Thu, July 10, 2014 12:44 am, Nicolas George wrote: > Le primidi 21 messidor, an CCXXII, Patrick Shirkey a ?crit?: >> Unfortunately all these flags not working for me. Does that suggest a >> problem (in this case) with the compiler or ffmpeg? > > You can try to compile the following simple code: > > #include > > double test(double x) > { > return cos(x) + sin(x); > } > > If the compiler from the Android NDK issues code using sincos, then it is > broken, since the platform does not provide it. > I found that I can compile without errors if I use the following commandline: /4.4prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -lm testlm.c testlm.c is the following: #include int main(void) { double a, b, c; return cos(a) + sin(a); } - However if I use Carl's test for sincos I see the following: #define _GNU_SOURCE 1 #include int main(void) { double a, b, c; sincos(a, &b, &c); return b*c; } /tmp/ccIGXQay.o:testlm.c:function main: error: undefined reference to 'sincos' collect2: error: ld returned 1 exit status /4.4prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -lm testlm.c I have also tried with these combinations with the same error: -fno-builtin-sincos -fno-builtin-sin -fno-builtin-cos -fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 9 18:03:00 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 16:03:00 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> <54900.86.107.254.57.1404919560.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > #define _GNU_SOURCE 1 > #include > int main(void) > { > double a, b, c; > sincos(a, &b, &c); > return b*c; > } > > /tmp/ccIGXQay.o:testlm.c:function main: error: undefined > reference to 'sincos' You will have to find out why it fails. A work-around in FFmpeg is possible but it needs at least an explanation (and the usual trolls will be against fixing the issue). This is all assuming sincos is POSIX (or similar), if it is not the issue will be easily fixed. Carl Eugen From cehoyos at ag.or.at Wed Jul 9 18:05:56 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 16:05:56 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <54199.86.107.254.57.1404913876.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > ./configure --arch=arm --target-os=linux --cpu=cortex-a7 > --enable-cross-compile \ > --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ > arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ > --enable-gpl --enable-avresample --enable-libx264 \ > --extra-cflags='-fno-builtin-sin -fno-builtin-cos' \ Do you see other problems if you remove them? If yes, please confirm this (I will try to implement a fix), if not please remove them. > --extra-ldflags='-Wl,-L/4.4/android-4.4-b1/external/x264' Why -Wl, ? (I know that it works fine but I wonder why you add unneeded things to the configure line.) Carl Eugen From cehoyos at ag.or.at Wed Jul 9 18:15:49 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 9 Jul 2014 16:15:49 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> <54900.86.107.254.57.1404919560.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > > You can try to compile the following simple code: > > > > #include > > > > double test(double x) > > { > > return cos(x) + sin(x); > > } So far I assumed that FFmpeg source code does contain calls to sincos()... > I found that I can compile without errors if I use the > following commandline: > > /4.4prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/ > bin/arm-linux-androideabi-gcc > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm > -lm testlm.c You have to add -O3 or similar to test this. Carl Eugen From soundgigi at freenet.de Wed Jul 9 18:34:26 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Wed, 9 Jul 2014 18:34:26 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) Message-ID: Hi List I would like to write a little script to join multiple mono Wav files to one multichannel file This command works fine - but always changing the filename by hand is quite tedious: ffmpeg -i Engine.L.aif -i Engine.R.aif -i Engine.C.aif -i Engine.LFE.aif -i Engine.Ls.aif -i Engine.Rs.aif -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" Engine_6ch.wav So i tried to write a batch script (OS X) that looks like that: (Newlines are only for better readabilty) #!/bin/sh for f in *.C.aif; do echo "Procesing $f" ffmpeg -i ?$f?.L.aif -i "$f?.R.aif -i "$f?.C.aif -i "$f?.LFE.aif -i "$f?.Ls.aif -i "$f?.Rs.aif -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" ${f%.aif}_6ch.wav done I am really not that good with scripting - did not find a proper resource yet... Can anyone help ??? I am on OS X Mavericks..... And ffmpeg is properly installed Best Regards Luigi From vvubin at gmail.com Wed Jul 9 20:31:10 2014 From: vvubin at gmail.com (Wu-bin Zhen) Date: Wed, 9 Jul 2014 14:31:10 -0400 Subject: [FFmpeg-user] How to Join Video Files and Add Time Gaps Without Re-encoding Message-ID: Hello FFmpeg, I am trying to join multiple video files with adding time gaps among those files, without re-encoding. My goal is to create a complete video file from recorded video segments based on the exact time. Those recorded video segments(mkv files with VP8 codec) are not consecutive, so I need to grab the video file create time and then calculate the time gap, and add the time gap between two video segments. I am trying to use the command below to create a time gap video and then add it between two segments: ffmpeg -loop 1 -f image2 -i img.png -c:v libvpx -t 30 timegap.mkv and then use command 'mkvmerge' to merge those segments and the timegap video file, but I got the error as below: > $ mkvmerge -o 3333.mkv 111.mkv + 222.mkv > mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun 9 2014 14:10:01 > '111.mkv': Using the demultiplexer for the format 'Matroska'. > '222.mkv': Using the demultiplexer for the format 'Matroska'. > '111.mkv' track 0: Using the output module for the format 'VP8/VP9'. > '222.mkv' track 0: Using the output module for the format 'VP8/VP9'. > No append mapping was given for the file no. 1 ('222.mkv'). A default mapping of 1:0:0:0 will be used instead. Please keep that in mind if mkvmerge aborts with an error message regarding invalid '--append-to' options. > Error: The track number 0 from the file '222.mkv' cannot be appended to the track number 0 from the file '111.mkv'. The track parameters do not match. The problem is that the generation of timegap video file takes pretty long, and mkvmerge does not work for merging those files. So I wonder if there is a better and working method just by using ffmpeg command, even without using mkvmerge. Any advise will be appreciated. -w From george at nsup.org Wed Jul 9 21:09:59 2014 From: george at nsup.org (Nicolas George) Date: Wed, 9 Jul 2014 21:09:59 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) In-Reply-To: References: Message-ID: <20140709190959.GA28362@phare.normalesup.org> Le primidi 21 messidor, an CCXXII, Luigi Rensinghoff a ?crit?: > ffmpeg > -i ?$f?.L.aif > -i "$f?.R.aif > -i "$f?.C.aif > -i "$f?.LFE.aif > -i "$f?.Ls.aif > -i "$f?.Rs.aif > > -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" > > ${f%.aif}_6ch.wav Assuming these strange double quotes and extraneous newlines were introduced by your bogus mail software and not present in your script... > Can anyone help ??? ... I believe you forgot to explain what exactly you need help for. But since your command works when you enter the file names explicitly, I suspect your question would be more at its place, and get better and faster answers on a forum or mailing-list dedicated to Unix and shell scripting. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From soundgigi at freenet.de Wed Jul 9 21:47:33 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Wed, 9 Jul 2014 21:47:33 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) In-Reply-To: <20140709190959.GA28362@phare.normalesup.org> References: <20140709190959.GA28362@phare.normalesup.org> Message-ID: <21A1D5DF-CBB7-41C3-A10E-145F9193D206@freenet.de> You are right ... it's more a shell scripting question, but i assumed people here a familiar with it - a little bit, since it's common task. I just don't know, how to use variables $f, f% and that shit - when to use what.. but i will look for a shell scripting mailing list Thanks Am 09.07.2014 um 21:09 schrieb Nicolas George : > Le primidi 21 messidor, an CCXXII, Luigi Rensinghoff a ?crit : >> ffmpeg >> -i ?$f?.L.aif >> -i "$f?.R.aif >> -i "$f?.C.aif >> -i "$f?.LFE.aif >> -i "$f?.Ls.aif >> -i "$f?.Rs.aif >> >> -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" >> >> ${f%.aif}_6ch.wav > > Assuming these strange double quotes and extraneous newlines were introduced > by your bogus mail software and not present in your script... > >> Can anyone help ??? > > ... I believe you forgot to explain what exactly you need help for. But > since your command works when you enter the file names explicitly, I suspect > your question would be more at its place, and get better and faster answers > on a forum or mailing-list dedicated to Unix and shell scripting. > > Regards, > > -- > Nicolas George From dork at penguinsleuth.com Wed Jul 9 22:26:11 2014 From: dork at penguinsleuth.com (David baker) Date: Wed, 9 Jul 2014 13:26:11 -0700 Subject: [FFmpeg-user] libquvi missing Message-ID: <20140709132611.19271524@m0005310.ppops.net> > which operating system? > what have you installed? > > on most distributions devel files are in own sub-packages because > they are not needed from 99 out of 100 users, and so on Fedora > as example it would be "yum install libquvi-devel" Opensuse 13.1 libquvi{-doc,-devel}-0.9.2 Ok, I'll skip libquvi. There is no 0.4 dev package. Thanks, David _____________________________________________________________ This message sent using Putercop.org's FREE E-Mail Service. Visit www.putercops.org, the Ultimate Cybercop Resource and get your own FREE Cybercop E-Mail account. Several Cybercop domains to choose from! From james.darnley at gmail.com Wed Jul 9 22:36:50 2014 From: james.darnley at gmail.com (James Darnley) Date: Wed, 09 Jul 2014 22:36:50 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) In-Reply-To: <21A1D5DF-CBB7-41C3-A10E-145F9193D206@freenet.de> References: <20140709190959.GA28362@phare.normalesup.org> <21A1D5DF-CBB7-41C3-A10E-145F9193D206@freenet.de> Message-ID: <53BDA7E2.80709@gmail.com> On 2014-07-09 21:47, Luigi Rensinghoff wrote: > I just don't know, how to use variables > > $f, f% and that shit - when to use what.. man bash will answer some of these questions. $ is for variables. $f is for the variable "f". % can be used to remove text at the end of a variable. {} these braces wrap the expansion you want bash to do, but are optional in simple cases. > -i ?$f?.L.aif > -i "$f?.R.aif > -i "$f?.C.aif > -i "$f?.LFE.aif > -i "$f?.Ls.aif > -i "$f?.Rs.aif Here is where you probably want: ${f%.C.aif} This means: expand the variable "f" and remove ".C.aif" from the end. > ${f%.aif}_6ch.wav Here as well. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From soundgigi at freenet.de Wed Jul 9 22:52:26 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Wed, 9 Jul 2014 22:52:26 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) In-Reply-To: <53BDA7E2.80709@gmail.com> References: <20140709190959.GA28362@phare.normalesup.org> <21A1D5DF-CBB7-41C3-A10E-145F9193D206@freenet.de> <53BDA7E2.80709@gmail.com> Message-ID: Thanks i found the solution: #!/bin/sh for f in *C.aif; do #echo "Processing $f" prefix=${f%} pre=`echo $prefix | sed 's/.\{6\}$//'` L=`echo $pre-\(L\).aif` R=`echo $pre-\(R\).aif` C=`echo $pre-C.aif` LFE=`echo $pre-\LFE\.aif` Ls=`echo $pre-S\(L\).aif` Rs=`echo $pre-S\(R\).aif` out=`${pre}_6ch.wav` ffmpeg -i $L -i $R -i $C -i $LFE -i $Ls -i $Rs -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" ${f%-C.aif}_6ch.wav rm $L rm $R rm $C rm $LFE rm $Ls rm $Rs done But i am sure it can be achieved more elegant - Suggestions ??? THX Am 09.07.2014 um 22:36 schrieb James Darnley : > On 2014-07-09 21:47, Luigi Rensinghoff wrote: >> I just don't know, how to use variables >> >> $f, f% and that shit - when to use what.. > > man bash will answer some of these questions. > > $ is for variables. > $f is for the variable "f". > % can be used to remove text at the end of a variable. > {} these braces wrap the expansion you want bash to do, but are optional > in simple cases. > >> -i ?$f?.L.aif >> -i "$f?.R.aif >> -i "$f?.C.aif >> -i "$f?.LFE.aif >> -i "$f?.Ls.aif >> -i "$f?.Rs.aif > > Here is where you probably want: ${f%.C.aif} > > This means: expand the variable "f" and remove ".C.aif" from the end. > >> ${f%.aif}_6ch.wav > > Here as well. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Thu Jul 10 09:23:33 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 10 Jul 2014 07:23:33 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> Message-ID: Nicolas George nsup.org> writes: > Le primidi 21 messidor, an CCXXII, Patrick Shirkey a ?crit?: > > Unfortunately all these flags not working for me. > > Does that suggest a problem (in this case) with the > > compiler or ffmpeg? > > You can try to compile the following simple code: Thank you for the more useful test case! > #include > > double test(double x) > { > return cos(x) + sin(x); > } > > If the compiler from the Android NDK issues code > using sincos, then it is broken, since the platform > does not provide it. Which appears not to be unusual on Android. The complete test case: $ cat test.c #define _GNU_SOURCE #include double sc(double a) { return sin(a) + cos(a); } $ gcc test.c -c && nm test.o U cos 0000000000000000 T sc U sin $ gcc test.c -c -O1 && nm test.o 0000000000000000 T sc U sincos $ gcc test.c -c -O1 -fno-builtin-sin && nm test.o U cos 0000000000000000 T sc U sin $ gcc test.c -c -O1 -fno-builtin-cos && nm test.o U cos 0000000000000000 T sc U sin I believe the toolchain is broken if it produces a sincos symbol although you compiled with -fno-builtin. (-fno-builtin-sincos has NO effect.) The define is not needed but maybe it makes the compiler believe that sincos() is available? Carl Eugen From pshirkey at boosthardware.com Thu Jul 10 09:56:47 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Thu, 10 Jul 2014 17:56:47 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> Message-ID: <59881.86.107.254.57.1404979007.squirrel@boosthardware.com> On Thu, July 10, 2014 5:23 pm, Carl Eugen Hoyos wrote: > Nicolas George nsup.org> writes: > >> Le primidi 21 messidor, an CCXXII, Patrick Shirkey a ??crit??: >> > Unfortunately all these flags not working for me. >> > Does that suggest a problem (in this case) with the >> > compiler or ffmpeg? >> >> You can try to compile the following simple code: > > Thank you for the more useful test case! > >> #include >> >> double test(double x) >> { >> return cos(x) + sin(x); >> } >> >> If the compiler from the Android NDK issues code >> using sincos, then it is broken, since the platform >> does not provide it. > > Which appears not to be unusual on Android. > > The complete test case: > $ cat test.c > #define _GNU_SOURCE > #include > > double sc(double a) > { > return sin(a) + cos(a); > } > $ gcc test.c -c && nm test.o > U cos > 0000000000000000 T sc > U sin > $ gcc test.c -c -O1 && nm test.o > 0000000000000000 T sc > U sincos > $ gcc test.c -c -O1 -fno-builtin-sin && nm test.o > U cos > 0000000000000000 T sc > U sin > $ gcc test.c -c -O1 -fno-builtin-cos && nm test.o > U cos > 0000000000000000 T sc > U sin > > I believe the toolchain is broken if it produces a > sincos symbol although you compiled with -fno-builtin. > > (-fno-builtin-sincos has NO effect.) > > The define is not needed but maybe it makes the > compiler believe that sincos() is available? > Here is the output: ffmpeg-HEAD-7558e55.android$ /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm ../testlm2.c -c && nm testlm2.o 00000000 t $a U __aeabi_dadd U cos 00000000 T sc U sin ffmpeg-HEAD-7558e55.android$ /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm ../testlm2.c -c -O1 && nm testlm2.o 00000000 t $a U __aeabi_dadd 00000000 T sc U sincos ffmpeg-HEAD-7558e55.android$ /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm ../testlm2.c -c -O1 -fno-builtin-sin && nm testlm2.o 00000000 t $a U __aeabi_dadd U cos 00000000 T sc U sin ffmpeg-HEAD-7558e55.android$ /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm ../testlm2.c -c -O1 -fno-builtin-cos && nm testlm2.o 00000000 t $a U __aeabi_dadd U cos 00000000 T sc U sin ffmpeg-HEAD-7558e55.android$ /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm ../testlm2.c -c -O1 -fno-builtin-sincos && nm testlm2.o 00000000 t $a U __aeabi_dadd 00000000 T sc U sincos -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Thu Jul 10 10:06:52 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 10 Jul 2014 08:06:52 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> <59881.86.107.254.57.1404979007.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > $ /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7 > /bin/arm-linux-androideabi-gcc > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm > ../testlm2.c -c -O1 -fno-builtin-sin && nm testlm2.o > 00000000 t $a > U __aeabi_dadd > U cos > 00000000 T sc > U sin So the toolchain works fine, why doesn't it work with FFmpeg? Please test: $ make libavfilter/avf_showcqt.o && nm libavfilter/avf_showcqt.o |grep sin And please provide the following console output: $ rm libavfilter/avf_showcqt.o && make V=1 libavfilter/avf_showcqt.o And please post the configure line used again, this makes reading the email easier. Thank you, Carl Eugen From cehoyos at ag.or.at Thu Jul 10 10:18:44 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 10 Jul 2014 08:18:44 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <54199.86.107.254.57.1404913876.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > --extra-cflags='-fno-builtin-sin -fno-builtin-cos' \ Please try instead: --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' -fno-builtin-sin is definitely not enough for aacps.o. Carl Eugen From pshirkey at boosthardware.com Thu Jul 10 12:12:03 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Thu, 10 Jul 2014 20:12:03 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <54199.86.107.254.57.1404913876.squirrel@boosthardware.com> Message-ID: <60849.86.107.254.57.1404987123.squirrel@boosthardware.com> On Thu, July 10, 2014 6:18 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> --extra-cflags='-fno-builtin-sin -fno-builtin-cos' \ > > Please try instead: > --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' > > -fno-builtin-sin is definitely not enough for aacps.o. > BULLS EYE! Thanks very much for your assistance. I have been able to build with libx264 for android 4.4 with the following configure line: ./configure --arch=arm --target-os=linux --enable-cross-compile \ --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ --enable-gpl --enable-avresample --enable-libx264 \ --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \ --extra-ldflags='-L/4.4/external/x264' :/ # ffmpeg ffmpeg version git-2014-06-20-f4ed41d Copyright (c) 2000-2014 the FFmpeg developers built on Jul 10 2014 12:14:20 with gcc 4.7 (GCC) :/ # ffmpeg -codecs DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb ) :/ # ffserver -f /data/ffserver.conf ffserver version git-2014-06-20-f4ed41d Copyright (c) 2000-2014 the FFmpeg developers built on Jul 10 2014 12:14:20 with gcc 4.7 (GCC) :/ # ffprobe ffprobe version git-2014-06-20-f4ed41d Copyright (c) 2007-2014 the FFmpeg developers built on Jul 10 2014 13:05:10 with gcc 4.7 (GCC) -- Patrick Shirkey Boost Hardware Ltd From felipe.lacerda at upx.com.br Thu Jul 10 13:52:03 2014 From: felipe.lacerda at upx.com.br (Felipe Lacerda) Date: Thu, 10 Jul 2014 08:52:03 -0300 Subject: [FFmpeg-user] Transcode videos In-Reply-To: <20140705105833.GA28058@sunshine.barsnick.net> References: <20140705105833.GA28058@sunshine.barsnick.net> Message-ID: Hello Moritz, Thanks for your help, look my output when I tried to use command line that you suggest me: root at UPX-TI-Lab:/usr/local/WowzaMediaServer/content# ffmpeg -i fff9957481ca4d9b4aec79c8c2418505_3-1.mp4 -c:a copy -c:v libx264 -profile:v baseline -level 3.0 teste_2.mp4 ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.04.1, Copyright (c) 2000-2013 the Libav developers built on Nov 9 2013 19:09:48 with gcc 4.7.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x214e1e0] max_analyze_duration reached Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fff9957481ca4d9b4aec79c8c2418505_3-1.mp4': Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom creation_time : 2012-11-22 03:20:12 Duration: 00:31:00.43, start: 0.000000, bitrate: 381 kb/s Stream #0.0(eng): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 294 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc Metadata: creation_time : 2012-11-22 03:20:12 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 61 kb/s Metadata: creation_time : 2012-11-22 03:20:12 Stream #0.2(und): Data: rtp / 0x20707472, 13 kb/s Metadata: creation_time : 2014-06-16 15:29:07 Stream #0.3(und): Data: rtp / 0x20707472, 8 kb/s Metadata: creation_time : 2014-06-16 15:29:08 Unrecognized option 'c:a' Failed to set value 'copy' for option 'c:a' What can be happening? Thanks, Regards, Felipe Lacerda Kneipp UPX http://www.upx.com.br Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 S?o Paulo +55 (11) 2626-3952 Bras?lia +55 (61) 2626-1248 Belo-Horizonte +55 (31) 2626-2019 Miami - USA +1 (305) 331-6649 2014-07-05 7:58 GMT-03:00 Moritz Barsnick : > Hi Felipe, > > On Fri, Jul 04, 2014 at 10:51:33 -0300, Felipe Lacerda wrote: > > > My version of ffmpeg is 0.8.12 > > Please get hold of a newer version of ffmpeg. This is quite old and > unsupported, and some tips you get just won't apply to your version. > > > > > I need transcode the many videos for they run in old iPhone (3, 3gs) > and > > Check the compatibility section in this FAQ: > > https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips > > Quote: > > If you want your videos to have highest compatibility with target > > devices (older iOS versions or all Android devices): > > > > -profile:v baseline -level 3.0 > > So basically > ffmpeg -i inputvideofile -c:a copy -c:v libx264 -profile:v baseline -level > 3.0 outputvideofile > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From george at nsup.org Thu Jul 10 14:03:07 2014 From: george at nsup.org (Nicolas George) Date: Thu, 10 Jul 2014 14:03:07 +0200 Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> Message-ID: <20140710120307.GC5064@phare.normalesup.org> Le duodi 22 messidor, an CCXXII, Carl Eugen Hoyos a ?crit?: > I believe the toolchain is broken if it produces a > sincos symbol although you compiled with -fno-builtin. > > (-fno-builtin-sincos has NO effect.) I agree, but the examples you showed seem to indicate correct behaviour: with -fno-builtin-sin, the call to sin() stays a call to the external function (and the call to cos() is not optimized to sincos(), since the sin was already computed); the symmetric analysis applies for -fno-builtin-cos. And -fno-builtin-sincos has no effect since there is no builtin sincos(): -fno-builtin-foo only changes places where the program calls foo() to replace them by assembly code that behaves the same. For example: gcc -fno-builtin-memcpy -S -Os -o - -x c - <<<' #include struct foo { unsigned x[42000]; }; void copy_foo(struct foo *t, struct foo *s) { memcpy(t, s, sizeof(*t)); } ' gives this: movl $168000, %edx jmp memcpy While without -fno-builtin-memcpy: movl $42000, %ecx rep movsl > The define is not needed but maybe it makes the > compiler believe that sincos() is available? My experiences also show that the define does not change anything. Then the compiler is definitely broken. OTOH, defining _GNU_SOURCE for Android programs is definitely totally WRONG. Android is not GNU, it does not implement most GNU extensions to the libc. Building for Android with _GNU_SOURCE is likely to fail, and that is perfectly normal. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From rogerdpack2 at gmail.com Thu Jul 10 15:21:13 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 10 Jul 2014 07:21:13 -0600 Subject: [FFmpeg-user] Use ffmpeg to pool a stream from an IP camera and push it to MS Windows Media Server (Win 2008 R2) In-Reply-To: References: Message-ID: I know there's an imsindex file in tools, FWIW. On Mon, Jul 7, 2014 at 2:51 AM, Libor ?alda wrote: > Hi guys, > > Do someone know if it is possible at all and if it is, can you send me a > command line for it? > > There are these possibilities on the IP camera I have: > * http / https with MPEG-4 or JPEG > * RTPS > > By MS Expression Encoder I can push a stream to Windows Media Server using > this link: http://streamsrvr.libi.cz/ppoint1 > > I would appreciate any solution to solve this problem, but the camera / > transcoding laptop will be connected to public networks so stream to > Windows Media Server must be pushed (are behind NAT). > > Thanks in advance, > Libor > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Thu Jul 10 15:24:27 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 10 Jul 2014 13:24:27 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <20140709144449.GA1121@phare.normalesup.org> <20140710120307.GC5064@phare.normalesup.org> Message-ID: Nicolas George nsup.org> writes: > Le duodi 22 messidor, an CCXXII, Carl Eugen Hoyos a ?crit?: > > I believe the toolchain is broken if it produces a > > sincos symbol although you compiled with -fno-builtin. > > > > (-fno-builtin-sincos has NO effect.) > > I agree, but the examples you showed seem to indicate > correct behaviour: Yes, the problem was apparently that Patrick did not show us the make failure for "extra-cflags=-fno-builtin-sin" (which should really not fail for libavfilter/avf_showcqt.c) but another configure line without no-builtin flags. The problem was the sinf() call in aacps_tablegen.h (not the sin() call in libavfilter/avf_showcqt.c which was the first error in the provided make output). > And -fno-builtin-sincos has no effect since there is no > builtin sincos(): That is what I hadn't realized originally (esp. when I thought that FFmpeg contains the calls to sincos()). > OTOH, defining _GNU_SOURCE for Android programs is > definitely totally WRONG. Don't worry, Patrick never defined it;-) Carl Eugen From cehoyos at ag.or.at Thu Jul 10 15:30:11 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 10 Jul 2014 13:30:11 +0000 (UTC) Subject: [FFmpeg-user] compiling for android References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <54199.86.107.254.57.1404913876.squirrel@boosthardware.com> <60849.86.107.254.57.1404987123.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > ./configure --arch=arm --target-os=linux I (still) wonder if the --cpu option is useful or not. (I cannot test.) > --enable-cross-compile \ If I read the source correctly, you can remove --enable-cross-compile if you are using --cross-prefix. > --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ > arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ > --enable-gpl --enable-avresample --enable-libx264 \ > --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \ > --extra-ldflags='-L/4.4/external/x264' Strictly speaking, this is missing the include path to the x264 headers matching the library in 4.4/external/x264. I suspect you are now using the native (system, x86) x264 headers for your Android compilation which may be no problem but is still not a good idea. Carl Eugen From rogerdpack2 at gmail.com Thu Jul 10 15:42:48 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 10 Jul 2014 07:42:48 -0600 Subject: [FFmpeg-user] compiling tools/ismindex.c In-Reply-To: <20140704171249.GA12473@sunshine.barsnick.net> References: <20140704171249.GA12473@sunshine.barsnick.net> Message-ID: On Fri, Jul 4, 2014 at 11:12 AM, Moritz Barsnick wrote: > On Fri, Jul 04, 2014 at 10:38:10 -0600, Roger Pack wrote: > > Is there an approved/easy way to build tools/XXX ? > > like "make tools/lsmindex" but it has all the linker options setup for > you? > > For me, it seems to be set up correctly if I call "make" from the > top-level directory. I get a functional binary. See the command below. > > Are you looking for something else? > > Moritz > > $ make V=1 tools/ismindex > I'm sure that's what I'm looking for, however, for me, cross compiling, this is what I get: ffmpeg_git$ make V=1 tools/ismindex make: *** No rule to make target `tools/ismindex'. Stop. Oh wait, but this works: fmpeg_git$ make V=1 tools/ismindex.exe phew, thanks for the pointer! -roger- > icc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 > -I/usr/new/tools/video/install/x264/current/include > -I/usr/new/tools/video/install/fdk-aac/current/include -std=c99 > -fomit-frame-pointer -pthread -I/usr/include/freetype2 > -I/usr/include/freetype2 -I/usr/kerberos/include > -I/usr/new/tools/video/install/vid.stab/20140104/include -D_GNU_SOURCE=1 > -D_REENTRANT -I/usr/include/SDL -g -Wdeclaration-after-statement -Wall > -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings > -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast > -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch > -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno > -fno-signed-zeros -w1 -wd144,167,188,556,1292,1419,10006,10148,10156 > -falign-stack=maintain-16-byte -MMD -c -o tools/ismindex.o tools/ismindex.c > tools/ismindex.c(129): warning #3179: deprecated conversion of string > literal to char* (should be const char*) > const char *type = track->is_video ? "video" : "audio"; > ^ > > tools/ismindex.c(409): warning #3179: deprecated conversion of string > literal to char* (should be const char*) > const char *type = track->is_video ? "video" : "audio"; > ^ > > icc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample > -Llibavutil -Llibpostproc -Llibswscale -Llibswresample > -L/usr/new/tools/video/install/x264/current/lib > -L/usr/new/tools/video/install/fdk-aac/current/lib -Wl,--as-needed > -Wl,--warn-common > -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample > -wd10156,11030 -o tools/ismindex tools/ismindex.o -lavformat -lavcodec > -lswresample -lavutil -lXv -lX11 -lXext -lXfixes -lXext -lX11 > -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -lSDL -lpthread -lgcrypt > -lopenal -lx264 -L/usr/new/tools/video/install/vid.stab/20140104/lib > -lvidstab -lv4l2 -L/usr/kerberos/lib -lrtmp -lssl -lcrypto -ldl -lz > -lopenjpeg -DOPJ_STATIC -lopencore-amrwb -lopencore-amrnb -lmp3lame > -lfreetype -lfdk-aac -lass -lgnutls -lm -lbz2 -lz -pthread -lrt > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From soundgigi at freenet.de Thu Jul 10 15:55:44 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Thu, 10 Jul 2014 15:55:44 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) - unwanted - bitrate change In-Reply-To: References: <20140709190959.GA28362@phare.normalesup.org> <21A1D5DF-CBB7-41C3-A10E-145F9193D206@freenet.de> <53BDA7E2.80709@gmail.com> Message-ID: <05C500C7-69DE-4E96-A0D0-F57B86FFD054@freenet.de> Hi all i have a little follow-up question.... I realized that with my command the audio-bitrate was changed from 16 to 24bit Input Streams are all: Stream #0:0: Audio: pcm_s24be, 48000 Hz, mono, s32, 1152 kb/s but the outputstream results in: Output #0, wav, to 'Park_City_Place_Quiet_6ch_24bit.wav': Metadata: ISFT : Lavf55.19.104 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1, s16, 4608 kb/s (default) i tried several things with b:a 24 and acodec .. but they all did not work Any Ideas ?? Thanks Luigi Am 09.07.2014 um 22:52 schrieb Luigi Rensinghoff : > Thanks > > > i found the solution: > > #!/bin/sh > > for f in *C.aif; > do > > #echo "Processing $f" > > > prefix=${f%} > pre=`echo $prefix | sed 's/.\{6\}$//'` > L=`echo $pre-\(L\).aif` > R=`echo $pre-\(R\).aif` > C=`echo $pre-C.aif` > LFE=`echo $pre-\LFE\.aif` > Ls=`echo $pre-S\(L\).aif` > Rs=`echo $pre-S\(R\).aif` > > out=`${pre}_6ch.wav` > > ffmpeg -i $L -i $R -i $C -i $LFE -i $Ls -i $Rs -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" ${f%-C.aif}_6ch.wav > > rm $L > rm $R > rm $C > rm $LFE > rm $Ls > rm $Rs > > done > > But i am sure it can be achieved more elegant - Suggestions ??? > > THX > > > Am 09.07.2014 um 22:36 schrieb James Darnley : > >> On 2014-07-09 21:47, Luigi Rensinghoff wrote: >>> I just don't know, how to use variables >>> >>> $f, f% and that shit - when to use what.. >> >> man bash will answer some of these questions. >> >> $ is for variables. >> $f is for the variable "f". >> % can be used to remove text at the end of a variable. >> {} these braces wrap the expansion you want bash to do, but are optional >> in simple cases. >> >>> -i ?$f?.L.aif >>> -i "$f?.R.aif >>> -i "$f?.C.aif >>> -i "$f?.LFE.aif >>> -i "$f?.Ls.aif >>> -i "$f?.Rs.aif >> >> Here is where you probably want: ${f%.C.aif} >> >> This means: expand the variable "f" and remove ".C.aif" from the end. >> >>> ${f%.aif}_6ch.wav >> >> Here as well. >> >> _______________________________________________ >> 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 soundgigi at freenet.de Thu Jul 10 15:55:44 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Thu, 10 Jul 2014 15:55:44 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / aif) - unwanted - bitrate change In-Reply-To: References: <20140709190959.GA28362@phare.normalesup.org> <21A1D5DF-CBB7-41C3-A10E-145F9193D206@freenet.de> <53BDA7E2.80709@gmail.com> Message-ID: <492C4848-E326-4A87-B47A-99F696343B91@freenet.de> Hi all i have a little follow-up question.... I realized that with my command the audio-bitrate was changed from 16 to 24bit Input Streams are all: Stream #0:0: Audio: pcm_s24be, 48000 Hz, mono, s32, 1152 kb/s but the outputstream results in: Output #0, wav, to 'Park_City_Place_Quiet_6ch_24bit.wav': Metadata: ISFT : Lavf55.19.104 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1, s16, 4608 kb/s (default) i tried several things with b:a 24 and acodec .. but they all did not work Any Ideas ?? Thanks Luigi Am 09.07.2014 um 22:52 schrieb Luigi Rensinghoff : > Thanks > > > i found the solution: > > #!/bin/sh > > for f in *C.aif; > do > > #echo "Processing $f" > > > prefix=${f%} > pre=`echo $prefix | sed 's/.\{6\}$//'` > L=`echo $pre-\(L\).aif` > R=`echo $pre-\(R\).aif` > C=`echo $pre-C.aif` > LFE=`echo $pre-\LFE\.aif` > Ls=`echo $pre-S\(L\).aif` > Rs=`echo $pre-S\(R\).aif` > > out=`${pre}_6ch.wav` > > ffmpeg -i $L -i $R -i $C -i $LFE -i $Ls -i $Rs -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" ${f%-C.aif}_6ch.wav > > rm $L > rm $R > rm $C > rm $LFE > rm $Ls > rm $Rs > > done > > But i am sure it can be achieved more elegant - Suggestions ??? > > THX > > > Am 09.07.2014 um 22:36 schrieb James Darnley : > >> On 2014-07-09 21:47, Luigi Rensinghoff wrote: >>> I just don't know, how to use variables >>> >>> $f, f% and that shit - when to use what.. >> >> man bash will answer some of these questions. >> >> $ is for variables. >> $f is for the variable "f". >> % can be used to remove text at the end of a variable. >> {} these braces wrap the expansion you want bash to do, but are optional >> in simple cases. >> >>> -i ?$f?.L.aif >>> -i "$f?.R.aif >>> -i "$f?.C.aif >>> -i "$f?.LFE.aif >>> -i "$f?.Ls.aif >>> -i "$f?.Rs.aif >> >> Here is where you probably want: ${f%.C.aif} >> >> This means: expand the variable "f" and remove ".C.aif" from the end. >> >>> ${f%.aif}_6ch.wav >> >> Here as well. >> >> _______________________________________________ >> 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 steveboyer85 at gmail.com Thu Jul 10 16:05:26 2014 From: steveboyer85 at gmail.com (Steve Boyer) Date: Thu, 10 Jul 2014 09:05:26 -0500 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: <20140705105833.GA28058@sunshine.barsnick.net> Message-ID: On Jul 10, 2014 6:52 AM, "Felipe Lacerda" wrote: > > Hello Moritz, > > Thanks for your help, look my output when I tried to use command line that > you suggest me: > > root at UPX-TI-Lab:/usr/local/WowzaMediaServer/content# ffmpeg -i > fff9957481ca4d9b4aec79c8c2418505_3-1.mp4 -c:a copy -c:v libx264 -profile:v > baseline -level 3.0 teste_2.mp4 > ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.04.1, Copyright (c) 2000-2013 the > Libav developers Here's part of the problem. The version you are trying to run is not true FFmpeg, but the avconv version. With Ubuntu, you have to compile from source or download a precompiled package. If you apt-get install FFmpeg out of the box, this is the version you get. > built on Nov 9 2013 19:09:48 with gcc 4.7.3 > *** THIS PROGRAM IS DEPRECATED *** > This program is only provided for compatibility and will be removed in a > future release. Please use avconv instead. > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x214e1e0] max_analyze_duration reached > > Seems stream 0 codec frame rate differs from container frame rate: 59.94 > (60000/1001) -> 29.97 (2997/100) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > 'fff9957481ca4d9b4aec79c8c2418505_3-1.mp4': > Metadata: > major_brand : M4V > minor_version : 1 > compatible_brands: M4V mp42isom > creation_time : 2012-11-22 03:20:12 > Duration: 00:31:00.43, start: 0.000000, bitrate: 381 kb/s > Stream #0.0(eng): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR > 16:9], 294 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc > Metadata: > creation_time : 2012-11-22 03:20:12 > Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 61 kb/s > Metadata: > creation_time : 2012-11-22 03:20:12 > Stream #0.2(und): Data: rtp / 0x20707472, 13 kb/s > Metadata: > creation_time : 2014-06-16 15:29:07 > Stream #0.3(und): Data: rtp / 0x20707472, 8 kb/s > Metadata: > creation_time : 2014-06-16 15:29:08 > Unrecognized option 'c:a' > Failed to set value 'copy' for option 'c:a' > > What can be happening? > > Thanks, > Regards, > > Felipe Lacerda Kneipp > > UPX > http://www.upx.com.br > > Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 > S?o Paulo +55 (11) 2626-3952 > Bras?lia +55 (61) 2626-1248 > Belo-Horizonte +55 (31) 2626-2019 > Miami - USA +1 (305) 331-6649 > > > 2014-07-05 7:58 GMT-03:00 Moritz Barsnick : > > > Hi Felipe, > > > > On Fri, Jul 04, 2014 at 10:51:33 -0300, Felipe Lacerda wrote: > > > > > My version of ffmpeg is 0.8.12 > > > > Please get hold of a newer version of ffmpeg. This is quite old and > > unsupported, and some tips you get just won't apply to your version. > > > > > > > I need transcode the many videos for they run in old iPhone (3, 3gs) > > and > > > > Check the compatibility section in this FAQ: > > > > https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips > > > > Quote: > > > If you want your videos to have highest compatibility with target > > > devices (older iOS versions or all Android devices): > > > > > > -profile:v baseline -level 3.0 > > > > So basically > > ffmpeg -i inputvideofile -c:a copy -c:v libx264 -profile:v baseline -level > > 3.0 outputvideofile > > > > Moritz > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From steveboyer85 at gmail.com Thu Jul 10 16:38:09 2014 From: steveboyer85 at gmail.com (Steve Boyer) Date: Thu, 10 Jul 2014 09:38:09 -0500 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: <20140705105833.GA28058@sunshine.barsnick.net> Message-ID: On Jul 10, 2014 9:05 AM, "Steve Boyer" wrote: > > > On Jul 10, 2014 6:52 AM, "Felipe Lacerda" wrote: > > > > Hello Moritz, > > > > Thanks for your help, look my output when I tried to use command line that > > you suggest me: > > > > root at UPX-TI-Lab:/usr/local/WowzaMediaServer/content# ffmpeg -i > > fff9957481ca4d9b4aec79c8c2418505_3-1.mp4 -c:a copy -c:v libx264 -profile:v > > baseline -level 3.0 teste_2.mp4 > > ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.04.1, Copyright (c) 2000-2013 the > > Libav developers > > Here's part of the problem. The version you are trying to run is not true FFmpeg, but the avconv version. With Ubuntu, you have to compile from source or download a precompiled package. If you apt-get install FFmpeg out of the box, this is the version you get. Sorry, bad wording. Chalk it up to lack of sleep. If you apt-get install, the avconv version is the version installed. > > built on Nov 9 2013 19:09:48 with gcc 4.7.3 > > *** THIS PROGRAM IS DEPRECATED *** > > This program is only provided for compatibility and will be removed in a > > future release. Please use avconv instead. > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x214e1e0] max_analyze_duration reached > > > > Seems stream 0 codec frame rate differs from container frame rate: 59.94 > > (60000/1001) -> 29.97 (2997/100) > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > > 'fff9957481ca4d9b4aec79c8c2418505_3-1.mp4': > > Metadata: > > major_brand : M4V > > minor_version : 1 > > compatible_brands: M4V mp42isom > > creation_time : 2012-11-22 03:20:12 > > Duration: 00:31:00.43, start: 0.000000, bitrate: 381 kb/s > > Stream #0.0(eng): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR > > 16:9], 294 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc > > Metadata: > > creation_time : 2012-11-22 03:20:12 > > Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 61 kb/s > > Metadata: > > creation_time : 2012-11-22 03:20:12 > > Stream #0.2(und): Data: rtp / 0x20707472, 13 kb/s > > Metadata: > > creation_time : 2014-06-16 15:29:07 > > Stream #0.3(und): Data: rtp / 0x20707472, 8 kb/s > > Metadata: > > creation_time : 2014-06-16 15:29:08 > > Unrecognized option 'c:a' > > Failed to set value 'copy' for option 'c:a' > > > > What can be happening? > > > > Thanks, > > Regards, > > > > Felipe Lacerda Kneipp > > > > UPX > > http://www.upx.com.br > > > > Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 > > S?o Paulo +55 (11) 2626-3952 > > Bras?lia +55 (61) 2626-1248 > > Belo-Horizonte +55 (31) 2626-2019 > > Miami - USA +1 (305) 331-6649 > > > > > > 2014-07-05 7:58 GMT-03:00 Moritz Barsnick : > > > > > Hi Felipe, > > > > > > On Fri, Jul 04, 2014 at 10:51:33 -0300, Felipe Lacerda wrote: > > > > > > > My version of ffmpeg is 0.8.12 > > > > > > Please get hold of a newer version of ffmpeg. This is quite old and > > > unsupported, and some tips you get just won't apply to your version. > > > > > > > > > I need transcode the many videos for they run in old iPhone (3, 3gs) > > > and > > > > > > Check the compatibility section in this FAQ: > > > > > > https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips > > > > > > Quote: > > > > If you want your videos to have highest compatibility with target > > > > devices (older iOS versions or all Android devices): > > > > > > > > -profile:v baseline -level 3.0 > > > > > > So basically > > > ffmpeg -i inputvideofile -c:a copy -c:v libx264 -profile:v baseline -level > > > 3.0 outputvideofile > > > > > > Moritz > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mike at redtux.org.uk Thu Jul 10 16:54:58 2014 From: mike at redtux.org.uk (Mike Martin) Date: Thu, 10 Jul 2014 15:54:58 +0100 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: <20140705105833.GA28058@sunshine.barsnick.net> Message-ID: and at least used to add a linked file called ffmpeg On 10 July 2014 15:38, Steve Boyer wrote: > On Jul 10, 2014 9:05 AM, "Steve Boyer" wrote: > > > > > > On Jul 10, 2014 6:52 AM, "Felipe Lacerda" > wrote: > > > > > > Hello Moritz, > > > > > > Thanks for your help, look my output when I tried to use command line > that > > > you suggest me: > > > > > > root at UPX-TI-Lab:/usr/local/WowzaMediaServer/content# ffmpeg -i > > > fff9957481ca4d9b4aec79c8c2418505_3-1.mp4 -c:a copy -c:v libx264 > -profile:v > > > baseline -level 3.0 teste_2.mp4 > > > ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.04.1, Copyright (c) 2000-2013 > the > > > Libav developers > > > > Here's part of the problem. The version you are trying to run is not true > FFmpeg, but the avconv version. With Ubuntu, you have to compile from > source or download a precompiled package. If you apt-get install FFmpeg out > of the box, this is the version you get. > > Sorry, bad wording. Chalk it up to lack of sleep. If you apt-get install, > the avconv version is the version installed. > > > > built on Nov 9 2013 19:09:48 with gcc 4.7.3 > > > *** THIS PROGRAM IS DEPRECATED *** > > > This program is only provided for compatibility and will be removed in > a > > > future release. Please use avconv instead. > > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x214e1e0] max_analyze_duration reached > > > > > > Seems stream 0 codec frame rate differs from container frame rate: > 59.94 > > > (60000/1001) -> 29.97 (2997/100) > > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > > > 'fff9957481ca4d9b4aec79c8c2418505_3-1.mp4': > > > Metadata: > > > major_brand : M4V > > > minor_version : 1 > > > compatible_brands: M4V mp42isom > > > creation_time : 2012-11-22 03:20:12 > > > Duration: 00:31:00.43, start: 0.000000, bitrate: 381 kb/s > > > Stream #0.0(eng): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR > > > 16:9], 294 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc > > > Metadata: > > > creation_time : 2012-11-22 03:20:12 > > > Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 61 kb/s > > > Metadata: > > > creation_time : 2012-11-22 03:20:12 > > > Stream #0.2(und): Data: rtp / 0x20707472, 13 kb/s > > > Metadata: > > > creation_time : 2014-06-16 15:29:07 > > > Stream #0.3(und): Data: rtp / 0x20707472, 8 kb/s > > > Metadata: > > > creation_time : 2014-06-16 15:29:08 > > > Unrecognized option 'c:a' > > > Failed to set value 'copy' for option 'c:a' > > > > > > What can be happening? > > > > > > Thanks, > > > Regards, > > > > > > Felipe Lacerda Kneipp > > > > > > UPX > > > http://www.upx.com.br > > > > > > Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 > > > S?o Paulo +55 (11) 2626-3952 > > > Bras?lia +55 (61) 2626-1248 > > > Belo-Horizonte +55 (31) 2626-2019 > > > Miami - USA +1 (305) 331-6649 > > > > > > > > > 2014-07-05 7:58 GMT-03:00 Moritz Barsnick : > > > > > > > Hi Felipe, > > > > > > > > On Fri, Jul 04, 2014 at 10:51:33 -0300, Felipe Lacerda wrote: > > > > > > > > > My version of ffmpeg is 0.8.12 > > > > > > > > Please get hold of a newer version of ffmpeg. This is quite old and > > > > unsupported, and some tips you get just won't apply to your version. > > > > > > > > > > > I need transcode the many videos for they run in old iPhone (3, > 3gs) > > > > and > > > > > > > > Check the compatibility section in this FAQ: > > > > > > > > https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips > > > > > > > > Quote: > > > > > If you want your videos to have highest compatibility with target > > > > > devices (older iOS versions or all Android devices): > > > > > > > > > > -profile:v baseline -level 3.0 > > > > > > > > So basically > > > > ffmpeg -i inputvideofile -c:a copy -c:v libx264 -profile:v baseline > -level > > > > 3.0 outputvideofile > > > > > > > > Moritz > > > > _______________________________________________ > > > > ffmpeg-user mailing list > > > > ffmpeg-user at ffmpeg.org > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From pshirkey at boosthardware.com Thu Jul 10 17:01:40 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Fri, 11 Jul 2014 01:01:40 +1000 (EST) Subject: [FFmpeg-user] compiling for android In-Reply-To: References: <63921.86.107.254.57.1404842124.squirrel@boosthardware.com> <51176.86.107.254.57.1404884336.squirrel@boosthardware.com> <52071.86.107.254.57.1404893626.squirrel@boosthardware.com> <53019.86.107.254.57.1404901159.squirrel@boosthardware.com> <53657.86.107.254.57.1404908217.squirrel@boosthardware.com> <53965.86.107.254.57.1404911796.squirrel@boosthardware.com> <54199.86.107.254.57.1404913876.squirrel@boosthardware.com> <60849.86.107.254.57.1404987123.squirrel@boosthardware.com> Message-ID: <63288.86.107.254.57.1405004500.squirrel@boosthardware.com> On Thu, July 10, 2014 11:30 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> ./configure --arch=arm --target-os=linux > > I (still) wonder if the --cpu option is useful or not. > (I cannot test.) > I have tried with/without and it doesn't appear to have any affect for this build. >> --enable-cross-compile \ > > If I read the source correctly, you can remove > --enable-cross-compile if you are using --cross-prefix. > >> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ >> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ >> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ >> --enable-gpl --enable-avresample --enable-libx264 \ > >> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \ >> --extra-ldflags='-L/4.4/external/x264' > > Strictly speaking, this is missing the include path to > the x264 headers matching the library in 4.4/external/x264. > I suspect you are now using the native (system, x86) x264 > headers for your Android compilation which may be no > problem but is still not a good idea. > You are likely correct on the requirement for -I but I removed x264 packages from my host system a couple of days ago just to be on the safe side. I did make some tweaks that will affect this specific issue. - In the process of trying to get things to build I copied the headers into 2 seperate locations. /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/include/ /4.4/external/ffmpeg/libavcodec/ - I also modified the include in libxs64.c from #include to #include "x264.h" - For future reference of anyone else trying to do this build, It's possible that the correct command without making any changes to libavcodec/libx264.c is the following: ./configure --arch=arm --target-os=linux \ --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \ --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \ --enable-gpl --enable-avresample --enable-libx264 \ --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264'' \ --extra-ldflags='-L/4.4/external/x264' --cpu= may also be useful in some cases. ex. --cpu=cortex-a8 -- Patrick Shirkey Boost Hardware Ltd From pinkgogh at gmail.com Thu Jul 10 16:08:41 2014 From: pinkgogh at gmail.com (pinkgogh) Date: Thu, 10 Jul 2014 07:08:41 -0700 (PDT) Subject: [FFmpeg-user] Shortest between audio or video with text scroll Message-ID: <1405001321404-4666292.post@n4.nabble.com> Good morning! I am using ffmpeg to mux a video file, a text file and an audio file. I first add the text (one line) to the video file: ffmpeg -y -i $STEP3OUT -vf drawtext="fontfile=/usr/share/fonts/ttf/LiberationSans-Regular.ttf:textfile=$INCOMING_DIR/$ALERT_ID.txt:fontcolor=white:fontsize=36:y=h-h/3:x=w-120*t" -b:v 9000k -maxrate 9000k -minrate 9000k -bufsize 1890k -acodec copy $STEP4OUT And then I mux the audio file with the video file: ffmpeg -y -i $VIDEO_DIR/EAS_Blank.mpg -i $STEP2OUT -vcodec copy -acodec libmp3lame -ab 96000 -ar 48000 -ac 1 -shortest $STEP3OUT I am using -shortest as the video, EAS_Blank.mpg, is a long blank template. My problem arises when the audio file is shortest than the time the text I inserted in step 1 takes to scroll. Right now I am manually approximately calculating how long will the text take to scroll and I add a silence buffer to the audio, but the calculation is far from perfect and I end up either cutting text or adding too much silence. I was wondering if there is a way using ffmpeg to take the text file into account when choosing the shortest file, or to do an exact calculation of the time the text will take to scroll. Not sure how to use the 120*t to do it. Thanks in advance for the help! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Shortest-between-audio-or-video-with-text-scroll-tp4666292.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From oliver at fromme.com Thu Jul 10 17:52:39 2014 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 10 Jul 2014 17:52:39 +0200 (CEST) Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / In-Reply-To: Message-ID: <201407101552.s6AFqdDM004750@haluter.fromme.com> Luigi Rensinghoff wrote: > i found the solution: > > #!/bin/sh > > for f in *C.aif; > do > > #echo "Processing $f" > > > prefix=${f%} > pre=`echo $prefix | sed 's/.\{6\}$//'` > L=`echo $pre-\(L\).aif` > R=`echo $pre-\(R\).aif` > C=`echo $pre-C.aif` > LFE=`echo $pre-\LFE\.aif` > Ls=`echo $pre-S\(L\).aif` > Rs=`echo $pre-S\(R\).aif` > > out=`${pre}_6ch.wav` > > ffmpeg -i $L -i $R -i $C -i $LFE -i $Ls -i $Rs -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" ${f%-C.aif}_6ch.wav > > rm $L > rm $R > rm $C > rm $LFE > rm $Ls > rm $Rs > > done > > But i am sure it can be achieved more elegant - Suggestions ??? *sigh* This is somewhat off-topic, but anyway, here is how I would do it: #!/bin/sh channels="L R C LFE Ls Rs" filter="[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" for f in *-C.aif; do #echo "Processing $f" pre="${f%-C.aif}" set -- for c in $channels; do set -- -i "$pre-$c.aif" done out="${pre}_6ch.wav" ffmpeg "$@" -filter_complex "$filter" -map "[aout]" "$out" if [ $? -ne 0 ]; then echo "**** ffmpeg failed! Not removing input files!" exit 1 fi for c in $channels; do echo rm -- "$pre-$c.aif" done done Note that it is written in a way that all variables are protected by quotes, so this works even if file names contain "unusual" characters like spaces, tabs or newlines. Also note that the rm command has been disabled by an echo command. I recommend you enable it only if you've tested the script and you are sure that it does the right thing. Unless you have backup copies of the input files anyway, of course. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From smarrocco at ringsidecreative.com Thu Jul 10 18:31:02 2014 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Thu, 10 Jul 2014 12:31:02 -0400 Subject: [FFmpeg-user] Alternative options for comma-separated filters? Message-ID: <53BEBFC6.8040508@ringsidecreative.com> I have an application that uses ffmpeg to perform file conversions including applying the filter -vf colormatrix=bt601:bt709. I would like to also apply a gamma changing filter such as -vf mp=eq2=1:1:0:1:2:1:1:1. The problem is that the application using ffmpeg (which I can *not* change) cannot have commas included in the arguments provided. No combination of escapes, quoting, etc will work if there is a comma anywhere in the arguments. This seems to preclude the possibility of having two filters since as near as I can tell, the only way to do so would be -vf colormatrix=bt601:bt709, mp=eq2=1:1:0:1:2:1:1:1 Is there an alternate method of including two filters that does not involve using a comma, or can a filter be "prebuilt" as a text file that I can then include in an ffmpeg commandline preset? -- sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From porparek at gmail.com Thu Jul 10 18:31:30 2014 From: porparek at gmail.com (Pawel Por) Date: Thu, 10 Jul 2014 18:31:30 +0200 Subject: [FFmpeg-user] processing of mxf videoclips with ffmpeg Message-ID: Hi I'm trying to do the following 3 simple operations on my MXF movie. I would like to: - cut it - make a sound in a videoclip louder or more quiet. - merge a sliced videoclips into a single one In all above steps it is very important not to loose both video and audio quality. I don't need to stick to any specific output format (the conversion is allowed). I've uploaded an example MXF videoclip into the following location (it takes about 25 MB): http://www.sendspace.pl/en/file/5e767ba82331b8203a87371 I found on the internet quite easily complete ffmpeg commands of how to do those steps but unfortunately they didn't work well. Some of them generated errors, some of them produced videoclip without an audio and others produced videoclips with desynchronized audio and video great thanks for help From natural_groove at hotmail.fr Thu Jul 10 14:42:24 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Thu, 10 Jul 2014 05:42:24 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded Message-ID: <1404996144483-4666284.post@n4.nabble.com> Hi everyone, Im trying to write a bitbake recipe for crossbuilding ffmpeg2.1.1 for arm (Colibri-t20), i wrote this simple recipe: SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar.gz" SRC_URI[md5sum] = "294749b2ebdd22ef7d9b9d12a70d5b8c" SRC_URI[sha256sum] = "66f521dffefcbb6c09a402f6373e6cef81fbf4284d0a33cdef9a19412df1dd18" inherit autotools pkgconfig DEPENDS = "yasm-native libsdl libx11 zlib libtheora libogg libass libtool" S="${WORKDIR}/ffmpeg-2.1.1" inherit autotools pkgconfig CROSS_COMPILE = "/home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-" EXTRA_OECONF = "--arch=arm --enable-cross-compile --cross-prefix=${CROSS_COMPILE} --target-os=linux --enable-gpl --enable-libtheora --enable-libvorbis --extra-libs="-ldl" --enable-ffplay --enable-shared --enable-pic" do_configure() { ./configure ${EXTRA_OECONF} } My problem is that ffmpeg ffprobe and ffserver are built but not ffplay. Can someone help me with that? Regards Ricko -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From soundgigi at freenet.de Thu Jul 10 19:00:07 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Thu, 10 Jul 2014 19:00:07 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / In-Reply-To: <201407101552.s6AFqdDM004750@haluter.fromme.com> References: <201407101552.s6AFqdDM004750@haluter.fromme.com> Message-ID: <0A3CA3A2-05BE-40D6-BA0D-D793C924AE25@freenet.de> Am 10.07.2014 um 17:52 schrieb Oliver Fromme : > Luigi Rensinghoff wrote: >> i found the solution: >> >> #!/bin/sh >> >> for f in *C.aif; >> do >> >> #echo "Processing $f" >> >> >> prefix=${f%} >> pre=`echo $prefix | sed 's/.\{6\}$//'` >> L=`echo $pre-\(L\).aif` >> R=`echo $pre-\(R\).aif` >> C=`echo $pre-C.aif` >> LFE=`echo $pre-\LFE\.aif` >> Ls=`echo $pre-S\(L\).aif` >> Rs=`echo $pre-S\(R\).aif` >> >> out=`${pre}_6ch.wav` >> >> ffmpeg -i $L -i $R -i $C -i $LFE -i $Ls -i $Rs -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" ${f%-C.aif}_6ch.wav >> >> rm $L >> rm $R >> rm $C >> rm $LFE >> rm $Ls >> rm $Rs >> >> done >> >> But i am sure it can be achieved more elegant - Suggestions ??? > > *sigh* > This is somewhat off-topic, but anyway, here is how I would do it: It's off-topic, but useful ;-) thank you very much .... I dont understand the highlighted parts .... will do some more reading Thanks a lot Luigi > > > #!/bin/sh > > channels="L R C LFE Ls Rs" > filter="[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" > > for f in *-C.aif; do > #echo "Processing $f" > > pre="${f%-C.aif}" > set -- > for c in $channels; do > set -- -i "$pre-$c.aif" > done > out="${pre}_6ch.wav" > > ffmpeg "$@" -filter_complex "$filter" -map "[aout]" "$out" > if [ $? -ne 0 ]; then > echo "**** ffmpeg failed! Not removing input files!" > exit 1 > fi > > for c in $channels; do > echo rm -- "$pre-$c.aif" > done > done > > > Note that it is written in a way that all variables are protected > by quotes, so this works even if file names contain "unusual" > characters like spaces, tabs or newlines. > > Also note that the rm command has been disabled by an echo > command. I recommend you enable it only if you've tested the > script and you are sure that it does the right thing. Unless > you have backup copies of the input files anyway, of course. > > Best regards > Oliver > > -- > ``We are all but compressed light'' (Albert Einstein) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From soundgigi at freenet.de Thu Jul 10 19:17:39 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Thu, 10 Jul 2014 19:17:39 +0200 Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / In-Reply-To: <201407101552.s6AFqdDM004750@haluter.fromme.com> References: <201407101552.s6AFqdDM004750@haluter.fromme.com> Message-ID: e it can be achieved more elegant - Suggestions ??? > > *sigh* > This is somewhat off-topic, but anyway, here is how I would do it: It's off-topic, but useful ;-) thank you very much .... I dont understand the highlighted parts .... will do some more reading Thanks a lot Luigi > > > #!/bin/sh > > channels="L R C LFE Ls Rs" > filter="[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" > > for f in *-C.aif; do > #echo "Processing $f" > > pre="${f%-C.aif}" ------------------ set -- ^^^^^^^^^^^^ > for c in $channels; do > ------------------ set -- ^^^^^^^^^^^^ > -i "$pre-$c.aif" > done > out="${pre}_6ch.wav" > > ffmpeg "$@" -filter_complex "$filter" -map "[aout]" "$out" ------------------ ------------------ ------------------ if [ $? -ne 0 ]; then echo "**** ------------------ ------------------ ------------------ > ffmpeg failed! Not removing input files!" > exit 1 > fi > > for c in $channels; do > echo rm -- "$pre-$c.aif" > done > done > > > Note that it is written in a way that all variables are protected > by quotes, so this works even if file names contain "unusual" > characters like spaces, tabs or newlines. > > Also note that the rm command has been disabled by an echo > command. I recommend you enable it only if you've tested the > script and you are sure that it does the right thing. Unless > you have backup copies of the input files anyway, of course. > > Best regards > Oliver > > -- > ``We are all but compressed light'' (Albert Einstein) > _______________________________________________ > 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 pshirkey at boosthardware.com Thu Jul 10 20:49:49 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Fri, 11 Jul 2014 04:49:49 +1000 (EST) Subject: [FFmpeg-user] libx264 vs android 4.4 Message-ID: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> Hi, I'm seeing the following output when trying to use ffmpeg/libx264 with ffserver on android 4.4. I'm not sure why the preset value is not being picked up and also how to get around the final message. I have tried adding flags for bitrate, size, rate. - I have tested that ffserver is working with "videoCodec flv" on another stream. - I'm using the following config for the x264 stream: Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 1 VideoBitRate 100 VideoSize 480x800 NoAudio AVOptionVideo flags +global_header - This is the commandline for ffmpeg: ffmpeg -r 30 -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 800X640 -i /dev/graphics/fb0 -preset:v fast http://localhost:8090/feed1.ffm ffmpeg version N-64597-g4576eff Copyright (c) 2000-2014 the FFmpeg developers built on Jul 10 2014 21:10:33 with gcc 4.7 (GCC) configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264' --extra-ldflags=-L/4.4/external/x264 libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, rawvideo, from '/dev/graphics/fb0': Duration: N/A, start: 0.000000, bitrate: 245760 kb/s Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 800x640, 245760 kb/s, 30 tbr, 30 tbn, 30 tbc Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (http://localhost:8090/feed1.ffm) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x1f370d0] broken ffmpeg default settings detected [libx264 @ 0x1f370d0] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x1f370d0] preset usage: -vpre -vpre [libx264 @ 0x1f370d0] speed presets are listed in x264 --help [libx264 @ 0x1f370d0] profile is optional; x264 defaults to high Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now Stream #0:0: Video: h264, 480x800, q=2-31, 128 kb/s, 30 fps, 1000k tbn, 1 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height -- Patrick Shirkey Boost Hardware Ltd From oliver at fromme.com Thu Jul 10 21:37:04 2014 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 10 Jul 2014 21:37:04 +0200 (CEST) Subject: [FFmpeg-user] Batch Join multimono to multichannel Auido (wav / In-Reply-To: Message-ID: <201407101937.s6AJb47e005774@haluter.fromme.com> Luigi Rensinghoff wrote: > I dont understand the highlighted parts .... will do some more reading This is my last answer to the list regarding this. If you have further questions, please mail to my private address. > ------------------ > set -- > ^^^^^^^^^^^^ Please read the manual page of your shell, i.e. type "man sh" (or "man bash" if your bourne shell is the bash variant). It should have a section titled "built-in commands" or similar that explains the "set" command. Basically, "set --" clears the positional parameters, i.e. the parameters assigned to $1, $2, $3 and so on. > > set -- -i "$pre-$c.aif" That was actually a mistake. Well, I wasn't able to actually test the script because I don't have the input files that you have. :-) The correct line should be: set -- "$@" -i "$pre-$c.aif" The term "$@" (must be in double quotes!) is expanded to the current list of positional parameters, just as if they were quoted separately. In other words, "$@" is exactly the same as "$1" "$2" "$3" ... for any number of positional parameters, including zero (in this case it expands to nothing at all). People sometimes confuse $@ and $*. The latter expands the parameters to a single string, i.e. "$*" is "$1 $2 $3 ...". So, the above set command appends -i "$pre-$c.aif" to the current list of positional parameters. > ------------------ ------------------ ------------------ > if [ $? -ne 0 ]; then > echo "**** > ------------------ ------------------ ------------------ "[ ... ]" is the test command, usually built into the shell. The -ne operator compares two values numerically ("ne" means not equal). "$?" expands to the exit code of the most recent command, which is ffmpeg in this case. By convention, the exit code 0 indicates success, and a different value means that something didn't go right. So, the above command checks if ffmpeg's exit code was not equal to zero, and in this case it prints an informative message and exits from the script, itself returning the exit code 1 to indicate failure. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) Donations: http://www.amazon.de/wishlist/A0LHFK68RV8S From barsnick at gmx.net Fri Jul 11 00:00:57 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 11 Jul 2014 00:00:57 +0200 Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: <1404996144483-4666284.post@n4.nabble.com> References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: <20140710220057.GA23586@sunshine.barsnick.net> On Thu, Jul 10, 2014 at 05:42:24 -0700, Rickoo wrote: > My problem is that ffmpeg ffprobe and ffserver are built but not > ffplay. Can someone help me with that? We can't guess your error messages. Please attach config.log. Thanks, Moritz From murat.maman at gmail.com Fri Jul 11 07:34:08 2014 From: murat.maman at gmail.com (Murat Maman) Date: Fri, 11 Jul 2014 08:34:08 +0300 Subject: [FFmpeg-user] audio and video out of sync Message-ID: Hi Carl, Do you have any idea about source of the problem, i did not get any comment from you. Could you make any comment. regards, Murat Hi Carl, Yesterday out of sync problem again occurred and i saved file where to my disk, i saw that there is no out of sync problem. What does it mean, what is the source of problem, am i have internet problem, why frame drop during the broadcasting, is it rtmp problem. Our internet speed approximately 150 mbps. regards, Murat On Fri, Jul 4, 2014 at 3:32 PM, Eugene Gekhter > wrote: >* Carl, *>>* Can you explain why sudo ffmpeg is a bad idea? *>>* Thx. *>>* Sent from my iPhone *>>* > On Jul 4, 2014, at 4:07 AM, Carl Eugen Hoyos > wrote: *>* > *>* >> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: *>* >> *>* >> sudo ffmpeg -y -f mpegts -i 'udp://@ *>* > *>* > Unrelated: I believe that everybody on this list agrees *>* > that "sudo ffmpeg" is a very bad idea. *>* > *>* >> 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ *>* >> -maxrate 2M -bufsize 2M \ *>* >> -af volume=1.1 \ *>* >> -strict experimental \ *>* >> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ *>* >> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v *>* >> 900k \ *>* >> -preset superfast -tune zerolatency -threads 8 -crf 25 \ *>* >> -map 0:0 -map 0:1 \ *>* >> -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111 ' *>* > *>* > (Complete, uncut console output missing.) *>* > *>* > Why are you using -vsync 1? *>* > Did you try -async 1? *>* > *>* > Am I correct that the problem is reproducible with file output *>* > instead of network output? *>* > *>* > Is the problem reproducible if you save the udp stream to a file *>* > (including the reception problems) and transcode the file with *>* > FFmpeg? *>* > *>* > Carl Eugen *>* > _______________________________________________ *>* > ffmpeg-user mailing list *>* > ffmpeg-user at ffmpeg.org *>* > http://ffmpeg.org/mailman/listinfo/ffmpeg-user *>* _______________________________________________ *>* ffmpeg-user mailing list *>* ffmpeg-user at ffmpeg.org *>* http://ffmpeg.org/mailman/listinfo/ffmpeg-user *> From francois.visagie at gmail.com Fri Jul 11 08:31:07 2014 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 11 Jul 2014 08:31:07 +0200 Subject: [FFmpeg-user] Alternative options for comma-separated filters? In-Reply-To: <53BEBFC6.8040508@ringsidecreative.com> References: <53BEBFC6.8040508@ringsidecreative.com> Message-ID: <00a201cf9cd1$b6429af0$22c7d0d0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Sam Marrocco > Sent: 10 July 2014 18:31 > To: FFmpeg user questions > Subject: [FFmpeg-user] Alternative options for comma-separated filters? > > I have an application that uses ffmpeg to perform file conversions including > applying the filter -vf colormatrix=bt601:bt709. I would like to also apply a > gamma changing filter such as -vf mp=eq2=1:1:0:1:2:1:1:1. > > The problem is that the application using ffmpeg (which I can *not* change) > cannot have commas included in the arguments provided. No combination of > escapes, quoting, etc will work if there is a comma anywhere in the > arguments. > > This seems to preclude the possibility of having two filters since as near as I > can tell, the only way to do so would be > > -vf colormatrix=bt601:bt709, mp=eq2=1:1:0:1:2:1:1:1 > > Is there an alternate method of including two filters that does not involve > using a comma, or can a filter be "prebuilt" as a text file that I can then > include in an ffmpeg commandline preset? Failing any answers indicating that this can be done with ffmepg, I'd do something similar to your last option. If your filter options are going to remain constant across encodes, a simple shell script (batch file) would do - call that, with the necessary parameters like in/output file etc. from your application. If the options need to change from file to file, write the command line from your application using another character instead of the comma, and then replace that character in the shell script before invoking ffmpeg. > > > -- > > sam marrocco | chief technical officer > ringside.cutters.picnic.moonlink > > 248 548 2500 w > 248 910 3344 c > > ringsidecreative.com > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Fri Jul 11 08:55:11 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 06:55:11 +0000 (UTC) Subject: [FFmpeg-user] libx264 vs android 4.4 References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > ffmpeg -f rawvideo -i /dev/graphics/fb0 This looks plain wrong. ffmpeg cannot warn about this, it cannot know that /dev/... is a device (and not a file). Careful with your other input options, I haven't used the FFmpeg framebuffer input device but the documentation indicates that you should neither set codec nor pix_fmt. I am surprised that you should set the input frame rate, this may indicate a bug. > Codec AVOption preset (Set the encoding preset (cf. > x264 --fullhelp)) specified for output file #0 > (http://localhost:8090/feed1.ffm) has not been used > for any stream. The most likely reason is either > wrong type (e.g. a video option with no video > streams) or that it is a private option of some > encoder which was not actually used for any stream. This would indicate that something is wrong with your command line. It works fine here, what version of x264 did you compile? > No pixel format specified, yuv444p for H.264 > encoding chosen. Use -pix_fmt yuv420p for > compatibility with outdated media players. This is no problem for FFmpeg but I suspect you want to read this carefully (and test with your desktop computer). Carl Eugen From cehoyos at ag.or.at Fri Jul 11 09:02:06 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 07:02:06 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar.gz" This is horribly outdated, why are you using it? > DEPENDS = "yasm-native libsdl libx11 zlib libtheora > libogg libass libtool" You don't use libass, why did you add it to depend? Not sure about libx11... > EXTRA_OECONF = "--arch=arm --enable-cross-compile > --cross-prefix=${CROSS_COMPILE} --target-os=linux > --enable-gpl Unrelated: None of your external libraries need --enable-gpl why are you using it? > --enable-libtheora --enable-libvorbis > --extra-libs="-ldl" Why is this necessary? Is there a bug that (is reproducible with current git head and that) we should fix? > --enable-ffplay This is useless, it is the default (and as you found out, configure does not warn about it). Please remove it. Please post the content of config.log starting with "check_pkg_config sdl" until "check_header linux" or "check_header sys". Carl Eugen From cehoyos at ag.or.at Fri Jul 11 09:02:55 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 07:02:55 +0000 (UTC) Subject: [FFmpeg-user] processing of mxf videoclips with ffmpeg References: Message-ID: Pawel Por gmail.com> writes: > I found on the internet quite easily complete ffmpeg > commands of how to do those steps but unfortunately > they didn't work well. Command line and complete, uncut console output (and an explanation what didn't work well) missing. Carl Eugen From cehoyos at ag.or.at Fri Jul 11 09:06:48 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 07:06:48 +0000 (UTC) Subject: [FFmpeg-user] Alternative options for comma-separated filters? References: <53BEBFC6.8040508@ringsidecreative.com> Message-ID: Sam Marrocco ringsidecreative.com> writes: > The problem is that the application using ffmpeg (which > I can *not* change) cannot have commas included in > the arguments provided. Did you test the filter_script option? Carl Eugen From pshirkey at boosthardware.com Fri Jul 11 09:38:16 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Fri, 11 Jul 2014 17:38:16 +1000 (EST) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: <53194.86.107.254.57.1405064296.squirrel@boosthardware.com> On Fri, July 11, 2014 5:02 pm, Carl Eugen Hoyos wrote: > Rickoo hotmail.fr> writes: > >> SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar.gz" > > This is horribly outdated, why are you using it? > >> DEPENDS = "yasm-native libsdl libx11 zlib libtheora >> libogg libass libtool" > > You don't use libass, why did you add it to depend? > Not sure about libx11... > >> EXTRA_OECONF = "--arch=arm --enable-cross-compile >> --cross-prefix=${CROSS_COMPILE} --target-os=linux > >> --enable-gpl > > Unrelated: None of your external libraries need > --enable-gpl why are you using it? > >> --enable-libtheora --enable-libvorbis > >> --extra-libs="-ldl" > > Why is this necessary? > Is there a bug that (is reproducible with current git head > and that) we should fix? > >> --enable-ffplay > > This is useless, it is the default (and as you found > out, configure does not warn about it). > Please remove it. > > Please post the content of config.log starting with > "check_pkg_config sdl" until "check_header linux" or > "check_header sys". > FWIW I have the same result building for android-4.4: check_header linux/fb.h check_cpp BEGIN /tmp/ffconf.DYzvreA6.c 1 #include 2 int x; END /tmp/ffconf.DYzvreA6.c /h4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/prebuilts/ndk/current/platforms/android-18/arch-arm -isysroot /4.4/android-4.4-b1/prebuilts/ndk/current/platforms/android-18/arch-arm -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf -I/4.4/android-4.4-b1/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c check_header linux/videodev.h check_cpp BEGIN /tmp/ffconf.DYzvreA6.c 1 #include 2 int x; END /tmp/ffconf.DYzvreA6.c /home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -isysroot /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c check_header linux/videodev2.h check_cpp BEGIN /tmp/ffconf.DYzvreA6.c 1 #include 2 int x; END /tmp/ffconf.DYzvreA6.c /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -isysroot /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c check_code cc linux/videodev2.h struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0; check_cc BEGIN /tmp/ffconf.DYzvreA6.c 1 #include 2 int main(void) { struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;; return 0; } END /tmp/ffconf.DYzvreA6.c /4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -isysroot /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -c -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c In file included from /tmp/ffconf.DYzvreA6.c:1:0: /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/include/linux/videodev2.h:270:17: error: field 'timestamp' has incomplete type /tmp/ffconf.DYzvreA6.c: In function 'main': /tmp/ffconf.DYzvreA6.c:2:42: error: storage size of 'vfse' isn't known check_header sys/videoio.h -- Patrick Shirkey Boost Hardware Ltd From blacktrash at gmx.net Fri Jul 11 10:11:57 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Fri, 11 Jul 2014 10:11:57 +0200 Subject: [FFmpeg-user] Alternative options for comma-separated filters? In-Reply-To: <53BEBFC6.8040508@ringsidecreative.com> References: <53BEBFC6.8040508@ringsidecreative.com> Message-ID: <20140711081157.GD673@krille.blacktrash.org> * Sam Marrocco on Thursday, July 10, 2014 at 12:31:02 -0400 > I have an application that uses ffmpeg to perform file conversions including applying the filter -vf colormatrix=bt601:bt709. I would like to also apply a gamma changing filter such as -vf mp=eq2=1:1:0:1:2:1:1:1. > > The problem is that the application using ffmpeg (which I can *not* change) cannot have commas included in the arguments provided. No combination of escapes, quoting, etc will work if there is a comma anywhere in the arguments. > > This seems to preclude the possibility of having two filters since as near as I can tell, the only way to do so would be > > -vf colormatrix=bt601:bt709, mp=eq2=1:1:0:1:2:1:1:1 I guess the space (argument separator in the shell) is the problem here, not the comma. Try: -vf colormatrix=bt601:bt709,mp=eq2=1:1:0:1:2:1:1:1 -- Was hei?t hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] free movies --->>> http://www.blacktrash.org/underdogma http://itunes.apple.com/podcast/underdogma-movies/id363423596 From pshirkey at boosthardware.com Fri Jul 11 10:13:33 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Fri, 11 Jul 2014 18:13:33 +1000 (EST) Subject: [FFmpeg-user] libx264 vs android 4.4 In-Reply-To: References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> Message-ID: <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> ffmpeg -f rawvideo -i /dev/graphics/fb0 > > This looks plain wrong. > ffmpeg cannot warn about this, it cannot know > that /dev/... is a device (and not a file). > I was starting from this post: http://ffmpeg.gusari.org/viewtopic.php?f=12&t=604#p676 The commandline works if I do not use libx264 for the stream codec. > Careful with your other input options, I haven't used > the FFmpeg framebuffer input device but the > documentation indicates that you should neither set > codec nor pix_fmt. > I am surprised that you should set the input frame > rate, this may indicate a bug. > I have removed those commands and tried the following: /system/bin/ffmpeg -f rawvideo -s 10x10 -i /dev/graphics/fb0 -preset:v fast http://localhost:8090/feed1.ffm /system/bin/ffmpeg -f rawvideo -s 10x10 -i /dev/graphics/fb0 -preset:v fast -r 1 -s 480x800 -b 100 http://localhost:8090/feed1.ffm >> Codec AVOption preset (Set the encoding preset (cf. >> x264 --fullhelp)) specified for output file #0 >> (http://localhost:8090/feed1.ffm) has not been used >> for any stream. The most likely reason is either >> wrong type (e.g. a video option with no video >> streams) or that it is a private option of some >> encoder which was not actually used for any stream. > > This would indicate that something is wrong with your > command line. > It works fine here, what version of x264 did you > compile? > I checked out the most recent git: # x264 --version x264 0.142.2431 a5831aa built on Jul 9 2014, gcc: 4.7 configuration: --bit-depth=8 --chroma-format=all x264 license: GPL version 2 or later >> No pixel format specified, yuv444p for H.264 >> encoding chosen. Use -pix_fmt yuv420p for >> compatibility with outdated media players. > > This is no problem for FFmpeg but I suspect you want > to read this carefully (and test with your desktop > computer). > I tried using that flag too with the same result. ffmpeg version N-64597-g4576eff Copyright (c) 2000-2014 the FFmpeg developers built on Jul 10 2014 21:10:33 with gcc 4.7 (GCC) configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264' --extra-ldflags=-L/4.4/external/x264 libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, rawvideo, from '/dev/graphics/fb0': Duration: N/A, start: 0.000000, bitrate: 30 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 10x10, 30 kb/s, 25 tbr, 25 tbn, 25 tbc Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (http://localhost:8090/feed1.ffm) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [libx264 @ 0x196c1b0] broken ffmpeg default settings detected [libx264 @ 0x196c1b0] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x196c1b0] preset usage: -vpre -vpre [libx264 @ 0x196c1b0] speed presets are listed in x264 --help [libx264 @ 0x196c1b0] profile is optional; x264 defaults to high Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now Stream #0:0: Video: h264, 480x800, q=2-31, 100 kb/s, 25 fps, 1000k tbn, 1 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height -- Patrick Shirkey Boost Hardware Ltd From oliver at fromme.com Fri Jul 11 12:10:53 2014 From: oliver at fromme.com (Oliver Fromme) Date: Fri, 11 Jul 2014 12:10:53 +0200 (CEST) Subject: [FFmpeg-user] libx264 vs android 4.4 In-Reply-To: Message-ID: <201407111010.s6BAArfV008536@haluter.fromme.com> Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > > > ffmpeg -f rawvideo -i /dev/graphics/fb0 > > This looks plain wrong. > ffmpeg cannot warn about this, it cannot know > that /dev/... is a device (and not a file). Sorry for jumping in here, but can't ffmpeg simply call stat() on the name and check the struct stat.st_mode field for S_IFREG (or S_IFCHR | S_IFBLK)? At least that's the usual way to distinguish between devices and plain files. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) Donations: http://www.amazon.de/wishlist/A0LHFK68RV8S From cehoyos at ag.or.at Fri Jul 11 12:33:35 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 10:33:35 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> <53194.86.107.254.57.1405064296.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > > Please post the content of config.log starting with > > "check_pkg_config sdl" until "check_header linux" or > > "check_header sys". > > > > FWIW I have the same result building for android-4.4: Sorry, how is the content of your config.log related to the cross-compilation of ffplay? Carl Eugen From cehoyos at ag.or.at Fri Jul 11 12:37:44 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 10:37:44 +0000 (UTC) Subject: [FFmpeg-user] libx264 vs android 4.4 References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote: > > Patrick Shirkey boosthardware.com> writes: > > > >> ffmpeg -f rawvideo -i /dev/graphics/fb0 > > > > This looks plain wrong. > The commandline works if I do not use libx264 for > the stream codec. http://ffmpeg.org/ffmpeg-devices.html#fbdev indicates that ffmpeg -f fbdev -i /dev/graphics/fb0 should be used but I unfortunately cannot test here. Concerning that x264 doesn't work at all, please test: $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov If this doesn't work, we have to find out why. If it works, please replace "-f lavfi -i testsrc" with the framebuffer input. Carl Eugen From pshirkey at boosthardware.com Fri Jul 11 13:33:56 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Fri, 11 Jul 2014 21:33:56 +1000 (EST) Subject: [FFmpeg-user] libx264 vs android 4.4 In-Reply-To: References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> Message-ID: <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> On Fri, July 11, 2014 8:37 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote: >> > Patrick Shirkey boosthardware.com> writes: >> > >> >> ffmpeg -f rawvideo -i /dev/graphics/fb0 >> > >> > This looks plain wrong. > >> The commandline works if I do not use libx264 for >> the stream codec. > > http://ffmpeg.org/ffmpeg-devices.html#fbdev > indicates that ffmpeg -f fbdev -i /dev/graphics/fb0 > should be used but I unfortunately cannot test here. > > Concerning that x264 doesn't work at all, please test: > $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov > If this doesn't work, we have to find out why. > > If it works, please replace "-f lavfi -i testsrc" with > the framebuffer input. > Both of these commands work: ++++++ $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc File 'out.mov' already exists. Overwrite ? [y/N] y [libx264 @ 0x2ca35b0] using SAR=1/1 [libx264 @ 0x2ca35b0] using cpu capabilities: ARMv6 NEON [libx264 @ 0x2ca35b0] profile High, level 1.3 [libx264 @ 0x2ca35b0] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mov @ 0x2ca27f0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, mov, to 'out.mov': Metadata: encoder : Lavf55.45.100 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help ++++++ $ ffmpeg -f fbdev -i /dev/graphics/fb0 -pix_fmt yuv420p out.mov [fbdev @ 0x2f7aeb0] w:800 h:480 bpp:32 pixfmt:bgra fps:25/1 bit_rate:307200000 Input #0, fbdev, from '/dev/graphics/fb0': Duration: N/A, start: 1405078097.050518, bitrate: 307200 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 307200 kb/s, 25 tbr, 1000k tbn, 25 tbc File 'out.mov' already exists. Overwrite ? [y/N] y [libx264 @ 0x2f7d250] using cpu capabilities: ARMv6 NEON [libx264 @ 0x2f7d250] profile High, level 3.0 [libx264 @ 0x2f7d250] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mov @ 0x2f7c370] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, mov, to 'out.mov': Metadata: encoder : Lavf55.45.100 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 800x480, q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) ++++++ - Theoretically, this one should work but it still gives me the same error: ++++++ $ ffmpeg -f fbdev -i /dev/graphics/fb0 -pix_fmt yuv420p -preset:v fast http://localhost:8090/feed1.ffm [fbdev @ 0x2118ee0] w:800 h:480 bpp:32 pixfmt:bgra fps:25/1 bit_rate:307200000 Input #0, fbdev, from '/dev/graphics/fb0': Duration: N/A, start: 1405077717.339715, bitrate: 307200 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 307200 kb/s, 25 tbr, 1000k tbn, 25 tbc Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (http://localhost:8090/feed1.ffm) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x211f040] broken ffmpeg default settings detected [libx264 @ 0x211f040] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x211f040] preset usage: -vpre -vpre [libx264 @ 0x211f040] speed presets are listed in x264 --help [libx264 @ 0x211f040] profile is optional; x264 defaults to high Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now Stream #0:0: Video: h264, 480x800, q=2-31, 100 kb/s, 25 fps, 1000k tbn, 1 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height ++++++ - I I use -vpre fast instead of -preset:v fast I get the following error. IIUC this is because ffmpeg does not support passing the -vpre flag to libx264 anymore. ++++++ $ ffmpeg -f fbdev -i /dev/graphics/fb0 -pix_fmt yuv420p -vpre fast http://localhost:8090/feed1.ffm [fbdev @ 0x2584cf0] w:800 h:480 bpp:32 pixfmt:bgra fps:25/1 bit_rate:307200000 Input #0, fbdev, from '/dev/graphics/fb0': Duration: N/A, start: 1405077949.460116, bitrate: 307200 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 307200 kb/s, 25 tbr, 1000k tbn, 25 tbc File for preset 'fast' not found ++++++ -- Patrick Shirkey Boost Hardware Ltd From smarrocco at ringsidecreative.com Fri Jul 11 16:04:34 2014 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Fri, 11 Jul 2014 10:04:34 -0400 Subject: [FFmpeg-user] Alternative options for comma-separated filters? In-Reply-To: <20140711081157.GD673@krille.blacktrash.org> References: <53BEBFC6.8040508@ringsidecreative.com> <20140711081157.GD673@krille.blacktrash.org> Message-ID: <53BFEEF2.1030705@ringsidecreative.com> On 7/11/2014 4:11 AM, Christian Ebert wrote: * I guess the space (argument separator in the shell) is the problem here, not the comma. Try: -vf colormatrix=bt601:bt709,mp=eq2=1:1:0:1:2:1:1:1 It is definitely the comma. Placing a comma, anywhere is any argument, even quoted or double-quoted, causes the application to fail. Apparently something in the process.startinfo.arguments in the dotnet framework. Spaces (or lack thereof) have no effect. -- sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From barsnick at gmx.net Fri Jul 11 16:26:58 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 11 Jul 2014 16:26:58 +0200 Subject: [FFmpeg-user] Alternative options for comma-separated filters? In-Reply-To: <53BFEEF2.1030705@ringsidecreative.com> References: <53BEBFC6.8040508@ringsidecreative.com> <20140711081157.GD673@krille.blacktrash.org> <53BFEEF2.1030705@ringsidecreative.com> Message-ID: <20140711142658.GE5459@sunshine.barsnick.net> On Fri, Jul 11, 2014 at 10:04:34 -0400, Sam Marrocco wrote: > It is definitely the comma. Placing a comma, anywhere is any > argument, even quoted or double-quoted, causes the application to > fail. Apparently something in the process.startinfo.arguments in the > dotnet framework. Spaces (or lack thereof) have no effect. Peculiar, others seem to have solved the problem, with encapulated quoting: http://stackoverflow.com/a/5230195 *shrug* Moritz From smarrocco at ringsidecreative.com Fri Jul 11 16:40:46 2014 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Fri, 11 Jul 2014 10:40:46 -0400 Subject: [FFmpeg-user] Alternative options for comma-separated filters? In-Reply-To: <20140711142658.GE5459@sunshine.barsnick.net> References: <53BEBFC6.8040508@ringsidecreative.com> <20140711081157.GD673@krille.blacktrash.org> <53BFEEF2.1030705@ringsidecreative.com> <20140711142658.GE5459@sunshine.barsnick.net> Message-ID: <53BFF76E.3040902@ringsidecreative.com> On 7/11/2014 10:26 AM, Moritz Barsnick wrote: On Fri, Jul 11, 2014 at 10:04:34 -0400, Sam Marrocco wrote: It is definitely the comma. Placing a comma, anywhere is any argument, even quoted or double-quoted, causes the application to fail. Apparently something in the process.startinfo.arguments in the dotnet framework. Spaces (or lack thereof) have no effect. Peculiar, others seem to have solved the problem, with encapulated quoting: http://stackoverflow.com/a/5230195 *shrug* Coincidentally, I saw that link and attempted similiar repairs. I believe it's because the comma being used is not within the confines of a string, but is between individual arguments. Not certain yet. I'm going to attempt Carl's suggestion of filter_script. Looking for examples; it might be a good solution. sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From natural_groove at hotmail.fr Fri Jul 11 09:55:03 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Fri, 11 Jul 2014 00:55:03 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: HI, Im using 2.1.1 of ffmpeg because I want to use it as a depend to crossbuild a framework based on it, and tested with this version, might work with recent version but since i dont know... About the configure options, im not sure yet which libs i am going to need for my application later so i just added some. (and i wasnt sure about the -ldl option, just saw this on a website). Config.log: check_pkg_config sdl SDL_events.h SDL_PollEvent check_func_headers SDL_events.h SDL_PollEvent -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL -lSDL -lpthread check_ld -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL -lSDL -lpthread check_cc -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL BEGIN /tmp/ffconf.YeF7ECNp.c 1 #include 2 long check_SDL_PollEvent(void) { return (long) SDL_PollEvent; } 3 int main(void) { return 0; } END /tmp/ffconf.YeF7ECNp.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math -std=c99 -fomit-frame-pointer -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL -c -o /tmp/ffconf.Qo9SVBpU.o /tmp/ffconf.YeF7ECNp.c gcc -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--as-needed -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL -o /tmp/ffconf.6kZFTZ8k /tmp/ffconf.Qo9SVBpU.o -lSDL -lpthread -lm -pthread -lz check_cpp_condition SDL.h (SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201 -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL check_cpp -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL BEGIN /tmp/ffconf.YeF7ECNp.c 1 #include 2 #if !((SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201) 3 #error "unsatisfied condition: (SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" N<<8 | SDL_PATCHLEVEL) >= 0x010201" 4 #endif END /tmp/ffconf.YeF7ECNp.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math -std=c99 -fomit-frame-pointer -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL -E -o /tmp/ffconf.Qo9SVBpU.o /tmp/ffconf.YeF7ECNp.c check_type SDL.h SDL_VideoInfo current_w -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL check_code cc SDL.h const void *p = &((SDL_VideoInfo *)0)->current_w -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL check_cc -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL BEGIN /tmp/ffconf.YeF7ECNp.c 1 #include 2 int main(void) { const void *p = &((SDL_VideoInfo *)0)->current_w; return 0; } n 0; } END /tmp/ffconf.YeF7ECNp.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math -std=c99 -fomit-frame-pointer -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/include/SDL -c -o /tmp/ffconf.Qo9SVBpU.o /tmp/ffconf.YeF7ECNp.c check_header linux/fb.h check_cpp BEGIN /tmp/ffconf.YeF7ECNp.c 1 #include 2 int x; END /tmp/ffconf.YeF7ECNp.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math -std=c99 -fomit-frame-pointer -pthread -E -o /tmp/ffconf.Qo9SVBpU.o /tmp/ffconf.YeF7ECNp.c check_header linux/videodev2.h check_cpp Regards Ricko Date: Fri, 11 Jul 2014 00:02:30 -0700 From: ml-node+s933282n4666304h20 at n4.nabble.com To: natural_groove at hotmail.fr Subject: Re: Issue Crossbuilding ffplay with openembedded Rickoo hotmail.fr> writes: > SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar.gz" This is horribly outdated, why are you using it? > DEPENDS = "yasm-native libsdl libx11 zlib libtheora > libogg libass libtool" You don't use libass, why did you add it to depend? Not sure about libx11... > EXTRA_OECONF = "--arch=arm --enable-cross-compile > --cross-prefix=${CROSS_COMPILE} --target-os=linux > --enable-gpl Unrelated: None of your external libraries need --enable-gpl why are you using it? > --enable-libtheora --enable-libvorbis > --extra-libs="-ldl" Why is this necessary? Is there a bug that (is reproducible with current git head and that) we should fix? > --enable-ffplay This is useless, it is the default (and as you found out, configure does not warn about it). Please remove it. Please post the content of config.log starting with "check_pkg_config sdl" until "check_header linux" or "check_header sys". Carl Eugen _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user If you reply to this email, your message will be added to the discussion below: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666304.html To unsubscribe from Issue Crossbuilding ffplay with openembedded, click here. NAML -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666308.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From oshineye at mail.ru Fri Jul 11 17:12:12 2014 From: oshineye at mail.ru (=?UTF-8?B?SmVyb21lIE9zaGluZXll?=) Date: Fri, 11 Jul 2014 19:12:12 +0400 Subject: [FFmpeg-user] =?utf-8?q?Encoding_problem_=3A_Stuck_on_certain_tim?= =?utf-8?q?e=3Dxx=3Axx=2Exx?= Message-ID: <1405091532.582795638@f426.i.mail.ru> I am trying to encode a mkv video to mkv applying a watermark with this cmd ffmpeg.exe" -i "c:\i.mkv" -i "C:\logo.png"? -preset veryslow -crf 25 -filter_complex overlay=W-w-5:H-h-5 "C:\o.mkv" This cmd worked on 100 files of the same w:h and similar filesize/bitrates. With a current file i.mkv at point time=20:49.92 I get error messages.(see pic attachment for clearer information) frame=37264 fps=338 q=31.0 size=? 119157kB time=00:20:43.88 bitrate= 784.7kbits/ [h264 @ 03b44760] Reinit context to 1280x720, pix_fmt: yuvj420p frame=37442 fps=338 q=31.0 size=? 119544kB time=00:20:49.92 bitrate= 783.5kbits/ Input stream #0:0 frame changed from size:1280x720 fmt:yuv420p to size:1280x720 fmt:yuvj420p [swscaler @ 153a76e0] deprecated pixel format used, make sure you did set range correctly [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 114 times frame=37446 fps=337 q=31.0 size=? 119549kB time=00:20:55.05 bitrate= 780.3kbits/ [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 143 times frame=37446 fps=335 q=31.0 size=? 119555kB time=00:20:59.52 bitrate= 777.6kbits/ [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 143 times frame=37446 fps=333 q=31.0 size=? 119603kB time=00:21:04.29 bitrate= 775.0kbits/ [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 142 times frame=37446 fps=332 q=31.0 size=? 119653kB time=00:21:09.09 bitrate= 772.4kbits/ [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 142 times frame=37446 fps=330 q=31.0 size=? 119704kB time=00:21:14.04 bitrate= 769.7kbits/ [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 144 times frame=37446 fps=329 q=31.0 size=? 119751kB time=00:21:18.67 bitrate= 767.2kbits/ [Parsed_overlay_0 @ 043994a0] [framesync @ 03b4c2c8] Buffer queue overflow, drop ping. ??? Last message repeated 20 times frame=37446 fps=327 q=31.0 size=? 119753kB time=00:21:18.84 bitrate= 767.1kbits/ ... After these error messages pass, the video continues to encode but never passes the time=21:18.84, every next input stream from ffmpeg has this same time and it goes on forever until I exit. I have attached a picture of the ffmpeg console, please see this. I would like to be able to fix this so I can encode that file, but also find some way that if this happens again in the future, I can prevent it from encoding forever and skip to the next file. Thanks in advance. -- Oshineye -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 80020 bytes Desc: not available URL: From patrick.fischer at vitec.com Fri Jul 11 08:56:12 2014 From: patrick.fischer at vitec.com (Patrick Fischer) Date: Fri, 11 Jul 2014 06:56:12 +0000 Subject: [FFmpeg-user] audio and video out of sync In-Reply-To: References: Message-ID: <1405061747718.92506@vitec.com> Hello Merat, I think the problem is the ffmpeg mpegts decoder or demuxer. How did you save the RAW File to disk? You could use netcat (nc) to receive RAW. nc 192.168.1.1 1234 > mpegts_raw.ts You need to know that a valid TS File should start with an 0x47 byte and an GOP Header. So if you try to play the file with VLC, VLC will detect garbage at the beginning. but with a saved file it is much easier to analyze the problem. The TS file includes timing information(PCR, PTS, DTS) for audio and video. So if some audio or video frames are missing, a good player (like VLC) will detect that frames are missing and the player will fill the missing frames. (some will double the last or the next frame to adjust the sync) If i understand the ffmpeg right, the async=1 flag will only sync the start point of the file. If in the middle some frames are missing, the audio/video sync will drift away. So now you should have a mpegts_raw.ts which maybe have some missing frames. If you play the TS file with a good player, all looks fine. If you convert this file to mp4 the fill will be async at some point. It is hard to get a good example for that. Any maybe i'm wrong. I think ffmpeg will not handle missing audio/video frames in the middle right. Best regards Patrick ________________________________________ Von: ffmpeg-user-bounces at ffmpeg.org im Auftrag von Murat Maman Gesendet: Freitag, 11. Juli 2014 07:34 An: FFmpeg user questions Betreff: [FFmpeg-user] audio and video out of sync Hi Carl, Do you have any idea about source of the problem, i did not get any comment from you. Could you make any comment. regards, Murat Hi Carl, Yesterday out of sync problem again occurred and i saved file where to my disk, i saw that there is no out of sync problem. What does it mean, what is the source of problem, am i have internet problem, why frame drop during the broadcasting, is it rtmp problem. Our internet speed approximately 150 mbps. regards, Murat On Fri, Jul 4, 2014 at 3:32 PM, Eugene Gekhter > wrote: >* Carl, *>>* Can you explain why sudo ffmpeg is a bad idea? *>>* Thx. *>>* Sent from my iPhone *>>* > On Jul 4, 2014, at 4:07 AM, Carl Eugen Hoyos > wrote: *>* > *>* >> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote: *>* >> *>* >> sudo ffmpeg -y -f mpegts -i 'udp://@ *>* > *>* > Unrelated: I believe that everybody on this list agrees *>* > that "sudo ffmpeg" is a very bad idea. *>* > *>* >> 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \ *>* >> -maxrate 2M -bufsize 2M \ *>* >> -af volume=1.1 \ *>* >> -strict experimental \ *>* >> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \ *>* >> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v *>* >> 900k \ *>* >> -preset superfast -tune zerolatency -threads 8 -crf 25 \ *>* >> -map 0:0 -map 0:1 \ *>* >> -f flv 'rtmp://testt:testt at 00.00.00.00:0000/live/1111 ' *>* > *>* > (Complete, uncut console output missing.) *>* > *>* > Why are you using -vsync 1? *>* > Did you try -async 1? *>* > *>* > Am I correct that the problem is reproducible with file output *>* > instead of network output? *>* > *>* > Is the problem reproducible if you save the udp stream to a file *>* > (including the reception problems) and transcode the file with *>* > FFmpeg? *>* > *>* > 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 porparek at gmail.com Fri Jul 11 18:34:35 2014 From: porparek at gmail.com (Pawel Por) Date: Fri, 11 Jul 2014 18:34:35 +0200 Subject: [FFmpeg-user] processing of mxf videoclips with ffmpeg Message-ID: >Command line and complete, uncut console output (and >an explanation what didn't work well) missing. >Carl Eugen thanks for quick reply. I will try to split all above steps in a multiple posts. First I cut a file with the following command: ffmpeg -i flowers.mxf -ss 0 -t 4 -c copy -y 1.mxf At this step I can observe the audio/video desynchronisation. From cehoyos at ag.or.at Fri Jul 11 18:42:54 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 16:42:54 +0000 (UTC) Subject: [FFmpeg-user] Encoding problem : Stuck on certain time=xx:xx.xx References: <1405091532.582795638@f426.i.mail.ru> Message-ID: Jerome Oshineye mail.ru> writes: > ffmpeg.exe" -i "c:\i.mkv" -i "C:\logo.png"? > -preset veryslow -crf 25 -filter_complex > overlay=W-w-5:H-h-5 "C:\o.mkv" Please provide at least the first 50 and the last 50 lines of the console output. Carl Eugen From cehoyos at ag.or.at Fri Jul 11 18:44:26 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 16:44:26 +0000 (UTC) Subject: [FFmpeg-user] processing of mxf videoclips with ffmpeg References: Message-ID: Pawel Por gmail.com> writes: > ffmpeg -i flowers.mxf -ss 0 -t 4 -c copy -y 1.mxf > > At this step I can observe the audio/video > desynchronisation. Please provide the (command line together with the) complete, uncut console output and the input sample. Carl Eugen From gabriel at musicuo.com Fri Jul 11 20:19:52 2014 From: gabriel at musicuo.com (Gabriel Soltz) Date: Fri, 11 Jul 2014 15:19:52 -0300 Subject: [FFmpeg-user] Problem: global headers Message-ID: Hi, i m having an error while trying to encode with ffmpeg. f="01.mp3" bname=`basename "$f" .mp3` list="$bname.m3u8" ffmpeg -i "$f" -vn -c:a libfdk_aac -b:a 128k -map 0 -flags:a -global_header \ -f segment -segment_time 10 -segment_list_size 0 -segment_list "$list" -segment_format mpegts $bname-%03d.ts *OUTPUT:* ffmpeg version git-2014-07-11-6779bf3 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 11 2014 16:25:37 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7) configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [mp3 @ 0x21dfe80] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from '01.mp3': Metadata: album : Favourite worst nightmare artist : Arctic Monkeys genre : Rock title : Brainstorm track : 1 date : 2007 Duration: 00:02:50.48, start: 0.000000, bitrate: 320 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg), 200x178 [SAR 96:96 DAR 100:89], 90k tbr, 90k tbn, 90k tbc Metadata: title : comment : Other [segment @ 0x3c762e0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. *[segment @ 0x3c762e0] Codec for stream 0 does not use global headers but container format requires global headers* [mpegts @ 0x3c9d800] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, segment, to '01-%03d.ts': Metadata: album : Favourite worst nightmare artist : Arctic Monkeys genre : Rock title : Brainstorm track : 1 date : 2007 encoder : Lavf55.45.100 Stream #0:0: Audio: aac (libfdk_aac), 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc55.69.100 libfdk_aac Stream mapping: Stream #0:0 -> #0:0 (mp3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [mpegts @ 0x3ca2820] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3d10320] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3ca2820] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [mpegts @ 0x3ca2820] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [mpegts @ 0x3ca2820] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [mpegts @ 0x3c9f9c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3c9f260] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3ce14e0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3d10320] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3ca2820] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3c9f9c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3d10320] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0x3c9f260] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times *[mp3 @ 0x3c759c0] Header missing* Error while decoding stream #0:0: Invalid data found when processing input size=N/A time=00:02:50.29 bitrate=N/A video:0kB audio:2662kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Can someone please can explain whats the problem is ? I dont understand how to fix the global headers problem. I try with different input files. Thanks in advance. Gabriel Soltz | Musicuo From soundgigi at freenet.de Fri Jul 11 21:06:56 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Fri, 11 Jul 2014 21:06:56 +0200 Subject: [FFmpeg-user] Confusion with acodec pcm_s24le and pcm_s24be In-Reply-To: <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> Message-ID: Hi all i am still working on my "batch-interleaver" and i have a very strange effect: I am trying to "mux" 6 aif - mono files to one multichannel wav file. ffprobe tells me all aif files are : Big-Endian Audio: pcm_s24be, 48000 Hz, 1 channels, s32, 1152 kb/s But the mapping filter interpretes the first stream as be and the others as le Stream mapping: Stream #0:0 (pcm_s24be) -> amerge:in0 Stream #1:0 (pcm_s24le) -> amerge:in1 Stream #2:0 (pcm_s24le) -> amerge:in2 Stream #3:0 (pcm_s24le) -> amerge:in3 Stream #4:0 (pcm_s24le) -> amerge:in4 Stream #5:0 (pcm_s24le) -> amerge:in5 The result is a corrupt file - Only Noise in it The conversion happens in this line ffmpeg -i $L -i $R -i $C -i $LFE -i $Ls -i $Rs -filter_complex $mapping ${pre-C.aif}_6ch_24bit.wav < /dev/null where for example $L is L="$pre-(L).aif"$ac with ac=" -acodec pcm_s24le" Any Ideas ??? Best Regards Luigi From cehoyos at ag.or.at Fri Jul 11 21:26:13 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 11 Jul 2014 19:26:13 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Confusion_with_acodec_pcm=5Fs24le_and_pcm?= =?utf-8?q?=5Fs24be?= References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> Message-ID: Luigi Rensinghoff freenet.de> writes: > Audio: pcm_s24be, 48000 Hz, 1 channels, s32, 1152 kb/s > > But the mapping filter interpretes the first stream > as be and the others as le Actual (!) command line - no variables - and complete, uncut console output missing. Please stop thread-highjacking, Carl Eugen From soundgigi at freenet.de Fri Jul 11 21:42:39 2014 From: soundgigi at freenet.de (Luigi Rensinghoff) Date: Fri, 11 Jul 2014 21:42:39 +0200 Subject: [FFmpeg-user] Confusion with acodec pcm_s24le and pcm_s24be In-Reply-To: References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> Message-ID: I found it its fixed Am 11.07.2014 um 21:26 schrieb Carl Eugen Hoyos : > Luigi Rensinghoff freenet.de> writes: > >> Audio: pcm_s24be, 48000 Hz, 1 channels, s32, 1152 kb/s >> >> But the mapping filter interpretes the first stream >> as be and the others as le > > Actual (!) command line - no variables - and complete, > uncut console output missing. > > Please stop thread-highjacking, Carl Eugen UPPS sorry !!!! > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sat Jul 12 10:41:38 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 12 Jul 2014 08:41:38 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > Im using 2.1.1 of ffmpeg because I want to use it as a > depend to crossbuild a framework based on it, and tested > with this version, might work with recent version but > since i dont know... It appears to me that 2.1.1 does not work for you... Anyway: Please understand that 2.1.1 is not supported on this mailing list. > About the configure options, im not sure yet which libs > i am going to need for my application later so i just > added some. My question was why you did not add some libs to FFmpeg but to your depend line. > (and i wasnt sure about the -ldl option, just saw this > on a website). Please test (with current FFmpeg) and report back. Please avoid top-posting here, Carl Eugen From batguano999 at zoho.com Sat Jul 12 14:17:32 2014 From: batguano999 at zoho.com (batguano999) Date: Sat, 12 Jul 2014 05:17:32 -0700 Subject: [FFmpeg-user] What does this message mean? Message-ID: <1472a81c25b.-4901917954631701021.-6458556254167033734@zoho.com> Hi What does this message mean please? "Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead." It is brown, not red, so I suppose it is not an error - only advisory. Should I modify my commands? @Xubuntu:~/ffmpeg-HEAD-66558fe$ ./ffmpeg -i foo.wav foo.flac ffmpeg version 2.2.git-66558fe Copyright (c) 2000-2014 the FFmpeg developers built on Jul 12 2014 13:10:07 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'foo.wav': Metadata: encoder : Lavf55.41.100 Duration: 00:00:30.00, bitrate: 1411 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s [flac @ 0xaeca240] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, flac, to 'foo.flac': Metadata: encoder : Lavf55.45.100 Stream #0:0: Audio: flac, 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc55.69.100 flac Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> flac (native)) Press [q] to stop, [?] for help size= 3239kB time=00:00:30.10 bitrate= 881.3kbits/s video:0kB audio:3231kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.250537% From batguano999 at zoho.com Sat Jul 12 15:55:57 2014 From: batguano999 at zoho.com (batguano999) Date: Sat, 12 Jul 2014 06:55:57 -0700 Subject: [FFmpeg-user] What does this message mean? In-Reply-To: <1472a81c25b.-4901917954631701021.-6458556254167033734@zoho.com> References: <1472a81c25b.-4901917954631701021.-6458556254167033734@zoho.com> Message-ID: <1472adbda0f.-2133444190976355983.5504631653283354331@zoho.com> ---- On Sat, 12 Jul 2014 05:17:32 -0700 batguano999 wrote ---- > > >Hi >What does this message mean please? >"Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead." > Somebody has already reported this fault 3 weeks ago, but the ticket has not been opened yet. I've added my report. Here ---> https://trac.ffmpeg.org/ticket/3741 From rogerdpack2 at gmail.com Sat Jul 12 16:05:09 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 12 Jul 2014 08:05:09 -0600 Subject: [FFmpeg-user] repair interrupted mp4? Message-ID: Hello. I think I've noticed that is ffmpeg is "recording" to an mp4 file, but then the ffmpeg process is "killed" the resultant file is corrupted/unplayable. Anyone know of any hacks/ways to recover the video from the file? Thank you. -roger- From cehoyos at ag.or.at Sat Jul 12 17:09:55 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 12 Jul 2014 15:09:55 +0000 (UTC) Subject: [FFmpeg-user] repair interrupted mp4? References: Message-ID: Roger Pack gmail.com> writes: > I think I've noticed that is ffmpeg is "recording" to an mp4 file, > but then the ffmpeg process is "killed" the resultant file is > corrupted/unplayable. I believe this was fixed some time ago (if encoding stops because if an error, the output file is playable) but if you mean something like kill -9 or a power failure, the output file will be broken. Carl Eugen From ybrenman at xopnetworks.com Sat Jul 12 20:12:17 2014 From: ybrenman at xopnetworks.com (Yan Brenman) Date: Sat, 12 Jul 2014 11:12:17 -0700 Subject: [FFmpeg-user] How to stream just audio with ffmpeg Message-ID: <53C17A81.6040500@xopnetworks.com> Hello, I am trying to stream just audio with ffmpeg from a PC with built in microphone and play on the other PC with ffplay. The name of a microphone device I get with "ffmpeg -list_devices true -f dshow -i dummy" command. The command on the streaming side looks like this: ffmpeg -f dshow -i audio="Internal Microphone Array (IDT High Definition Audio CODEC)" -vn -c:a mp3 -q:a 9 -ar 11025 -ac 1 -f flv rtmp://[RTMP_server_name]/live/[file_name] And as you can see I am explicitly disabling the video component from being included by default with "-vn" switch. The streaming side seems to be working fine (with no warnings or errors) but unfortunately when I try to play the audio stream with ffplay it still tries to find the video stream and bails out with "RTMP_ReadPacket, failed to read RTMP packet header" error and then complaining the codec parameters for the video stream can't be found. Seems to me that the root of the problem is the fact that ffplay is still looking for video in stream 0, while in fact stream 0 is an audio (and no video of course at all). I tried to run ffplay with "-nodisp" option but it didn't help either: ffplay -nodisp rtmp://[RTMP_server_name]/live/[file_name]. Is there something wrong I am doing on the streaming side or is there something else I need to specify on the playing side? Every piece of advise is greatly appreciated Yan From matej at tam.si Sat Jul 12 20:39:09 2014 From: matej at tam.si (Matej) Date: Sat, 12 Jul 2014 20:39:09 +0200 Subject: [FFmpeg-user] New streams being added endlessly Message-ID: Hi, when running the following command: ffmpeg -i "http://live.radiohit.si:9560" -codec copy -f mpegts udp:// 192.168.1.100:1230?pkt_size=1316?buffer_size=65535 to stream our local radio station to my PC via mpegts, it plays all right for a few minutes in the VLC player, but then starts stopping and the distortions are always longer. I have checked the menu Tools->Codec information in VLC player and I can see that new streams are endlessly added and that sound stops every time when new stream is added to that list. How can I solve this? I have spent quite some time on it (it's a part of some larger project), but cannot move further on. Any help and ideas will be very much appreciated :) Thanks, Matej From ybrenman at xopnetworks.com Sun Jul 13 08:20:30 2014 From: ybrenman at xopnetworks.com (Yan Brenman) Date: Sat, 12 Jul 2014 23:20:30 -0700 Subject: [FFmpeg-user] How to stream just audio with ffmpeg In-Reply-To: <53C17A81.6040500@xopnetworks.com> References: <53C17A81.6040500@xopnetworks.com> Message-ID: <53C2252E.9050202@xopnetworks.com> Just in anticipation of one likely suggestion I tried to disable video with ffplay too: ffplay -vn rtmp://[RTMP_server_name]/live/[file_name] This didn't work either. Thanks Yan On 7/12/2014 11:12 AM, Yan Brenman wrote: > Hello, > > I am trying to stream just audio with ffmpeg from a PC with built in > microphone and play on the other PC with ffplay. > The name of a microphone device I get with "ffmpeg -list_devices true > -f dshow -i dummy" command. > > The command on the streaming side looks like this: > > ffmpeg -f dshow -i audio="Internal Microphone Array (IDT High > Definition Audio CODEC)" -vn -c:a mp3 -q:a 9 -ar 11025 -ac 1 -f flv > rtmp://[RTMP_server_name]/live/[file_name] > > And as you can see I am explicitly disabling the video component from > being included by default with "-vn" switch. > The streaming side seems to be working fine (with no warnings or > errors) but unfortunately when I try to play the audio stream with > ffplay it still tries to find the video stream > and bails out with "RTMP_ReadPacket, failed to read RTMP packet > header" error and then complaining the codec parameters for the video > stream can't be found. > > Seems to me that the root of the problem is the fact that ffplay is > still looking for video in stream 0, while in fact stream 0 is an > audio (and no video of course at all). I tried to run > ffplay with "-nodisp" option but it didn't help either: > > ffplay -nodisp rtmp://[RTMP_server_name]/live/[file_name]. > > Is there something wrong I am doing on the streaming side or is there > something else I need to specify on the playing side? > > Every piece of advise is greatly appreciated > Yan > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From zdziarze at cs.tcd.ie Mon Jul 14 15:29:26 2014 From: zdziarze at cs.tcd.ie (Zbigniew Zdziarski) Date: Mon, 14 Jul 2014 14:29:26 +0100 Subject: [FFmpeg-user] =?utf-8?q?Bug_in_I-Frame_Retrieval=3F?= Message-ID: <75367e75fb3711268b6e47e5345313dc@scss.tcd.ie> Hello, I'm trying to extract I frames from mpeg files but I've noticed something weird happening. The frames that are saved in my folder by ffmpeg do not match the frames marked as I frames either by ffprobe or ffmpeg with parameter "-loglevel debug". The command I'm using is the following: ffmpeg -i C:\vid1.mp4 -vf select='eq(pict_type\,I)' -vsync 0 C:\%03d.jpg -loglevel debug 2> vid1.txt For some videos, the first few frames saved are correct. For some videos, all but the first frame are incorrectly saved. Is my command incorrect or is there a bug??? Cheers, Zig From krueger at lesspain.de Mon Jul 14 17:11:29 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Mon, 14 Jul 2014 17:11:29 +0200 Subject: [FFmpeg-user] How does ffmpeg calculate bitrate? Message-ID: Hi, when specifying bitrate using minrate/maxrate arguments, how does ffmpeg measure the bitrate in its rate control algorithm? Is this the bitrate as a GOP average, i.e. sum(packet sizes of gop)/gop duration or simply packet size/packet duration that ffmpeg attempts to keep within the limits? The latter would seem odd for non-I-frame-only material as an I-frame of a certain quality is typically (depending on the motive, I know) a lot larger than the following P- or B-frames of the same quality. If the answer is "it depends on the codec" then I would like to know how it is for the mpeg-style codecs, e.g. mpeg2video. Thanks for any insights into this, Robert From porparek at gmail.com Mon Jul 14 18:04:33 2014 From: porparek at gmail.com (Pawel Por) Date: Mon, 14 Jul 2014 18:04:33 +0200 Subject: [FFmpeg-user] processing of mxf videoclips with ffmpeg Message-ID: > Please provide the (command line together with the) > complete, uncut console output and the input sample. Thanks for quick reply. Below is all the necessary information. I've sent an example MXF flowers.mxf videoclip into my email account ftp6565 at gmail.com (password: ftp6565ftp). Feel free to login and download it. There is only one email, with subject "flowers.mxf videoclip (25 MB)". COMMAND LINE: ffmpeg -i flowers.mxf -ss 0 -t 4 -c copy -y out.mxf COMPLETE OUTPUT: ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 10 2014 20:30:55 with gcc 4.9.0 (GCC) 20140604 (prerelease) configuration: --prefix=/usr --disable-debug --disable-static --enable-avisynth --enable-avresample --enable-decoder=atrac3 --enable-decoder=atrac3p --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libavresample 1. 2. 0 / 1. 2. 0 libswscale 2. 5.102 / 2. 5.102 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.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, mxf, from 'flowers.mxf': Metadata: uid : bdf018f4-7dc1-405d-9cfc-66826c0d8209 generation_uid : 3d024e50-1514-4c75-9c47-03a87a7c139a company_name : Sony product_name : util product_version : 1.00 product_uid : cede4403-8280-11de-8a39-08004678031c modification_date: 2014-07-06 04:36:48 timecode : 16:24:15:03 Duration: 00:00:05.32, start: 0.000000, bitrate: 38949 kb/s Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 35000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Stream #0:2: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Stream #0:3: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Stream #0:4: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Output #0, mxf, to 'out.mxf': Metadata: uid : bdf018f4-7dc1-405d-9cfc-66826c0d8209 generation_uid : 3d024e50-1514-4c75-9c47-03a87a7c139a company_name : Sony product_name : util product_version : 1.00 product_uid : cede4403-8280-11de-8a39-08004678031c modification_date: 2014-07-06 04:36:48 timecode : 16:24:15:03 encoder : Lavf55.33.100 Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 35000 kb/s, 25 fps, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, mono, 768 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mxf @ 0x2374f00] missing frames frame= 89 fps=0.0 q=-1.0 Lsize= 15653kB time=00:00:04.00 bitrate=32056.4kbits/s video:15217kB audio:375kB subtitle:0 data:0 global headers:0kB muxing overhead 0.390030% From jeetbhatnagar.8941 at gmail.com Mon Jul 14 18:14:57 2014 From: jeetbhatnagar.8941 at gmail.com (Jeet Bhatnagar) Date: Mon, 14 Jul 2014 21:44:57 +0530 Subject: [FFmpeg-user] Delay in Stream In-Reply-To: References: Message-ID: Any solution?? My point was that I am using ffmpeg and ffserver,from ffserver stream is accessed by the player.So what I want to achieve is that stream in buffer ahould not be stored or very min amount ahould be stored i have tried everything to eliminate buffer from no buffer option to filemaxsize.Any solution please provide. On Jul 4, 2014 12:21 PM, "Jeet Bhatnagar" wrote: > Hi > > Whenever I play the video it starts from beginning,but what I want to > achieve is to view the stream from the point when player is started.My > application is for surveillance so real time view of stream is needed > > > > *My command line is* > > > > ffmpeg -y -loglevel debug -fflags nobuffer -avioflags direct -rtbufsize > 32k -b:v 512 -b:a 96 -vcodec mpeg1video -acodec mp2 -r 30 -i "input" > -acodec copy http://i.p address:port/test.ffm > > > > > *Console logs are* > > ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg > developers > > built on Apr 26 2014 18:47:56 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) > > configuration: --arch=i386 --disable-stripping --enable-avresample > --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu --enable-shared --disable-static > > avutil configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > avcodec configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > avformat configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > avdevice configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > avfilter configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > swscale configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > swresample configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > postproc configuration: --arch=i386 --disable-stripping > --enable-avresample --enable-pthreads --enable-runtime-cpudetect > --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/i386-linux-gnu > --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype > --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame > --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus > --enable-libpulse --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis > --enable-libvpx --enable-zlib --enable-gpl --enable-postproc > --enable-libcdio --enable-x11grab --enable-libx264 > --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared > --disable-static --disable-programs --disable-doc > > libavutil 52. 18.100 / 52. 18.100 > > libavcodec 54. 92.100 / 54. 92.100 > > libavformat 54. 63.104 / 54. 63.104 > > libavdevice 53. 5.103 / 53. 5.103 > > libavfilter 3. 42.103 / 3. 42.103 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > > Splitting the commandline. > > Reading option '-y' ... matched as option 'y' (overwrite output files) > with argument '1'. > > Reading option '-loglevel' ... matched as option 'loglevel' (set libav* > logging level) with argument 'debug'. > > Reading option '-fflags' ... matched as AVOption 'fflags' with argument > 'nobuffer'. > > Reading option '-avioflags' ... matched as AVOption 'avioflags' with > argument 'direct'. > > Reading option '-rtbufsize' ... matched as AVOption 'rtbufsize' with > argument '32k'. > > Reading option '-b:v' ... matched as option 'b' (video bitrate (please use > -b:v)) with argument '512'. > > Reading option '-b:a' ... matched as option 'b' (video bitrate (please use > -b:v)) with argument '96'. > > Reading option '-vcodec' ... matched as option 'vcodec' (force video codec > ('copy' to copy stream)) with argument 'mpeg1video'. > > Reading option '-acodec' ... matched as option 'acodec' (force audio codec > ('copy' to copy stream)) with argument 'mp2'. > > Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, > fraction or abbreviation)) with argument '30'. > > Reading option '-i' ... matched as input file with argument > '/home/rjil/Our_World___Beauty_of_Nature__Short_Film.mpg'. > > Reading option '-acodec' ... matched as option 'acodec' (force audio codec > ('copy' to copy stream)) with argument 'copy'. > > Reading option 'http://i.p :port/test.ffm' ... matched as output file. > > Finished splitting the commandline. > > Parsing a group of options: global . > > Applying option y (overwrite output files) with argument 1. > > Applying option loglevel (set libav* logging level) with argument debug. > > Successfully parsed a group of options. > > Parsing a group of options: input file > /home/rjil/Our_World___Beauty_of_Nature__Short_Film.mpg. > > Applying option b:v (video bitrate (please use -b:v)) with argument 512. > > Applying option b:a (video bitrate (please use -b:v)) with argument 96. > > Applying option vcodec (force video codec ('copy' to copy stream)) with > argument mpeg1video. > > Applying option acodec (force audio codec ('copy' to copy stream)) with > argument mp2. > > Applying option r (set frame rate (Hz value, fraction or abbreviation)) > with argument 30. > > Successfully parsed a group of options. > > Opening an input file: > /home/rjil/Our_World___Beauty_of_Nature__Short_Film.mpg. > > [mpeg @ 0x8ba0c80] Format mpeg probed with size=16384 and score=52 > > [mpeg @ 0x8ba0c80] File position before avformat_find_stream_info() is 0 > > [mpeg @ 0x8ba0c80] probing stream 0 pp:2500 > > [mpeg @ 0x8ba0c80] Probe with size=2002, packets=1 detected mpegvideo with > score=25 > > [mpeg @ 0x8ba0c80] probing stream 0 pp:2499 > > [mpeg @ 0x8ba0c80] Probe with size=4043, packets=2 detected mpegvideo with > score=25 > > [mpeg @ 0x8ba0c80] probing stream 0 pp:2498 > > [mpeg @ 0x8ba0c80] Probe with size=6084, packets=3 detected mpegvideo with > score=25 > > [mpeg @ 0x8ba0c80] probing stream 0 pp:2497 > > [mpeg @ 0x8ba0c80] probing stream 0 pp:2496 > > [mpeg @ 0x8ba0c80] Probe with size=10157, packets=5 detected mpegvideo > with score=51 > > [mpeg @ 0x8ba0c80] probed stream 0 > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 45000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 45000 not matching first dts 59106 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 66000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 72000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 81000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 87000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 102000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 42000 not matching first dts 117000 in the > queue > > [mpeg @ 0x8ba0c80] first_dts 45000 not matching first dts 73212 in the > queue > > Last message repeated 5 times > > > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19650000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6535 PTS:19605000 > T:653500.000000 POS:16740364 INTERLACED:0 -> PTS:6535 T:217.833333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6536 PTS:19608000 > T:653600.000000 POS:16742412 INTERLACED:0 -> PTS:6536 T:217.866667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19605490 in the > queue > > Last message repeated 5 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6537 PTS:19611000 > T:653700.000000 POS:16744460 INTERLACED:0 -> PTS:6537 T:217.900000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19659000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6538 PTS:19614000 > T:653800.000000 POS:nan INTERLACED:0 -> PTS:6538 T:217.933333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6539 PTS:19617000 > T:653900.000000 POS:16760832 INTERLACED:0 -> PTS:6539 T:217.966667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6540 PTS:19620000 > T:654000.000000 POS:16762892 INTERLACED:0 -> PTS:6540 T:218.000000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19668000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6541 PTS:19623000 > T:654100.000000 POS:nan INTERLACED:0 -> PTS:6541 T:218.033333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6542 PTS:19626000 > T:654200.000000 POS:16764940 INTERLACED:0 -> PTS:6542 T:218.066667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19621947 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19674000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6543 PTS:19629000 > T:654300.000000 POS:16766988 INTERLACED:0 -> PTS:6543 T:218.100000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6544 PTS:19632000 > T:654400.000000 POS:nan INTERLACED:0 -> PTS:6544 T:218.133333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19680000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6545 PTS:19635000 > T:654500.000000 POS:16773120 INTERLACED:0 -> PTS:6545 T:218.166667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6546 PTS:19638000 > T:654600.000000 POS:nan INTERLACED:0 -> PTS:6546 T:218.200000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19636053 in the > queue > > Last message repeated 5 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6547 PTS:19641000 > T:654700.000000 POS:16775180 INTERLACED:0 -> PTS:6547 T:218.233333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6548 PTS:19644000 > T:654800.000000 POS:nan INTERLACED:0 -> PTS:6548 T:218.266667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19692000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6549 PTS:19647000 > T:654900.000000 POS:16779276 INTERLACED:0 -> PTS:6549 T:218.300000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6550 PTS:19650000 > T:655000.000000 POS:16781324 INTERLACED:0 -> PTS:6550 T:218.333333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6551 PTS:19653000 > T:655100.000000 POS:16795648 INTERLACED:0 -> PTS:6551 T:218.366667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19652510 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19701000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6552 PTS:19656000 > T:655200.000000 POS:nan INTERLACED:0 -> PTS:6552 T:218.400000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6553 PTS:19659000 > T:655300.000000 POS:nan INTERLACED:0 -> PTS:6553 T:218.433333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19707000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6554 PTS:19662000 > T:655400.000000 POS:16799756 INTERLACED:0 -> PTS:6554 T:218.466667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6555 PTS:19665000 > T:655500.000000 POS:nan INTERLACED:0 -> PTS:6555 T:218.500000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6556 PTS:19668000 > T:655600.000000 POS:16803840 INTERLACED:0 -> PTS:6556 T:218.533333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19666616 in the > queue > > Last message repeated 4 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6557 PTS:19671000 > T:655700.000000 POS:nan INTERLACED:0 -> PTS:6557 T:218.566667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6558 PTS:19674000 > T:655800.000000 POS:nan INTERLACED:0 -> PTS:6558 T:218.600000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19722000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6559 PTS:19677000 > T:655900.000000 POS:16807948 INTERLACED:0 -> PTS:6559 T:218.633333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6560 PTS:19680000 > T:656000.000000 POS:16809996 INTERLACED:0 -> PTS:6560 T:218.666667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6561 PTS:19683000 > T:656100.000000 POS:16812044 INTERLACED:0 -> PTS:6561 T:218.700000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19680722 in the > queue > > Last message repeated 5 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6562 PTS:19686000 > T:656200.000000 POS:nan INTERLACED:0 -> PTS:6562 T:218.733333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19734000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6563 PTS:19689000 > T:656300.000000 POS:16824320 INTERLACED:0 -> PTS:6563 T:218.766667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6564 PTS:19692000 > T:656400.000000 POS:16828428 INTERLACED:0 -> PTS:6564 T:218.800000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19740000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6565 PTS:19695000 > T:656500.000000 POS:16830476 INTERLACED:0 -> PTS:6565 T:218.833333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6566 PTS:19698000 > T:656600.000000 POS:nan INTERLACED:0 -> PTS:6566 T:218.866667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19697179 in the > queue > > Last message repeated 4 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6567 PTS:19701000 > T:656700.000000 POS:16832524 INTERLACED:0 -> PTS:6567 T:218.900000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6568 PTS:19704000 > T:656800.000000 POS:nan INTERLACED:0 -> PTS:6568 T:218.933333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19752000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6569 PTS:19707000 > T:656900.000000 POS:16836620 INTERLACED:0 -> PTS:6569 T:218.966667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6570 PTS:19710000 > T:657000.000000 POS:16838668 INTERLACED:0 -> PTS:6570 T:219.000000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6571 PTS:19713000 > T:657100.000000 POS:16840716 INTERLACED:0 -> PTS:6571 T:219.033333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19711286 in the > queue > > Last message repeated 5 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6572 PTS:19716000 > T:657200.000000 POS:nan INTERLACED:0 -> PTS:6572 T:219.066667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6573 PTS:19719000 > T:657300.000000 POS:nan INTERLACED:0 -> PTS:6573 T:219.100000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6574 PTS:19722000 > T:657400.000000 POS:16844812 INTERLACED:0 -> PTS:6574 T:219.133333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6575 PTS:19725000 > T:657500.000000 POS:16855040 INTERLACED:0 -> PTS:6575 T:219.166667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19773000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6576 PTS:19728000 > T:657600.000000 POS:16857100 INTERLACED:0 -> PTS:6576 T:219.200000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6577 PTS:19731000 > T:657700.000000 POS:16859148 INTERLACED:0 -> PTS:6577 T:219.233333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6578 PTS:19734000 > T:657800.000000 POS:16861196 INTERLACED:0 -> PTS:6578 T:219.266667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19727743 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19782000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6579 PTS:19737000 > T:657900.000000 POS:nan INTERLACED:0 -> PTS:6579 T:219.300000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6580 PTS:19740000 > T:658000.000000 POS:nan INTERLACED:0 -> PTS:6580 T:219.333333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6581 PTS:19743000 > T:658100.000000 POS:16867328 INTERLACED:0 -> PTS:6581 T:219.366667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19741849 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19791000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6582 PTS:19746000 > T:658200.000000 POS:nan INTERLACED:0 -> PTS:6582 T:219.400000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6583 PTS:19749000 > T:658300.000000 POS:16869388 INTERLACED:0 -> PTS:6583 T:219.433333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6584 PTS:19752000 > T:658400.000000 POS:16873484 INTERLACED:0 -> PTS:6584 T:219.466667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6585 PTS:19755000 > T:658500.000000 POS:nan INTERLACED:0 -> PTS:6585 T:219.500000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6586 PTS:19758000 > T:658600.000000 POS:nan INTERLACED:0 -> PTS:6586 T:219.533333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19758306 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19806000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6587 PTS:19761000 > T:658700.000000 POS:16883712 INTERLACED:0 -> PTS:6587 T:219.566667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6588 PTS:19764000 > T:658800.000000 POS:16887808 INTERLACED:0 -> PTS:6588 T:219.600000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6589 PTS:19767000 > T:658900.000000 POS:16891916 INTERLACED:0 -> PTS:6589 T:219.633333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19815000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6590 PTS:19770000 > T:659000.000000 POS:nan INTERLACED:0 -> PTS:6590 T:219.666667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6591 PTS:19773000 > T:659100.000000 POS:16893964 INTERLACED:0 -> PTS:6591 T:219.700000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19821000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6592 PTS:19776000 > T:659200.000000 POS:16896012 INTERLACED:0 -> PTS:6592 T:219.733333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6593 PTS:19779000 > T:659300.000000 POS:nan INTERLACED:0 -> PTS:6593 T:219.766667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19772412 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19827000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6594 PTS:19782000 > T:659400.000000 POS:16898060 INTERLACED:0 -> PTS:6594 T:219.800000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6595 PTS:19785000 > T:659500.000000 POS:nan INTERLACED:0 -> PTS:6595 T:219.833333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6596 PTS:19788000 > T:659600.000000 POS:16902156 INTERLACED:0 -> PTS:6596 T:219.866667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19788869 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19836000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6597 PTS:19791000 > T:659700.000000 POS:nan INTERLACED:0 -> PTS:6597 T:219.900000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6598 PTS:19794000 > T:659800.000000 POS:16904204 INTERLACED:0 -> PTS:6598 T:219.933333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19842000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6599 PTS:19797000 > T:659900.000000 POS:16916480 INTERLACED:0 -> PTS:6599 T:219.966667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6600 PTS:19800000 > T:660000.000000 POS:nan INTERLACED:0 -> PTS:6600 T:220.000000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19848000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6601 PTS:19803000 > T:660100.000000 POS:16918540 INTERLACED:0 -> PTS:6601 T:220.033333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6602 PTS:19806000 > T:660200.000000 POS:nan INTERLACED:0 -> PTS:6602 T:220.066667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19802975 in the > queue > > Last message repeated 5 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6603 PTS:19809000 > T:660300.000000 POS:16920588 INTERLACED:0 -> PTS:6603 T:220.100000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19857000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6604 PTS:19812000 > T:660400.000000 POS:nan INTERLACED:0 -> PTS:6604 T:220.133333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6605 PTS:19815000 > T:660500.000000 POS:16924684 INTERLACED:0 -> PTS:6605 T:220.166667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6606 PTS:19818000 > T:660600.000000 POS:16926732 INTERLACED:0 -> PTS:6606 T:220.200000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19819433 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19866000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6607 PTS:19821000 > T:660700.000000 POS:nan INTERLACED:0 -> PTS:6607 T:220.233333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6608 PTS:19824000 > T:660800.000000 POS:16928780 INTERLACED:0 -> PTS:6608 T:220.266667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19872000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6609 PTS:19827000 > T:660900.000000 POS:16932876 INTERLACED:0 -> PTS:6609 T:220.300000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6610 PTS:19830000 > T:661000.000000 POS:nan INTERLACED:0 -> PTS:6610 T:220.333333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6611 PTS:19833000 > T:661100.000000 POS:16941056 INTERLACED:0 -> PTS:6611 T:220.366667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6612 PTS:19836000 > T:661200.000000 POS:nan INTERLACED:0 -> PTS:6612 T:220.400000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19833539 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19884000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6613 PTS:19839000 > T:661300.000000 POS:16943116 INTERLACED:0 -> PTS:6613 T:220.433333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6614 PTS:19842000 > T:661400.000000 POS:16945164 INTERLACED:0 -> PTS:6614 T:220.466667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6615 PTS:19845000 > T:661500.000000 POS:16949260 INTERLACED:0 -> PTS:6615 T:220.500000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19893000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6616 PTS:19848000 > T:661600.000000 POS:nan INTERLACED:0 -> PTS:6616 T:220.533333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6617 PTS:19851000 > T:661700.000000 POS:16951308 INTERLACED:0 -> PTS:6617 T:220.566667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19849996 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19899000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6618 PTS:19854000 > T:661800.000000 POS:16953356 INTERLACED:0 -> PTS:6618 T:220.600000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6619 PTS:19857000 > T:661900.000000 POS:nan INTERLACED:0 -> PTS:6619 T:220.633333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6620 PTS:19860000 > T:662000.000000 POS:16957452 INTERLACED:0 -> PTS:6620 T:220.666667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6621 PTS:19863000 > T:662100.000000 POS:nan INTERLACED:0 -> PTS:6621 T:220.700000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19864102 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19911000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6622 PTS:19866000 > T:662200.000000 POS:nan INTERLACED:0 -> PTS:6622 T:220.733333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6623 PTS:19869000 > T:662300.000000 POS:16963584 INTERLACED:0 -> PTS:6623 T:220.766667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19917000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6624 PTS:19872000 > T:662400.000000 POS:16967692 INTERLACED:0 -> PTS:6624 T:220.800000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6625 PTS:19875000 > T:662500.000000 POS:nan INTERLACED:0 -> PTS:6625 T:220.833333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6626 PTS:19878000 > T:662600.000000 POS:16969740 INTERLACED:0 -> PTS:6626 T:220.866667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19926000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6627 PTS:19881000 > T:662700.000000 POS:nan INTERLACED:0 -> PTS:6627 T:220.900000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6628 PTS:19884000 > T:662800.000000 POS:nan INTERLACED:0 -> PTS:6628 T:220.933333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19878208 in the > queue > > Last message repeated 5 times > > frame= 6629 fps=218 q=1.6 size= 16220kB time=00:03:40.90 bitrate= > 601.5kbits/sfirst_dts 42000 not matching first dts 19932000 in the queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6629 PTS:19887000 > T:662900.000000 POS:16971788 INTERLACED:0 -> PTS:6629 T:220.966667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6630 PTS:19890000 > T:663000.000000 POS:nan INTERLACED:0 -> PTS:6630 T:221.000000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19938000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6631 PTS:19893000 > T:663100.000000 POS:16975884 INTERLACED:0 -> PTS:6631 T:221.033333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6632 PTS:19896000 > T:663200.000000 POS:nan INTERLACED:0 -> PTS:6632 T:221.066667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19894665 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19944000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6633 PTS:19899000 > T:663300.000000 POS:16977932 INTERLACED:0 -> PTS:6633 T:221.100000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6634 PTS:19902000 > T:663400.000000 POS:nan INTERLACED:0 -> PTS:6634 T:221.133333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19950000 in the > queue > > Last message repeated 2 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6635 PTS:19905000 > T:663500.000000 POS:16984064 INTERLACED:0 -> PTS:6635 T:221.166667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6636 PTS:19908000 > T:663600.000000 POS:nan INTERLACED:0 -> PTS:6636 T:221.200000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6637 PTS:19911000 > T:663700.000000 POS:16986124 INTERLACED:0 -> PTS:6637 T:221.233333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6638 PTS:19914000 > T:663800.000000 POS:nan INTERLACED:0 -> PTS:6638 T:221.266667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19908771 in the > queue > > Last message repeated 5 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6639 PTS:19917000 > T:663900.000000 POS:nan INTERLACED:0 -> PTS:6639 T:221.300000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6640 PTS:19920000 > T:664000.000000 POS:nan INTERLACED:0 -> PTS:6640 T:221.333333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19968000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6641 PTS:19923000 > T:664100.000000 POS:16990220 INTERLACED:0 -> PTS:6641 T:221.366667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6642 PTS:19926000 > T:664200.000000 POS:16992268 INTERLACED:0 -> PTS:6642 T:221.400000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19925228 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19974000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6643 PTS:19929000 > T:664300.000000 POS:16994316 INTERLACED:0 -> PTS:6643 T:221.433333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6644 PTS:19932000 > T:664400.000000 POS:nan INTERLACED:0 -> PTS:6644 T:221.466667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19980000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6645 PTS:19935000 > T:664500.000000 POS:16998412 INTERLACED:0 -> PTS:6645 T:221.500000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6646 PTS:19938000 > T:664600.000000 POS:nan INTERLACED:0 -> PTS:6646 T:221.533333 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19986000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6647 PTS:19941000 > T:664700.000000 POS:17002496 INTERLACED:0 -> PTS:6647 T:221.566667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6648 PTS:19944000 > T:664800.000000 POS:nan INTERLACED:0 -> PTS:6648 T:221.600000 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19939335 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 19992000 in the > queue > > Last message repeated 1 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6649 PTS:19947000 > T:664900.000000 POS:17004556 INTERLACED:0 -> PTS:6649 T:221.633333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6650 PTS:19950000 > T:665000.000000 POS:nan INTERLACED:0 -> PTS:6650 T:221.666667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6651 PTS:19953000 > T:665100.000000 POS:17008652 INTERLACED:0 -> PTS:6651 T:221.700000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20001000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6652 PTS:19956000 > T:665200.000000 POS:nan INTERLACED:0 -> PTS:6652 T:221.733333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6653 PTS:19959000 > T:665300.000000 POS:nan INTERLACED:0 -> PTS:6653 T:221.766667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19955792 in the > queue > > Last message repeated 4 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6654 PTS:19962000 > T:665400.000000 POS:17010700 INTERLACED:0 -> PTS:6654 T:221.800000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20010000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6655 PTS:19965000 > T:665500.000000 POS:nan INTERLACED:0 -> PTS:6655 T:221.833333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6656 PTS:19968000 > T:665600.000000 POS:17014796 INTERLACED:0 -> PTS:6656 T:221.866667 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20016000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6657 PTS:19971000 > T:665700.000000 POS:17016844 INTERLACED:0 -> PTS:6657 T:221.900000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6658 PTS:19974000 > T:665800.000000 POS:nan INTERLACED:0 -> PTS:6658 T:221.933333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19969898 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20022000 in the > queue > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6659 PTS:19977000 > T:665900.000000 POS:17018892 INTERLACED:0 -> PTS:6659 T:221.966667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6660 PTS:19980000 > T:666000.000000 POS:nan INTERLACED:0 -> PTS:6660 T:222.000000 > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20028000 in the > queue > > Last message repeated 2 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6661 PTS:19983000 > T:666100.000000 POS:17022988 INTERLACED:0 -> PTS:6661 T:222.033333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6662 PTS:19986000 > T:666200.000000 POS:nan INTERLACED:0 -> PTS:6662 T:222.066667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6663 PTS:19989000 > T:666300.000000 POS:17025036 INTERLACED:0 -> PTS:6663 T:222.100000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6664 PTS:19992000 > T:666400.000000 POS:nan INTERLACED:0 -> PTS:6664 T:222.133333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 19986355 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20040000 in the > queue > > Last message repeated 2 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6665 PTS:19995000 > T:666500.000000 POS:nan INTERLACED:0 -> PTS:6665 T:222.166667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6666 PTS:19998000 > T:666600.000000 POS:nan INTERLACED:0 -> PTS:6666 T:222.200000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6667 PTS:20001000 > T:666700.000000 POS:17029132 INTERLACED:0 -> PTS:6667 T:222.233333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6668 PTS:20004000 > T:666800.000000 POS:nan INTERLACED:0 -> PTS:6668 T:222.266667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20000461 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20052000 in the > queue > > Last message repeated 10 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6669 PTS:20007000 > T:666900.000000 POS:nan INTERLACED:0 -> PTS:6669 T:222.300000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6670 PTS:20010000 > T:667000.000000 POS:nan INTERLACED:0 -> PTS:6670 T:222.333333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6671 PTS:20013000 > T:667100.000000 POS:17033228 INTERLACED:0 -> PTS:6671 T:222.366667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6672 PTS:20016000 > T:667200.000000 POS:nan INTERLACED:0 -> PTS:6672 T:222.400000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6673 PTS:20019000 > T:667300.000000 POS:nan INTERLACED:0 -> PTS:6673 T:222.433333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6674 PTS:20022000 > T:667400.000000 POS:nan INTERLACED:0 -> PTS:6674 T:222.466667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6675 PTS:20025000 > T:667500.000000 POS:nan INTERLACED:0 -> PTS:6675 T:222.500000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6676 PTS:20028000 > T:667600.000000 POS:nan INTERLACED:0 -> PTS:6676 T:222.533333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6677 PTS:20031000 > T:667700.000000 POS:nan INTERLACED:0 -> PTS:6677 T:222.566667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6678 PTS:20034000 > T:667800.000000 POS:nan INTERLACED:0 -> PTS:6678 T:222.600000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6679 PTS:20037000 > T:667900.000000 POS:nan INTERLACED:0 -> PTS:6679 T:222.633333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6680 PTS:20040000 > T:668000.000000 POS:nan INTERLACED:0 -> PTS:6680 T:222.666667 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20016918 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20031024 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20088000 in the > queue > > Last message repeated 21 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6681 PTS:20043000 > T:668100.000000 POS:nan INTERLACED:0 -> PTS:6681 T:222.700000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6682 PTS:20046000 > T:668200.000000 POS:nan INTERLACED:0 -> PTS:6682 T:222.733333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6683 PTS:20049000 > T:668300.000000 POS:17039372 INTERLACED:0 -> PTS:6683 T:222.766667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6684 PTS:20052000 > T:668400.000000 POS:nan INTERLACED:0 -> PTS:6684 T:222.800000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6685 PTS:20055000 > T:668500.000000 POS:nan INTERLACED:0 -> PTS:6685 T:222.833333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6686 PTS:20058000 > T:668600.000000 POS:nan INTERLACED:0 -> PTS:6686 T:222.866667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6687 PTS:20061000 > T:668700.000000 POS:nan INTERLACED:0 -> PTS:6687 T:222.900000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6688 PTS:20064000 > T:668800.000000 POS:nan INTERLACED:0 -> PTS:6688 T:222.933333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6689 PTS:20067000 > T:668900.000000 POS:nan INTERLACED:0 -> PTS:6689 T:222.966667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6690 PTS:20070000 > T:669000.000000 POS:nan INTERLACED:0 -> PTS:6690 T:223.000000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6691 PTS:20073000 > T:669100.000000 POS:nan INTERLACED:0 -> PTS:6691 T:223.033333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6692 PTS:20076000 > T:669200.000000 POS:nan INTERLACED:0 -> PTS:6692 T:223.066667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6693 PTS:20079000 > T:669300.000000 POS:nan INTERLACED:0 -> PTS:6693 T:223.100000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6694 PTS:20082000 > T:669400.000000 POS:nan INTERLACED:0 -> PTS:6694 T:223.133333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6695 PTS:20085000 > T:669500.000000 POS:nan INTERLACED:0 -> PTS:6695 T:223.166667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6696 PTS:20088000 > T:669600.000000 POS:nan INTERLACED:0 -> PTS:6696 T:223.200000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6697 PTS:20091000 > T:669700.000000 POS:nan INTERLACED:0 -> PTS:6697 T:223.233333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6698 PTS:20094000 > T:669800.000000 POS:nan INTERLACED:0 -> PTS:6698 T:223.266667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6699 PTS:20097000 > T:669900.000000 POS:nan INTERLACED:0 -> PTS:6699 T:223.300000 > > frame= 6700 fps=217 q=2.0 size= 16268kB time=00:03:43.26 bitrate= > 596.9kbits/sN:6700 PTS:20100000 T:670000.000000 POS:nan INTERLACED:0 -> > PTS:6700 T:223.333333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6701 PTS:20103000 > T:670100.000000 POS:nan INTERLACED:0 -> PTS:6701 T:223.366667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6702 PTS:20106000 > T:670200.000000 POS:nan INTERLACED:0 -> PTS:6702 T:223.400000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6703 PTS:20109000 > T:670300.000000 POS:nan INTERLACED:0 -> PTS:6703 T:223.433333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20047482 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20061588 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20075694 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20092151 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20106257 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 42000 not matching first dts 20157000 in the > queue > > Last message repeated 4 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6704 PTS:20112000 > T:670400.000000 POS:nan INTERLACED:0 -> PTS:6704 T:223.466667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6705 PTS:20115000 > T:670500.000000 POS:nan INTERLACED:0 -> PTS:6705 T:223.500000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6706 PTS:20118000 > T:670600.000000 POS:17051660 INTERLACED:0 -> PTS:6706 T:223.533333 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6707 PTS:20121000 > T:670700.000000 POS:nan INTERLACED:0 -> PTS:6707 T:223.566667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6708 PTS:20124000 > T:670800.000000 POS:nan INTERLACED:0 -> PTS:6708 T:223.600000 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6709 PTS:20127000 > T:670900.000000 POS:nan INTERLACED:0 -> PTS:6709 T:223.633333 > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20122714 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20136820 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20153277 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20167384 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20183841 in the > queue > > Last message repeated 4 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20197947 in the > queue > > Last message repeated 5 times > > [mpeg @ 0x948dc80] first_dts 45000 not matching first dts 20214404 in the > queue > > Last message repeated 4 times > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6710 PTS:20130000 > T:671000.000000 POS:nan INTERLACED:0 -> PTS:6710 T:223.666667 > > [force CFR for input from stream 0:0 @ 0x9532a40] N:6711 PTS:20133000 > T:671100.000000 POS:nan INTERLACED:0 -> PTS:6711 T:223.700000 > > [output stream 0:1 @ 0x9547c80] EOF on sink link output stream 0:1:default. > > No more output streams to write to, finishing. > > > > *Sever config file is as follows* > > tPort port no > > rt 21090 > > BindAddress 0.0.0.0 > > MaxHTTPConnections 2000 > > MaxClients 1000 > > MaxBandwidth 10000 > > CustomLog - > > #NoDaemon > > RTSPPort port no > > > > File /tmp/test.ffm > > FileMaxSize 200M > > #ACL allow 127.0.0.1 > > > > > > Format mpeg > > #rtp > > Feed test.ffm > > VideoCodec mpeg2video > > # this must match the ffmpeg -r argument > > VideoFrameRate 30 > > # generally leave this is a large number > > #VideoBufferSize 1000 > > #80000 > > VideoGopSize 10 > > # another quality tweak > > VideoBitRate 512 > > # quality ranges - 1-31 (1 = best, 31 = worst) > > #VideoQMin 1 > > #VideoQMax 5 > > #VideoSize 320x240 > > #160x128 > > # this sets how many seconds in past to start > > Preroll 30 > > # wecams don't have audio > > #VideoIntraOnly > > #Strict -1 > > #Noaudio > > > From jayu_magadum at yahoo.com Mon Jul 14 14:57:55 2014 From: jayu_magadum at yahoo.com (jayu_magadum) Date: Mon, 14 Jul 2014 05:57:55 -0700 (PDT) Subject: [FFmpeg-user] FFMPEG generated live content not working with iPhone 4, need help Message-ID: <1405342675424-4666336.post@n4.nabble.com> Hi FFMPEG generated live content not working with iPhone 4,but plays with VLC player.Can you please help? I used the following command: ffmpeg -re -i input.mp4 -map 0 -f segment -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 -segment_list_size 3 out%02d.ts, I am able to play this realtime session with VLC player, not able to play with iPhone4-using safari.Also not able to play with android device- checked in Nexus 10).Please let me know command to be used,as I need to test live scenario in device. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-generated-live-content-not-working-with-iPhone-4-need-help-tp4666336.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rajathkumarmp1995 at gmail.com Mon Jul 14 17:07:58 2014 From: rajathkumarmp1995 at gmail.com (Rajath Kumar M.P) Date: Mon, 14 Jul 2014 20:37:58 +0530 Subject: [FFmpeg-user] trouble updating ffmpeg Message-ID: i installed ffmpeg through svn recently. followed this blog http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html but realised its 2011 version. but i can?t uninstall it. i installed ffmpeg through git and macports(the latest version).both got installed but when i run the command $ ffmpeg it still shows 2011 version.(the svn version that i downloaded runs) i am clueless. would be great if someone could help me out here. question at stack overflow http://stackoverflow.com/questions/24738874/trouble-trying-to-update-ffmpeg really appreciate if u could help me out here. From ffmpeg-user at c-14.de Mon Jul 14 19:21:57 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Mon, 14 Jul 2014 19:21:57 +0200 Subject: [FFmpeg-user] trouble updating ffmpeg In-Reply-To: References: Message-ID: <20140714172157.GA1993@anonymous> On 14/07/14 at 20:37, Rajath Kumar M.P wrote: > i installed ffmpeg through svn recently. > > followed this blog http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html > > but i can?t uninstall it. If you still have the directory you compiled ffmpeg in, try `make uninstall' > i installed ffmpeg through git and macports(the latest version).both got installed > but when i run the command $ ffmpeg it still shows 2011 version.(the svn version that i downloaded runs) You can try finding all the files that the old ffmpeg installed and manually removing them. And next time you might want to use the guide on the FFmpeg website: https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX -- Simon Thelen From zdziarze at cs.tcd.ie Mon Jul 14 19:40:19 2014 From: zdziarze at cs.tcd.ie (Zbigniew Zdziarski) Date: Mon, 14 Jul 2014 18:40:19 +0100 Subject: [FFmpeg-user] =?utf-8?q?Bug_in_I-Frame_Retrieval=3F?= In-Reply-To: <75367e75fb3711268b6e47e5345313dc@scss.tcd.ie> References: <75367e75fb3711268b6e47e5345313dc@scss.tcd.ie> Message-ID: On 14-07-2014 14:29, Zbigniew Zdziarski wrote: > Hello, > > I'm trying to extract I frames from mpeg files but I've noticed > something weird happening. The frames that are saved in my folder by > ffmpeg do not match the frames marked as I frames either by ffprobe > or > ffmpeg with parameter "-loglevel debug". > > The command I'm using is the following: > > ffmpeg -i C:\vid1.mp4 -vf select='eq(pict_type\,I)' -vsync 0 > C:\%03d.jpg -loglevel debug 2> vid1.txt > > For some videos, the first few frames saved are correct. For some > videos, all but the first frame are incorrectly saved. > > Is my command incorrect or is there a bug??? > > Cheers, > Zig > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user I did some more digging around and found that this problem doesn't occur for all videos. E.g. the last 2 frames saved by the command above for the following video are different to those marked as being I-frames: https://www.scss.tcd.ie/~zdziarze/vid1.mp4 But all works fine for this video: https://www.scss.tcd.ie/~zdziarze/vid6.mp4 Cheers, Zig From jazzman at misalpina.net Mon Jul 14 22:03:00 2014 From: jazzman at misalpina.net (Claudiu Rad-Lohanel) Date: Mon, 14 Jul 2014 23:03:00 +0300 Subject: [FFmpeg-user] copy input i-frames structure to output In-Reply-To: <53C43539.3070004@misalpina.net> References: <53C43539.3070004@misalpina.net> Message-ID: <53C43774.9050104@misalpina.net> hello, i need to do transcoding of an mp4 video and i want to keep the i-frame structure the same as in the original video. i've searched info on this but couldn't find out if it is even possible with ffmpeg although my wild guess is that it should be. furthermore, to complicate things, ffmpeg should be just a simple box in a processing chain and pre-scanning the input is not acceptable. basically, i would like to somehow tell ffmpeg during encoding that for each video frame that it encodes, first check if it was a keyframe in the original video. if yes, make it also in the output, if no, don't do it. any ideas? thanks! -- jazzman -------------- next part -------------- A non-text attachment was scrubbed... Name: jazzman.vcf Type: text/x-vcard Size: 274 bytes Desc: not available URL: From joakim at terminalmx.com Mon Jul 14 22:41:15 2014 From: joakim at terminalmx.com (JoakimZiegler) Date: Mon, 14 Jul 2014 13:41:15 -0700 (PDT) Subject: [FFmpeg-user] Changing the Quicktime "Format" visible in Quicktime Player Message-ID: <1405370475212-4666345.post@n4.nabble.com> Hello, I'm using FFMpeg and x264 to code h.264 quicktime files from ProRes originals, for users who mostly use QuickTime Player on MacOS. This works pretty great, and the quality is much better than what I get using Apple's own h.264 codec. However, when I open these QuickTime files in QuickTime player, and press command-I to get the info window, "Format" shows up as "libx264, 1920x1080, Millions..." etc., while, if I do the same thing with a file coded with Apple's h.264 codec, I get "H.264, 1920x1080, Millions", etc. While this is a small niggle, I'm wondering if it's possible to fix, so that people can't see what codec I'm using, and the files look like they've been generated with Apple's codec? -- Joakim Ziegler - Supervisor de postproducci?n - Terminal joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Changing-the-Quicktime-Format-visible-in-Quicktime-Player-tp4666345.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From n2v2rda2 at naver.com Tue Jul 15 07:04:21 2014 From: n2v2rda2 at naver.com (bubibabubi) Date: Mon, 14 Jul 2014 22:04:21 -0700 (PDT) Subject: [FFmpeg-user] what's wrong with me ? Message-ID: <1405400661493-4666346.post@n4.nabble.com> http://stackoverflow.com/questions/24604689/how-to-join-two-image-to-one-by-ffmpeg i recently post my ffmpeg problem to sof ?lvaro tell me how to images put togather with tile using some-file.mp4 is successful with tile but when i use 2 image, i have still problem i can't see second input image in output.jpeg with tile just black image below is my test batch and output image ffmpeg.exe -i b.jpg -i a.jpg -filter_complex scale=120:-1,tile=2x1 -s 1920x1080 out.jpeg -y what's wrong with me ? plz warm answer -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/what-s-wrong-with-me-tp4666346.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lihuicau at gmail.com Tue Jul 15 09:58:15 2014 From: lihuicau at gmail.com (Li Hui) Date: Tue, 15 Jul 2014 15:58:15 +0800 Subject: [FFmpeg-user] x11-grab error : Segmentation fault (core dumped) Message-ID: <4D54C671-A260-42AE-BF9D-726537978EA4@gmail.com> I can use x11-grab to capture vnc screen with depth 16bit correctly. But with depth 24 or 32bit, it doesn?t work. I use this command: ffmpeg -f x11grab -video_size 1280x720 -framerate 25 -i :5 /tmp/out.yuv than, display this error: ffmpeg version N-64657-g2d91b3b Copyright (c) 2000-2014 the FFmpeg developers built on Jul 15 2014 03:18:27 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 46.100 / 55. 46.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [x11grab @ 0xe8cd00] device: :5 -> display: :5 x: 0 y: 0 width: 1280 height: 720 [x11grab @ 0xe8cd00] shared memory extension found Segmentation fault (core dumped) The display info as below: xdpyinfo -display :5 name of display: :5 version number: 11.0 vendor string: The XFree86 Project, Inc vendor release number: 40300000 XFree86 version: 4.3.0 maximum request size: 4194300 bytes motion buffer size: 256 bitmap unit, bit order, padding: 32, LSBFirst, 32 image byte order: LSBFirst number of supported pixmap formats: 2 supported pixmap formats: depth 1, bits_per_pixel 1, scanline_pad 32 depth 32, bits_per_pixel 32, scanline_pad 32 keycode range: minimum 8, maximum 255 focus: window 0x40000e, revert to PointerRoot number of extensions: 24 BIG-REQUESTS DEC-XTRAP DOUBLE-BUFFER Extended-Visual-Information FontCache GLX LBX MIT-SCREEN-SAVER MIT-SHM MIT-SUNDRY-NONSTANDARD RANDR RECORD SECURITY SGI-GLX SHAPE SYNC TOG-CUP VNC-EXTENSION X-Resource XC-APPGROUP XC-MISC XFree86-Bigfont XTEST XVideo default screen number: 0 number of screens: 1 screen #0: dimensions: 1280x720 pixels (325x183 millimeters) resolution: 100x100 dots per inch depths (2): 1, 32 root window id: 0x2e depth of root window: 32 planes number of colormaps: minimum 1, maximum 1 default colormap: 0x21 default number of colormap cells: 2048 preallocated pixels: black 0, white 4282370040 options: backing-store YES, save-unders YES largest cursor: 1280x720 current input event mask: 0xfa8033 KeyPressMask KeyReleaseMask EnterWindowMask LeaveWindowMask ExposureMask StructureNotifyMask SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask PropertyChangeMask ColormapChangeMask number of visuals: 8 default visual id: 0x24 visual: visual id: 0x24 class: TrueColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x25 class: TrueColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x26 class: TrueColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x27 class: TrueColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x28 class: DirectColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x29 class: DirectColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x2a class: DirectColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits visual: visual id: 0x2b class: DirectColor depth: 32 planes available colormap entries: 2048 per subfield red, green, blue masks: 0x7ff, 0x3ff800, 0xffc00000 significant bits in color specification: 8 bits Thank you. Best Regard! Li Hui From orest at webmedia.al Tue Jul 15 10:00:59 2014 From: orest at webmedia.al (Orest Hasa) Date: Tue, 15 Jul 2014 10:00:59 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website Message-ID: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> Hello, I installed the ffmpeg with the help of the following tutorial: http://trac.ffmpeg.org/wiki/CompilationGuide/Centos Now that compile proces is done what else should I do, so we can integrate the ffmpeg withing a video site. Do I need to install ffmpeg-php, if yes can you please send me a tutorial our server is centos 6.5. Thanks in advance, Orest From george at nsup.org Tue Jul 15 11:12:48 2014 From: george at nsup.org (Nicolas George) Date: Tue, 15 Jul 2014 11:12:48 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] x11-grab error : Segmentation fault (core dumped) In-Reply-To: <4D54C671-A260-42AE-BF9D-726537978EA4@gmail.com> References: <4D54C671-A260-42AE-BF9D-726537978EA4@gmail.com> Message-ID: <20140715091248.GA18007@phare.normalesup.org> Le septidi 27 messidor, an CCXXII, Li Hui a ?crit?: > I can use x11-grab to capture vnc screen with depth 16bit correctly. But with depth 24 or 32bit, it doesn?t work. > > I use this command: > ffmpeg -f x11grab -video_size 1280x720 -framerate 25 -i :5 /tmp/out.yuv > than, display this error: > ffmpeg version N-64657-g2d91b3b Copyright (c) 2000-2014 the FFmpeg developers ^^^^^^^ I can not find a commit with shorthash 2d91b3b in the current Git tree. Can you explain how you got your source tree exactly? An excerpt of "git log" would probably help. > [x11grab @ 0xe8cd00] device: :5 -> display: :5 x: 0 y: 0 width: 1280 height: 720 > [x11grab @ 0xe8cd00] shared memory extension found > Segmentation fault (core dumped) > > The display info as below: > xdpyinfo -display :5 > screen #0: > dimensions: 1280x720 pixels (325x183 millimeters) > resolution: 100x100 dots per inch > depths (2): 1, 32 Can you explain how you arrived to that configuration? I tried with my current X11 server (Intel HD), which has this: "depths (7): 24, 1, 4, 8, 15, 16, 32", and it works. Also, please remember to send bug-reports to the users' mailing-list unless you have a patch to fix them. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From bumblebritches57 at gmail.com Tue Jul 15 12:02:57 2014 From: bumblebritches57 at gmail.com (Marcus Johnson) Date: Tue, 15 Jul 2014 06:02:57 -0400 Subject: [FFmpeg-user] Changing the Quicktime "Format" visible in Quicktime Player In-Reply-To: <1405370475212-4666345.post@n4.nabble.com> References: <1405370475212-4666345.post@n4.nabble.com> Message-ID: That's just a metadata field, he name changes depending on the codec and I don't happen to know what MOV's file structure calls it, but you could easily have your program change it to H.264 after the file has been written but before closing it, if you wanted to. Btw, it's usually called Encoder, or tool, something like that for you to find out more about. btw I highly doubt the ffmpeg devs will change their code, because a lot more people rely on the version info contained there to know about certain bugs, and encoding issues that may be present in that copy of x264, so they won't change their code. On Mon, Jul 14, 2014 at 4:41 PM, JoakimZiegler wrote: > Hello, I'm using FFMpeg and x264 to code h.264 quicktime files from ProRes > originals, for users who mostly use QuickTime Player on MacOS. > > This works pretty great, and the quality is much better than what I get > using Apple's own h.264 codec. > > However, when I open these QuickTime files in QuickTime player, and press > command-I to get the info window, "Format" shows up as "libx264, 1920x1080, > Millions..." etc., while, if I do the same thing with a file coded with > Apple's h.264 codec, I get "H.264, 1920x1080, Millions", etc. > > While this is a small niggle, I'm wondering if it's possible to fix, so > that > people can't see what codec I'm using, and the files look like they've been > generated with Apple's codec? > > -- > Joakim Ziegler - Supervisor de postproducci?n - Terminal > joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 > > > > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/Changing-the-Quicktime-Format-visible-in-Quicktime-Player-tp4666345.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 > -- Rev. Marcus Johnson Ordained Dudeist Priest at Dudeism, the Church of the Latter-Day Dude From jeetbhatnagar.8941 at gmail.com Tue Jul 15 13:21:38 2014 From: jeetbhatnagar.8941 at gmail.com (Jeet Bhatnagar) Date: Tue, 15 Jul 2014 16:51:38 +0530 Subject: [FFmpeg-user] Change value of IOBUFFER_INIT_SIZE macro Message-ID: Hi Can we change the value of IOBUFFER_INIT_SIZE in ffserver.c line no 112?The reason i want to change the size is because i think this is the bufer size alloted to stream while streaming,as a result of which my stream always start from the first frame.while my objective is to view a live stream. Why is value 8192 is assigned to it?Any specific reasons? From barsnick at gmx.net Tue Jul 15 14:16:33 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 15 Jul 2014 14:16:33 +0200 Subject: [FFmpeg-user] what's wrong with me ? In-Reply-To: <1405400661493-4666346.post@n4.nabble.com> References: <1405400661493-4666346.post@n4.nabble.com> Message-ID: <20140715121633.GE8922@sunshine.barsnick.net> Hi bubibabubi, On Mon, Jul 14, 2014 at 22:04:21 -0700, bubibabubi wrote: > http://stackoverflow.com/questions/24604689/how-to-join-two-image-to-one-by-ffmpeg [...] > ffmpeg.exe -i b.jpg -i a.jpg -filter_complex scale=120:-1,tile=2x1 -s 1920x1080 out.jpeg -y That answer on stackoverflow is totally incorrect. The tile filter takes (two) _consecutive_ frames from _one_ stream. This command is trying to apply it to two streams. (Well, sort of.) Using the concat filter, you could make one stream out of your two images: ffmpeg -i b.jpg -i a.jpg -filter_complex 'concat,tile=2x1' -s 1920x1080 out.jpeg -y or better ffmpeg -i b.jpg -i a.jpg -filter_complex 'concat,tile=2x1,scale=1920x1080' out.jpeg -y The originally given scale=120:-1 is for making the inputs have the same size, which is important for the concat filter, but doesn't work inside a filter_complex. So using this method with differently sized images, you will need more magic to make them the same size. Assuming everything is fine and you don't want to scale your output, the basic answer according to your question is: ffmpeg -i a.jpg -i b.jpg -filter_complex 'concat,tile=2x1' c.jpg ?lvaro's second response is totally different, and makes the inputs into a single "image2" stream, which is also a viable solution. I think s/he doesn't quite understand the details of ffmpeg though. Another solution is to use the overlay filter with multiple inputs, as outlined here: https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos which would turn out somewhat like this for you: ffmpeg -i a.jpg -i b.jpg -filter_complex '[0]scale=1920:1080[sc0];[1]scale=1920:1080[sc1];[sc0]pad=iw*2:ih[pad];[pad][sc1]overlay=w' c.jpg Have fun, Moritz From natural_groove at hotmail.fr Tue Jul 15 15:01:11 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Tue, 15 Jul 2014 06:01:11 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: <1405429271372-4666354.post@n4.nabble.com> Using the current version of ffmpeg now, removed the depends and libs (i found out gpl is needed x11grab) I tried to things: *First* removing the do_ configure SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2" SRC_URI[md5sum] = "7ebd50489b9f32de95c17661501e5635" SRC_URI[sha256sum] = "ece005308e11de84dba1de7a202ffe7c05320cddaa59a968cbe3da86010e9039" inherit autotools pkgconfig S="${WORKDIR}/ffmpeg" CROSS_COMPILE = "/home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-" EXTRA_OECONF = "--arch=arm --enable-cross-compile --cross-prefix=${CROSS_COMPILE} --target-os=linux --enable-gpl --enable-x11grab --enable-libtheora --enable-libvorbis --enable-shared --enable-pic" When doing so, i get error : ./configure: /tmp/ffconf.XXNQGlls.sh: /bin/sh: bad interpreter: Permission denied | Sanity test failed. | ERROR: oe_runconf failed | ERROR: Function failed: do_configure *Second one*, same but with : do_configure() { ./configure ${EXTRA_OECONF} } no errors, but ffplay is not built (only ffmeg ffprobe and ffserver) what am i doing wrong here? Ricko -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666354.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From krueger at lesspain.de Tue Jul 15 17:09:32 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 15 Jul 2014 17:09:32 +0200 Subject: [FFmpeg-user] ffprobe duration analysis and -analyzeduration and -probesize Message-ID: Hi, I am trying to get ffprobe to correctly extract durations from some MTS files. My understanding is that the transport stream format does not provide a cheap way to obtain the duration but one has to parse each packet from start to end to reliably get the duration. Since ffmpeg and ffprobe only do that by default to a certain extend they have to "guess" (no idea how that is implemented for ts atm) the correct duration. Now the command line options -analyzeduration and -probesize exist and so I naively thought, if I just specified them large enough so the entire file is parsed, durations must be exact but that does not seem to be the case (I compared the values to the ones obtained by adding up all packet durations of a given stream and those make more sense). Where is my mistake? Command line and uncut output below: ffprobe -analyzeduration 1000000000 -probesize 1000000000 -i ~/samples/cameras/canon/hf_100/canon_hf_100_fxp_1080_25i_10s.MTS -show_streams -select_streams v:0 ffprobe version git-2014-07-11-96a860a Copyright (c) 2007-2014 the FFmpeg developers built on Jul 11 2014 16:33:17 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --enable-shared --disable-static --disable-doc --disable-avdevice --prefix=/Users/admin/repos/de.lesspain/de.lesspain.ffmpeg/ffmpeg/build/ffmpeg --extra-cflags=-I/Users/admin/repos/de.lesspain/de.lesspain.ffmpeg/ffmpeg/build/libmp3lame/include/ --extra-ldflags=-L/Users/admin/repos/de.lesspain/de.lesspain.ffmpeg/ffmpeg/build/libmp3lame/lib/ --extra-ldflags='-Wl,-rpath, at loader_path/../lib' --enable-libmp3lame libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 Input #0, mpegts, from '/Users/krueger/samples/cameras/canon/hf_100/canon_hf_100_fxp_1080_25i_10s.MTS': Duration: 00:00:10.56, start: 0.860000, bitrate: 16346 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=High codec_type=video codec_time_base=1/50 codec_tag_string=HDMV codec_tag=0x564d4448 width=1920 height=1080 has_b_frames=1 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuv420p level=40 color_range=N/A color_space=unknown timecode=N/A id=0x1011 r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/90000 start_pts=84600 start_time=0.940000 duration_ts=939600 duration=10.440000 bit_rate=N/A max_bit_rate=N/A nb_frames=N/A nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 [/STREAM] Best regards, Robert From natural_groove at hotmail.fr Tue Jul 15 17:25:37 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Tue, 15 Jul 2014 08:25:37 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: <1405429271372-4666354.post@n4.nabble.com> References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> Message-ID: <1405437937970-4666356.post@n4.nabble.com> EDIT: trying with ffmpeg-2.2.5 gives me the same error than before : Unknown option "--build=i686-linux" with no do_configure() -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666356.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From barsnick at gmx.net Tue Jul 15 18:54:19 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 15 Jul 2014 18:54:19 +0200 Subject: [FFmpeg-user] ffprobe duration analysis and -analyzeduration and -probesize In-Reply-To: References: Message-ID: <20140715165419.GG8922@sunshine.barsnick.net> Hi Robert, On Tue, Jul 15, 2014 at 17:09:32 +0200, Robert Kr?ger wrote: > Now the command line options -analyzeduration and > -probesize exist and so I naively thought, if I just specified them > large enough so the entire file is parsed, durations must be exact > but that does not seem to be the case (I compared the values to the > ones obtained by adding up all packet durations of a given stream and > those make more sense). > > Where is my mistake? I'm guessing here, as I don't know how the duration is determined for this specific type of container and codec. But I assume that those two options don't change the way it's determined, they only change two parameters. So if ffmpeg happens to do something like checking file headers or estimating from the initial frame and bit rates, this may not change. If you're going to have ffmpeg analyze the whole file anyway, there are several other ways to do this: * Have ffprobe output data for each and every frame, and then count those frames. * Have ffmpeg operate on the complete file, and grab its results: $ ffmpeg -i VTS_03_1.VOB -an -sn -f null - [...] Input #0, mpeg, from 'VTS_03_1.VOB': Duration: 00:00:31.55, start: 0.280000, bitrate: 8357 kb/s [...] frame= 791 fps=352 q=0.0 Lsize=N/A time=00:00:31.64 bitrate=N/A (I think I have seen a solution on this list to parse the latter.) Note the final "frame=" output. I don't know whether adding "-c copy", which is noticably faster, always definitely produces the same results. Moritz From joakim at terminalmx.com Tue Jul 15 21:04:07 2014 From: joakim at terminalmx.com (Joakim Ziegler) Date: Tue, 15 Jul 2014 14:04:07 -0500 Subject: [FFmpeg-user] Changing the Quicktime "Format" visible in Quicktime Player In-Reply-To: References: <1405370475212-4666345.post@n4.nabble.com> Message-ID: <53C57B27.3050501@terminalmx.com> Yes, I don't really want to change the default behaviour, I'm just wondering how I can pass an option to ffmpeg to change it to an arbitrary string, if that's possible at all. I guess I could grope around in the file afterwards myself, but it'd be handy to have this option in ffmpeg. -- Joakim Ziegler - Supervisor de postproducci?n - Terminal joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 On 15/07/14, 5:02, Marcus Johnson wrote: > That's just a metadata field, he name changes depending on the codec and I > don't happen to know what MOV's file structure calls it, but you could > easily have your program change it to H.264 after the file has been written > but before closing it, if you wanted to. > > Btw, it's usually called Encoder, or tool, something like that for you to > find out more about. > > btw I highly doubt the ffmpeg devs will change their code, because a lot > more people rely on the version info contained there to know about certain > bugs, and encoding issues that may be present in that copy of x264, so they > won't change their code. > > > On Mon, Jul 14, 2014 at 4:41 PM, JoakimZiegler > wrote: > >> Hello, I'm using FFMpeg and x264 to code h.264 quicktime files from ProRes >> originals, for users who mostly use QuickTime Player on MacOS. >> >> This works pretty great, and the quality is much better than what I get >> using Apple's own h.264 codec. >> >> However, when I open these QuickTime files in QuickTime player, and press >> command-I to get the info window, "Format" shows up as "libx264, 1920x1080, >> Millions..." etc., while, if I do the same thing with a file coded with >> Apple's h.264 codec, I get "H.264, 1920x1080, Millions", etc. >> >> While this is a small niggle, I'm wondering if it's possible to fix, so >> that >> people can't see what codec I'm using, and the files look like they've been >> generated with Apple's codec? >> >> -- >> Joakim Ziegler - Supervisor de postproducci?n - Terminal >> joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 >> >> >> >> -- >> View this message in context: >> http://ffmpeg-users.933282.n4.nabble.com/Changing-the-Quicktime-Format-visible-in-Quicktime-Player-tp4666345.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 krueger at lesspain.de Tue Jul 15 21:46:12 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 15 Jul 2014 21:46:12 +0200 Subject: [FFmpeg-user] ffprobe duration analysis and -analyzeduration and -probesize In-Reply-To: <20140715165419.GG8922@sunshine.barsnick.net> References: <20140715165419.GG8922@sunshine.barsnick.net> Message-ID: Hi, thanks for the quick response. On Tue, Jul 15, 2014 at 6:54 PM, Moritz Barsnick wrote: > Hi Robert, > > On Tue, Jul 15, 2014 at 17:09:32 +0200, Robert Kr?ger wrote: > >> Now the command line options -analyzeduration and >> -probesize exist and so I naively thought, if I just specified them >> large enough so the entire file is parsed, durations must be exact >> but that does not seem to be the case (I compared the values to the >> ones obtained by adding up all packet durations of a given stream and >> those make more sense). >> >> Where is my mistake? > > I'm guessing here, as I don't know how the duration is determined for > this specific type of container and codec. But I assume that those two > options don't change the way it's determined, they only change two > parameters. So if ffmpeg happens to do something like checking file > headers or estimating from the initial frame and bit rates, this may > not change. If someone could confirm this, this would answer my question. > > If you're going to have ffmpeg analyze the whole file anyway, there are > several other ways to do this: > * Have ffprobe output data for each and every frame, and then count > those frames. I know that alternative and I have a solution doing that via API up and running. I was just looking for a way to simply make ffmpeg (or rather the api) do that automatically for me to avoid that but if there is no other way, I will live with that. > > * Have ffmpeg operate on the complete file, and grab its results: > $ ffmpeg -i VTS_03_1.VOB -an -sn -f null - > [...] > Input #0, mpeg, from 'VTS_03_1.VOB': > Duration: 00:00:31.55, start: 0.280000, bitrate: 8357 kb/s > [...] > frame= 791 fps=352 q=0.0 Lsize=N/A time=00:00:31.64 bitrate=N/A > > (I think I have seen a solution on this list to parse the latter.) > > Note the final "frame=" output. I don't know whether adding "-c > copy", which is noticably faster, always definitely produces the same > results. Since the output of this is not really "api", the ffprobe variant would be safer but everyone has to make their own call regarding the risk of having this text output change from one version to another. Cheers, Robert -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From cehoyos at ag.or.at Tue Jul 15 23:41:48 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 15 Jul 2014 21:41:48 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > Using the current version of ffmpeg now, removed the > depends and libs (i found out gpl is needed x11grab) (You didn't enable x11grab in your original report iirc.) [...] > no errors, but ffplay is not built Please post the content of config.log starting with "check_pkg_config sdl" until "check_header linux" or "check_header sys" again, this time for the current version. And perhaps the console output of configure. Carl Eugen From n2v2rda2 at naver.com Wed Jul 16 02:45:47 2014 From: n2v2rda2 at naver.com (bubibabubi) Date: Tue, 15 Jul 2014 17:45:47 -0700 (PDT) Subject: [FFmpeg-user] what's wrong with me ? In-Reply-To: <20140715121633.GE8922@sunshine.barsnick.net> References: <1405400661493-4666346.post@n4.nabble.com> <20140715121633.GE8922@sunshine.barsnick.net> Message-ID: <1405471547642-4666361.post@n4.nabble.com> wow it is working, i now my problem is gone i can't find the words to thank you -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/what-s-wrong-with-me-tp4666346p4666361.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From l1 at newanswertech.com Wed Jul 16 07:44:42 2014 From: l1 at newanswertech.com (Luke Davis) Date: Wed, 16 Jul 2014 01:44:42 -0400 (EDT) Subject: [FFmpeg-user] -preset help: error in wiki? Message-ID: On the page: https://trac.ffmpeg.org/wiki/Encode/H.264 It states: You can see a list of current presets with -preset help, and what settings they apply with x264 --fullhelp. I get "trailing options were found on the commandline", with 2.2 compiled today, if I use "ffmpeg -preset help". I have tried in several ways, the most recent being: ffmpeg -i testvid.mov -c:v libx264 -preset help -crf 22 -c:a copy testvid.mkv ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 16 2014 04:36:22 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 47.100 / 55. 47.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testvid.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2009-05-21 19:52:28 timecode : 11:37:10:06 Duration: 00:00:12.55, start: 0.000000, bitrate: 40045 kb/s Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le, 1920x1080, 39274 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 2997 tbc (default) Metadata: creation_time : 2009-05-21 19:52:28 handler_name : Apple Video Media Handler encoder : Apple ProRes 422 (XS) Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s (default) Metadata: creation_time : 2009-05-21 19:52:30 handler_name : Apple Sound Media Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2009-05-21 19:53:07 handler_name : Time Code Media Handler timecode : 11:37:10:06 Stream #0:0(eng): Video: h264, q=2-31, 128 kb/s, 23.98 fps (default) Metadata: creation_time : 2009-05-21 19:52:28 handler_name : Apple Video Media Handler encoder : Lavc55.69.100 libx264 Stream #0:1(eng): Audio: none, 0 channels, 128 kb/s (default) Metadata: creation_time : 2009-05-21 19:52:30 handler_name : Apple Sound Media Handler Stream mapping: Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height I try changing it to -vpre help, and get: File for preset 'help' not found I was trying to figure out why I don't have certain presets, and while I can just go look at the files, the wiki says this should work. Luke From anshul.ffmpeg at gmail.com Wed Jul 16 08:52:55 2014 From: anshul.ffmpeg at gmail.com (anshul) Date: Wed, 16 Jul 2014 12:22:55 +0530 Subject: [FFmpeg-user] Wrong PTS calculated for wtv format Message-ID: <53C62147.1000709@gmail.com> Hi I am parsing wtv video with following command *ffprobe and stream info* [anshul at daku_daddy vlc-2.1.4]$ ffprobe ~/test_videos/8.wtv ffprobe version N-64076-g1d54a6c Copyright (c) 2007-2014 the FFmpeg developers built on Jun 20 2014 14:30:36 with gcc 4.8 (SUSE Linux) configuration: --enable-gpl --enable-libx264 --disable-optimizations libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 67.100 / 55. 67.100 libavformat 55. 44.100 / 55. 44.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 8.100 / 4. 8.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [wtv @ 0x9f533a0] truncated file [mpeg2video @ 0x9f55360] Invalid frame dimensions 0x0. Last message repeated 4 times Input #0, wtv, from '/home/anshul/test_videos/8.wtv': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : CSI-NY (TNT) WM/OriginalReleaseTime: 2012 WM/MediaCredits : ;;; service_provider: TNTHD service_name : Turner Network TV HD WM/MediaNetworkAffiliation: Satellite WM/MediaOriginalChannel: 245 WM/MediaOriginalChannelSubNumber: 0 WM/MediaOriginalBroadcastDateTime: 2012-10-23T04:00:00Z WM/MediaOriginalRunTime: 1932489651 WM/MediaIsStereo: false WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: false WM/WMRVEncodeTime: 2012-10-23 04:34:46 WM/WMRVServiceID: !MCService!27819970 WM/WMRVProgramID: !Generated!85250c4413084190a897bc2b35249bea WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 103 WM/WMRVOriginalSoftPostPadding: 0 WM/WMRVHardPrePadding: 4294967193 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: false WM/WMRVDTVContent: true WM/WMRVHDContent: false Duration : 1949691516 WM/WMRVEndTime : 2012-10-23 04:38:01 WM/WMRVBitrate : 20.971520 WM/WMRVKeepUntil: 4294967294 WM/WMRVActualSoftPrePadding: 4294967293 WM/WMRVActualSoftPostPadding: 1 WM/WMRVContentProtected: true WM/WMRVContentProtectedPercent: 95 WM/WMRVExpirationDate: 1901-12-13 20:45:52 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 0 WM/MediaThumbHeight: 0 WM/MediaThumbStride: 0 WM/MediaThumbRet: 4 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 2001089816 WM/MediaThumbAspectRatioY: 0 WM/MediaThumbTimeStamp: 4633405321944707173 Duration: 00:03:12.66, start: 2.689973, bitrate: 7336 kb/s Stream #0:0[0x62]: Subtitle: eia_608 Stream #0:1[0x63]: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], max. 9000 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc Stream #0:2[0x64]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s Unsupported codec with id 1664495672 for input stream 0 When i use ffprobe -show_packets for same video, I get pts of all subtitle packet same pts=1668330 I have put all files having same issue here http://gsocdev.ccextractor.org/~willem/wtv/ -Anshul From natural_groove at hotmail.fr Wed Jul 16 09:50:09 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Wed, 16 Jul 2014 00:50:09 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> Message-ID: <1405497009781-4666365.post@n4.nabble.com> Output of config.log : check_pkg_config sdl SDL_events.h SDL_PollEvent false --exists --print-errors sdl check_header linux/fb.h check_cpp BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int x; END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c check_header linux/videodev.h check_cpp BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int x; END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c check_header linux/videodev.h check_cpp BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int x; END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c /tmp/ffconf.BBrjntYs.c:1:28: fatal error: linux/videodev.h: No such file or directory compilation terminated. check_header linux/videodev2.h check_cpp BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int x; END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c check_code cc linux/videodev2.h struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0; check_cc BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int main(void) { struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;; return 0; } END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -c -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c check_header sys/videoio.h check_cpp BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int x; END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c /tmp/ffconf.BBrjntYs.c:1:25: fatal error: sys/videoio.h: No such file or directory compilation terminated. check_cpp_condition vfw.h WM_CAP_DRIVER_CONNECT > WM_USER check_cpp *BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 #if !(WM_CAP_DRIVER_CONNECT > WM_USER) 3 #error "unsatisfied condition: WM_CAP_DRIVER_CONNECT > WM_USER" 4 #endif END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c /tmp/ffconf.BBrjntYs.c:1:17: fatal error: vfw.h: No such file or directory compilation terminated. check_type dshow.h IBaseFilter check_code cc dshow.h IBaseFilter v check_cc BEGIN /tmp/ffconf.BBrjntYs.c 1 #include 2 int main(void) { IBaseFilter v; return 0; } END /tmp/ffconf.BBrjntYs.c /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -pipe -g -feliminate-unused-debug-types -march=armv5t -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -c -o /tmp/ffconf.esfqUmqP.o /tmp/ffconf.BBrjntYs.c /tmp/ffconf.BBrjntYs.c:1:19: fatal error: dshow.h: No such file or directory there a many other error afterwards (just in case) : /tmp/ffconf.BBrjntYs.c:1:35: fatal error: dev/bktr/ioctl_meteor.h: No such file or directory /tmp/ffconf.BBrjntYs.c:1:34: fatal error: machine/ioctl_meteor.h: No such file or directory and so on with sndio.h, soundcard.h, jack.h, va.h, vdau.h Regards Rick -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666365.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tevans.uk at googlemail.com Wed Jul 16 10:46:35 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 16 Jul 2014 09:46:35 +0100 Subject: [FFmpeg-user] -preset help: error in wiki? In-Reply-To: References: Message-ID: On Wed, Jul 16, 2014 at 6:44 AM, Luke Davis wrote: > On the page: > > https://trac.ffmpeg.org/wiki/Encode/H.264 > > It states: > > You can see a list of current presets with -preset help, and what settings > they apply with x264 --fullhelp. > > I get "trailing options were found on the commandline", with 2.2 compiled > today, if I use "ffmpeg -preset help". > The wording is unclear on that page; I believe those are arguments to give to the x264 binary, not ffmpeg. IIRC there is no way to get that information out of ffmpeg directly. Cheers Tom From cehoyos at ag.or.at Wed Jul 16 11:15:00 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 09:15:00 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > check_pkg_config sdl SDL_events.h SDL_PollEvent > false --exists --print-errors sdl > check_header linux/fb.h sdl can either be enabled via pck_config or via sdl-config. If I read your config.log correctly, you don't have pkg-config installed so you have to use sdl-config. Since you are cross-compiling, you do not need: $ sdl-config --version But (using your variable): $ ${CROSS_COMPILE}sdl-config --version Sorry that this took me so long to understand, I usually don't cross-compile. Carl Eugen From matej at tam.si Wed Jul 16 11:26:53 2014 From: matej at tam.si (Matej) Date: Wed, 16 Jul 2014 11:26:53 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta Message-ID: Hi, we are trying to output two inputs (mpeg2video and mp3) to an mpegts output stream with the following command: ffmpeg -loglevel debug -max_interleave_delta 15000000 -rtbufsize 128000k -threads 0 -re -i udp://@:1300 -re -i "http://live.radiohit.si:9560" -codec copy -s 720x576 -q 10 -shortest -f mpegts udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535 Things work perfectly for about an hour (sound is smooth and the video too fpr the entire period), but after approximate 55 minutes (sometimes little less, sometimes more) the following messages start to pop-up: mpegts @ 0x1a363c0] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output [mpegts @ 0x1a363c0] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x1a363c0] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 9 times ---------------------------------------------------------------- The sound starts glitching and eventually it is not present in the stream any more, but the video plays normally for hours on, but those errors keep flooding. I have tried to use -max_interleave_delta optiont as found this option in source, but it seems even though it's parsed (please see the debug output below), it still seems that the expected maximum delay is still 10000000. ---------------------------------------------------------------- ffmpeg output: ffmpeg version git-2014-07-12-66558fe Copyright (c) 2000-2014 the FFmpeg developers built on Jul 12 2014 10:18:42 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --extra-cflags=-I/root/junk/include --extra-ldflags=-L/root/junk/lib --enable-gpl libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-max_interleave_delta' ... matched as AVOption 'max_interleave_delta' with argument '15000000'. Reading option '-rtbufsize' ... matched as AVOption 'rtbufsize' with argument '128000k'. Reading option '-threads' ... matched as AVOption 'threads' with argument '0'. Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'. Reading option '-i' ... matched as input file with argument 'udp://@:1300'. Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'. Reading option '-i' ... matched as input file with argument ' http://live.radiohit.si:9560'. Reading option '-codec' ... matched as option 'codec' (codec name) with argument 'copy'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '720x576'. Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '10'. Reading option '-shortest' ... matched as option 'shortest' (finish encoding within shortest input) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option 'udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file udp://@:1300. Applying option re (read input at native frame rate) with argument 1. Successfully parsed a group of options. Opening an input file: udp://@:1300. [udp @ 0x382b200] end receive buffer size reported is 131072 [mpegts @ 0x3833fc0] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x3833fc0] stream=0 stream_type=2 pid=100 prog_reg_desc= [mpegts @ 0x3833fc0] Before avformat_find_stream_info() pos: 0 bytes read:9212 seeks:0 [mpeg2video @ 0x3847e80] Invalid frame dimensions 0x0. Last message repeated 9 times [mpegts @ 0x3833fc0] All programs have pmt, headers found [mpeg2video @ 0x3847e80] Invalid frame dimensions 0x0. [mpegts @ 0x3833fc0] All info found [mpegts @ 0x3833fc0] After avformat_find_stream_info() pos: 230676 bytes read:230676 seeks:0 frames:21 Input #0, mpegts, from 'udp://@:1300': Duration: N/A, start: 86964.932311, bitrate: N/A Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100], 21, 1/90000: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 1:1 DAR 5:4], 1/48, max. 104857 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc Successfully opened the file. Parsing a group of options: input file http://live.radiohit.si:9560. Applying option re (read input at native frame rate) with argument 1. Successfully parsed a group of options. Opening an input file: http://live.radiohit.si:9560. [http @ 0x3864420] request: GET / HTTP/1.1 User-Agent: Lavf/55.45.100 Accept: */* Range: bytes=0- Connection: close Host: live.radiohit.si:9560 [http @ 0x3864420] header='ICY 200 OK' [http @ 0x3864420] http_code=200 [http @ 0x3864420] header='icy-notice1:
This stream requires Winamp
' [http @ 0x3864420] header='icy-notice2:SHOUTcast Distributed Network Audio Server/win32 v1.9.5
' [http @ 0x3864420] header='icy-name:Radio HIT Shoutcast live stream' [http @ 0x3864420] header='icy-genre:Pop' [http @ 0x3864420] header='icy-url:http://www.radiohit.si' [http @ 0x3864420] header='content-type:audio/mpeg' [http @ 0x3864420] header='icy-pub:1' [http @ 0x3864420] header='icy-br:96' [http @ 0x3864420] header='' [mp3 @ 0x3848a80] Format mp3 probed with size=65536 and score=50 [mp3 @ 0x3848a80] Before avformat_find_stream_info() pos: 0 bytes read:65536 seeks:0 [mp3 @ 0x384daa0] Header missing Last message repeated 2 times [mp3 @ 0x3848a80] max_analyze_duration 5000000 reached at 5015510 microseconds [mp3 @ 0x3848a80] After avformat_find_stream_info() pos: 62464 bytes read:65536 seeks:0 frames:196 Input #1, mp3, from 'http://live.radiohit.si:9560': Duration: N/A, start: 0.000000, bitrate: 96 kb/s Stream #1:0, 196, 1/14112000: Audio: mp3, 44100 Hz, mono, s16p, 96 kb/s Successfully opened the file. Parsing a group of options: output file udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535. Applying option codec (codec name) with argument copy. Applying option s (set frame size (WxH or abbreviation)) with argument 720x576. Applying option q (use fixed quality scale (VBR)) with argument 10. Applying option shortest (finish encoding within shortest input) with argument 1. Applying option f (force format) with argument mpegts. Successfully parsed a group of options. Opening an output file: udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535. Successfully opened the file. [mpegts @ 0x38b3a40] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [mpegts @ 0x38b3a40] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535': Metadata: encoder : Lavf55.45.100 Stream #0:0, 0, 1/90000: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 1/24, q=2-31, max. 104857 kb/s, 24 fps, 90k tbn, 24 tbc Stream #0:1, 0, 1/90000: Audio: mp3, 44100 Hz, mono, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1984 fps= 24 q=-1.0 Lsize= 30806kB time=00:01:23.08 bitrate=3037.5kbits/s video:27316kB audio:974kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.895432% Input file #0 (udp://@:1300): Input stream #0:0 (video): 1995 packets read (28015163 bytes); Total: 1995 packets (28015163 bytes) demuxed Input file #1 (http://live.radiohit.si:9560): Input stream #1:0 (audio): 3179 packets read (997208 bytes); Total: 3179 packets (997208 bytes) demuxed Output file #0 (udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535): Output stream #0:0 (video): 1984 packets muxed (27971717 bytes); Output stream #0:1 (audio): 3179 packets muxed (997208 bytes); Then after about an hour the errors start to pop-up and the sound is eventually gone. We have spent quite some time with this and cannot find and good solution anywhere. I need to output mpegts, since it is sent to some special device and I will be really grateful for any ideas and suggestions. Thank you very much, Matej From natural_groove at hotmail.fr Wed Jul 16 11:37:56 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Wed, 16 Jul 2014 02:37:56 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> Message-ID: <1405503476519-4666369.post@n4.nabble.com> I have both pkg-config(0.26) and sdl-config(1.2.15) installed. So it means that the recipe cannot use "inherit pkgconfig" for some reasons? I dont understand : "Since you are cross-compiling, you do not need: $ sdl-config --version But (using your variable): $ ${CROSS_COMPILE}sdl-config --version" How do i add it to the recipe? Regards Ricko -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666369.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Wed Jul 16 11:58:48 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 09:58:48 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> <1405503476519-4666369.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > I have both pkg-config(0.26) For cross-compiling, pkg-config defaults to: ${cross_prefix}pkg-config so you don't need pkg-config but: .../armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-pkg-config > and sdl-config(1.2.15) installed. Same for sdl-config. Carl Eugen From cehoyos at ag.or.at Wed Jul 16 12:00:28 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 10:00:28 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > ffmpeg -loglevel debug -max_interleave_delta 15000000 > -rtbufsize 128000k -threads 0 -re -i udp:// :1300 > -re -i "http://live.radiohit.si:9560" -codec copy > -s 720x576 -q 10 -shortest -f mpegts > udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535 Is your issue only reproducible with network input or also with file input? Is your issue only reproducible with network output or also with file output? Carl Eugen From natural_groove at hotmail.fr Wed Jul 16 12:17:36 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Wed, 16 Jul 2014 03:17:36 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> <1405503476519-4666369.post@n4.nabble.com> Message-ID: <1405505856135-4666372.post@n4.nabble.com> The path you mentionned does not provide any pkg-config or sdl-config (/home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666372.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Wed Jul 16 12:47:19 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 10:47:19 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1404996144483-4666284.post@n4.nabble.com> <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> <1405503476519-4666369.post@n4.nabble.com> <1405505856135-4666372.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > The path you mentionned does not provide any > pkg-config or sdl-config Yes, this is the problem that you have to fix. Copy or symlink the cross-compiled sdl-config to that path. (You can specify your global sdl-config or pkg-config to use with configure but this should not work since the flags should be different for your host and the cross compilation path.) Carl Eugen From pshirkey at boosthardware.com Wed Jul 16 14:42:08 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 16 Jul 2014 22:42:08 +1000 (EST) Subject: [FFmpeg-user] libx264 vs android 4.4 In-Reply-To: <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> Message-ID: <57857.86.107.254.57.1405514528.squirrel@boosthardware.com> On Fri, July 11, 2014 9:33 pm, Patrick Shirkey wrote: > > On Fri, July 11, 2014 8:37 pm, Carl Eugen Hoyos wrote: >> Patrick Shirkey boosthardware.com> writes: >> >>> On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote: >>> > Patrick Shirkey boosthardware.com> writes: >>> > >>> >> ffmpeg -f rawvideo -i /dev/graphics/fb0 >>> > >>> > This looks plain wrong. >> >>> The commandline works if I do not use libx264 for >>> the stream codec. >> >> http://ffmpeg.org/ffmpeg-devices.html#fbdev >> indicates that ffmpeg -f fbdev -i /dev/graphics/fb0 >> should be used but I unfortunately cannot test here. >> >> Concerning that x264 doesn't work at all, please test: >> $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov >> If this doesn't work, we have to find out why. >> >> If it works, please replace "-f lavfi -i testsrc" with >> the framebuffer input. >> I have been able to get a working commandline with libx264 encodiing. On a dual core allwinner a20 chipset with mali GPU I see about between 5 - 10% additonal cpuload. The stream runs for 58 frames at -r 1. - I'm using this command line: ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 -f h264 -preset:v slow -pix_fmt yuv420p http://localhost:8090/feed1.ffm If I use -f h264 the cpuload jumps up to 80% - I run ffserver like this: ffserver -f /data/ffserver.conf ffserver.conf ++++ Port 8090 RTSPPort 7654 BindAddress 0.0.0.0 RTSPBindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000 CustomLog - File /data/feed1.ffm ACL allow 127.0.0.1 Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 1 VideoBitRate 100 VideoSize 480x800 # AVPresetVideo default # AVPresetVideo baseline NoAudio AVOptionVideo flags +global_header ++++ ffmpeg output: ffmpeg version N-64597-g4576eff Copyright (c) 2000-2014 the FFmpeg developers built on Jul 11 2014 10:59:49 with gcc 4.7 (GCC) configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264' --extra-ldflags=-L/4.4/external/x264 libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [fbdev @ 0x1c42d40] w:800 h:480 bpp:32 pixfmt:bgra fps:1/1 bit_rate:12288000 Input #0, fbdev, from '/dev/graphics/fb0': Duration: N/A, start: 1405514019.655622, bitrate: 12288 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 12288 kb/s, 1 fps, 1 tbr, 1000k tbn, 1 tbc [libx264 @ 0x1c45260] using cpu capabilities: ARMv6 NEON [libx264 @ 0x1c45260] profile High, level 2.2 [h264 @ 0x1c44460] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, h264, to 'http://localhost:8090/feed1.ffm': Metadata: encoder : Lavf55.45.100 Stream #0:0: Video: h264 (libx264), yuv420p, 800x480, q=-1--1, 1 fps, 1 tbn, 1 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help av_interleaved_write_frame(): Connection reset by peer0.00 bitrate=N/A frame= 58 fps=0.9 q=-1.0 Lsize= 69kB time=00:00:-1.00 bitrate=N/A video:69kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% [libx264 @ 0x1c45260] frame I:1 Avg QP: 6.88 size: 70966 [libx264 @ 0x1c45260] frame P:15 Avg QP:12.18 size: 200 [libx264 @ 0x1c45260] frame B:42 Avg QP:18.33 size: 47 [libx264 @ 0x1c45260] consecutive B-frames: 3.4% 0.0% 0.0% 96.6% [libx264 @ 0x1c45260] mb I I16..4: 42.3% 27.5% 30.3% [libx264 @ 0x1c45260] mb P I16..4: 0.1% 0.0% 0.0% P16..4: 1.8% 0.0% 0.2% 0.0% 0.0% skip:98.0% [libx264 @ 0x1c45260] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.0% 0.0% 0.0% direct: 0.0% skip:98.0% L0:24.4% L1:75.6% BI: 0.0% [libx264 @ 0x1c45260] 8x8 transform intra:27.3% inter:84.0% [libx264 @ 0x1c45260] direct mvs spatial:95.2% temporal:4.8% [libx264 @ 0x1c45260] coded y,uvDC,uvAC intra: 82.0% 32.0% 29.6% inter: 0.2% 0.1% 0.0% [libx264 @ 0x1c45260] i16 v,h,dc,p: 77% 8% 14% 0% [libx264 @ 0x1c45260] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 13% 40% 2% 1% 1% 3% 1% 4% [libx264 @ 0x1c45260] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 21% 9% 8% 8% 7% 8% 7% 7% [libx264 @ 0x1c45260] i8c dc,h,v,p: 54% 15% 30% 1% [libx264 @ 0x1c45260] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x1c45260] ref P L0: 93.0% 0.0% 4.7% 2.3% [libx264 @ 0x1c45260] ref B L0: 63.7% 35.0% 1.3% [libx264 @ 0x1c45260] ref B L1: 76.0% 24.0% [libx264 @ 0x1c45260] kb/s:10.48 Conversion failed! - Seperately I am trying to view the stream remotely with this commandline: $ ./ffplay -analyzeduration 2147483647 -probesize 2147483647 -vcodec libx264 http://192.168.1.106:8090/live.h264 ffplay version N-64597-g4576eff Copyright (c) 2003-2014 the FFmpeg developers built on Jul 16 2014 15:24:17 with gcc 4.7 (Debian 4.7.2-5) configuration: --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay --disable-shared --enable-static libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x26ba3e0] Format h264 detected only with low score of 1, misdetection possible! [h264 @ 0x26ba3e0] Could not find codec parameters for stream 0 (Video: h264): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options http://192.168.1.106:8090/l.h264: could not find codec parameters nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 -- Patrick Shirkey Boost Hardware Ltd From cehoyos at ag.or.at Wed Jul 16 14:56:10 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 12:56:10 +0000 (UTC) Subject: [FFmpeg-user] libx264 vs android 4.4 References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> <57857.86.107.254.57.1405514528.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 > -f h264 -preset:v slow -pix_fmt yuv420p > http://localhost:8090/feed1.ffm I don't know your use case but I wonder if a faster preset with a higher frame rate wouldn't be more useful. (I haven't used ffm for a long time but are you sure that -f h286 feed.ffm works? Maybe you meant -f h264 feed.h264? Which makes the -f h264 superfluous.) > configuration: --arch=arm --target-os=linux --enable-cross-compile > --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ > arm-linux-androideabi-4.7/bin/arm-linux-androideabi- > --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm > --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay > --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264' > --extra-ldflags=-L/4.4/external/x264 As said --enable-ffplay has no effect (and it does not tell you if it didn't work), so please remove it. I don't think you want to use --enable-avresample. You wrote in an earlier email: > [--cpu] doesn't appear to have any affect for > this build. Do you mean the output is bitexact with and without the --cpu option? Or that you did some performance tests and couldn't reproduce a difference? It cannot make a difference for the usecase above (that only depends on libx264 compilation / speed) but generally, I thought the --cpu option is useful for arm. Carl Eugen From natural_groove at hotmail.fr Wed Jul 16 15:02:09 2014 From: natural_groove at hotmail.fr (Rickoo) Date: Wed, 16 Jul 2014 06:02:09 -0700 (PDT) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: References: <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> <1405503476519-4666369.post@n4.nabble.com> <1405505856135-4666372.post@n4.nabble.com> Message-ID: <1405515729228-4666376.post@n4.nabble.com> > Copy or symlink the cross-compiled sdl-config to that path I found : /home/rick/oe-core/build/out-eglibc/work/armv7ahf-vfp-angstrom-linux-gnueabi/libsdl/1.2.15-r2/package/usr/bin/sdl-config, which im guessing is the crosscompiled sdl-config your were talking about, and cp it to : /home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi (I hope i understood what you said ) Configure goes well but when compiling i get error : libavdevice/alldevices.c:21:20: fatal error: config.h: No such file or directory | compilation terminated. | make: *** [libavdevice/alldevices.o] Error 1 | make: *** Waiting for unfinished jobs.... | In file included from libavdevice/avdevice.h:22:0, | from libavdevice/alsa-audio-common.c:32: | libavdevice/version.h:28:31: fatal error: libavutil/version.h: No such file or directorylibavdevice/alsa-audio-enc.c:42:28: fatal error: libavutil/time.h: No such file or directory | compilation terminated. | | compilation terminated. | make: *** [libavdevice/alsa-audio-common.o] Error 1 | make: *** [libavdevice/alsa-audio-enc.o] Error 1 | libavdevice/alsa-audio-dec.c:49:34: fatal error: libavformat/internal.h: No such file or directory | compilation terminated. | make: *** [libavdevice/alsa-audio-dec.o] Error 1 | ERROR: oe_runmake failed Another thing about pkg_config, going through config.log I found these lines (dont know if relevant) : PIPESTATUS=([0]="0") PKG_CONFIG_DIR=/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20//usr/lib/pkgconfig PKG_CONFIG_DISABLE_UNINSTALLED=yes PKG_CONFIG_LIBDIR=/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20//usr/lib/pkgconfig PKG_CONFIG_PATH=/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20//usr/lib/pkgconfig:/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20/usr/share/pkgconfig PKG_CONFIG_SYSROOT_DIR=/home/rick/oe-core/build/out-eglibc/sysroots/colibri-t20 POSIXLY_CORRECT=y PPID=9225 PROGRAM_LIST=' ffplay ffprobe ffserver ffmpeg Regards Rick -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284p4666376.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From zdziarze at cs.tcd.ie Wed Jul 16 15:16:03 2014 From: zdziarze at cs.tcd.ie (Zbigniew Zdziarski) Date: Wed, 16 Jul 2014 14:16:03 +0100 Subject: [FFmpeg-user] =?utf-8?q?Bug_in_I-Frame_Retrieval=3F?= In-Reply-To: References: <75367e75fb3711268b6e47e5345313dc@scss.tcd.ie> Message-ID: <2fedcb0b788a71919f4d8ce59e3126c7@scss.tcd.ie> On 14-07-2014 18:40, Zbigniew Zdziarski wrote: > On 14-07-2014 14:29, Zbigniew Zdziarski wrote: >> Hello, >> >> I'm trying to extract I frames from mpeg files but I've noticed >> something weird happening. The frames that are saved in my folder by >> ffmpeg do not match the frames marked as I frames either by ffprobe >> or >> ffmpeg with parameter "-loglevel debug". >> >> The command I'm using is the following: >> >> ffmpeg -i C:\vid1.mp4 -vf select='eq(pict_type\,I)' -vsync 0 >> C:\%03d.jpg -loglevel debug 2> vid1.txt >> >> For some videos, the first few frames saved are correct. For some >> videos, all but the first frame are incorrectly saved. >> >> Is my command incorrect or is there a bug??? >> >> Cheers, >> Zig >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > I did some more digging around and found that this problem doesn't > occur for all videos. E.g. the last 2 frames > saved by the command above for the following video are different to > those marked as being I-frames: > https://www.scss.tcd.ie/~zdziarze/vid1.mp4 > > But all works fine for this video: > https://www.scss.tcd.ie/~zdziarze/vid6.mp4 > > > Cheers, > Zig > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Ok, so I've done so more digging around and I've found the root of the problem. When you run the following command: ffmpeg -i vid3.mp4 -vf showinfo -f null - 2> vid3_info.txt you can see that there are TWO frame rates for a video: input frame rate and output frame rate. When you view the frame rate of a video while it's playing via, say, VLC, the frame rate displayed is the input one. But when you try to extract the frames, ffmpeg uses the output frame rate so you get a different amount of frames being extracted. That's some weird stuff! But thankfully I've worked it out. Phew. Here's the command to use if you want to keep the frame rate the same as the input frame rate: ffmpeg -i vid3.mp4 -vf select='1',setpts='N/([OUTPUT_FRAME_RATE]*TB)' %04d.png (replace [OUTPUT_FRAME_RATE] with the output frame rate displayed in the info given with "showinfo" (from command above)). Zig From cehoyos at ag.or.at Wed Jul 16 15:20:11 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 13:20:11 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> <1405503476519-4666369.post@n4.nabble.com> <1405505856135-4666372.post@n4.nabble.com> <1405515729228-4666376.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > Configure goes well but when compiling i get error : > libavdevice/alldevices.c:21:20: fatal error: > config.h: No such file or directory config.h is one of two files created by configure. Did you do the following or something different? $ cd ffmpeg $ make distclean $ git pull $ ./configure ... $ make How do the last lines of configure console output look like? Carl Eugen From cehoyos at ag.or.at Wed Jul 16 15:24:36 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 13:24:36 +0000 (UTC) Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded References: <1405429271372-4666354.post@n4.nabble.com> <1405497009781-4666365.post@n4.nabble.com> <1405503476519-4666369.post@n4.nabble.com> <1405505856135-4666372.post@n4.nabble.com> <1405515729228-4666376.post@n4.nabble.com> Message-ID: Rickoo hotmail.fr> writes: > | ERROR: oe_runmake failed What is oe_runmake ? Note that the other files it cannot find are part of the FFmpeg source (since a long time). Please explain what you were doing and please also explain why: I still believe that building FFmpeg is not difficult and while cross-compiling FFmpeg might be less straight-forward, many people do it successfully, no specific tools (intended to break any build) should be needed. Carl Eugen From pshirkey at boosthardware.com Wed Jul 16 15:26:12 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Wed, 16 Jul 2014 23:26:12 +1000 (EST) Subject: [FFmpeg-user] libx264 vs android 4.4 In-Reply-To: References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> <57857.86.107.254.57.1405514528.squirrel@boosthardware.com> Message-ID: <58138.86.107.254.57.1405517172.squirrel@boosthardware.com> On Wed, July 16, 2014 10:56 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 >> -f h264 -preset:v slow -pix_fmt yuv420p >> http://localhost:8090/feed1.ffm > > I don't know your use case but I wonder if a faster > preset with a higher frame rate wouldn't be more > useful. > faster presets and higher frame rates give me less time to play with. ex. With "veryfast" the number of frames that are streamed is 18 compared to 58 with "slow" > (I haven't used ffm for a long time but are you sure > that -f h286 feed.ffm works? Maybe you meant -f h264 > feed.h264? Which makes the -f h264 superfluous.) > Using :8090/feed.ffm works fine if I don't use libx264 If I remove the -f h264 the stream won't run (see previous messages for the full out put) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height >> configuration: --arch=arm --target-os=linux --enable-cross-compile >> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/ >> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- >> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm >> --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay >> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264' >> --extra-ldflags=-L/4.4/external/x264 > > As said --enable-ffplay has no effect (and it does not > tell you if it didn't work), so please remove it. > > I don't think you want to use --enable-avresample. > > You wrote in an earlier email: >> [--cpu] doesn't appear to have any affect for >> this build. > > Do you mean the output is bitexact with and without > the --cpu option? Or that you did some performance > tests and couldn't reproduce a difference? > It cannot make a difference for the usecase above > (that only depends on libx264 compilation / speed) > but generally, I thought the --cpu option is useful > for arm. > I have recompiled with --cpu=cortex-a8 and dropped --enable-avresample It doesn't appear to make any obvious difference. The stream still stops after 58 frames using preset "slow" and cpuload is the same. The main issue for me is identifying the cause of the stoppage. It is always 58 frames. -- Patrick Shirkey Boost Hardware Ltd From rogerdpack2 at gmail.com Wed Jul 16 15:29:36 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 16 Jul 2014 07:29:36 -0600 Subject: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded In-Reply-To: <1404996144483-4666284.post@n4.nabble.com> References: <1404996144483-4666284.post@n4.nabble.com> Message-ID: On Thu, Jul 10, 2014 at 6:42 AM, Rickoo wrote: > Hi everyone, > > Im trying to write a bitbake recipe for crossbuilding ffmpeg2.1.1 for arm > (Colibri-t20), i wrote this simple recipe: > > SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar.gz" > SRC_URI[md5sum] = "294749b2ebdd22ef7d9b9d12a70d5b8c" > SRC_URI[sha256sum] = > "66f521dffefcbb6c09a402f6373e6cef81fbf4284d0a33cdef9a19412df1dd18" > inherit autotools pkgconfig > DEPENDS = "yasm-native libsdl libx11 zlib libtheora libogg libass libtool" > S="${WORKDIR}/ffmpeg-2.1.1" > > > inherit autotools pkgconfig > > CROSS_COMPILE = > > "/home/rick/oe-core/build/out-eglibc/sysroots/i686-linux/usr/bin/armv7ahf-vfp-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-" > > EXTRA_OECONF = "--arch=arm --enable-cross-compile > --cross-prefix=${CROSS_COMPILE} --target-os=linux --enable-gpl > --enable-libtheora --enable-libvorbis --extra-libs="-ldl" --enable-ffplay > --enable-shared --enable-pic" > > do_configure() { > ./configure ${EXTRA_OECONF} > } > > My problem is that ffmpeg ffprobe and ffserver are built but not ffplay. > Can > someone help me with that? > > Regards > Ricko > > > > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/Issue-Crossbuilding-ffplay-with-openembedded-tp4666284.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 > It requires SDL 1.2 FWIW. -roger- From cehoyos at ag.or.at Wed Jul 16 15:21:28 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 13:21:28 +0000 (UTC) Subject: [FFmpeg-user] Bug in I-Frame Retrieval? References: <75367e75fb3711268b6e47e5345313dc@scss.tcd.ie> <2fedcb0b788a71919f4d8ce59e3126c7@scss.tcd.ie> Message-ID: Zbigniew Zdziarski cs.tcd.ie> writes: > Here's the command to use if you want to keep the frame > rate the same as the input frame rate: > ffmpeg -i vid3.mp4 -vf select='1',setpts='N/([OUTPUT_FRAME_RATE]*TB)' > %04d.png Did you try -vsync 0 ? Carl Eugen From cehoyos at ag.or.at Wed Jul 16 15:30:00 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 13:30:00 +0000 (UTC) Subject: [FFmpeg-user] processing of mxf videoclips with ffmpeg References: Message-ID: Pawel Por gmail.com> writes: > ffmpeg -i flowers.mxf -ss 0 -t 4 -c copy -y out.mxf How can I reproduce A/V desync with this sample? If you want to provide another sample, please either use http://www.datafilehost.com/ or read https://ffmpeg.org/bugreports.html (there is no filesize limit). Carl Eugen From zdziarze at cs.tcd.ie Wed Jul 16 15:37:52 2014 From: zdziarze at cs.tcd.ie (Zbigniew Zdziarski) Date: Wed, 16 Jul 2014 14:37:52 +0100 Subject: [FFmpeg-user] =?utf-8?q?Bug_in_I-Frame_Retrieval=3F?= In-Reply-To: References: <75367e75fb3711268b6e47e5345313dc@scss.tcd.ie> <2fedcb0b788a71919f4d8ce59e3126c7@scss.tcd.ie> Message-ID: <7e7d31288a1b98809b87ed71e891adcb@scss.tcd.ie> On 16-07-2014 14:21, Carl Eugen Hoyos wrote: > Zbigniew Zdziarski cs.tcd.ie> writes: > >> Here's the command to use if you want to keep the frame >> rate the same as the input frame rate: >> ffmpeg -i vid3.mp4 -vf >> select='1',setpts='N/([OUTPUT_FRAME_RATE]*TB)' >> %04d.png > > Did you try -vsync 0 ? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Haha! Yeah, that works as well :P From cehoyos at ag.or.at Wed Jul 16 15:33:32 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 16 Jul 2014 13:33:32 +0000 (UTC) Subject: [FFmpeg-user] libx264 vs android 4.4 References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> <57857.86.107.254.57.1405514528.squirrel@boosthardware.com> Message-ID: Patrick Shirkey boosthardware.com> writes: > Output #0, h264, to 'http://localhost:8090/feed1.ffm': > av_interleaved_write_frame(): Connection reset by peer It appears that whatever you setup to receive your stream does not like the h264 format. (Maybe the receiving end expected ffm?) Carl Eugen From felipe.lacerda at upx.com.br Wed Jul 16 17:17:57 2014 From: felipe.lacerda at upx.com.br (Felipe Lacerda) Date: Wed, 16 Jul 2014 12:17:57 -0300 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: <20140705105833.GA28058@sunshine.barsnick.net> Message-ID: Hello, I'm arrested in this part of installation below, can you help me please? root at s5-ul [~]# ffmpeg --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint ffmpeg version N-42148-g4330b8b-syslint Copyright (c) 2000-2012 the FFmpeg developers built on Jul 2 2012 20:35:39 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint 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.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 *Unrecognized option '-prefix=/usr/local/cpffmpeg'* *Failed to set value '--enable-shared' for option '-prefix=/usr/local/cpffmpeg'* Thanks, Felipe Lacerda Kneipp UPX http://www.upx.com.br Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 S?o Paulo +55 (11) 2626-3952 Bras?lia +55 (61) 2626-1248 Belo-Horizonte +55 (31) 2626-2019 Miami - USA +1 (305) 331-6649 2014-07-10 11:54 GMT-03:00 Mike Martin : > and at least used to add a linked file called ffmpeg > > > On 10 July 2014 15:38, Steve Boyer wrote: > > > On Jul 10, 2014 9:05 AM, "Steve Boyer" wrote: > > > > > > > > > On Jul 10, 2014 6:52 AM, "Felipe Lacerda" > > wrote: > > > > > > > > Hello Moritz, > > > > > > > > Thanks for your help, look my output when I tried to use command line > > that > > > > you suggest me: > > > > > > > > root at UPX-TI-Lab:/usr/local/WowzaMediaServer/content# ffmpeg -i > > > > fff9957481ca4d9b4aec79c8c2418505_3-1.mp4 -c:a copy -c:v libx264 > > -profile:v > > > > baseline -level 3.0 teste_2.mp4 > > > > ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.04.1, Copyright (c) > 2000-2013 > > the > > > > Libav developers > > > > > > Here's part of the problem. The version you are trying to run is not > true > > FFmpeg, but the avconv version. With Ubuntu, you have to compile from > > source or download a precompiled package. If you apt-get install FFmpeg > out > > of the box, this is the version you get. > > > > Sorry, bad wording. Chalk it up to lack of sleep. If you apt-get install, > > the avconv version is the version installed. > > > > > > built on Nov 9 2013 19:09:48 with gcc 4.7.3 > > > > *** THIS PROGRAM IS DEPRECATED *** > > > > This program is only provided for compatibility and will be removed > in > > a > > > > future release. Please use avconv instead. > > > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x214e1e0] max_analyze_duration reached > > > > > > > > Seems stream 0 codec frame rate differs from container frame rate: > > 59.94 > > > > (60000/1001) -> 29.97 (2997/100) > > > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > > > > 'fff9957481ca4d9b4aec79c8c2418505_3-1.mp4': > > > > Metadata: > > > > major_brand : M4V > > > > minor_version : 1 > > > > compatible_brands: M4V mp42isom > > > > creation_time : 2012-11-22 03:20:12 > > > > Duration: 00:31:00.43, start: 0.000000, bitrate: 381 kb/s > > > > Stream #0.0(eng): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 > DAR > > > > 16:9], 294 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc > > > > Metadata: > > > > creation_time : 2012-11-22 03:20:12 > > > > Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 61 kb/s > > > > Metadata: > > > > creation_time : 2012-11-22 03:20:12 > > > > Stream #0.2(und): Data: rtp / 0x20707472, 13 kb/s > > > > Metadata: > > > > creation_time : 2014-06-16 15:29:07 > > > > Stream #0.3(und): Data: rtp / 0x20707472, 8 kb/s > > > > Metadata: > > > > creation_time : 2014-06-16 15:29:08 > > > > Unrecognized option 'c:a' > > > > Failed to set value 'copy' for option 'c:a' > > > > > > > > What can be happening? > > > > > > > > Thanks, > > > > Regards, > > > > > > > > Felipe Lacerda Kneipp > > > > > > > > UPX > > > > http://www.upx.com.br > > > > > > > > Campinas +55 (19) 3208-1317 ou + 55 (19) 4062-0086 > > > > S?o Paulo +55 (11) 2626-3952 > > > > Bras?lia +55 (61) 2626-1248 > > > > Belo-Horizonte +55 (31) 2626-2019 > > > > Miami - USA +1 (305) 331-6649 > > > > > > > > > > > > 2014-07-05 7:58 GMT-03:00 Moritz Barsnick : > > > > > > > > > Hi Felipe, > > > > > > > > > > On Fri, Jul 04, 2014 at 10:51:33 -0300, Felipe Lacerda wrote: > > > > > > > > > > > My version of ffmpeg is 0.8.12 > > > > > > > > > > Please get hold of a newer version of ffmpeg. This is quite old and > > > > > unsupported, and some tips you get just won't apply to your > version. > > > > > > > > > > > > > I need transcode the many videos for they run in old iPhone > (3, > > 3gs) > > > > > and > > > > > > > > > > Check the compatibility section in this FAQ: > > > > > > > > > > > https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips > > > > > > > > > > Quote: > > > > > > If you want your videos to have highest compatibility with target > > > > > > devices (older iOS versions or all Android devices): > > > > > > > > > > > > -profile:v baseline -level 3.0 > > > > > > > > > > So basically > > > > > ffmpeg -i inputvideofile -c:a copy -c:v libx264 -profile:v baseline > > -level > > > > > 3.0 outputvideofile > > > > > > > > > > Moritz > > > > > _______________________________________________ > > > > > ffmpeg-user mailing list > > > > > ffmpeg-user at ffmpeg.org > > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > > > _______________________________________________ > > > > ffmpeg-user mailing list > > > > ffmpeg-user at ffmpeg.org > > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > > 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 pshirkey at boosthardware.com Wed Jul 16 17:32:42 2014 From: pshirkey at boosthardware.com (Patrick Shirkey) Date: Thu, 17 Jul 2014 01:32:42 +1000 (EST) Subject: [FFmpeg-user] libx264 vs android 4.4 In-Reply-To: References: <49295.86.107.254.57.1405018189.squirrel@boosthardware.com> <53405.86.107.254.57.1405066413.squirrel@boosthardware.com> <54650.86.107.254.57.1405078436.squirrel@boosthardware.com> <57857.86.107.254.57.1405514528.squirrel@boosthardware.com> Message-ID: <59318.86.107.254.57.1405524762.squirrel@boosthardware.com> On Wed, July 16, 2014 11:33 pm, Carl Eugen Hoyos wrote: > Patrick Shirkey boosthardware.com> writes: > >> Output #0, h264, to 'http://localhost:8090/feed1.ffm': > >> av_interleaved_write_frame(): Connection reset by peer > > It appears that whatever you setup to receive your > stream does not like the h264 format. > (Maybe the receiving end expected ffm?) > Thanks for your help with this. If I use the following commandline I get a different error but the stream still stops after 58 frames: ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 -f h264 -preset:v slow -pix_fmt yuv420p http://localhost:8090/live.h264 [fbdev @ 0x2038d40] w:800 h:480 bpp:32 pixfmt:bgra fps:1/1 bit_rate:12288000 Input #0, fbdev, from '/dev/graphics/fb0': Duration: N/A, start: 1405524527.617801, bitrate: 12288 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 12288 kb/s, 1 fps, 1 tbr, 1000k tbn, 1 tbc [libx264 @ 0x203b260] using cpu capabilities: ARMv6 NEON [libx264 @ 0x203b260] profile High, level 2.2 [h264 @ 0x203a460] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, h264, to 'http://localhost:8090/l.h264': Metadata: encoder : Lavf55.45.100 Stream #0:0: Video: h264 (libx264), yuv420p, 800x480, q=-1--1, 1 fps, 1 tbn, 1 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help av_interleaved_write_frame(): Broken pipe time=00:00:00.00 bitrate=N/A frame= 58 fps=0.8 q=-1.0 Lsize= 20kB time=00:00:-1.00 bitrate=N/A video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% -- Patrick Shirkey Boost Hardware Ltd From steveboyer85 at gmail.com Wed Jul 16 17:32:38 2014 From: steveboyer85 at gmail.com (Steve Boyer) Date: Wed, 16 Jul 2014 10:32:38 -0500 Subject: [FFmpeg-user] Transcode videos In-Reply-To: References: <20140705105833.GA28058@sunshine.barsnick.net> Message-ID: On Wed, Jul 16, 2014 at 10:17 AM, Felipe Lacerda wrote: > Hello, > Hi! > > I'm arrested in this part of installation below, can you help me please? > I'll do my best! > > root at s5-ul [~]# ffmpeg --prefix=/usr/local/cpffmpeg --enable-shared > --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb > --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac > --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ > --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 > --extra-version=syslint > ffmpeg version N-42148-g4330b8b-syslint Copyright (c) 2000-2012 the FFmpeg > developers built on Jul 2 2012 20:35:39 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) > configuration: --prefix=/usr/local/cpffmpeg --enable-shared > --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb > --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac > --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ > --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 > --extra-version=syslint > I think you are making it out to be much harder than it is... What I see is that you are invoking the FFmpeg command - it is not the "apt-get install ffmpeg" avconv version, but from the FFmpeg developers. Your command above is contains of all of the ffmpeg compile configuration options. FFmpeg is already installed and running as evidenced by the copyright information, configuration options, and versions. > 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.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 > *Unrecognized option '-prefix=/usr/local/cpffmpeg'* > *Failed to set value '--enable-shared' for option > '-prefix=/usr/local/cpffmpeg'* > FFmpeg is saying here "I don't know what -prefix means. It isn't built into my command list. Give me an option I know how to do, like -map, -ss, -i for input, etc and I'll get to it!" FFmpeg is installed and ready to go to work. It's already configured, setup, and now you can go back to your e-mail chain (started July 3rd). > > Thanks, > > Welcome! > Felipe Lacerda Kneipp > Steve B From bumblebritches57 at gmail.com Wed Jul 16 18:26:53 2014 From: bumblebritches57 at gmail.com (Marcus Johnson) Date: Wed, 16 Jul 2014 12:26:53 -0400 Subject: [FFmpeg-user] Changing the Quicktime "Format" visible in Quicktime Player In-Reply-To: <53C57B27.3050501@terminalmx.com> References: <1405370475212-4666345.post@n4.nabble.com> <53C57B27.3050501@terminalmx.com> Message-ID: you can't, it's hardcoded, you yourself can in your program that you're calling the libX functions with make a function that writes "H.264" to the encoder field after it's finished, it wouldn't really be that hard to do. or you could create a script to replace the bytes at X to Y with string Z, just make sure the file works properly because it may have to have the header field size updated, dig into the h.264 header specs to find out how specifically to do this. From joakim at terminalmx.com Thu Jul 17 05:28:55 2014 From: joakim at terminalmx.com (Joakim Ziegler) Date: Wed, 16 Jul 2014 22:28:55 -0500 Subject: [FFmpeg-user] Changing the Quicktime "Format" visible in Quicktime Player In-Reply-To: References: <1405370475212-4666345.post@n4.nabble.com> <53C57B27.3050501@terminalmx.com> Message-ID: <53C742F7.1030604@terminalmx.com> Ok, thank you. This doesn't sound very hard to do myself (I'll probably just do it afterwards instead of changing the ffmpeg code, so I don't have to maintain that patch). If I could make a suggestion, it might be something that would be good to have in ffmpeg, though, perhaps as a part of -movflags. Or, if no one is interested in adding it, would you take a patch? I might have time to do something at some point. -- Joakim Ziegler - Supervisor de postproducci?n - Terminal joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 On 16/07/14, 11:26, Marcus Johnson wrote: > you can't, it's hardcoded, you yourself can in your program that you're > calling the libX functions with make a function that writes "H.264" to the > encoder field after it's finished, it wouldn't really be that hard to do. > > or you could create a script to replace the bytes at X to Y with string Z, > just make sure the file works properly because it may have to have the > header field size updated, dig into the h.264 header specs to find out how > specifically to do this. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From falcon.sheep at gmail.com Thu Jul 17 07:19:10 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Thu, 17 Jul 2014 09:19:10 +0400 Subject: [FFmpeg-user] mp3 duration is not correct Message-ID: Hi i have this file which is giving wrong duration (6 sec where it is 54 sec): http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 ffmpeg -i 114.mp3 ffmpeg version N-64711-gfa6716c Copyright (c) 2000-2014 the FFmpeg developers built on Jul 16 2014 22:02:05 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-lib opencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc -- enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.100 / 4. 11.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mp3, from '114-length-calculation-error.mp3': Duration: 00:00:06.79, start: 0.025057, bitrate: 1017 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Metadata: encoder : LAME3.96r At least one output file must be specified From januszry at gmail.com Thu Jul 17 08:56:10 2014 From: januszry at gmail.com (=?UTF-8?B?5pu+6Iul55Gc?=) Date: Thu, 17 Jul 2014 14:56:10 +0800 Subject: [FFmpeg-user] How to use ffserver to provide a valid source for Window Media Services 2008 Message-ID: Hi, I'm using ffserver (ffmpeg 2.2.2) with this config ---------------------------------------------- Feed feed1.ffm Format asf NoVideo AudioCodec wmav2 AudioChannels 2 AudioBitRate 128 AudioSampleRate 44100 StartSendOnKey AVOptionAudio flags +global_header ---------------------------------------------- Then I ran ffmpeg ffmpeg -loglevel debug -i http://localhost:8090/feed1.ffm Everything seems OK with stats: ----------------------------------------------- Successfully opened the file. Parsing a group of options: output file http://localhost:8090/feed1.ffm. Successfully parsed a group of options. Opening an output file: http://localhost:8090/feed1.ffm. [http @ 0x20522a0] request: GET /feed1.ffm HTTP/1.1 User-Agent: Lavf/55.26.100 Accept: */* Range: bytes=0- Connection: close Host: localhost:8090 [http @ 0x20522a0] header='HTTP/1.0 200 OK' [http @ 0x20522a0] http_code=200 [http @ 0x20522a0] header='Pragma: no-cache' [http @ 0x20522a0] header='Content-Type: application/x-octet-stream' [http @ 0x20522a0] header='' [ffm @ 0x2052860] Format ffm probed with size=2048 and score=101 [AVIOContext @ 0x2052400] Statistics: 4096 bytes read, 0 seeks [http @ 0x2052340] request: POST /feed1.ffm HTTP/1.1 Transfer-Encoding: chunked User-Agent: Lavf/55.26.100 Accept: */* Connection: close Host: localhost:8090 Successfully opened the file. detected 1 logical cores *[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'time_base' to value '1/44100' *[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'sample_rate' to value '44100' *[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'sample_fmt' to value 'fltp' *[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'channel_layout' to value '0x3' *[graph 0 input from stream 0:0 @ 0x2052c20] *tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3 *[audio format for output stream 0:0 @ 0x205aee0] *Setting 'sample_fmts' to value 'fltp' *[audio format for output stream 0:0 @ 0x205aee0] *Setting 'sample_rates' to value '44100' *[audio format for output stream 0:0 @ 0x205aee0] *Setting 'channel_layouts' to value '0x3' *[AVFilterGraph @ 0x200fcc0] *query_formats: 4 queried, 9 merged, 0 already done, 0 delayed Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf55.26.100 Stream #0:0, 0, 1/1000000: Audio: wmav2, 44100 Hz, stereo, fltp, 128 kb/s Metadata: ENCODEDBY : edcast Stream mapping: Stream #0:0 -> #0:0 (vorbis -> wmav2) Press [q] to stop, [?] for help size= 408kB time=00:00:25.24 bitrate= 132.4kbits/s ---------------------------------------------- Now I met two problems here: * The ASF stream is NOT a valid source for Windows Media Services Error Description: The server is not a compatible streaming media server. Error Code: 0xc00d2ee8 * When I try to play it with ffplay, outputs contains warnings like these: ----------------------- Duration: N/A, start: 1125448.934000, bitrate: 128 kb/s Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 128 kb/s [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *Exponent out of range: -65*B sq= 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *Exponent out of range: 97*KB sq= 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0 Last message repeated 1 times [wmav2 @ 0x7fc8b5024000] *Exponent out of range: 96*KB sq= 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* [wmav2 @ 0x7fc8b5024000] *Exponent out of range: 102*B sq= 0B f=0/0 [wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 1125449.11 M-A: 0.000 fd= 0 aq= 5KB vq= 0KB sq= 0B f=0/0 ----------------------- Does this mean I can only generate a valid source for WMS 2008 with Windows Media Encoder? From kanishk.dudeja at gmail.com Thu Jul 17 10:11:45 2014 From: kanishk.dudeja at gmail.com (kanishkdudeja) Date: Thu, 17 Jul 2014 01:11:45 -0700 (PDT) Subject: [FFmpeg-user] FFMPEG dropping all frames. Message-ID: <1405584705817-4666393.post@n4.nabble.com> I have a raw H264 video which i am trying to convert into MP4 by the command: ffmpeg -i 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.h264' 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4' FFMPEG keeps dropping all frames. Not even 1 frame is encoded. Please see the output below: Seems stream 0 codec frame rate differs from container frame rate: 2400000.00 (2400000/1) -> 24.00 (24/1) Input #0, h264, from 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.h264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264 (Baseline), yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 24 fps, 24 tbr, 1200k tbn, 2400k tbc File 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4' already exists. Overwrite ? [y/N] y [buffer @ 0x820c140] w:1280 h:960 pixfmt:yuv420p Output #0, mp4, to 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4': Metadata: encoder : Lavf53.21.1 Stream #0.0: Video: mpeg4, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 24 tbn, 24 tbc Stream mapping: Stream #0.0 -> #0.0 Press ctrl-c to stop encoding ^Zame= 2 fps= 1 q=2.0 size= 225kB time=0.08 bitrate=22147.4kbits/s dup=0 drop=842 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-dropping-all-frames-tp4666393.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From matej at tam.si Thu Jul 17 10:17:49 2014 From: matej at tam.si (Matej) Date: Thu, 17 Jul 2014 10:17:49 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: It happens exactly the same with the file output - same errors appear in the console, the file is normal until about an hour where the sound disappears and every few secomds play very fast and then stops... this is the time where those messages below start to appear. There are still same errors in the console: mpegts @ 0x1a363c0] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output There are no errors whatsoever even after few hours of when there is no audio input (so without this -re -i http://live.radiohit.si:9560 in the command line) and only video input. There also seem to be no errors when there is just audio input http://live.radiohit.si:9560 (without udp:// :1300). Any ideas on where to look and what to check are very welcome, I have been pulling my hair for quite some time now because of this issue. Thanks, Matej On Wed, Jul 16, 2014 at 12:00 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > ffmpeg -loglevel debug -max_interleave_delta 15000000 > > -rtbufsize 128000k -threads 0 -re -i udp:// :1300 > > -re -i "http://live.radiohit.si:9560" -codec copy > > -s 720x576 -q 10 -shortest -f mpegts > > udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535 > > Is your issue only reproducible with network input > or also with file input? > Is your issue only reproducible with network output > or also with file output? > > 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 17 11:17:13 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 17 Jul 2014 09:17:13 +0000 (UTC) Subject: [FFmpeg-user] FFMPEG dropping all frames. References: <1405584705817-4666393.post@n4.nabble.com> Message-ID: kanishkdudeja gmail.com> writes: > ffmpeg -i 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.h264' > 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4' Please provide the complete, uncut console output when you request support on this mailing list. Carl Eugen From cehoyos at ag.or.at Thu Jul 17 11:24:01 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 17 Jul 2014 09:24:01 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > Input #0, mpegts, from 'udp:// :1300': > Duration: N/A, start: 86964.932311, bitrate: N/A > Input #1, mp3, from 'http://live.radiohit.si:9560': > Duration: N/A, start: 0.000000, bitrate: 96 kb/s This may be the reason for the problem you see. There are some options to ignore timestamps, you could try -vsync 0 or maybe the setpts filter. How is A/V sync supposed to work for these input streams (in an abstract wording, not FFmpeg-specific)? Carl Eugen From cehoyos at ag.or.at Thu Jul 17 11:21:05 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 17 Jul 2014 09:21:05 +0000 (UTC) Subject: [FFmpeg-user] mp3 duration is not correct References: Message-ID: Abu Abdullah gmail.com> writes: > i have this file which is giving wrong duration (6 > sec where it is 54 sec): > http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 Is there an application that shows the correct length (without decoding the file)? Carl Eugen From kanishk.dudeja at gmail.com Thu Jul 17 11:48:07 2014 From: kanishk.dudeja at gmail.com (Kanishk Dudeja) Date: Thu, 17 Jul 2014 15:18:07 +0530 Subject: [FFmpeg-user] FFMPEG dropping all frames. In-Reply-To: References: <1405584705817-4666393.post@n4.nabble.com> Message-ID: here is the complete output: kanishk at kanishk-ThinkPad-Edge-E431:~/2014-07-16$ ffmpeg -i 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.h264' 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4' ffmpeg version 0.8.12-4:0.8.12-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers built on Jun 10 2014 15:32:44 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. [h264 @ 0x894b240] max_analyze_duration reached [h264 @ 0x894b240] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 2400000.00 (2400000/1) -> 25.00 (25/1) Input #0, h264, from 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.h264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264 (Baseline), yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 25 fps, 25 tbr, 1200k tbn, 2400k tbc [buffer @ 0x894dee0] w:1280 h:960 pixfmt:yuv420p Output #0, mp4, to 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4': Metadata: encoder : Lavf53.21.1 Stream #0.0: Video: mpeg4, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press ctrl-c to stop encoding [h264 @ 0x894d0e0] non-existing PPS 47 referenced08 bitrate=23070.2kbits/s dup=0 drop=89926 [h264 @ 0x894d0e0] decode_slice_header error [h264 @ 0x894d0e0] mmco: unref short failure [h264 @ 0x894d0e0] sps_id (32) out of range [h264 @ 0x894d0e0] missing picture in access unit [h264 @ 0x894d0e0] sps_id (32) out of range [h264 @ 0x894d0e0] slice type too large (1) at 0 0 [h264 @ 0x894d0e0] decode_slice_header error [h264 @ 0x894d0e0] no frame! Error while decoding stream #0.0 frame= 2 fps= 0 q=2.0 Lsize= 226kB time=0.08 bitrate=23151.5kbits/s dup=0 drop=90020 video:225kB audio:0kB global headers:0kB muxing overhead 0.351968% On Thu, Jul 17, 2014 at 2:47 PM, Carl Eugen Hoyos wrote: > kanishkdudeja gmail.com> writes: > >> ffmpeg -i 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.h264' >> 'Camera 4(172.16.2.12_554)_1_2014_07_16_15_20_08.mp4' > > Please provide the complete, uncut console output when > you request support on this mailing list. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From falcon.sheep at gmail.com Thu Jul 17 12:28:29 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Thu, 17 Jul 2014 14:28:29 +0400 Subject: [FFmpeg-user] mp3 duration is not correct In-Reply-To: References: Message-ID: On Thu, Jul 17, 2014 at 1:21 PM, Carl Eugen Hoyos wrote: > Abu Abdullah gmail.com> writes: > >> i have this file which is giving wrong duration (6 >> sec where it is 54 sec): >> http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 > > Is there an application that shows the correct length > (without decoding the file)? in windows you just need to rollover the mouse and the properties dialog will show you the the duration correctly. or just simply right click and check the properties. i didn't try a specific application From cehoyos at ag.or.at Thu Jul 17 14:53:18 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 17 Jul 2014 12:53:18 +0000 (UTC) Subject: [FFmpeg-user] FFMPEG dropping all frames. References: <1405584705817-4666393.post@n4.nabble.com> Message-ID: Kanishk Dudeja gmail.com> writes: > ffmpeg version 0.8.12-4:0.8.12-0ubuntu0.12.04.1 This is not FFmpeg but an intentionally broken version with several hundred known, user-reported bugs that are not reproducible with FFmpeg, some of them security relevant, I hope you understand that we cannot support it here. Please test current FFmpeg from http://ffmpeg.org/download.html See http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html for more information. Please avoid top-posting here, Carl Eugen From xanadu at apost.plala.or.jp Thu Jul 17 14:56:44 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Thu, 17 Jul 2014 21:56:44 +0900 Subject: [FFmpeg-user] mp3 duration is not correct In-Reply-To: References: Message-ID: <8ECF5DAB-0663-4D48-A38F-736B5EFB8A66@apost.plala.or.jp> 2014/07/17 19:28?Abu Abdullah gmail.com> Wrote? > On Thu, Jul 17, 2014 at 1:21 PM, Carl Eugen Hoyos ag.or.at> wrote: >> Abu Abdullah gmail.com> writes: >> >>> i have this file which is giving wrong duration (6 >>> sec where it is 54 sec): >>> http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 >> >> Is there an application that shows the correct length >> (without decoding the file)? > > in windows you just need to rollover the mouse and the properties > dialog will show you the the duration correctly. or just simply right > click and check the properties. > i didn't try a specific application I have downloaded "114.mp3" and found my Mac OS X 10.9.4 shows same duration as ffmpeg or ffprobe output. I also tried a codec checker called "SinkuSuperLite.exe", then it shows 6.817 sec. My Windows 8.1 shows 53 sec, but it might be wrong calculation. Your file seems to be longer than the duration which shows ffmpeg, Mac, and SinkuSuperLite.exe, but I suppose this might be some corruption in mp3 file. FYI: You can download "SinkuSuperLite.exe" at: http://www.kurohane.net/archive/sinkusuperlite_140713.zip // Miya From cehoyos at ag.or.at Thu Jul 17 15:05:38 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 17 Jul 2014 13:05:38 +0000 (UTC) Subject: [FFmpeg-user] mp3 duration is not correct References: Message-ID: Abu Abdullah gmail.com> writes: > i have this file which is giving wrong duration (6 sec > where it is 54 sec): > http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 I opened ticket #3777 - thank you for the sample! Carl Eugen From kanishk.dudeja at gmail.com Thu Jul 17 15:19:43 2014 From: kanishk.dudeja at gmail.com (kanishkdudeja) Date: Thu, 17 Jul 2014 06:19:43 -0700 (PDT) Subject: [FFmpeg-user] FFMPEG dropping all frames. In-Reply-To: References: <1405584705817-4666393.post@n4.nabble.com> Message-ID: > ffmpeg version 0.8.12-4:0.8.12-0ubuntu0.12.04.1 > > This is not FFmpeg but an intentionally broken version with > several hundred known, user-reported bugs that are not > reproducible with FFmpeg, some of them security relevant, I > hope you understand that we cannot support it here. > Please test current FFmpeg from http://ffmpeg.org/download.html > See http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > for more information. > > Please avoid top-posting here, Carl Eugen > Thank you so much Carl. I managed to fix the error by updating it to the latest version. Thank you so much. Regards, Kanishk -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-dropping-all-frames-tp4666393p4666404.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kanishk.dudeja at gmail.com Thu Jul 17 15:21:04 2014 From: kanishk.dudeja at gmail.com (Kanishk Dudeja) Date: Thu, 17 Jul 2014 18:51:04 +0530 Subject: [FFmpeg-user] FFMPEG dropping all frames. In-Reply-To: References: <1405584705817-4666393.post@n4.nabble.com> Message-ID: >> ffmpeg version 0.8.12-4:0.8.12-0ubuntu0.12.04.1 > > This is not FFmpeg but an intentionally broken version with > several hundred known, user-reported bugs that are not > reproducible with FFmpeg, some of them security relevant, I > hope you understand that we cannot support it here. > Please test current FFmpeg from http://ffmpeg.org/download.html > See http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > for more information. > > Please avoid top-posting here, Carl Eugen > Thank you so much Carl. Updating to the latest version fixed the error :) From barsnick at gmx.net Thu Jul 17 15:23:39 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 17 Jul 2014 15:23:39 +0200 Subject: [FFmpeg-user] mp3 duration is not correct In-Reply-To: References: Message-ID: <20140717132339.GB24968@sunshine.barsnick.net> On Thu, Jul 17, 2014 at 13:05:38 +0000, Carl Eugen Hoyos wrote: > > http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 > I opened ticket #3777 - thank you for the sample! MP3Diags GUI (is there no command line version of this? d'uh) reports: "Frame count mismatch between the Xing header and the audio stream." Is ffmpeg supposed to analyze the latter? Moritz From matej at tam.si Thu Jul 17 15:41:28 2014 From: matej at tam.si (Matej) Date: Thu, 17 Jul 2014 15:41:28 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: Hi, I tried to add -vsync 0 so the full command line was: /root/ffmpeg/ffmpeg -loglevel debug -max_interleave_delta 15000000 -rtbufsize 128000k -threads 0 -re -i "udp://@:1300?fifo_size=1000000&overrun_nonfatal=1" -re -i " http://live.radiohit.si:9560" -codec copy -s 720x576 -q 10 -vsync 0 -shortest -f mpegts udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535 and the sound started to scratch and eventually stop: [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 18 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 2 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004888 > 10000000: forcing output [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 10 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 18 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 9 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004888 > 10000000: forcing output [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 18 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 18 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004888 > 10000000: forcing output [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 9 times [mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 12 times frame=77589 fps= 24 q=-1.0 Lsize= 927784kB time=00:54:04.77 bitrate=2342.4kbits/s video:810940kB audio:38025kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.284163% Input file #0 (udp://@:1300?fifo_size=1000000&overrun_nonfatal=1): Input stream #0:0 (video): 77591 packets read (830403542 bytes); Total: 77591 packets (830403542 bytes) demuxed Input file #1 (http://live.radiohit.si:9560): Input stream #1:0 (audio): 124214 packets read (38937350 bytes); Total: 124214 packets (38937350 bytes) demuxed Output file #0 (udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535): Output stream #0:0 (video): 77589 packets muxed (830402398 bytes); Output stream #0:1 (audio): 124214 packets muxed (38937350 bytes); Total: 201803 packets (869339748 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x3732f80] Statistics: 0 seeks, 763067 writeouts [AVIOContext @ 0x369b800] Statistics: 906245916 bytes read, 0 seeks [AVIOContext @ 0x372cea0] Statistics: 38961152 bytes read, 0 seeks Received signal 2: terminating. I have also tried to stream this live audio stream as a mpegts with another parallel ffmpeg process and then add this audio the same way as we add video (-re -i udp://@:1301), but the same erors (Delay between .... muxing queue) appear after almost the same time. Any ideas will be very appreciated. Matej On Thu, Jul 17, 2014 at 11:24 AM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > Input #0, mpegts, from 'udp:// :1300': > > Duration: N/A, start: 86964.932311, bitrate: N/A > > > Input #1, mp3, from 'http://live.radiohit.si:9560': > > Duration: N/A, start: 0.000000, bitrate: 96 kb/s > > This may be the reason for the problem you see. > There are some options to ignore timestamps, you > could try -vsync 0 or maybe the setpts filter. > > How is A/V sync supposed to work for these input > streams (in an abstract wording, not FFmpeg-specific)? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From bouke at videotoolshed.com Thu Jul 17 16:42:28 2014 From: bouke at videotoolshed.com (Bouke (VideoToolShed)) Date: Thu, 17 Jul 2014 16:42:28 +0200 Subject: [FFmpeg-user] Want to hire a coder Message-ID: <1F66787461454C868881641D69BB21E9@HPKANTOOR> Hi all, Tried this on the FFdevelop list, but no-one would take it... Feature request / want to hire a coder, and IMHO a not so difficult. (Well, the devil will be in the detail's of course / famous last words...) I would like to have proper timecode on capturing live streams. Now, the way it is currently, i can start the recording with a timecode value, but there is no fixed relation between the moment FFmpeg is fired and the first frame is captured, so there is always an unpredictable offset. What I think 'could' work is adding something that will hold FFmpeg at the point just before it starts buffering. (So start up FFmeg with '-timecode hold_horses' or whatever) Then, ask for a timecode value input. On receiving it, start filling the buffer and encode. (Taking the time between that an initializing the buffer into account, if needed.) That 'should' result in a +/- one frame accurace, as the start time could be just after the beginning of a frame coming in, or very close to the end of one, so there can be an offset of slightly less than one frame duration. No idea how to cope with that at the moment. Perhaps I could fire the values at a fixed time intervals of N*frameDur so the offset would always be the same. (All sources may be genlocked.) Instead of taking the timecode from the user, it could also use the system time. My main concern is that I get multiple recordings starting at different moments in sync. Does this make sense? Doable? thx, Bouke --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From phil_rhodes at rocketmail.com Thu Jul 17 17:13:22 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Thu, 17 Jul 2014 08:13:22 -0700 Subject: [FFmpeg-user] Want to hire a coder In-Reply-To: <1F66787461454C868881641D69BB21E9@HPKANTOOR> References: <1F66787461454C868881641D69BB21E9@HPKANTOOR> Message-ID: <1405610002.4508.YahooMailNeo@web161504.mail.bf1.yahoo.com> > '-timecode?hold_horses'? I vote for this feature. Particularly if the commandline argument is as specified. P From oliver at fromme.com Thu Jul 17 17:32:20 2014 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 17 Jul 2014 17:32:20 +0200 (CEST) Subject: [FFmpeg-user] mp3 duration is not correct In-Reply-To: <20140717132339.GB24968@sunshine.barsnick.net> Message-ID: <201407171532.s6HFWKQc047830@haluter.fromme.com> Moritz Barsnick wrote: > On Thu, Jul 17, 2014 at 13:05:38 +0000, Carl Eugen Hoyos wrote: > > > http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 > > I opened ticket #3777 - thank you for the sample! > > MP3Diags GUI (is there no command line version of this? d'uh) reports: > "Frame count mismatch between the Xing header and the audio stream." > > Is ffmpeg supposed to analyze the latter? I've had a look at this 114.mp3 file (I'm somewhat familiar with MPEG audio, being former co-author of mpg123). This file is the result of concatenating two distinct mp3 files with Xing/LAME headers. This is sometimes called a "Frankenstein" mp3. The first section is 6.79 seconds (109086 bytes), and the second section is 47.18 seconds (754824 bytes, starting at offset 0x1aa1e). I haven't looked at ffmpeg's mp3 code, but it seems that it only looks at the Xing/LAME header of the first section, not noticing that another file was appended to it. It is debatable if this really a "bug" in ffmpeg, because the Xing header is non-standard in the first place (as are the various variants of "id3" tags). But I guess people expect it to work, so ... The solution is rather simple: The Xing header contains a field that holds the length of the file in bytes. Just seek to that position and check if there's another header (instead of EOF that should normally be there). If there is, then a concatenated file follows. This procedure has to be repeated, in case that more than two files were concatenated. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) Donations: http://www.amazon.de/wishlist/A0LHFK68RV8S From george at nsup.org Thu Jul 17 17:52:03 2014 From: george at nsup.org (Nicolas George) Date: Thu, 17 Jul 2014 17:52:03 +0200 Subject: [FFmpeg-user] Want to hire a coder In-Reply-To: <1F66787461454C868881641D69BB21E9@HPKANTOOR> References: <1F66787461454C868881641D69BB21E9@HPKANTOOR> Message-ID: <20140717155203.GA19986@phare.normalesup.org> Le nonidi 29 messidor, an CCXXII, Bouke (VideoToolShed) a ?crit?: > Instead of taking the timecode from the user, it could also use the system > time. My main concern is that I get multiple recordings starting at > different moments in sync. > > Does this make sense? > Doable? Already done, for the most part. You should explain your actual problem in details instead of trying to hire someone. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From bumblebritches57 at gmail.com Thu Jul 17 17:55:29 2014 From: bumblebritches57 at gmail.com (Marcus Johnson) Date: Thu, 17 Jul 2014 11:55:29 -0400 Subject: [FFmpeg-user] Changing the Quicktime "Format" visible in Quicktime Player In-Reply-To: <53C742F7.1030604@terminalmx.com> References: <1405370475212-4666345.post@n4.nabble.com> <53C57B27.3050501@terminalmx.com> <53C742F7.1030604@terminalmx.com> Message-ID: I'm just a user, I haven't written any actual code for ffmpeg, but I have gotten used to some of it in my own program, I do agree that it would be cool to have that encoder metadata exposed as part of a function, but I have no authority over what they do (well it's open source so no one has actual control over others, but you know what I mean) The best person to talk about this would be either Carl Eugen, or Michael Niedermayer On Wed, Jul 16, 2014 at 11:28 PM, Joakim Ziegler wrote: > Ok, thank you. > > This doesn't sound very hard to do myself (I'll probably just do it > afterwards instead of changing the ffmpeg code, so I don't have to maintain > that patch). > > If I could make a suggestion, it might be something that would be good to > have in ffmpeg, though, perhaps as a part of -movflags. > > Or, if no one is interested in adding it, would you take a patch? I might > have time to do something at some point. > > > -- > Joakim Ziegler - Supervisor de postproducci?n - Terminal > joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 > > On 16/07/14, 11:26, Marcus Johnson wrote: > >> you can't, it's hardcoded, you yourself can in your program that you're >> calling the libX functions with make a function that writes "H.264" to the >> encoder field after it's finished, it wouldn't really be that hard to do. >> >> or you could create a script to replace the bytes at X to Y with string Z, >> just make sure the file works properly because it may have to have the >> header field size updated, dig into the h.264 header specs to find out how >> specifically to do this. >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From george at nsup.org Thu Jul 17 17:58:03 2014 From: george at nsup.org (Nicolas George) Date: Thu, 17 Jul 2014 17:58:03 +0200 Subject: [FFmpeg-user] mp3 duration is not correct In-Reply-To: <201407171532.s6HFWKQc047830@haluter.fromme.com> References: <20140717132339.GB24968@sunshine.barsnick.net> <201407171532.s6HFWKQc047830@haluter.fromme.com> Message-ID: <20140717155803.GA20562@phare.normalesup.org> Le nonidi 29 messidor, an CCXXII, Oliver Fromme a ?crit?: > The solution is rather simple: The Xing header contains a > field that holds the length of the file in bytes. Just > seek to that position and check if there's another header > (instead of EOF that should normally be there). If there > is, then a concatenated file follows. This procedure has > to be repeated, in case that more than two files were > concatenated. That could be dangerous, a crafted file may trick lavf into reading much more of the file than reasonable, leading to a possible DoS, especially if the file is accessed by network. If someone implements it, this must be kept in mind in order to avoid it. A much easier (but also much less accurate, of course) solution would be to compare the size in the Xing header and the size of the file reported by the OS or protocol, and if they do not match, print a warning and/or extrapolate the duration. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From oliver at fromme.com Thu Jul 17 19:37:05 2014 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 17 Jul 2014 19:37:05 +0200 (CEST) Subject: [FFmpeg-user] mp3 duration is not correct In-Reply-To: <20140717155803.GA20562@phare.normalesup.org> Message-ID: <201407171737.s6HHb5OQ048657@haluter.fromme.com> Nicolas George wrote: > Le nonidi 29 messidor, an CCXXII, Oliver Fromme a ?crit?: > > The solution is rather simple: The Xing header contains a > > field that holds the length of the file in bytes. Just > > seek to that position and check if there's another header > > (instead of EOF that should normally be there). If there > > is, then a concatenated file follows. This procedure has > > to be repeated, in case that more than two files were > > concatenated. > > That could be dangerous, a crafted file may trick lavf into reading much > more of the file than reasonable, leading to a possible DoS, especially if > the file is accessed by network. If someone implements it, this must be kept > in mind in order to avoid it. Yes, of course, that can always happen when parsing a non-trivial file structure. It might make sense to implement a limit for the number of sections to look for, and print a warning if that limit is exceeded. > A much easier (but also much less accurate, of course) solution would be to > compare the size in the Xing header and the size of the file reported by the > OS or protocol, and if they do not match, print a warning and/or extrapolate > the duration. A warning won't help users much, except that it confirms that the length printed by ffmpeg is probably wrong. Interpolating will display an incorrect length, too, unless the sections all have the same bitrate (and don't have a variable bitrate). Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) Donations: http://www.amazon.de/wishlist/A0LHFK68RV8S From cehoyos at ag.or.at Thu Jul 17 21:11:41 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 17 Jul 2014 19:11:41 +0000 (UTC) Subject: [FFmpeg-user] mp3 duration is not correct References: <20140717132339.GB24968@sunshine.barsnick.net> <201407171532.s6HFWKQc047830@haluter.fromme.com> Message-ID: Oliver Fromme fromme.com> writes: > This file is the result of concatenating two distinct mp3 > files with Xing/LAME headers. This is sometimes called a > "Frankenstein" mp3. Patch sent, thank you for the analysis! Carl Eugen From rogerdpack2 at gmail.com Fri Jul 18 00:34:26 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 17 Jul 2014 16:34:26 -0600 Subject: [FFmpeg-user] How to stream just audio with ffmpeg In-Reply-To: <53C17A81.6040500@xopnetworks.com> References: <53C17A81.6040500@xopnetworks.com> Message-ID: On Sat, Jul 12, 2014 at 12:12 PM, Yan Brenman wrote: > Hello, > > I am trying to stream just audio with ffmpeg from a PC with built in > microphone and play on the other PC with ffplay. > The name of a microphone device I get with "ffmpeg -list_devices true -f > dshow -i dummy" command. > > The command on the streaming side looks like this: > > ffmpeg -f dshow -i audio="Internal Microphone Array (IDT High Definition > Audio CODEC)" -vn -c:a mp3 -q:a 9 -ar 11025 -ac 1 -f flv > rtmp://[RTMP_server_name]/live/[file_name] > > And as you can see I am explicitly disabling the video component from > being included by default with "-vn" switch. > The streaming side seems to be working fine (with no warnings or errors) > but unfortunately when I try to play the audio stream with ffplay it still > tries to find the video stream > and bails out with "RTMP_ReadPacket, failed to read RTMP packet header" > error and then complaining the codec parameters for the video stream can't > be found. > > Seems to me that the root of the problem is the fact that ffplay is still > looking for video in stream 0, while in fact stream 0 is an audio (and no > video of course at all). I tried to run > ffplay with "-nodisp" option but it didn't help either: > > ffplay -nodisp rtmp://[RTMP_server_name]/live/[file_name]. > > Is there something wrong I am doing on the streaming side or is there > something else I need to specify on the playing side? > full command line and output from failing and successful use cases please? How is ffplay ever able to receive this? I presume you have some type of intermediary server? I assume ffplay does work with video? Do other clients work with just audio? > > Every piece of advise is greatly appreciated > Yan > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From matej at tam.si Fri Jul 18 08:10:28 2014 From: matej at tam.si (Matej) Date: Fri, 18 Jul 2014 08:10:28 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: Hi, the video stream is an actual UScreenCapture input and audio is an internet radio. What we want to achieve is simply add the background internet radio sound to the UScreenCapture generated video. As mentioned, now with this set of options things work smoothly for about 50 minutes, but then start to scratch and eventually stop. On Thu, Jul 17, 2014 at 11:24 AM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > Input #0, mpegts, from 'udp:// :1300': > > Duration: N/A, start: 86964.932311, bitrate: N/A > > > Input #1, mp3, from 'http://live.radiohit.si:9560': > > Duration: N/A, start: 0.000000, bitrate: 96 kb/s > > This may be the reason for the problem you see. > There are some options to ignore timestamps, you > could try -vsync 0 or maybe the setpts filter. > > How is A/V sync supposed to work for these input > streams (in an abstract wording, not FFmpeg-specific)? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From francois.visagie at gmail.com Fri Jul 18 09:44:39 2014 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 18 Jul 2014 09:44:39 +0200 Subject: [FFmpeg-user] Want to hire a coder In-Reply-To: <1F66787461454C868881641D69BB21E9@HPKANTOOR> References: <1F66787461454C868881641D69BB21E9@HPKANTOOR> Message-ID: <006c01cfa25c$2564aec0$702e0c40$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Bouke (VideoToolShed) > Sent: 17 July 2014 16:42 > To: FFmpeg user questions > Subject: [FFmpeg-user] Want to hire a coder > > Hi all, > Tried this on the FFdevelop list, but no-one would take it... > > Feature request / want to hire a coder, and IMHO a not so difficult. > (Well, the devil will be in the detail's of course / famous last words...) > > I would like to have proper timecode on capturing live streams. > Now, the way it is currently, i can start the recording with a timecode value, > but there is no fixed relation between the moment FFmpeg is fired and the > first frame is captured, so there is always an unpredictable offset. > > What I think 'could' work is adding something that will hold FFmpeg at the > point just before it starts buffering. (So start up FFmeg with '-timecode > hold_horses' or whatever) Then, ask for a timecode value input. > On receiving it, start filling the buffer and encode. (Taking the time between > that an initializing the buffer into account, if needed.) > > That 'should' result in a +/- one frame accurace, as the start time could be > just after the beginning of a frame coming in, or very close to the end of one, > so there can be an offset of slightly less than one frame duration. > No idea how to cope with that at the moment. Perhaps I could fire the values > at a fixed time intervals of N*frameDur so the offset would always be the > same. (All sources may be genlocked.) > > Instead of taking the timecode from the user, it could also use the system > time. My main concern is that I get multiple recordings starting at different > moments in sync. Let me say upfront I'm no expert at all on the matter. However, in case it adds any value I'd like to offer my take on it. If I understand correctly, the underlying principle of this approach is 1) giving ffmpeg a starting timecode, 2) manipulating the start of ffmpeg's processing in a way that most closely coincides with that time, and 3) relying on the local system clock to provide future timestamps using the given value as offset. As you outline, this creates difficulty with synchronising the start of processing with the given initial timestamp. In addition, this approach is vulnerable to clock drift. IF your recording environment provides genlock(?), might it be possible for ffmpeg to be a genlock client? I.e. to not only obtain the initial timestamp, but all following ones externally. The problem with synchronising the start of recording will remain but, as you seem to imply, few people will be bothered by a possible less-than 1-frame offset. However, clock drift would be eliminated. Apologies if this is off the mark. > > Does this make sense? > Doable? > > thx, > > Bouke > > > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From subeesh.babu at industeqsite.com Fri Jul 18 11:26:22 2014 From: subeesh.babu at industeqsite.com (subeesh.babu) Date: Fri, 18 Jul 2014 14:56:22 +0530 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: <20140705111044.GB28058@sunshine.barsnick.net> References: <20140705111044.GB28058@sunshine.barsnick.net> Message-ID: Hi , 1 . I am using DM8148 Davinci Processor and in that Arm7 core is using with a speed of 600MHz. 2 . ffmpeg-1.1.4 is using . 3. Command used for streaming the video shall be given below . It streams the data but is slow and takes 99% of CPU usage. ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234 4. The above command is what i am using for streaming an MP4 video file . Can any one suggest how to reduce the CPU usage . Regards, Subeesh babu Mob: +91-8939229627 ----- Original Message ----- From: "Moritz Barsnick" To: "FFmpeg user discussions" Sent: Saturday, July 05, 2014 4:40 PM Subject: Re: [FFmpeg-user] Reg: CPU Usage Issue > On Fri, Jul 04, 2014 at 11:39:19 +0530, subeesh.babu wrote: >> ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234 >> a.. It takes 99% of CPU usage . Any one suggest how to reduce my >> CPU usage . > > If video.mp4 already contains the correct codecs with the correct > parameters for your streamed mpegts, you could avoid recoding totally > by adding: > -c copy > (or -c:v copy, if it shall only apply to video). > > That avoids very much of the CPU usage. > > > Apart from that, we usually expect your full ffmpeg command line and > the complete, uncut output on this list, to better understand your > scenario. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From barsnick at gmx.net Fri Jul 18 11:31:36 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 18 Jul 2014 11:31:36 +0200 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: References: <20140705111044.GB28058@sunshine.barsnick.net> Message-ID: <20140718093136.GC16702@sunshine.barsnick.net> On Fri, Jul 18, 2014 at 14:56:22 +0530, subeesh.babu wrote: > Can any one suggest how to reduce the CPU usage . Did you even read my reply? (You quoted it.) Have you tried the suggestion? Did it help? Moritz From barsnick at gmx.net Fri Jul 18 11:34:07 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 18 Jul 2014 11:34:07 +0200 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: <20140718093136.GC16702@sunshine.barsnick.net> References: <20140705111044.GB28058@sunshine.barsnick.net> <20140718093136.GC16702@sunshine.barsnick.net> Message-ID: <20140718093407.GD16702@sunshine.barsnick.net> On Fri, Jul 18, 2014 at 11:31:36 +0200, Moritz Barsnick wrote: > On Fri, Jul 18, 2014 at 14:56:22 +0530, subeesh.babu wrote: > > Can any one suggest how to reduce the CPU usage . > > Did you even read my reply? (You quoted it.) Have you tried the > suggestion? Did it help? Furthermore, if you do wish/need to recode, and if your ffmpeg uses libx264 as the default encoder (as you don't state an encoder explicitly on your command line, you can use one of the presets to get a better encoding framerate, at the cost of a higher bandwidth (roughly speaking). E.g. "-preset veryfast". Moritz From krueger at lesspain.de Fri Jul 18 11:34:43 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 18 Jul 2014 11:34:43 +0200 Subject: [FFmpeg-user] Possibility to dump AVCodecContext, AVFormatContext fields for a command line? Message-ID: Hi, is there any way to see the AVCodecContext, AVFormatContext fields used for a given command line other than using a debugger? Maybe a compile flag of some sort? Thanks, Robert From joolzg at btinternet.com Fri Jul 18 13:23:11 2014 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Fri, 18 Jul 2014 12:23:11 +0100 Subject: [FFmpeg-user] .pls does ffmpeg support this Message-ID: <1405682591.77131.YahooMailNeo@web87805.mail.ir2.yahoo.com> Im trying to get radio working but if i use this "http://bbc.co.uk/radio/listen/live/r4_aaclca.pls" as the input to ffmpeg i get "invalid data found" I checked with '-loglevel debug' and it seems to pull in the correct number of bytes for the .pls file, but nothing after. joolz From bouke at videotoolshed.com Fri Jul 18 13:32:53 2014 From: bouke at videotoolshed.com (Bouke (VideoToolShed)) Date: Fri, 18 Jul 2014 13:32:53 +0200 Subject: [FFmpeg-user] Want to hire a coder References: <1F66787461454C868881641D69BB21E9@HPKANTOOR> <20140717155203.GA19986@phare.normalesup.org> Message-ID: <071056A02C5346DF90E7CDF8961978F9@HPKANTOOR> ----- Original Message ----- From: "Nicolas George" >Already done, for the most part. You should explain your actual problem in > details instead of trying to hire someone. Ok, i'll try to outline the problem a bit more, and add some stuff others wrote on the develop L. And of course i'm interested in 'any' solution that will do the job, no matter the routine used, that's open to discussion of course. I need to add timecode to stream recordings, following either the internal clock or timecode as given on input, but with a bit of math based on the actual recording start. Currently this is not possible, as starting FFmpeg with -timecode yadda results in a file with the provided timecode, but between the command and the first frame recorded is an unknown / variable amount of time, thus there is no relation with the given time anymore. Hence it's not possible to stamp the output files with a timecode value that has an accurate relation to the given input timecode. Aim is to have multiple instances of FFmpeg using BM cards capturing, and have matching TC on all output files. It's not possible to start all streams at the same time, the BM API causes blue screens of death when it's called too often in a short time, at least half a second between the streams is needed. ----- Original Message ----- From: "Francois Visagie" > processing with the given initial timestamp. In addition, this approach is > vulnerable to clock drift. True, I don't think that's a real problem: clock drift is in worst case some 4 frames per hour (measured on my worst computer.). Thus, before the offset is more than half a frame (that could get you a frame offset due to rounding), 7 minutes have passed. It's not a problem to do a sync to a time server each minute or so. (And the latest generations of TC generators can act like a time server if needed.) > IF your recording environment provides genlock(?), might it be possible > for > ffmpeg to be a genlock client? That would be great, no idea how difficult that turns out to be though. If the sources are genlocked, the images will be in sync, and it's up to the new feature to decide when the given TC should be upnumbered cause the time between 'start' and the first frame buffered is < half a frame. > The problem with synchronising > the start of recording will remain but, as you seem to imply, few people > will be bothered by a possible less-than 1-frame offset. Less than 1 frame offset can only exist is sound, not in video of course. But yes, to get it 'really' right, the calculation of the correct time can only be done at the moment it's sure what time it is when the first frame is/will be buffered. --- IMHO, On the new feature, it's NOT possible to give 'any' timecode value in the startup commandline, since it's not clear what the time difference is between starting FFmpeg and the time the value is actually interpreted. (But i could be wrong, perhaps FFmpeg knows the exact time it's started, in that case some simple math could do the trick.). So my idea was to have FFmpeg ask for TC input when all needed preperations are done. Another approach could be to feed FFmpeg with -timecode TODdf / ndf, and have FFmpeg calculate the correct TC based on current system time when the first frame is buffered. From: "Oliver Fromme" > Just an idea ... Would it help to provide a "wait" option? > In other words, you specify a timestamp on the command line > that is in the near future (a minute or just a few seconds > ahead), and that "wait" option would instruct ffmpeg to wait > until the local system clock actually reaches that timestamp, > right before starting the recording. This could work just swell. Thx, Bouke --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From cehoyos at ag.or.at Fri Jul 18 13:51:35 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 18 Jul 2014 11:51:35 +0000 (UTC) Subject: [FFmpeg-user] .pls does ffmpeg support this References: <1405682591.77131.YahooMailNeo@web87805.mail.ir2.yahoo.com> Message-ID: JULIAN GARDNER btinternet.com> writes: > Im trying to get radio working but if i use this > "http://bbc.co.uk/radio/listen/live/r4_aaclca.pls" > as the input to ffmpeg i get "invalid data found" FFmpeg does not support playlists (you can find old patches), I cannot test atm but the streams inside the text files should / may work fine. Carl Eugen From cehoyos at ag.or.at Fri Jul 18 13:52:23 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 18 Jul 2014 11:52:23 +0000 (UTC) Subject: [FFmpeg-user] Possibility to dump AVCodecContext, AVFormatContext fields for a command line? References: Message-ID: Robert Kr?ger lesspain.de> writes: > is there any way to see the AVCodecContext, AVFormatContext fields > used for a given command line other than using a debugger? Maybe a > compile flag of some sort? It is currently not easily possible but could you explain your usecase? This would make a patch more likely imo. Carl Eugen From joolzg at btinternet.com Fri Jul 18 13:58:01 2014 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Fri, 18 Jul 2014 12:58:01 +0100 Subject: [FFmpeg-user] .pls does ffmpeg support this In-Reply-To: References: <1405682591.77131.YahooMailNeo@web87805.mail.ir2.yahoo.com> Message-ID: <1405684681.52388.YahooMailNeo@web87801.mail.ir2.yahoo.com> ----- Original Message ----- > From: Carl Eugen Hoyos > To: ffmpeg-user at ffmpeg.org > Cc: > Sent: Friday, 18 July 2014, 13:51 > Subject: Re: [FFmpeg-user] .pls does ffmpeg support this > > JULIAN GARDNER btinternet.com> writes: > >> Im trying to get radio working but if i use this >> "http://bbc.co.uk/radio/listen/live/r4_aaclca.pls" >> as the input to ffmpeg i get "invalid data found" > > FFmpeg does not support playlists (you can find old patches), > I cannot test atm but the streams inside the text files > should / may work fine. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > OK thanks, the streams inside do work ok joolz From phil_rhodes at rocketmail.com Fri Jul 18 14:41:50 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Fri, 18 Jul 2014 05:41:50 -0700 Subject: [FFmpeg-user] Want to hire a coder In-Reply-To: <006c01cfa25c$2564aec0$702e0c40$@gmail.com> References: <1F66787461454C868881641D69BB21E9@HPKANTOOR> <006c01cfa25c$2564aec0$702e0c40$@gmail.com> Message-ID: <1405687310.64680.YahooMailNeo@web161502.mail.bf1.yahoo.com> >?3)relying on the local system clock to provide future timestamps using the >?given value as offset. >... this approach is?vulnerable to clock drift. I don't know about Robert's use case, but in many situations, timecode is given as a start index and simply frame-counts up from there. Timecode as used in film and TV production is not synonymous with the sort of timestamps that seem to be a key part of multimedia file playback. P From krueger at lesspain.de Fri Jul 18 17:42:15 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 18 Jul 2014 17:42:15 +0200 Subject: [FFmpeg-user] Possibility to dump AVCodecContext, AVFormatContext fields for a command line? In-Reply-To: References: Message-ID: On Fri, Jul 18, 2014 at 1:52 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> is there any way to see the AVCodecContext, AVFormatContext fields >> used for a given command line other than using a debugger? Maybe a >> compile flag of some sort? > > It is currently not easily possible but could you explain your > usecase? > This would make a patch more likely imo. > The use case is simply when working with the api doing encoding/muxing and running into a problem in many cases the key is some field value in one of those contexts not being set correctly, where correctly is not always obvious (see the posting on libav-user yesterday where you helped me). Simulating a similar encoding/muxing using an ffmpeg command line is the first thing I do to see if it should generally work. If that is the case, looking at the context fields helps a lot. I used to fire up a gcc/gdb based tool for that but that stopped to work on my platform now. Probably not a typical ffmpeg user use case. If there is no way currently then I will just have to get familiar with the standard debugging tools. I just thought I'd ask before I do that. Robert From cehoyos at ag.or.at Fri Jul 18 18:32:12 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 18 Jul 2014 16:32:12 +0000 (UTC) Subject: [FFmpeg-user] Possibility to dump AVCodecContext, AVFormatContext fields for a command line? References: Message-ID: Robert Kr?ger lesspain.de> writes: > >> is there any way to see the AVCodecContext, AVFormatContext fields > >> used for a given command line other than using a debugger? Maybe a > >> compile flag of some sort? > > > > It is currently not easily possible but could you explain your > > usecase? > > This would make a patch more likely imo. > > > > The use case is simply when working with the api doing > encoding/muxing and running into a problem in many > cases the key is some field value in one of those > contexts not being set correctly, where correctly is > not always obvious (see the posting on libav-user > yesterday where you helped me). I don't think this new feature would have helped you in that case. I am a little surprised that you always mention gdb, I personally find printf much easier to use. (But that may be just me.) I suggest you write a patch yourself, it should be trivial and you probably learn something about FFmpeg internals. Carl Eugen From krueger at lesspain.de Fri Jul 18 19:07:39 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 18 Jul 2014 19:07:39 +0200 Subject: [FFmpeg-user] Possibility to dump AVCodecContext, AVFormatContext fields for a command line? In-Reply-To: References: Message-ID: On Jul 18, 2014 6:32 PM, "Carl Eugen Hoyos" wrote: > > Robert Kr?ger lesspain.de> writes: > > > >> is there any way to see the AVCodecContext, AVFormatContext fields > > >> used for a given command line other than using a debugger? Maybe a > > >> compile flag of some sort? > > > > > > It is currently not easily possible but could you explain your > > > usecase? > > > This would make a patch more likely imo. > > > > > > > The use case is simply when working with the api doing > > encoding/muxing and running into a problem in many > > cases the key is some field value in one of those > > contexts not being set correctly, where correctly is > > not always obvious (see the posting on libav-user > > yesterday where you helped me). > > I don't think this new feature would have helped you > in that case. > > I am a little surprised that you always mention > gdb, I personally find printf much easier to use. > (But that may be just me.) I have done that as well a few times when I knew what I was looking for but those two structs have a _lot_ of fields. > > I suggest you write a patch yourself, it should be > trivial and you probably learn something about > FFmpeg internals. Fair enough. I'll think about it. From codingpotatolinda at gmail.com Fri Jul 18 22:11:09 2014 From: codingpotatolinda at gmail.com (Li) Date: Fri, 18 Jul 2014 15:11:09 -0500 Subject: [FFmpeg-user] ffserver + ffmpeg, out rtsp stream: why ffplay cannot play the stream, but movie player can Message-ID: On Ubuntu 12.04, I use ffserver + ffmpeg. There are a little revision of the original /etc/ffserver.conf: RTSPPort 5454 RTSPBindAddress 0.0.0.0 # ... Format rtp # coming from live feed 'feed1' Feed feed1.ffm The command of ffmpeg (Option 1) is: ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv' http://localhost:8090/feed1.ffm BTW, if I use (Option 2) as below, it does not work (Why?): ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv' http://192.168.1.105:8090/feed1.ffm ## not work: [http @ 0x21a9c80] HTTP error 404 Not Foundhttp://192.168.1.105:8090/feed1.ffm: Input/output error So now I need to display the stream. On the other computer: (Option 1) ffplay rtsp://192.168.1.105:5454/test2-rtsp.mpg Not work. [Output] rtsp UDP timeout, retrying with TCP. Why? (Option 2) movie player: Open location: rtsp:// 192.168.1.105:5454/test2-rtsp.mpg it works! Why? What difference? From codingpotatolinda at gmail.com Fri Jul 18 22:53:59 2014 From: codingpotatolinda at gmail.com (Li) Date: Fri, 18 Jul 2014 15:53:59 -0500 Subject: [FFmpeg-user] Red5 server + ffmpeg feed stream, and cannot play the stream with Movie Player. Message-ID: Ubuntu 12.04, (a) start Red5 server in Terminal 1 (b) feed a stream to the Red5 server in Terminal 2 ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/avatar.flv' -vcodec libx264 -ab 128k -ac 2 -ar 44100 -r 25 -s 320x240 -vb 660k -f flv 'rtmp://localhost/oflaDemo/streamTest' Terminal 2 shows some messages that it is streaming. (c) play the stream I use Movie Player: rtmp://localhost/oflaDemo/streamTest [Result] An error occurred. Stream contains no data. Why? From spamtrap00001 at gmail.com Sat Jul 19 02:32:31 2014 From: spamtrap00001 at gmail.com (Spam Spamtrap) Date: Sat, 19 Jul 2014 02:32:31 +0200 Subject: [FFmpeg-user] "RTP: dropping old packet received too late" after restarting RTP stream Message-ID: I'm trying to stream an JPEG-image (updated once a second by a program) via RTP under Windows 7. This is the line I use to create the stream: ffmpeg.exe -f image2 -r 1 -re -loop 1 -i capture.jpg -an -c:v mpeg2video -r 1 -f rtp rtp://localhost:1234 This works and I can watch the stream updating whenever the image file is updated, for example with VLC or this command: ffplay.exe rtp://localhost:1234 But if I stop the stream and restart it (without restarting the player, be it VLC or ffplay), I get continous messages like that at the ffplay console: [mpeg2video @ 045aa060] RTP: dropping old packet received too late Last message repeated 7 times The video is no longer updating at all. As soon as I restart the player the video is live again. To me it seems the player thinks it's way out of sync and drops all the frames. What can I do to send a reset to the players? Or to make the players ignore the old package error? I'm mainly talking about VLC here, because that's what I want to use. Sinc VLC is using ffmpeg to decode anyway, so it should be the same solution for ffplay and VLC I hope. From david at davidfavor.com Sat Jul 19 18:26:09 2014 From: david at davidfavor.com (David Favor) Date: Sat, 19 Jul 2014 11:26:09 -0500 Subject: [FFmpeg-user] Enabling libx265 In-Reply-To: References: <678C8AA7-A705-4532-9B72-6D71B6AE1069@apost.plala.or.jp> <6020031A-5DFD-405F-9E39-71F3B75CEF58@apost.plala.or.jp> <2E584549-DB1F-4A9E-BB2D-85D47DD66D45@apost.plala.or.jp> Message-ID: <53CA9C21.1080103@davidfavor.com> ?? ?? wrote: > 2014/04/24 1:23?Jan Ehrhardt ????? > >> ?? ?? in gmane.comp.video.ffmpeg.user (Wed, 23 Apr 2014 23:35:03 +0900): >>> Instead, configure ffmpeg with --pkg-config-flags=--static option, this issue is solved. >>> By adding --static, x265.pc gives -lc++ or -lstdc++ with --cflags to ffmpeg. >> I did not know the --pkg-config-flags syntax, but this boils down to the >> same solution: >> http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=5&t=4&start=20#p5338 >> >> Put this at the beginning of your ./configure commandline: >> >> pkg_config='pkg-config --static' >> >> This will add the Libs.private to the linker command as well. See man >> pkg-config. > > Thanks. I?ve confirmed that this option also solves the issue with Libs.private. Or if you'd like to build shared, here's the correct incantation... cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source You know everything is correct, when the output of otool shows absolute paths for all objects. otool -L $prefix/lib/libx265.dylib From david at davidfavor.com Sat Jul 19 18:31:11 2014 From: david at davidfavor.com (David Favor) Date: Sat, 19 Jul 2014 11:31:11 -0500 Subject: [FFmpeg-user] ffmpeg - ERROR: opus not found In-Reply-To: References: Message-ID: <53CA9D4F.4020307@davidfavor.com> shobin b wrote: > Hi, > I am doing ffmpeg for screen capture purpose.when i am configuring it is > showing some error.Please tell me why i am getting the error, > > [yash at localhost ffmpeg]$ ./configure --prefix="$HOME/ffmpeg_build" > --extra-cflags="-I$HOME/ffmpeg_build/include" > --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" > --disable-yasm --extra-libs="-ldl" --enable-gpl --enable-libass > --enable-libfreetype --enable-libmp3lame --enable-libopus > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-nonfree --enable-x11grab > ERROR: opus not found > > If you think configure made a mistake, make sure you are using the latest > version from Git. If the latest version fails, report the problem to the > ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "config.log" produced by configure as this will help > solve the problem. You may also require installing the associated foo-dev packages also. For example on Ubuntu... biz-net2# apt-file search opus.h libopus-dev: /usr/include/opus/opus.h thunderbird-dev: /usr/include/thunderbird/opus/opus.h z88dk-data: /usr/share/z88dk/include/zxopus.h Notice the opus.h file (what ffmpeg looks for + requires) lives in the libopus-dev package, rather than the libopus package. - David From 2457091371 at qq.com Wed Jul 16 05:04:57 2014 From: 2457091371 at qq.com (=?utf-8?B?54Gw54Gw?=) Date: Wed, 16 Jul 2014 11:04:57 +0800 Subject: [FFmpeg-user] (no subject) Message-ID: Hello sir!This is the error in config.log.What wrong with '-mcpu='??? heck_cpp_condition stddef.h defined __ARM_ARCH_8A__ || defined __TARGET_ARCH_8_A -mcpu= check_cpp -mcpu= BEGIN /tmp/ffconf.ZH2Liqwh.c 1 #include 2 #if !(defined __ARM_ARCH_8A__ || defined __TARGET_ARCH_8_A) 3 #error "unsatisfied condition: defined __ARM_ARCH_8A__ || defined __TARGET_ARCH_8_A" 4 #endif END /tmp/ffconf.ZH2Liqwh.c gcc -mcpu= -E -o /tmp/ffconf.w8tRgw1E.o /tmp/ffconf.ZH2Liqwh.c gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead gcc: error: missing argument to '-mcpu=' check_ld cc check_cc BEGIN /tmp/ffconf.ZH2Liqwh.c 1 int main(void){ return 0; } END /tmp/ffconf.ZH2Liqwh.c gcc -mcpu= -c -o /tmp/ffconf.w8tRgw1E.o /tmp/ffconf.ZH2Liqwh.c gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead gcc: error: missing argument to '-mcpu=' C compiler test failed.? From davidventura27 at gmail.com Wed Jul 16 04:56:00 2014 From: davidventura27 at gmail.com (David Ventura) Date: Tue, 15 Jul 2014 23:56:00 -0300 Subject: [FFmpeg-user] Variable input framerate Message-ID: Hi I'm currently streaming some (live) video over rtmp from a source with variable framerate, and I need to output constant framerate, using -vsync 1 doesn't do anything about this. I'm piping a vnc session (raw) into ffmpeg, but the vnc client gives me framerate only when there's movement; so the framerate is *not* constant. While streaming (to rtmp), it works okay, but the recorded output uses ffmpeg's default framerate (25) which not only is fake, but also having variable framerates I can't just force another framerate, thus extending the video linearly, because it gets out of sync. TL;DR: I have variable input frame rate (from multiple FPS to a frame every 10-30 seconds) and I need constant framerate output (having dropped/duplicate frames is no issue). -vsync 1 doesn't work -- We need only a little more code,and little more money,and little more time, and little more sleep but the world needs a lot more freedom From jayu_magadum at yahoo.com Wed Jul 16 07:51:46 2014 From: jayu_magadum at yahoo.com (jayu_magadum) Date: Tue, 15 Jul 2014 22:51:46 -0700 (PDT) Subject: [FFmpeg-user] Live HLS content for multiresolution using FFMPEG, with Bandwidth as a parameter Message-ID: <1405489906008-4666363.post@n4.nabble.com> Hi I have currently able to create Live HLS content using the following command: ffmpeg -re -i input.mp4 -map 0 -codec:v libx264 -codec:a libvo_aacenc -f ssegment -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 -segment_list_size 4 out%02d.ts I want to know whether FFMPEG can create .m3u8 with BANDWIDTH parameter as below? I found variantplaylistcreator in IOS,which creates .plist and .m3u8 and then creates .m3u8 with this bandwidth params,for ex: #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3868161 480p/prog_index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=7781193 720p/prog_index.m3u8 where as 480p/prog_index.m3u8 will have : #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:10, fileSequence0.ts #EXTINF:10, fileSequence1.ts #EXTINF:10, fileSequence2.ts Is is possible to create such .m3u8 using FFMPEG,which should also have a BANDWIDTH parameter? Let me know. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Live-HLS-content-for-multiresolution-using-FFMPEG-with-Bandwidth-as-a-parameter-tp4666363.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From resham.shrivastava at fintotal.com Tue Jul 15 12:35:37 2014 From: resham.shrivastava at fintotal.com (Resham Shrivastava) Date: Tue, 15 Jul 2014 16:05:37 +0530 Subject: [FFmpeg-user] ERROR: freetype2 not found Issue with FFmpeg 2.2.5 "Muybridge" Message-ID: Hi, I had downloaded FFmpeg 2.2.5 "Muybridge" from https://www.ffmpeg.org/download.html on my ubuntu 14.04 LTS. and when i am trying to configure with --enable-libfreetype :- It throws error ERROR: freetype2 not found ... Can you let me know the reason.. i had also attached config.log Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 199384 bytes Desc: not available URL: From sanidhya09 at gmail.com Wed Jul 16 09:07:52 2014 From: sanidhya09 at gmail.com (sanidhya kumar) Date: Wed, 16 Jul 2014 12:37:52 +0530 Subject: [FFmpeg-user] reg ffmpeg android configuration in linux mint x86 Message-ID: xicom at XT-ANDROID-191 ~/android-ndk-r9d/ffmpeg-2.3 $ ./build_android.sh yasm/nasm not found or too old. Use --disable-yasm for a crippled build. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solve the problem. ./build_android.sh: line 16: --disable-yasm: command not found ./build_android.sh: line 19: --enable-shared: command not found ./build_android.sh: line 21: --disable-static: command not found ./build_android.sh: line 23: --disable-doc: command not found ./build_android.sh: line 25: --disable-ffmpeg: command not found ./build_android.sh: line 27: --disable-ffplay: command not found ./build_android.sh: line 29: --disable-ffprobe: command not found ./build_android.sh: line 31: --disable-ffserver: command not found ./build_android.sh: line 33: --disable-avdevice: command not found ./build_android.sh: line 35: --disable-doc: command not found ./build_android.sh: line 37: --disable-symver: command not found ./build_android.sh: line 39: --cross-prefix=/xicom/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-: No such file or directory ./build_android.sh: line 41: --target-os=linux: command not found ./build_android.sh: line 43: --arch=arm: command not found ./build_android.sh: line 45: --enable-cross-compile: command not found ./build_android.sh: line 47: --sysroot=/xicom/android-ndk-r9d/platforms/android-9/arch-arm/: No such file or directory ./build_android.sh: line 49: --extra-cflags=-Os -fpic -marm: command not found ./build_android.sh: line 51: --extra-ldflags=: command not found Makefile:2: config.mak: No such file or directory Makefile:58: /common.mak: No such file or directory Makefile:98: /libavutil/Makefile: No such file or directory Makefile:98: /library.mak: No such file or directory Makefile:100: /doc/Makefile: No such file or directory Makefile:183: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. Makefile:2: config.mak: No such file or directory Makefile:58: /common.mak: No such file or directory Makefile:98: /libavutil/Makefile: No such file or directory Makefile:98: /library.mak: No such file or directory Makefile:100: /doc/Makefile: No such file or directory Makefile:183: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. Makefile:2: config.mak: No such file or directory Makefile:58: /common.mak: No such file or directory Makefile:98: /libavutil/Makefile: No such file or directory Makefile:98: /library.mak: No such file or directory Makefile:100: /doc/Makefile: No such file or directory Makefile:183: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. -- With Regards, SANIDHYA | SOFTWARE ENGINEER | ANDROID DEVELOPER PH:+91 8130988152 http://in.linkedin.com/pub/sanidhya-kumar/22/6/645 *Sanidhya09* -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 13654 bytes Desc: not available URL: From venu.kosuri at wdbsystems.com Fri Jul 18 13:26:19 2014 From: venu.kosuri at wdbsystems.com (venu kosuri) Date: Fri, 18 Jul 2014 16:56:19 +0530 Subject: [FFmpeg-user] compilation problem Message-ID: <000c01cfa27b$1e53a8b0$5afafa10$@kosuri@wdbsystems.com> Hi I am trying to build ffmpeg for linphone on ubuntu host machine . However I am getting compilation error .Pl see error log . pl help me --venu From venu.kosuri at wdbsystems.com Fri Jul 18 13:27:19 2014 From: venu.kosuri at wdbsystems.com (venu kosuri) Date: Fri, 18 Jul 2014 16:57:19 +0530 Subject: [FFmpeg-user] compilation problem Message-ID: <001101cfa27b$4204ed50$c60ec7f0$@kosuri@wdbsystems.com> Sorry to attach log . pl see attached --venu From: venu kosuri [mailto:venu.kosuri at wdbsystems.com] Sent: 18 July 2014 16:56 To: 'ffmpeg-user at ffmpeg.org' Subject: compilation problem Hi I am trying to build ffmpeg for linphone on ubuntu host machine . However I am getting compilation error .Pl see error log . pl help me --venu -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 94420 bytes Desc: not available URL: From david at davidfavor.com Sat Jul 19 18:46:14 2014 From: david at davidfavor.com (David Favor) Date: Sat, 19 Jul 2014 11:46:14 -0500 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> Message-ID: <53CAA0D6.6010604@davidfavor.com> Orest Hasa wrote: > Hello, > > I installed the ffmpeg with the help of the following tutorial: > > http://trac.ffmpeg.org/wiki/CompilationGuide/Centos > > Now that compile proces is done what else should I do, so we can > integrate the ffmpeg withing a video site. > > Do I need to install ffmpeg-php, if yes can you please send me a > tutorial our server is centos 6.5. > > Thanks in advance, > Orest Expand/Clarify your question a bit + likely someone can help. For example, if you're simply serving videos, all you require is to transcode as .mp4 files with a -bufsize:v set large enough to only buffer a few seconds of video (based on your video's bitrate)... And... You're done. You may also require adding -movflags +faststart, although this seems to be done by default now. From h.reindl at thelounge.net Sat Jul 19 18:47:20 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 19 Jul 2014 18:47:20 +0200 Subject: [FFmpeg-user] DAMNED: (no subject) In-Reply-To: References: Message-ID: <53CAA118.3060702@thelounge.net> Am 16.07.2014 05:04, schrieb: first: a missing subject is rude and deserves no answer > Hello sir!This is the error in config.log.What wrong with '-mcpu='??? it is mentioned in the message * it is deprecated and you should use -mtune * missing argument to '-mcpu=' clearly says no value provided for the param > heck_cpp_condition stddef.h defined __ARM_ARCH_8A__ || defined __TARGET_ARCH_8_A -mcpu= > check_cpp -mcpu= > BEGIN /tmp/ffconf.ZH2Liqwh.c > 1 #include > 2 #if !(defined __ARM_ARCH_8A__ || defined __TARGET_ARCH_8_A) > 3 #error "unsatisfied condition: defined __ARM_ARCH_8A__ || defined __TARGET_ARCH_8_A" > 4 #endif > END /tmp/ffconf.ZH2Liqwh.c > gcc -mcpu= -E -o /tmp/ffconf.w8tRgw1E.o /tmp/ffconf.ZH2Liqwh.c > gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead > gcc: error: missing argument to '-mcpu=' > check_ld cc > check_cc > BEGIN /tmp/ffconf.ZH2Liqwh.c > 1 int main(void){ return 0; } > END /tmp/ffconf.ZH2Liqwh.c > gcc -mcpu= -c -o /tmp/ffconf.w8tRgw1E.o /tmp/ffconf.ZH2Liqwh.c > gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead > gcc: error: missing argument to '-mcpu=' > C compiler test failed. this is seriously the only information you provide? * nobody knows your environment * nobody knows your configure string * nobody knows the version you try to build come back after you finished read the following link http://www.catb.org/esr/faqs/smart-questions.html#beprecise -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Sat Jul 19 18:49:06 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 19 Jul 2014 18:49:06 +0200 Subject: [FFmpeg-user] ERROR: freetype2 not found Issue with FFmpeg 2.2.5 "Muybridge" In-Reply-To: References: Message-ID: <53CAA182.2000103@thelounge.net> Am 15.07.2014 12:35, schrieb Resham Shrivastava: > I had downloaded FFmpeg 2.2.5 "Muybridge" from > https://www.ffmpeg.org/download.html on my ubuntu 14.04 LTS. and when i am > trying to configure with --enable-libfreetype :- > > It throws error ERROR: freetype2 not found ... install the freetype devel package or don't use --enable-libfreetype > Can you let me know the reason.. because it is not there -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From ajsinclair at gmail.com Sun Jul 20 04:16:20 2014 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Sun, 20 Jul 2014 12:16:20 +1000 Subject: [FFmpeg-user] Problem splicing files Message-ID: Hi All, I am having a strange problem splicing some files back together where when I splice the files back together ffplay reporting: [h264 @ 0x7fe002024000] Reinit context to 640x368, pix_fmt: yuv420p This seems to cause a number of players to have issues that causes the audio to go out of sync. Example here: http://bucket01.mscreentv.com.s3.amazonaws.com/ffmpeg_tests/test_out.mp4 The only indicators I have on what might be going wrong is this + some warnings in the concat command see below, noting that all the files that are spliced together are 640x360 (also see below) Encoding video that is spliced in: ffmpeg -i http://msntest.serving-sys.com/BurstingRes/Site-1122/Type-16/61e59778-0f4a-4d63-af0d-63cf0179a6be.mp4 -c:v libx264 -c:a libfdk_aac -s 640x360 -t 5 -r 25 -profile:v main testad.ts ffmpeg version N-64602-g9195c26 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 11 2014 15:41:21 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --enable-libx264 --enable-libfdk_aac --enable-nonfree --enable-gpl --enable-ffplay --enable-libfreetype libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ' http://msntest.serving-sys.com/BurstingRes/Site-1122/Type-16/61e59778-0f4a-4d63-af0d-63cf0179a6be.mp4 ': Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom creation_time : 2014-05-23 03:22:24 Duration: 00:00:30.04, start: 0.000000, bitrate: 554 kb/s Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 640x360 [SAR 1:1 DAR 16:9], 393 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2014-05-23 03:22:24 handler_name : Mainconcept MP4 Video Media Handler encoder : AVC Coding Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 157 kb/s (default) Metadata: creation_time : 2014-05-23 03:22:24 handler_name : Mainconcept MP4 Sound Media Handler File 'testad.ts' already exists. Overwrite ? [y/N] y [libx264 @ 0x7ff14b02c600] using SAR=1/1 [libx264 @ 0x7ff14b02c600] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0x7ff14b02c600] profile Main, level 3.0 [mpegts @ 0x7ff14b02ba00] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times Output #0, mpegts, to 'testad.ts': Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom encoder : Lavf55.45.100 Stream #0:0(eng): Video: h264 (libx264), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2014-05-23 03:22:24 handler_name : Mainconcept MP4 Video Media Handler encoder : Lavc55.69.100 libx264 Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 139 kb/s (default) Metadata: creation_time : 2014-05-23 03:22:24 handler_name : Mainconcept MP4 Sound Media Handler encoder : Lavc55.69.100 libfdk_aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help frame= 125 fps= 85 q=-1.0 Lsize= 460kB time=00:00:05.01 bitrate= 751.5kbits/s video:321kB audio:87kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 12.770018% [libx264 @ 0x7ff14b02c600] frame I:4 Avg QP:21.77 size: 20420 [libx264 @ 0x7ff14b02c600] frame P:68 Avg QP:24.76 size: 3014 [libx264 @ 0x7ff14b02c600] frame B:53 Avg QP:30.46 size: 795 [libx264 @ 0x7ff14b02c600] consecutive B-frames: 36.8% 8.0% 36.0% 19.2% [libx264 @ 0x7ff14b02c600] mb I I16..4: 19.4% 0.0% 80.6% [libx264 @ 0x7ff14b02c600] mb P I16..4: 2.6% 0.0% 1.8% P16..4: 41.4% 9.4% 3.0% 0.0% 0.0% skip:41.9% [libx264 @ 0x7ff14b02c600] mb B I16..4: 0.1% 0.0% 0.2% B16..8: 39.7% 2.6% 0.6% direct: 0.6% skip:56.1% L0:48.0% L1:47.6% BI: 4.4% [libx264 @ 0x7ff14b02c600] coded y,uvDC,uvAC intra: 65.0% 42.8% 11.8% inter: 8.4% 3.8% 0.1% [libx264 @ 0x7ff14b02c600] i16 v,h,dc,p: 21% 33% 13% 33% [libx264 @ 0x7ff14b02c600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 29% 13% 5% 6% 5% 7% 5% 6% [libx264 @ 0x7ff14b02c600] i8c dc,h,v,p: 45% 24% 21% 9% [libx264 @ 0x7ff14b02c600] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x7ff14b02c600] ref P L0: 75.7% 10.7% 11.7% 2.0% [libx264 @ 0x7ff14b02c600] ref B L0: 85.9% 13.4% 0.7% [libx264 @ 0x7ff14b02c600] ref B L1: 92.0% 8.0% [libx264 @ 0x7ff14b02c600] kb/s:525.99 *** Concat command **** ffmpeg -i "concat:test_1.ts|testad.ts|test_2.ts|testad.ts|test_3.ts" -c copy -bsf:a aac_adtstoasc -y test_out.mp4 ffmpeg version N-64602-g9195c26 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 11 2014 15:41:21 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --enable-libx264 --enable-libfdk_aac --enable-nonfree --enable-gpl --enable-ffplay --enable-libfreetype libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'concat:test_1.ts|testad.ts|test_2.ts|testad.ts|test_3.ts': Duration: 00:00:10.73, start: 1.480000, bitrate: 4982 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 116 kb/s [mp4 @ 0x7fb45a025600] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times Output #0, mp4, to 'test_out.mp4': Metadata: encoder : Lavf55.45.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360, q=2-31, 25 fps, 90k tbn, 90k tbc Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 116 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 665091, current: 660992; changing to 665092. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 665092, current: 662016; changing to 665093. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 665093, current: 663040; changing to 665094. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 665094, current: 664064; changing to 665095. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 665095, current: 665088; changing to 665096. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 1340703, current: 1336568; changing to 1340704. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 1340704, current: 1337592; changing to 1340705. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 1340705, current: 1338616; changing to 1340706. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 1340706, current: 1339640; changing to 1340707. This may result in incorrect timestamps in the output file. [mp4 @ 0x7fb45a025600] Non-monotonous DTS in output stream 0:1; previous: 1340707, current: 1340664; changing to 1340708. This may result in incorrect timestamps in the output file. frame= 1025 fps=0.0 q=-1.0 Lsize= 5938kB time=00:00:40.94 bitrate=1188.1kbits/s video:5369kB audio:533kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.598742% Details of other files that are concat'd together in the concat command: ffprobe test_1.ts ffprobe version N-64602-g9195c26 Copyright (c) 2007-2014 the FFmpeg developers built on Jul 11 2014 15:41:21 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --enable-libx264 --enable-libfdk_aac --enable-nonfree --enable-gpl --enable-ffplay --enable-libfreetype libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'test_1.ts': Duration: 00:00:10.16, start: 1.480000, bitrate: 1382 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 116 kb/s Andrews-MacBook-Pro:tmp andrew$ ffprobe test_2.ts ffprobe version N-64602-g9195c26 Copyright (c) 2007-2014 the FFmpeg developers built on Jul 11 2014 15:41:21 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --enable-libx264 --enable-libfdk_aac --enable-nonfree --enable-gpl --enable-ffplay --enable-libfreetype libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'test_2.ts': Duration: 00:00:10.41, start: 1.400000, bitrate: 1612 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 103 kb/s Andrews-MacBook-Pro:tmp andrew$ ffprobe test_3.ts ffprobe version N-64602-g9195c26 Copyright (c) 2007-2014 the FFmpeg developers built on Jul 11 2014 15:41:21 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --enable-libx264 --enable-libfdk_aac --enable-nonfree --enable-gpl --enable-ffplay --enable-libfreetype libavutil 52. 92.100 / 52. 92.100 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'test_3.ts': Duration: 00:00:10.81, start: 1.400000, bitrate: 1397 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 101 kb/s From cehoyos at ag.or.at Sun Jul 20 11:58:46 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 09:58:46 +0000 (UTC) Subject: [FFmpeg-user] Problem splicing files References: Message-ID: Andrew Sinclair gmail.com> writes: [...] It may be just me, but unfortunately, I don't understand a word... (starting with "splicing") And is it possible that you uploaded an output file? This is (nearly) never useful, input files are typically needed. Please explain: What you want to do, what you tried (command line including console output) and what went wrong. Sorry, Carl Eugen From cehoyos at ag.or.at Sun Jul 20 12:04:37 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 10:04:37 +0000 (UTC) Subject: [FFmpeg-user] reg ffmpeg android configuration in linux mint x86 References: Message-ID: sanidhya kumar gmail.com> writes: > $ ./build_android.sh Sorry, on this mailing list, *only* compilation with FFmpeg's configure script and (gnu) make are supported. Above script is known to contain serious bugs, if you find any problems with the FFmpeg configure script, *please* report them here! If you need support with FFmpeg's configure script, please ask here. Carl Eugen From cehoyos at ag.or.at Sun Jul 20 12:02:43 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 10:02:43 +0000 (UTC) Subject: [FFmpeg-user] compilation problem References: <37539.0863082886$1405788380@news.gmane.org> Message-ID: venu kosuri wdbsystems.com> writes: > I am trying to build ffmpeg for linphone on > ubuntu host machine. It appears that your cross compiler cannot find the necessary libraries. Can you compile Hello World with your cross compiler? Are you sure that the --sysroot option is set correctly? Unrelated: Please start with a simple configure line (cross- prefix, sysroot, target-os, arch) and once that works, add the specific options you need. Carl Eugen From cehoyos at ag.or.at Sun Jul 20 12:06:59 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 10:06:59 +0000 (UTC) Subject: [FFmpeg-user] Variable input framerate References: Message-ID: David Ventura gmail.com> writes: > I'm currently streaming some (live) video over rtmp from > a source with variable framerate, and I need to output > constant framerate Command line and complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Sun Jul 20 12:09:25 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 10:09:25 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > I tried to add -vsync 0 so the full command line was: -vsync 0 is an input option. Please do not top-post here, Carl Eugen From phpdev at ehrhardt.nl Sun Jul 20 17:13:18 2014 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 20 Jul 2014 17:13:18 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> Message-ID: Orest Hasa in gmane.comp.video.ffmpeg.user (Tue, 15 Jul 2014 10:00:59 +0200): >Do I need to install ffmpeg-php, if yes can you please send me a >tutorial our server is centos 6.5. If you want direct access from within PHP to the videofiles, I would not recommend ffmpeg-php. With some trouble you can get it to compile, but only with FFmpeg 0.6: ffmpeg-php version 0.6.0-svn ffmpeg-php built on Jun 29 2013 14:06:13 ffmpeg-php gd support disabled ffmpeg libavcodec version Lavc52.72.2 ffmpeg libavformat version Lavf52.64.2 ffmpeg swscaler version SwS0.11.0 There is e new PHP extension which uses FFmpeg: php-av. Documentation: https://github.com/chung-leong/av/wiki Jan From phil_rhodes at rocketmail.com Sun Jul 20 17:37:36 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sun, 20 Jul 2014 08:37:36 -0700 Subject: [FFmpeg-user] Variable input framerate In-Reply-To: References: Message-ID: <1405870656.20429.YahooMailNeo@web161501.mail.bf1.yahoo.com> >?Command line and complete, uncut console output missing. For christ's sake, he's asking?how to do something! He doesn't have?a command line! If you can't or don't want to help, you're not required to, but please stop this ridiculous charade. P From cehoyos at ag.or.at Sun Jul 20 17:52:17 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 15:52:17 +0000 (UTC) Subject: [FFmpeg-user] Variable input framerate References: <1405870656.20429.YahooMailNeo@web161501.mail.bf1.yahoo.com> Message-ID: Phil Rhodes rocketmail.com> writes: > >?Command line and complete, uncut console output missing. > > For christ's sake, he's asking?how to do something! Yes, this is true. To answer his question, I need to see the command line he is currently using together with the complete, uncut console output. I know very well that quite a few developers do have crystal balls and can answer such questions without seeing the command line (etc.) but unfortunately (for for David) they usually don't post here. > He doesn't have?a command line! I think this is not true. He wrote "using -vsync 1" which I believe indicates he is using a ffmpeg command line. The question is now: Are you a liar or are you clueless? > If you can't or don't want to help, you're not required > to, but please stop this ridiculous charade. This is extremely funny if you write it given how many emails you have written that helped nobody, contained a lot of nonsense and how many times you have been asked to disappear. Carl Eugen From cehoyos at ag.or.at Sun Jul 20 17:57:32 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 15:57:32 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg for a joomla video website References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> Message-ID: Jan Ehrhardt ehrhardt.nl> writes: > I would not recommend ffmpeg-php. With some trouble > you can get it to compile, but only with FFmpeg 0.6: Just to make sure everybody understands: FFmpeg 0.6 is not maintained for several years (please do not get fooled by updated packages in some distributions). It contains known security issues, so you should definitely not parse files from unknown sources with it. Carl Eugen From h.reindl at thelounge.net Sun Jul 20 18:27:40 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 20 Jul 2014 18:27:40 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> Message-ID: <53CBEDFC.10305@thelounge.net> Am 20.07.2014 17:13, schrieb Jan Ehrhardt: > Orest Hasa in gmane.comp.video.ffmpeg.user (Tue, 15 Jul 2014 10:00:59 > +0200): >> Do I need to install ffmpeg-php, if yes can you please send me a >> tutorial our server is centos 6.5. > > If you want direct access from within PHP to the videofiles, I would not > recommend ffmpeg-php. With some trouble you can get it to compile, but > only with FFmpeg 0.6: unacceptable - WTF 0.6?! don't recommned such crap in the public > ffmpeg-php version 0.6.0-svn > ffmpeg-php built on Jun 29 2013 14:06:13 > ffmpeg-php gd support disabled > ffmpeg libavcodec version Lavc52.72.2 > ffmpeg libavformat version Lavf52.64.2 > ffmpeg swscaler version SwS0.11.0 > > There is e new PHP extension which uses FFmpeg: php-av. > Documentation: https://github.com/chung-leong/av/wiki and what can that stuff do? nothing! there is no single function for encoding and for deliver existing video files from a website you don't need ffmpeg at all -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From phil_rhodes at rocketmail.com Sun Jul 20 18:47:02 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sun, 20 Jul 2014 09:47:02 -0700 Subject: [FFmpeg-user] Variable input framerate In-Reply-To: References: <1405870656.20429.YahooMailNeo@web161501.mail.bf1.yahoo.com> Message-ID: <1405874822.30768.YahooMailNeo@web161501.mail.bf1.yahoo.com> Balls. Either you know how to help the guy, or you don't. I can only presume you don't - which is fine - but your response is to repeatedly post your tired little form-letter, which is tantamount to spam. Almost all you ever do on this list is demand information of people that you know they don't have. You aren't even attempting to be helpful, so please don't try to patronise me. You have no idea who I am or what my background is and your arrogance is towering. P From cehoyos at ag.or.at Sun Jul 20 19:56:13 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 20 Jul 2014 17:56:13 +0000 (UTC) Subject: [FFmpeg-user] Variable input framerate References: <1405870656.20429.YahooMailNeo@web161501.mail.bf1.yahoo.com> <1405874822.30768.YahooMailNeo@web161501.mail.bf1.yahoo.com> Message-ID: Phil Rhodes rocketmail.com> writes: > Almost all you ever do on this list is demand information > of people that you know they don't have. So you are actually clueless? So far I assumed you are trolling here on purpose, sorry about that. Carl Eugen From xanadu at apost.plala.or.jp Sun Jul 20 21:53:59 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Mon, 21 Jul 2014 04:53:59 +0900 Subject: [FFmpeg-user] Enabling libx265 In-Reply-To: <53CA9C21.1080103@davidfavor.com> References: <678C8AA7-A705-4532-9B72-6D71B6AE1069@apost.plala.or.jp> <6020031A-5DFD-405F-9E39-71F3B75CEF58@apost.plala.or.jp> <2E584549-DB1F-4A9E-BB2D-85D47DD66D45@apost.plala.or.jp> <53CA9C21.1080103@davidfavor.com> Message-ID: <78A18E3B-2991-4A13-9BFE-E389E0F88BCB@apost.plala.or.jp> 2014/07/20 1:26?David Favor davidfavor.com> wrote? > Or if you'd like to build shared, here's the correct incantation... > > cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source > > You know everything is correct, when the output of otool shows > absolute paths for all objects. To execute x265 as shared library with in a non-standard library path, We need export "DYLD_LIBRARY_PATH". $ export DYLD_LIBRARY_PATH=$prefix This is same with ffmpeg which uses x265 as shard library. // Miya From phpdev at ehrhardt.nl Sun Jul 20 22:32:40 2014 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 20 Jul 2014 22:32:40 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> Message-ID: <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> Reindl Harald in gmane.comp.video.ffmpeg.user (Sun, 20 Jul 2014 18:27:40 +0200): >Am 20.07.2014 17:13, schrieb Jan Ehrhardt: > >> If you want direct access from within PHP to the videofiles, I would not >> recommend ffmpeg-php. With some trouble you can get it to compile, but >> only with FFmpeg 0.6: > >unacceptable - WTF 0.6?! >don't recommned such crap in the public Which part of 'I would not recommend ffmpeg-php' escaped your attention? >> There is e new PHP extension which uses FFmpeg: php-av. >> Documentation: https://github.com/chung-leong/av/wiki > >and what can that stuff do? >nothing! I have never used php-av, so I cannot really comment on that. I just wanted to point out there is a new kid on the block. FYI: I am still using ffmpeg-php, for 2 purposes. FFmpeg-php is by far the easiest way to make a thumbnail of a frame in a videofile. All other methods I know of use calls to the OS. That is much more a security risk than using even an old ffmpeg-php. The other purpose is that I use ffmpeg-php to determine if a video is 4:3 or 16:9. Once again without system calls. Making thumbnails can be done by php-av's 'av_stream_read_image': https://github.com/chung-leong/av/wiki/av_stream_read_image And geting the dimensions of a videofile by 'av_file_stat': https://github.com/chung-leong/av/wiki/av_file_stat I guess that the very limited functionality of ffmpeg-php is completely covered by php-av. There may come a time when I will switch from php-ffmpeg to php-av. Jan Jan From h.reindl at thelounge.net Sun Jul 20 22:45:26 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 20 Jul 2014 22:45:26 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> Message-ID: <53CC2A66.8030101@thelounge.net> Am 20.07.2014 22:32, schrieb Jan Ehrhardt: > Reindl Harald in gmane.comp.video.ffmpeg.user (Sun, 20 Jul 2014 18:27:40 > +0200): >> Am 20.07.2014 17:13, schrieb Jan Ehrhardt: >> >>> If you want direct access from within PHP to the videofiles, I would not >>> recommend ffmpeg-php. With some trouble you can get it to compile, but >>> only with FFmpeg 0.6: >> >> unacceptable - WTF 0.6?! >> don't recommned such crap in the public > > Which part of 'I would not recommend ffmpeg-php' escaped your attention? ok - better said "don't mention" >>> There is e new PHP extension which uses FFmpeg: php-av. >>> Documentation: https://github.com/chung-leong/av/wiki >> >> and what can that stuff do? >> nothing! > > I have never used php-av, so I cannot really comment on that. I just > wanted to point out there is a new kid on the block. the link you posted lists the functions > FYI: I am still using ffmpeg-php, for 2 purposes. FFmpeg-php is by far > the easiest way to make a thumbnail of a frame in a videofile. All other > methods I know of use calls to the OS. That is much more a security risk > than using even an old ffmpeg-php that is bullshit ffmpeg-0.6 is vulnerable in thousands of ways and only beause there is a library wrapper don't remove the bugs - allow to access it a arvitary file and you are done such OS calls are typically done via cronjobs and very restricted CLI calls and not directly running in the webservers context at all -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From phpdev at ehrhardt.nl Sun Jul 20 22:53:47 2014 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Sun, 20 Jul 2014 22:53:47 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> Message-ID: Reindl Harald in gmane.comp.video.ffmpeg.user (Sun, 20 Jul 2014 22:45:26 +0200): >such OS calls are typically done via cronjobs and very >restricted CLI calls and not directly running in the >webservers context at all My users need instant feedback on what is in a videofile. Besides that: they are running php-ffmpeg on systems, where I cannot invoke cronjobs. Jan From clu at free.fr Mon Jul 21 10:55:31 2014 From: clu at free.fr (clu at free.fr) Date: Mon, 21 Jul 2014 10:55:31 +0200 (CEST) Subject: [FFmpeg-user] how to display SOFT subs with ffplay -- 20140721 In-Reply-To: Message-ID: <647611593.92808113.1405932931204.JavaMail.root@zimbra33-e6.priv.proxad.net> Hi ffmpeg-(co-)users, could not find any previous post on the subject (*) so i might be alone with that problem of mine. To be practical : 1. I've got container with DISCTINCT video, audio & subtitle streams (say an .mkv file) 2. while playing it with VLC and other player, the subs can be displayed ON & OFF with no prob 3. let's precise, if it could be part of the problem, I use win XP till win7 (problem not just on one PC, in fact) 4. even with the defaults but using the option -sst or the key 't', subs are not shown while video & audio are showing and switching fine. so if womeone would help me i'd be very happy : 1. what are the possible reasons/cause for this issue? ... maybe too many so : 2. what shall i do to provide you with more infos for a better and more accurate diagnosis of the problem? than you for reading me and for th help you might provide clu 20140721 (*) didn't get any other way to search bu to use google with this query [ffplay subtitles display site:https://ffmpeg.org/pipermail/ffmpeg-user] side question : any other way? From clu at free.fr Mon Jul 21 11:05:44 2014 From: clu at free.fr (clu at free.fr) Date: Mon, 21 Jul 2014 11:05:44 +0200 (CEST) Subject: [FFmpeg-user] issue : concatenate containers (.mkv) with subs -- 20140721 In-Reply-To: <647611593.92808113.1405932931204.JavaMail.root@zimbra33-e6.priv.proxad.net> Message-ID: <1337662446.92833843.1405933544663.JavaMail.root@zimbra33-e6.priv.proxad.net> Hi ffmpeg-(co-)users, could not find any previous post on the subject (*) so i might be alone with that problem of mine. what is the proper way to concatenate videos with subtitles? here is what i tried when merging (concat way) 2+ working fine mkv or ogm containing subs (srt type): 1> ffmpeg -i "concat:v1.avi|v2.avi" -i "concat:v1.srt|v2.srt" -strict experimental -c copy "v.mkv" or 2> ffmpeg -i "concat:v1.avi|v2.avi" -i "concat:v1.srt|v2.srt" -strict experimental -vcodec copy -acodec copy -scodec srt "v.mkv" then i also tried in two steps : 3> ffmpeg -i "v1.avi" -i "v1.srt" -strict experimental -c copy "v1.mkv" 3> ffmpeg -i "v2.avi" -i "v2.srt" -strict experimental -c copy "v2.mkv" 3> ffmpeg -i "concat:v1.mkv|v2.mkv" -strict experimental -c copy "v.mkv" but, for the cases the original vdos are clean, same format and so on, the resulting vdo only keeps the subs of the 1st file. what am i doing wrong and how sould it be done? thank you for your kind help. clu 20140721 (*) didn't get any other way to search bu to use google with this query [concatenate subtitles site:https://ffmpeg.org/pipermail/ffmpeg-user] side question : any other way? PS: Well, for any newby around looking for similar issue here's what my results are: 1. without subtitles the 3rd method is the one to go. 2. until i get a solution, i'd say it does'nt work with subs streams (i only get the 1st file muxed!). so what? well, as far as i need to concatenate soft subbed videos (.mkv) i use the mkvtoolnix. its syntax is awfull but there's a gui that even builds the command line for you so... and it provides some extra operations (besides concatenating). It's annoying to have to use more/other tools but it gets the job done, till i find a way to have ffmpeg to do it (as advertised) -sigh- good de/muxing all From cehoyos at ag.or.at Mon Jul 21 11:30:27 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 09:30:27 +0000 (UTC) Subject: [FFmpeg-user] issue : concatenate containers (.mkv) with subs -- 20140721 References: <647611593.92808113.1405932931204.JavaMail.root@zimbra33-e6.priv.proxad.net> <1337662446.92833843.1405933544663.JavaMail.root@zimbra33-e6.priv.proxad.net> Message-ID: free.fr> writes: > 1> ffmpeg -i "concat:v1.avi|v2.avi" > 3> ffmpeg -i "concat:v1.mkv|v2.mkv" The concat protocol does not work for avi and mkv files.. This is not a limitation of FFmpeg but of the containers (concat: is a equivalent of `cat`). Please read about the concat demuxer and the concat filter (I am not sure how well they work for subtitles): https://ffmpeg.org/ffmpeg-formats.html#concat-1 https://ffmpeg.org/ffmpeg-filters.html#concat For future questions: Please always provide the command line that you tried without success together with the complete, uncut console output: This is needed (at least for me) to answer most questions. Carl Eugen PS: Does anybody have an opinion on the new website? From cehoyos at ag.or.at Mon Jul 21 11:31:38 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 09:31:38 +0000 (UTC) Subject: [FFmpeg-user] how to display SOFT subs with ffplay -- 20140721 References: <647611593.92808113.1405932931204.JavaMail.root@zimbra33-e6.priv.proxad.net> Message-ID: free.fr> writes: > 4. even with the defaults but using the option -sst > or the key 't', subs are not shown while video & > audio are showing and switching fine. Please provide your command line together with the complete, uncut console output. Carl Eugen From clu at free.fr Mon Jul 21 11:55:44 2014 From: clu at free.fr (clu at free.fr) Date: Mon, 21 Jul 2014 11:55:44 +0200 (CEST) Subject: [FFmpeg-user] =?utf-8?q?Re=C2=A0=3A_Re=3A__how_to_display_SOFT_su?= =?utf-8?q?bs_with_ffplay_--_20140721?= In-Reply-To: Message-ID: <1542579888.92956516.1405936544328.JavaMail.root@zimbra33-e6.priv.proxad.net> Thank you Carl for your quick answer and sorry for not having provided more info. So here comes the complete console capture, while the film is playing : ====================================================================================================================================== Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. z:\>c:\tmp\tools\ffmpeg-static\ffplay.exe "z:\[HorribleSubs] Sword Art Online II - 01 [480p].mkv" ffplay version N-60797-g76dd01e Copyright (c) 2003-2014 the FFmpeg developers built on Feb 20 2014 22:01:52 with gcc 4.8.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --ena ble-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger - -enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 65.100 / 52. 65.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 1.103 / 4. 1.103 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, matroska,webm, from 'z:\[HorribleSubs] Sword Art Online II - 01 [480p].mkv': Metadata: encoder : libebml v1.2.3 + libmatroska v1.3.0 creation_time : 2014-07-05 16:37:55 Duration: 00:23:40.04, start: 0.000000, bitrate: 865 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 848x480 [SAR 160:159 DAR 16:9], SAR 171:170 DAR 3021:1700, 23.81 fps, 23.81 tbr, 1k tbn, 47.95 tbc (defa ult) (forced) Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp (default) (forced) Stream #0:2: Subtitle: ssa (default) (forced) Codec 0x18000 is not in the full list. Stream #0:3: Attachment: unknown_codec Metadata: filename : OpenSans-Semibold.ttf mimetype : application/x-truetype-font 45.58 A-V: -0.007 fd= 38 aq= 1465KB vq=13889KB sq= 0B f=1/1 ====================================================================================================================================== I hope this can help to diagnose and, so you know, it also doesn't work with .srt or .sub be it separate files or embedded streams. the binarie come from http://ffmpeg.zeranoe.com as i might not be cut to compile it all. again thanks for your care clu 20140721 ----- Carl Eugen Hoyos a ?crit?: > free.fr> writes: > > > 4. even with the defaults but using the option -sst > > or the key 't', subs are not shown while video & > > audio are showing and switching fine. > > Please provide your command line together with the > complete, uncut console output. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From matej at tam.si Mon Jul 21 12:01:58 2014 From: matej at tam.si (Matej) Date: Mon, 21 Jul 2014 12:01:58 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Sun, Jul 20, 2014 at 12:09 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > I tried to add -vsync 0 so the full command line was: > > -vsync 0 is an input option. > > Please do not top-post here, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Same errors ([mpegts @ 0x36e4160] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output...) after approx. same time. when running command /root/ffmpeg/ffmpeg -loglevel debug -max_interleave_delta 15000000 -rtbufsize 128000k -threads 0 -vsync 0 -re -i "udp://@:1300?fifo_size=1000000&overrun_nonfatal=1" -vsync 0 -re -i " http://live.radiohit.si:9560" -codec copy -s 720x576 -q 10 -shortest -f mpegts udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535 All ideas and suggestions very welcome. TIA, Matej From clu at free.fr Mon Jul 21 12:31:30 2014 From: clu at free.fr (clu at free.fr) Date: Mon, 21 Jul 2014 12:31:30 +0200 (CEST) Subject: [FFmpeg-user] =?utf-8?q?Re=C2=A0=3A_Re=3A__issue_=3A_concatenate_?= =?utf-8?q?containers_=28=2Emkv=29_with_subs=09--_20140721?= In-Reply-To: Message-ID: <544338192.93041643.1405938690120.JavaMail.root@zimbra33-e6.priv.proxad.net> Thank you Carl and this tells me I've still got a LOT to read. I do get it that, for sure, if 'concat' "just" stiches together files ? la 'cat', without any extra processing, it should cause problem with fils without the appropriate format. thus the conversion o an intermediate .ts format in the examples of the docs....hmmm. I might continue with extra tools like mkvtoolnix for the moment. About the new site great, clear. I'd like to add suggestions : 1. [overall]} could the visitor switch between the current dark theme (which i love, don't get me wrong) and one or two others, a little brighter? 2. [main page] i'd see 3 big buttons: Download / Documentation / Communities 3. [overall]} a search field that could expand, upon use, to select the context (communities, docs...) 4. [about page] I'd rather see the "FFmpeg Tools" block first, then the rest would flow (clear access, the remaining for the fearless readers :-) 5. [download page] to give more space to every one, not favour sources over binaries or anything, i'd bring the big "Download" button to side with the "Download Snapshot" one and try to, thus, give more space to everyone, evenly. huh? However, i'm grateful for your clarification about concat and i'll remember to provide the cli output whenever bringing issues. cheers clu 20140721 ----- Carl Eugen Hoyos a ?crit?: > free.fr> writes: > > > 1> ffmpeg -i "concat:v1.avi|v2.avi" > > 3> ffmpeg -i "concat:v1.mkv|v2.mkv" > > The concat protocol does not work for avi and mkv > files.. This is not a limitation of FFmpeg but > of the containers (concat: is a equivalent of `cat`). > > Please read about the concat demuxer and the concat > filter (I am not sure how well they work for subtitles): > https://ffmpeg.org/ffmpeg-formats.html#concat-1 > https://ffmpeg.org/ffmpeg-filters.html#concat > > For future questions: Please always provide the > command line that you tried without success together > with the complete, uncut console output: This is > needed (at least for me) to answer most questions. > > Carl Eugen > > PS: Does anybody have an opinion on the new website? > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Mon Jul 21 13:43:03 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 11:43:03 +0000 (UTC) Subject: [FFmpeg-user] how to display SOFT subs with ffplay -- 20140721 References: <1542579888.92956516.1405936544328.JavaMail.root@zimbra33-e6.priv.proxad.net> Message-ID: free.fr> writes: > Stream #0:2: Subtitle: ssa (default) (forced) ffplay can only show text subtitles if they are in separate files, see the subtitles filter documentation: https://ffmpeg.org/ffmpeg-filters.html#subtitles Please do not top-post here, it is considered rude. Carl Eugen From cehoyos at ag.or.at Mon Jul 21 13:45:26 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 11:45:26 +0000 (UTC) Subject: [FFmpeg-user] issue : concatenate containers (.mkv) with subs -- 20140721 References: <544338192.93041643.1405938690120.JavaMail.root@zimbra33-e6.priv.proxad.net> Message-ID: free.fr> writes: > I do get it that, for sure, if 'concat' "just" stiches > together files ? la 'cat', without any extra processing, > it should cause problem with fils without the > appropriate format. thus the conversion o an intermediate > .ts format in the examples of the docs. Did you read the links I posted? No conversion to an intermediate format is necessary, it at least works for many cases. As said, I didn't test the subtitles use case. Carl Eugen From cehoyos at ag.or.at Mon Jul 21 14:13:40 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 12:13:40 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > Things work perfectly for about an hour (sound is > smooth and the video too fpr the entire period), > but after approximate 55 minutes (sometimes little > less, sometimes more) the following messages start > to pop-up: Does it work for file output or do you see the same problems for file output as for network output? Does it work if you remove the audio / video stream? Carl Eugen From matej at tam.si Mon Jul 21 14:16:06 2014 From: matej at tam.si (Matej) Date: Mon, 21 Jul 2014 14:16:06 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Mon, Jul 21, 2014 at 2:13 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > Things work perfectly for about an hour (sound is > > smooth and the video too fpr the entire period), > > but after approximate 55 minutes (sometimes little > > less, sometimes more) the following messages start > > to pop-up: > > Does it work for file output or do you see the same > problems for file output as for network output? > > Does it work if you remove the audio / video stream? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > As mentioned, the same errors occur when outputting to the file. When there is just video or just audio (so I remove one input, doesn't matter which one), things work without problems. From smarrocco at ringsidecreative.com Mon Jul 21 14:39:55 2014 From: smarrocco at ringsidecreative.com (Sam Marrocco) Date: Mon, 21 Jul 2014 08:39:55 -0400 Subject: [FFmpeg-user] Alternative options for comma-separated filters? In-Reply-To: References: <53BEBFC6.8040508@ringsidecreative.com> Message-ID: <53CD0A1B.7080707@ringsidecreative.com> On 7/11/2014 3:06 AM, Carl Eugen Hoyos wrote: Sam Marrocco ringsidecreative.com> writes: The problem is that the application using ffmpeg (which I can *not* change) cannot have commas included in the arguments provided. Did you test the filter_script option? I have retested with the filter_script option. This works fine since it avoids having the comma in the command line entirely. Thanks! sam marrocco | chief technical officer ringside.cutters.picnic.moonlink 248 548 2500 w 248 910 3344 c ringsidecreative.com From cehoyos at ag.or.at Mon Jul 21 15:00:43 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 13:00:43 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > On Mon, Jul 21, 2014 at 2:13 PM, Carl Eugen Hoyos wrote: > > > Matej tam.si> writes: > > > > > Things work perfectly for about an hour (sound is > > > smooth and the video too fpr the entire period), > > > but after approximate 55 minutes (sometimes little > > > less, sometimes more) the following messages start > > > to pop-up: > > > > Does it work for file output or do you see the same > > problems for file output as for network output? > > > > Does it work if you remove the audio / video stream? > > As mentioned, the same errors occur when outputting to > the file. Do you see the same error if you don't use a real audio input but -f lavfi -i sine instead? And could you use a transport stream from your harddrive as source (NOT ffmpeg-created)? Finally, you could create a transport stream with ffmpeg, this should be a file that has starttime ~0 like the audio input: Does this work fine? Carl Eugen From david at davidfavor.com Mon Jul 21 15:32:39 2014 From: david at davidfavor.com (David Favor) Date: Mon, 21 Jul 2014 08:32:39 -0500 Subject: [FFmpeg-user] Enabling libx265 In-Reply-To: <78A18E3B-2991-4A13-9BFE-E389E0F88BCB@apost.plala.or.jp> References: <678C8AA7-A705-4532-9B72-6D71B6AE1069@apost.plala.or.jp> <6020031A-5DFD-405F-9E39-71F3B75CEF58@apost.plala.or.jp> <2E584549-DB1F-4A9E-BB2D-85D47DD66D45@apost.plala.or.jp> <53CA9C21.1080103@davidfavor.com> <78A18E3B-2991-4A13-9BFE-E389E0F88BCB@apost.plala.or.jp> Message-ID: <53CD1677.3000103@davidfavor.com> Kimio Miyamura wrote: > 2014/07/20 1:26?David Favor davidfavor.com> wrote? > >> Or if you'd like to build shared, here's the correct incantation... >> >> cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source >> >> You know everything is correct, when the output of otool shows >> absolute paths for all objects. > > To execute x265 as shared library with in a non-standard library path, We need export "DYLD_LIBRARY_PATH". > > $ export DYLD_LIBRARY_PATH=$prefix > > This is same with ffmpeg which uses x265 as shard library. Or add ... cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix which is preferred, as if you begin doing things like... export DYLD_LIBRARY_PATH=$prefix Everything's rainbows + unicorns, till you try running a task out of cron or at the system level... Then you have to determine how you'll set this so all processes pickup this path... and if this path ever changes... or requires multiple values... you'll have to keep all this straight... I've tried this... It becomes complex... For me, better to just use the cmake facility for setting this for each $prefix path that's used. From david at davidfavor.com Mon Jul 21 15:48:55 2014 From: david at davidfavor.com (David Favor) Date: Mon, 21 Jul 2014 08:48:55 -0500 Subject: [FFmpeg-user] ERROR: freetype2 not found Issue with FFmpeg 2.2.5 "Muybridge" In-Reply-To: References: Message-ID: <53CD1A47.2050809@davidfavor.com> Resham Shrivastava wrote: > Hi, > > I had downloaded FFmpeg 2.2.5 "Muybridge" from > https://www.ffmpeg.org/download.html on my ubuntu 14.04 LTS. and when i am > trying to configure with --enable-libfreetype :- > > It throws error ERROR: freetype2 not found ... > > Can you let me know the reason.. i had also attached config.log > > Thanks This is a persistent problem. I explained this problem months ago... https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151405.html to which a dirt simple fix was suggested... https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151406.html And... Lots of discussion + no fix... The problem is freetype changed their directory structure + ffmpeg (as of git pull few minutes ago) still seems to look for the old directory structure. In my build script, I scrape ffmpeg's configure script + if ffmpeg is broken (still looking for old directory structure) I add a symlink to fix the problem. You can also, just do this manually once + forget it... Try this... ln -sf /opt/local/include/freetype2 /opt/local/include/freetype2/freetype I'm using MacPorts so /opt/local is the prefix I use. You can discover your prefix (if you're running a Linux/Unix distro) by... locate ft2build.h or... locate freetype.h From david at davidfavor.com Mon Jul 21 15:50:53 2014 From: david at davidfavor.com (David Favor) Date: Mon, 21 Jul 2014 08:50:53 -0500 Subject: [FFmpeg-user] ffmpeg Install problems In-Reply-To: References: Message-ID: <53CD1ABD.7060109@davidfavor.com> domenic.disorbo at gdc.com wrote: > I am following a set of installation instructions and when I do the > following I get an error > > > wget http://ffmpeg.org/releases/ffmpeg-1.1.3.tar.gz > tar -zxvf ffmpeg-1.1.3.tar.gz > cd ffmpeg-1.1.3 > ./configure --enable-gpl --enable-libass --enable-libfaac > --enable-libfdk-aac \ > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb > \ > --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis \ > --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree > --enable-version3 \ > --enable-libxvid --enable-libgsm Start with latest ffmpeg from http://ffmpeg.org/download.html which is now... ffmpeg-2.3 rather than ffmpeg-1.1.3 From u at pkh.me Mon Jul 21 15:52:59 2014 From: u at pkh.me (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Mon, 21 Jul 2014 15:52:59 +0200 Subject: [FFmpeg-user] ERROR: freetype2 not found Issue with FFmpeg 2.2.5 "Muybridge" In-Reply-To: <53CD1A47.2050809@davidfavor.com> References: <53CD1A47.2050809@davidfavor.com> Message-ID: <20140721135258.GA5169@leki> On Mon, Jul 21, 2014 at 08:48:55AM -0500, David Favor wrote: > Resham Shrivastava wrote: > >Hi, > > > >I had downloaded FFmpeg 2.2.5 "Muybridge" from > >https://www.ffmpeg.org/download.html on my ubuntu 14.04 LTS. and when i am > >trying to configure with --enable-libfreetype :- > > > >It throws error ERROR: freetype2 not found ... > > > >Can you let me know the reason.. i had also attached config.log > > > >Thanks > > This is a persistent problem. > > I explained this problem months ago... > > https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151405.html > > to which a dirt simple fix was suggested... > > https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151406.html > > And... Lots of discussion + no fix... > It was fixed long ago, see http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=cea5812fa723c08b89d929eeba73462e05de2973 -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 473 bytes Desc: not available URL: From matej at tam.si Mon Jul 21 15:54:52 2014 From: matej at tam.si (Matej) Date: Mon, 21 Jul 2014 15:54:52 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Mon, Jul 21, 2014 at 3:00 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > On Mon, Jul 21, 2014 at 2:13 PM, Carl Eugen Hoyos wrote: > > > > > Matej tam.si> writes: > > > > > > > Things work perfectly for about an hour (sound is > > > > smooth and the video too fpr the entire period), > > > > but after approximate 55 minutes (sometimes little > > > > less, sometimes more) the following messages start > > > > to pop-up: > > > > > > Does it work for file output or do you see the same > > > problems for file output as for network output? > > > > > > Does it work if you remove the audio / video stream? > > > > As mentioned, the same errors occur when outputting to > > the file. > > Do you see the same error if you don't use a real audio > input but -f lavfi -i sine instead? > > And could you use a transport stream from your harddrive > as source (NOT ffmpeg-created)? > Finally, you could create a transport stream with ffmpeg, > this should be a file that has starttime ~0 like the > audio input: Does this work fine? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Strange, when I use the -f lavfi -i sine as sound input, those muxing delay errors start immediately after I start ffmpeg. ------------------------------------------------------------------------------------------- /root/ffmpeg/ffmpeg -loglevel debug -rtbufsize 128000k -threads 0 -vsync 0 -re -i "udp://@:1300?fifo_size=1000000&overrun_nonfatal=1" -f lavfi -i sine -codec copy -s 720x576 -q 10 -shortest -f mpegts udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-rtbufsize' ... matched as AVOption 'rtbufsize' with argument '128000k'. Reading option '-threads' ... matched as AVOption 'threads' with argument '0'. Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument '0'. Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'. Reading option '-i' ... matched as input file with argument 'udp://@:1300?fifo_size=1000000&overrun_nonfatal=1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'. Reading option '-i' ... matched as input file with argument 'sine'. Reading option '-codec' ... matched as option 'codec' (codec name) with argument 'copy'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '720x576'. Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '10'. Reading option '-shortest' ... matched as option 'shortest' (finish encoding within shortest input) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option 'udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Applying option vsync (video sync method) with argument 0. Successfully parsed a group of options. Parsing a group of options: input file udp://@:1300?fifo_size=1000000&overrun_nonfatal=1. Applying option re (read input at native frame rate) with argument 1. Successfully parsed a group of options. Opening an input file: udp://@:1300?fifo_size=1000000&overrun_nonfatal=1. [udp @ 0x1cee4c0] end receive buffer size reported is 131072 [mpegts @ 0x1ceefc0] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x1ceefc0] stream=0 stream_type=2 pid=100 prog_reg_desc= [mpegts @ 0x1ceefc0] Before avformat_find_stream_info() pos: 0 bytes read:8272 seeks:0 [mpeg2video @ 0x1d02f00] Invalid frame dimensions 0x0. Last message repeated 4 times [mpegts @ 0x1ceefc0] All programs have pmt, headers found [mpeg2video @ 0x1d02f00] Invalid frame dimensions 0x0. [mpegts @ 0x1ceefc0] All info found [mpegts @ 0x1ceefc0] After avformat_find_stream_info() pos: 384648 bytes read:384648 seeks:0 frames:21 Input #0, mpegts, from 'udp://@:1300?fifo_size=1000000&overrun_nonfatal=1': Duration: N/A, start: 6998.733333, bitrate: N/A Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100], 21, 1/90000: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 1:1 DAR 5:4], 1/48, max. 104857 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc Successfully opened the file. Parsing a group of options: input file sine. Applying option f (force format) with argument lavfi. Successfully parsed a group of options. Opening an input file: sine. detected 4 logical cores [AVFilterGraph @ 0x1da52c0] query_formats: 2 queried, 3 merged, 0 already done, 0 delayed [lavfi @ 0x1dd2580] All info found Input #1, lavfi, from 'sine': Duration: N/A, start: 0.000000, bitrate: 705 kb/s Stream #1:0, 1, 1/44100: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s Successfully opened the file. Parsing a group of options: output file udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535. Applying option codec (codec name) with argument copy. Applying option s (set frame size (WxH or abbreviation)) with argument 720x576. Applying option q (use fixed quality scale (VBR)) with argument 10. Applying option shortest (finish encoding within shortest input) with argument 1. Applying option f (force format) with argument mpegts. Successfully parsed a group of options. Opening an output file: udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535. Successfully opened the file. [mpegts @ 0x1d1e1c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [mpegts @ 0x1d1e1c0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535': Metadata: encoder : Lavf55.45.100 Stream #0:0, 0, 1/90000: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 1/24, q=2-31, max. 104857 kb/s, 24 fps, 90k tbn, 24 tbc Stream #0:1, 0, 1/90000: Audio: pcm_s16le, 44100 Hz, mono, 705 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007800 > 10000000: forcing output Last message repeated 26 times [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007811 > 10000000: forcing output [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007800 > 10000000: forcing output Last message repeated 3 times Last message repeated 42 times [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007811 > 10000000: forcing output [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007800 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007811 > 10000000: forcing output [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007800 > 10000000: forcing output Last message repeated 42 times [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007811 > 10000000: forcing output [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007800 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007811 > 10000000: forcing output [mpegts @ 0x1d1e1c0] Delay between the first packet and last packet in the muxing queue is 10007800 > 10000000: forcing output Last message repeated 42 times frame= 6 fps=0.0 q=-1.0 Lsize= 5354kB time=00:00:51.64 bitrate= 849.3kbits/s video:170kB audio:4448kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 15.930787% Input file #0 (udp://@:1300?fifo_size=1000000&overrun_nonfatal=1): Input stream #0:0 (video): 12 packets read (178142 bytes); Total: 12 packets (178142 bytes) demuxed Input file #1 (sine): Input stream #1:0 (audio): 2224 packets read (4554752 bytes); Total: 2224 packets (4554752 bytes) demuxed Output file #0 (udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535): Output stream #0:0 (video): 6 packets muxed (174487 bytes); Output stream #0:1 (audio): 2224 packets muxed (4554752 bytes); Total: 2230 packets (4729239 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x1d099a0] Statistics: 0 seeks, 4627 writeouts [AVIOContext @ 0x1cee8c0] Statistics: 384648 bytes read, 0 seeks Received signal 2: terminating. ------------------------------------------------------------------------------------------- From h.reindl at thelounge.net Mon Jul 21 16:01:42 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 21 Jul 2014 16:01:42 +0200 Subject: [FFmpeg-user] ERROR: freetype2 not found Issue with FFmpeg 2.2.5 "Muybridge" In-Reply-To: <20140721135258.GA5169@leki> References: <53CD1A47.2050809@davidfavor.com> <20140721135258.GA5169@leki> Message-ID: <53CD1D46.1040609@thelounge.net> Am 21.07.2014 15:52, schrieb Cl?ment B?sch: > On Mon, Jul 21, 2014 at 08:48:55AM -0500, David Favor wrote: >> Resham Shrivastava wrote: >>> I had downloaded FFmpeg 2.2.5 "Muybridge" from >>> https://www.ffmpeg.org/download.html on my ubuntu 14.04 LTS. and when i am >>> trying to configure with --enable-libfreetype :- >>> >>> It throws error ERROR: freetype2 not found ... >>> >>> Can you let me know the reason.. i had also attached config.log >>> >>> Thanks >> >> This is a persistent problem. >> >> I explained this problem months ago... >> >> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151405.html >> >> to which a dirt simple fix was suggested... >> >> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151406.html >> >> And... Lots of discussion + no fix... >> > > It was fixed long ago, see > http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=cea5812fa723c08b89d929eeba73462e05de2973 and so most likely freetype-devel or however the devel package is called on Ubuntu in not installed, it's nothing new that people add -enable-*** but don't install development packages https://launchpad.net/ubuntu/+source/freetype libfreetype6-dev: FreeType 2 font engine, development files 2.2.5 is from 2014-07-15 http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=cea5812fa723c08b89d929eeba73462e05de2973 is from 2013-12-06 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From david at davidfavor.com Mon Jul 21 16:14:07 2014 From: david at davidfavor.com (David Favor) Date: Mon, 21 Jul 2014 09:14:07 -0500 Subject: [FFmpeg-user] FFMpeg problem using fieldmatch and decimate filters to IVTC In-Reply-To: References: Message-ID: <53CD202F.7050201@davidfavor.com> Steve Boyer wrote: > Hey all, > > Originally, I posted this to the wrong mailing list and had a request to > execute an ffprobe command. I am reposting and including the output of the > commands. > > The ffprobe.txt file is for the sample.vob and the ffprobe.4.18.txt is for > the full, ~2GB vob. > > I'm trying to encode a large number of videos so I can watch them on my > phone, but not having luck doing a proper IVTC using the fieldmatch and > decimate filters. I have compiled from source yesterday afternoon as > outlined on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. Using the > command: Sometimes the simple == best. Since the data related to these videos... is very odd... seems some videos contain streams with varying frame rates + maybe switching between interlaced and noninterlaced... trying to transcode this footage might send ffmpeg to the loony bin (loose it's marbles). Try a two stage approach... 1) transcode each video with no filters to produce normalized footage, same frame rate, noninterlaced. 2) apply your filters to the normalized footage. This may make your transcoding adventure bearable to enjoyable... From david at davidfavor.com Mon Jul 21 16:37:44 2014 From: david at davidfavor.com (David Favor) Date: Mon, 21 Jul 2014 09:37:44 -0500 Subject: [FFmpeg-user] FFMpeg problem using fieldmatch and decimate filters to IVTC In-Reply-To: References: Message-ID: <53CD25B8.8050706@davidfavor.com> Steve Boyer wrote: > Hey all, > > Originally, I posted this to the wrong mailing list and had a request to > execute an ffprobe command. I am reposting and including the output of the > commands. > > The ffprobe.txt file is for the sample.vob and the ffprobe.4.18.txt is for > the full, ~2GB vob. > > I'm trying to encode a large number of videos so I can watch them on my > phone, but not having luck doing a proper IVTC using the fieldmatch and > decimate filters. I have compiled from source yesterday afternoon as > outlined on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. Using the > command: > > ffmpeg -i 4.18 -map 0:1 -map 0:3 -vf crop=704:480:10:0 -vf > fieldmatch,decimate -c:v libx264 -preset veryfast -level 41 -crf 22 -c:a > libfdk_aac -t 360 4.18.fieldmatch.decimate.mp4 Hum... I notice your matching a different set of streams, than I'd use. For example, in your container the 0:1 audio stream is out of sync with the video... Maybe the more recent version of ffmpeg I'm using maps streams slightly different. Here's what I used to create crystal clear output with audio/video in sync... David-Favor-iMac> avinfo long.sample.vob long.sample.vob length: 26:24:22.11, start: 611.204267, bitrate: 17 kb/s stream: #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], max. 9800 kb/s, 29.83 fps, 59.94 tbr, 90k tbn, 59.94 tbc stream: #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s stream: #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s So I'm using 0:0 as video + 0:2 as audio (as 0:2 is in sync with video)... nice -n 20 ffmpeg -i 'long.sample.vob' -map 0:0 -map 0:2 \ -c:a libfdk_aac -b:a 128k -ac 2 -ar 44100 \ -c:v libx264 -crf:v 22 -preset:v veryfast -tune:v film -level:v 4.1 -profile:v high -r 23.976 sample.mp4 Using the default fps of 29.97 produced 1000s of duplicate frames, so I added -r 23.976 as it appears original footage was recorded at this fps. Either way footage plays well + with -r 23.976 compresses by around 80% with no additional filters. Maybe this helps. From falcon.sheep at gmail.com Mon Jul 21 16:39:55 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Mon, 21 Jul 2014 18:39:55 +0400 Subject: [FFmpeg-user] only audio ffmpeg Message-ID: Hi, i need ffmpeg for only 4 formats: opus, m4a, wma, mp3, rm i tried the following configuration: --disable-everything \ --enable-decoder=mp3 \ --enable-decoder=mp3float \ --enable-decoder=mp3adufloat \ --enable-decoder=mp3adu \ --enable-decoder=mp3on4 \ --enable-decoder=mp3on4float \ --enable-decoder=wmalossless \ --enable-decoder=wmapro \ --enable-decoder=wmav1 \ --enable-decoder=wmav2 \ --enable-decoder=wmavoice \ --enable-decoder=sipr \ --enable-decoder=real_144 \ --enable-decoder=real_288 \ --enable-decoder=ralf \ --enable-decoder=rv10 \ --enable-decoder=rv20 \ --enable-decoder=rv30 \ --enable-decoder=rv40 \ --enable-decoder=cook \ --enable-decoder=opus \ --enable-decoder=mp4als \ --enable-demuxer=mp3 \ --enable-demuxer=xwma \ --enable-demuxer=rm \ --enable-demuxer=opus \ --enable-demuxer=mov,mp4,m4a,3gp,3g2,mj2 \ --enable-protocol=file; it is working with rm, mp3, m4a but it is not for wma,opus. any help is appreciated From h.reindl at thelounge.net Mon Jul 21 16:47:52 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 21 Jul 2014 16:47:52 +0200 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: Message-ID: <53CD2818.3060004@thelounge.net> Am 21.07.2014 16:39, schrieb Abu Abdullah: > i need ffmpeg for only 4 formats: opus, m4a, wma, mp3, rm > i tried the following configuration: > > --disable-everything \ > --enable-decoder=mp3 \ > --enable-decoder=mp3float \ > --enable-decoder=mp3adufloat \ > --enable-decoder=mp3adu \ > --enable-decoder=mp3on4 \ > --enable-decoder=mp3on4float \ > --enable-decoder=wmalossless \ > --enable-decoder=wmapro \ > --enable-decoder=wmav1 \ > --enable-decoder=wmav2 \ > --enable-decoder=wmavoice \ > --enable-decoder=sipr \ > --enable-decoder=real_144 \ > --enable-decoder=real_288 \ > --enable-decoder=ralf \ > --enable-decoder=rv10 \ > --enable-decoder=rv20 \ > --enable-decoder=rv30 \ > --enable-decoder=rv40 \ > --enable-decoder=cook \ > --enable-decoder=opus \ > --enable-decoder=mp4als \ > --enable-demuxer=mp3 \ > --enable-demuxer=xwma \ > --enable-demuxer=rm \ > --enable-demuxer=opus \ > --enable-demuxer=mov,mp4,m4a,3gp,3g2,mj2 \ > --enable-protocol=file; > > it is working with rm, mp3, m4a but it is not for wma,opus. any help > is appreciated at least for opus you need to enable the external library --enable-libopus is your friend not sure what "--disable-everything" does bad to WMA why are you doing that? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From david at davidfavor.com Mon Jul 21 16:53:46 2014 From: david at davidfavor.com (David Favor) Date: Mon, 21 Jul 2014 09:53:46 -0500 Subject: [FFmpeg-user] ERROR: freetype2 not found Issue with FFmpeg 2.2.5 "Muybridge" In-Reply-To: <20140721135258.GA5169@leki> References: <53CD1A47.2050809@davidfavor.com> <20140721135258.GA5169@leki> Message-ID: <53CD297A.9030509@davidfavor.com> Cl?ment B?sch wrote: > On Mon, Jul 21, 2014 at 08:48:55AM -0500, David Favor wrote: >> Resham Shrivastava wrote: >>> Hi, >>> >>> I had downloaded FFmpeg 2.2.5 "Muybridge" from >>> https://www.ffmpeg.org/download.html on my ubuntu 14.04 LTS. and when i am >>> trying to configure with --enable-libfreetype :- >>> >>> It throws error ERROR: freetype2 not found ... >>> >>> Can you let me know the reason.. i had also attached config.log >>> >>> Thanks >> This is a persistent problem. >> >> I explained this problem months ago... >> >> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151405.html >> >> to which a dirt simple fix was suggested... >> >> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/151406.html >> >> And... Lots of discussion + no fix... >> > > It was fixed long ago, see > http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=cea5812fa723c08b89d929eeba73462e05de2973 Sure enough. This is fixed. Thanks! From cehoyos at ag.or.at Mon Jul 21 17:00:33 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 15:00:33 +0000 (UTC) Subject: [FFmpeg-user] only audio ffmpeg References: Message-ID: Abu Abdullah gmail.com> writes: > --disable-everything \ > ... > it is working with rm, mp3, m4a but it is not for wma,opus. > any help is appreciated For opus, you need --enable-parser=opus For wma, I need to see your failing command line including complete, uncut console output. Unrelated: You can use --enable-decoder=wma*,sipr,real*,rv* etc. Carl Eugen From cehoyos at ag.or.at Mon Jul 21 17:01:08 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 15:01:08 +0000 (UTC) Subject: [FFmpeg-user] only audio ffmpeg References: <53CD2818.3060004@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > at least for opus you need to enable the external > library --enable-libopus is your friend FFmpeg contains a native opus decoder, libopus is not needed. Carl Eugen From cehoyos at ag.or.at Mon Jul 21 17:06:16 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 15:06:16 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg Install problems References: <53CD1ABD.7060109@davidfavor.com> Message-ID: David Favor davidfavor.com> writes: > Start with latest ffmpeg from > http://ffmpeg.org/download.html which is now... > > ffmpeg-2.3 rather than ffmpeg-1.1.3 No. The only version supported on this mailing list (if you are not a distributor yourself) is current FFmpeg git head. You don't have to install git, snapshots are offered on the download page. Carl Eugen From cehoyos at ag.or.at Mon Jul 21 17:03:54 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 15:03:54 +0000 (UTC) Subject: [FFmpeg-user] FFMpeg problem using fieldmatch and decimate filters to IVTC References: <53CD202F.7050201@davidfavor.com> Message-ID: David Favor davidfavor.com> writes: > 1) transcode each video with no filters to produce > normalized footage, same frame rate, noninterlaced. The exact problem of the OP is: How to get a "noninterlaced" video for the given input file. Iirc, he knows very well that a deinterlace filter is no alternative because it permanently ruins the video. Please don't revive ancient threads, if you have a sample for which inverse telecine doesn't work, please provide it. (Yes, I know I forgot about some samples that were uploaded.) Carl Eugen From falcon.sheep at gmail.com Mon Jul 21 17:56:16 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Mon, 21 Jul 2014 19:56:16 +0400 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: Message-ID: On Mon, Jul 21, 2014 at 7:00 PM, Carl Eugen Hoyos wrote: > Abu Abdullah gmail.com> writes: > >> --disable-everything \ >> ... > >> it is working with rm, mp3, m4a but it is not for wma,opus. >> any help is appreciated > > For opus, you need --enable-parser=opus > For wma, I need to see your failing command line including > complete, uncut console output. >ffmpeg.exe -i sample.wma ffmpeg version N-64820-g73b7a36 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 21 2014 18:13:52 with gcc 4.8.3 (GCC) 20140522 (Fedora MinGW 4.8.3-1.fc20) configuration: --arch=x86 --target-os=mingw32 --enable-cross-compile --cc=i686-w64-mingw32-gcc --ranlib=i686-w64-mingw 32-ranlib --ar=i686-w64-mingw32-ar --as=i686-w64-mingw32-as --nm=i686-w64-mingw32-nm --disable-logging --enable-small -- disable-runtime-cpudetect --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc -- disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-everything --enable-decoder=mp3 --e nable-decoder=mp3float --enable-decoder=mp3adufloat --enable-decoder=mp3adu --enable-decoder=mp3on4 --enable-decoder=mp3 on4float --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-dec oder=wmavoice --enable-decoder=sipr --enable-decoder=real_144 --enable-decoder=real_288 --enable-decoder=ralf --enable-d ecoder=rv10 --enable-decoder=rv20 --enable-decoder=rv30 --enable-decoder=rv40 --enable-decoder=cook --enable-decoder=opu s --enable-decoder=mp4als --enable-demuxer=mp3 --enable-demuxer=wma --enable-demuxer=rm --enable-demuxer=opus --enable-d emuxer='mov,mp4,m4a,3gp,3g2,mj2' --enable-protocol=file libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 sample.wma: Invalid data found when processing input > Unrelated: > You can use --enable-decoder=wma*,sipr,real*,rv* etc. thanks From falcon.sheep at gmail.com Mon Jul 21 17:58:31 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Mon, 21 Jul 2014 19:58:31 +0400 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: <53CD2818.3060004@thelounge.net> References: <53CD2818.3060004@thelounge.net> Message-ID: On Mon, Jul 21, 2014 at 6:47 PM, Reindl Harald wrote: > > not sure what "--disable-everything" does bad to WMA > why are you doing that? to reduce the size, normal size is above 9mb, when i specify what i need, it is within 2mb From falcon.sheep at gmail.com Mon Jul 21 18:07:05 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Mon, 21 Jul 2014 20:07:05 +0400 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: Message-ID: On Mon, Jul 21, 2014 at 7:00 PM, Carl Eugen Hoyos wrote: > For opus, you need --enable-parser=opus it didnt work with me: >ffmpeg.exe -i sample.opus ffmpeg version N-64820-g73b7a36 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 21 2014 20:02:04 with gcc 4.8.3 (GCC) 20140522 (Fedora MinGW 4.8.3-1.fc20) configuration: --arch=x86 --target-os=mingw32 --enable-cross-compile --cc=i686-w64-mingw32-gcc --ranlib=i686-w64-mingw 32-ranlib --ar=i686-w64-mingw32-ar --as=i686-w64-mingw32-as --nm=i686-w64-mingw32-nm --disable-logging --enable-small -- disable-runtime-cpudetect --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc -- disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-everything --enable-decoder=mp3 --e nable-decoder=mp3float --enable-decoder=mp3adufloat --enable-decoder=mp3adu --enable-decoder=mp3on4 --enable-decoder=mp3 on4float --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-dec oder=wmavoice --enable-decoder=sipr --enable-decoder=real_144 --enable-decoder=real_288 --enable-decoder=ralf --enable-d ecoder=rv10 --enable-decoder=rv20 --enable-decoder=rv30 --enable-decoder=rv40 --enable-decoder=cook --enable-decoder=opu s --enable-decoder=mp4als --enable-parser=opus --enable-demuxer=mp3 --enable-demuxer=xwma --enable-demuxer=rm --enable-d emuxer=opus --enable-demuxer='mov,mp4,m4a,3gp,3g2,mj2' --enable-protocol=file libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 sample.opus: Invalid data found when processing input From cehoyos at ag.or.at Mon Jul 21 18:21:10 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 16:21:10 +0000 (UTC) Subject: [FFmpeg-user] only audio ffmpeg References: Message-ID: Abu Abdullah gmail.com> writes: > --disable-everything \ > it is working with rm, mp3, m4a but it is not for wma,opus. You need --enable-demuxer=asf,matroska Carl Eugen From cehoyos at ag.or.at Mon Jul 21 18:24:22 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 16:24:22 +0000 (UTC) Subject: [FFmpeg-user] only audio ffmpeg References: Message-ID: Abu Abdullah gmail.com> writes: > --enable-demuxer=mp3 --enable-demuxer=wma > --enable-demuxer=rm --enable-demuxer=opus > --enable-demuxer='mov,mp4,m4a,3gp,3g2,mj2' Not all these demuxers exist: --enable-demuxer=mp3,asf,rm,mov,matroska And remove all others. Consider using --disable-network if you don't need it. Carl Eugen From falcon.sheep at gmail.com Mon Jul 21 18:42:47 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Mon, 21 Jul 2014 20:42:47 +0400 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: Message-ID: On Mon, Jul 21, 2014 at 8:24 PM, Carl Eugen Hoyos wrote: > Abu Abdullah gmail.com> writes: > >> --enable-demuxer=mp3 --enable-demuxer=wma >> --enable-demuxer=rm --enable-demuxer=opus >> --enable-demuxer='mov,mp4,m4a,3gp,3g2,mj2' > > Not all these demuxers exist: > --enable-demuxer=mp3,asf,rm,mov,matroska > > And remove all others. > > Consider using --disable-network if you > don't need it. > wma is working now but opus is still not working, i tried to add vorbis but no luck >ffmpeg.exe -i sample.opus ffmpeg version N-64820-g73b7a36 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 21 2014 20:41:00 with gcc 4.8.3 (GCC) 20140522 (Fedora MinGW 4.8.3-1.fc20) configuration: --arch=x86 --target-os=mingw32 --enable-cross-compile --cc=i686-w64-mingw32-gcc --ranlib=i686-w64-mingw 32-ranlib --ar=i686-w64-mingw32-ar --as=i686-w64-mingw32-as --nm=i686-w64-mingw32-nm --disable-logging --enable-small -- disable-runtime-cpudetect --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc -- disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-everything --enable-decoder=mp3 --e nable-decoder=mp3float --enable-decoder=mp3adufloat --enable-decoder=mp3adu --enable-decoder=mp3on4 --enable-decoder=mp3 on4float --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-dec oder=wmavoice --enable-decoder=sipr --enable-decoder=real_144 --enable-decoder=real_288 --enable-decoder=ralf --enable-d ecoder=rv10 --enable-decoder=rv20 --enable-decoder=rv30 --enable-decoder=rv40 --enable-decoder=cook --enable-decoder=opu s --enable-decoder=vorbis --enable-decoder=mp4als --enable-parser=opus --enable-demuxer='mp3,asf,matroska,rm,mov' --disa ble-network --enable-protocol=file libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 sample.opus: Invalid data found when processing input From kalleernst at googlemail.com Mon Jul 21 18:45:31 2014 From: kalleernst at googlemail.com (Radioaktiver Zerfall) Date: Mon, 21 Jul 2014 18:45:31 +0200 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: Message-ID: UNSUBSCRIBE 2014-07-21 18:42 GMT+02:00 Abu Abdullah : > On Mon, Jul 21, 2014 at 8:24 PM, Carl Eugen Hoyos > wrote: > > Abu Abdullah gmail.com> writes: > > > >> --enable-demuxer=mp3 --enable-demuxer=wma > >> --enable-demuxer=rm --enable-demuxer=opus > >> --enable-demuxer='mov,mp4,m4a,3gp,3g2,mj2' > > > > Not all these demuxers exist: > > --enable-demuxer=mp3,asf,rm,mov,matroska > > > > And remove all others. > > > > Consider using --disable-network if you > > don't need it. > > > > wma is working now but opus is still not working, i tried to add > vorbis but no luck > >ffmpeg.exe -i sample.opus > ffmpeg version N-64820-g73b7a36 Copyright (c) 2000-2014 the FFmpeg > developers > built on Jul 21 2014 20:41:00 with gcc 4.8.3 (GCC) 20140522 (Fedora > MinGW 4.8.3-1.fc20) > configuration: --arch=x86 --target-os=mingw32 --enable-cross-compile > --cc=i686-w64-mingw32-gcc --ranlib=i686-w64-mingw > 32-ranlib --ar=i686-w64-mingw32-ar --as=i686-w64-mingw32-as > --nm=i686-w64-mingw32-nm --disable-logging --enable-small -- > disable-runtime-cpudetect --disable-swscale-alpha --disable-ffplay > --disable-ffprobe --disable-ffserver --disable-doc -- > disable-htmlpages --disable-manpages --disable-podpages > --disable-txtpages --disable-everything --enable-decoder=mp3 --e > nable-decoder=mp3float --enable-decoder=mp3adufloat > --enable-decoder=mp3adu --enable-decoder=mp3on4 --enable-decoder=mp3 > on4float --enable-decoder=wmalossless --enable-decoder=wmapro > --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-dec > oder=wmavoice --enable-decoder=sipr --enable-decoder=real_144 > --enable-decoder=real_288 --enable-decoder=ralf --enable-d > ecoder=rv10 --enable-decoder=rv20 --enable-decoder=rv30 > --enable-decoder=rv40 --enable-decoder=cook --enable-decoder=opu > s --enable-decoder=vorbis --enable-decoder=mp4als --enable-parser=opus > --enable-demuxer='mp3,asf,matroska,rm,mov' --disa > ble-network --enable-protocol=file > libavutil 52. 92.101 / 52. 92.101 > libavcodec 55. 69.100 / 55. 69.100 > libavformat 55. 48.101 / 55. 48.101 > libavdevice 55. 13.102 / 55. 13.102 > libavfilter 4. 11.102 / 4. 11.102 > libswscale 2. 6.100 / 2. 6.100 > libswresample 0. 19.100 / 0. 19.100 > sample.opus: Invalid data found when processing input > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From kslimani at diffusepro.com Mon Jul 21 18:47:10 2014 From: kslimani at diffusepro.com (kslimani at diffusepro.com) Date: Mon, 21 Jul 2014 18:47:10 +0200 Subject: [FFmpeg-user] Need help with video filter to create multiple ouput In-Reply-To: References: Message-ID: <75fca0959c516acda600954d9b1ad3c2.squirrel@mail.playtivi.com> Hello, i am trying to transcode a live UDP stream into 4 rtmp output stream using a single ffmpeg process but my command line display this error : "At least one output file must be specified". The command i am using is : ffmpeg -i udp://224.0.0.1:1234 \ -vf "crop=iw-5:ih-5:5:5,yadif,split=2[out0][out1];[out0]scale=1280:720,split=2[src0][src1];[out1]scale=848:480,split=2[src2][src3]" \ -map "[src0]" -aspect 16:9 -r 25 -vb 2500k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv rtmp://192.168.1.1/live/test_2500 \ -map "[src1]" -aspect 16:9 -r 25 -vb 1500k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv rtmp://192.168.1.1/live/test_1500 \ -map "[src2]" -aspect 16:9 -r 25 -vb 700k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv rtmp://192.168.1.1/live/test_800 \ -map "[src3]" -aspect 16:9 -r 25 -vb 250k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 1 -ar 48000 -ab 48k -async 1 -f flv rtmp://192.168.1.1/live/test_300 Basically, i am trying to use video filters to crop & deinterlace the input only once, then split in 2, scale into 2 different resolution and again split each resolution in 2 and finally use -map option to encode each filter output. My FFmpeg version is compiled today from git sources : ffmpeg version git-2014-07-21-4927c0a Copyright (c) 2000-2014 the FFmpeg developers built on Jul 21 2014 15:44:04 with gcc 4.7 (Debian 4.7.2-5) configuration: --enable-x11grab --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libopus --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-avresample libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Does someone see which could be the reason it does not work ? Thank you for help. From h.reindl at thelounge.net Mon Jul 21 18:48:35 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 21 Jul 2014 18:48:35 +0200 Subject: [FFmpeg-user] dont' hijack threads! -> Re: only audio ffmpeg In-Reply-To: References: Message-ID: <53CD4463.6000507@thelounge.net> Am 21.07.2014 18:45, schrieb Radioaktiver Zerfall: > UNSUBSCRIBE Dein Name ist Programm? :-) as it would not be enough to be too dumb for unsubscribe from a mailing-list don't respond to a random thread List-Id: FFmpeg user questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From tevans.uk at googlemail.com Mon Jul 21 21:09:00 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 21 Jul 2014 19:09:00 +0000 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> Message-ID: On Sun, Jul 20, 2014 at 8:53 PM, Jan Ehrhardt wrote: > Reindl Harald in gmane.comp.video.ffmpeg.user (Sun, 20 Jul 2014 22:45:26 > +0200): >>such OS calls are typically done via cronjobs and very >>restricted CLI calls and not directly running in the >>webservers context at all > > My users need instant feedback on what is in a videofile. Besides that: > they are running php-ffmpeg on systems, where I cannot invoke cronjobs. > Shell'ing to run ffprobe gets you the same data; using software with known exploits is much more insecure than making sure you correctly escape filenames. It's insane to knowingly use software that if you give it the right file, *will* allow arbitrary code execution. Cheers Tom From george at nsup.org Mon Jul 21 21:20:53 2014 From: george at nsup.org (Nicolas George) Date: Mon, 21 Jul 2014 21:20:53 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> Message-ID: <20140721192052.GA19708@phare.normalesup.org> Le tridi 3 thermidor, an CCXXII, Tom Evans a ?crit?: > Shell'ing to run ffprobe gets you the same data; using software with > known exploits is much more insecure than making sure you correctly > escape filenames. And it is even better to make sure not to _need_ to escape filenames. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From h.reindl at thelounge.net Mon Jul 21 21:27:20 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 21 Jul 2014 21:27:20 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: <20140721192052.GA19708@phare.normalesup.org> References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> <20140721192052.GA19708@phare.normalesup.org> Message-ID: <53CD6998.2050009@thelounge.net> Am 21.07.2014 21:20, schrieb Nicolas George: > Le tridi 3 thermidor, an CCXXII, Tom Evans a ?crit : >> Shell'ing to run ffprobe gets you the same data; using software with >> known exploits is much more insecure than making sure you correctly >> escape filenames. > > And it is even better to make sure not to _need_ to escape filenames that was not the question the question is between using known unsecure software where *every* input file could lead to code execution or escape filenames using *knowingly unsecure* software in environments where users can submit input files is just stupid you have two choices: * update and find a solution for your needs * don't offer a specific service if you can't do it secure -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From bikashkumar.sinha at gmail.com Mon Jul 21 21:31:14 2014 From: bikashkumar.sinha at gmail.com (Bikash Kumar Sinha) Date: Mon, 21 Jul 2014 14:31:14 -0500 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: Message-ID: All, Am new to ffmpeg and am trying to use it to merge videos in my application. Basically I am trying to merge Questions (pre recorded) and Answers ( submitted by users) videos in a list but I get the below error. Q1 A1 Q2 A2 Q3 A3 [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: use audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg) av_interleaved_write_frame(): Operation not permitted There aren't any issues if I just merge A1, A2, A3, but not working as soon as I plug in the Q videos in between. I can share more details if you need me to ( even the videos and the script files if that would help.) Would really appreciate your help. Thanks Bikash From ffmpeg-user at c-14.de Mon Jul 21 21:55:58 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Mon, 21 Jul 2014 21:55:58 +0200 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: References: Message-ID: <20140721195558.GA1994@anonymous> On 21/07/14 at 14:31, Bikash Kumar Sinha wrote: > [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: use audio > bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option > with ffmpeg) > av_interleaved_write_frame(): Operation not permitted Have you tried adding -bsf:a aac_adtstoasc to your commandline like it says right there? > I can share more details if you need me to ( even the videos and the script > files if that would help.) We normally want your complete command and full console output. -- Simon Thelen From h.reindl at thelounge.net Mon Jul 21 22:02:44 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 21 Jul 2014 22:02:44 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: <53CD6998.2050009@thelounge.net> References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> <20140721192052.GA19708@phare.normalesup.org> <53CD6998.2050009@thelounge.net> Message-ID: <53CD71E4.4040308@thelounge.net> Am 21.07.2014 21:27, schrieb Reindl Harald: > Am 21.07.2014 21:20, schrieb Nicolas George: >> Le tridi 3 thermidor, an CCXXII, Tom Evans a ?crit : >>> Shell'ing to run ffprobe gets you the same data; using software with >>> known exploits is much more insecure than making sure you correctly >>> escape filenames. >> >> And it is even better to make sure not to _need_ to escape filenames > > that was not the question > > the question is between using known unsecure software > where *every* input file could lead to code execution > or escape filenames > > using *knowingly unsecure* software in environments > where users can submit input files is just stupid > > you have two choices: > > * update and find a solution for your needs > * don't offer a specific service if you can't do it secure and if it comes to ffmpeg and "my users need instant feedback" you always can setup a own apache instance allowing shell-execute which provides a restricted webservice running only on 127.0.0.1 and called by the public website - this has it's own "php.ini" that way you can configure sane "disable_functions" blocking any shell code and so secure Joomla or whatever is running on the public webserver i did that years ago for a very large project where instant images of incoming video streams was needed on a public website for any public webserver unconditionally open_basedir and the blacklist below is the way to go and no known vulnerable software installed disable_functions = "apache_child_terminate, chown, dl, exec, fileinode, get_current_user, getmypid, getmyuid, getrusage, highlight_file, link, mail, openlog, passthru, pclose, pcntl_alarm, pcntl_errno, pcntl_exec, pcntl_fork, pcntl_get_last_error, pcntl_getpriority, pcntl_setpriority, pcntl_signal_dispatch, pcntl_signal, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, pfsockopen, popen, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, show_source, socket_accept, socket_bind, symlink, syslog, system -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From bikashkumar.sinha at gmail.com Mon Jul 21 22:03:18 2014 From: bikashkumar.sinha at gmail.com (Bikash Kumar Sinha) Date: Mon, 21 Jul 2014 15:03:18 -0500 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: <20140721195558.GA1994@anonymous> References: <20140721195558.GA1994@anonymous> Message-ID: Simon, please see the details below- Where do I add that filter in the command line? c:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg.exe -f concat -i C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\files.txt -c copy C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\A.mp4 ffmpeg version N-64836-gce385c8 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 20 2014 23:42:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [concat @ 0000000002d58dc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\files.txt': Duration: 00:00:00.02, start: 0.000000, bitrate: 191 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) ([16][0][0][0] / 0x0010), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 60k tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 192 kb/s File 'C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\A.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\A.mp4': Metadata: encoder : Lavf55.48.101 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 90k tbn, 90k tbc Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mp4 @ 0000000002d89740] Malformed AAC bitstream detected: use audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg) av_interleaved_write_frame(): Operation not permitted frame= 5 fps=0.0 q=-1.0 Lsize= 13kB time=00:00:00.06 bitrate=1542.1kbits/s video:12kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.150806% Conversion failed! [image: Inline image 1] On Mon, Jul 21, 2014 at 2:55 PM, Simon Thelen wrote: > On 21/07/14 at 14:31, Bikash Kumar Sinha wrote: > > [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: use audio > > bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option > > with ffmpeg) > > av_interleaved_write_frame(): Operation not permitted > Have you tried adding -bsf:a aac_adtstoasc to your commandline like it > says right there? > > > I can share more details if you need me to ( even the videos and the > script > > files if that would help.) > We normally want your complete command and full console output. > > -- > Simon Thelen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 66844 bytes Desc: not available URL: From ffmpeg-user at c-14.de Mon Jul 21 22:30:36 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Mon, 21 Jul 2014 22:30:36 +0200 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: References: <20140721195558.GA1994@anonymous> Message-ID: <20140721203036.GB1994@anonymous> On 21/07/14 at 15:03, Bikash Kumar Sinha wrote: > Simon, please see the details below- Where do I add that filter in the > command line? > > c:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg.exe -f concat -i > C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\files.txt -c > copy C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\A.mp4 > bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option ffmpeg.exe -f concat -i files.txt -bsf:a aac_adtstoasc -c copy output.mp4 Also, top-posting is considered rude. Please don't do it on this mailing list. -- Simon Thelen From adf.lists at gmail.com Mon Jul 21 22:39:16 2014 From: adf.lists at gmail.com (Andy Furniss) Date: Mon, 21 Jul 2014 21:39:16 +0100 Subject: [FFmpeg-user] website query - ffmpeg-trac archive points to avcodec.org Message-ID: <53CD7A74.1010707@gmail.com> the links from this link on the contact us page - https://lists.ffmpeg.org/mailman/listinfo/ffmpeg-trac/ point to https://avcodec.org/pipermail/ffmpeg-trac/ and mailto:ffmpeg-trac at avcodec.org and seamonkey throws an untrusted site message. The direct link to the ffmpeg-trac-archives from the contact us page is "normal" https://lists.ffmpeg.org/pipermail/ffmpeg-trac/ From vlvegas at msn.com Mon Jul 21 22:46:15 2014 From: vlvegas at msn.com (VINCE LAURIA) Date: Mon, 21 Jul 2014 13:46:15 -0700 Subject: [FFmpeg-user] website query - ffmpeg-trac archive points to avcodec.org In-Reply-To: <53CD7A74.1010707@gmail.com> References: <53CD7A74.1010707@gmail.com> Message-ID: Andy, How do I make the program know I am a registered user so I can use the tools option? Thank you! Vince Lauria Guitarist | Composer | Author 702.262.7862 Las Vegas 213.290.6281 Los Angeles __________________________________________________________________ Website: http://vincelauriamusic.com YouTube: http://www.youtube.com/user/vlvegas Bio: http://www.google.com/profiles/vincellauria iTunes: http://www.itunes.com/vincelauria IMDb: http://www.imdb.com/name/nm2453456/ ________________________________________________________ > Date: Mon, 21 Jul 2014 21:39:16 +0100 > From: adf.lists at gmail.com > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] website query - ffmpeg-trac archive points to avcodec.org > > the links from this link on the contact us page - > > https://lists.ffmpeg.org/mailman/listinfo/ffmpeg-trac/ > > point to > > https://avcodec.org/pipermail/ffmpeg-trac/ > > and > > mailto:ffmpeg-trac at avcodec.org > > and seamonkey throws an untrusted site message. > > The direct link to the ffmpeg-trac-archives from the contact us page is > "normal" > > https://lists.ffmpeg.org/pipermail/ffmpeg-trac/ > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From adf.lists at gmail.com Mon Jul 21 22:58:32 2014 From: adf.lists at gmail.com (Andy Furniss) Date: Mon, 21 Jul 2014 21:58:32 +0100 Subject: [FFmpeg-user] website query - ffmpeg-trac archive points to avcodec.org In-Reply-To: References: <53CD7A74.1010707@gmail.com> Message-ID: <53CD7EF8.1020805@gmail.com> VINCE LAURIA wrote: > Andy, > How do I make the program know I am a registered user so I can use the tools option? > Thank you! I don't know what you mean - but you should post a new thread with the question and more explanation rather than ask in this thread. From cehoyos at ag.or.at Mon Jul 21 23:14:01 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 21 Jul 2014 21:14:01 +0000 (UTC) Subject: [FFmpeg-user] only audio ffmpeg References: Message-ID: Abu Abdullah gmail.com> writes: > > --enable-demuxer=mp3,asf,rm,mov,matroska > wma is working now but opus is still not working Sorry, I confused something (opus vs webm), it should be: --enable-demuxer=mp3,asf,rm,mov,ogg Carl Eugen From gama at t-online.hu Tue Jul 22 01:06:30 2014 From: gama at t-online.hu (gama at t-online.hu) Date: Tue, 22 Jul 2014 01:06:30 +0200 (CEST) Subject: [FFmpeg-user] injecting timed metadata Message-ID: Hi All, It is possible to inject timed metadata with ffmpeg ? I want to use ffmpeg to create some test rtmp stream for a wowza server to send metadata periodically like after every 5 sec. Can someone write an example or just point me in the right direction. Or maybe I have to use some other tool for this ? Thx. Regards, Gama From l1 at newanswertech.com Tue Jul 22 05:26:53 2014 From: l1 at newanswertech.com (Luke Davis) Date: Mon, 21 Jul 2014 23:26:53 -0400 (EDT) Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# Message-ID: Hello I am taking streamed data from QuickTime Broadcaster. It streams audio on one port, and H264 video on another port. I am receiving that data with FFMpeg, and creating an HLS of MPEGTS segments from it. The stream works fine most of the time, but I receive the following, continuously: [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=0 ... After about five minutes ... [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4 [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4 [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4 [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4 [mpegts @ 0x21e21a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=5 [sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=5 The drop number increases over time. The source is sending 15 FPS, with a keyframe every 5. So my questions are: 1. What damage is actually happening to my outgoing stream here, and is this a problem that can eventually disrupt the stream? I assume it is frames being dropped? 2. Is there any way to solve this, other than not using H264? I can use MPEG video, but the quality is less (looks noticeably worse). 3. If it is not solvable, is there any way to suppress the warning without losing other potentially helpful warnings? 4. What about this timebase warning? What am I doing wrong to cause that? Command line: ffmpeg -i /home/streamer/origin.sdp \ -acodec libfdk_aac -ac 2 -b:a 128k -vcodec libx264 -vpre libx264-ipod640 -b:v 500k -threads 0 -g 75 -level 3.1 \ -map 0 -vbsf h264_mp4toannexb \ -flags -global_header -f segment \ -segment_time 10 \ -segment_list stream.m3u8 -segment_list_flags +live -segment_list_size 9 \ -segment_list_entry_prefix "$url" -segment_format mpegts stream%05d.ts Full console output before errors: ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 18 2014 04:01:59 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [sdp @ 0x30410a0] Concatenated H.264 or H.265 might not play correctly. Input #0, sdp, from '/home/streamer/origin.sdp': Metadata: title : QuickTime Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp Stream #0:1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480, 14.99 tbr, 90k tbn, 180k tbc Metadata: encoder : H.264 [libx264 @ 0x314a9e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x314a9e0] profile Constrained Baseline, level 3.0 [segment @ 0x3133340] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x3133340] Codec for stream 1 does not use global headers but container format requires global headers [mpegts @ 0x3235120] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times Output #0, segment, to 'stream%05d.ts': Metadata: title : QuickTime encoder : Lavf55.48.101 Stream #0:0: Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc55.69.100 libfdk_aac Stream #0:1: Video: h264 (libx264), yuv420p, 720x480, q=-1--1, 500 kb/s, 14.99 fps, 14.99 tbn, 14.99 tbc Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (aac (native) -> aac (libfdk_aac)) Stream #0:1 -> #0:1 (h264 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [sdp @ 0x30410a0] Concatenated H.264 or H.265 might not play correctly.rop=0 frame= 42 fps= 41 q=0.0 size=N/A time=00:00:03.02 bitrate=N/A dup=2 drop=0 Note, in the above run, it kept running with drop=0. It eventually did start increasing, however. [sdp @ 0x30410a0] Concatenated H.264 or H.265 might not play correctly.drop=3 frame= 5974 fps= 15 q=26.0 size=N/A time=00:06:39.00 bitrate=N/A dup=6 drop=3 Thanks for any help Luke From falcon.sheep at gmail.com Tue Jul 22 06:43:57 2014 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Tue, 22 Jul 2014 08:43:57 +0400 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: Message-ID: On Tue, Jul 22, 2014 at 1:14 AM, Carl Eugen Hoyos wrote: > Abu Abdullah gmail.com> writes: > >> > --enable-demuxer=mp3,asf,rm,mov,matroska > >> wma is working now but opus is still not working > > Sorry, I confused something (opus vs webm), it should be: > --enable-demuxer=mp3,asf,rm,mov,ogg > thanks, it works now From anssi.saari at iki.fi Tue Jul 22 01:23:17 2014 From: anssi.saari at iki.fi (Anssi Saari) Date: Tue, 22 Jul 2014 02:23:17 +0300 Subject: [FFmpeg-user] Colons in file name => "Protocol not found" Message-ID: <4086326.ej4qtE7aag@x201> I tried to convert an flv file that my TV doesn't like to mp4 with ffmpeg but all I got was "protocol not found"... As it turns out, the file was named Teinipomo-2014-07-11T19:30:05.flv and apparently that somehow confuses ffmpeg to think there's some kind of a protocol involved instead of a file. But really that's an ISO 8601 format standard date and time there so shouldn't that be handled better than just "protocol not found"? $ ffmpeg -i Teinipomo-2014-07-11T19:30:05.flv -codec copy t.mp4 ffmpeg version 1.0.9 Copyright (c) 2000-2014 the FFmpeg developers built on May 2 2014 12:55:13 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector -- param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='- Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac -- enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable- libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable- libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype -- enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable- libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable- libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable- libdc1394 --disable-altivec --dis libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Teinipomo-2014-07-11T19:30:05.flv: Protocol not found From george at nsup.org Tue Jul 22 09:24:19 2014 From: george at nsup.org (Nicolas George) Date: Tue, 22 Jul 2014 09:24:19 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website In-Reply-To: <53CD6998.2050009@thelounge.net> References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> <20140721192052.GA19708@phare.normalesup.org> <53CD6998.2050009@thelounge.net> Message-ID: <20140722072419.GA1231@phare.normalesup.org> Le tridi 3 thermidor, an CCXXII, Reindl Harald a ?crit?: > > Le tridi 3 thermidor, an CCXXII, Tom Evans a ?crit : > >> Shell'ing to run ffprobe gets you the same data; using software with > >> known exploits is much more insecure than making sure you correctly > >> escape filenames. > > And it is even better to make sure not to _need_ to escape filenames > that was not the question Tom answered the question, and I wholly agree with the idea of his answer. I was just enhancing a detail in it. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From matej at tam.si Tue Jul 22 10:05:06 2014 From: matej at tam.si (Matej) Date: Tue, 22 Jul 2014 10:05:06 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Mon, Jul 21, 2014 at 3:00 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > On Mon, Jul 21, 2014 at 2:13 PM, Carl Eugen Hoyos wrote: > > > > > Matej tam.si> writes: > > > > > > > Things work perfectly for about an hour (sound is > > > > smooth and the video too fpr the entire period), > > > > but after approximate 55 minutes (sometimes little > > > > less, sometimes more) the following messages start > > > > to pop-up: > > > > > > Does it work for file output or do you see the same > > > problems for file output as for network output? > > > > > > Does it work if you remove the audio / video stream? > > > > As mentioned, the same errors occur when outputting to > > the file. > > Do you see the same error if you don't use a real audio > input but -f lavfi -i sine instead? > > And could you use a transport stream from your harddrive > as source (NOT ffmpeg-created)? > Finally, you could create a transport stream with ffmpeg, > this should be a file that has starttime ~0 like the > audio input: Does this work fine? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Hi, I have tried to use local TS file and -f lavfi -i sine as inputs and the muxing errors about delays start to show up immediately, so it's the same situation as with the video input and -f lavfi -i sine sound. Any ideas on what is causing the problem and how to solve it will be very appreciated :-) Thanks, Matej From l1 at newanswertech.com Tue Jul 22 10:10:07 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 22 Jul 2014 04:10:07 -0400 (EDT) Subject: [FFmpeg-user] Colons in file name => "Protocol not found" In-Reply-To: <4086326.ej4qtE7aag@x201> References: <4086326.ej4qtE7aag@x201> Message-ID: On Tue, 22 Jul 2014, Anssi Saari wrote: > I tried to convert an flv file that my TV doesn't like to mp4 with ffmpeg but all > I got was "protocol not found"... As it turns out, the file was named > Teinipomo-2014-07-11T19:30:05.flv and apparently that somehow confuses ffmpeg to > think there's some kind of a protocol involved instead of a file. But really > that's an ISO 8601 format standard date and time there so shouldn't that be > handled better than just "protocol not found"? Are you 100% sure it's the name at issue? I.E.: ln Teinipomo-2014-07-11T19:30:05.flv t.flv > $ ffmpeg -i t.flv -codec copy t.mp4 Luke From l1 at newanswertech.com Tue Jul 22 10:32:33 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 22 Jul 2014 04:32:33 -0400 (EDT) Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Tue, 22 Jul 2014, Matej wrote: > I have tried to use local TS file and -f lavfi -i sine as inputs and the > muxing errors about delays start to show up immediately, so it's the same > situation as with the video input and -f lavfi -i sine sound. > > Any ideas on what is causing the problem and how to solve it will be very > appreciated :-) Maybe an out there question, but what kind of hardware is this? What is your CPU and memory load like both while it's working, and while it isn't? (Especially right when it starts having issues--about 55 minutes in, you said.) I was seeing all kinds of timing issues, desynchronization issues, corrupted streams, and so on, by only running on a 1.6 or 2.6 single core system. Switched to a 2.8 multi core, with 8 GB RAM, and they all went away immediately. Not exactly your problem, but some of it would happen after running fine for a short time, and maybe there's some potential of relation. Then again, maybe not--stab in the dark. Luke From l1 at newanswertech.com Tue Jul 22 10:42:01 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 22 Jul 2014 04:42:01 -0400 (EDT) Subject: [FFmpeg-user] Failed to set VP8E_SET_ARNR_TYPE codec control: Invalid parameter Message-ID: Hi I am trying to use ffserver to transcode some MPEGTS files (an HLS) to webm. Configs below. I am using ffmpeg launched from within ffserver. The error I am seeing with ffserver -d, is: [libvpx @ 0x2b22740] Failed to set VP8E_SET_ARNR_TYPE codec control: Invalid parameter [libvpx @ 0x2b22740] Additional information: arnr_type out of range [1..3] I have no idea either where I should set this parameter, or what it should be set to. Or, for that matter, what it does. Can anyone advise? The HLS in question is live, and it works. Configs and console output: ffserver.conf: Port 8010 BindAddress 0.0.0.0 MaxClients 1000 MaxHTTPConnections 1010 MaxBandwidth 5000000 file /var/www/video/.rawstream.ffm Launch ffmpeg -i /var/www/video/stream.m3u8 FileMaxSize 1G ACL allow 127.0.0.1 Feed stream.ffm Format webm AudioBitRate 128 AudioSampleRate 48000 AudioChannels 2 VideoCodec libvpx VideoSize 320x160 VideoFrameRate 15 AVOptionVideo flags +global_header AVOptionAudio flags +global_header PreRoll 15 StartSendOnKey VideoBitRate 500 Console output of ffserver -d: ffserver version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 18 2014 04:01:59 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Tue Jul 22 08:18:41 2014 FFserver started. Tue Jul 22 08:18:41 2014 Launch command line: ffmpeg -i /var/www/video/stream.m3u8 http://127.0.0.1:8010/stream.ffm ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 18 2014 04:01:59 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [hls,applehttp @ 0x2e60c20] Estimating duration from bitrate, this may be inaccurate Input #0, hls,applehttp, from '/var/www/video/stream.m3u8': Duration: 00:00:00.06, start: 17901.661767, bitrate: 96 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 145 kb/s Stream #0:1: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 720x480, 14.99 fps, 14.99 tbr, 90k tbn, 29.97 tbc Tue Jul 22 08:18:41 2014 127.0.0.1 - - New connection: GET /stream.ffm Tue Jul 22 08:18:41 2014 127.0.0.1 - - [GET] "/stream.ffm HTTP/1.1" 200 4175 Tue Jul 22 08:18:41 2014 127.0.0.1 - - New connection: POST /stream.ffm [libvpx @ 0x300e900] v1.3.0 [libvpx @ 0x300e900] Failed to set VP8E_SET_ARNR_TYPE codec control: Invalid parameter [libvpx @ 0x300e900] Additional information: arnr_type out of range [1..3] Output #0, ffm, to 'http://127.0.0.1:8010/stream.ffm': Metadata: creation_time : now encoder : Lavf55.48.101 Stream #0:0: Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc55.69.100 libvorbisTue Jul 22 08:18:41 2014 [NULL @ 0x1e32b60] Stream #0:1: Video: vp8 (libvpx), yuv420p, 320x160, q=2-31, 500 kb/s, 14.99 fpsTue Jul 22 08:18:41 2014 127.0.0.1 - - [POST] "/stream.ffm HTTP/1.1" 200 4096 , 14.99 tbc Metadata: encoder : Lavc55.69.100 libvpx Stream mapping: Stream #0:0 -> #0:0 (aac (native) -> vorbis (libvorbis)) Stream #0:1 -> #0:1 (h264 (native) -> vp8 (libvpx)) Press [q] to stop, [?] for help av_interleaved_write_frame(): Connection reset by peer frame= 1 fps=0.0 q=0.0 Lsize= 24kB time=00:00:00.40 bitrate= 486.7kbits/s video:20kB audio:6kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: unknown stream.ffm: Pid 5091 exited with status 13 after 0 seconds M3U8 from stream in progress: #EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:14 #EXT-X-ALLOW-CACHE:YES #EXT-X-TARGETDURATION:11 #EXTINF:10.010000, stream00014.ts #EXTINF:10.010000, stream00015.ts #EXTINF:10.010000, stream00016.ts #EXTINF:10.010000, stream00017.ts #EXTINF:10.010000, stream00018.ts #EXTINF:10.010000, stream00019.ts #EXTINF:10.010000, stream00020.ts #EXTINF:10.010000, stream00021.ts #EXTINF:10.010000, stream00022.ts From l1 at newanswertech.com Tue Jul 22 10:44:57 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 22 Jul 2014 04:44:57 -0400 (EDT) Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Tue, 22 Jul 2014, Luke Davis wrote: > On Tue, 22 Jul 2014, Matej wrote: > >> I have tried to use local TS file and -f lavfi -i sine as inputs and the >> muxing errors about delays start to show up immediately, so it's the same >> situation as with the video input and -f lavfi -i sine sound. >> >> Any ideas on what is causing the problem and how to solve it will be very >> appreciated :-) > > Maybe an out there question, but what kind of hardware is this? What is your > CPU and memory load like both while it's working, and while it isn't? > (Especially right when it starts having issues--about 55 minutes in, you > said.) > > I was seeing all kinds of timing issues, desynchronization issues, corrupted > streams, and so on, by only running on a 1.6 or 2.6 single core system. Correction: 1.6 GHZ or 2.0 GHZ. > Switched to a 2.8 multi core, with 8 GB RAM, and they all went away > immediately. Not exactly your problem, but some of it would happen after > running fine for a short time, and maybe there's some potential of relation. > Then again, maybe not--stab in the dark. From kslimani at diffusepro.com Tue Jul 22 11:57:44 2014 From: kslimani at diffusepro.com (kslimani at diffusepro.com) Date: Tue, 22 Jul 2014 11:57:44 +0200 Subject: [FFmpeg-user] Need help with video filter to create multiple ouput In-Reply-To: <75fca0959c516acda600954d9b1ad3c2.squirrel@mail.playtivi.com> References: <75fca0959c516acda600954d9b1ad3c2.squirrel@mail.playtivi.com> Message-ID: <6f44aed4a5669066ffc3eb4f62f9e310.squirrel@mail.playtivi.com> > Hello, > > i am trying to transcode a live UDP stream into 4 rtmp output stream using > a single ffmpeg process but my command line display this error : "At least > one output file must be specified". > > The command i am using is : > > ffmpeg -i udp://224.0.0.1:1234 \ > -vf > "crop=iw-5:ih-5:5:5,yadif,split=2[out0][out1];[out0]scale=1280:720,split=2[src0][src1];[out1]scale=848:480,split=2[src2][src3]" > \ > -map "[src0]" -aspect 16:9 -r 25 -vb 2500k -vcodec libx264 -vprofile > baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv > rtmp://192.168.1.1/live/test_2500 \ > -map "[src1]" -aspect 16:9 -r 25 -vb 1500k -vcodec libx264 -vprofile > baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv > rtmp://192.168.1.1/live/test_1500 \ > -map "[src2]" -aspect 16:9 -r 25 -vb 700k -vcodec libx264 -vprofile > baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv > rtmp://192.168.1.1/live/test_800 \ > -map "[src3]" -aspect 16:9 -r 25 -vb 250k -vcodec libx264 -vprofile > baseline -g 50 -acodec libfdk_aac -ac 1 -ar 48000 -ab 48k -async 1 -f flv > rtmp://192.168.1.1/live/test_300 > > Basically, i am trying to use video filters to crop & deinterlace the > input only once, then split in 2, scale into 2 different resolution and > again split each resolution in 2 and finally use -map option to encode > each filter output. > > My FFmpeg version is compiled today from git sources : > > ffmpeg version git-2014-07-21-4927c0a Copyright (c) 2000-2014 the FFmpeg > developers > built on Jul 21 2014 15:44:04 with gcc 4.7 (Debian 4.7.2-5) > configuration: --enable-x11grab --enable-gpl --enable-libfaac > --enable-libfdk-aac --enable-libopus --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-nonfree --enable-version3 --enable-avresample > libavutil 52. 92.101 / 52. 92.101 > libavcodec 55. 69.100 / 55. 69.100 > libavformat 55. 48.101 / 55. 48.101 > libavdevice 55. 13.102 / 55. 13.102 > libavfilter 4. 11.102 / 4. 11.102 > libavresample 1. 3. 0 / 1. 3. 0 > libswscale 2. 6.100 / 2. 6.100 > libswresample 0. 19.100 / 0. 19.100 > libpostproc 52. 3.100 / 52. 3.100 > > Does someone see which could be the reason it does not work ? > > Thank you for help. > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > My command is now working, but i have only video in my outputs. Can someone give me a tips on how also inject audio in outputs ? My "working" command line is currently (splited in several lines for easier reading) : ffmpeg -i "udp://224.0.0.1:1234?overrun_nonfatal=0&fifo_size=1000000" -filter_complex "crop=iw-5:ih-5:5:5,yadif,split=2[out0][out1]; [out0]scale=1280:720,split=2[src0][src1]; [out1]scale=848:480,split=2[src2][src3]" -map "[src0]" -aspect 16:9 -r 25 -vb 2500k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv rtmp://192.168.1.1/live/test_2500 -map "[src1]" -aspect 16:9 -r 25 -vb 1500k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv rtmp://192.168.1.1/live/test2_1500 -map "[src2]" -aspect 16:9 -r 25 -vb 700k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 2 -ar 48000 -ab 128k -async 1 -f flv rtmp://192.168.1.1/live/test2_800 -map "[src3]" -aspect 16:9 -r 25 -vb 250k -vcodec libx264 -vprofile baseline -g 50 -acodec libfdk_aac -ac 1 -ar 48000 -ab 48k -async 1 -f flv rtmp://192.168.1.1/live/test2_300 From matej at tam.si Tue Jul 22 12:30:33 2014 From: matej at tam.si (Matej) Date: Tue, 22 Jul 2014 12:30:33 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Tue, Jul 22, 2014 at 10:44 AM, Luke Davis wrote: > On Tue, 22 Jul 2014, Luke Davis wrote: > > On Tue, 22 Jul 2014, Matej wrote: >> >> I have tried to use local TS file and -f lavfi -i sine as inputs and the >>> muxing errors about delays start to show up immediately, so it's the same >>> situation as with the video input and -f lavfi -i sine sound. >>> >>> Any ideas on what is causing the problem and how to solve it will be very >>> appreciated :-) >>> >> >> Maybe an out there question, but what kind of hardware is this? What is >> your CPU and memory load like both while it's working, and while it isn't? >> (Especially right when it starts having issues--about 55 minutes in, you >> said.) >> >> I was seeing all kinds of timing issues, desynchronization issues, >> corrupted streams, and so on, by only running on a 1.6 or 2.6 single core >> system. >> > > Correction: 1.6 GHZ or 2.0 GHZ. > > > Switched to a 2.8 multi core, with 8 GB RAM, and they all went away >> immediately. Not exactly your problem, but some of it would happen after >> running fine for a short time, and maybe there's some potential of relation. >> Then again, maybe not--stab in the dark. >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thank you for your suggestion. I am sure that it is not CPU since when muxing already recorded MPEG TS and and -f lavfi -i sine sound input, the errors occur immediately (almost the first second I start the command). The system has is a 4 core Xeon and the load is stable even when muxing both streams where the error messages occur after 55 minutes or so. Perhaps it is something with the build we are using? Matej From cehoyos at ag.or.at Tue Jul 22 12:44:03 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 10:44:03 +0000 (UTC) Subject: [FFmpeg-user] Colons in file name => "Protocol not found" References: <4086326.ej4qtE7aag@x201> Message-ID: Anssi Saari iki.fi> writes: > $ ffmpeg -i Teinipomo-2014-07-11T19:30:05.flv Use the following workaround if your filename contains colons (or if you are sure that you provide a file but cannot rule out that the filename contains colons): $ ffmpeg -i file:Teinipomo-2014-07-11T19:30:05.flv > ffmpeg version 1.0.9 Copyright (c) 2000-2014 the FFmpeg developers This is outdated and unsupported here, please test current FFmpeg git head before reporting issues here. Carl Eugen From cehoyos at ag.or.at Tue Jul 22 12:46:09 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 10:46:09 +0000 (UTC) Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# References: Message-ID: Luke Davis newanswertech.com> writes: > [sdp 0x1fcc0a0] Concatenated H.264 or H.265 > might not play correctly.drop=5 > > The drop number increases over time. > > The source is sending 15 FPS, with a keyframe every 5. > > So my questions are: > > 1. What damage is actually happening to my outgoing > stream here, and is this a problem that can eventually > disrupt the stream? I assume it is frames being > dropped? Only you can answer this question. > 2. Is there any way to solve this, other than not > using H264? I can use MPEG video, but the quality > is less (looks noticeably worse). That is expected, H264 is the best video codec with usable speed. > 3. If it is not solvable, is there any way to > suppress the warning without losing other potentially > helpful warnings? You could patch your source. > > 4. What about this timebase warning? What am I > doing wrong to cause that? Please test current FFmpeg git head before reporting issues here. (This was fixed.) Carl Eugen From cehoyos at ag.or.at Tue Jul 22 12:56:47 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 10:56:47 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > I have tried to use local TS file and -f lavfi -i sine > as inputs and the muxing errors about delays start to > show up immediately, so it's the same situation as > with the video input and -f lavfi -i sine sound. Now please remux your transport stream with FFmpeg and test to confirm my suspicion that this is starttime- related. Carl Eugen From matej at tam.si Tue Jul 22 15:11:36 2014 From: matej at tam.si (Matej) Date: Tue, 22 Jul 2014 15:11:36 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Tue, Jul 22, 2014 at 12:56 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > I have tried to use local TS file and -f lavfi -i sine > > as inputs and the muxing errors about delays start to > > show up immediately, so it's the same situation as > > with the video input and -f lavfi -i sine sound. > > Now please remux your transport stream with FFmpeg and > test to confirm my suspicion that this is starttime- > related. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Could you please tell which streams should I remux: saved video TS containing input video stream + -f lavfi -i sine sound and add what? Thanks, Matej From cehoyos at ag.or.at Tue Jul 22 17:02:04 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 15:02:04 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > > Now please remux your transport stream with FFmpeg and > > test to confirm my suspicion that this is starttime- > > related. > Could you please tell which streams should I remux You tested your original problem (error messages when transcoding a transport stream with an external audio source) with two files iiuc: A local transport stream that you did not create with FFmpeg and a local audio file. I suspect (and wrote twice iirc) that the reason for the problem you see are the different starttimes for your two files: Audio file has starttime 0, ts file has a random starttime. To verify my theory, please remux (or transcode) your local ts file with FFmpeg to get a file with starttime 0 and test again with that (new) file and your audio file. Carl Eugen From pickles at thefoundry.co.uk Tue Jul 22 18:20:28 2014 From: pickles at thefoundry.co.uk (Simon Pickles) Date: Tue, 22 Jul 2014 17:20:28 +0100 Subject: [FFmpeg-user] Strange latency with some codecs Message-ID: Hi I've just upgraded from FFmpeg 1.0 to 2.1.4 and although it was pretty painless, I am having a weird problem with a few codecs. So far I've found this problem occurs with PNG, jpeg2000 and DNxHD. Basically, in the old version a mov format with a png codec used to work fine, with every call to avcodec_decode_video2 succeeding to decode the frame, and got_packet_ptr returning 1. In 2.1.4 I don't get 1 returned by got_packet_ptr. However, if I keep trying to decode the frame, it eventually starts to decode after FIFTEEN attempts! Yes, it is always 15!. I thought I must be doing something strange so I pared it down to a simplest repro case, which follows. Can anyone explain what I have missed. Thanks Simon ///////////////////////////////////////////////////////// // main.cpp ///////////////////////////////////////////////////////// #include #include #ifndef INT64_C #define INT64_C(c) (c ## LL) #define UINT64_C(c) (c ## ULL) #endif extern "C" { #include #include #include #include #include #include #include #include #include } int main(int argc, char *argv[]) { std::string filename = "/tmp/pngMov.mov"; av_register_all(); AVInputFormat* format = NULL; AVFormatContext* context = NULL; int ret = 0; ret = avformat_open_input(&context, filename.c_str(), format, NULL); ret = avformat_find_stream_info(context, NULL); std::cout << context->nb_streams << " streams" << std::endl; AVStream* avstream = context->streams[0]; std::cout << "Codec " << avstream->codec->codec_name << std::endl; AVCodec* videoCodec = avcodec_find_decoder(avstream->codec->codec_id); avcodec_open2(avstream->codec, videoCodec, NULL); // DECODE int framePts = 0; ret = av_seek_frame(context, 0, framePts, AVSEEK_FLAG_BACKWARD); AVPacket packet; av_init_packet(&packet); ret = av_read_frame(context, &packet); std::cout << " PTS=" << packet.pts << ", DTS=" << packet.dts << ", Duration=" << packet.duration << ", KeyFrame=" << ((packet.flags & AV_PKT_FLAG_KEY) ? 1 : 0) << ", Corrupt=" << ((packet.flags & AV_PKT_FLAG_CORRUPT) ? 1 : 0) << ", StreamIdx=" << packet.stream_index << ", PktSize=" << packet.size << std::endl; int frameDecoded = 0; AVCodecContext* codecContext = avstream->codec; AVFrame* frame = avcodec_alloc_frame(); for (int i = 0; i < 20; ++i) { ret = avcodec_decode_video2(codecContext, frame, &frameDecoded, &packet); std::cout << "Decode " << ret << " frameDecoded " << frameDecoded << std::endl; } // mem leak here etc etc return 0; } From cehoyos at ag.or.at Tue Jul 22 18:43:59 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 16:43:59 +0000 (UTC) Subject: [FFmpeg-user] Strange latency with some codecs References: Message-ID: Simon Pickles thefoundry.co.uk> writes: > I've just upgraded from FFmpeg 1.0 to 2.1.4 Given that 2.1 is very close to eol and 2.3 is binary compatible, this is really not a good idea. Additionally, if you found a bug (I don't know the issue you describe), you will have to test if is reproducible with current FFmpeg. Carl Eugen From xanadu at apost.plala.or.jp Tue Jul 22 20:22:16 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Wed, 23 Jul 2014 03:22:16 +0900 Subject: [FFmpeg-user] Enabling libx265 In-Reply-To: <53CD1677.3000103@davidfavor.com> References: <678C8AA7-A705-4532-9B72-6D71B6AE1069@apost.plala.or.jp> <6020031A-5DFD-405F-9E39-71F3B75CEF58@apost.plala.or.jp> <2E584549-DB1F-4A9E-BB2D-85D47DD66D45@apost.plala.or.jp> <53CA9C21.1080103@davidfavor.com> <78A18E3B-2991-4A13-9BFE-E389E0F88BCB@apost.plala.or.jp> <53CD1677.3000103@davidfavor.com> Message-ID: 2014/07/21 22:32?David Favor davidfavor.com> wrote? > Kimio Miyamura wrote: >> 2014/07/20 1:26?David Favor davidfavor.com> wrote? >>> Or if you'd like to build shared, here's the correct incantation... >>> >>> cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source >>> >>> You know everything is correct, when the output of otool shows >>> absolute paths for all objects. >> To execute x265 as shared library with in a non-standard library path, We need export "DYLD_LIBRARY_PATH". >> $ export DYLD_LIBRARY_PATH=$prefix >> This is same with ffmpeg which uses x265 as shard library. > > Or add ... > > cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix > > which is preferred, as if you begin doing things like... > > export DYLD_LIBRARY_PATH=$prefix > > Everything's rainbows + unicorns, till you try running a > task out of cron or at the system level... > > Then you have to determine how you'll set this so all processes > pickup this path... and if this path ever changes... or requires > multiple values... you'll have to keep all this straight... > > I've tried this... It becomes complex... > > For me, better to just use the cmake facility for setting this > for each $prefix path that's used. In fact, I don't have any interest with shared library. When I don't know how to configure ffmpeg static binary with x265 support, I just wondered that shared library x265 can configure and build ffmpeg. Except ffmpeg can't be execute at non-standard library path, and for me, adding "export DYLD_LIBRARY_PATH=$prefix" is the solution. I think wrong information is bad for someone who refers this thread. So I write again same thing. Are you really using Mac OS X? Or just talking about your theory which is not confirmed in a real environment? I have tested again your mention "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" solves the non-standard library path issue. Then found that even though use "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" does not solve the issue. In my thinking, your "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" is just define install path of x265, which is same as "./configure --prefix=$prefix". Not related with non-standard library path execution. Attached text file is my test log. I have modified just my Computer name and my user account name. You may see in *real* Mac OS X, if build ffmpeg and x265 as shard library x265, "export DYLD_LIBRARY_PATH=$prefix" is *required*. // Miya From xanadu at apost.plala.or.jp Tue Jul 22 20:27:29 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Wed, 23 Jul 2014 03:27:29 +0900 Subject: [FFmpeg-user] Enabling libx265 In-Reply-To: References: <678C8AA7-A705-4532-9B72-6D71B6AE1069@apost.plala.or.jp> <6020031A-5DFD-405F-9E39-71F3B75CEF58@apost.plala.or.jp> <2E584549-DB1F-4A9E-BB2D-85D47DD66D45@apost.plala.or.jp> <53CA9C21.1080103@davidfavor.com> <78A18E3B-2991-4A13-9BFE-E389E0F88BCB@apost.plala.or.jp> <53CD1677.3000103@davidfavor.com> Message-ID: <736FDA47-8A71-4F5F-8A3F-6962118EB17A@apost.plala.or.jp> 2014/07/23 3:22?Kimio Miyamura apost.plala.or.jp> wrote? > > 2014/07/21 22:32?David Favor davidfavor.com> wrote? > >> Kimio Miyamura wrote: >>> 2014/07/20 1:26?David Favor davidfavor.com> wrote? >>>> Or if you'd like to build shared, here's the correct incantation... >>>> >>>> cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source >>>> >>>> You know everything is correct, when the output of otool shows >>>> absolute paths for all objects. >>> To execute x265 as shared library with in a non-standard library path, We need export "DYLD_LIBRARY_PATH". >>> $ export DYLD_LIBRARY_PATH=$prefix >>> This is same with ffmpeg which uses x265 as shard library. >> >> Or add ... >> >> cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix >> >> which is preferred, as if you begin doing things like... >> >> export DYLD_LIBRARY_PATH=$prefix >> >> Everything's rainbows + unicorns, till you try running a >> task out of cron or at the system level... >> >> Then you have to determine how you'll set this so all processes >> pickup this path... and if this path ever changes... or requires >> multiple values... you'll have to keep all this straight... >> >> I've tried this... It becomes complex... >> >> For me, better to just use the cmake facility for setting this >> for each $prefix path that's used. > > In fact, I don't have any interest with shared library. When I don't know how to configure ffmpeg static binary with x265 support, I just wondered that shared library x265 can configure and build ffmpeg. Except ffmpeg can't be execute at non-standard library path, and for me, adding "export DYLD_LIBRARY_PATH=$prefix" is the solution. > I think wrong information is bad for someone who refers this thread. So I write again same thing. > > Are you really using Mac OS X? Or just talking about your theory which is not confirmed in a real environment? > I have tested again your mention "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" solves the non-standard library path issue. Then found that even though use "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" does not solve the issue. > In my thinking, your "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" is just define install path of x265, which is same as "./configure --prefix=$prefix". Not related with non-standard library path execution. > > Attached text file is my test log. I have modified just my Computer name and my user account name. > You may see in *real* Mac OS X, if build ffmpeg and x265 as shard library x265, "export DYLD_LIBRARY_PATH=$prefix" is *required*. Sorry, I forget to attach text file. Here's the one... From xanadu at apost.plala.or.jp Tue Jul 22 20:35:29 2014 From: xanadu at apost.plala.or.jp (=?iso-2022-jp?B?GyRCNVxCPBsoQiAbJEI4eENLGyhC?=) Date: Wed, 23 Jul 2014 03:35:29 +0900 Subject: [FFmpeg-user] Enabling libx265 In-Reply-To: <736FDA47-8A71-4F5F-8A3F-6962118EB17A@apost.plala.or.jp> Message-ID: <20140723033529.LTHL4.18326.root@mweb02> ---- Kimio Miyamura wrote: > 2014/07/23 3:22?Kimio Miyamura apost.plala.or.jp> wrote? > > 2014/07/21 22:32?David Favor davidfavor.com> wrote? > >> Kimio Miyamura wrote: >>> 2014/07/20 1:26?David Favor davidfavor.com> wrote? >>>> Or if you'd like to build shared, here's the correct incantation... >>>> >>>> cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source >>>> >>>> You know everything is correct, when the output of otool shows >>>> absolute paths for all objects. >>> To execute x265 as shared library with in a non-standard library path, We need export "DYLD_LIBRARY_PATH". >>> $ export DYLD_LIBRARY_PATH=$prefix >>> This is same with ffmpeg which uses x265 as shard library. >> >> Or add ... >> >> cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix >> >> which is preferred, as if you begin doing things like... >> >> export DYLD_LIBRARY_PATH=$prefix >> >> Everything's rainbows + unicorns, till you try running a >> task out of cron or at the system level... >> >> Then you have to determine how you'll set this so all processes >> pickup this path... and if this path ever changes... or requires >> multiple values... you'll have to keep all this straight... >> >> I've tried this... It becomes complex... >> >> For me, better to just use the cmake facility for setting this >> for each $prefix path that's used. > > In fact, I don't have any interest with shared library. When I don't know how to configure ffmpeg static binary with x265 support, I just wondered that shared library x265 can configure and build ffmpeg. Except ffmpeg can't be execute at non-standard library path, and for me, adding "export DYLD_LIBRARY_PATH=$prefix" is the solution. > I think wrong information is bad for someone who refers this thread. So I write again same thing. > > Are you really using Mac OS X? Or just talking about your theory which is not confirmed in a real environment? > I have tested again your mention "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" solves the non-standard library path issue. Then found that even though use "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" does not solve the issue. > In my thinking, your "cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix" is just define install path of x265, which is same as "./configure --prefix=$prefix". Not related with non-standard library path execution. > > Attached text file is my test log. I have modified just my Computer name and my user account name. > You may see in *real* Mac OS X, if build ffmpeg and x265 as shard library x265, "export DYLD_LIBRARY_PATH=$prefix" is *required*. Sorry, I forget to attach text file. Here's the one... -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Terminal.txt URL: From bikashkumar.sinha at gmail.com Tue Jul 22 21:08:43 2014 From: bikashkumar.sinha at gmail.com (Bikash Kumar Sinha) Date: Tue, 22 Jul 2014 14:08:43 -0500 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: <20140721203036.GB1994@anonymous> References: <20140721195558.GA1994@anonymous> <20140721203036.GB1994@anonymous> Message-ID: Simon, Sorry about the top posting, as I said I am new and did not realize I was doing that. My issues is not yet resolved and was wondering if there is a way I can share with you a copule of videos ( q1.mp4 and a1.mp4) that I was trying to merge along with my script. Can I attach those videos here? or can I upload it somewhere? I really need to get this merged/concatenated. Appreciate it. - -Bikash On Mon, Jul 21, 2014 at 3:30 PM, Simon Thelen wrote: > On 21/07/14 at 15:03, Bikash Kumar Sinha wrote: > > Simon, please see the details below- Where do I add that filter in the > > command line? > > > > c:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg.exe -f concat -i > > C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\files.txt -c > > copy C:\Bikash\temp\VideoMerge\upload\videos\635415488144447366\A.mp4 > > bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option > ffmpeg.exe -f concat -i files.txt -bsf:a aac_adtstoasc -c copy output.mp4 > > Also, top-posting is considered rude. Please don't do it on this mailing > list. > > -- > Simon Thelen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From lou at lrcd.com Tue Jul 22 21:13:06 2014 From: lou at lrcd.com (Lou) Date: Tue, 22 Jul 2014 11:13:06 -0800 Subject: [FFmpeg-user] -preset help: error in wiki? In-Reply-To: References: Message-ID: <20140722111306.666def7a@lrcd.com> On Wed, 16 Jul 2014 01:44:42 -0400 (EDT) Luke Davis wrote: > On the page: > > https://trac.ffmpeg.org/wiki/Encode/H.264 > > It states: > > You can see a list of current presets with -preset help, and what settings they > apply with x264 --fullhelp. Try: ffmpeg -f lavfi -i nullsrc -c:v libx264 -preset help -f mp4 - Among other things it will display: x264 [error]: invalid preset 'help' [libx264 @ 0x8c3240] Error setting preset/tune help/(null). [libx264 @ 0x8c3240] Possible presets: ultrafast superfast veryfast faster fast medium slow slower veryslow placebo [libx264 @ 0x8c3240] Possible tunes: film animation grain stillimage psnr ssim fastdecode zerolatency I'll try to clarify the wiki article. From l1 at newanswertech.com Tue Jul 22 22:29:25 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 22 Jul 2014 16:29:25 -0400 (EDT) Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# In-Reply-To: References: Message-ID: On Tue, 22 Jul 2014, Carl Eugen Hoyos wrote: > Luke Davis newanswertech.com> writes: > >> [sdp 0x1fcc0a0] Concatenated H.264 or H.265 >> might not play correctly.drop=5 >> >> The drop number increases over time. >> The source is sending 15 FPS, with a keyframe every 5. >> >> So my questions are: >> >> 1. What damage is actually happening to my outgoing >> stream here, and is this a problem that can eventually >> disrupt the stream? I assume it is frames being >> dropped? > > Only you can answer this question. No, I can't, else I wouldn't have asked it. I will rephrase it, however. What is happening when this error is raised? Am I correct that it's dropping frames? Is the drop cumulative? In other words, when it says "drop=25", does that mean 25 frames have been dropped over the life of the feed? These have been my assumptions. >> 2. Is there any way to solve this, other than not >> using H264? I can use MPEG video, but the quality >> is less (looks noticeably worse). > > That is expected, H264 is the best video codec with > usable speed. Yes, indeed it is expected. But I will rephrase that question too: am I doing something wrong that prompts this error, or is this error to be expected in all transactions involving H.264 streams? Can I do something different in order to avoid these dropped frames? Are they being dropped because of the UDP transport, because of local processing, or for some other reason? If it was transport related, I would expect to see other errors (regarding time synch), which I'm not. >> 4. What about this timebase warning? What am I >> doing wrong to cause that? > > Please test current FFmpeg git head before reporting > issues here. > (This was fixed.) Is it sufficient to daily pull and recompile: http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 (updated Jul. 22) (Using git itself to keep a tree updated is not practical in my environment--ephemeral cloud machine instances) Luke From h.reindl at thelounge.net Tue Jul 22 22:46:22 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 22 Jul 2014 22:46:22 +0200 Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# In-Reply-To: References: Message-ID: <53CECD9E.8060705@thelounge.net> Am 22.07.2014 05:26, schrieb Luke Davis: > Is there any way to solve this, other than not using H264? > I can use MPEG video H264 *is* MPEG video http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Tue Jul 22 23:11:20 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 21:11:20 +0000 (UTC) Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# References: Message-ID: Luke Davis newanswertech.com> writes: > >> 1. What damage is actually happening to my outgoing > >> stream here, and is this a problem that can eventually > >> disrupt the stream? I assume it is frames being > >> dropped? > > > > Only you can answer this question. > > No, I can't, else I wouldn't have asked it. What I meant is: Only you can look at (analyze) the input stream and compare the frame count with the output file to see if frames are dropped. The way I understand the warning (I did not check the actual commit) is that frames may be lost. [...] > > Please test current FFmpeg git head before reporting > > issues here. > > (This was fixed.) > > Is it sufficient to daily pull and recompile: > http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 Yes, the snapshot is the same as "current git head". Carl Eugen From bikashkumar.sinha at gmail.com Tue Jul 22 23:12:01 2014 From: bikashkumar.sinha at gmail.com (Bikash Kumar Sinha) Date: Tue, 22 Jul 2014 16:12:01 -0500 Subject: [FFmpeg-user] Input link in1:v0 parameters (size 1280x720, SAR 1:1) do not match the corresponding output link in0:v0 parameters (640x360, SAR 1:1) Message-ID: I am trying to merge 2 videos and get the following error even after setting the filters. Help Please. c:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg -i q1.mp4 -i a1.mp4 -filter_complex "[1:0] setsar=1/1[sarfix];[sarfix] [0:1] [0:0] [1:1] concat=n=2:v=1:a=1 [v] [a] " -map "[v]" -map "[a]" -vcode libx264 -crf 27 out.mp4 ffmpeg version N-64836-gce385c8 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 20 2014 23:42:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-lib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'q1.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2014-07-21 18:06:46 Duration: 00:00:06.76, start: 0.000000, bitrate: 3495 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 3312 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default) Metadata: creation_time : 2014-07-21 18:06:46 handler_name : ?Mainconcept Video Media Handler encoder : AVC Coding Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default) Metadata: creation_time : 2014-07-21 18:06:46 handler_name : #Mainconcept MP4 Sound Media Handler Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'a1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.42.101 Duration: 00:00:15.28, start: 0.025057, bitrate: 531 kb/s Stream #1:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 640x360 [SAR 1:1 DAR 16:9], 399 kb/s, 14.19 fps, 15 tbr, 16k tbn, 30 tbc (default) Metadata: handler_name : VideoHandler Stream #1:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 127 kb/s (default) Metadata: handler_name : SoundHandler [Parsed_concat_1 @ 00000000051af820] Input link in1:v0 parameters (size 1280x720, SAR 1:1) do not match the corresponding output link in0:v0 parameters (640x360, SAR 1:1) [Parsed_concat_1 @ 00000000051af820] Failed to configure output pad on Parsed_concat_1 From cehoyos at ag.or.at Tue Jul 22 23:41:27 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 22 Jul 2014 21:41:27 +0000 (UTC) Subject: [FFmpeg-user] Input link in1:v0 parameters (size 1280x720, SAR 1:1) do not match the corresponding output link in0:v0 parameters (640x360, SAR 1:1) References: Message-ID: Bikash Kumar Sinha gmail.com> writes: > I am trying to merge 2 videos and get the following > error even after setting the filters. > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), > yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9] > Stream #1:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), > yuv420p(tv), 640x360 [SAR 1:1 DAR 16:9] > [Parsed_concat_1 00000000051af820] Input link > in1:v0 parameters (size 1280x720, SAR 1:1) do not match > the corresponding output link in0:v0 parameters (640x360, SAR 1:1) If you want to concatenate these two streams, you have to insert a scale filter to make sure both have the same dimensions. See also https://ffmpeg.org/ffmpeg-filters.html#concat Carl Eugen From matej at tam.si Wed Jul 23 00:31:50 2014 From: matej at tam.si (Matej) Date: Wed, 23 Jul 2014 00:31:50 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Tue, Jul 22, 2014 at 5:02 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > > Now please remux your transport stream with FFmpeg and > > > test to confirm my suspicion that this is starttime- > > > related. > > > Could you please tell which streams should I remux > > You tested your original problem (error messages when > transcoding a transport stream with an external audio > source) with two files iiuc: A local transport stream > that you did not create with FFmpeg and a local audio > file. > I suspect (and wrote twice iirc) that the reason for > the problem you see are the different starttimes for > your two files: Audio file has starttime 0, ts file > has a random starttime. > To verify my theory, please remux (or transcode) > your local ts file with FFmpeg to get a file with > starttime 0 and test again with that (new) file > and your audio file. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thank you for clarification. I have tried both with newly created TS (created from a non-ffmpeg) which has start-time 1.400000 and when muxing it with the mp3 with start time 0.000000 it seems the error has disappeared. Does it seem that vsync option isn't being applied correctly? How can I solve it with an input stream where the start time is increasing and want to mux it with the mentioned mp3? Thanks, Matej From subeesh.babu at industeqsite.com Wed Jul 23 09:45:36 2014 From: subeesh.babu at industeqsite.com (subeesh.babu) Date: Wed, 23 Jul 2014 13:15:36 +0530 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: <20140705111044.GB28058@sunshine.barsnick.net> References: <20140705111044.GB28058@sunshine.barsnick.net> Message-ID: <4ED9EE157E08442A8D10D52FB81ABFC4@itd416> Hi, Am using ffmpeg 1.1.4 for streaming . Processor Model: TI-DM8148 Davinci processor . ARM 7 with 600MHz speed Linux 2.6.32 kernel For ffmpeg live streaming through video port am using the following command ffmpeg -s 720x576 -f v4l2 -pix_fmt rgb24 -i /dev/video0 -target pal-vcd -vcodec mpeg4 -f mpegts -q 2 -s 360x288 udp:10.5.20.144:1234 With the above command if i check my CPU usage it shows 99% . By giving 'top' command am checking the CPU usage . Any one suggest how to reduce the CPU usage . Regards, Subeesh +91-8939229627 ----- Original Message ----- From: "Moritz Barsnick" To: "FFmpeg user discussions" Sent: Saturday, July 05, 2014 4:40 PM Subject: Re: [FFmpeg-user] Reg: CPU Usage Issue > On Fri, Jul 04, 2014 at 11:39:19 +0530, subeesh.babu wrote: >> ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234 >> a.. It takes 99% of CPU usage . Any one suggest how to reduce my >> CPU usage . > > If video.mp4 already contains the correct codecs with the correct > parameters for your streamed mpegts, you could avoid recoding totally > by adding: > -c copy > (or -c:v copy, if it shall only apply to video). > > That avoids very much of the CPU usage. > > > Apart from that, we usually expect your full ffmpeg command line and > the complete, uncut output on this list, to better understand your > scenario. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user **************** CAUTION - Disclaimer *****************This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. *********** End of Disclaimer ***********DataPatterns ITS Group********** From h.reindl at thelounge.net Wed Jul 23 09:52:10 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 23 Jul 2014 09:52:10 +0200 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: <4ED9EE157E08442A8D10D52FB81ABFC4@itd416> References: <20140705111044.GB28058@sunshine.barsnick.net> <4ED9EE157E08442A8D10D52FB81ABFC4@itd416> Message-ID: <53CF69AA.4050300@thelounge.net> Am 23.07.2014 09:45, schrieb subeesh.babu: > Am using ffmpeg 1.1.4 for streaming old and unsupported always try the last recent version before report problems because they maybe solved in the meantime -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Wed Jul 23 10:18:05 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 23 Jul 2014 08:18:05 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > How can I solve it with an input stream where the > start time is increasing and want to mux it with > the mentioned mp3? Could you test the sync function of the -map option? (I don't remember anybody ever using it.) Something like -map 0:0,0:0 -map 1:0,0:0 (Or -map 0:0,1:0 -map 1:0,1:0) Thank you, Carl Eugen From pickles at thefoundry.co.uk Wed Jul 23 11:18:23 2014 From: pickles at thefoundry.co.uk (Simon Pickles) Date: Wed, 23 Jul 2014 10:18:23 +0100 Subject: [FFmpeg-user] Strange latency with some codecs In-Reply-To: References: Message-ID: Hi Carl, Thanks for the response. I've cloned the git repo, built it and repro'd the problem with the example code I first posted. Here's the output: kludge:MacOS pickles$ ./TestApp 1 streams Codec PTS=0, DTS=0, Duration=1, KeyFrame=1, Corrupt=0, StreamIdx=0, PktSize=77686 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 0 Decode 77686 frameDecoded 1 Decode 77686 frameDecoded 1 Decode 77686 frameDecoded 1 Decode 77686 frameDecoded 1 Decode 77686 frameDecoded 1 Here's the build info: kludge:bin pickles$ ./ffmpeg ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 23 2014 10:15:55 with gcc 4.0.1 (GCC) (Apple Inc. build 5494) configuration: --prefix=/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6 --arch=x86_64 --cc=gcc-4.0 --extra-cflags=' -arch x86_64 -O3 -fPIC -I/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6/include' --extra-ldflags='-L/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6/lib -arch x86_64' --enable-shared --disable-static --disable-ffplay --disable-ffserver --disable-bzlib --disable-devices --yasmexe=/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6/bin/yasm libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 On 22 July 2014 17:43, Carl Eugen Hoyos wrote: > Simon Pickles thefoundry.co.uk> writes: > > > I've just upgraded from FFmpeg 1.0 to 2.1.4 > > Given that 2.1 is very close to eol and 2.3 > is binary compatible, this is really not a > good idea. > > Additionally, if you found a bug (I don't know > the issue you describe), you will have to test > if is reproducible with current FFmpeg. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From pickles at thefoundry.co.uk Wed Jul 23 11:39:47 2014 From: pickles at thefoundry.co.uk (Simon Pickles) Date: Wed, 23 Jul 2014 10:39:47 +0100 Subject: [FFmpeg-user] Strange latency with some codecs In-Reply-To: References: Message-ID: I should also point out that I can use the built ffmpeg executable to perform conversions on the PNG encoded file. I've used: ./ffmpeg -loglevel debug -i /tmp/pngMov.mov /tmp/1.mov and it works. Whether its doing multiple decode attempts under the hood, I can't tell. On 23 July 2014 10:18, Simon Pickles wrote: > Hi Carl, > > Thanks for the response. > > I've cloned the git repo, built it and repro'd the problem with the > example code I first posted. Here's the output: > > kludge:MacOS pickles$ ./TestApp > 1 streams > Codec > PTS=0, DTS=0, Duration=1, KeyFrame=1, Corrupt=0, StreamIdx=0, > PktSize=77686 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 0 > Decode 77686 frameDecoded 1 > Decode 77686 frameDecoded 1 > Decode 77686 frameDecoded 1 > Decode 77686 frameDecoded 1 > Decode 77686 frameDecoded 1 > > > Here's the build info: > > kludge:bin pickles$ ./ffmpeg > ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers > built on Jul 23 2014 10:15:55 with gcc 4.0.1 (GCC) (Apple Inc. build > 5494) > configuration: > --prefix=/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6 > --arch=x86_64 --cc=gcc-4.0 --extra-cflags=' -arch x86_64 -O3 -fPIC > -I/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6/include' > --extra-ldflags='-L/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6/lib > -arch x86_64' --enable-shared --disable-static --disable-ffplay > --disable-ffserver --disable-bzlib --disable-devices > --yasmexe=/workspace/pickles/ffmpeg/git_20140723/bin/mac-64-x86-release-10.6/bin/yasm > libavutil 52. 92.101 / 52. 92.101 > libavcodec 55. 69.100 / 55. 69.100 > libavformat 55. 48.101 / 55. 48.101 > libavdevice 55. 13.102 / 55. 13.102 > libavfilter 4. 11.102 / 4. 11.102 > libswscale 2. 6.100 / 2. 6.100 > libswresample 0. 19.100 / 0. 19.100 > > > On 22 July 2014 17:43, Carl Eugen Hoyos wrote: > >> Simon Pickles thefoundry.co.uk> writes: >> >> > I've just upgraded from FFmpeg 1.0 to 2.1.4 >> >> Given that 2.1 is very close to eol and 2.3 >> is binary compatible, this is really not a >> good idea. >> >> Additionally, if you found a bug (I don't know >> the issue you describe), you will have to test >> if is reproducible with current FFmpeg. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From matej at tam.si Wed Jul 23 12:02:47 2014 From: matej at tam.si (Matej) Date: Wed, 23 Jul 2014 12:02:47 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Wed, Jul 23, 2014 at 10:18 AM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > How can I solve it with an input stream where the > > start time is increasing and want to mux it with > > the mentioned mp3? > > Could you test the sync function of the -map option? > (I don't remember anybody ever using it.) > Something like -map 0:0,0:0 -map 1:0,0:0 > (Or -map 0:0,1:0 -map 1:0,1:0) > > Thank you, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > The following command: /root/ffmpeg/ffmpeg -loglevel debug -rtbufsize 128000k -threads 0 -re -i "udp://@:1300?fifo_size=1000000&overrun_nonfatal=1" -re -i " http://77.234.135.250:8000/" -vsync 0 -async 0 -codec copy -map 1:0,0:0 -s 720x576 -q 10 -shortest -f mpegts udp:// 192.168.1.150:1236?pkt_size=1316?buffer_size=65535 played successfully for about 30 minutes and then those messages reappeared: and then the same messages appeared: [mpegts @ 0x22578c0] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 1 times [mpegts @ 0x22578c0] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Last message repeated 8 times Could this message shed some light on the issue: [mpegts @ 0x1c857e0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times Thanks, Matej From werner.robitza at gmail.com Wed Jul 23 12:36:12 2014 From: werner.robitza at gmail.com (Werner Robitza) Date: Wed, 23 Jul 2014 12:36:12 +0200 Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 Message-ID: I have an x264-encoded MP4 file which I'd like to segment into MPEG-TS. ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f segment -bsf h264_mp4toannexb -segment_time 5 -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts The original was encoded with: ffmpeg -y -i ./srcVid/SRC04.avi -y -map 0:0 -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high10 -level 4.0 -pass 1 -s 1920x1080 -r 24.0 -b:v 8500k -x264opts merange=64:me=umh:b-pyramid=none:slices=1:b-adapt=0:bframes=2:scenecut=-1:threads=1:keyint=24 -map 0:1 -acodec libfdk_aac -profile:a aac_he_v2 -ac 2 -ab 128k tmp/tmpPass1.mp4 ffmpeg -y -i ./srcVid/SRC04.avi -y -map 0:0 -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high10 -level 4.0 -pass 2 -s 1920x1080 -r 24.0 -b:v 8500k -x264opts merange=64:me=umh:b-pyramid=none:slices=1:b-adapt=0:bframes=2:scenecut=-1:threads=1:keyint=24 -map 0:1 -acodec libfdk_aac -profile:a aac_he_v2 -ac 2 -ab 128k tmp/tmpPass2.mp4 Output from the segmenting command: ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f segment -bsf h264_mp4toannexb -segment_time 5 -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts ffmpeg version N-64919-ga613257 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 23 2014 00:35:22 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp/tmpPass2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.33.100 Duration: 00:00:56.66, start: 0.161134, bitrate: 8528 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 8484 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default) Metadata: handler_name : SoundHandler [libx264 @ 0000000004db87a0] using SAR=1/1 [libx264 @ 0000000004db87a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2 [libx264 @ 0000000004db87a0] profile High, level 4.0 [libx264 @ 0000000004db87a0] 264 - core 142 r2431 ac76440 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 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 [mpegts @ 0000000006f42440] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [adts @ 0000000006f567e0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, segment, to './tsSegmentsDisplay/SRC04_Q1_%05d.ts': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.48.101 Stream #0:0(und): Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24 fps, 24 tbn, 24 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc55.69.100 libx264 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 64 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [libx264 @ 0000000004db8340] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec libx264: Invalid argument [mpegts @ 0000000006f42440] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) av_interleaved_write_frame(): Invalid argument frame= 57 fps= 33 q=-1.0 Lsize=N/A time=00:00:02.69 bitrate=N/A dup=4 drop=0 video:201kB audio:21kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [libx264 @ 0000000004db87a0] frame I:1 Avg QP:19.95 size:204698 [libx264 @ 0000000004db87a0] frame P:19 Avg QP:21.95 size: 42957 [libx264 @ 0000000004db87a0] frame B:37 Avg QP:26.12 size: 9696 [libx264 @ 0000000004db87a0] consecutive B-frames: 3.5% 7.0% 68.4% 21.1% [libx264 @ 0000000004db87a0] mb I I16..4: 36.5% 18.1% 45.4% [libx264 @ 0000000004db87a0] mb P I16..4: 7.0% 6.7% 1.7% P16..4: 32.9% 13.2% 7.7% 0.0% 0.0% skip:30.7% [libx264 @ 0000000004db87a0] mb B I16..4: 0.9% 1.2% 0.1% B16..8: 38.4% 3.9% 0.5% direct: 1.3% skip:53.7% L0:46.9% L1:44.3% BI: 8.9% [libx264 @ 0000000004db87a0] 8x8 transform intra:40.2% inter:58.4% [libx264 @ 0000000004db87a0] coded y,uvDC,uvAC intra: 33.5% 48.0% 23.3% inter: 11.4% 13.0% 1.2% [libx264 @ 0000000004db87a0] i16 v,h,dc,p: 33% 29% 19% 19% [libx264 @ 0000000004db87a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 19% 36% 1% 1% 1% 1% 1% 1% [libx264 @ 0000000004db87a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 34% 11% 2% 2% 2% 3% 2% 3% [libx264 @ 0000000004db87a0] i8c dc,h,v,p: 48% 23% 25% 4% [libx264 @ 0000000004db87a0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0000000004db87a0] ref P L0: 76.1% 14.4% 6.4% 3.1% [libx264 @ 0000000004db87a0] ref B L0: 86.1% 11.9% 2.0% [libx264 @ 0000000004db87a0] ref B L1: 86.7% 13.3% [libx264 @ 0000000004db87a0] kb/s:4647.21 Conversion failed! If I do a simple stream copy, everything works. Any idea what the issue could be? From cehoyos at ag.or.at Wed Jul 23 12:42:40 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 23 Jul 2014 10:42:40 +0000 (UTC) Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 References: Message-ID: Werner Robitza gmail.com> writes: > ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy > -map 0 -f segment -bsf h264_mp4toannexb -segment_time 5 > -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts Why are you using a bitstream filter when re-encoding? The normal usecase for a bitstream filter is remuxing. Carl Eugen From cehoyos at ag.or.at Wed Jul 23 12:43:42 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 23 Jul 2014 10:43:42 +0000 (UTC) Subject: [FFmpeg-user] Strange latency with some codecs References: Message-ID: Simon Pickles thefoundry.co.uk> writes: > In 2.1.4 I don't get 1 returned by got_packet_ptr. > However, if I keep trying to decode the frame, it > eventually starts to decode after FIFTEEN attempts! (Do you have an eight-core cpu?) I suspect this is the multi-threading delay, set threads to 1 to avoid it. Carl Eugen From cehoyos at ag.or.at Wed Jul 23 12:47:06 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 23 Jul 2014 10:47:06 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?MPEG_TS_output_-_muxing_queue_-_max=5Fint?= =?utf-8?q?erleave=5Fdelta?= References: Message-ID: Matej tam.si> writes: > /root/ffmpeg/ffmpeg -loglevel debug -rtbufsize 128000k > -threads 0 -re -i "udp://... -re -i "http://77.234.135.250:8000/" > -vsync 0 -async 0 -codec copy -map 1:0,0:0 > -s 720x576 -q 10 -shortest -f > mpegts udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535 Why are you using -vsync 0 -async 0? (And why are you using network input and output again after we agreed that the problem is also reproducible with files? I do understand that for you this is a network issue, but in my experience, problems that are reproducible with files are much more likely to be fixed.) This may not work for -codec copy (I don't know, as said, I don't think the timestamp mapping of -map is tested very often), in any case, please add the second map option. Carl Eugen From pickles at thefoundry.co.uk Wed Jul 23 13:38:59 2014 From: pickles at thefoundry.co.uk (Simon Pickles) Date: Wed, 23 Jul 2014 12:38:59 +0100 Subject: [FFmpeg-user] Strange latency with some codecs In-Reply-To: References: Message-ID: Thanks Carl, you are spot on! It is indeed down to the multi-threading. On 23 July 2014 11:43, Carl Eugen Hoyos wrote: > Simon Pickles thefoundry.co.uk> writes: > > > In 2.1.4 I don't get 1 returned by got_packet_ptr. > > However, if I keep trying to decode the frame, it > > eventually starts to decode after FIFTEEN attempts! > > (Do you have an eight-core cpu?) > > I suspect this is the multi-threading delay, set > threads to 1 to avoid it. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From werner.robitza at gmail.com Wed Jul 23 13:53:51 2014 From: werner.robitza at gmail.com (Werner Robitza) Date: Wed, 23 Jul 2014 13:53:51 +0200 Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 In-Reply-To: References: Message-ID: On Wed, Jul 23, 2014 at 12:42 PM, Carl Eugen Hoyos wrote: > Why are you using a bitstream filter when re-encoding? > The normal usecase for a bitstream filter is remuxing. If I don't use it, e.g. ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f segment -segment_time 5 -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts I get: [mpegts @ 0x41437e0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) From JTalledoVilela at vtti.vt.edu Wed Jul 23 14:19:12 2014 From: JTalledoVilela at vtti.vt.edu (Jean Paul Talledo Vilela) Date: Wed, 23 Jul 2014 12:19:12 +0000 Subject: [FFmpeg-user] ffmpeg/ffserver setup with webcam Message-ID: Hello I am trying to stream a webcam video using ffmpeg and ffserver. I am new on this and that's why I am asking for some help. Webcam Model is Logitech C920. It supports the following: [video4linux2,v4l2 @ 0x9cbc1c0] Raw : yuyv422 : YUV 4:2:2 (YUYV) : 640x480 160x90 160x120 176x144 320x180 320x240 352x288 432x240 640x360 800x448 800x600 864x480 960x720 1024x576 1280x720 1600x896 1920x1080 2304x1296 2304x1536 [video4linux2,v4l2 @ 0x9cbc1c0] Compressed: h264 : H.264 : 640x480 160x90 160x120 176x144 320x180 320x240 352x288 432x240 640x360 800x448 800x600 864x480 960x720 1024x576 1280x720 1600x896 1920x1080 [video4linux2,v4l2 @ 0x9cbc1c0] Compressed: mjpeg : MJPEG : 640x480 160x90 160x120 176x144 320x180 320x240 352x288 432x240 640x360 800x448 800x600 864x480 960x720 1024x576 1280x720 1600x896 1920x1080 I run the following command to stream video to the server: ffmpeg -v verbose -s 640x480 -r 30 -f video4linux2 -i /dev/video0 http://serverip/feed1.ffm On the server side, ffserver.conf looks like this: Port 8090 # bind to all IPs aliased or not BindAddress 0.0.0.0 # max number of simultaneous clients MaxClients 1000 # max bandwidth per-client (kb/s) MaxBandwidth 1000000 # Suppress that if you want to launch ffserver as a daemon. NoDaemon File /tmp/feed1.ffm FileMaxSize 5M Feed feed1.ffm Format mpeg VideoBitRate 500 VideoFrameRate 30 VideoSize 320x240 Noaudio Feed feed1.ffm Format mjpeg VideoBitRate 4000 VideoFrameRate 30 VideoSize 320x240 Noaudio Format status When I use VLC to play the mjpeg stream using a computer on the same Server network, it works really good. But when I connect externally from another IP, I am able to see few frames and then it gets frozen. I run ffserver stats and it shows: Connection Status Number of connections: 5 / 1000 Bandwidth in use: 12000k / 1000000k # File IP Proto State Target bits/sec Actual bits/sec Bytes transferred 1 stat.html 128.173.193.43 HTTP/1.1 HTTP_WAIT_REQUEST 0 0 0 2 test1.mjpeg 70.208.149.23 HTTP/1.1 WAIT_FEED 4000k 110k 613k 3 test1.mjpeg 128.173.193.43 HTTP/1.1 WAIT_FEED 4000k 3285k 351M 4 test1.mjpeg 128.173.193.43 HTTP/1.1 WAIT_FEED 4000k 3283k 355M 5 feed1.ffm(input) 198.82.196.151 HTTP/1.1 RECEIVE_DATA 1000k 3937k 427M Number 2 is the external IP, and the bit rate was different than the other one. What does this mean? Should I decrease the bitrate to allow external IP's get a better quality/frame rate from the server? Also, what format/codec should I use for better performance/quality? Thanks JP __________________________________ Jean Paul Talledo Vilela Embedded Hardware Team Leader Center for Technology Development Virginia Tech Transportation Institute (540) 231-1081 From blacktrash at gmx.net Wed Jul 23 14:46:03 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 23 Jul 2014 13:46:03 +0100 Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 In-Reply-To: References: Message-ID: <20140723124603.GO71687@krille.blacktrash.org> * Werner Robitza on Wednesday, July 23, 2014 at 13:53:51 +0200 > On Wed, Jul 23, 2014 at 12:42 PM, Carl Eugen Hoyos wrote: >> Why are you using a bitstream filter when re-encoding? >> The normal usecase for a bitstream filter is remuxing. > > If I don't use it, e.g. > > ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f > segment -segment_time 5 -segment_format mpegts > ./tsSegmentsDisplay/SRC04_Q1_%05d.ts > > I get: > > [mpegts @ 0x41437e0] H.264 bitstream malformed, no startcode found, > use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb) I guess you just want to copy (-c copy both video and audio), not re-encode (-c:v libx264): ffmpeg -y -i tmp/tmpPass2.mp4 -c copy -bsf:v h264_mp4toannexb -map 0 -f segment -segment_time 5 -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts -- \black\trash movie _COWBOY CANOE COMA_ Ein deutscher Western/A German Western --->> http://www.blacktrash.org/underdogma/ccc.php From phpdev at ehrhardt.nl Wed Jul 23 14:57:49 2014 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 23 Jul 2014 14:57:49 +0200 Subject: [FFmpeg-user] ffmpeg for a joomla video website References: <2c98c6c2a5f3cf4ccde59b52263db85d@webmedia.al> <53CBEDFC.10305@thelounge.net> <9t8os95n1ipjhm4f2ltq9r2l74r32mm8m3@4ax.com> <53CC2A66.8030101@thelounge.net> <20140721192052.GA19708@phare.normalesup.org> <53CD6998.2050009@thelounge.net> Message-ID: Reindl Harald in gmane.comp.video.ffmpeg.user (Mon, 21 Jul 2014 21:27:20 +0200): >* update and find a solution for your needs That solution is php-av. Jan From davidvrgh at gmail.com Wed Jul 23 15:05:24 2014 From: davidvrgh at gmail.com (David Varghese) Date: Wed, 23 Jul 2014 18:35:24 +0530 Subject: [FFmpeg-user] How to apply effects to a frame decoded using ffmpeg? Message-ID: Hi, I wanted to apply changes in contrast,brightness,saturation values of a video while rendering on android. I think I have two options for applying the effects , 1) Apply the changes on raw YUV frames . 2) Apply the changes to RGB frames which are created from raw YUV frames . Which of the above is the best approach? I started with option 2 and found a utility function at libwscale/util.c which has the below signature. 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); but the parameter specification of the above function was difficult to understand. Can anybody do a little elaboration on the parameters use in this function?especially inv_table and table . -- Thanks and Regards , David Varghese From cehoyos at ag.or.at Wed Jul 23 15:11:37 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 23 Jul 2014 13:11:37 +0000 (UTC) Subject: [FFmpeg-user] How to apply effects to a frame decoded using ffmpeg? References: Message-ID: David Varghese gmail.com> writes: > I wanted to apply changes in contrast,brightness, > saturation values of a video while rendering on > android. Consider using the mp=eq2 filter. It will be replaced by a native filter in the future, but for the time being, there should be no reason not to use it. Carl Eugen From christian.burger at swissminds.com Wed Jul 23 15:15:35 2014 From: christian.burger at swissminds.com (Christian Burger) Date: Wed, 23 Jul 2014 15:15:35 +0200 Subject: [FFmpeg-user] FFmpeg and FFserver Configuration Support needed Message-ID: Hi there I need help configuring an ffserver/ffmpeg-environment with multiple streams and feeds. The following needs to be answered: * Have a review over the architecture in general (feeds, streams and ffmpeg instances) * Help configuring ffmpeg and ffserver to get reliable audio and video streams * Configure ffserver to stream audio and video over the web (html5) * Get streams from a local source and transport it securely over the internet to the ffserver * Help chosing the best parameters for ffmpeg and ffserver to have maximum quality with minimum bandwitdth * Optional: experienced with WebRTC integration Please contact me off the list if you are an experienced ffmpeg/ffserver user and if you have time to help within the next few days. Don?t forget to mention your hourly rate for the support. Thanks in advance Chris From tevans.uk at googlemail.com Wed Jul 23 15:20:26 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 23 Jul 2014 14:20:26 +0100 Subject: [FFmpeg-user] Reg: CPU Usage Issue In-Reply-To: <4ED9EE157E08442A8D10D52FB81ABFC4@itd416> References: <20140705111044.GB28058@sunshine.barsnick.net> <4ED9EE157E08442A8D10D52FB81ABFC4@itd416> Message-ID: On Wed, Jul 23, 2014 at 8:45 AM, subeesh.babu wrote: > Any one suggest how to reduce the CPU usage . I thought I'd collate all the advice you have been given so far in to one list, so that when you re-post asking the same thing again without having tried any of them, people can see the whole list of things that you've ignored. 1) Use an up to date ffmpeg, it might fix things, and it is the only version supported on this list 2) Show your complete command line and uncut output 3) Don't encode the content on the slow CPU, simply copy it with -c copy 4) Use a different encoder, eg MPEG-2 or libx264 5) Tune your encoder, eg libx264 can produce the same quality with a low bitrate and a high bitrate, producing it with a low bitrate is slower since it needs to do more work. Control it with -preset. Cheers Tom From werner.robitza at gmail.com Wed Jul 23 15:27:12 2014 From: werner.robitza at gmail.com (Werner Robitza) Date: Wed, 23 Jul 2014 15:27:12 +0200 Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 In-Reply-To: <20140723124603.GO71687@krille.blacktrash.org> References: <20140723124603.GO71687@krille.blacktrash.org> Message-ID: On Wed, Jul 23, 2014 at 2:46 PM, Christian Ebert wrote: > > I guess you just want to copy (-c copy both video and audio), not > re-encode (-c:v libx264) I do want to re-encode (for various reasons, one being that I need another keyframe interval). From davidvrgh at gmail.com Wed Jul 23 15:39:44 2014 From: davidvrgh at gmail.com (David Varghese) Date: Wed, 23 Jul 2014 19:09:44 +0530 Subject: [FFmpeg-user] How to apply effects to a frame decoded using ffmpeg? In-Reply-To: References: Message-ID: Thanks for the reply. Infact I tried to directly manipulate the YUV frame that I got from decoder . I tried to modify the Y value of every pixels of every frames to 1 , expecting to see a much darker video . But I didnt found any changes in the video . The code snippet is as below, AVFrame *frame = {*YUV420P frame recieved from ffmpeg decoder*}uint8_t *tempPtr = NULL; tempPtr = frame->data[0];int j;for(j = 0 ; j < frame->linesize[0] ; j++){ *(tempPtr++) = 1;} Am I doing something seriously wrong? On Wed, Jul 23, 2014 at 6:41 PM, Carl Eugen Hoyos wrote: > David Varghese gmail.com> writes: > > > I wanted to apply changes in contrast,brightness, > > saturation values of a video while rendering on > > android. > > Consider using the mp=eq2 filter. > It will be replaced by a native filter in the future, > but for the time being, there should be no reason not > to use it. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Thanks and Regards , David Varghese From ffmpeg-user at c-14.de Wed Jul 23 15:41:08 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Wed, 23 Jul 2014 15:41:08 +0200 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: References: <20140721195558.GA1994@anonymous> <20140721203036.GB1994@anonymous> Message-ID: <20140723134108.GA1977@anonymous> On 22/07/14 at 14:08, Bikash Kumar Sinha wrote: > Sorry about the top posting, as I said I am new and did not realize I was > doing that. https://www.netmeister.org/news/learn2quote.html You might want to read this to learn about what you're doing and how to quote correctly. > My issues is not yet resolved and was wondering if there is a way I can > share with you a couple of videos ( q1.mp4 and a1.mp4) that I was trying to > merge along with my script. Can I attach those videos here? or can I upload > it somewhere? I really need to get this merged/concatenated. First, kann I have the output of the modified commandline? If you want you can upload the files to datafilehost.com and I or somebody else can look at it when I/they have time. -- Simon Thelen From james.darnley at gmail.com Wed Jul 23 15:56:09 2014 From: james.darnley at gmail.com (James Darnley) Date: Wed, 23 Jul 2014 15:56:09 +0200 Subject: [FFmpeg-user] How to apply effects to a frame decoded using ffmpeg? In-Reply-To: References: Message-ID: <53CFBEF9.8050206@gmail.com> On 2014-07-23 15:39, David Varghese wrote: > Thanks for the reply. > > Infact I tried to directly manipulate the YUV frame that I got from decoder > . I tried to modify the Y value of every pixels of every frames to 1 , > expecting to see a much darker video . But I didnt found any changes in the > video . > > The code snippet is as below, > > AVFrame *frame = {*YUV420P frame recieved from ffmpeg decoder*}uint8_t > *tempPtr = NULL; > tempPtr = frame->data[0];int j;for(j = 0 ; j < frame->linesize[0] ; j++){ > *(tempPtr++) = 1;} > > Am I doing something seriously wrong? You are only processing one line there. You need to be iterating over the height too. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From blacktrash at gmx.net Wed Jul 23 16:02:09 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 23 Jul 2014 15:02:09 +0100 Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 In-Reply-To: References: <20140723124603.GO71687@krille.blacktrash.org> Message-ID: <20140723140209.GP71687@krille.blacktrash.org> * Werner Robitza on Wednesday, July 23, 2014 at 15:27:12 +0200 > On Wed, Jul 23, 2014 at 2:46 PM, Christian Ebert wrote: >> >> I guess you just want to copy (-c copy both video and audio), not >> re-encode (-c:v libx264) > > I do want to re-encode (for various reasons, one being that I need > another keyframe interval). If it's about avoiding intermediate files, encode to mpegts directly and pipe it to the segmenter: ffmpeg -i input.mp4 -f mpegts -c:a copy -c:v libx264 - | \ ffmpeg -i - -c copy -map 0 -f segment -segment_time 5 out%05d.ts -- \black\trash movie _SAME TIME SAME PLACE_ --->> http://www.blacktrash.org/underdogma/stsp.php \black\trash audio _ANOTHER TIME ANOTHER PLACE_ --->> http://www.blacktrash.org/underdogma/atap.html From davidvrgh at gmail.com Wed Jul 23 16:47:01 2014 From: davidvrgh at gmail.com (David Varghese) Date: Wed, 23 Jul 2014 20:17:01 +0530 Subject: [FFmpeg-user] How to apply effects to a frame decoded using ffmpeg? In-Reply-To: <53CFBEF9.8050206@gmail.com> References: <53CFBEF9.8050206@gmail.com> Message-ID: Thank you very much . You resolved my blunder , I'm more clear about the AVFrame structure now. One last question: Is there any significant advantage in using the prebuild filters of ffmpeg over manipulating YUV frames by iterating through it? On Wed, Jul 23, 2014 at 7:26 PM, James Darnley wrote: > On 2014-07-23 15:39, David Varghese wrote: > > Thanks for the reply. > > > > Infact I tried to directly manipulate the YUV frame that I got from > decoder > > . I tried to modify the Y value of every pixels of every frames to 1 , > > expecting to see a much darker video . But I didnt found any changes in > the > > video . > > > > The code snippet is as below, > > > > AVFrame *frame = {*YUV420P frame recieved from ffmpeg decoder*}uint8_t > > *tempPtr = NULL; > > tempPtr = frame->data[0];int j;for(j = 0 ; j < frame->linesize[0] ; j++){ > > *(tempPtr++) = 1;} > > > > Am I doing something seriously wrong? > > You are only processing one line there. You need to be iterating over > the height too. > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- Thanks and Regards , David Varghese From bikashkumar.sinha at gmail.com Wed Jul 23 17:20:51 2014 From: bikashkumar.sinha at gmail.com (Bikash Kumar Sinha) Date: Wed, 23 Jul 2014 10:20:51 -0500 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: <20140723134108.GA1977@anonymous> References: <20140721195558.GA1994@anonymous> <20140721203036.GB1994@anonymous> <20140723134108.GA1977@anonymous> Message-ID: q1 - http://www.datafilehost.com/d/ef421240 a1 - http://www.datafilehost.com/d/d301f7e6 C:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg -i "concat:q1.mp4|a1.mp4" -c copy output.mp4 ffmpeg version N-64836-gce385c8 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 20 2014 23:42:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 *[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002ae88a0] Found duplicated MOOV Atom. Skipped it* Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:q1.mp4|a1.mp4': Metadata: encoder : Lavf55.48.101 major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 Duration: 00:00:07.27, start: 0.025057, bitrate: 6497 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 315 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 136 kb/s (default) Metadata: handler_name : SoundHandler Output #0, mp4, to 'output.mp4': Metadata: compatible_brands: isomiso2avc1mp41 major_brand : isom minor_version : 512 encoder : Lavf55.48.101 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 315 kb/s, 15 fps, 15360 tbn, 15360 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 136 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 109 fps=0.0 q=-1.0 Lsize= 405kB time=00:00:07.14 bitrate= 464.1kbits/s video:280kB audio:119kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.294278% C:\Bikash\temp\VideoMerge\upload\ffmpeg\bin> On Wed, Jul 23, 2014 at 8:41 AM, Simon Thelen wrote: > On 22/07/14 at 14:08, Bikash Kumar Sinha wrote: > > Sorry about the top posting, as I said I am new and did not realize I was > > doing that. > https://www.netmeister.org/news/learn2quote.html > You might want to read this to learn about what you're doing and how to > quote correctly. > > My issues is not yet resolved and was wondering if there is a way I can > > share with you a couple of videos ( q1.mp4 and a1.mp4) that I was trying > to > > merge along with my script. Can I attach those videos here? or can I > upload > > it somewhere? I really need to get this merged/concatenated. > First, kann I have the output of the modified commandline? > > If you want you can upload the files to datafilehost.com and I or > somebody else can look at it when I/they have time. > > -- > Simon Thelen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jason.gullickson at gmail.com Wed Jul 23 17:30:42 2014 From: jason.gullickson at gmail.com (Jason Gullickson) Date: Wed, 23 Jul 2014 10:30:42 -0500 Subject: [FFmpeg-user] Capturing audio + video from mplayer Message-ID: Greetings, I'm building an HTML5 DVD player that back-ends to mplayer & ffmpeg. At this point I have it working for video, but I can't quite seem to figure out how to get the audio portion working. I'm using mplayer in "slave" mode to read and controle the DVD and send the video to a named pipe using the following command line: mplayer dvdnav:////dev/dvd -vo yuv4mpeg:file=video.y4m -slave I then use the following ffmpeg to pick up the data from the pipe and stream it to ffserver: ffmpeg -f yuv4mpegpipe -i video.y4m -vcodec mpeg2video -me_method epzs -threads 4 -r 29.97 -g 45 -b 2500k -bt 300 http://localhost:8090/dvdfeed.ffm This works for video, but when I try to add the audio: mplayer dvdnav:////dev/dvd -ao pcm:file=audio.wav -vo yuv4mpeg:file=video.y4m -slave ffmpeg -i audio.wav -f yuv4mpegpipe -i video.y4m -vcodec mpeg2video -me_method epzs -threads 4 -r 29.97 -g 45 -b 2500k -bt 300 http://localhost:8090/dvdfeed.ffm No joy. Normally when I do the video-only set of commands ffmpeg starts spewing data about the transcoding process (fps, etc.). When I add audio as shown above, ffmpeg starts but then stops displaying output after it shows it's configuration parameters and never gets to the transcoding status output stage, like it's waiting for input. I have tried many various contortions of this to try and get it working but the end result is always the same. My guess is that I'm missing a parameter that tells ffmpeg to start reading the audio pipe like a stream instead of waiting for the end of input (akin to the yuv4mpegpipe parameter but for audio?). I'm open to trying a completely different approach so long as I can use mplayer to control DVD playback (or something else that provides a means of DVD menu navigation that can be controlled via standard input, etc.). Thanks! - Jason From ffmpeg-user at c-14.de Wed Jul 23 18:05:28 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Wed, 23 Jul 2014 18:05:28 +0200 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: References: <20140721195558.GA1994@anonymous> <20140721203036.GB1994@anonymous> <20140723134108.GA1977@anonymous> Message-ID: <20140723160528.GB1977@anonymous> On 23/07/14 at 10:20, Bikash Kumar Sinha wrote: > q1 - http://www.datafilehost.com/d/ef421240 > a1 - http://www.datafilehost.com/d/d301f7e6 > > C:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg -i > "concat:q1.mp4|a1.mp4" -c copy output.mp4 First of all, the concat protocol won't work with mp4s. > *[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002ae88a0] Found duplicated MOOV Atom. > Skipped it* > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:q1.mp4|a1.mp4': > Metadata: > encoder : Lavf55.48.101 > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > Duration: 00:00:07.27, start: 0.025057, bitrate: 6497 kb/s > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 640x360 [SAR 1:1 DAR 16:9], 315 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc > (default) > Metadata: > handler_name : VideoHandler > Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, > s16p, 136 kb/s (default) > Metadata: > handler_name : SoundHandler > Output #0, mp4, to 'output.mp4': > Metadata: > compatible_brands: isomiso2avc1mp41 > major_brand : isom > minor_version : 512 > encoder : Lavf55.48.101 > Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, > 640x360 [SAR 1:1 DAR 16:9], q=2-31, 315 kb/s, 15 fps, 15360 tbn, 15360 tbc > (default) > Metadata: > handler_name : VideoHandler > Stream #0:1(eng): Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, > 136 kb/s (default) > Metadata: > handler_name : SoundHandler > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 109 fps=0.0 q=-1.0 Lsize= 405kB time=00:00:07.14 bitrate= > 464.1kbits/s > video:280kB audio:119kB subtitle:0kB other streams:0kB global headers:0kB > muxing overhead: 1.294278% Second, I found your problem. q1.mp4 is h264 (High), while a1.mp4 is h264 (Baseline). This won't work with either the concat protocol or the concat demuxer (because the codecs aren't the same). You'll have to use the concat filter (which also means that you will need to reencode the output). You can read the wiki for help with the filter: https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files#filter -- Simon Thelen From oliver at fromme.com Wed Jul 23 19:13:11 2014 From: oliver at fromme.com (Oliver Fromme) Date: Wed, 23 Jul 2014 19:13:11 +0200 (CEST) Subject: [FFmpeg-user] Capturing audio + video from mplayer In-Reply-To: Message-ID: <201407231713.s6NHDBtP083116@haluter.fromme.com> Jason Gullickson wrote: > [...] > mplayer dvdnav:////dev/dvd -ao pcm:file=audio.wav -vo > yuv4mpeg:file=video.y4m -slave > > ffmpeg -i audio.wav -f yuv4mpegpipe -i video.y4m -vcodec mpeg2video > -me_method epzs -threads 4 -r 29.97 -g 45 -b 2500k -bt 300 > http://localhost:8090/dvdfeed.ffm > > Normally when I do the video-only set of commands ffmpeg starts spewing > data about the transcoding process (fps, etc.). When I add audio as shown > above, ffmpeg starts but then stops displaying output after it shows it's > configuration parameters and never gets to the transcoding status output > stage, like it's waiting for input. Using two (or more) named pipes between two different programs almost never works, because the pipes are not read and written at the same speed, so sooner or later (rather sooner) a deadlock occurs. In this case, for example, mplayer may write a frame of video data to the video pipe. This write will block because the size of a raw yuv4m frame at DVD resolution is about 800 KB for PAL or 700 KB for NTSC, which is much more than the typical buffer size of a named pipe (between 8 and 64 KB, depending on the OS). That means that the writing process will block until the reading process has read the data. However, at the same time, ffmpeg may choose to read from the audio pipe first. Since no data is available from that pipe yet, the ffmpeg process will block, too. Things like that only work if at least one of the two programs is prepared for such a situation. It requires buffering the data and handling both pipes asynchronously. I don't think ffmpeg does that, and mplayer doesn't do that either. You could try to decouple the programs by using a buffering tool in between. There are several such tools, for example this one called "sob": http://www.secnetix.de/olli/software/sob/ The setup would be like this: mplayer --> pipe --> buffer (e.g. sob) --> pipe --> ffmpeg Of course you need to do that twice, once for the video stream and once for the audio stream. Usage for "sob" is simple, e.g. for a 20 MB buffer: sob -q -i input_pipe -o output_pipe -b 20M For the video pipe I'd start with a buffer size of 20 MB, that would be roughly 1 s of raw yuv4m video at DVD resolution. For PCM stereo audio, 1 MB should be sufficient. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) Donations: http://www.amazon.de/wishlist/A0LHFK68RV8S From cehoyos at ag.or.at Wed Jul 23 19:23:47 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 23 Jul 2014 17:23:47 +0000 (UTC) Subject: [FFmpeg-user] Capturing audio + video from mplayer References: Message-ID: Jason Gullickson gmail.com> writes: > mplayer dvdnav:////dev/dvd -vo yuv4mpeg:file=video.y4m -slave Please use mplayer -dumpstream instead, this is really fail safe, as you found out, all other possibilities are error-prone. Carl Eugen From jason.gullickson at gmail.com Wed Jul 23 19:45:44 2014 From: jason.gullickson at gmail.com (Jason Gullickson) Date: Wed, 23 Jul 2014 12:45:44 -0500 Subject: [FFmpeg-user] Capturing audio + video from mplayer In-Reply-To: References: Message-ID: Thanks for the info, I'll take a look at "sob" and see where I can go with that. Carl, I started with -dumpstream but I found that it doesn't work with the -slave parameter, which I need to control playback. On Wed, Jul 23, 2014 at 12:23 PM, Carl Eugen Hoyos wrote: > Jason Gullickson gmail.com> writes: > > > mplayer dvdnav:////dev/dvd -vo yuv4mpeg:file=video.y4m -slave > > Please use mplayer -dumpstream instead, this is really > fail safe, as you found out, all other possibilities are > error-prone. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Jason J. Gullickson Producer jason.gullickson at gmail.com From james.darnley at gmail.com Wed Jul 23 21:09:59 2014 From: james.darnley at gmail.com (James Darnley) Date: Wed, 23 Jul 2014 21:09:59 +0200 Subject: [FFmpeg-user] How to apply effects to a frame decoded using ffmpeg? In-Reply-To: References: <53CFBEF9.8050206@gmail.com> Message-ID: <53D00887.4030000@gmail.com> On 2014-07-23 16:47, David Varghese wrote: > One last question: Is there any significant advantage in using the prebuild > filters of ffmpeg over manipulating YUV frames by iterating through it? Yes. They are tested so that do what they are supposed to do. Some have SIMD and/or threading to make them quicker (I don't think eq does though). Many support more than just yuv420p (might not be valuable to you right now but does save you from having to write code for every different pixel format you want to support). Also, please don't top post. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From l1 at newanswertech.com Wed Jul 23 21:49:34 2014 From: l1 at newanswertech.com (Luke Davis) Date: Wed, 23 Jul 2014 15:49:34 -0400 (EDT) Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# In-Reply-To: References: Message-ID: On Tue, 22 Jul 2014, Carl Eugen Hoyos wrote: > Luke Davis newanswertech.com> writes: > >>>> 1. What damage is actually happening to my outgoing >>>> stream here, and is this a problem that can eventually >>>> disrupt the stream? I assume it is frames being >>>> dropped? > > Only you can look at (analyze) the input stream > and compare the frame count with the output file > to see if frames are dropped. > The way I understand the warning (I did not check > the actual commit) is that frames may be lost. Any idea _why_ they might be dropped? I don't think it is a UDP transport issue, or I would be seeing timing oddities. It would not appear to be a processor or memory issue either, since neither is used nearly to capacity while this is going on. Again, I'm reading separate audio and video streams (AAC, H.264), and mixing them into a segmented mpegts output. It seems to be a systematic process, dropping about 1 frame every minute or so, at least according to the errors. Over two hours, it does not seem to have a pronounced effect on the resulting stream, but over 4-6 hours it might. If I can figure out why it's happening, maybe there is a buffer size or the like I can manipulate to avoid the problem. I believe it's coming from mov.c, in function mov_skip_multiple_stsd, line 1638. But I still haven't figured out what's going on in there. Luke From mfelices at at4wireless.com Wed Jul 23 10:53:53 2014 From: mfelices at at4wireless.com (Miyoa) Date: Wed, 23 Jul 2014 01:53:53 -0700 (PDT) Subject: [FFmpeg-user] bitrate for H.263 Message-ID: <1406105633923-4666545.post@n4.nabble.com> Hi all, I would need to test different video/audio codecs on several mobile phones. Specifically, I would like to start streaming a content whose video stream has been coded using H.263 Profile 0 Level 10 (video), MPEG-4 AAC (audio) and total bitrate 10Kbps. Because the minimum supported bitrate for ACC is 8kbps, the video bitrate should have 2kbps, which is too low. Does anybody tell me if these values of bitrates make sense? Thank you in advance. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/bitrate-for-H-263-tp4666545.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bikashkumar.sinha at gmail.com Thu Jul 24 00:12:55 2014 From: bikashkumar.sinha at gmail.com (Bikash Kumar Sinha) Date: Wed, 23 Jul 2014 17:12:55 -0500 Subject: [FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected: In-Reply-To: <20140723160528.GB1977@anonymous> References: <20140721195558.GA1994@anonymous> <20140721203036.GB1994@anonymous> <20140723134108.GA1977@anonymous> <20140723160528.GB1977@anonymous> Message-ID: Thanks a ton Simon. I was able to fixe my issues using the correct filters. Its all working good now. Thanks again and really appreciate it Bikash On Wed, Jul 23, 2014 at 11:05 AM, Simon Thelen wrote: > On 23/07/14 at 10:20, Bikash Kumar Sinha wrote: > > q1 - http://www.datafilehost.com/d/ef421240 > > a1 - http://www.datafilehost.com/d/d301f7e6 > > > > C:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg -i > > "concat:q1.mp4|a1.mp4" -c copy output.mp4 > First of all, the concat protocol won't work with mp4s. > > *[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002ae88a0] Found duplicated MOOV Atom. > > Skipped it* > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:q1.mp4|a1.mp4': > > Metadata: > > encoder : Lavf55.48.101 > > major_brand : isom > > minor_version : 512 > > compatible_brands: isomiso2avc1mp41 > > Duration: 00:00:07.27, start: 0.025057, bitrate: 6497 kb/s > > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > > 640x360 [SAR 1:1 DAR 16:9], 315 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc > > (default) > > Metadata: > > handler_name : VideoHandler > > Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, > > s16p, 136 kb/s (default) > > Metadata: > > handler_name : SoundHandler > > Output #0, mp4, to 'output.mp4': > > Metadata: > > compatible_brands: isomiso2avc1mp41 > > major_brand : isom > > minor_version : 512 > > encoder : Lavf55.48.101 > > Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, > > 640x360 [SAR 1:1 DAR 16:9], q=2-31, 315 kb/s, 15 fps, 15360 tbn, 15360 > tbc > > (default) > > Metadata: > > handler_name : VideoHandler > > Stream #0:1(eng): Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, > > 136 kb/s (default) > > Metadata: > > handler_name : SoundHandler > > Stream mapping: > > Stream #0:0 -> #0:0 (copy) > > Stream #0:1 -> #0:1 (copy) > > Press [q] to stop, [?] for help > > frame= 109 fps=0.0 q=-1.0 Lsize= 405kB time=00:00:07.14 bitrate= > > 464.1kbits/s > > video:280kB audio:119kB subtitle:0kB other streams:0kB global headers:0kB > > muxing overhead: 1.294278% > Second, I found your problem. q1.mp4 is h264 (High), while a1.mp4 is > h264 (Baseline). This won't work with either the concat protocol or the > concat demuxer (because the codecs aren't the same). You'll have to use > the concat filter (which also means that you will need to reencode the > output). You can read the wiki for help with the filter: > > https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files#filter > > -- > Simon Thelen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From miaohonghit at gmail.com Thu Jul 24 05:49:47 2014 From: miaohonghit at gmail.com (Harold.Miao) Date: Thu, 24 Jul 2014 11:49:47 +0800 Subject: [FFmpeg-user] example/remuxing failed Message-ID: hi all I use example/remuxing to learn how to convert mp4 to ts, but I failed ! I wish someone could tell me how to change remuxing.c to get successful result. thanks in advance! *localhost examples # ./remuxing output_file.mp4 1.ts* *Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_file.mp4':* * Metadata:* * major_brand : isom* * minor_version : 512* * compatible_brands: isomiso2avc1mp41* * encoder : Lavf55.44.100* * Duration: 00:00:20.02, start: 0.000000, bitrate: 1518 kb/s* * Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1387 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)* * Metadata:* * handler_name : VideoHandler* * Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)* * Metadata:* * handler_name : SoundHandler* *Output #0, mpegts, to '1.ts':* * Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1387 kb/s, 50 tbc* * Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 125 kb/s* *[mpegts @ 0x225b7c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.* *[mpegts @ 0x225b7c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.* *[adts @ 0x225fc80] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.* *in: pts:3000 pts_time:0.12 dts:0 dts_time:0 duration:1000 duration_time:0.04 stream_index:0* *out: pts:10800 pts_time:0.12 dts:0 dts_time:0 duration:3600 duration_time:0.04 stream_index:0* *in: pts:0 pts_time:0 dts:0 dts_time:0 duration:1024 duration_time:0.02322 stream_index:1* *out: pts:0 pts_time:0 dts:0 dts_time:0 duration:2090 duration_time:0.0232222 stream_index:1* *[mpegts @ 0x225b7c0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)* *Error muxing packet* *Error occurred: Invalid argument* -- Best Regards, Harold Miao From ajsinclair at gmail.com Thu Jul 24 05:54:32 2014 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Thu, 24 Jul 2014 13:54:32 +1000 Subject: [FFmpeg-user] Problem splicing files In-Reply-To: References: Message-ID: Hi Carl, Firstly very good point in that splicing might be a somewhat old school term for joining film... https://www.youtube.com/watch?v=k66pLxyMQGI Anyhow ffmpeg term is concat filter. Basically I am taking a single source a desired target encoding, fps etc and concat'ing a number of other files in various timeslots in the original clips to support either an edit list or ad insertion. The output file was in my original note: http://bucket01.mscreentv.com.s3.amazonaws.com/ffmpeg_tests/test_out.mp4 If you seek to around 10seconds you will see one of the issues where ffplay reports: [h264 @ 0x7fa11e023400] Reinit context to 640x368, pix_fmt: yuv420p Do you know what this means exactly? But the actual frames are 640x360 even if I inspect them all with ffprobe Note I think I fixed the audio sync problem by forcing the encodes to use the same -ar 44100 as previously there was some variation there On 20 July 2014 19:58, Carl Eugen Hoyos wrote: > Andrew Sinclair gmail.com> writes: > > [...] > > It may be just me, but unfortunately, I don't understand > a word... > (starting with "splicing") > And is it possible that you uploaded an output file? > This is (nearly) never useful, input files are typically > needed. > > Please explain: > What you want to do, what you tried (command line > including console output) and what went wrong. > > Sorry, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From george at nsup.org Thu Jul 24 09:51:16 2014 From: george at nsup.org (Nicolas George) Date: Thu, 24 Jul 2014 09:51:16 +0200 Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# In-Reply-To: References: Message-ID: <20140724075116.GA18159@phare.normalesup.org> Le quintidi 5 thermidor, an CCXXII, Luke Davis a ?crit?: > Any idea _why_ they might be dropped? The "drop=" statistics corresponds to frames that were dropped to accommodate the output frame rate. With the segment muxer, ffmpeg automatically selects CFR mode, and with your video, it guesses 14.99 as the frame rate. If your input actually has more frames than that, they are dropped. Remember that each frame has a timestamp. I urge you to compare your input and output, match the images together and see what happens to the timestamps. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From matej at tam.si Thu Jul 24 09:51:53 2014 From: matej at tam.si (Matej) Date: Thu, 24 Jul 2014 09:51:53 +0200 Subject: [FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta In-Reply-To: References: Message-ID: On Wed, Jul 23, 2014 at 12:47 PM, Carl Eugen Hoyos wrote: > Matej tam.si> writes: > > > /root/ffmpeg/ffmpeg -loglevel debug -rtbufsize 128000k > > -threads 0 -re -i "udp://... -re -i "http://77.234.135.250:8000/" > > -vsync 0 -async 0 -codec copy -map 1:0,0:0 > > -s 720x576 -q 10 -shortest -f > > mpegts udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535 > > Why are you using -vsync 0 -async 0? > (And why are you using network input > and output again after we agreed that > the problem is also reproducible with > files? I do understand that for you > this is a network issue, but in my > experience, problems that are > reproducible with files are much more > likely to be fixed.) > > This may not work for -codec copy (I > don't know, as said, I don't think the > timestamp mapping of -map is tested > very often), in any case, please add > the second map option. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > I don't know if this is just me, but now when testing with a downloaded mp3 file and just one audio stream, I get the same errors after about 5-10 seconds(!). ffmpeg -loglevel debug -max_interleave_delta 15000000 -rtbufsize 128000k -threads 0 -re -i "http://dl.soundowl.com/4uri.mp3" -codec copy -s 720x576 -q 10 -shortest -f mpegts out.ts [mpegts @ 0x284efa0] Delay between the first packet and last packet in the muxing queue is 10004888 > 10000000: forcing output [mpegts @ 0x284efa0] Delay between the first packet and last packet in the muxing queue is 10004889 > 10000000: forcing output Last message repeated 3 times [mpegts @ 0x284efa0] Delay between the first packet and last packet in the muxing queue is 10004900 > 10000000: forcing output Can anyone else test this one please? I am using the latest ffmpeg compiled on linux quad core, CPU load is low all the time. From james.darnley at gmail.com Thu Jul 24 11:17:19 2014 From: james.darnley at gmail.com (James Darnley) Date: Thu, 24 Jul 2014 11:17:19 +0200 Subject: [FFmpeg-user] example/remuxing failed In-Reply-To: References: Message-ID: <53D0CF1F.8090501@gmail.com> On 2014-07-24 05:49, Harold.Miao wrote: > *[mpegts @ 0x225b7c0] H.264 bitstream malformed, no startcode found, use > the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)* This message is quite clear. If you were using ffmpeg you would need to use the option suggested. Since you are using the API you will have to will have to write some code to use this bitstream filter. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From werner.robitza at gmail.com Thu Jul 24 11:55:17 2014 From: werner.robitza at gmail.com (Werner Robitza) Date: Thu, 24 Jul 2014 11:55:17 +0200 Subject: [FFmpeg-user] bitrate for H.263 In-Reply-To: <1406105633923-4666545.post@n4.nabble.com> References: <1406105633923-4666545.post@n4.nabble.com> Message-ID: On Wed, Jul 23, 2014 at 10:53 AM, Miyoa wrote: > I would need to test different video/audio codecs on several mobile phones. > Specifically, I would like to start streaming a content whose video stream > has been coded using H.263 Profile 0 Level 10 (video), MPEG-4 AAC (audio) > and total bitrate 10Kbps. Because the minimum supported bitrate for ACC is > 8kbps, the video bitrate should have 2kbps, which is too low. Does anybody > tell me if these values of bitrates make sense? > It doesn't make sense to have audiovisual content at only 10 Kbps. Unless your video is a small, still image, heavily compressed, with a really low frame rate. Why would you want to go so low? From nichot20 at yahoo.com Thu Jul 24 14:11:37 2014 From: nichot20 at yahoo.com (tim nicholson) Date: Thu, 24 Jul 2014 13:11:37 +0100 Subject: [FFmpeg-user] Message about bounces In-Reply-To: <1403800562.5703.YahooMailNeo@web161906.mail.bf1.yahoo.com> References: <1403800562.5703.YahooMailNeo@web161906.mail.bf1.yahoo.com> Message-ID: <53D0F7F9.5010600@yahoo.com> On 26/06/14 17:36, mark_a_lee-abeng at yahoo.ca wrote: > I've been getting what I think are all the messages generated by the list but I got one not long ago saying my account had been suspended because of bounces and I needed to reconfirm. > > Is that normal? > > Mark. > [..] It is normal for Yahoo, see their explanation at:- http://yahoomail.tumblr.com/post/82426900353/yahoo-dmarc-policy-change-what-should-senders-do I have just submitted a patch, which has been applied, that munges yahoo.com adresses to avoid the issue. It seems to be working for me. -- Tim. Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 From paul at mastermoz.com Thu Jul 24 15:45:01 2014 From: paul at mastermoz.com (Paul at MasterMOZ.com) Date: Thu, 24 Jul 2014 09:45:01 -0400 Subject: [FFmpeg-user] Message about bounces In-Reply-To: <53D0F7F9.5010600@yahoo.com> References: <1403800562.5703.YahooMailNeo@web161906.mail.bf1.yahoo.com> <53D0F7F9.5010600@yahoo.com> Message-ID: Barry, Got a minute? On Thu, Jul 24, 2014 at 8:11 AM, tim nicholson < nichot20-at-yahoo.com at ffmpeg.org> wrote: > On 26/06/14 17:36, mark_a_lee-abeng at yahoo.ca wrote: > > I've been getting what I think are all the messages generated by the > list but I got one not long ago saying my account had been suspended > because of bounces and I needed to reconfirm. > > > > Is that normal? > > > > Mark. > > [..] > > It is normal for Yahoo, see their explanation at:- > > > http://yahoomail.tumblr.com/post/82426900353/yahoo-dmarc-policy-change-what-should-senders-do > > I have just submitted a patch, which has been applied, that munges > yahoo.com adresses to avoid the issue. It seems to be working for me. > > -- > Tim. > Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Paul Yurt | Founder | www.MasterMOZ.com | ? paul at mastermoz.com From davidvrgh at gmail.com Thu Jul 24 16:21:01 2014 From: davidvrgh at gmail.com (David Varghese) Date: Thu, 24 Jul 2014 19:51:01 +0530 Subject: [FFmpeg-user] Why does the bit rate get reduced significantly when re-encoding to same format? Message-ID: Hi , I have a media file having mpeg4 as video format and amrnb as audio format . I wanted to apply some effects (brightness,contrast etc) to the video and re-encode it to the same format and no changes to audio stream(only copying the audio packets) , using ffmpeg. The steps I followed were , 1. Open the input file and initialize the AVCodecContext for the video stream of input file ater finding the decoder . 2. Created an output file and added new streams to it for video and audio streams. 3. Since I wanted same configurations for the new file I initialised the AVCodecContext of the output streams using avcodec_copy_context() . 4. Decoded the video frames and re-encoded the frames after applying some changes in Y,U,V components and just copied and remuxed the audio frames to the output file . I was able to re-encode the video frames succesfully but I found a significant decrease in bit rate of video streams in the output file . Infact my input video bitrate was 10032kb/s and output video bitrate reduced to 675kb/s . Also the file size got reduced from 46MB to 3.1MB !!! I also tried without applying any effects ie,just re-encoding video frames after decoding . Am I doing something seriously wrong here ?? Note : I followed http://ffmpeg.org/doxygen/trunk/transcoding_8c-example.html for re-encoding . -- Thanks and Regards , David Varghese From l1 at newanswertech.com Thu Jul 24 19:59:19 2014 From: l1 at newanswertech.com (Luke Davis) Date: Thu, 24 Jul 2014 13:59:19 -0400 (EDT) Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# In-Reply-To: <20140724075116.GA18159@phare.normalesup.org> References: <20140724075116.GA18159@phare.normalesup.org> Message-ID: On Thu, 24 Jul 2014, Nicolas George wrote: > Le quintidi 5 thermidor, an CCXXII, Luke Davis a ?crit?: >> Any idea _why_ they might be dropped? > > The "drop=" statistics corresponds to frames that were dropped to > accommodate the output frame rate. With the segment muxer, ffmpeg > automatically selects CFR mode, and with your video, it guesses 14.99 as the > frame rate. If your input actually has more frames than that, they are > dropped. Well, it has 15. At least, that is what it is set to. It is quicktime broadcaster, and I have never read anywhere that its 15 FPS is actually 14.99, so it should be the 15 that it claims. > Remember that each frame has a timestamp. I urge you to compare your input > and output, match the images together and see what happens to the > timestamps. I'm not at the moment certain how to do that, but I will try to find a way. I haven't been able to reproduce this when converting a .mov file to MPEGTS segments, only when taking input from the network. But I am not sure that I have tried it with a mov produced by the same software. Luke From george at nsup.org Thu Jul 24 20:10:35 2014 From: george at nsup.org (Nicolas George) Date: Thu, 24 Jul 2014 20:10:35 +0200 Subject: [FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=# In-Reply-To: References: <20140724075116.GA18159@phare.normalesup.org> Message-ID: <20140724181035.GA11996@phare.normalesup.org> Le sextidi 6 thermidor, an CCXXII, Luke Davis a ?crit?: > Well, it has 15. At least, that is what it is set to. It is > quicktime broadcaster, and I have never read anywhere that its 15 > FPS is actually 14.99, so it should be the 15 that it claims. You should check for yourself: use ffprobe to dump the timestamps of your input stream, and then use your favourite data analysis tool (spreasheet, GNU R, gnuplot...) to see what they look like in detail. My guess is a small irregularity causes ffmpeg to have a slightly off value; then it tries to accommodate that value. Converting from 15 FPS to 14.99 will drop a frame about every 100 seconds. Of course, 14.99 may be anything between 14.985 and 14.995 (not sure about the rounding rules for that display), that can drop a frame at any interval between 66.66 and 200 seconds. That is consistent with what you reported. > I'm not at the moment certain how to do that, but I will try to find > a way. I suggest you use ffprobe to dump the timestamps both for input and output, and watch them frame by frame to match them together. Or you can use drawtext %{pts} to add the timestamps to the frames; do not forget the -copyts option. Also, you should try using a format that supports VFR, Matroska or Nut for example, to see if the problem goes away. That would confirm part of the theory. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From cehoyos at ag.or.at Thu Jul 24 21:27:14 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 24 Jul 2014 19:27:14 +0000 (UTC) Subject: [FFmpeg-user] mp3 duration is not correct References: Message-ID: Abu Abdullah gmail.com> writes: > i have this file which is giving wrong duration > (6 sec where it is 54 sec): > http://www.maknoon.com/download/audios/quran/alafasy/114.mp3 Should be fixed, thank you for the sample and Oliver Fromme for the analysis! Carl Eugen From davidventura27 at gmail.com Fri Jul 25 05:16:06 2014 From: davidventura27 at gmail.com (David Ventura) Date: Fri, 25 Jul 2014 00:16:06 -0300 Subject: [FFmpeg-user] 26 second delay when using ffserver Message-ID: Hi I'm streaming 2 video sources and 1 audio source to ffserver, then pulling them with a complex filter and submitting them to an rtmp server far, far away. I'm using 3 different computers for this, one that pushes (camera + xorg), a server (that pushes audio from mumblerecbot) and another computer that pulls + pushes to rtmp. (Not looking for any simplifications, but if you know something else I should try, please tell me) My problem: the video that's being pulled is delayed *exactly* 26 seconds. I'm now using this live with -itsoffset 26 and works wonders*(see below) (only, introducing 26 seconds of delay for something that should be live) The output of the commands is not pasted because it's normal, but I'll set everything up again and run it if it's needed. Push Camera: ffmpeg -f v4l2 -s 640x480 -framerate 20 -i /dev/video1 -c:v libx264 -an -preset ultrafast -threads 2 -crf 6 http://192.168.1.123:8099/left.ffm Push X: ffmpeg -f x11grab -r 20 -s $resol -i :0.0 -s 640x480 -c:v libx264 -an -preset ultrafast -crf 8 -threads 1 http://192.168.1.123:8099/right.ffm Pull Camera and X, with audio ffmpeg -re -i http://192.168.1.123:8099/left.flv -re -i http://192.168.1.123:8099/right.flv -filter_complex "[0:v]setpts=PTS-STARTPTS, scale=iw:ih, pad=2*iw:ih [left]; [1:v]setpts=PTS-STARTPTS, scale=iw:ih [right]; [left][right] overlay=main_w/2:0" -re -itsoffset 00:00:20 -i http://192.168.1.123:8099/audio.mp3 -c:v libx264 -vsync 1 -r 20 -acodec libfaac -preset ultrafast -crf 26 -maxrate 1000k -bufsize 1600k -tune zerolatency -f flv rtmp://********** FFServer File /tmp/left.ffm FileMaxSize 5m ACL deny 127.0.0.2 File /tmp/right.ffm FileMaxSize 5m ACL deny 127.0.0.2 File /tmp/audio.ffm FileMaxSize 1m ACL deny 127.0.0.2 #camera Format flv Feed left.ffm PreRoll 0 #dont buffer NoAudio VideoCodec libx264 VideoSize 640x480 VideoGopSize 20 AVOptionVideo pix_fmt yuv420p AVOptionVideo flags +global_header #libx264 PixelFormat yuv420p AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 0 AVOptionVideo qmax 51 #StartSendOnKey Format flv Feed right.ffm PreRoll 0 #dont buffer NoAudio VideoCodec libx264 VideoSize 640x480 VideoGopSize 20 AVOptionVideo pix_fmt yuv420p AVOptionVideo flags +global_header #esto para libx264 PixelFormat yuv420p AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 0 AVOptionVideo qmax 51 #StartSendOnKey Feed audio.ffm Format mp2 AudioCodec libmp3lame AudioBitRate 96 AudioChannels 1 AudioSampleRate 48000 NoVideo PreRoll 2 StartSendOnKey disabled so both streams start at the same time Below*: Important: If I set the itsoffset to 26 the audio/video get in sync but the output starts stuttering until I get something (within 1-2 minutes) like: [h264 @ 0x154dba0] corrupted macroblock 23 0 (total_coeff=16)itrate=1002.2kbits/s [h264 @ 0x154dba0] error while decoding MB 23 0 [h264 @ 0x154dba0] corrupted macroblock 34 3 (total_coeff=16) [h264 @ 0x154dba0] error while decoding MB 34 3 [h264 @ 0x154dba0] concealing 1095 DC, 1095 AC, 1095 MV errors in I frame DTS 845582853, next:90100000 st:0 invalid dropping:01:50.13 bitrate= 820.7kbits/s PTS 845582853, next:90100000 invalid dropping st:0 [h264 @ 0x154e360] Missing reference picture, default is 0 [h264 @ 0x154e360] decode_slice_header error WriteN, RTMP send error 104 (136 bytes)And the video stops. Having pasted all those configs: 1-This error would be a non-problem if the delay was not there, so I'm not too focused on fixing that, I'd rather fix the delay (or at least reduce it, using itsoffset up to 10 does not give errors) 2-The video (complete, with audio) starts with a big buffer(around 1 minute) and the buffer starts 'decaying' over time , after about 50 minutes, the delay is around 8 seconds. No clue about this, but it's not really relevant (if this keeps for 3 hours the delay keeps at 8 seconds, included rtmp) Thanks a lot -- We need only a little more code,and little more money,and little more time, and little more sleep but the world needs a lot more freedom From batguano999 at zoho.com Fri Jul 25 13:03:22 2014 From: batguano999 at zoho.com (batguano999) Date: Fri, 25 Jul 2014 04:03:22 -0700 Subject: [FFmpeg-user] About the development version. Message-ID: <1476d308757.-6727397741312164118.-2342309315754599002@zoho.com> Hi Is the git version deliberately left at 2.2 or should it be 2.3 now? @Xubuntu:~$ ffmpeg ffmpeg version 2.2.git-04bc370 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 25 2014 10:21:49 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 49.100 / 55. 49.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg' From bouke at videotoolshed.com Fri Jul 25 14:03:09 2014 From: bouke at videotoolshed.com (Bouke (VideoToolShed)) Date: Fri, 25 Jul 2014 14:03:09 +0200 Subject: [FFmpeg-user] capturing .dnx together with -segment Message-ID: <8918121E40B346AC8AB8F76259181394@HPKANTOOR> Trying to capture to raw DNxHD (*.dnx) while using the -segment option. That fails. Close to the same line (capturing to a QuickTime container) does work. Am i missing something? Lines (simplified, but enough to reproduce) below, first one is the failing one. Second is the working one (although that 'should' not need the -rawvideo option) But this gives me errors (that don't seem to matter though) --- [mov @ 000000000039bfa0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. --- I would like to, if i knew what to do... --- [mov @ 000000000039bfa0] WARNING codec timebase is very high. If duration is too long, file may not be playable by quicktime. Specify a shorter timebase or choose different container. --- BM card needs -r 23.976, and I don't think that is a high timebase... TIA! Bouke C:\Users\Bouke>C:\Users\Bouke\Desktop\BMtest\Xtras\ffmpeg.exe -f dshow -rtbufsi ze 1024000k -pixel_format uyvy422 -framerate 23.976 -s 1920:1080 -i video="Deckl ink Video Capture":audio="Decklink Audio Capture" -b:v 36M -pix_fmt yuv422p -vco dec dnxhd -f rawvideo -an -map 0 -f segment -reset_timestamps 1 -segment_time 5 -segment_atclocktime 1 J:\12_19_34_%03d.dnx ffmpeg version N-64919-ga613257 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 23 2014 00:35:22 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, dshow, from 'video=Decklink Video Capture:audio=Decklink Audio Capture ': Duration: N/A, start: 0.088879, bitrate: 1536 kb/s Stream #0:0: Video: rawvideo (HDYC / 0x43594448), uyvy422(tv), 1920x1080, 23 .98 tbr, 10000k tbn, 23.98 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Output #0, segment, to 'J:\12_19_34_%03d.dnx': Metadata: encoder : Lavf55.48.101 Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, q=2-1024, 36000 kb/s, 23.98 f ps, 23.98 tbn, 23.98 tbc Metadata: encoder : Lavc55.69.100 dnxhd Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> dnxhd (native)) Could not write header for output file #0 (incorrect codec parameters ?): Muxer not found C:\Users\Bouke>C:\Users\Bouke\Desktop\BMtest\Xtras\ffmpeg.exe -f dshow -rtbufsi ze 1024000k -pixel_format uyvy422 -framerate 23.976 -s 1920:1080 -i video="Deckl ink Video Capture":audio="Decklink Audio Capture" -b:v 36M -pix_fmt yuv422p -vco dec dnxhd -f rawvideo -an -map 0 -f segment -reset_timestamps 1 -segment_time 5 -segment_atclocktime 1 J:\12_19_34_%03d.mov ffmpeg version N-64919-ga613257 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 23 2014 00:35:22 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 48.101 / 55. 48.101 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, dshow, from 'video=Decklink Video Capture:audio=Decklink Audio Capture ': Duration: N/A, start: 0.089126, bitrate: 1536 kb/s Stream #0:0: Video: rawvideo (HDYC / 0x43594448), uyvy422(tv), 1920x1080, 23 .98 tbr, 10000k tbn, 23.98 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s [mov @ 000000000039bfa0] Using AVStream.codec.time_base as a timebase hint to th e muxer is deprecated. Set AVStream.time_base instead. [mov @ 000000000039bfa0] WARNING codec timebase is very high. If duration is too long, file may not be playable by quicktime. Specify a shorter timebase or choose different container. Output #0, segment, to 'J:\12_19_34_%03d.mov': Metadata: encoder : Lavf55.48.101 Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, q=2-1024, 36000 kb/s, 23.98 f ps, 23.98 tbn, 23.98 tbc Metadata: encoder : Lavc55.69.100 dnxhd Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> dnxhd (native)) Press [q] to stop, [?] for help [mov @ 000000000039bfa0] Using AVStream.codec.time_base as a timebase hint to th e muxer is deprecated. Set AVStream.time_base instead. [mov @ 000000000039bfa0] WARNING codec timebase is very high. If duration is too long, file may not be playable by quicktime. Specify a shorter timebase or choose different container. frame= 162 fps= 24 q=1.0 Lsize=N/A time=00:00:06.75 bitrate=N/A video:29808kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown C:\Users\Bouke> --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From cehoyos at ag.or.at Fri Jul 25 14:30:43 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 25 Jul 2014 12:30:43 +0000 (UTC) Subject: [FFmpeg-user] capturing .dnx together with -segment References: <8918121E40B346AC8AB8F76259181394@HPKANTOOR> Message-ID: Bouke (VideoToolShed videotoolshed.com> writes: > Trying to capture to raw DNxHD (*.dnx) If you call them .dnxhd everything gets much easier... > ffmpeg.exe -f dshow -rtbufsize 1024000k > -pixel_format uyvy422 -framerate 23.976 > -s 1920:1080 -i video="Decklink Video Capture": > audio="Decklink Audio Capture" -b:v 36M > -pix_fmt yuv422p -vcodec dnxhd > -f rawvideo -an -map 0 -f segment This cannot work, you are specifying two different output formats... Please remove "-f rawvideo", you have to specify "-segment_format dnxhd" (or use an appropriate file name suffix, in this case dnxhd). Carl Eugen From bouke at videotoolshed.com Fri Jul 25 14:41:16 2014 From: bouke at videotoolshed.com (Bouke (VideoToolShed)) Date: Fri, 25 Jul 2014 14:41:16 +0200 Subject: [FFmpeg-user] capturing .dnx together with -segment References: <8918121E40B346AC8AB8F76259181394@HPKANTOOR> Message-ID: ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Friday, July 25, 2014 2:30 PM Subject: Re: [FFmpeg-user] capturing .dnx together with -segment > Bouke (VideoToolShed videotoolshed.com> writes: > >> Trying to capture to raw DNxHD (*.dnx) > > If you call them .dnxhd everything gets much easier... > >> ffmpeg.exe -f dshow -rtbufsize 1024000k >> -pixel_format uyvy422 -framerate 23.976 >> -s 1920:1080 -i video="Decklink Video Capture": >> audio="Decklink Audio Capture" -b:v 36M >> -pix_fmt yuv422p -vcodec dnxhd > >> -f rawvideo -an -map 0 -f segment > > This cannot work, you are specifying two > different output formats... > > Please remove "-f rawvideo", you have to specify > "-segment_format dnxhd" (or use an appropriate > file name suffix, in this case dnxhd). Works like a charm, thanks! Bouke > Carl Eugen --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From axetone at yahoo.com Sat Jul 26 07:04:54 2014 From: axetone at yahoo.com (Jason Anderson) Date: Fri, 25 Jul 2014 22:04:54 -0700 Subject: [FFmpeg-user] Capture UDP with ffmpeg, re-stream with ffserver Message-ID: <1406351094.3175.YahooMailNeo@web142605.mail.bf1.yahoo.com> Hi,? ?I have win7 pushing UDP (via vidStudio port 1935) to Ubuntu (ffserver) and I am trying to use ffmpeg to capture and restream. Website is wildcatrockcity.com Both machines on DMZ, firewall verified not the issue... I have JW-Player embedded into index.html to play stream. My problem is that I get "Error loading stream could not connect to server." I have tried many different configurations changing the ffmpeg command, but nothing works. My details of this configuration are as follows: INDEX.HTML ***************

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

*************** FFSERVER.CONF *************** Port 8090 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 10000 CustomLog - ? ? ? ? File /tmp/feed1.ffm ? ? ? ? FileMaxSize 5M ? ? ? ? ACL allow 127.0.0.1 ? ? ? ? ACL allow 172.16.0.20 ? ? ? ? Format swf ? ? ? ? # Format flv ? ? ? ? Feed feed1.ffm ? ? ? ? VideoCodec libx264 ? ? ? ? VideoFrameRate 25 ? ? ? ? VideoBitRate 512 ? ? ? ? VideoSize 320x240 ? ? ? ? AVOptionVideo crf 23 ? ? ? ? AVOptionVideo preset medium ? ? ? ? # for more info on crf/preset options, type: x264 --help ? ? ? ? AVOptionVideo flags +global_header ? ? ? ? AudioCodec aac ? ? ? ? Strict -2 ? ? ? ? AudioBitRate 128 ? ? ? ? AudioChannels 2 ? ? ? ? AudioSampleRate 44100 ? ? ? ? AVOptionAudio flags +global_header ################################################################## # Special streams ################################################################## ? ? ? ? Format status ? ? ? ? # Only allow local people to get the status ? ? ? ? ACL allow localhost ? ? ? ? ACL allow 172.16.0.0 172.16.0.255 # Redirect index.html to the appropriate site ? ? ? ? URL http://www.wildcatrockcity.com:8090/live/live.swf ################################################################## *************** FFMPEG command *************** ffmpeg -i udp://172.16.0.20 -c:a copy -c:v libx264 -vpre slow -f flv rtmp://wildcatrockcity.com:8090/feed1.ffm *************** ANY SUGGESTIONS / CORRECTIONS GREATLY APPRECIATED!!! THANK YOU IN ADVANCE!! -Axetone From jeetbhatnagar.8941 at gmail.com Sat Jul 26 07:18:56 2014 From: jeetbhatnagar.8941 at gmail.com (Jeet Bhatnagar) Date: Sat, 26 Jul 2014 10:48:56 +0530 Subject: [FFmpeg-user] 26 second delay when using ffserver In-Reply-To: References: Message-ID: Use truncate in ffserver config file And avioflags direct,fflags nobuffer in command line On Jul 25, 2014 8:47 AM, "David Ventura" wrote: > Hi > I'm streaming 2 video sources and 1 audio source to ffserver, then pulling > them with a complex filter and submitting them to an rtmp server far, far > away. > I'm using 3 different computers for this, one that pushes (camera + xorg), > a server (that pushes audio from mumblerecbot) and another computer that > pulls + pushes to rtmp. > > (Not looking for any simplifications, but if you know something else I > should try, please tell me) > > My problem: the video that's being pulled is delayed *exactly* 26 seconds. > I'm now using this live with -itsoffset 26 and works wonders*(see below) > (only, introducing 26 seconds of delay for something that should be live) > > The output of the commands is not pasted because it's normal, but I'll set > everything up again and run it if it's needed. > > Push Camera: > ffmpeg -f v4l2 -s 640x480 -framerate 20 -i /dev/video1 -c:v libx264 -an > -preset ultrafast -threads 2 -crf 6 http://192.168.1.123:8099/left.ffm > > Push X: > > ffmpeg -f x11grab -r 20 -s $resol -i :0.0 -s 640x480 -c:v libx264 -an > -preset ultrafast -crf 8 -threads 1 http://192.168.1.123:8099/right.ffm > > Pull Camera and X, with audio > > ffmpeg -re -i http://192.168.1.123:8099/left.flv -re -i > http://192.168.1.123:8099/right.flv -filter_complex > "[0:v]setpts=PTS-STARTPTS, scale=iw:ih, pad=2*iw:ih [left]; > [1:v]setpts=PTS-STARTPTS, scale=iw:ih [right]; [left][right] > overlay=main_w/2:0" -re -itsoffset 00:00:20 -i > http://192.168.1.123:8099/audio.mp3 -c:v libx264 -vsync 1 -r 20 -acodec > libfaac -preset ultrafast -crf 26 -maxrate 1000k -bufsize 1600k -tune > zerolatency -f flv rtmp://********** > > > FFServer > > > File /tmp/left.ffm > FileMaxSize 5m > ACL deny 127.0.0.2 > > > File /tmp/right.ffm > FileMaxSize 5m > ACL deny 127.0.0.2 > > > File /tmp/audio.ffm > FileMaxSize 1m > ACL deny 127.0.0.2 > > > #camera > Format flv > Feed left.ffm > > PreRoll 0 #dont buffer > NoAudio > VideoCodec libx264 > VideoSize 640x480 > VideoGopSize 20 > AVOptionVideo pix_fmt yuv420p > AVOptionVideo flags +global_header > > #libx264 > PixelFormat yuv420p > AVOptionVideo me_range 16 > AVOptionVideo qdiff 4 > AVOptionVideo qmin 0 > AVOptionVideo qmax 51 > #StartSendOnKey > > > Format flv > Feed right.ffm > > PreRoll 0 #dont buffer > NoAudio > VideoCodec libx264 > VideoSize 640x480 > VideoGopSize 20 > AVOptionVideo pix_fmt yuv420p > AVOptionVideo flags +global_header > > #esto para libx264 > PixelFormat yuv420p > AVOptionVideo me_range 16 > AVOptionVideo qdiff 4 > AVOptionVideo qmin 0 > AVOptionVideo qmax 51 > #StartSendOnKey > > > Feed audio.ffm > Format mp2 > AudioCodec libmp3lame > AudioBitRate 96 > AudioChannels 1 > AudioSampleRate 48000 > NoVideo > PreRoll 2 > > > > > > StartSendOnKey disabled so both streams start at the same time > > > Below*: > Important: If I set the itsoffset to 26 the audio/video get in sync but the > output starts stuttering until I get something (within 1-2 minutes) like: > > [h264 @ > 0x154dba0] corrupted macroblock 23 0 (total_coeff=16)itrate=1002.2kbits/s > > [h264 @ 0x154dba0] error while decoding MB 23 0 > [h264 @ 0x154dba0] corrupted macroblock 34 3 (total_coeff=16) > [h264 @ 0x154dba0] error while decoding MB 34 3 > [h264 @ 0x154dba0] concealing 1095 DC, 1095 AC, 1095 MV errors in I frame > DTS 845582853, next:90100000 st:0 invalid dropping:01:50.13 bitrate= > 820.7kbits/s > PTS 845582853, next:90100000 invalid dropping st:0 > [h264 @ 0x154e360] Missing reference picture, default is 0 > [h264 @ 0x154e360] decode_slice_header error > WriteN, RTMP send error 104 (136 bytes)And the video stops. > > > Having pasted all those configs: > > 1-This error would be a non-problem if the delay was not there, so I'm not > too focused on fixing that, I'd rather fix the delay (or at least reduce > it, using itsoffset up to 10 does not give errors) > > > 2-The video (complete, with audio) starts with a big buffer(around 1 > minute) and the buffer starts 'decaying' over time , after about 50 > minutes, the delay is around 8 seconds. No clue about this, but it's not > really relevant (if this keeps for 3 hours the delay keeps at 8 seconds, > included rtmp) > > > Thanks a lot > > -- > We need only a little more code,and little more money,and little more time, > and little more sleep but the world needs a lot more freedom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From davidventura27 at gmail.com Sat Jul 26 17:35:32 2014 From: davidventura27 at gmail.com (David Ventura) Date: Sat, 26 Jul 2014 12:35:32 -0300 Subject: [FFmpeg-user] 26 second delay when using ffserver In-Reply-To: References: Message-ID: isn't using both as input parameters redundant? nobuffer: Reduce the latency introduced by optional buffering direct Reduce buffering. I'll try it anyway and report back, thanks On 26 July 2014 02:18, Jeet Bhatnagar wrote: > Use truncate in ffserver config file > And avioflags direct,fflags nobuffer in command line > On Jul 25, 2014 8:47 AM, "David Ventura" wrote: > > > Hi > > I'm streaming 2 video sources and 1 audio source to ffserver, then > pulling > > them with a complex filter and submitting them to an rtmp server far, far > > away. > > I'm using 3 different computers for this, one that pushes (camera + > xorg), > > a server (that pushes audio from mumblerecbot) and another computer that > > pulls + pushes to rtmp. > > > > (Not looking for any simplifications, but if you know something else I > > should try, please tell me) > > > > My problem: the video that's being pulled is delayed *exactly* 26 > seconds. > > I'm now using this live with -itsoffset 26 and works wonders*(see below) > > (only, introducing 26 seconds of delay for something that should be live) > > > > The output of the commands is not pasted because it's normal, but I'll > set > > everything up again and run it if it's needed. > > > > Push Camera: > > ffmpeg -f v4l2 -s 640x480 -framerate 20 -i /dev/video1 -c:v libx264 -an > > -preset ultrafast -threads 2 -crf 6 http://192.168.1.123:8099/left.ffm > > > > Push X: > > > > ffmpeg -f x11grab -r 20 -s $resol -i :0.0 -s 640x480 -c:v libx264 -an > > -preset ultrafast -crf 8 -threads 1 http://192.168.1.123:8099/right.ffm > > > > Pull Camera and X, with audio > > > > ffmpeg -re -i http://192.168.1.123:8099/left.flv -re -i > > http://192.168.1.123:8099/right.flv -filter_complex > > "[0:v]setpts=PTS-STARTPTS, scale=iw:ih, pad=2*iw:ih [left]; > > [1:v]setpts=PTS-STARTPTS, scale=iw:ih [right]; [left][right] > > overlay=main_w/2:0" -re -itsoffset 00:00:20 -i > > http://192.168.1.123:8099/audio.mp3 -c:v libx264 -vsync 1 -r 20 -acodec > > libfaac -preset ultrafast -crf 26 -maxrate 1000k -bufsize 1600k -tune > > zerolatency -f flv rtmp://********** > > > > > > FFServer > > > > > > File /tmp/left.ffm > > FileMaxSize 5m > > ACL deny 127.0.0.2 > > > > > > File /tmp/right.ffm > > FileMaxSize 5m > > ACL deny 127.0.0.2 > > > > > > File /tmp/audio.ffm > > FileMaxSize 1m > > ACL deny 127.0.0.2 > > > > > > #camera > > Format flv > > Feed left.ffm > > > > PreRoll 0 #dont buffer > > NoAudio > > VideoCodec libx264 > > VideoSize 640x480 > > VideoGopSize 20 > > AVOptionVideo pix_fmt yuv420p > > AVOptionVideo flags +global_header > > > > #libx264 > > PixelFormat yuv420p > > AVOptionVideo me_range 16 > > AVOptionVideo qdiff 4 > > AVOptionVideo qmin 0 > > AVOptionVideo qmax 51 > > #StartSendOnKey > > > > > > Format flv > > Feed right.ffm > > > > PreRoll 0 #dont buffer > > NoAudio > > VideoCodec libx264 > > VideoSize 640x480 > > VideoGopSize 20 > > AVOptionVideo pix_fmt yuv420p > > AVOptionVideo flags +global_header > > > > #esto para libx264 > > PixelFormat yuv420p > > AVOptionVideo me_range 16 > > AVOptionVideo qdiff 4 > > AVOptionVideo qmin 0 > > AVOptionVideo qmax 51 > > #StartSendOnKey > > > > > > Feed audio.ffm > > Format mp2 > > AudioCodec libmp3lame > > AudioBitRate 96 > > AudioChannels 1 > > AudioSampleRate 48000 > > NoVideo > > PreRoll 2 > > > > > > > > > > > > StartSendOnKey disabled so both streams start at the same time > > > > > > Below*: > > Important: If I set the itsoffset to 26 the audio/video get in sync but > the > > output starts stuttering until I get something (within 1-2 minutes) like: > > > > [h264 > @ > > 0x154dba0] corrupted macroblock 23 0 (total_coeff=16)itrate=1002.2kbits/s > > > > [h264 @ 0x154dba0] error while decoding MB 23 0 > > [h264 @ 0x154dba0] corrupted macroblock 34 3 (total_coeff=16) > > [h264 @ 0x154dba0] error while decoding MB 34 3 > > [h264 @ 0x154dba0] concealing 1095 DC, 1095 AC, 1095 MV errors in I frame > > DTS 845582853, next:90100000 st:0 invalid dropping:01:50.13 bitrate= > > 820.7kbits/s > > PTS 845582853, next:90100000 invalid dropping st:0 > > [h264 @ 0x154e360] Missing reference picture, default is 0 > > [h264 @ 0x154e360] decode_slice_header error > > WriteN, RTMP send error 104 (136 bytes)And the video stops. > > > > > > Having pasted all those configs: > > > > 1-This error would be a non-problem if the delay was not there, so I'm > not > > too focused on fixing that, I'd rather fix the delay (or at least reduce > > it, using itsoffset up to 10 does not give errors) > > > > > > 2-The video (complete, with audio) starts with a big buffer(around 1 > > minute) and the buffer starts 'decaying' over time , after about 50 > > minutes, the delay is around 8 seconds. No clue about this, but it's not > > really relevant (if this keeps for 3 hours the delay keeps at 8 seconds, > > included rtmp) > > > > > > Thanks a lot > > > > -- > > We need only a little more code,and little more money,and little more > time, > > and little more sleep but the world needs a lot more freedom > > _______________________________________________ > > 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 > -- We need only a little more code,and little more money,and little more time, and little more sleep but the world needs a lot more freedom From mohdfjaved at gmail.com Sat Jul 26 01:43:31 2014 From: mohdfjaved at gmail.com (Farrukh Javed) Date: Sat, 26 Jul 2014 04:43:31 +0500 Subject: [FFmpeg-user] Help with HTTP Streaming FFMPEG Message-ID: *Problem 1:* I am trying to stream an mpg video over an http server using ffmepg. I initiate the ffserver and run the following command at the client: ffmpeg -i http://localhost:10212/Stream.mpg -y Sample.mpg But the Sample.mpg file is far less qualtiy and much smaller than the 480p.mpg file. *I want the exact same 480p.mpg file with the same file size, bit rate, ratio, fps etc.* My config file is as follow: File "/home/david/Documents/Video/Streaming/480p.mpg" format mpeg ACL allow 127.0.0.1 ACL allow 192.168.1.0 192.168.1.255 *Problem 2:* How can I save the streaming statistics of the video i.e how are the frames received, their bitrates, time intervals etc. It must be unique while for every client if streamed over a wireless network, due to variable conditions. I know about the -vsats command in ffmpeg but It gives me the video coding statistics (static file only depends on video) not the streaming statistics. Thank You and Regards, Farrukh Javed From phil4000n at gmail.com Sat Jul 26 15:47:46 2014 From: phil4000n at gmail.com (Sub Phil) Date: Sat, 26 Jul 2014 15:47:46 +0200 Subject: [FFmpeg-user] Copy all streams, what actually ffmpeg does? Message-ID: Hi, What does ffmpeg actually do in copying streams?? ffmpeg -i movie.mp4 -c copy copied.mp4 Indeed, as I noticed, ffmpeg changes some metatag data, but what else because, my input file is 326,736Kb while the output is larger and is 382,819Kb. Rmk: copied.mp4 is MD5 equivalent to copied2.mp4: ffmpeg -i movie.mp4 -c copy -map_metadata -1 copied2.mp4 So what kind of modification/fixing does ffmpeg do vs a file copy??? Thanks, Phil From l1 at newanswertech.com Sat Jul 26 19:55:41 2014 From: l1 at newanswertech.com (Luke Davis) Date: Sat, 26 Jul 2014 13:55:41 -0400 (EDT) Subject: [FFmpeg-user] Still happening - Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Message-ID: I believe somebody (Carl) said this was fixed in the latest version, but in a compilation of a version obtained an hour ago from latest, it is still happening when segmenting... [mpegts @ 0x2e73ea0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times Command: ffmpeg -i /home/streamer/origin.sdp \ -acodec libfdk_aac -ac 2 -b:a 128k -vcodec libx264 -vpre libx264-ipod640 -preset faster -b:v 500k -threads 0 -g 75 -level 3.1 \ -map 0 -vbsf h264_mp4toannexb \ -flags -global_header -f segment \ -segment_time 10 \ -segment_list stream.m3u8 -segment_list_flags +live -segment_list_size 9 \ -segment_format mpegts stream`date '+%m%d%H%M%s'`-%05d.ts From jeetbhatnagar.8941 at gmail.com Sat Jul 26 20:15:31 2014 From: jeetbhatnagar.8941 at gmail.com (Jeet Bhatnagar) Date: Sat, 26 Jul 2014 23:45:31 +0530 Subject: [FFmpeg-user] 26 second delay when using ffserver In-Reply-To: References: Message-ID: No both are different also in ffserver config file reduce file max size to 200 k On Jul 26, 2014 9:06 PM, "David Ventura" wrote: > isn't using both as input parameters redundant? > nobuffer: > > Reduce the latency introduced by optional buffering > direct > > Reduce buffering. > > I'll try it anyway and report back, thanks > > > On 26 July 2014 02:18, Jeet Bhatnagar > wrote: > > > Use truncate in ffserver config file > > And avioflags direct,fflags nobuffer in command line > > On Jul 25, 2014 8:47 AM, "David Ventura" > wrote: > > > > > Hi > > > I'm streaming 2 video sources and 1 audio source to ffserver, then > > pulling > > > them with a complex filter and submitting them to an rtmp server far, > far > > > away. > > > I'm using 3 different computers for this, one that pushes (camera + > > xorg), > > > a server (that pushes audio from mumblerecbot) and another computer > that > > > pulls + pushes to rtmp. > > > > > > (Not looking for any simplifications, but if you know something else I > > > should try, please tell me) > > > > > > My problem: the video that's being pulled is delayed *exactly* 26 > > seconds. > > > I'm now using this live with -itsoffset 26 and works wonders*(see > below) > > > (only, introducing 26 seconds of delay for something that should be > live) > > > > > > The output of the commands is not pasted because it's normal, but I'll > > set > > > everything up again and run it if it's needed. > > > > > > Push Camera: > > > ffmpeg -f v4l2 -s 640x480 -framerate 20 -i /dev/video1 -c:v libx264 > -an > > > -preset ultrafast -threads 2 -crf 6 http://192.168.1.123:8099/left.ffm > > > > > > Push X: > > > > > > ffmpeg -f x11grab -r 20 -s $resol -i :0.0 -s 640x480 -c:v libx264 -an > > > -preset ultrafast -crf 8 -threads 1 > http://192.168.1.123:8099/right.ffm > > > > > > Pull Camera and X, with audio > > > > > > ffmpeg -re -i http://192.168.1.123:8099/left.flv -re -i > > > http://192.168.1.123:8099/right.flv -filter_complex > > > "[0:v]setpts=PTS-STARTPTS, scale=iw:ih, pad=2*iw:ih [left]; > > > [1:v]setpts=PTS-STARTPTS, scale=iw:ih [right]; [left][right] > > > overlay=main_w/2:0" -re -itsoffset 00:00:20 -i > > > http://192.168.1.123:8099/audio.mp3 -c:v libx264 -vsync 1 -r 20 > -acodec > > > libfaac -preset ultrafast -crf 26 -maxrate 1000k -bufsize 1600k -tune > > > zerolatency -f flv rtmp://********** > > > > > > > > > FFServer > > > > > > > > > File /tmp/left.ffm > > > FileMaxSize 5m > > > ACL deny 127.0.0.2 > > > > > > > > > File /tmp/right.ffm > > > FileMaxSize 5m > > > ACL deny 127.0.0.2 > > > > > > > > > File /tmp/audio.ffm > > > FileMaxSize 1m > > > ACL deny 127.0.0.2 > > > > > > > > > #camera > > > Format flv > > > Feed left.ffm > > > > > > PreRoll 0 #dont buffer > > > NoAudio > > > VideoCodec libx264 > > > VideoSize 640x480 > > > VideoGopSize 20 > > > AVOptionVideo pix_fmt yuv420p > > > AVOptionVideo flags +global_header > > > > > > #libx264 > > > PixelFormat yuv420p > > > AVOptionVideo me_range 16 > > > AVOptionVideo qdiff 4 > > > AVOptionVideo qmin 0 > > > AVOptionVideo qmax 51 > > > #StartSendOnKey > > > > > > > > > Format flv > > > Feed right.ffm > > > > > > PreRoll 0 #dont buffer > > > NoAudio > > > VideoCodec libx264 > > > VideoSize 640x480 > > > VideoGopSize 20 > > > AVOptionVideo pix_fmt yuv420p > > > AVOptionVideo flags +global_header > > > > > > #esto para libx264 > > > PixelFormat yuv420p > > > AVOptionVideo me_range 16 > > > AVOptionVideo qdiff 4 > > > AVOptionVideo qmin 0 > > > AVOptionVideo qmax 51 > > > #StartSendOnKey > > > > > > > > > Feed audio.ffm > > > Format mp2 > > > AudioCodec libmp3lame > > > AudioBitRate 96 > > > AudioChannels 1 > > > AudioSampleRate 48000 > > > NoVideo > > > PreRoll 2 > > > > > > > > > > > > > > > > > > StartSendOnKey disabled so both streams start at the same time > > > > > > > > > Below*: > > > Important: If I set the itsoffset to 26 the audio/video get in sync but > > the > > > output starts stuttering until I get something (within 1-2 minutes) > like: > > > > > > >[h264 > > @ > > > 0x154dba0] corrupted macroblock 23 0 > (total_coeff=16)itrate=1002.2kbits/s > > > > > > [h264 @ 0x154dba0] error while decoding MB 23 0 > > > [h264 @ 0x154dba0] corrupted macroblock 34 3 (total_coeff=16) > > > [h264 @ 0x154dba0] error while decoding MB 34 3 > > > [h264 @ 0x154dba0] concealing 1095 DC, 1095 AC, 1095 MV errors in I > frame > > > DTS 845582853, next:90100000 st:0 invalid dropping:01:50.13 bitrate= > > > 820.7kbits/s > > > PTS 845582853, next:90100000 invalid dropping st:0 > > > [h264 @ 0x154e360] Missing reference picture, default is 0 > > > [h264 @ 0x154e360] decode_slice_header error > > > WriteN, RTMP send error 104 (136 bytes)And the video stops. > > > > > > > > > Having pasted all those configs: > > > > > > 1-This error would be a non-problem if the delay was not there, so I'm > > not > > > too focused on fixing that, I'd rather fix the delay (or at least > reduce > > > it, using itsoffset up to 10 does not give errors) > > > > > > > > > 2-The video (complete, with audio) starts with a big buffer(around 1 > > > minute) and the buffer starts 'decaying' over time , after about 50 > > > minutes, the delay is around 8 seconds. No clue about this, but it's > not > > > really relevant (if this keeps for 3 hours the delay keeps at 8 > seconds, > > > included rtmp) > > > > > > > > > Thanks a lot > > > > > > -- > > > We need only a little more code,and little more money,and little more > > time, > > > and little more sleep but the world needs a lot more freedom > > > _______________________________________________ > > > 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 > > > > > > -- > We need only a little more code,and little more money,and little more time, > and little more sleep but the world needs a lot more freedom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sat Jul 26 23:14:14 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 26 Jul 2014 21:14:14 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Still_happening_-_Using_AVStream=2Ecodec?= =?utf-8?q?=2Etime=5Fbase_as_a_timebase_hint_to_the_muxer_is_deprec?= =?utf-8?q?ated=2E_Set_AVStream=2Etime=5Fbase_instead=2E?= References: Message-ID: Luke Davis newanswertech.com> writes: > I believe somebody (Carl) said this was fixed in the > latest version, but in a compilation of a version > obtained an hour ago from latest, it is still happening > when segmenting... This is ticket #3741. Carl Eugen From bouke at videotoolshed.com Sun Jul 27 10:01:07 2014 From: bouke at videotoolshed.com (Bouke (VideoToolShed)) Date: Sun, 27 Jul 2014 10:01:07 +0200 Subject: [FFmpeg-user] Help with HTTP Streaming FFMPEG References: Message-ID: <289925079F0147508B2A81F223F4AFA1@HPKANTOOR> ----- Original Message ----- From: "Farrukh Javed" To: Sent: Saturday, July 26, 2014 1:43 AM Subject: [FFmpeg-user] Help with HTTP Streaming FFMPEG > *Problem 1:* > > I am trying to stream an mpg video over an http server using ffmepg. I > initiate the ffserver and run the following command at the client: > > ffmpeg -i http://localhost:10212/Stream.mpg -y Sample.mpg > > But the Sample.mpg file is far less qualtiy and much smaller than the > 480p.mpg file. *I want the exact same 480p.mpg file with the same file > size, bit rate, ratio, fps etc.* Try -y -vcodec copy -acodec copy sample.mpg. Bouke > My config file is as follow: > > > > File "/home/david/Documents/Video/Streaming/480p.mpg" > format mpeg > > ACL allow 127.0.0.1 > ACL allow 192.168.1.0 192.168.1.255 > > > > *Problem 2:* > > How can I save the streaming statistics of the video i.e how are the > frames > received, their bitrates, time intervals etc. It must be unique while for > every client if streamed over a wireless network, due to variable > conditions. > > I know about the -vsats command in ffmpeg but It gives me the video coding > statistics (static file only depends on video) not the streaming > statistics. > > Thank You and Regards, > Farrukh Javed > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From blacktrash at gmx.net Sun Jul 27 13:35:20 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Sun, 27 Jul 2014 12:35:20 +0100 Subject: [FFmpeg-user] Still happening - Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. In-Reply-To: References: Message-ID: <20140727113520.GA733@krille.blacktrash.org> * Carl Eugen Hoyos on Saturday, July 26, 2014 at 21:14:14 +0000 > Luke Davis newanswertech.com> writes: >> I believe somebody (Carl) said this was fixed in the >> latest version, but in a compilation of a version >> obtained an hour ago from latest, it is still happening >> when segmenting... > > This is ticket #3741. Yes, I re-opened it: https://trac.ffmpeg.org/ticket/3741#comment:10 -- Was hei?t hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] free movies --->>> http://www.blacktrash.org/underdogma http://itunes.apple.com/podcast/underdogma-movies/id363423596 From oliver at fromme.com Sun Jul 27 17:40:00 2014 From: oliver at fromme.com (Oliver Fromme) Date: Sun, 27 Jul 2014 17:40:00 +0200 (CEST) Subject: [FFmpeg-user] Issue with -analyzeduration and -probesize Message-ID: <201407271540.s6RFe0WO000582@haluter.fromme.com> Hi, I think I've already mentioned this issue some time ago, but it's still bugging me. :-) Every now and then I have MPEG-PS files (e.g. from mplayer's -dumpstream function) that contain subtitle tracks beyond the 2 GB boundary. The problem is that the -probesize option does not accept values beyond 2G. This limit was lifted for the -analyzeduration option a few days ago (thanks!), but it doesn help much because the -probesize option still has the limit. Here is an example. The ffmpeg version is a current snapshot downloaded and built today. Yes, I have cut the output for better readability. $ OPTS="-vn -an -map "#0x21" -scodec dvdsub test-subs.mkv" $ ls -lh *.mpg -rw-r--r-- 1 olli wheel 5.5G Jul 27 17:14 dumpstream.mpg $ ffmpeg -analyzeduration 6000M -probesize 2147M -i dumpstream.mpg $OPTS Input #0, mpeg, from 'dumpstream.mpg': Duration: 01:37:01.70, start: 0.287267, bitrate: 8115 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream map '#0x21' matches no streams. $ ffmpeg -analyzeduration 6000M -probesize 6000M -i dumpstream.mpg $OPTS [NULL @ 0x806885420] Value 6000000000.000000 for parameter 'probesize' out of range [32 - 2.14748e+09] [NULL @ 0x806885420] Error setting option probesize to value 6000M. dumpstream.mpg: Result too large When I cut away the first 2GB from the file, it works: $ tail -c +2146998273 dumpstream.mpg > dumptail.mpg $ ls -lh dumptail.mpg -rw-r--r-- 1 olli wheel 3.5G Jul 27 17:29 dumptail.mpg $ ffmpeg -analyzeduration 6000M -probesize 2147M -i dumptail.mpg $OPTS Input #0, mpeg, from 'dumptail.mpg': Duration: 01:01:11.84, start: 2150.143267, bitrate: 8189 kb/s Stream #0:0[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Output #0, matroska, to 'test-subs.mkv': Metadata: encoder : Lavf55.49.100 Stream #0:0: Subtitle: dvd_subtitle (dvdsub) Metadata: encoder : Lavc55.69.100 dvdsub Stream mapping: Stream #0:4 -> #0:0 (dvd_subtitle (dvdsub) -> dvd_subtitle (dvdsub)) Of course, the time stamps in the output are wrong because the first ~ 30 minutes of the movie were cut off. I could correct the time stamps manually, but that's cumbersome and annoying. Actually I do not understand why there are two separate options -analyzeduration and -probesize if they do basically the same thing. One doesn't work without the other, as it seems. Either one of them should be removed, or the docs should explain better what the difference between them is, and in what cases it makes sens to use one and not the other. Anyway, I would appreciate very much if someone could look into this issue, so that streams that begin beyond the 2 GB boundary can be used with ffmpeg. On a related note (but not as important), the "mediainfo" tool detects all of the subtitle streams immediately, no matter where they begin. ffmpeg and ffprobe take several seconds to scan the first 2 GB of the file. I don't know how mediainfo accomplishes that, though ... As MPEG-PS files do not have a header or index, you basically *have* to scan through the entire file, but still mediainfo manages to detect everything within a fraction of a second. Just wondering ... Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From blacktrash at gmx.net Sun Jul 27 20:23:45 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Sun, 27 Jul 2014 19:23:45 +0100 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: References: <53CD2818.3060004@thelounge.net> Message-ID: <20140727182345.GB733@krille.blacktrash.org> * Carl Eugen Hoyos on Monday, July 21, 2014 at 15:01:08 +0000 > Reindl Harald thelounge.net> writes: >> at least for opus you need to enable the external >> library --enable-libopus is your friend > > FFmpeg contains a native opus decoder, libopus is not > needed. Then the fine new website is not up to speed: https://www.ffmpeg.org/ffmpeg-codecs.html#libopus-1 -- \black\trash movie _SAME TIME SAME PLACE_ --->> http://www.blacktrash.org/underdogma/stsp.php \black\trash audio _ANOTHER TIME ANOTHER PLACE_ --->> http://www.blacktrash.org/underdogma/atap.html From krueger at lesspain.de Sun Jul 27 21:40:50 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sun, 27 Jul 2014 21:40:50 +0200 Subject: [FFmpeg-user] new website Message-ID: congratulations on the new website! Well done. Regards, Robert From cehoyos at ag.or.at Sun Jul 27 22:37:54 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 27 Jul 2014 20:37:54 +0000 (UTC) Subject: [FFmpeg-user] Help with HTTP Streaming FFMPEG References: Message-ID: Farrukh Javed gmail.com> writes: > ffmpeg -i http://localhost:10212/Stream.mpg -y Sample.mpg > > But the Sample.mpg file is far less qualtiy and much > smaller than the 480p.mpg file. *I want the exact same > 480p.mpg file with the same file size, bit rate, ratio, > fps etc.* What's wrong with the following? $ wget http://localhost:10212/Stream.mpg Carl Eugen From lou at lrcd.com Sun Jul 27 23:51:25 2014 From: lou at lrcd.com (Lou) Date: Sun, 27 Jul 2014 13:51:25 -0800 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: <20140727182345.GB733@krille.blacktrash.org> References: <53CD2818.3060004@thelounge.net> <20140727182345.GB733@krille.blacktrash.org> Message-ID: <20140727135125.753029de@lrcd.com> On Sun, 27 Jul 2014 19:23:45 +0100 Christian Ebert wrote: > * Carl Eugen Hoyos on Monday, July 21, 2014 at 15:01:08 +0000 > > > > FFmpeg contains a native opus decoder, libopus is not > > needed. > > Then the fine new website is not up to speed: > https://www.ffmpeg.org/ffmpeg-codecs.html#libopus-1 Fixed. It may take a day for the new docs to generate. From jazzman at misalpina.net Mon Jul 28 09:38:31 2014 From: jazzman at misalpina.net (Claudiu Rad) Date: Mon, 28 Jul 2014 10:38:31 +0300 Subject: [FFmpeg-user] live transcoding alignment Message-ID: <53D5FDF7.8040305@misalpina.net> hello all, using ffmpeg i want to live transcode an input live stream into multiple variants and push all of them (including the original) to the client. everything works all right except for one thing: i want all keyframes to be properly aligned between streams but it seems that over time, they get misaligned which is probably as expected because it would make sense for ffmpeg to treat each output and do its keyframe generation quite independently. however, the first question: 1. how can i enforce keyframe alignment between output transcoded (reencoded) streams in ffmpeg? i don't need P/B or other frame types to be aligned, but I-frames should be exactly on the same frame numbers on all streams to extend this even further: 2. how can i enforce keyframe alignment also with input which i would like to simply -c copy ? this means that reencoded outputs should have the exactly same keyframe placements as the input, thus, internal codec heuristics should be disabled on this matter. i am talking about a h264/x264 input/output. thanks much. -- Claudiu From blacktrash at gmx.net Mon Jul 28 09:57:27 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 28 Jul 2014 08:57:27 +0100 Subject: [FFmpeg-user] only audio ffmpeg In-Reply-To: <20140727135125.753029de@lrcd.com> References: <53CD2818.3060004@thelounge.net> <20140727182345.GB733@krille.blacktrash.org> <20140727135125.753029de@lrcd.com> Message-ID: <20140728075727.GD733@krille.blacktrash.org> * Lou on Sunday, July 27, 2014 at 13:51:25 -0800 > On Sun, 27 Jul 2014 19:23:45 +0100 > Christian Ebert wrote: >> * Carl Eugen Hoyos on Monday, July 21, 2014 at 15:01:08 +0000 >>> >>> FFmpeg contains a native opus decoder, libopus is not >>> needed. >> >> Then the fine new website is not up to speed: >> https://www.ffmpeg.org/ffmpeg-codecs.html#libopus-1 > > Fixed. It may take a day for the new docs to generate. Thanks. -- \black\trash movie _MORALISK ANSTALT_ "Nix verstanden." --->> http://www.blacktrash.org/underdogma/moraliskanstalt.php From blacktrash at gmx.net Mon Jul 28 09:56:25 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 28 Jul 2014 08:56:25 +0100 Subject: [FFmpeg-user] new website In-Reply-To: References: Message-ID: <20140728075625.GC733@krille.blacktrash.org> * Robert Kr?ger on Sunday, July 27, 2014 at 21:40:50 +0200 > congratulations on the new website! Well done. +1 -- \black\trash movie _SAME TIME SAME PLACE_ New York, in the summer of 2001 --->> http://www.blacktrash.org/underdogma/stsp.php From george at nsup.org Mon Jul 28 11:08:57 2014 From: george at nsup.org (Nicolas George) Date: Mon, 28 Jul 2014 11:08:57 +0200 Subject: [FFmpeg-user] live transcoding alignment In-Reply-To: <53D5FDF7.8040305@misalpina.net> References: <53D5FDF7.8040305@misalpina.net> Message-ID: <20140728090856.GA14657@phare.normalesup.org> Le decadi 10 thermidor, an CCXXII, Claudiu Rad a ?crit?: > 1. how can i enforce keyframe alignment between output transcoded > (reencoded) streams in ffmpeg? i don't need P/B or other frame types > to be aligned, but I-frames should be exactly on the same frame > numbers on all streams You could try using the -force_key_frames options, but it is designed for a few keyframes, not all the keyframes of a stream. For a long video, you could hit the kernel command line limit or other issues, and for a continuous stream there is no time limit. Still, have a look. Or you could force using a constant interval between keyframes, but that degrades the quality. Forcing a keyframe on the encoder for the stream #2 based on the decision made by the encoder for the stream #1 should be rather easy to implement. I suggest you open a trac ticket tagged as wish/enhancement. Or maybe you can try your hand implementing it. > 2. how can i enforce keyframe alignment also with input which i > would like to simply -c copy ? this means that reencoded outputs > should have the exactly same keyframe placements as the input, thus, > internal codec heuristics should be disabled on this matter. If the stream is not only copied but also decoded (if only to -f null), it should be as easy to implement as the other option. > i am talking about a h264/x264 input/output. If I remember correctly, with x264, forcing too many keyframes have a big negative impact on the quality, even if the forced keyframes are exactly those the encoder would have chosen anyway. You should probably look carefully at the quality and bitrate of your resulting files. Regards, -- Nicolas George From younes.lalami at gmail.com Sun Jul 27 01:09:56 2014 From: younes.lalami at gmail.com (youneslalami) Date: Sat, 26 Jul 2014 16:09:56 -0700 (PDT) Subject: [FFmpeg-user] How to send a flux video in multicast Message-ID: <1406416196891-4666602.post@n4.nabble.com> I want to stream a video camera with my friends in multicast i see this example for ffserer.conf but how to send i file to my freands i gave them this ip adress 224.124.0.1 or my adsl ip adress please samebody can helpe me i want so send it on mp4 format # #Format rtp #File "/usr/local/httpd/htdocs/test1.mpg" #MulticastAddress 224.124.0.1 #MulticastPort 5000 #MulticastTTL 16 #NoLoop # thanks . -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-send-a-flux-video-in-multicast-tp4666602.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From werner.robitza at gmail.com Tue Jul 29 10:42:09 2014 From: werner.robitza at gmail.com (Werner Robitza) Date: Tue, 29 Jul 2014 10:42:09 +0200 Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 In-Reply-To: <20140723140209.GP71687@krille.blacktrash.org> References: <20140723124603.GO71687@krille.blacktrash.org> <20140723140209.GP71687@krille.blacktrash.org> Message-ID: On Wed, Jul 23, 2014 at 4:02 PM, Christian Ebert wrote: > If it's about avoiding intermediate files, encode to mpegts > directly and pipe it to the segmenter: > > ffmpeg -i input.mp4 -f mpegts -c:a copy -c:v libx264 - | \ > ffmpeg -i - -c copy -map 0 -f segment -segment_time 5 out%05d.ts That wouldn't work for me, for some reason, but I've found out that you simply have to use ssegment instead of segment. The error message you get when not using ssegment is misleading though, because it tells you to use the bitstream filter (even when it's there). From cehoyos at ag.or.at Tue Jul 29 12:01:13 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 29 Jul 2014 10:01:13 +0000 (UTC) Subject: [FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264 References: <20140723124603.GO71687@krille.blacktrash.org> <20140723140209.GP71687@krille.blacktrash.org> Message-ID: Werner Robitza gmail.com> writes: > That wouldn't work for me, for some reason, but I've found out that > you simply have to use ssegment instead of segment. As said, -flags -global_headers works fine. Carl Eugen From zathrasorama at gmail.com Tue Jul 29 12:29:14 2014 From: zathrasorama at gmail.com (david reid) Date: Tue, 29 Jul 2014 11:29:14 +0100 Subject: [FFmpeg-user] HLS for Apple TV? Message-ID: I've been trying to create HLS streams to view on an AppleTV, but while I can get them to play they always stop around the 50 second to 1 minute mark. Different sources, different ways of creating the stream - always the same result. Is there something I'm missing? This is my current conversion command line /usr/local/bin/ffmpeg -y -i test.mp4 -codec:a copy -codec:v libx264 -map 0:0 -map 0:1 -threads 4 -pix_fmt yuv420p -profile:v baseline -level 3.0 -f hls -r 24 -hls_time 10 -hls_list_size 0 -force_key_frames expr:gte(t,n_forced*2) test.m3u8 The streams play perfectly in VLC, but not on the AppleTV. Any suggestions? david From bog at ted.com Tue Jul 29 15:36:36 2014 From: bog at ted.com (Mark Bogdanoff) Date: Tue, 29 Jul 2014 06:36:36 -0700 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: On Jul 29, 2014, at 3:29 AM, david reid wrote: > I've been trying to create HLS streams to view on an AppleTV, but while I > can get them to play they always stop around the 50 second to 1 minute > mark. Different sources, different ways of creating the stream - always the > same result. Is there something I'm missing? Have you run Apple's mediastreamvalidator on your streams? https://developer.apple.com/library/ios/technotes/tn2235/_index.html Mark bog From zathrasorama at gmail.com Tue Jul 29 16:57:03 2014 From: zathrasorama at gmail.com (david reid) Date: Tue, 29 Jul 2014 15:57:03 +0100 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: Mark, I'd like to, but am not presently enrolled in the iOS developer program. $99 seems a lot just to get their validator, but maybe the only way to debug :-( david On Tue, Jul 29, 2014 at 2:36 PM, Mark Bogdanoff wrote: > On Jul 29, 2014, at 3:29 AM, david reid wrote: > > > I've been trying to create HLS streams to view on an AppleTV, but while I > > can get them to play they always stop around the 50 second to 1 minute > > mark. Different sources, different ways of creating the stream - always > the > > same result. Is there something I'm missing? > > Have you run Apple's mediastreamvalidator on your streams? > https://developer.apple.com/library/ios/technotes/tn2235/_index.html > > Mark bog > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From l1 at newanswertech.com Tue Jul 29 18:13:58 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 29 Jul 2014 12:13:58 -0400 (EDT) Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: On Tue, 29 Jul 2014, david reid wrote: > Mark, I'd like to, but am not presently enrolled in the iOS developer > program. > $99 seems a lot just to get their validator, but maybe the only way to > debug :-( Can you send a copy of the generated .m3u8, maybe at the start, and again at the point where the feed dies? How does this HLS behave with non-apple TV devices? (I.E. iPhones or iPods) Are you seeing any warnings or errors in the console output? Have you tried using the other segmenter (-f segment)? Luke From blacktrash at gmx.net Tue Jul 29 18:23:49 2014 From: blacktrash at gmx.net (Christian Ebert) Date: Tue, 29 Jul 2014 17:23:49 +0100 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: <20140729162349.GF733@krille.blacktrash.org> * Mark Bogdanoff on Tuesday, July 29, 2014 at 06:36:36 -0700 > Have you run Apple's mediastreamvalidator on your streams? > https://developer.apple.com/library/ios/technotes/tn2235/_index.html Except that these 'HTTP Live Streaming Tools' are not available anymore. (I'd be happy to be proven wrong) -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From zathrasorama at gmail.com Tue Jul 29 18:25:50 2014 From: zathrasorama at gmail.com (david reid) Date: Tue, 29 Jul 2014 17:25:50 +0100 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 5:13 PM, Luke Davis wrote: > On Tue, 29 Jul 2014, david reid wrote: > > Mark, I'd like to, but am not presently enrolled in the iOS developer >> program. >> $99 seems a lot just to get their validator, but maybe the only way to >> debug :-( >> > > Can you send a copy of the generated .m3u8, maybe at the start, and again > at the point where the feed dies? > > I can make the entire output available, but will take a day or so as I'm travelling now :-( > How does this HLS behave with non-apple TV devices? (I.E. iPhones or iPods) > > Just checking on an iPad now! Not sure why I hadn't thought of trying that sooner. OK, so on an iPad it's working well past the point where it dies on the AppleTV. Are you seeing any warnings or errors in the console output? > > There are a few minor warnings, but nothing that I haven't seen before. > Have you tried using the other segmenter (-f segment)? > > Yes. Same results. > Luke > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From oliver at fromme.com Tue Jul 29 18:45:24 2014 From: oliver at fromme.com (Oliver Fromme) Date: Tue, 29 Jul 2014 18:45:24 +0200 (CEST) Subject: [FFmpeg-user] Problems decoding h.264 video Message-ID: <201407291645.s6TGjOcY010733@haluter.fromme.com> Hi, I have problems decoding h.264 video. This affects _all_ files with h.264 video that I have tried so far, even files that have been created with ffmpeg itself. Therefore I believe this is not a bug, but I am doing something wrong. The question is: What is it that I'm doing wrong? :-) I'm using a git snapshot that's just a few days old. The input file was written with the very same ffmpeg version, it's a short clip for testing purposes (2 seconds, 160 x 120 pixel resolution, no audio, 67 KB). $ ffmpeg -i test.mkv test2.mkv ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Jul 29 2014 14:36:31 with gcc 4.2.1 (GCC) 20070831 patched [FreeBSD] configuration: --enable-x11grab --prefix=/usr/local --mandir=/usr/local/man --incdir=/usr/local/include/ffmpeg1 --libdir=/usr/local/lib/ffmpeg1 --shlibdir=/usr/local/lib/ffmpeg1 --datadir=/usr/local/share/ffmpeg1 --build-suffix=1 --progs-suffix=1 --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --disable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libass --disable-libcdio --disable-libcelt --enable-libfaac --disable-libfdk-aac --enable-fontconfig --enable-libfreetype --disable-frei0r --disable-gnutls --disable-libgsm --enable-libmp3lame --enable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-libopencv --enable-libopen! jpeg --disable-libopus --disable-libpulse --enable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 49.100 / 55. 49.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x80a8a4120] left block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 0x80a8a4120] error while decoding MB 0 0, bytestream 2164 [h264 @ 0x80a8a4120] concealing 80 DC, 80 AC, 80 MV errors in I frame Input #0, matroska,webm, from 'test.mkv': Metadata: ENCODER : Lavf55.49.100 Duration: 00:00:02.17, start: 0.125000, bitrate: 249 kb/s Stream #0:0: Video: h264 (High), yuv420p, 160x120 [SAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: ENCODER : Lavc55.69.100 libx264 [libx264 @ 0x80a8a5a20] using SAR=1/1 [libx264 @ 0x80a8a5a20] using cpu capabilities: MMX2 SSE2Fast LZCNT [libx264 @ 0x80a8a5a20] profile High, level 1.1 [libx264 @ 0x80a8a5a20] 264 - core 136 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 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=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'test2.mkv': Metadata: encoder : Lavf55.49.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 160x120 [SAR 1:1 DAR 4:3], q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc (default) Metadata: encoder : Lavc55.69.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [h264 @ 0x80a8a7820] left block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 0x80a8a7820] error while decoding MB 0 0, bytestream 2164 [h264 @ 0x80a8a7820] concealing 80 DC, 80 AC, 80 MV errors in I frame [h264 @ 0x80a8a8220] Cannot use next picture in error concealment [h264 @ 0x80a8a8220] concealing 34 DC, 34 AC, 34 MV errors in P frame [h264 @ 0x80a8a8c20] Reference 4 >= 2 [h264 @ 0x80a8a8c20] error while decoding MB 9 1, bytestream 1071 [h264 @ 0x80a8a8c20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9120] concealing 61 DC, 61 AC, 61 MV errors in B frame [h264 @ 0x80a8a9620] top block unavailable for requested intra mode at 8 0 [h264 @ 0x80a8a9620] error while decoding MB 8 0, bytestream 1487 [h264 @ 0x80a8a9620] concealing 80 DC, 80 AC, 80 MV errors in P frame [h264 @ 0x80a8a9b20] Reference 3 >= 3 [h264 @ 0x80a8a9b20] error while decoding MB 1 2, bytestream 1067 [h264 @ 0x80a8a9b20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a7820] top block unavailable for requested intra4x4 mode -1 at 3 0 [h264 @ 0x80a8a7820] error while decoding MB 3 0, bytestream 1166 [h264 @ 0x80a8a7820] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8720] top block unavailable for requested intra mode at 1 0 [h264 @ 0x80a8a8720] error while decoding MB 1 0, bytestream 1054 [h264 @ 0x80a8a8720] concealing 80 DC, 80 AC, 80 MV errors in P frame [h264 @ 0x80a8a8c20] left block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 0x80a8a8c20] error while decoding MB 0 0, bytestream 2476 [h264 @ 0x80a8a8c20] concealing 80 DC, 80 AC, 80 MV errors in I frame [h264 @ 0x80a8a9120] Reference 13 >= 9 [h264 @ 0x80a8a9120] error while decoding MB 5 3, bytestream 1885 [h264 @ 0x80a8a9120] concealing 80 DC, 80 AC, 80 MV errors in P frame [h264 @ 0x80a8a9b20] top block unavailable for requested intra4x4 mode -1 at 2 0 [h264 @ 0x80a8a9b20] error while decoding MB 2 0, bytestream 1310 [h264 @ 0x80a8a9b20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a7820] Reference 2 >= 2 [h264 @ 0x80a8a7820] error while decoding MB 2 0, bytestream 1231 [h264 @ 0x80a8a7820] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8220] top block unavailable for requested intra mode at 2 0 [h264 @ 0x80a8a8220] error while decoding MB 2 0, bytestream 1179 [h264 @ 0x80a8a8220] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8720] top block unavailable for requested intra mode at 2 0 [h264 @ 0x80a8a8720] error while decoding MB 2 0, bytestream 1837 [h264 @ 0x80a8a8720] concealing 80 DC, 80 AC, 80 MV errors in P frame [h264 @ 0x80a8a8c20] top block unavailable for requested intra4x4 mode -1 at 2 0 [h264 @ 0x80a8a8c20] error while decoding MB 2 0, bytestream 1375 [h264 @ 0x80a8a8c20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9120] top block unavailable for requested intra mode at 5 0 [h264 @ 0x80a8a9120] error while decoding MB 5 0, bytestream 1189 [h264 @ 0x80a8a9120] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9620] Reference 3 >= 2 [h264 @ 0x80a8a9620] error while decoding MB 8 1, bytestream 1028 [h264 @ 0x80a8a9620] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9b20] Reference 2 >= 2 [h264 @ 0x80a8a9b20] error while decoding MB 4 0, bytestream 1159 [h264 @ 0x80a8a9b20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a7820] concealing 30 DC, 30 AC, 30 MV errors in B frame [h264 @ 0x80a8a9120] left block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 0x80a8a9120] error while decoding MB 0 0, bytestream 1829 [h264 @ 0x80a8a9120] concealing 80 DC, 80 AC, 80 MV errors in I frame [h264 @ 0x80a8a7820] top block unavailable for requested intra4x4 mode -1 at 1 0 [h264 @ 0x80a8a7820] error while decoding MB 1 0, bytestream 1144 [h264 @ 0x80a8a7820] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8220] Reference 3 >= 2 [h264 @ 0x80a8a8220] error while decoding MB 5 0, bytestream 1154 [h264 @ 0x80a8a8220] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8720] Reference 2 >= 2 [h264 @ 0x80a8a8720] error while decoding MB 1 1, bytestream 963 [h264 @ 0x80a8a8720] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8c20] Reference 3 >= 2 [h264 @ 0x80a8a8c20] error while decoding MB 7 1, bytestream 1228 [h264 @ 0x80a8a8c20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9120] Reference 4 >= 4 [h264 @ 0x80a8a9120] error while decoding MB 6 4, bytestream 961 [h264 @ 0x80a8a9120] Cannot use next picture in error concealment [h264 @ 0x80a8a9120] concealing 80 DC, 80 AC, 80 MV errors in P frame [h264 @ 0x80a8a9b20] Reference 4 >= 2 [h264 @ 0x80a8a9b20] error while decoding MB 5 1, bytestream 1201 [h264 @ 0x80a8a9b20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a7820] top block unavailable for requested intra mode at 4 0 [h264 @ 0x80a8a7820] error while decoding MB 4 0, bytestream 1151 [h264 @ 0x80a8a7820] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8220] top block unavailable for requested intra4x4 mode -1 at 1 0 [h264 @ 0x80a8a8220] error while decoding MB 1 0, bytestream 1108 [h264 @ 0x80a8a8220] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9120] top block unavailable for requested intra4x4 mode -1 at 4 0 [h264 @ 0x80a8a9120] error while decoding MB 4 0, bytestream 1053 [h264 @ 0x80a8a9120] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9620] concealing 8 DC, 8 AC, 8 MV errors in B frame [h264 @ 0x80a8a8220] Reference 2 >= 2 [h264 @ 0x80a8a8220] error while decoding MB 5 1, bytestream 844 [h264 @ 0x80a8a8220] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a8720] Reference 10 >= 10 [h264 @ 0x80a8a8720] error while decoding MB 0 1, bytestream 1227 [h264 @ 0x80a8a8720] concealing 80 DC, 80 AC, 80 MV errors in P frame [h264 @ 0x80a8a8c20] top block unavailable for requested intra mode at 2 0 [h264 @ 0x80a8a8c20] error while decoding MB 2 0, bytestream 1449 [h264 @ 0x80a8a8c20] concealing 80 DC, 80 AC, 80 MV errors in B frame [h264 @ 0x80a8a9120] Reference 2 >= 2 [h264 @ 0x80a8a9120] error while decoding MB 1 1, bytestream 1192 [h264 @ 0x80a8a9120] concealing 80 DC, 80 AC, 80 MV errors in B frame frame= 48 fps=0.0 q=-1.0 Lsize= 11kB time=00:00:01.96 bitrate= 47.3kbits/s video:10kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.618292% [libx264 @ 0x80a8a5a20] frame I:2 Avg QP:11.23 size: 326 [libx264 @ 0x80a8a5a20] frame P:28 Avg QP:20.51 size: 245 [libx264 @ 0x80a8a5a20] frame B:18 Avg QP:21.07 size: 133 [libx264 @ 0x80a8a5a20] consecutive B-frames: 37.5% 33.3% 12.5% 16.7% [libx264 @ 0x80a8a5a20] mb I I16..4: 59.4% 32.5% 8.1% [libx264 @ 0x80a8a5a20] mb P I16..4: 2.8% 11.1% 1.9% P16..4: 11.8% 1.7% 1.4% 0.0% 0.0% skip:69.3% [libx264 @ 0x80a8a5a20] mb B I16..4: 0.3% 0.9% 0.1% B16..8: 15.3% 2.3% 0.7% direct: 4.3% skip:76.0% L0:20.5% L1:67.7% BI:11.8% [libx264 @ 0x80a8a5a20] 8x8 transform intra:58.9% inter:61.8% [libx264 @ 0x80a8a5a20] coded y,uvDC,uvAC intra: 35.3% 26.8% 8.3% inter: 5.9% 5.9% 1.3% [libx264 @ 0x80a8a5a20] i16 v,h,dc,p: 59% 12% 26% 2% [libx264 @ 0x80a8a5a20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 28% 43% 2% 1% 1% 1% 1% 3% [libx264 @ 0x80a8a5a20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 19% 27% 4% 2% 2% 2% 3% 3% [libx264 @ 0x80a8a5a20] i8c dc,h,v,p: 76% 13% 11% 1% [libx264 @ 0x80a8a5a20] Weighted P-Frames: Y:25.0% UV:17.9% [libx264 @ 0x80a8a5a20] ref P L0: 67.2% 15.0% 8.9% 8.8% 0.2% [libx264 @ 0x80a8a5a20] ref B L0: 83.3% 16.7% [libx264 @ 0x80a8a5a20] kb/s:38.79 The resulting file is unusable, it contains a grey background with random artifacts and static. I have uploaded the file, but I guess nobody will be able to reproduce the problem. However, it's only 67 KB, so I uploaded it anyway, I named it "h264-decoding-problems.mkv". Is there any way to find out what is wrong? What's the next step that I should try? BTW, I have no problems with other kind of input: MPEG2, MPEG4-ASP ("xvid") and others all work. The problem affects only the native h264 decoder. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From l1 at newanswertech.com Tue Jul 29 19:12:19 2014 From: l1 at newanswertech.com (Luke Davis) Date: Tue, 29 Jul 2014 13:12:19 -0400 (EDT) Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: On Tue, 29 Jul 2014, david reid wrote: > On Tue, Jul 29, 2014 at 5:13 PM, Luke Davis wrote: > >> How does this HLS behave with non-apple TV devices? (I.E. iPhones or iPods) >> > Just checking on an iPad now! Not sure why I hadn't thought of trying that > sooner. > OK, so on an iPad it's working well past the point where it dies on the > AppleTV. What version of the Apple TV is it? For the ATV version 2, -profile:v main -level 3.1 is alleged to work. You might look at this, and try some of the options as appropriate: https://trac.ffmpeg.org/wiki/Encode/H.264#iOS > Are you seeing any warnings or errors in the console output? > > There are a few minor warnings, but nothing that I haven't seen before. But maybe they are more relevant now? Also, what version of ffmpeg? Maybe you mentioned that and I missed it. Luke From zathrasorama at gmail.com Tue Jul 29 20:01:00 2014 From: zathrasorama at gmail.com (david reid) Date: Tue, 29 Jul 2014 19:01:00 +0100 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: On 29 Jul 2014 18:13, "Luke Davis" wrote: > > On Tue, 29 Jul 2014, david reid wrote: > >> On Tue, Jul 29, 2014 at 5:13 PM, Luke Davis wrote: >> >>> How does this HLS behave with non-apple TV devices? (I.E. iPhones or iPods) >>> >> Just checking on an iPad now! Not sure why I hadn't thought of trying that >> sooner. >> OK, so on an iPad it's working well past the point where it dies on the >> AppleTV. > > > What version of the Apple TV is it? > It's a 2. > For the ATV version 2, -profile:v main -level 3.1 is alleged to work. You might look at this, and try some of the options as appropriate: > Several pages suggested baseline and 3.0 but I'll try main & 3.1 > https://trac.ffmpeg.org/wiki/Encode/H.264#iOS > I've tried a few settings, but given it's working everywhere else tinkering seems more appropriate now :-) > >> Are you seeing any warnings or errors in the console output? >> >> There are a few minor warnings, but nothing that I haven't seen before. > > > But maybe they are more relevant now? > They could be. Will capture them next time I run it and post them. > Also, what version of ffmpeg? Maybe you mentioned that and I missed it. > > I didn't. It's a bit clone from 48 hours ago. Thanks for the replies. Will be a couple of days before I'm home and able to do much more, so will reply then. > Luke > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From oliver at fromme.com Tue Jul 29 20:14:37 2014 From: oliver at fromme.com (Oliver Fromme) Date: Tue, 29 Jul 2014 20:14:37 +0200 (CEST) Subject: [FFmpeg-user] Problems decoding h.264 video In-Reply-To: <201407291645.s6TGjOcY010733@haluter.fromme.com> Message-ID: <201407291814.s6TIEbMh011078@haluter.fromme.com> One step forward ... I just tried rebuilding ffmpeg with --disable-asm, and now it works. Further experimentation shows that it also works when I only use --disable-inline-asm. But --disable-yasm has no effect. So, something seems to be wrong with inline asm support on my platform. This is a 64bit FreeBSD 9.1 machine (amd64), not shiny new, but not terribly old either. The compiler is gcc 4.2.1 from the FreeBSD 9.1 default installation. Could this be the problem? Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From oliver at fromme.com Tue Jul 29 20:28:05 2014 From: oliver at fromme.com (Oliver Fromme) Date: Tue, 29 Jul 2014 20:28:05 +0200 (CEST) Subject: [FFmpeg-user] Problems decoding h.264 video In-Reply-To: <201407291814.s6TIEbMh011078@haluter.fromme.com> Message-ID: <201407291828.s6TIS5HS011130@haluter.fromme.com> Oliver Fromme wrote: > One step forward ... > > I just tried rebuilding ffmpeg with --disable-asm, and now it > works. Further experimentation shows that it also works when > I only use --disable-inline-asm. But --disable-yasm has no > effect. > > So, something seems to be wrong with inline asm support on my > platform. This is a 64bit FreeBSD 9.1 machine (amd64), not > shiny new, but not terribly old either. The compiler is gcc > 4.2.1 from the FreeBSD 9.1 default installation. Could this > be the problem? Again, one more piece of information ... I found out that the "official" FreeBSD port of ffmpeg works. However, that's not the current git version ... I'd like to work with the current git version. So I tried to look at the FreeBSD port in order to find out what it does differently, but without any luck so far. :-( I'm basically using the same configure options. Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From egekhter at pixcel.com Tue Jul 29 21:54:40 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Tue, 29 Jul 2014 14:54:40 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG Message-ID: I have a 50fps progressive scan file that I need to playback at 18fps - no dropped frames. AVIsynth has a function assumefps(18) which when used in conjunction with a video file and opened in FFMPEG, looks like: ffprobe version N-56648-g65bf9a4 Copyright (c) 2007-2013 the FFmpeg developers built on Sep 25 2013 03:39:09 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 46.100 / 52. 46.100 libavcodec 55. 33.100 / 55. 33.100 libavformat 55. 18.102 / 55. 18.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 87.100 / 3. 87.100 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Input #0, avisynth, from 'E:\VirtualDub-1.9.11\16653_McCartney-S8mm_C-01.avs': Duration: 00:11:21.72, start: 0.000000, bitrate: 0 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, *18 fps, 18 tbr, 18 tbn, 18 tbc* Stream #0:1: Audio: pcm_f32le, 48000 Hz, 2 channels, flt, 3072 kb/s I try and accomplish the same result of 18 fps, 18 tbr, 18 tbn, and 18 tbc directly in ffmpeg with: -r 18 -i "" -y -vcodec copy -acodec copy ".mov" but the output is Stream #0:0(eng): Video: v210 (v210 / 0x30313276), yuv422p1 1, 995328 kb/s, 50 fps, 18432 tbn, 18 tbc (default) Any tricks on how to accomplish the uniform 18 timebase? Thanks, *Eugene Gekhter* / CEO (847) 272-8207/ egekhter at pixcel.com *Pixcel* Office: (800) 557-3508 3336 Commercial Ave. / Northbrook, IL 60062 http://www.pixcel.com From reuben.m at gmail.com Tue Jul 29 22:14:58 2014 From: reuben.m at gmail.com (Reuben Martin) Date: Tue, 29 Jul 2014 15:14:58 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: References: Message-ID: <1519488.DL2k15eF0q@subterfuge> On Tuesday, July 29, 2014 02:54:40 PM Eugene Gekhter wrote: > I have a 50fps progressive scan file that I need to playback at 18fps - no > dropped frames. > I try and accomplish the same result of 18 fps, 18 tbr, 18 tbn, and 18 tbc > directly in ffmpeg with: > -r 18 -i "" -y -vcodec copy -acodec copy > ".mov" > > but the output is Stream #0:0(eng): Video: v210 (v210 / 0x30313276), > yuv422p1 > 1, 995328 kb/s, 50 fps, 18432 tbn, 18 tbc (default) > You can't use stream-copy. The timestamps for the video frames have to be re- written and codec metadata has to be changed in order for this to work correctly. Stream-copy will not accomplish that. Also ditch the audio or it will get quite messy. ffmpeg -r 18 -i -r 18 -c:v v210 -an -f mov From egekhter at pixcel.com Tue Jul 29 22:43:57 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Tue, 29 Jul 2014 15:43:57 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: <1519488.DL2k15eF0q@subterfuge> References: <1519488.DL2k15eF0q@subterfuge> Message-ID: Thanks for the tip. If there is audio in the file as well (super-8 sound), what is the recommendation for keeping that in sync with the frame rate change of the video? *Eugene Gekhter* / CEO (847) 272-8207/ egekhter at pixcel.com *Pixcel* Office: (800) 557-3508 3336 Commercial Ave. / Northbrook, IL 60062 http://www.pixcel.com > From jeremy.r.turner at me.com Wed Jul 30 00:09:47 2014 From: jeremy.r.turner at me.com (Jeremy Turner) Date: Tue, 29 Jul 2014 23:09:47 +0100 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: How are you playing the streams in the Apple TV? Regards, Jeremy > On 29 Jul 2014, at 19:01, david reid wrote: > >> On 29 Jul 2014 18:13, "Luke Davis" wrote: >> >>> On Tue, 29 Jul 2014, david reid wrote: >>> >>>> On Tue, Jul 29, 2014 at 5:13 PM, Luke Davis wrote: >>>> >>>> How does this HLS behave with non-apple TV devices? (I.E. iPhones or > iPods) >>> Just checking on an iPad now! Not sure why I hadn't thought of trying > that >>> sooner. >>> OK, so on an iPad it's working well past the point where it dies on the >>> AppleTV. >> >> >> What version of the Apple TV is it? > > It's a 2. > >> For the ATV version 2, -profile:v main -level 3.1 is alleged to work. > You might look at this, and try some of the options as appropriate: > > Several pages suggested baseline and 3.0 but I'll try main & 3.1 > >> https://trac.ffmpeg.org/wiki/Encode/H.264#iOS > > I've tried a few settings, but given it's working everywhere else tinkering > seems more appropriate now :-) > >> >>> Are you seeing any warnings or errors in the console output? >>> >>> There are a few minor warnings, but nothing that I haven't seen before. >> >> >> But maybe they are more relevant now? > > They could be. Will capture them next time I run it and post them. > >> Also, what version of ffmpeg? Maybe you mentioned that and I missed it. > > I didn't. It's a bit clone from 48 hours ago. > > Thanks for the replies. Will be a couple of days before I'm home and able > to do much more, so will reply then. > >> Luke >> _______________________________________________ >> 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 zathrasorama at gmail.com Wed Jul 30 00:27:25 2014 From: zathrasorama at gmail.com (david reid) Date: Tue, 29 Jul 2014 23:27:25 +0100 Subject: [FFmpeg-user] HLS for Apple TV? In-Reply-To: References: Message-ID: Jeremy, I've been POST'ing the URL via the web interface as it's from a Linux box. david On Tue, Jul 29, 2014 at 11:09 PM, Jeremy Turner wrote: > How are you playing the streams in the Apple TV? > > Regards, > Jeremy > > > > On 29 Jul 2014, at 19:01, david reid wrote: > > > >> On 29 Jul 2014 18:13, "Luke Davis" wrote: > >> > >>> On Tue, 29 Jul 2014, david reid wrote: > >>> > >>>> On Tue, Jul 29, 2014 at 5:13 PM, Luke Davis > wrote: > >>>> > >>>> How does this HLS behave with non-apple TV devices? (I.E. iPhones or > > iPods) > >>> Just checking on an iPad now! Not sure why I hadn't thought of trying > > that > >>> sooner. > >>> OK, so on an iPad it's working well past the point where it dies on the > >>> AppleTV. > >> > >> > >> What version of the Apple TV is it? > > > > It's a 2. > > > >> For the ATV version 2, -profile:v main -level 3.1 is alleged to work. > > You might look at this, and try some of the options as appropriate: > > > > Several pages suggested baseline and 3.0 but I'll try main & 3.1 > > > >> https://trac.ffmpeg.org/wiki/Encode/H.264#iOS > > > > I've tried a few settings, but given it's working everywhere else > tinkering > > seems more appropriate now :-) > > > >> > >>> Are you seeing any warnings or errors in the console output? > >>> > >>> There are a few minor warnings, but nothing that I haven't seen before. > >> > >> > >> But maybe they are more relevant now? > > > > They could be. Will capture them next time I run it and post them. > > > >> Also, what version of ffmpeg? Maybe you mentioned that and I missed it. > > > > I didn't. It's a bit clone from 48 hours ago. > > > > Thanks for the replies. Will be a couple of days before I'm home and able > > to do much more, so will reply then. > > > >> Luke > >> _______________________________________________ > >> 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 reuben.m at gmail.com Wed Jul 30 02:08:14 2014 From: reuben.m at gmail.com (Reuben Martin) Date: Tue, 29 Jul 2014 19:08:14 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: References: <1519488.DL2k15eF0q@subterfuge> Message-ID: <13801160.ce6jp23l18@subterfuge> On Tuesday, July 29, 2014 03:43:57 PM Eugene Gekhter wrote: > Thanks for the tip. If there is audio in the file as well (super-8 sound), > what is the recommendation for keeping that in sync with the frame rate > change of the video? I've never tried stretching audio with ffmpeg. I'm not really certain it's tooled to deal with that type of extreme re-sampling. You might try splitting the audio off to a separate file, slow it down with something like rubberband (http://breakfastquay.com/), and then mux it back in with the video. Also 18 fps is quite slow. If you are expecting something smooth from slowing it down, you're not going to get that. For that you need to use something like slowmovideo. (http://slowmovideo.granjow.net/) -Reuben From egekhter at pixcel.com Wed Jul 30 02:35:54 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Tue, 29 Jul 2014 19:35:54 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: <13801160.ce6jp23l18@subterfuge> References: <1519488.DL2k15eF0q@subterfuge> <13801160.ce6jp23l18@subterfuge> Message-ID: Thanks for responding. The use case is super 8mm film, which has a native frame-rate of 18 fps (typically). The high speed scanner scans 50 unique frames per second, but ultimately the frames need to playback at 18 fps. Audio exists 30% of the time. Everything would ideally happen in one pass, as that's what I'm used to with avisynth, albeit it has some limitations (8-bit). *Eugene Gekhter* / CEO (847) 272-8207/ egekhter at pixcel.com *Pixcel* Office: (800) 557-3508 3336 Commercial Ave. / Northbrook, IL 60062 http://www.pixcel.com From reuben.m at gmail.com Wed Jul 30 03:22:44 2014 From: reuben.m at gmail.com (Reuben Martin) Date: Tue, 29 Jul 2014 20:22:44 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: References: <13801160.ce6jp23l18@subterfuge> Message-ID: <3822341.RJuGaKQIsV@subterfuge> On Tuesday, July 29, 2014 07:35:54 PM Eugene Gekhter wrote: > Thanks for responding. > The use case is super 8mm film, which has a native frame-rate of 18 fps > (typically). The high speed scanner scans 50 unique frames per second, but > ultimately the frames need to playback at 18 fps. Audio exists 30% of the > time. Oh, I see. Well that's quite different. Does the audio even need to be slowed down then, or is it sampled at a faster rate also? If not, you might be able to use copy-stream on the audio. The slowmovideo software could also smoothly interpolate the video into a more standard frame-rate if you needed that. -Reuben From tevans.uk at googlemail.com Wed Jul 30 10:40:59 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 30 Jul 2014 09:40:59 +0100 Subject: [FFmpeg-user] Problems decoding h.264 video In-Reply-To: <201407291828.s6TIS5HS011130@haluter.fromme.com> References: <201407291814.s6TIEbMh011078@haluter.fromme.com> <201407291828.s6TIS5HS011130@haluter.fromme.com> Message-ID: On Tue, Jul 29, 2014 at 7:28 PM, Oliver Fromme wrote: > Oliver Fromme wrote: > > One step forward ... > > > > I just tried rebuilding ffmpeg with --disable-asm, and now it > > works. Further experimentation shows that it also works when > > I only use --disable-inline-asm. But --disable-yasm has no > > effect. > > > > So, something seems to be wrong with inline asm support on my > > platform. This is a 64bit FreeBSD 9.1 machine (amd64), not > > shiny new, but not terribly old either. The compiler is gcc > > 4.2.1 from the FreeBSD 9.1 default installation. Could this > > be the problem? > > Again, one more piece of information ... > > I found out that the "official" FreeBSD port of ffmpeg works. > However, that's not the current git version ... I'd like to > work with the current git version. > > So I tried to look at the FreeBSD port in order to find out > what it does differently, but without any luck so far. :-( > I'm basically using the same configure options. > Use either clang or gcc 4.6+ from ports and your errors will disappear. Cheers Tom From egekhter at pixcel.com Wed Jul 30 14:02:49 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Wed, 30 Jul 2014 07:02:49 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: <3822341.RJuGaKQIsV@subterfuge> References: <13801160.ce6jp23l18@subterfuge> <3822341.RJuGaKQIsV@subterfuge> Message-ID: In my avisynth workflow, I stretch the audio to 36% of its original rate to get it to play at the right speed and with perfect sync with the video, something like video.*assumefps(*18*)*.*TimeStretch(*rate=36*).* *Eugene Gekhter* / CEO (847) 272-8207/ egekhter at pixcel.com *Pixcel* Office: (800) 557-3508 3336 Commercial Ave. / Northbrook, IL 60062 http://www.pixcel.com On Tue, Jul 29, 2014 at 8:22 PM, Reuben Martin wrote: > On Tuesday, July 29, 2014 07:35:54 PM Eugene Gekhter wrote: > > Thanks for responding. > > The use case is super 8mm film, which has a native frame-rate of 18 fps > > (typically). The high speed scanner scans 50 unique frames per second, > but > > ultimately the frames need to playback at 18 fps. Audio exists 30% of the > > time. > > Oh, I see. Well that's quite different. Does the audio even need to be > slowed > down then, or is it sampled at a faster rate also? If not, you might be > able > to use copy-stream on the audio. > > The slowmovideo software could also smoothly interpolate the video into a > more > standard frame-rate if you needed that. > > -Reuben > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From reuben.m at gmail.com Wed Jul 30 15:13:23 2014 From: reuben.m at gmail.com (Reuben Martin) Date: Wed, 30 Jul 2014 08:13:23 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: References: <3822341.RJuGaKQIsV@subterfuge> Message-ID: <6171308.s9BGazmybi@subterfuge> On Wednesday, July 30, 2014 07:02:49 AM Eugene Gekhter wrote: > In my avisynth workflow, I stretch the audio to 36% of its original rate to > get it to play at the right speed and with perfect sync with the video, > something like video.*assumefps(*18*)*.*TimeStretch(*rate=36*).* In ffmpeg you would normally use a filter called "atempo". However, this much stretching is beyond the range on what it can handle. (it's range is 0.5 - 2.0) If you want to use an ffmpeg workflow, your best bet is to split the audio off into a separate file and process it with rubberband, and then splice it back in with the stretched video. -Reuben From ffmpeg-user at c-14.de Wed Jul 30 15:18:32 2014 From: ffmpeg-user at c-14.de (Simon Thelen) Date: Wed, 30 Jul 2014 15:18:32 +0200 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: <6171308.s9BGazmybi@subterfuge> References: <3822341.RJuGaKQIsV@subterfuge> <6171308.s9BGazmybi@subterfuge> Message-ID: <20140730131832.GA4087@anonymous> On 30/07/14 at 08:13, Reuben Martin wrote: > On Wednesday, July 30, 2014 07:02:49 AM Eugene Gekhter wrote: > > In my avisynth workflow, I stretch the audio to 36% of its original rate to > > get it to play at the right speed and with perfect sync with the video, > > something like video.*assumefps(*18*)*.*TimeStretch(*rate=36*).* > In ffmpeg you would normally use a filter called "atempo". However, this much > stretching is beyond the range on what it can handle. (it's range is 0.5 - > 2.0) You can always use 2 atempo filters, one at 0.5 and another at 0.72, that should slow it down to 36% of the original rate. (assuming my math is correct) -- Simon Thelen A rolling stone gathers momentum. From egekhter at pixcel.com Wed Jul 30 15:19:43 2014 From: egekhter at pixcel.com (Eugene Gekhter) Date: Wed, 30 Jul 2014 08:19:43 -0500 Subject: [FFmpeg-user] Assumefps() equivalent in FFMPEG In-Reply-To: <20140730131832.GA4087@anonymous> References: <3822341.RJuGaKQIsV@subterfuge> <6171308.s9BGazmybi@subterfuge> <20140730131832.GA4087@anonymous> Message-ID: Thanks Reuben and Simon, I will give it a shot. Best regards, *Eugene Gekhter* / CEO (847) 272-8207/ egekhter at pixcel.com *Pixcel* Office: (800) 557-3508 3336 Commercial Ave. / Northbrook, IL 60062 http://www.pixcel.com On Wed, Jul 30, 2014 at 8:18 AM, Simon Thelen wrote: > On 30/07/14 at 08:13, Reuben Martin wrote: > > On Wednesday, July 30, 2014 07:02:49 AM Eugene Gekhter wrote: > > > In my avisynth workflow, I stretch the audio to 36% of its original > rate to > > > get it to play at the right speed and with perfect sync with the video, > > > something like video.*assumefps(*18*)*.*TimeStretch(*rate=36*).* > > In ffmpeg you would normally use a filter called "atempo". However, > this much > > stretching is beyond the range on what it can handle. (it's range is 0.5 > - > > 2.0) > You can always use 2 atempo filters, one at 0.5 and another at 0.72, > that should slow it down to 36% of the original rate. > (assuming my math is correct) > > -- > Simon Thelen > A rolling stone gathers momentum. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From acloutier at c-spanarchives.org Wed Jul 30 16:17:40 2014 From: acloutier at c-spanarchives.org (ac83) Date: Wed, 30 Jul 2014 07:17:40 -0700 (PDT) Subject: [FFmpeg-user] Issues with video and audio streams not starting at beginning of file when using filter_complex. Message-ID: <1406729860560-4666642.post@n4.nabble.com> Hello, We're testing out some transcoding using filter_complex, but can't seem to produce video that both starts on an I-frame and starts at the same time as the audio. In the past we've just done -ss x -i ... -t y and things have worked, but with filter_complex we're consistently seeing the audio start before the video which causes our video streaming server to play them out of sync. I've tried a large variation of commands.. using trim and atrim w/ and w/out setpts etc.. ffmpeg -y -ss 21 -i /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp \ -loop 1 -i /proj/common/resources/bug-green2.png \ -filter_complex '[0:v]yadif[deinterlaced], [0:a]volume=15.9dB[audio], [deinterlaced][1:v]overlay=main_w-521:main_h-243[out], [out]split=5[outA][outB][outC][outE][outF], [outA]scale=176:144[A], [outB]scale=480:360[B], [outC]scale=1024:576[C], [outE]scale=1280:720[E], [outF]scale=1920:1080[F], [C]split=2 [AA][AB], [audio]asplit=6[audioA][audioB][audioC][audioD][audioE][audioF]'\ -map [A] -map [audioA] -preset veryfast -profile:v baseline -level 3.0 -r 12.00 -qmin 4 -crf 32 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 1 -b:a 24k -maxrate 56k -bufsize 168k -g 36 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-D10.mp4 \ -map [B] -map [audioB] -preset veryfast -profile:v baseline -level 3.0 -r 29.97 -qmin 4 -crf 18 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 500k -bufsize 1500k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-D20.mp4 \ -map [AB] -map [audioC] -preset veryfast -profile:v main -level 3.1 -r 29.97 -qmin 4 -crf 28 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 500k -bufsize 1500k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4 \ -map [AA] -map [audioD] -preset veryfast -profile:v main -level 3.1 -r 29.97 -qmin 4 -crf 18 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 4666k -bufsize 13998k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M20.mp4 \ -map [E] -map [audioE] -preset veryfast -profile:v main -level 3.1 -r 29.97 -qmin 4 -crf 22 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 4334k -bufsize 13002k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-X10.mp4 \ -map [F] -map [audioF] -preset veryfast -profile:v high -level 4.0 -r 29.97 -qmin 4 -crf 24 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 6186k -bufsize 18558k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-X20.mp4 ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 16 2014 10:02:25 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/ffmpeg/2.2.4 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-pic --disable-debug --disable-encoder=nellymoser --enable-postproc --enable-swscale --enable-libmp3lame --enable-pthreads --enable-libfaac --enable-libx264 libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libswscale 2. 5.102 / 2. 5.102 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x2bb3a60] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2bb3a60] decode_slice_header error [h264 @ 0x2bb3a60] no frame! [h264 @ 0x2bb3a60] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2bb3a60] decode_slice_header error [h264 @ 0x2bb3a60] no frame! [h264 @ 0x2bb3a60] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2bb3a60] decode_slice_header error [h264 @ 0x2bb3a60] no frame! [h264 @ 0x2bb3a60] mmco: unref short failure Last message repeated 1 times [mpegts @ 0x2baf920] PES packet size mismatch Input #0, mpegts, from '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp': Duration: 00:05:09.61, start: 78099.700589, bitrate: 9395 kb/s Program 4 Stream #0:0[0x133]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x134](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s (clean effects) Input #1, image2, from '/proj/common/resources/bug-green2.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: png, rgba, 425x75 [SAR 2835:2835 DAR 17:3], 25 fps, 25 tbr, 25 tbn, 25 tbc [libx264 @ 0x2c5db60] using SAR=16/11 [libx264 @ 0x2c5db60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0x2c5db60] profile Constrained Baseline, level 3.0 [libx264 @ 0x2c5db60] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex 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=72 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=36 keyint_min=3 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=32.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=56 vbv_bufsize=168 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0x2c61b60] using SAR=4/3 [libx264 @ 0x2c61b60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0x2c61b60] profile Constrained Baseline, level 3.0 [libx264 @ 0x2c61b60] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex 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=72 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1500 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0x2c2c4a0] using SAR=1/1 [libx264 @ 0x2c2c4a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0x2c2c4a0] profile Main, level 3.1 [libx264 @ 0x2c2c4a0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex 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=72 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=28.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1500 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0x2c39520] using SAR=1/1 [libx264 @ 0x2c39520] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0x2c39520] profile Main, level 3.1 [libx264 @ 0x2c39520] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex 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=72 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=4666 vbv_bufsize=13998 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0x2c468c0] using SAR=1/1 [libx264 @ 0x2c468c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0x2c468c0] profile Main, level 3.1 [libx264 @ 0x2c468c0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex 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=72 lookahead_threads=5 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=1 keyint=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=4334 vbv_bufsize=13002 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0x2eaffc0] using SAR=1/1 [libx264 @ 0x2eaffc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0x2eaffc0] profile High, level 4.0 [libx264 @ 0x2eaffc0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=72 lookahead_threads=8 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=1 keyint=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=24.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=6186 vbv_bufsize=18558 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-D10.mp4': Metadata: encoder : Lavf55.33.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 176x144 [SAR 16:11 DAR 16:9], q=4--1, max. 56 kb/s, 12288 tbn, 12 tbc (default) Stream #0:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 24 kb/s (default) Output #1, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-D20.mp4': Metadata: encoder : Lavf55.33.100 Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x360 [SAR 4:3 DAR 16:9], q=4--1, max. 500 kb/s, 11988 tbn, 29.97 tbc (default) Stream #1:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default) Output #2, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4': Metadata: encoder : Lavf55.33.100 Stream #2:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=4--1, max. 500 kb/s, 11988 tbn, 29.97 tbc (default) Stream #2:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default) Output #3, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M20.mp4': Metadata: encoder : Lavf55.33.100 Stream #3:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=4--1, max. 4666 kb/s, 11988 tbn, 29.97 tbc (default) Stream #3:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default) Output #4, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-X10.mp4': Metadata: encoder : Lavf55.33.100 Stream #4:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=4--1, max. 4334 kb/s, 11988 tbn, 29.97 tbc (default) Stream #4:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default) Output #5, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-X20.mp4': Metadata: encoder : Lavf55.33.100 Stream #5:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=4--1, max. 6186 kb/s, 11988 tbn, 29.97 tbc (default) Stream #5:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default) Stream mapping: Stream #0:0 (h264) -> yadif Stream #0:1 (aac) -> volume Stream #1:0 (png) -> overlay:overlay scale -> Stream #0:0 (libx264) asplit:output0 -> Stream #0:1 (libfaac) scale -> Stream #1:0 (libx264) asplit:output1 -> Stream #1:1 (libfaac) split:output1 -> Stream #2:0 (libx264) asplit:output2 -> Stream #2:1 (libfaac) split:output0 -> Stream #3:0 (libx264) asplit:output3 -> Stream #3:1 (libfaac) scale -> Stream #4:0 (libx264) asplit:output4 -> Stream #4:1 (libfaac) scale -> Stream #5:0 (libx264) asplit:output5 -> Stream #5:1 (libfaac) Press [q] to stop, [?] for help [h264 @ 0x360f42a0] mmco: unref short failure [h264 @ 0x365b05a0] mmco: unref short failure [mp4 @ 0x2c5d260] Starting second pass: moving the moov atom to the beginning of the file29.90 bitrate= 35.8kbits/s dup=69 drop=526 [mp4 @ 0x2c611a0] Starting second pass: moving the moov atom to the beginning of the file [mp4 @ 0x2c2bac0] Starting second pass: moving the moov atom to the beginning of the file [mp4 @ 0x2c38b40] Starting second pass: moving the moov atom to the beginning of the file [mp4 @ 0x2c45fa0] Starting second pass: moving the moov atom to the beginning of the file [mp4 @ 0x2eaf6a0] Starting second pass: moving the moov atom to the beginning of the file frame= 360 fps=2.6 q=-1.0 Lq=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0 size= 190kB time=00:00:30.03 bitrate= 51.8kbits/s dup=69 drop=526 video:18944kB audio:1950kB subtitle:0 data:0 global headers:0kB muxing overhead -99.092041% [libx264 @ 0x2c5db60] frame I:10 Avg QP:30.04 size: 3234 [libx264 @ 0x2c5db60] frame P:350 Avg QP:33.77 size: 104 [libx264 @ 0x2c5db60] mb I I16..4: 5.8% 0.0% 94.2% [libx264 @ 0x2c5db60] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 10.0% 5.6% 2.4% 0.0% 0.0% skip:82.0% [libx264 @ 0x2c5db60] coded y,uvDC,uvAC intra: 93.7% 88.2% 66.9% inter: 4.3% 1.3% 0.0% [libx264 @ 0x2c5db60] i16 v,h,dc,p: 5% 48% 44% 3% [libx264 @ 0x2c5db60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 27% 8% 6% 7% 8% 7% 8% 7% [libx264 @ 0x2c5db60] i8c dc,h,v,p: 48% 23% 23% 6% [libx264 @ 0x2c5db60] kb/s:18.34 [libx264 @ 0x2c61b60] frame I:10 Avg QP:21.36 size: 26241 [libx264 @ 0x2c61b60] frame P:890 Avg QP:24.13 size: 1788 [libx264 @ 0x2c61b60] mb I I16..4: 7.6% 0.0% 92.4% [libx264 @ 0x2c61b60] mb P I16..4: 0.1% 0.0% 0.0% P16..4: 27.3% 6.6% 3.0% 0.0% 0.0% skip:62.9% [libx264 @ 0x2c61b60] coded y,uvDC,uvAC intra: 87.8% 85.6% 71.0% inter: 12.1% 4.3% 0.4% [libx264 @ 0x2c61b60] i16 v,h,dc,p: 20% 45% 27% 8% [libx264 @ 0x2c61b60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 26% 7% 6% 7% 7% 7% 8% 7% [libx264 @ 0x2c61b60] i8c dc,h,v,p: 40% 31% 20% 9% [libx264 @ 0x2c61b60] kb/s:493.73 [libx264 @ 0x2c2c4a0] frame I:10 Avg QP:27.29 size: 31980 [libx264 @ 0x2c2c4a0] frame P:233 Avg QP:32.89 size: 2103 [libx264 @ 0x2c2c4a0] frame B:657 Avg QP:38.02 size: 259 [libx264 @ 0x2c2c4a0] consecutive B-frames: 2.1% 0.2% 4.3% 93.3% [libx264 @ 0x2c2c4a0] mb I I16..4: 33.1% 0.0% 66.9% [libx264 @ 0x2c2c4a0] mb P I16..4: 0.8% 0.0% 0.2% P16..4: 11.7% 5.6% 2.5% 0.0% 0.0% skip:79.3% [libx264 @ 0x2c2c4a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.4% 0.9% 0.0% direct: 0.2% skip:96.4% L0:33.1% L1:45.8% BI:21.1% [libx264 @ 0x2c2c4a0] coded y,uvDC,uvAC intra: 58.7% 58.5% 24.3% inter: 1.1% 0.3% 0.0% [libx264 @ 0x2c2c4a0] i16 v,h,dc,p: 21% 45% 18% 15% [libx264 @ 0x2c2c4a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 28% 12% 7% 7% 6% 7% 6% 6% [libx264 @ 0x2c2c4a0] i8c dc,h,v,p: 48% 30% 15% 7% [libx264 @ 0x2c2c4a0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2c2c4a0] kb/s:261.04 [libx264 @ 0x2c39520] frame I:10 Avg QP:16.59 size: 84712 [libx264 @ 0x2c39520] frame P:233 Avg QP:20.00 size: 12321 [libx264 @ 0x2c39520] frame B:657 Avg QP:23.49 size: 2512 [libx264 @ 0x2c39520] consecutive B-frames: 2.1% 0.2% 4.3% 93.3% [libx264 @ 0x2c39520] mb I I16..4: 8.0% 0.0% 92.0% [libx264 @ 0x2c39520] mb P I16..4: 1.1% 0.0% 0.3% P16..4: 38.7% 16.6% 10.7% 0.0% 0.0% skip:32.6% [libx264 @ 0x2c39520] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 11.2% 4.1% 0.7% direct: 5.8% skip:78.1% L0:31.1% L1:41.5% BI:27.4% [libx264 @ 0x2c39520] coded y,uvDC,uvAC intra: 81.6% 83.9% 66.3% inter: 8.8% 6.0% 0.2% [libx264 @ 0x2c39520] i16 v,h,dc,p: 24% 37% 29% 11% [libx264 @ 0x2c39520] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 29% 8% 7% 8% 7% 9% 7% 8% [libx264 @ 0x2c39520] i8c dc,h,v,p: 37% 36% 17% 9% [libx264 @ 0x2c39520] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2c39520] kb/s:1430.09 [libx264 @ 0x2c468c0] frame I:10 Avg QP:20.37 size: 79270 [libx264 @ 0x2c468c0] frame P:233 Avg QP:24.04 size: 8892 [libx264 @ 0x2c468c0] frame B:657 Avg QP:28.82 size: 1515 [libx264 @ 0x2c468c0] consecutive B-frames: 2.1% 0.2% 4.3% 93.3% [libx264 @ 0x2c468c0] mb I I16..4: 22.4% 0.0% 77.6% [libx264 @ 0x2c468c0] mb P I16..4: 1.3% 0.0% 0.3% P16..4: 24.1% 11.8% 5.4% 0.0% 0.0% skip:57.1% [libx264 @ 0x2c468c0] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 6.3% 2.3% 0.3% direct: 1.7% skip:89.4% L0:31.8% L1:41.1% BI:27.2% [libx264 @ 0x2c468c0] coded y,uvDC,uvAC intra: 69.0% 71.3% 42.5% inter: 3.7% 1.8% 0.0% [libx264 @ 0x2c468c0] i16 v,h,dc,p: 26% 41% 21% 13% [libx264 @ 0x2c468c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 28% 9% 7% 8% 7% 8% 7% 7% [libx264 @ 0x2c468c0] i8c dc,h,v,p: 40% 33% 18% 9% [libx264 @ 0x2c468c0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2c468c0] kb/s:1028.25 [libx264 @ 0x2eaffc0] frame I:10 Avg QP:22.28 size:115736 [libx264 @ 0x2eaffc0] frame P:233 Avg QP:25.95 size: 16514 [libx264 @ 0x2eaffc0] frame B:657 Avg QP:30.49 size: 3438 [libx264 @ 0x2eaffc0] consecutive B-frames: 1.9% 0.4% 5.7% 92.0% [libx264 @ 0x2eaffc0] mb I I16..4: 13.0% 60.9% 26.1% [libx264 @ 0x2eaffc0] mb P I16..4: 1.4% 1.5% 0.2% P16..4: 20.0% 8.7% 3.5% 0.0% 0.0% skip:64.8% [libx264 @ 0x2eaffc0] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 5.9% 1.7% 0.1% direct: 1.8% skip:90.3% L0:34.4% L1:43.7% BI:21.9% [libx264 @ 0x2eaffc0] 8x8 transform intra:54.7% inter:36.1% [libx264 @ 0x2eaffc0] coded y,uvDC,uvAC intra: 58.8% 57.1% 20.9% inter: 3.0% 1.6% 0.0% [libx264 @ 0x2eaffc0] i16 v,h,dc,p: 33% 32% 22% 14% [libx264 @ 0x2eaffc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 29% 20% 4% 5% 6% 6% 6% 7% [libx264 @ 0x2eaffc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 8% 8% 8% 9% 8% 8% 7% [libx264 @ 0x2eaffc0] i8c dc,h,v,p: 47% 29% 17% 7% [libx264 @ 0x2eaffc0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2eaffc0] kb/s:1935.14 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-video-and-audio-streams-not-starting-at-beginning-of-file-when-using-filter-complex-tp4666642.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From joel.longanecker at gmail.com Wed Jul 30 06:01:15 2014 From: joel.longanecker at gmail.com (Joel Longanecker) Date: Tue, 29 Jul 2014 23:01:15 -0500 Subject: [FFmpeg-user] Problem using FFMpeg, x11grab, and FFServer Message-ID: Hey guys. Trying an experiment with FFMpeg. The end goal is to serve the output of an xvfb session over the web and display it on a web page. I think i've narrowed down my problem to the parameters I am calling ffmpeg with. ffmpegProcess = subprocess.Popen(['ffmpeg', '-f', 'x11grab', '-r', '25', '-s', '640x480', '-i', ':1.0', '-pix_fmt', 'yuv420p', '-preset', 'medium', 'http://localhost:8090/feed1.ffm']) and here is my steam that I am trying to serve. Feed feed1.ffm Format flv VideoCodec libx264 AVOptionVideo crf 18 AVOptionVideo preset ultrafast NoAudio VideoSize 640x480 And here are the errors I am getting. [tcp @ 0x733b60] TCP connection to localhost:8090 failed: Connection refused Tue Jul 29 22:15:48 2014 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 [tcp @ 0x73bbe0] TCP connection to localhost:8090 failed: Connection refused [libx264 @ 0x73e4e0] broken ffmpeg default settings detected [libx264 @ 0x73e4e0] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x73e4e0] preset usage: -vpre -vpre [libx264 @ 0x73e4e0] speed presets are listed in x264 --help [libx264 @ 0x73e4e0] profile is optional; x264 defaults to high Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now Stream #0:0: Video: h264, yuv444p, 640x480, q=2-31, 128 kb/s, 1000k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Any help would be greatly appreciated. Thanks! From rvp_lan at yahoo.fr Wed Jul 30 01:03:18 2014 From: rvp_lan at yahoo.fr (=?UTF-8?Q?Herv=C3=A9_Pellan?=) Date: Wed, 30 Jul 2014 01:03:18 +0200 Subject: [FFmpeg-user] Where does ffmpeg oonfigure looking for libraries? Message-ID: System: CentOS release 6.5 / 2.6.32-431.20.3.el6.x86_64 Hello, I'm trying to complile a newer version of ffmpeg, with the same options shown in the pre-installed version on my system. Ffmpeg sources have been downloaded from git yesterday. So, I assume this is fresh material. When I start "./configure", almost all options like "--enable-gnutls" "--enable-libass" "--enable-libx264" etc, failed with "error: not found". But all packages and libraries concerning these options are installed and present in the system: /usr/lib64/libgnutls.so.26 /usr/lib64/libass.so.4.1.0 /usr/lib64/libx264.so.120 I've tried to refine generic options of configure like "--libdir=/usr/lib64" "--arch=x86_64", but it doesn't change anything... Right now, I don't get it! I don't understand where configure is looking for these libs? Do you have any advice or option that should be passed to configure so that it find librairies which are well installed in the system? Thanks. From h.reindl at thelounge.net Wed Jul 30 21:04:14 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 30 Jul 2014 21:04:14 +0200 Subject: [FFmpeg-user] Where does ffmpeg oonfigure looking for libraries? In-Reply-To: References: Message-ID: <53D941AE.9030206@thelounge.net> Am 30.07.2014 01:03, schrieb Herv? Pellan: > System: CentOS release 6.5 / 2.6.32-431.20.3.el6.x86_64 > > I'm trying to complile a newer version of ffmpeg, with the same options > shown in the pre-installed version on my system. > > Ffmpeg sources have been downloaded from git yesterday. So, I assume this > is fresh material. > > When I start "./configure", almost all options like "--enable-gnutls" > "--enable-libass" "--enable-libx264" etc, failed with "error: not > found". > > But all packages and libraries concerning these options are installed and > present in the system: > /usr/lib64/libgnutls.so.26 > /usr/lib64/libass.so.4.1.0 > /usr/lib64/libx264.so.120 you need to install the -devel packages not just the libs! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Wed Jul 30 21:16:54 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 30 Jul 2014 21:16:54 +0200 Subject: [FFmpeg-user] Problem using FFMpeg, x11grab, and FFServer In-Reply-To: References: Message-ID: <20140730191654.GA8483@sunshine.barsnick.net> On Tue, Jul 29, 2014 at 23:01:15 -0500, Joel Longanecker wrote: > think i've narrowed down my problem to the parameters I am calling ffmpeg > with. I have difficulty matching your command line arguments with the output. Can you produce the full, uncut output, not just the errors? Including the version information! Thanks, Moritz From stuartrbruce at gmail.com Thu Jul 31 12:47:17 2014 From: stuartrbruce at gmail.com (Stuart Bruce) Date: Thu, 31 Jul 2014 11:47:17 +0100 Subject: [FFmpeg-user] Concatenating two audio files Message-ID: Hello I've been trying to get FFmpeg to concatenate two audio files together, based on the top answer from this forum: http://superuser.com/questions/587511/concatenate-multiple-wav-files-using-single-command-without-extra-file Although I believe I've replicated the winning answer, I can't seem to work out what the correct syntax is to make it work. My log output (original parameters and console output) is below. For security I've had to change all the actual file paths to '********' but all the paths and files are valid. I'm hoping somebody could point me to the problem, which I'm hoping is something as simple as having a quote mark out of place or something like that. Any help would be very much appreciated. Thanks Stuart FFmpeg process log. Started: 31/07/2014 11:45:59 exe: C:\Users\Stuart\*******\FFmpeg\ffmpeg.exe Arguments: -i "C:\Users\Stuart\AppData\*********\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav" -i "C:\Users\Stuart\AppData\**********\cache\310714_bGhog6vOWMmn8x4J8ADz.wav" -filter_complex '[0:0][1:0]concat=n=2:v=0:a=1[out]' -map [out] "C:\Users\Stuart\******\s-tk-220-00200.wav" FFmpeg output: ffmpeg version N-53868-gc51654f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 6 2013 03:00:45 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 35.100 / 52. 35.100 libavcodec 55. 15.100 / 55. 15.100 libavformat 55. 8.102 / 55. 8.102 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 75.101 / 3. 75.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.0 : mono Input #0, wav, from 'C:\Users\Stuart\*****************\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav': Metadata: encoder : Lavf55.8.102 Duration: 00:00:04.18, bitrate: 705 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s [wav @ 00353400] max_analyze_duration 5000000 reached at 5015510 microseconds [wav @ 00353400] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'C:\Users\Stuart\**********\cache\310714_bGhog6vOWMmn8x4J8ADz.wav': Duration: 00:00:05.20, bitrate: 1411 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s [AVFilterGraph @ 0035bd80] No such filter: '[0:0][1:0]concat=n=2:v=0:a=1[out]' Error configuring filters. From cehoyos at ag.or.at Thu Jul 31 12:51:36 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 31 Jul 2014 10:51:36 +0000 (UTC) Subject: [FFmpeg-user] Concatenating two audio files References: Message-ID: Stuart Bruce gmail.com> writes: > -filter_complex '[0:0][1:0]concat=n=2:v=0:a=1[out]' Does it work if you only specify "-filter_complex concat" (without map or any filter options)? > ffmpeg version N-53868-gc51654f Generally, please test current FFmpeg git head before reporting problems here. Carl Eugen From anatol2002 at gmail.com Thu Jul 31 13:40:36 2014 From: anatol2002 at gmail.com (Anatol) Date: Thu, 31 Jul 2014 14:40:36 +0300 Subject: [FFmpeg-user] Concatenating two audio files In-Reply-To: References: Message-ID: Turn your WAV files into raw PCM files - ffmpeg -i INPUT1 -c:a copy -vn -f s16le -y PCM1 Then u can either cat them together to get a raw PCM file or use ffmpeg concat protocol: ffmpeg -ar SAMPLE_RATE -channel_layout STEREO/MONO -f s16le -i concat:"PCM1|PCM2|..." -vn -c:a copy -f wav -y OUTPUT On Thu, Jul 31, 2014 at 1:47 PM, Stuart Bruce wrote: > Hello > > I've been trying to get FFmpeg to concatenate two audio files together, > based on the top answer from this forum: > > http://superuser.com/questions/587511/concatenate-multiple-wav-files-using-single-command-without-extra-file > > Although I believe I've replicated the winning answer, I can't seem to work > out what the correct syntax is to make it work. > > My log output (original parameters and console output) is below. For > security I've had to change all the actual file paths to '********' but all > the paths and files are valid. > > I'm hoping somebody could point me to the problem, which I'm hoping is > something as simple as having a quote mark out of place or something like > that. Any help would be very much appreciated. > > Thanks > > Stuart > > > FFmpeg process log. > Started: 31/07/2014 11:45:59 > exe: > C:\Users\Stuart\*******\FFmpeg\ffmpeg.exe > Arguments: > -i > "C:\Users\Stuart\AppData\*********\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav" > -i > "C:\Users\Stuart\AppData\**********\cache\310714_bGhog6vOWMmn8x4J8ADz.wav" > -filter_complex '[0:0][1:0]concat=n=2:v=0:a=1[out]' -map [out] > "C:\Users\Stuart\******\s-tk-220-00200.wav" > FFmpeg output: > ffmpeg version N-53868-gc51654f Copyright (c) 2000-2013 the FFmpeg > developers > built on Jun 6 2013 03:00:45 with gcc 4.7.3 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads > --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-iconv --enable-libass --enable-libbluray > --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc > --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > --enable-librtmp --enable-libschroedinger --enable-libsoxr > --enable-libspeex --enable-libtheora --enable-libtwolame > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid > --enable-zlib > libavutil 52. 35.100 / 52. 35.100 > libavcodec 55. 15.100 / 55. 15.100 > libavformat 55. 8.102 / 55. 8.102 > libavdevice 55. 2.100 / 55. 2.100 > libavfilter 3. 75.101 / 3. 75.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > Guessed Channel Layout for Input Stream #0.0 : mono > Input #0, wav, from > 'C:\Users\Stuart\*****************\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav': > Metadata: > encoder : Lavf55.8.102 > Duration: 00:00:04.18, bitrate: 705 kb/s > Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, > s16, 705 kb/s > [wav @ 00353400] max_analyze_duration 5000000 reached at 5015510 > microseconds > [wav @ 00353400] Estimating duration from bitrate, this may be inaccurate > Guessed Channel Layout for Input Stream #1.0 : stereo > Input #1, wav, from > 'C:\Users\Stuart\**********\cache\310714_bGhog6vOWMmn8x4J8ADz.wav': > Duration: 00:00:05.20, bitrate: 1411 kb/s > Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, > stereo, s16, 1411 kb/s > [AVFilterGraph @ 0035bd80] No such filter: > '[0:0][1:0]concat=n=2:v=0:a=1[out]' > Error configuring filters. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From phpdev at ehrhardt.nl Thu Jul 31 17:19:27 2014 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Thu, 31 Jul 2014 17:19:27 +0200 Subject: [FFmpeg-user] FFmpeg 0.5.14 released Message-ID: Just curious: is FFmpeg 0.5 still maintained? 0.5.14 was released on 2014-07-20 and promoted in a tweet. https://twitter.com/FFmpeg/status/491747465071448065 Jan From h.reindl at thelounge.net Thu Jul 31 17:22:25 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 31 Jul 2014 17:22:25 +0200 Subject: [FFmpeg-user] FFmpeg 0.5.14 released In-Reply-To: References: Message-ID: <53DA5F31.7090602@thelounge.net> Am 31.07.2014 um 17:19 schrieb Jan Ehrhardt: > Just curious: is FFmpeg 0.5 still maintained? 0.5.14 was released on > 2014-07-20 and promoted in a tweet. > > https://twitter.com/FFmpeg/status/491747465071448065 looks so but surely only critical security fixes http://ffmpeg.org/releases/ you won't get any help here for it -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Thu Jul 31 17:31:18 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 31 Jul 2014 17:31:18 +0200 Subject: [FFmpeg-user] FFmpeg 0.5.14 released In-Reply-To: <53DA5F31.7090602@thelounge.net> References: <53DA5F31.7090602@thelounge.net> Message-ID: <20140731153118.GB26664@sunshine.barsnick.net> On Thu, Jul 31, 2014 at 17:22:25 +0200, Reindl Harald wrote: > > Just curious: is FFmpeg 0.5 still maintained? 0.5.14 was released on > > 2014-07-20 and promoted in a tweet. > > looks so but surely only critical security fixes You can follow the commits here: https://github.com/FFmpeg/FFmpeg/commits/release/0.5 Just a few though. Apparently, someone doesn't think it needs to die. ;-) (Not that I do. I am opinionless for the moment.) Moritz From oliver at fromme.com Thu Jul 31 18:31:59 2014 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 31 Jul 2014 18:31:59 +0200 (CEST) Subject: [FFmpeg-user] Problems decoding h.264 video In-Reply-To: Message-ID: <201407311631.s6VGVxKP019996@haluter.fromme.com> Tom Evans wrote: > On Tue, Jul 29, 2014 at 7:28 PM, Oliver Fromme wrote: > > [...] > > I found out that the "official" FreeBSD port of ffmpeg works. > > However, that's not the current git version ... I'd like to > > work with the current git version. > > > > So I tried to look at the FreeBSD port in order to find out > > what it does differently, but without any luck so far. :-( > > I'm basically using the same configure options. > > Use either clang or gcc 4.6+ from ports and your errors will disappear. Yes, indeed, thanks for the hint. But I don't understand why the official FreeBSD port works. It does *not* depend on a newer gcc version, and in fact the start-up message shows that it is build with the stock old FreeBSD compiler (4.2.1): ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 29 2014 20:18:45 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] I noticed that the port depends on a newer version of the binutils, but I'm not sure what's required to build ffmpeg with those binutils. The port apparently sets $COMPILER_PATH to /usr/local/bin, but when I do that with the git sources, it still doesn't work. (Of course, the problem is solved, I'll just use the newer gcc, but still I would like to know why the port works with the old gcc, and how to reproduce that when compiling the git sources manually.) Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From tan at choose.tv Thu Jul 31 19:32:26 2014 From: tan at choose.tv (Tan Tran) Date: Thu, 31 Jul 2014 10:32:26 -0700 Subject: [FFmpeg-user] Need help with ffmpeg configurations Message-ID: <437401cface5$654c9640$2fe5c2c0$@choose.tv> Hello, We need someone that is very good with ffmpeg configurations to help us with our settings. We are using FFMPEG to encode an 8 mbs stream to 250kb, 750kb, 1.5 mbs, 3 mbs.. are are having issues with the quality and reliability of the streams. 1. Slow loading of stream from video player 2. Sometimes streams just pauses during playback but then if we pause/play it works again. 3. Artifacts seen 4. Better video quality We need someone to be able to help us with the reliability and put into place logic where the streams can encode 24/7/365 . We also need someone to examine our settings per channel and recommend the best settings for the best quality for each channel. Are you able to help with this or can recommend someone to help with this? The right person would also become our 'Go To Person' for all ffmpeg needs so there is a possibility for long term relationships. Thanks for your time and hope to hear from you. Tan From cehoyos at ag.or.at Thu Jul 31 22:17:57 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 31 Jul 2014 20:17:57 +0000 (UTC) Subject: [FFmpeg-user] Need help with ffmpeg configurations References: <437401cface5$654c9640$2fe5c2c0$@choose.tv> Message-ID: Tan Tran choose.tv> writes: > We are using FFMPEG to encode an 8 mbs stream to 250kb, > 750kb, 1.5 mbs, 3 mbs.. are are having issues with the > quality and reliability of the streams. Please provide your command line and the console output. Carl Eugen From cehoyos at ag.or.at Thu Jul 31 22:18:58 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 31 Jul 2014 20:18:58 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg 0.5.14 released References: Message-ID: Jan Ehrhardt ehrhardt.nl> writes: > Just curious: is FFmpeg 0.5 still maintained? There are two important things: Please don't ask for support and please don't suggest 0.5 to other people (if you believe you have to use it). Carl Eugen From lou at lrcd.com Thu Jul 31 22:35:12 2014 From: lou at lrcd.com (Lou) Date: Thu, 31 Jul 2014 12:35:12 -0800 Subject: [FFmpeg-user] Issues with video and audio streams not starting at beginning of file when using filter_complex. In-Reply-To: <1406729860560-4666642.post@n4.nabble.com> References: <1406729860560-4666642.post@n4.nabble.com> Message-ID: <20140731123512.4c8e7aa9@lrcd.com> On Wed, 30 Jul 2014 07:17:40 -0700 (PDT) ac83 wrote: > Hello, We're testing out some transcoding using filter_complex, but can't > seem to produce video that both starts on an I-frame and starts at the same > time as the audio. In the past we've just done -ss x -i ... -t y and things > have worked, but with filter_complex we're consistently seeing the audio > start before the video which causes our video streaming server to play them > out of sync. I've tried a large variation of commands.. using trim and atrim > w/ and w/out setpts etc.. > > ffmpeg -y -ss 21 -i > /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp [trimmed] This is quite the command and filtergraph. Could you provide the most simple command and console output that still has the issue? Try to narrow down the culprit. How can we reproduce the issue? Does it occur only with specific inputs? What player are you using? From acloutier at c-spanarchives.org Thu Jul 31 23:54:22 2014 From: acloutier at c-spanarchives.org (ac83) Date: Thu, 31 Jul 2014 14:54:22 -0700 (PDT) Subject: [FFmpeg-user] Issues with video and audio streams not starting at beginning of file when using filter_complex. In-Reply-To: <1406841272009-4666658.post@n4.nabble.com> References: <1406729860560-4666642.post@n4.nabble.com> <20140731123512.4c8e7aa9@lrcd.com> <1406841272009-4666658.post@n4.nabble.com> Message-ID: <1406843662473-4666659.post@n4.nabble.com> I did some more testing. It looks like this issue remains even when stripping out the -filter_complex stuff (!?) ffmpeg -y -ss 1 -i /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp -r 29.97 -qmin 4 -crf 28 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 500k -bufsize 1500k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4 ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 16 2014 10:02:25 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/ffmpeg/2.2.4 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-pic --disable-debug --disable-encoder=nellymoser --enable-postproc --enable-swscale --enable-libmp3lame --enable-pthreads --enable-libfaac --enable-libx264 libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libswscale 2. 5.102 / 2. 5.102 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x2705fc0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2705fc0] decode_slice_header error [h264 @ 0x2705fc0] no frame! [h264 @ 0x2705fc0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2705fc0] decode_slice_header error [h264 @ 0x2705fc0] no frame! [h264 @ 0x2705fc0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2705fc0] decode_slice_header error [h264 @ 0x2705fc0] no frame! [h264 @ 0x2705fc0] mmco: unref short failure Last message repeated 1 times [mpegts @ 0x2701d80] PES packet size mismatch Input #0, mpegts, from '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp': Duration: 00:05:09.61, start: 78099.700589, bitrate: 9395 kb/s Program 4 Stream #0:0[0x133]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x134](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 128 kb/s (clean effects) [libx264 @ 0x2708600] using SAR=1/1 [libx264 @ 0x2708600] using cpu capabilities: MMX2 SSE2Fast LZCNT [libx264 @ 0x2708600] profile High, level 4.0 [libx264 @ 0x2708600] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=18 lookahead_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=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=28.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1500 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4': Metadata: encoder : Lavf55.33.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=4--1, max. 500 kb/s, 11988 tbn, 29.97 tbc Stream #0:1(eng): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (clean effects) Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libfaac) Press [q] to stop, [?] for help [h264 @ 0x3086f00] reference picture missing during reorder [h264 @ 0x3086f00] Missing reference picture, default is 65470 [h264 @ 0x311e760] mmco: unref short failure [h264 @ 0x3543200] reference picture missing during reorder [h264 @ 0x3543200] Missing reference picture, default is 65486 [h264 @ 0x35daa60] mmco: unref short failure frame= 46 fps=0.0 q=0.0 size= 0kB time=00:00:00.97 bitrate= 0.4kbits/sframe= 86 fps= 81 q=45.0 size= 74kB time=00:00:02.60 bitrate= 231.6kbits/[h264 @ 0x35daa60] Reference 4 >= 2 [h264 @ 0x35daa60] error while decoding MB 60 2, bytestream 84155 [h264 @ 0x35daa60] concealing 7909 DC, 7909 AC, 7909 MV errors in B frame [h264 @ 0x3543200] concealing 380 DC, 380 AC, 380 MV errors in B frame frame= 119 fps= 75 q=42.0 size= 106kB time=00:00:03.66 bitrate= 235.7kbits/[h264 @ 0x32e5080] reference picture missing during reorder Last message repeated 1 times [h264 @ 0x32e5080] Missing reference picture, default is 65742 Last message repeated 1 times [h264 @ 0x337c8e0] mmco: unref short failure [h264 @ 0x2fef6a0] reference picture missing during reorder [h264 @ 0x2fef6a0] Missing reference picture, default is 65758 [h264 @ 0x3086f00] mmco: unref short failure frame= 150 fps= 71 q=43.0 size= 170kB time=00:00:04.69 bitrate= 296.5kbits/frame= 182 fps= 69 q=42.0 size= 259kB time=00:00:05.71 bitrate= 371.6kbits/frame= 216 fps= 68 q=43.0 size= 315kB time=00:00:06.91 bitrate= 372.5kbits/frame= 250 fps= 68 q=43.0 size= 421kB time=00:00:07.94 bitrate= 434.5kbits/frame= 284 fps= 68 q=43.0 size= 483kB time=00:00:09.12 bitrate= 433.7kbits/frame= 316 fps= 64 q=41.0 size= 543kB time=00:00:10.17 bitrate= 437.2kbits/frame= 352 fps= 65 q=42.0 size= 644kB time=00:00:11.35 bitrate= 464.3kbits/frame= 387 fps= 65 q=43.0 size= 699kB time=00:00:12.53 bitrate= 456.7kbits/frame= 419 fps= 65 q=43.0 size= 755kB time=00:00:13.58 bitrate= 455.3kbits/frame= 452 fps= 65 q=42.0 size= 847kB time=00:00:14.60 bitrate= 474.8kbits/frame= 486 fps= 65 q=42.0 size= 903kB time=00:00:15.78 bitrate= 468.4kbits/frame= 504 fps= 63 q=43.0 size= 928kB time=00:00:16.46 bitrate= 461.6kbits/frame= 535 fps= 63 q=43.0 size= 1034kB time=00:00:17.50 bitrate= 483.8kbits/[mp4 @ 0x2707ac0] Starting second pass: moving the moov atom to the beginning of the filedrop=0 frame= 900 fps= 59 q=-1.0 Lsize= 1985kB time=00:00:30.00 bitrate= 542.2kbits/s dup=39 drop=0 video:1585kB audio:367kB subtitle:0 data:0 global headers:0kB muxing overhead 1.694172% [libx264 @ 0x2708600] frame I:10 Avg QP:34.11 size: 36888 [libx264 @ 0x2708600] frame P:233 Avg QP:39.00 size: 3166 [libx264 @ 0x2708600] frame B:657 Avg QP:45.71 size: 785 [libx264 @ 0x2708600] consecutive B-frames: 1.9% 0.2% 6.3% 91.6% [libx264 @ 0x2708600] mb I I16..4: 30.1% 65.5% 4.4% [libx264 @ 0x2708600] mb P I16..4: 0.2% 0.5% 0.0% P16..4: 14.8% 0.8% 0.8% 0.0% 0.0% skip:82.9% [libx264 @ 0x2708600] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 8.5% 0.1% 0.0% direct: 0.0% skip:91.4% L0:37.5% L1:62.3% BI: 0.2% [libx264 @ 0x2708600] 8x8 transform intra:65.5% inter:89.0% [libx264 @ 0x2708600] coded y,uvDC,uvAC intra: 31.4% 42.0% 4.4% inter: 0.4% 0.3% 0.0% [libx264 @ 0x2708600] i16 v,h,dc,p: 14% 48% 5% 33% [libx264 @ 0x2708600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 19% 5% 6% 5% 6% 5% 5% [libx264 @ 0x2708600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 22% 14% 6% 8% 8% 6% 5% 3% [libx264 @ 0x2708600] i8c dc,h,v,p: 66% 21% 10% 3% [libx264 @ 0x2708600] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2708600] ref P L0: 66.6% 14.1% 14.3% 5.0% [libx264 @ 0x2708600] ref B L0: 87.3% 9.4% 3.2% [libx264 @ 0x2708600] ref B L1: 96.1% 3.9% [libx264 @ 0x2708600] kb/s:432.17 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-video-and-audio-streams-not-starting-at-beginning-of-file-when-using-filter-complex-tp4666642p4666659.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From acloutier at c-spanarchives.org Thu Jul 31 23:14:32 2014 From: acloutier at c-spanarchives.org (ac83) Date: Thu, 31 Jul 2014 14:14:32 -0700 (PDT) Subject: [FFmpeg-user] Issues with video and audio streams not starting at beginning of file when using filter_complex. In-Reply-To: <20140731123512.4c8e7aa9@lrcd.com> References: <1406729860560-4666642.post@n4.nabble.com> <20140731123512.4c8e7aa9@lrcd.com> Message-ID: <1406841272009-4666658.post@n4.nabble.com> Lou-2 wrote > On Wed, 30 Jul 2014 07:17:40 -0700 (PDT) > ac83 < > acloutier@ > > wrote: > >> Hello, We're testing out some transcoding using filter_complex, but can't >> seem to produce video that both starts on an I-frame and starts at the >> same >> time as the audio. In the past we've just done -ss x -i ... -t y and >> things >> have worked, but with filter_complex we're consistently seeing the audio >> start before the video which causes our video streaming server to play >> them >> out of sync. I've tried a large variation of commands.. using trim and >> atrim >> w/ and w/out setpts etc.. >> >> ffmpeg -y -ss 21 -i >> /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp > [trimmed] > > This is quite the command and filtergraph. Could you provide the most > simple command and console output that still has the issue? Try to > narrow down the culprit. How can we reproduce the issue? Does it occur > only with specific inputs? What player are you using? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Sure, here it is with only one output format Also a link to the output file: http://s3.amazonaws.com/dropbox.c-spanarchives.org/20140729154103013_hd.MP4-M10.mp4 And the source file: http://s3.amazonaws.com/dropbox.c-spanarchives.org/20140729154103013_hd.trp The streaming server that has issues with these files is Wowza. In the past when we've created files with this issue (before we knew to put the -ss before the -i) I believe we would also see the issue in Windows Media Player. To clarify the issue: it looks like the output video does start on a keyframe, but the audio starts earlier than the video in the file. Wowza starts playing the audio and video at the same time so they aren't synced. /opt/ffmpeg/2.2.4/bin/ffmpeg -y -ss 1 -i /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp \ -i /proj/common/resources/bug-green2.png \ -filter_complex '[0:v]yadif[deinterlaced], [0:a]volume=15.9dB[audio], [deinterlaced][1:v]overlay=main_w-521:main_h-243[out], [out]split=1[outA], [outA]scale=1024:576[A], [audio]asplit=1[audioA]'\ -map [A] -map [audioA] -preset veryfast -profile:v main -level 3.1 -r 29.97 -qmin 4 -crf 28 -movflags faststart -vcodec libx264 -pix_fmt yuv420p -acodec libfaac -t 30 -ar 44100 -ac 2 -b:a 128k -maxrate 500k -bufsize 1500k -g 89.91 -threads 0 /var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4 \ ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 16 2014 10:02:25 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/opt/ffmpeg/2.2.4 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-pic --disable-debug --disable-encoder=nellymoser --enable-postproc --enable-swscale --enable-libmp3lame --enable-pthreads --enable-libfaac --enable-libx264 libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libswscale 2. 5.102 / 2. 5.102 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x1aae9c0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x1aae9c0] decode_slice_header error [h264 @ 0x1aae9c0] no frame! [h264 @ 0x1aae9c0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x1aae9c0] decode_slice_header error [h264 @ 0x1aae9c0] no frame! [h264 @ 0x1aae9c0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x1aae9c0] decode_slice_header error [h264 @ 0x1aae9c0] no frame! [h264 @ 0x1aae9c0] mmco: unref short failure Last message repeated 1 times [mpegts @ 0x1aaa880] PES packet size mismatch Input #0, mpegts, from '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp': Duration: 00:05:09.61, start: 78099.700589, bitrate: 9395 kb/s Program 4 Stream #0:0[0x133]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x134](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 128 kb/s (clean effects) Input #1, image2, from '/proj/common/resources/CSPAN-bug-green2.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: png, rgba, 425x75 [SAR 2835:2835 DAR 17:3], 25 tbr, 25 tbn, 25 tbc [libx264 @ 0x1ad04c0] using SAR=1/1 [libx264 @ 0x1ad04c0] using cpu capabilities: MMX2 SSE2Fast LZCNT [libx264 @ 0x1ad04c0] profile Main, level 3.1 [libx264 @ 0x1ad04c0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex 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=18 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=90 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=28.0 qcomp=0.60 qpmin=4 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1500 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4': Metadata: encoder : Lavf55.33.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=4--1, max. 500 kb/s, 11988 tbn, 29.97 tbc (default) Stream #0:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default) Stream mapping: Stream #0:0 (h264) -> yadif Stream #0:1 (aac) -> volume Stream #1:0 (png) -> overlay:overlay scale -> Stream #0:0 (libx264) asplit -> Stream #0:1 (libfaac) Press [q] to stop, [?] for help [h264 @ 0x47c3320] reference picture missing during reorder [h264 @ 0x47c3320] Missing reference picture, default is 65470 [h264 @ 0x485aa80] mmco: unref short failure [h264 @ 0x4c7f520] reference picture missing during reorder [h264 @ 0x4c7f520] Missing reference picture, default is 65486 [h264 @ 0x4d16d80] mmco: unref short failure [h264 @ 0x4d16d80] Reference 4 >= 2 45kB time=00:00:01.78 bitrate= 205.5kbits/s dup=36 drop=0 [h264 @ 0x4d16d80] error while decoding MB 60 2, bytestream 84155 [h264 @ 0x4d16d80] concealing 7909 DC, 7909 AC, 7909 MV errors in B frame [h264 @ 0x4c7f520] concealing 380 DC, 380 AC, 380 MV errors in B frame [h264 @ 0x4a213a0] reference picture missing during reorder Last message repeated 1 times [h264 @ 0x4a213a0] Missing reference picture, default is 65742 Last message repeated 1 times [h264 @ 0x4ab8c00] mmco: unref short failure [h264 @ 0x472bbc0] reference picture missing during reorder bitrate= 313.1kbits/s dup=36 drop=0 [h264 @ 0x472bbc0] Missing reference picture, default is 65758 [h264 @ 0x47c3320] mmco: unref short failure [mp4 @ 0x1acfae0] Starting second pass: moving the moov atom to the beginning of the filedrop=0 frame= 900 fps=114 q=-1.0 Lsize= 1386kB time=00:00:30.00 bitrate= 378.4kbits/s dup=38 drop=0 video:985kB audio:367kB subtitle:0 data:0 global headers:0kB muxing overhead 2.446416% [libx264 @ 0x1ad04c0] frame I:10 Avg QP:26.62 size: 34776 [libx264 @ 0x1ad04c0] frame P:232 Avg QP:31.99 size: 2083 [libx264 @ 0x1ad04c0] frame B:658 Avg QP:37.19 size: 269 [libx264 @ 0x1ad04c0] consecutive B-frames: 1.6% 0.7% 6.7% 91.1% [libx264 @ 0x1ad04c0] mb I I16..4: 30.3% 0.0% 69.7% [libx264 @ 0x1ad04c0] mb P I16..4: 0.5% 0.0% 0.2% P16..4: 10.7% 5.4% 2.5% 0.0% 0.0% skip:80.8% [libx264 @ 0x1ad04c0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.1% 0.9% 0.1% direct: 0.2% skip:96.7% L0:34.7% L1:44.1% BI:21.2% [libx264 @ 0x1ad04c0] coded y,uvDC,uvAC intra: 64.9% 62.4% 27.2% inter: 1.1% 0.3% 0.0% [libx264 @ 0x1ad04c0] i16 v,h,dc,p: 18% 48% 18% 16% [libx264 @ 0x1ad04c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 29% 14% 3% 8% 6% 7% 6% 6% [libx264 @ 0x1ad04c0] i8c dc,h,v,p: 46% 31% 16% 8% [libx264 @ 0x1ad04c0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x1ad04c0] kb/s:268.57 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-video-and-audio-streams-not-starting-at-beginning-of-file-when-using-filter-complex-tp4666642p4666658.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From acuozzo at runbox.com Thu Jul 31 19:10:45 2014 From: acuozzo at runbox.com (Anthony Cuozzo) Date: Thu, 31 Jul 2014 13:10:45 -0400 (EDT) Subject: [FFmpeg-user] Luma Levels Filter? Message-ID: All, Does FFmpeg have a luma levels filter? My goal is to convert my 10-bit V210 source (YUV422P10LE) to 8-bit Huffyuv (YUV422P), but I'd like to stretch luma from [64, 892] to [64, 940] before doing the conversion. Also, does FFmpeg dither when going from 10-bit to 8-bit? Thanks, --Anthony