From cehoyos at ag.or.at Wed Oct 1 01:34:46 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 30 Sep 2014 23:34:46 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode References: <857058547.156876.1412101013841.JavaMail.yahoo@jws10773.mail.gq1.yahoo.com> Message-ID: Sagara Wijetunga ffmpeg.org> writes: > I noted modern ffmpeg/libvpx generates incorrect > PTS for vp9 when decode. What about FFmpeg without any external libraries? Carl Eugen From cehoyos at ag.or.at Wed Oct 1 01:42:28 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 30 Sep 2014 23:42:28 +0000 (UTC) Subject: [FFmpeg-user] Can I use ffmpeg to combine audio streams in .ts file? References: Message-ID: gmx.ca> writes: > So am I doing something wrong that is causing the > "Segmentation fault", or is that a bug in the program? When ffmpeg (the application) crashes with a segmentation fault it is always the fault of the program and never the fault of the user. Additionally, all segmentation faults are important issues that we (really!) would like to know about. To let us know, please test current FFmpeg (that you can find on the download page), provide the command line that allows to reproduce the segmentation fault together with the complete, uncut console output and ideally the sample needed to reproduce the crash. The mentioned rules (gdb backtrace etc.) are valid on the bug tracher (you must only report a bug there if you want to provide all necessary information), it is not true for this mailing list. Please understand (in case this isn't obvious) that such reports are basically the only thing we (the developers) request from users like you and it is also the only thing - together with samples - you (the users) can easily provide. Thank you, Carl Eugen From cehoyos at ag.or.at Wed Oct 1 01:45:03 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 30 Sep 2014 23:45:03 +0000 (UTC) Subject: [FFmpeg-user] Attempting to make a preservation copy of a Nokia Cellphone video (frame rate) References: <5DFC5B85-C4D5-40EA-8761-AFAE275BF412@dericed.com> Message-ID: Dave Rice dericed.com> writes: > > ffmpeg -i "C:\\Digital Weekend Videos\\helen\\testing\\nokia1.MOV" > > -threads 0 -acodec pcm_s16le -vcodec ffv1 -level 3 -coder 1 > > -context 1 -g 1 -slices 24 -slicecrc 1 -vsync 0 -report > > "C:\\Digital Weekend Videos\\helen\\testing\\nokia1_FFV1.MOV" > > Have you tried putting -vsync 0 before the input? Wouldn't this completely discard the goal of producing a "preservation copy"? Or do I simply misunderstand the term? Carl Eugen From mzagrabe at d.umn.edu Wed Oct 1 02:44:05 2014 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 30 Sep 2014 19:44:05 -0500 Subject: [FFmpeg-user] webm vp9 options Message-ID: Greetings, I've just started using ffmpeg - there are a lot of options. :) I've read through a few of the encoding guides and have an initial command line invocation that I'd like commentary on. From: http://www.webmproject.org/docs/encoder-parameters/#10-sample-command-lines there is a recommendation for "best" quality. I've based the following on it: ffmpeg \ -i INPUT.vob \ -pass 1 \ -passlogfile t \ -b:v 2M \ -auto-alt-ref 1 \ -quality best \ -minrate 100K \ -maxrate 16M \ -lag-in-frames 16 \ -keyint_min 0 \ -g 360 \ -skip_threshold 0 \ -qmin 0 \ -qmax 60 \ -vcodec libvpx-vp9 \ -strict experimental \ -f webm \ -- - > /dev/null ffmpeg \ -i INPUT.vob \ -pass 2 \ -passlogfile t \ -b:v 2M \ -auto-alt-ref 1 \ -quality best \ -minrate 100K \ -maxrate 16M \ -lag-in-frames 16 \ -keyint_min 0 \ -g 360 \ -skip_threshold 0 \ -qmin 0 \ -qmax 60 \ -vcodec libvpx-vp9 \ -strict experimental \ -acodec libvorbis \ -b:a 96k \ OUTPUT.webm I'm looking for very good (or best) encoding. Encoding time isn't a huge factor for me - at least right now. Am I missing anything in the above? Thanks for any hints! -m From rymerrick at gmail.com Wed Oct 1 04:07:17 2014 From: rymerrick at gmail.com (Ryan M) Date: Tue, 30 Sep 2014 22:07:17 -0400 Subject: [FFmpeg-user] Dual Xeon VS Haswell-E, maximize fps In-Reply-To: <8F548F5B-02CC-48DA-9494-2B54EA8F39C9@zonnet.nl> References: <2D118ACF-3503-42F3-8EFE-FA24CE92C312@zonnet.nl> <24AB55B7-3410-4C91-8A34-9B7360B95A1E@zonnet.nl> <8F548F5B-02CC-48DA-9494-2B54EA8F39C9@zonnet.nl> Message-ID: It is definitely something to think of/consider. Thanks for the input. On Mon, Sep 29, 2014 at 2:14 PM, Henk D. Schoneveld wrote: > Size of 1 system 8 * 8.5 * 2.25 inches, so they are very small just a > little bigger then an Apple Mini. > So 8 of them doen?t take that much space, you can stack them. > > On 29 Sep 2014, at 18:37, Ryan M wrote: > > > Yeah really the actual space/room is the issue there, not sure where i'd > > put that. > > With PPSS, it looks like it distributes the encoding of different files > > over the available resources, it wouldn't spread a single encoding job > over > > them correct? > Yes that?s correct. If 1 resource becomes free, job done, it takes the > next file to be done. > > I do need a way to automate ffmpeg instances so more jobs > > can run at the same time. > You can run as many jobs as you do have CPU cores, with 8 systems being > DualCore, 16 jobs at once. > > My jobs aren't just a bunch of files sitting in > > a directory, it is querying a db for files that need to be encoded in > > various ways. > You could run multiple instances of PPSS, with different encoding > parameters. You could query your DB for files with ffmpeg parameters X, > make symlinks to Directory X > and > another query for files with parameters Y and make symlinks to directory Y > One PPSS instance runs the X and another instance runs the Y symlinks > directory. > > > > > > On Mon, Sep 29, 2014 at 11:15 AM, Henk D. Schoneveld > > > wrote: > > > >> Why wouldn?t it be realistic ? > >> Have a look at https://code.google.com/p/ppss/ to distribute jobs over > >> the amount of systems you have and works like a charm. > >> On 29 Sep 2014, at 17:05, Ryan M wrote: > >> > >>> I don't know that it is realistic to have 8 systems running though. > If I > >>> can pay more and have the approx same amount of throughput with one > >> system, > >>> that would be better. > >> In what way would it be better, less room, yes but that?s very expensive > >> room you pay for in my opinion. > >>> I just don't want to pay like $4k more (for the > >>> Xeon vs Haswell-EP) and only get a few more fps out of it. If stepping > >> up > >>> to Xeon allows ~40fps like Sean said then it is probably worth it. > >> Thank > >>> you very much for the input. > >>> > >>> On Sun, Sep 28, 2014 at 7:23 AM, Henk D. Schoneveld < > belcampo at zonnet.nl> > >>> wrote: > >>> > >>>> > >>>> On 28 Sep 2014, at 13:13, Henk D. Schoneveld > >> wrote: > >>>> > >>>>> > >>>>> On 26 Sep 2014, at 18:36, Ryan M wrote: > >>>>> > >>>>>> I am putting together hardware to encode a large and ever growing > >>>> catalog > >>>>>> of video using ffmpeg/x264. Much of the source video is 1080p > >> ProResHQ. > >>>>>> Currently I have a box with a Haswell 4770k CPU which gets around > >> 12-15 > >>>>>> fps, I am of course looking to increase that as much as possible. > >>>>> Have a look at > >>>> > >> > http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-5960X+%40+3.00GHz&id=2332 > >>>>> and compare with > >>>>> > >>>> > >> > http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-4770K+%40+3.50GHz&id=1919 > >>>>> or in 1 view > >>>>> http://www.cpubenchmark.net/compare.php?cmp[]=1919&cmp[]=2364 > >>>>> 7 times the price for less then 2 times the performance. > >>>>> Spreading the task over more much cheaper CPU?s gives you more bang > for > >>>> the buck if realtime encoding isn?t needed. > >>>>> You could use 8 Dual Celeron systems to get the same performance as 1 > >>>> E5-2690 where CPU cost would be 8x52.45 vs. 1x2299.99 Of course > >>>> motherboards etc are needed and housing but a low cost MB and Housing > >> can > >>>> be bought at < 100.00 a piece. 8*(100+52.45) ~ 1220.00 > >>>>> Saved more then $1.000 And the Xeon still needs a motherboard and > case > >>>> of course. > >>>> The CPU Mark and single thread performance are good indicators for > >>>> relative ffmpeg encoding speeds. I do have i5 i7 and the named > Celerons > >>>> which I compared extensively with the same source files and encoding > >>>> parameters. > >>>> Disk I/O isn?t any problem, think of it, 5 times BluRay bitrates > results > >>>> in 90Kb/s < 12MB/s. Every modern disk has no problem with that and > even > >>>> old-fashioned nics, 100Mb/s can cope with that. > >>>>>> > >>>>>> Trying to determine if getting the latest dual CPU Xeon (such as > >> E5-2690 > >>>>>> v3) setup is going to be worth the significant additional cost over > >> the > >>>>>> best Haswell-E (Core i7-5960X). > >>>>>> > >>>>>> I've read lots of articles/posts and it is not clear to me. I know > >>>> worth > >>>>>> is subjective but looking to know if there'll be significant > increase > >> in > >>>>>> fps using 2 Xeons. I need to justify the $6-7k price tag. > >>>>>> > >>>>>> Any insight/experience would be appreciated. > >>>>>> > >>>>>> thanks > >>>>>> Ryan > >>>>>> _______________________________________________ > >>>>>> ffmpeg-user mailing list > >>>>>> ffmpeg-user at ffmpeg.org > >>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>>> > >>>>> _______________________________________________ > >>>>> ffmpeg-user mailing list > >>>>> ffmpeg-user at ffmpeg.org > >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>> > >>>> _______________________________________________ > >>>> ffmpeg-user mailing list > >>>> ffmpeg-user at ffmpeg.org > >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>> > >>> _______________________________________________ > >>> ffmpeg-user mailing list > >>> ffmpeg-user at ffmpeg.org > >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >> > >> _______________________________________________ > >> ffmpeg-user mailing list > >> ffmpeg-user at ffmpeg.org > >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >> > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ajay_382000 at yahoo.co.in Wed Oct 1 08:30:47 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Wed, 1 Oct 2014 14:30:47 +0800 Subject: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry Message-ID: <1412145047.81653.BPMail_high_carrier@web194606.mail.sg3.yahoo.com> ------------------------------ On Tue 30 Sep, 2014 10:22 PM IST ajay parashar wrote: > > > > > >------------------------------ >On Tue 30 Sep, 2014 6:59 PM IST Claudiu Rad wrote: > >> >>On 9/30/2014 4:11 PM, ajay parashar wrote: >>> #EXTM3U >>> #EXT-X-VERSION:3 >>> #EXT-X-MEDIA-SEQUENCE:0 >>> #EXT-X-ALLOW-CACHE:YES >>> #EXT-X-TARGETDURATION:17 >>> #EXTINF:15.015000, >>> out000.ts >>> #EXTINF:8.341667, >>> out001.ts >>> #EXTINF:8.341667, >>> out002.ts >>> #EXTINF:8.341667, >>> out003.ts >>> #EXTINF:16.683333, >>> out004.ts ******************************** Please let me know why it is not adding last segment in its list? Ajay From cehoyos at ag.or.at Wed Oct 1 16:07:51 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Oct 2014 14:07:51 +0000 (UTC) Subject: [FFmpeg-user] webm vp9 options References: Message-ID: Matt Zagrabelny d.umn.edu> writes: > -strict experimental \ Why are you adding -strict experimental to your command line? > I'm looking for very good (or best) encoding. > Encoding time isn't a huge factor for me - > at least right now. Did you already encode anything with the vp9 encoder? (Longer than a minute.) Carl Eugen From mzagrabe at d.umn.edu Wed Oct 1 16:15:41 2014 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 1 Oct 2014 09:15:41 -0500 Subject: [FFmpeg-user] webm vp9 options In-Reply-To: References: Message-ID: On Wed, Oct 1, 2014 at 9:07 AM, Carl Eugen Hoyos wrote: > Matt Zagrabelny d.umn.edu> writes: > >> -strict experimental \ > > Why are you adding -strict experimental to > your command line? I was following a video from a Google fellow: http://www.slideshare.net/DevCentralAMD/mm-4113-jamesbankoski http://www.youtube.com/watch?v=aH4JykvHMEM >> I'm looking for very good (or best) encoding. > >> Encoding time isn't a huge factor for me - >> at least right now. > > Did you already encode anything with the vp9 > encoder? (Longer than a minute.) Still encoding. :) It takes a *long* time - something like 150x. I'll probably end up changing to '-quality good'. Cheers, -m From cehoyos at ag.or.at Wed Oct 1 16:53:46 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Oct 2014 14:53:46 +0000 (UTC) Subject: [FFmpeg-user] webm vp9 options References: Message-ID: Matt Zagrabelny d.umn.edu> writes: > >> -strict experimental \ > > > > Why are you adding -strict experimental to > > your command line? > > I was following a video from a Google fellow: Please remove it. > >> Encoding time isn't a huge factor for me - > >> at least right now. > > > > Did you already encode anything with the vp9 > > encoder? (Longer than a minute.) > > Still encoding. :) > > It takes a *long* time - something like 150x. What I wanted to tell you is that I strongly suspect encoding time is always a very huge factor when using vp9, no matter what you thought before trying it. Carl Eugen From mzagrabe at d.umn.edu Wed Oct 1 16:59:10 2014 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 1 Oct 2014 09:59:10 -0500 Subject: [FFmpeg-user] webm vp9 options In-Reply-To: References: Message-ID: On Wed, Oct 1, 2014 at 9:53 AM, Carl Eugen Hoyos wrote: > Matt Zagrabelny d.umn.edu> writes: > >> >> -strict experimental \ >> > >> > Why are you adding -strict experimental to >> > your command line? >> >> I was following a video from a Google fellow: > > Please remove it. Okay. Is there any explanation other than "it is not needed"? Just out of curiosity, what is the effect of leaving it in? > >> >> Encoding time isn't a huge factor for me - >> >> at least right now. >> > >> > Did you already encode anything with the vp9 >> > encoder? (Longer than a minute.) >> >> Still encoding. :) >> >> It takes a *long* time - something like 150x. > > What I wanted to tell you is that I strongly > suspect encoding time is always a very huge > factor when using vp9, no matter what you > thought before trying it. Sure. -m From cehoyos at ag.or.at Wed Oct 1 17:22:58 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Oct 2014 15:22:58 +0000 (UTC) Subject: [FFmpeg-user] webm vp9 options References: Message-ID: Matt Zagrabelny d.umn.edu> writes: > >> > Why are you adding -strict experimental > >> > to your command line? > > Please remove it. > > Okay. Is there any explanation other than > "it is not needed"? Of course. Longer command lines are harder to debug than shorter command lines (just as longer configure lines are harder to debug than shorter configure lines). Carl Eugen From belcampo at zonnet.nl Wed Oct 1 18:21:59 2014 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Wed, 1 Oct 2014 18:21:59 +0200 Subject: [FFmpeg-user] Dual Xeon VS Haswell-E, maximize fps In-Reply-To: References: <2D118ACF-3503-42F3-8EFE-FA24CE92C312@zonnet.nl> <24AB55B7-3410-4C91-8A34-9B7360B95A1E@zonnet.nl> <8F548F5B-02CC-48DA-9494-2B54EA8F39C9@zonnet.nl> Message-ID: <0EC2EC56-4F1B-4DCB-871E-500D95F236EB@zonnet.nl> Some additional things to consider. Perofrm some short tests, with a 1000 frames file, try with threads 1, threads 2, threads 3, etc Threads 1 gives you 100% of a single core say 4fps. Threads 2 doesn?t perform 8fps, because of overhead, and adding another thread adds less then the 2nd core. The sum of several single threaded encodings will result in more total-fps then 1 multithreaded encoding. If you want 40fps you can easily add as many DualCelerons as mentioned before to get the desired result, you only need to add the ?missing? fps to the CPU you already have. If you could send a 1000frames file, I?m happy to test te results for the mentioned Celeron. Henk On 01 Oct 2014, at 04:07, Ryan M wrote: > It is definitely something to think of/consider. Thanks for the input. > > On Mon, Sep 29, 2014 at 2:14 PM, Henk D. Schoneveld > wrote: > >> Size of 1 system 8 * 8.5 * 2.25 inches, so they are very small just a >> little bigger then an Apple Mini. >> So 8 of them doen?t take that much space, you can stack them. >> >> On 29 Sep 2014, at 18:37, Ryan M wrote: >> >>> Yeah really the actual space/room is the issue there, not sure where i'd >>> put that. >>> With PPSS, it looks like it distributes the encoding of different files >>> over the available resources, it wouldn't spread a single encoding job >> over >>> them correct? >> Yes that?s correct. If 1 resource becomes free, job done, it takes the >> next file to be done. >>> I do need a way to automate ffmpeg instances so more jobs >>> can run at the same time. >> You can run as many jobs as you do have CPU cores, with 8 systems being >> DualCore, 16 jobs at once. >>> My jobs aren't just a bunch of files sitting in >>> a directory, it is querying a db for files that need to be encoded in >>> various ways. >> You could run multiple instances of PPSS, with different encoding >> parameters. You could query your DB for files with ffmpeg parameters X, >> make symlinks to Directory X >> and >> another query for files with parameters Y and make symlinks to directory Y >> One PPSS instance runs the X and another instance runs the Y symlinks >> directory. >>> >>> >>> On Mon, Sep 29, 2014 at 11:15 AM, Henk D. Schoneveld >> >>> wrote: >>> >>>> Why wouldn?t it be realistic ? >>>> Have a look at https://code.google.com/p/ppss/ to distribute jobs over >>>> the amount of systems you have and works like a charm. >>>> On 29 Sep 2014, at 17:05, Ryan M wrote: >>>> >>>>> I don't know that it is realistic to have 8 systems running though. >> If I >>>>> can pay more and have the approx same amount of throughput with one >>>> system, >>>>> that would be better. >>>> In what way would it be better, less room, yes but that?s very expensive >>>> room you pay for in my opinion. >>>>> I just don't want to pay like $4k more (for the >>>>> Xeon vs Haswell-EP) and only get a few more fps out of it. If stepping >>>> up >>>>> to Xeon allows ~40fps like Sean said then it is probably worth it. >>>> Thank >>>>> you very much for the input. >>>>> >>>>> On Sun, Sep 28, 2014 at 7:23 AM, Henk D. Schoneveld < >> belcampo at zonnet.nl> >>>>> wrote: >>>>> >>>>>> >>>>>> On 28 Sep 2014, at 13:13, Henk D. Schoneveld >>>> wrote: >>>>>> >>>>>>> >>>>>>> On 26 Sep 2014, at 18:36, Ryan M wrote: >>>>>>> >>>>>>>> I am putting together hardware to encode a large and ever growing >>>>>> catalog >>>>>>>> of video using ffmpeg/x264. Much of the source video is 1080p >>>> ProResHQ. >>>>>>>> Currently I have a box with a Haswell 4770k CPU which gets around >>>> 12-15 >>>>>>>> fps, I am of course looking to increase that as much as possible. >>>>>>> Have a look at >>>>>> >>>> >> http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-5960X+%40+3.00GHz&id=2332 >>>>>>> and compare with >>>>>>> >>>>>> >>>> >> http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-4770K+%40+3.50GHz&id=1919 >>>>>>> or in 1 view >>>>>>> http://www.cpubenchmark.net/compare.php?cmp[]=1919&cmp[]=2364 >>>>>>> 7 times the price for less then 2 times the performance. >>>>>>> Spreading the task over more much cheaper CPU?s gives you more bang >> for >>>>>> the buck if realtime encoding isn?t needed. >>>>>>> You could use 8 Dual Celeron systems to get the same performance as 1 >>>>>> E5-2690 where CPU cost would be 8x52.45 vs. 1x2299.99 Of course >>>>>> motherboards etc are needed and housing but a low cost MB and Housing >>>> can >>>>>> be bought at < 100.00 a piece. 8*(100+52.45) ~ 1220.00 >>>>>>> Saved more then $1.000 And the Xeon still needs a motherboard and >> case >>>>>> of course. >>>>>> The CPU Mark and single thread performance are good indicators for >>>>>> relative ffmpeg encoding speeds. I do have i5 i7 and the named >> Celerons >>>>>> which I compared extensively with the same source files and encoding >>>>>> parameters. >>>>>> Disk I/O isn?t any problem, think of it, 5 times BluRay bitrates >> results >>>>>> in 90Kb/s < 12MB/s. Every modern disk has no problem with that and >> even >>>>>> old-fashioned nics, 100Mb/s can cope with that. >>>>>>>> >>>>>>>> Trying to determine if getting the latest dual CPU Xeon (such as >>>> E5-2690 >>>>>>>> v3) setup is going to be worth the significant additional cost over >>>> the >>>>>>>> best Haswell-E (Core i7-5960X). >>>>>>>> >>>>>>>> I've read lots of articles/posts and it is not clear to me. I know >>>>>> worth >>>>>>>> is subjective but looking to know if there'll be significant >> increase >>>> in >>>>>>>> fps using 2 Xeons. I need to justify the $6-7k price tag. >>>>>>>> >>>>>>>> Any insight/experience would be appreciated. >>>>>>>> >>>>>>>> thanks >>>>>>>> Ryan >>>>>>>> _______________________________________________ >>>>>>>> ffmpeg-user mailing list >>>>>>>> ffmpeg-user at ffmpeg.org >>>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>>> >>>>>>> _______________________________________________ >>>>>>> ffmpeg-user mailing list >>>>>>> ffmpeg-user at ffmpeg.org >>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>> >>>>>> _______________________________________________ >>>>>> ffmpeg-user mailing list >>>>>> ffmpeg-user at ffmpeg.org >>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>> >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> 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 sagarawmw at yahoo.com Wed Oct 1 19:35:12 2014 From: sagarawmw at yahoo.com (Sagara Wijetunga) Date: Wed, 1 Oct 2014 17:35:12 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode In-Reply-To: References: Message-ID: <1263075546.320783.1412184913009.JavaMail.yahoo@jws10797.mail.gq1.yahoo.com> Hi Carl, thanks for the reply. 1. I use libvpx to encode, and ffvp9 to decode. --enable-libvpx --disable-decoder=libvpx_vp8 --disable-decoder=libvpx_vp9 2. Today I built the latest ffmpeg (2.4.1) with the old libvpx (1.3.0). It still generates vp9 files with incorrect PTS values at decode. 3. My preset file for encoding: cat ~/.ffmpeg/libvpx-vp9-good.ffpreset vcodec=libvpx-vp9 g=120 lag-in-frames=16 deadline=good cpu-used=0 vprofile=0 qmax=48 qmin=0 slices=4 b=2M #ignored unless using -pass 2 maxrate=24M minrate=100k auto-alt-ref=1 arnr-maxframes=7 arnr-strength=5 arnr-type=centered Regards Sagara On Wednesday, October 1, 2014 5:04 AM, Carl Eugen Hoyos wrote: Sagara Wijetunga ffmpeg.org> writes: > I noted modern ffmpeg/libvpx generates incorrect > PTS for vp9 when decode. What about FFmpeg without any external libraries? Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Oct 1 19:47:21 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Oct 2014 17:47:21 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode References: <1263075546.320783.1412184913009.JavaMail.yahoo@jws10797.mail.gq1.yahoo.com> Message-ID: Sagara Wijetunga ffmpeg.org> writes: > 1. I use libvpx to encode, and ffvp9 to decode. > > --enable-libvpx --disable-decoder=libvpx_vp8 > --disable-decoder=libvpx_vp9 Does that mean that you tested the issue now both with --disable-decoder=libvpx_vp9 and with --enable-libvpx --disable-decoder=vp9 --disable-parser=vp9 or only with one decoder? > 2. Today I built the latest ffmpeg (2.4.1) 2.4.1 is not latest FFmpeg. Please do not top-post here, Carl Eugen From sagarawmw at yahoo.com Wed Oct 1 20:01:39 2014 From: sagarawmw at yahoo.com (Sagara Wijetunga) Date: Wed, 1 Oct 2014 18:01:39 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode In-Reply-To: References: Message-ID: <46511973.326639.1412186499397.JavaMail.yahoo@jws10776.mail.gq1.yahoo.com> > 1. I use libvpx to encode, and ffvp9 to decode. > > --enable-libvpx --disable-decoder=libvpx_vp8 > --disable-decoder=libvpx_vp9 Does that mean that you tested the issue now both with --disable-decoder=libvpx_vp9 and with --enable-libvpx --disable-decoder=vp9 --disable-parser=vp9 or only with one decoder? All the while I was using only one decoder (vp9). I only changed the libvpx from git version to the old libvpx v1.3.0 and rebuilt the ffmpeg, and re-encoded another vp9 file. What other tests you think I should fro to narrow down the issue. Regards Sagara From cehoyos at ag.or.at Thu Oct 2 10:07:13 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 Oct 2014 08:07:13 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffmpeg_detects_audio_as_pcm=5Fs16be=2C_bu?= =?utf-8?q?t_it_seems_to_be_32bit?= References: <53E507C3.2030806@dequid.net> <53E7AD13.2050301@dequid.net> Message-ID: Dietmar Thal dequid.net> writes: > I uploaded the sample to http://www.datafilehost.com/d/f0563d42 Should be fixed in current FFmpeg git head, thank you for the sample and sorry for the delay! Carl Eugen From spider58 at gmail.com Thu Oct 2 11:05:56 2014 From: spider58 at gmail.com (spider58) Date: Thu, 2 Oct 2014 12:05:56 +0300 Subject: [FFmpeg-user] BISS KEY Message-ID: Hello. I have some .TS video files which recorded from UDP. This files encoded by BISS KEY. I can play this files with VLC with BISS KEY option. ffmpeg -i "c:\somefile.ts" this comment giving error message below Could not find codec parameters for stream 0 (video .............................. Unspecified size Could not find codec parameters for stream 1 (audio.............................. Unspecified size because of BISS key. How can i define BISS Key to ffmpeg as parameter Inadvance Thanks. From cehoyos at ag.or.at Thu Oct 2 11:27:52 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 Oct 2014 09:27:52 +0000 (UTC) Subject: [FFmpeg-user] BISS KEY References: Message-ID: spider58 gmail.com> writes: > I have some .TS video files which recorded from > UDP. This files encoded by BISS KEY. I can play > this files with VLC with BISS KEY option. I don't think a sample (including key) was ever uploaded. Carl Eugen From umansky at torcrobotics.com Thu Oct 2 16:00:46 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Thu, 2 Oct 2014 14:00:46 +0000 Subject: [FFmpeg-user] Save segmented and fragmented h264 to disk Message-ID: <205DBBE9F739414F9815C142C7EA61CC03612E0C@exchsvr01.torcrobotics.net> Hello, I am currently recording video of the desktop using UScreenCapture set up as shown in http://nerdlogger.com/2011/11/03/stream-your-windows-desktop-using-ffmpeg/, that's all set up working fine. Running the ffmpeg static 64 bit build from 2014-09-28 (git-3edb9aa) in Windows 7 64bit I get playable fragmented mp4 (played in VLC) saving correctly with the following command: ffmpeg -f dshow -i video="UScreenCapture" -vcodec libx264 -r 25 -q 5 -preset ultrafast -movflags frag_keyframe C:\Users\user\Desktop\video.mp4 -y I'd like to segment files by time, so I get X minute chunks of video that are all individually playable as well as preserving fragmentation in case of power loss (this will be running on a portable computer). When I run: ffmpeg -f dshow -i video="UScreenCapture" -codec copy -map 0 -f segment -vcodec libx264 -q 5 -r 25 -preset ultrafast -movflags frag_keyframe -segment_time 10 -reset_timestamps 1 C:\Users\user\Desktop\Video_%04d.mp4 -y I cannot get the last file (the fragmented one) to play at all. (The segmented files before the last one are fine) The last file has data in it (filesize is non-zero) but VLC cannot open it. Ideally the fragmented file wouldn't require any additional processing later to turn it into a non-fragmented file that's playable. Any help would be appreciated. Thanks, Mark From rymerrick at gmail.com Thu Oct 2 18:06:32 2014 From: rymerrick at gmail.com (Ryan M) Date: Thu, 2 Oct 2014 12:06:32 -0400 Subject: [FFmpeg-user] Dual Xeon VS Haswell-E, maximize fps In-Reply-To: <0EC2EC56-4F1B-4DCB-871E-500D95F236EB@zonnet.nl> References: <2D118ACF-3503-42F3-8EFE-FA24CE92C312@zonnet.nl> <24AB55B7-3410-4C91-8A34-9B7360B95A1E@zonnet.nl> <8F548F5B-02CC-48DA-9494-2B54EA8F39C9@zonnet.nl> <0EC2EC56-4F1B-4DCB-871E-500D95F236EB@zonnet.nl> Message-ID: "The sum of several single threaded encodings will result in more total-fps then 1 multithreaded encoding." This is interesting. So whatever route I take (many separate boxes or one many core system) feeding it with several jobs at once and limiting it to one core is the way to go. The issue with what your suggesting then is that if there is only one or two jobs to run, a lot of the boxes are going to be sitting there doing nothing. Maximizing the throughput on your system requires it always being feed the maximum # of jobs. The dual Xeon (or lesser but still many core) is going to be more flexible in that regard (so the high price tag is for that flexibility). On Wed, Oct 1, 2014 at 12:21 PM, Henk D. Schoneveld wrote: > Some additional things to consider. > > Perofrm some short tests, with a 1000 frames file, try with threads 1, > threads 2, threads 3, etc > Threads 1 gives you 100% of a single core say 4fps. Threads 2 doesn?t > perform 8fps, because of overhead, and adding another thread adds less then > the 2nd core. The sum of several single threaded encodings will result in > more total-fps then 1 multithreaded encoding. > > If you want 40fps you can easily add as many DualCelerons as mentioned > before to get the desired result, you only need to add the ?missing? fps to > the CPU you already have. > > If you could send a 1000frames file, I?m happy to test te results for the > mentioned Celeron. > > Henk > > On 01 Oct 2014, at 04:07, Ryan M wrote: > > > It is definitely something to think of/consider. Thanks for the input. > > > > On Mon, Sep 29, 2014 at 2:14 PM, Henk D. Schoneveld > > wrote: > > > >> Size of 1 system 8 * 8.5 * 2.25 inches, so they are very small just a > >> little bigger then an Apple Mini. > >> So 8 of them doen?t take that much space, you can stack them. > >> > >> On 29 Sep 2014, at 18:37, Ryan M wrote: > >> > >>> Yeah really the actual space/room is the issue there, not sure where > i'd > >>> put that. > >>> With PPSS, it looks like it distributes the encoding of different files > >>> over the available resources, it wouldn't spread a single encoding job > >> over > >>> them correct? > >> Yes that?s correct. If 1 resource becomes free, job done, it takes the > >> next file to be done. > >>> I do need a way to automate ffmpeg instances so more jobs > >>> can run at the same time. > >> You can run as many jobs as you do have CPU cores, with 8 systems being > >> DualCore, 16 jobs at once. > >>> My jobs aren't just a bunch of files sitting in > >>> a directory, it is querying a db for files that need to be encoded in > >>> various ways. > >> You could run multiple instances of PPSS, with different encoding > >> parameters. You could query your DB for files with ffmpeg parameters X, > >> make symlinks to Directory X > >> and > >> another query for files with parameters Y and make symlinks to > directory Y > >> One PPSS instance runs the X and another instance runs the Y symlinks > >> directory. > >>> > >>> > >>> On Mon, Sep 29, 2014 at 11:15 AM, Henk D. Schoneveld < > belcampo at zonnet.nl > >>> > >>> wrote: > >>> > >>>> Why wouldn?t it be realistic ? > >>>> Have a look at https://code.google.com/p/ppss/ to distribute jobs > over > >>>> the amount of systems you have and works like a charm. > >>>> On 29 Sep 2014, at 17:05, Ryan M wrote: > >>>> > >>>>> I don't know that it is realistic to have 8 systems running though. > >> If I > >>>>> can pay more and have the approx same amount of throughput with one > >>>> system, > >>>>> that would be better. > >>>> In what way would it be better, less room, yes but that?s very > expensive > >>>> room you pay for in my opinion. > >>>>> I just don't want to pay like $4k more (for the > >>>>> Xeon vs Haswell-EP) and only get a few more fps out of it. If > stepping > >>>> up > >>>>> to Xeon allows ~40fps like Sean said then it is probably worth it. > >>>> Thank > >>>>> you very much for the input. > >>>>> > >>>>> On Sun, Sep 28, 2014 at 7:23 AM, Henk D. Schoneveld < > >> belcampo at zonnet.nl> > >>>>> wrote: > >>>>> > >>>>>> > >>>>>> On 28 Sep 2014, at 13:13, Henk D. Schoneveld > >>>> wrote: > >>>>>> > >>>>>>> > >>>>>>> On 26 Sep 2014, at 18:36, Ryan M wrote: > >>>>>>> > >>>>>>>> I am putting together hardware to encode a large and ever growing > >>>>>> catalog > >>>>>>>> of video using ffmpeg/x264. Much of the source video is 1080p > >>>> ProResHQ. > >>>>>>>> Currently I have a box with a Haswell 4770k CPU which gets around > >>>> 12-15 > >>>>>>>> fps, I am of course looking to increase that as much as possible. > >>>>>>> Have a look at > >>>>>> > >>>> > >> > http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-5960X+%40+3.00GHz&id=2332 > >>>>>>> and compare with > >>>>>>> > >>>>>> > >>>> > >> > http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-4770K+%40+3.50GHz&id=1919 > >>>>>>> or in 1 view > >>>>>>> http://www.cpubenchmark.net/compare.php?cmp[]=1919&cmp[]=2364 > >>>>>>> 7 times the price for less then 2 times the performance. > >>>>>>> Spreading the task over more much cheaper CPU?s gives you more bang > >> for > >>>>>> the buck if realtime encoding isn?t needed. > >>>>>>> You could use 8 Dual Celeron systems to get the same performance > as 1 > >>>>>> E5-2690 where CPU cost would be 8x52.45 vs. 1x2299.99 Of course > >>>>>> motherboards etc are needed and housing but a low cost MB and > Housing > >>>> can > >>>>>> be bought at < 100.00 a piece. 8*(100+52.45) ~ 1220.00 > >>>>>>> Saved more then $1.000 And the Xeon still needs a motherboard and > >> case > >>>>>> of course. > >>>>>> The CPU Mark and single thread performance are good indicators for > >>>>>> relative ffmpeg encoding speeds. I do have i5 i7 and the named > >> Celerons > >>>>>> which I compared extensively with the same source files and encoding > >>>>>> parameters. > >>>>>> Disk I/O isn?t any problem, think of it, 5 times BluRay bitrates > >> results > >>>>>> in 90Kb/s < 12MB/s. Every modern disk has no problem with that and > >> even > >>>>>> old-fashioned nics, 100Mb/s can cope with that. > >>>>>>>> > >>>>>>>> Trying to determine if getting the latest dual CPU Xeon (such as > >>>> E5-2690 > >>>>>>>> v3) setup is going to be worth the significant additional cost > over > >>>> the > >>>>>>>> best Haswell-E (Core i7-5960X). > >>>>>>>> > >>>>>>>> I've read lots of articles/posts and it is not clear to me. I > know > >>>>>> worth > >>>>>>>> is subjective but looking to know if there'll be significant > >> increase > >>>> in > >>>>>>>> fps using 2 Xeons. I need to justify the $6-7k price tag. > >>>>>>>> > >>>>>>>> Any insight/experience would be appreciated. > >>>>>>>> > >>>>>>>> thanks > >>>>>>>> Ryan > >>>>>>>> _______________________________________________ > >>>>>>>> ffmpeg-user mailing list > >>>>>>>> ffmpeg-user at ffmpeg.org > >>>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> ffmpeg-user mailing list > >>>>>>> ffmpeg-user at ffmpeg.org > >>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>>>> > >>>>>> _______________________________________________ > >>>>>> ffmpeg-user mailing list > >>>>>> ffmpeg-user at ffmpeg.org > >>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>>>> > >>>>> _______________________________________________ > >>>>> ffmpeg-user mailing list > >>>>> ffmpeg-user at ffmpeg.org > >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>> > >>>> _______________________________________________ > >>>> ffmpeg-user mailing list > >>>> ffmpeg-user at ffmpeg.org > >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>>> > >>> _______________________________________________ > >>> ffmpeg-user mailing list > >>> ffmpeg-user at ffmpeg.org > >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >> > >> _______________________________________________ > >> 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 d at dequid.net Thu Oct 2 11:16:25 2014 From: d at dequid.net (Dietmar Thal) Date: Thu, 02 Oct 2014 11:16:25 +0200 Subject: [FFmpeg-user] ffmpeg detects audio as pcm_s16be, but it seems to be 32bit In-Reply-To: References: <53E507C3.2030806@dequid.net> <53E7AD13.2050301@dequid.net> Message-ID: <542D17E9.6070700@dequid.net> On 02.10.2014 10:07, Carl Eugen Hoyos wrote: > Should be fixed in current FFmpeg git head, Thank you Carl, i've tried with my sample and the current Zeranoe FFmpeg build (git-c29d999 64-bit) but no luck. Is it already in the win builds? Or can you provide me a command line that worked? Thanks, Dietmar From belcampo at zonnet.nl Thu Oct 2 20:12:54 2014 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Thu, 2 Oct 2014 20:12:54 +0200 Subject: [FFmpeg-user] Dual Xeon VS Haswell-E, maximize fps In-Reply-To: References: <2D118ACF-3503-42F3-8EFE-FA24CE92C312@zonnet.nl> <24AB55B7-3410-4C91-8A34-9B7360B95A1E@zonnet.nl> <8F548F5B-02CC-48DA-9494-2B54EA8F39C9@zonnet.nl> <0EC2EC56-4F1B-4DCB-871E-500D95F236EB@zonnet.nl> Message-ID: <38799ECA-09A6-449F-BA10-202E65D4AC6F@zonnet.nl> On 02 Oct 2014, at 18:06, Ryan M wrote: > "The sum of several single threaded encodings will result in more total-fps > then 1 multithreaded encoding." > This is interesting. So whatever route I take (many separate boxes or one > many core system) feeding it with several jobs at once and limiting it to > one core is the way to go. > The issue with what your suggesting then is that if there is only one or > two jobs to run, a lot of the boxes are going to be sitting there doing > nothing. Maximizing the throughput on your system requires it always being > feed the maximum # of jobs. With some clever thinking you can divide your source-file in amount of pieces = # cores-1. This way all cores create 1 audio and # cores -1 video parts with can be catted together and muxed to 1 new file. Catting and muxing doesn?t cost any time in relation to the time needed for encoding. Your source file ProResHQ is afaik already a I-frames only file so dividing by # cores -1 is very easy. > The dual Xeon (or lesser but still many core) > is going to be more flexible in that regard (so the high price tag is for > that flexibility). Yes if the one time investment in thinking is more costly. > > On Wed, Oct 1, 2014 at 12:21 PM, Henk D. Schoneveld > wrote: > >> Some additional things to consider. >> >> Perofrm some short tests, with a 1000 frames file, try with threads 1, >> threads 2, threads 3, etc >> Threads 1 gives you 100% of a single core say 4fps. Threads 2 doesn?t >> perform 8fps, because of overhead, and adding another thread adds less then >> the 2nd core. The sum of several single threaded encodings will result in >> more total-fps then 1 multithreaded encoding. >> >> If you want 40fps you can easily add as many DualCelerons as mentioned >> before to get the desired result, you only need to add the ?missing? fps to >> the CPU you already have. >> >> If you could send a 1000frames file, I?m happy to test te results for the >> mentioned Celeron. >> >> Henk >> >> On 01 Oct 2014, at 04:07, Ryan M wrote: >> >>> It is definitely something to think of/consider. Thanks for the input. >>> >>> On Mon, Sep 29, 2014 at 2:14 PM, Henk D. Schoneveld >>> wrote: >>> >>>> Size of 1 system 8 * 8.5 * 2.25 inches, so they are very small just a >>>> little bigger then an Apple Mini. >>>> So 8 of them doen?t take that much space, you can stack them. >>>> >>>> On 29 Sep 2014, at 18:37, Ryan M wrote: >>>> >>>>> Yeah really the actual space/room is the issue there, not sure where >> i'd >>>>> put that. >>>>> With PPSS, it looks like it distributes the encoding of different files >>>>> over the available resources, it wouldn't spread a single encoding job >>>> over >>>>> them correct? >>>> Yes that?s correct. If 1 resource becomes free, job done, it takes the >>>> next file to be done. >>>>> I do need a way to automate ffmpeg instances so more jobs >>>>> can run at the same time. >>>> You can run as many jobs as you do have CPU cores, with 8 systems being >>>> DualCore, 16 jobs at once. >>>>> My jobs aren't just a bunch of files sitting in >>>>> a directory, it is querying a db for files that need to be encoded in >>>>> various ways. >>>> You could run multiple instances of PPSS, with different encoding >>>> parameters. You could query your DB for files with ffmpeg parameters X, >>>> make symlinks to Directory X >>>> and >>>> another query for files with parameters Y and make symlinks to >> directory Y >>>> One PPSS instance runs the X and another instance runs the Y symlinks >>>> directory. >>>>> >>>>> >>>>> On Mon, Sep 29, 2014 at 11:15 AM, Henk D. Schoneveld < >> belcampo at zonnet.nl >>>>> >>>>> wrote: >>>>> >>>>>> Why wouldn?t it be realistic ? >>>>>> Have a look at https://code.google.com/p/ppss/ to distribute jobs >> over >>>>>> the amount of systems you have and works like a charm. >>>>>> On 29 Sep 2014, at 17:05, Ryan M wrote: >>>>>> >>>>>>> I don't know that it is realistic to have 8 systems running though. >>>> If I >>>>>>> can pay more and have the approx same amount of throughput with one >>>>>> system, >>>>>>> that would be better. >>>>>> In what way would it be better, less room, yes but that?s very >> expensive >>>>>> room you pay for in my opinion. >>>>>>> I just don't want to pay like $4k more (for the >>>>>>> Xeon vs Haswell-EP) and only get a few more fps out of it. If >> stepping >>>>>> up >>>>>>> to Xeon allows ~40fps like Sean said then it is probably worth it. >>>>>> Thank >>>>>>> you very much for the input. >>>>>>> >>>>>>> On Sun, Sep 28, 2014 at 7:23 AM, Henk D. Schoneveld < >>>> belcampo at zonnet.nl> >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>> On 28 Sep 2014, at 13:13, Henk D. Schoneveld >>>>>> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> On 26 Sep 2014, at 18:36, Ryan M wrote: >>>>>>>>> >>>>>>>>>> I am putting together hardware to encode a large and ever growing >>>>>>>> catalog >>>>>>>>>> of video using ffmpeg/x264. Much of the source video is 1080p >>>>>> ProResHQ. >>>>>>>>>> Currently I have a box with a Haswell 4770k CPU which gets around >>>>>> 12-15 >>>>>>>>>> fps, I am of course looking to increase that as much as possible. >>>>>>>>> Have a look at >>>>>>>> >>>>>> >>>> >> http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-5960X+%40+3.00GHz&id=2332 >>>>>>>>> and compare with >>>>>>>>> >>>>>>>> >>>>>> >>>> >> http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-4770K+%40+3.50GHz&id=1919 >>>>>>>>> or in 1 view >>>>>>>>> http://www.cpubenchmark.net/compare.php?cmp[]=1919&cmp[]=2364 >>>>>>>>> 7 times the price for less then 2 times the performance. >>>>>>>>> Spreading the task over more much cheaper CPU?s gives you more bang >>>> for >>>>>>>> the buck if realtime encoding isn?t needed. >>>>>>>>> You could use 8 Dual Celeron systems to get the same performance >> as 1 >>>>>>>> E5-2690 where CPU cost would be 8x52.45 vs. 1x2299.99 Of course >>>>>>>> motherboards etc are needed and housing but a low cost MB and >> Housing >>>>>> can >>>>>>>> be bought at < 100.00 a piece. 8*(100+52.45) ~ 1220.00 >>>>>>>>> Saved more then $1.000 And the Xeon still needs a motherboard and >>>> case >>>>>>>> of course. >>>>>>>> The CPU Mark and single thread performance are good indicators for >>>>>>>> relative ffmpeg encoding speeds. I do have i5 i7 and the named >>>> Celerons >>>>>>>> which I compared extensively with the same source files and encoding >>>>>>>> parameters. >>>>>>>> Disk I/O isn?t any problem, think of it, 5 times BluRay bitrates >>>> results >>>>>>>> in 90Kb/s < 12MB/s. Every modern disk has no problem with that and >>>> even >>>>>>>> old-fashioned nics, 100Mb/s can cope with that. >>>>>>>>>> >>>>>>>>>> Trying to determine if getting the latest dual CPU Xeon (such as >>>>>> E5-2690 >>>>>>>>>> v3) setup is going to be worth the significant additional cost >> over >>>>>> the >>>>>>>>>> best Haswell-E (Core i7-5960X). >>>>>>>>>> >>>>>>>>>> I've read lots of articles/posts and it is not clear to me. I >> know >>>>>>>> worth >>>>>>>>>> is subjective but looking to know if there'll be significant >>>> increase >>>>>> in >>>>>>>>>> fps using 2 Xeons. I need to justify the $6-7k price tag. >>>>>>>>>> >>>>>>>>>> Any insight/experience would be appreciated. >>>>>>>>>> >>>>>>>>>> thanks >>>>>>>>>> Ryan >>>>>>>>>> _______________________________________________ >>>>>>>>>> ffmpeg-user mailing list >>>>>>>>>> ffmpeg-user at ffmpeg.org >>>>>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> ffmpeg-user mailing list >>>>>>>>> ffmpeg-user at ffmpeg.org >>>>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> ffmpeg-user mailing list >>>>>>>> ffmpeg-user at ffmpeg.org >>>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> ffmpeg-user mailing list >>>>>>> ffmpeg-user at ffmpeg.org >>>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>> >>>>>> _______________________________________________ >>>>>> ffmpeg-user mailing list >>>>>> ffmpeg-user at ffmpeg.org >>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>>> >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 842 bytes Desc: Message signed with OpenPGP using GPGMail URL: From henry.soang at umbocv.com Thu Oct 2 20:14:10 2014 From: henry.soang at umbocv.com (Henry Soang) Date: Fri, 3 Oct 2014 02:14:10 +0800 Subject: [FFmpeg-user] Can ffmpeg replay a live stream of constantly growing segmented *flv files? Message-ID: Hi all, ffmpeg question: I have configured nginx to segment a live stream from a camera into sequential *flv files (about 1 minute duration each) in a directory. Each *flv file has a timestamp. For example: [me at mybox /mydir] ls -lr test1*flv -rwxr-xr-x 1 root root 9898994 Sep 17 20:10 test1-1410946937.flv* -rwxr-xr-x 1 root root 10450933 Sep 17 17:42 test1-1410946906.flv* -rwxr-xr-x 1 root root 10437684 Sep 17 17:41 test1-1410946875.flv* -rwxr-xr-x 1 root root 10441149 Sep 17 17:41 test1-1410946844.flv* -rwxr-xr-x 1 root root 10454367 Sep 17 17:40 test1-1410946813.flv* -rwxr-xr-x 1 root root 10114779 Sep 17 17:40 test1-1410946783.flv* -rwxr-xr-x 1 root root 10454252 Sep 17 17:39 test1-1410946752.flv* -rwxr-xr-x 1 root root 10449784 Sep 17 17:39 test1-1410946721.flv* .... My question is: I would like for a way to create an rtmp live stream that are the contents of the *flv files in this directory combined - keeping in mind new files may be added as this is a live stream. Is there a way to get ffmpeg to do something like this? I thought perhaps the concat protocol could be used for this, but I *think* that is a one time read on all the *flv files and no way for it to discover the newly generated files in that directory. Thanks for an ideas. From rogerdpack2 at gmail.com Fri Oct 3 00:25:41 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 2 Oct 2014 16:25:41 -0600 Subject: [FFmpeg-user] Save segmented and fragmented h264 to disk In-Reply-To: <205DBBE9F739414F9815C142C7EA61CC03612E0C@exchsvr01.torcrobotics.net> References: <205DBBE9F739414F9815C142C7EA61CC03612E0C@exchsvr01.torcrobotics.net> Message-ID: Do you get the same failure using testsrc for input? On Thu, Oct 2, 2014 at 8:00 AM, Mark Umansky wrote: > Hello, > > I am currently recording video of the desktop using UScreenCapture set up > as shown in > http://nerdlogger.com/2011/11/03/stream-your-windows-desktop-using-ffmpeg/, > that's all set up working fine. Running the ffmpeg static 64 bit build from > 2014-09-28 (git-3edb9aa) in Windows 7 64bit > > I get playable fragmented mp4 (played in VLC) saving correctly with the > following command: > > ffmpeg -f dshow -i video="UScreenCapture" -vcodec libx264 -r 25 -q 5 > -preset ultrafast -movflags frag_keyframe C:\Users\user\Desktop\video.mp4 > -y > > I'd like to segment files by time, so I get X minute chunks of video that > are all individually playable as well as preserving fragmentation in case > of power loss (this will be running on a portable computer). > > When I run: > > ffmpeg -f dshow -i video="UScreenCapture" -codec copy -map 0 -f segment > -vcodec libx264 -q 5 -r 25 -preset ultrafast -movflags frag_keyframe > -segment_time 10 -reset_timestamps 1 C:\Users\user\Desktop\Video_%04d.mp4 -y > > I cannot get the last file (the fragmented one) to play at all. (The > segmented files before the last one are fine) The last file has data in it > (filesize is non-zero) but VLC cannot open it. Ideally the fragmented file > wouldn't require any additional processing later to turn it into a > non-fragmented file that's playable. > > Any help would be appreciated. > > Thanks, > Mark > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From d at dequid.net Thu Oct 2 21:17:30 2014 From: d at dequid.net (Dietmar Thal) Date: Thu, 02 Oct 2014 21:17:30 +0200 Subject: [FFmpeg-user] ffmpeg detects audio as pcm_s16be, but it seems to be 32bit In-Reply-To: <542D17E9.6070700@dequid.net> References: <53E507C3.2030806@dequid.net> <53E7AD13.2050301@dequid.net> <542D17E9.6070700@dequid.net> Message-ID: <542DA4CA.5000201@dequid.net> On 02.10.2014 11:16, Dietmar Thal wrote: > Thank you Carl, i've tried with my sample and the > current Zeranoe FFmpeg build (git-c29d999 64-bit) > but no luck. My fault, the current git head is not yet in the Zeranoe windows builds. I'll wait and post the results. Dietmar From xanadu at apost.plala.or.jp Fri Oct 3 09:51:42 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Fri, 3 Oct 2014 16:51:42 +0900 Subject: [FFmpeg-user] make error with libilbc enabling Message-ID: Hi, I get the following error while making ffmpeg with libilbc enabling: Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: "_WebRtcSpl_DownsampleFast", referenced from: _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) "_WebRtcSpl_DownsampleFast", referenced from: Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: "_WebRtcSpl_MaxAbsValueW16", referenced from: "_WebRtcSpl_DownsampleFast", referenced from: _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... (maybe you meant: _WebRtcSpl_MaxAbsValueW16C _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) "_WebRtcSpl_MaxAbsValueW16", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: "_WebRtcSpl_DownsampleFast", referenced from: "_WebRtcSpl_MaxAbsValueW16", referenced from: _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) (maybe you meant: _WebRtcSpl_MaxAbsValueW32C _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... (maybe you meant: _WebRtcSpl_MaxAbsValueW16C (maybe you meant: _WebRtcSpl_MaxAbsValueW16C) "_WebRtcSpl_MaxValueW32", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: "_WebRtcSpl_MaxAbsValueW16", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) (maybe you meant: _WebRtcSpl_MaxValueW32C _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... (maybe you meant: _WebRtcSpl_MaxAbsValueW32C _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) (maybe you meant: _WebRtcSpl_MaxAbsValueW32C (maybe you meant: _WebRtcSpl_MaxAbsValueW16C) ) "_WebRtcSpl_MaxValueW32", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: ) "_WebRtcSpl_MaxValueW32", referenced from: _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) (maybe you meant: _WebRtcSpl_MaxValueW32C _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) (maybe you meant: _WebRtcSpl_MaxAbsValueW32C _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) (maybe you meant: _WebRtcSpl_MaxValueW32C) ) "_WebRtcSpl_MaxValueW32", referenced from: ld: symbol(s) not found for architecture x86_64 ) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) (maybe you meant: _WebRtcSpl_MaxValueW32C) ld: symbol(s) not found for architecture x86_64 ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffserver_g] Error 1 make: *** Waiting for unfinished jobs.... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffprobe_g] Error 1 make: *** [ffplay_g] Error 1 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffmpeg_g] Error 1 Even though ffmpeg's configure script does not report any error, I have no idea for this kind of error in make phase. Please help me!! My configure option is: $ ./configure --prefix=/Volumes/ffmpeg_compile" --pkg-config-flags=--static --enable-libilbc NOTE: I know libilbc have updated on September 18th. With this update, libilbc can not be built with cmake. So I build it with the following procedure: $ cd libilbc $ libtoolize $ aclocal -I m4 $ autoheader $ automake -a -c $ autoconf Note that I build each auto tools with "./configure --prefix=/Volumes/ffmpeg_compile" option. $ ./configure --prefix=/Volumes/ffmpeg_compile --disable-shared $ make $ make install // Miya From xanadu at apost.plala.or.jp Fri Oct 3 09:56:17 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Fri, 3 Oct 2014 16:56:17 +0900 Subject: [FFmpeg-user] make error with libilbc enabling Message-ID: Hi, I get the following error while making ffmpeg with libilbc enabling: Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: "_WebRtcSpl_DownsampleFast", referenced from: _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) "_WebRtcSpl_DownsampleFast", referenced from: Undefined symbols for architecture x86_64: "_WebRtcSpl_CrossCorrelation", referenced from: "_WebRtcSpl_MaxAbsValueW16", referenced from: "_WebRtcSpl_DownsampleFast", referenced from: _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_MyCorr in libilbc.a(my_corr.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... (maybe you meant: _WebRtcSpl_MaxAbsValueW16C _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) "_WebRtcSpl_MaxAbsValueW16", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: "_WebRtcSpl_DownsampleFast", referenced from: "_WebRtcSpl_MaxAbsValueW16", referenced from: _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) (maybe you meant: _WebRtcSpl_MaxAbsValueW32C _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... (maybe you meant: _WebRtcSpl_MaxAbsValueW16C (maybe you meant: _WebRtcSpl_MaxAbsValueW16C) "_WebRtcSpl_MaxValueW32", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: "_WebRtcSpl_MaxAbsValueW16", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_EncodeImpl in libilbc.a(encode.o) (maybe you meant: _WebRtcSpl_MaxValueW32C _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) _WebRtcIlbcfix_CbSearch in libilbc.a(cb_search.o) _WebRtcIlbcfix_DoThePlc in libilbc.a(do_plc.o) _WebRtcIlbcfix_EnhancerInterface in libilbc.a(enhancer_interface.o) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_StateSearch in libilbc.a(state_search.o) _WebRtcIlbcfix_XcorrCoef in libilbc.a(xcorr_coef.o) ... (maybe you meant: _WebRtcSpl_MaxAbsValueW32C _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) (maybe you meant: _WebRtcSpl_MaxAbsValueW32C (maybe you meant: _WebRtcSpl_MaxAbsValueW16C) ) "_WebRtcSpl_MaxValueW32", referenced from: ) "_WebRtcSpl_MaxAbsValueW32", referenced from: ) "_WebRtcSpl_MaxValueW32", referenced from: _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) _WebRtcIlbcfix_CbSearchCore in libilbc.a(cb_search_core.o) (maybe you meant: _WebRtcSpl_MaxValueW32C _WebRtcIlbcfix_Refiner in libilbc.a(refiner.o) (maybe you meant: _WebRtcSpl_MaxAbsValueW32C _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) (maybe you meant: _WebRtcSpl_MaxValueW32C) ) "_WebRtcSpl_MaxValueW32", referenced from: ld: symbol(s) not found for architecture x86_64 ) _WebRtcIlbcfix_FrameClassify in libilbc.a(frame_classify.o) (maybe you meant: _WebRtcSpl_MaxValueW32C) ld: symbol(s) not found for architecture x86_64 ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffserver_g] Error 1 make: *** Waiting for unfinished jobs.... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffprobe_g] Error 1 make: *** [ffplay_g] Error 1 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffmpeg_g] Error 1 Even though ffmpeg's configure script does not report any error, I have no idea for this kind of error in make phase. Please help me!! My configure option is: $ ./configure --prefix=/Volumes/ffmpeg_compile" --pkg-config-flags=--static --enable-libilbc NOTE: I know libilbc have updated on September 18th. With this update, libilbc can not be built with cmake. So I build it with the following procedure: $ cd libilbc $ libtoolize $ aclocal -I m4 $ autoheader $ automake -a -c $ autoconf Note that I build each auto tools with "./configure --prefix=/Volumes/ffmpeg_compile" option. $ ./configure --prefix=/Volumes/ffmpeg_compile --disable-shared $ make $ make install // Miya From xanadu at apost.plala.or.jp Fri Oct 3 22:01:00 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Sat, 4 Oct 2014 05:01:00 +0900 Subject: [FFmpeg-user] make error with libilbc enabling In-Reply-To: References: Message-ID: <8FF65814-527A-4684-A488-91955FE1FE42@apost.plala.or.jp> 2014/10/03 16:51?Kimio Miyamura ????? > Hi, > > I get the following error while making ffmpeg with libilbc enabling: SNIP > My configure option is: > $ ./configure --prefix=/Volumes/ffmpeg_compile" --pkg-config-flags=--static --enable-libilbc > > NOTE: > I know libilbc have updated on September 18th. With this update, libilbc can not be built with cmake. So I build it with the following procedure: SNIP The cause of this error seems in libilbc, not ffmpeg. I found old version of libilbc and it does not cause error while making ffmpeg. I'm sorry for all the fuss... // Miya From skyscanner at gmx.ca Sat Oct 4 10:13:27 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 10:13:27 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? Message-ID: As I wrote in an earlier thread I am using ffmpeg to mix three audio streams down to a single 5.1 stream, using this syntax: ? ffmpeg -i "original program filename.ts" -c:v copy -filter_complex '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1:FL=c0:FR=c1:FC=c2:LFE=c3:BL=c4:BR=c5' -c:a mp2 "converted program filename.ts" ? This works fine on my OS X machine, which is running this version: ? $ ffmpeg -version ffmpeg version 2.2.2-tessus built on May ?7 2014 23:17:42 with clang version 3.3 (tags/RELEASE_33/final) configuration: --cc=/opt/local/bin/clang-mp-3.3 --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --enable-runtime-cpudetect 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 ? BUT if I try to do the conversion on a Debian Wheezy box, the converted file doesn't play well on low-powered machines, even though I use the exact same options. The version there is from the deb http://www.deb-multimedia.org wheezy main non-free source (at http://www.deb-multimedia.org/), and has a much lower version number even though it was apparently built later: $ ffmpeg -version ffmpeg version 1.0.10 built on Jul 25 2014 07:50:40 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 --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu 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 What is the difference between the two versions that might cause one to produce jerky video and the other smooth playback, and is there any way I can get something more like the OS X version on my Debian box? From cehoyos at ag.or.at Sat Oct 4 12:03:50 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 Oct 2014 10:03:50 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? References: Message-ID: gmx.ca> writes: > As I wrote in an earlier thread I am using ffmpeg to > mix three audio streams down to a single 5.1 stream, > using this syntax: > ? > ffmpeg -i "original program filename.ts" -c:v copy > -filter_complex '[0:1][0:2][0:3] > amerge=inputs=3,pan=5.1:FL=c0:FR=c1:FC=c2:LFE=c3:BL=c4:BR=c5' > -c:a mp2 "converted program filename.ts" > ? > This works fine on my OS X machine, which is running > this version: > ? > $ ffmpeg -version > ffmpeg version 2.2.2-tessus This is old and not really supported on this mailing list. > $ ffmpeg -version > ffmpeg version 1.0.10 > The version there is from the > deb http://www.deb-multimedia.org wheezy main non-free I have no idea why you are trying this version that is exactly two years old (well, I do know now that I looked at the new download page, it actually is highly misleading, sorry about that). Please either compile current FFmpeg git head by yourself, by default you get a static binary that you don't have to install to use and that cannot interfere with anything you already have on your system. As an alternative, please use the static binaries provided on http://johnvansickle.com/ffmpeg/ > What is the difference between the two versions that > might cause one to produce jerky video and the other > smooth playback One is a little too old and unsupported the other ancient. > and is there any way I can get something more like > the OS X version on my Debian box? Please see above. Carl Eugen PS: Don't believe the lies spread on other mailing list, they are only written to confuse you and other users ;-) Please find more information on http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html From cehoyos at ag.or.at Sat Oct 4 12:05:28 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 Oct 2014 10:05:28 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode References: <46511973.326639.1412186499397.JavaMail.yahoo@jws10776.mail.gq1.yahoo.com> Message-ID: Sagara Wijetunga ffmpeg.org> writes: > > Does that mean that you tested the issue now both > > with --disable-decoder=libvpx_vp9 and with > > --enable-libvpx --disable-decoder=vp9 --disable-parser=vp9 > > or only with one decoder? > > All the while I was using only one decoder (vp9). Then please also test with --enable-libvpx --disable-decoder=vp9 --disable-parser=vp9 (If disabling the parser works at all, I don't know.) Please fix your quoting, your email was unreadable here, Carl Eugen From skyscanner at gmx.ca Sat Oct 4 20:56:30 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 20:56:30 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? Message-ID: On Sat, 4 Oct 2014 10:03:50 +0000 (UTC), Carl Eugen Hoyos wrote: > gmx.ca> writes: > > > As I wrote in an earlier thread I am using ffmpeg to > > mix three audio streams down to a single 5.1 stream, > > using this syntax: > > ? > > ffmpeg -i "original program filename.ts" -c:v copy > > -filter_complex '[0:1][0:2][0:3] > > amerge=inputs=3,pan=5.1:FL=c0:FR=c1:FC=c2:LFE=c3:BL=c4:BR=c5' > > -c:a mp2 "converted program filename.ts" > > ? > > This works fine on my OS X machine, which is running > > this version: > > ? > > $ ffmpeg -version > > ffmpeg version 2.2.2-tessus > > This is old and not really supported on this mailing list. No problem; that one worked fine anyway. > > $ ffmpeg -version > > ffmpeg version 1.0.10 > > > The version there is from the > > deb http://www.deb-multimedia.org wheezy main non-free > > I have no idea why you are trying this version that is > exactly two years old (well, I do know now that I looked > at the new download page, it actually is highly > misleading, sorry about that). That's it, I just went to the download page at ffmpeg.org (http://ffmpeg.org/download.html[http://ffmpeg.org/download.html]) and clicked on Linux Packages and it took me to http://ffmpeg.org/download.html#build-linux[http://ffmpeg.org/download.html#build-linux] and there I clicked on "Stable", which took me to http://www.deb-multimedia.org/[http://www.deb-multimedia.org/] and there it says: For wheezy (stable) amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc and sparc packages add in your /etc/apt/sources.list non-free is for i386 and amd64 arches only. deb http://www.deb-multimedia.org[http://www.deb-multimedia.org] wheezy main non-free or deb ftp://ftp.deb-multimedia.org wheezy main non-free or deb http://www.deb-multimedia.org[http://www.deb-multimedia.org] stable main non-free or deb ftp://ftp.deb-multimedia.org stable main non-free I just picked the first one and added it as instructed and then used apt-get to install that version. Should I now use apt-get remove to uninstall it and then remove that entry from my /etc/apt/sources.list ? > Please either compile current FFmpeg git head by > yourself, by default you get a static binary that you > don't have to install to use and that cannot interfere > with anything you already have on your system. That's a bit beyond my level of understanding, though if there were clear step-by-step instructions on how to do that (that don't assume any prior knowledge on my part, especially with regard to git) I might have tried that. However... > As an alternative, please use the static binaries > provided on http://johnvansickle.com/ffmpeg/[http://johnvansickle.com/ffmpeg/][http://johnvansickle.com/ffmpeg/[http://johnvansickle.com/ffmpeg/]] I tried that one and it seems to work fine. And I REALLY wish that had been offered on the download page. The reason is that in my attempts to install ffmpeg, first from the Debian repository (which actually brought in the libav version, I believe), and then from the download link mentioned above, a whole lot of dependencies were added that I would rather not have seen added. Perhaps they don't do anything bad other than occupy disk space but still, if they don't need to be there I'd rather they weren't. And apt-get is really good about bringing in dependencies when you install software, but when you go to remove it, it generally only removes the specific package that you've asked it to. So I REALLY wish that the download page had at least mentioned this option. > > What is the difference between the two versions that > > might cause one to produce jerky video and the other > > smooth playback > > One is a little too old and unsupported the other > ancient. Seems strange to me that the "ancient" version seems to work better than the "little too old" version in this particular application, but maybe it has something to do with the different underlying OS. In any event I have no idea how you'd get a newer version for OS X, even if that were important to me, which right now it isn't. > PS: Don't believe the lies spread on other mailing > list, they are only written to confuse you and other > users ;-) Believe me, at first I was plenty confused by all this business surrounding the different versions of ffmpeg. I have no idea why the Ubuntu/Debian folks thought it was okay to just replace ffmpeg with libav/avconf, especially if they were not going to make sure it was backward compatible. But, that is a fight I don't want to get into the middle of. It makes it hard for us users though, especially because up until a week or so ago I had never done anything with ffmpeg directly, therefore I had no idea there were different versions and forks and all that. > Please find more information on > http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html[http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html][http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html[http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html]] I saw that page sometime in the last two or three days and then it clicked. Still, until you mentioned that stable version, I hadn't found anything that ran under Debian and produced videos that were watchable on a low-powered HTPC. I don't know who is in charge of maintaining that download page at http://www.deb-multimedia.org/[http://www.deb-multimedia.org/] but my suggestion would be that newer builds be linked from that page, or that alternately, the ffmpeg.org download page offers a link to the http://johnvansickle.com/ffmpeg/[http://johnvansickle.com/ffmpeg/] page as a _first_ choice. Because, I suspect that is the version that most Ubuntu and Debian users (that know enough to seek out ffmpeg rather than fiddling around with the libav version from their repositories) would actually want. Anyway, thank you very much for bringing that version to my attention; that seems to be the one that works! I do have another question: When I am running ffmpeg this way, it prints out the following four lines as part of its output - I notice them because they are all or part in green and yellow text: [Parsed_pan_1 @ 0x3bd7e20] This syntax is deprecated. Use '|' to separate the list items. [Parsed_amerge_0 @ 0x3bc73c0] No channel layout for input 1 [Parsed_amerge_0 @ 0x3bc73c0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels [Parsed_pan_1 @ 0x3bd7e20] Pure channel mapping detected: 0 1 2 3 4 5 I don't understand all that but it's the first line that has me concerned. What does it mean by, "This syntax is deprecated. Use '|' to separate the list items"? And is there anything else there I should be concerned about? For reference, I'll repeat how I am invoking ffmpeg: ffmpeg -i "original program filename.ts" -c:v copy -filter_complex '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1:FL=c0:FR=c1:FC=c2:LFE=c3:BL=c4:BR=c5' -c:a mp2 "converted program filename.ts" ? ? From skyscanner at gmx.ca Sat Oct 4 21:01:10 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 21:01:10 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? Message-ID: Correction to my previous post: > Still, until you mentioned that stable version, I hadn't found anything that ran under Debian and produced videos that were watchable on a low-powered HTPC. That should have read "static version", not "stable version." From skyscanner at gmx.ca Sat Oct 4 21:25:51 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 21:25:51 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? Message-ID: One more correction... On Sat, 4 Oct 2014 10:03:50 +0000 (UTC), Carl Eugen Hoyos wrote: > > gmx.ca> writes: ..... > > > $ ffmpeg -version > > > ffmpeg version 2.2.2-tessus > > This is old and not really supported on this mailing list. ..... > > One is a little too old and unsupported the other > > ancient. > Seems strange to me that the "ancient" version seems to work better than the "little too old" version in this particular application, but maybe it has something to do with the different underlying OS. In any event I have no idea how you'd get a newer version for OS X, even if that were important to me, which right now it isn't. Actually, I got to thinking about it and put two and two together and realized that I must have downloaded that version back in May. from this page: http://www.evermeet.cx/ffmpeg/ Which is the page linked to from the ffmpeg.org site if you specify that you want "Static builds for OS X Intel 64-bit" So I grabbed a the newest static build from there and installed it, just to keep current. But my (rhetorical) question is, if the download page can link to the static builds for OS X, why doesn't it do that for Linux? It would be a big help if it did! From h.reindl at thelounge.net Sat Oct 4 21:32:39 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Oct 2014 21:32:39 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <54304B57.9090904@thelounge.net> Am 04.10.2014 um 21:25 schrieb skyscanner at gmx.ca: > But my (rhetorical) question is, if the download page can link to the static builds > for OS X, why doesn't it do that for Linux? It would be a big help if it did! first: there exists no offical ffmpeg binary, for no OS at all whatever you find linked for binarys is just a pointer second: because on Linux you typically get packages from distribution or 3rd party repos or fire up a compiler / rpmbuild third: in case of Apple 98% of OSX users have zero technical knowledge and *rely* on a random binary found somewhere but as said - there is *no official binary* at all and whenever you use one from a random source instead self built or from your distribution you do that at your own risk -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From phil_rhodes at rocketmail.com Sat Oct 4 21:43:30 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 4 Oct 2014 19:43:30 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <54304B57.9090904@thelounge.net> References: <54304B57.9090904@thelounge.net> Message-ID: <1577760505.271339.1412451810222.JavaMail.yahoo@jws106111.mail.bf1.yahoo.com> > there is *no official binary* at all and whenever >?you use one from a random source instead self built or from>?your distribution you do that at your own risk ...just like with every binary ever run anywhere. P From h.reindl at thelounge.net Sat Oct 4 21:52:22 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Oct 2014 21:52:22 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <1577760505.271339.1412451810222.JavaMail.yahoo@jws106111.mail.bf1.yahoo.com> References: <54304B57.9090904@thelounge.net> <1577760505.271339.1412451810222.JavaMail.yahoo@jws106111.mail.bf1.yahoo.com> Message-ID: <54304FF6.3030406@thelounge.net> Am 04.10.2014 um 21:43 schrieb Phil Rhodes: >> there is *no official binary* at all and whenever >> you use one from a random source instead self built or from your >> distribution you do that at your own risk > ...just like with every binary ever run anywhere there is a *large* difference between using a distributions repo with signed packages or click for every app you want to use on a different random website clueless about who built the binary if you don't realize that - well, security is not your job and if it only is because *if* there was a intrusion in a large linux distributions infrastructure you likely read about in some news - if the same happened on a random domain you never will hear about and the same likely happens if the ffmpeg server was hacked since it is a widely known project and not just one website out of millions -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From skyscanner at gmx.ca Sat Oct 4 21:58:23 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 21:58:23 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? Message-ID: On?Sat, 04 Oct 2014 21:32:42 +0200,?"Reindl Harald" wrote: > Am 04.10.2014 um 21:25 schrieb skyscanner at gmx.ca: > > But my (rhetorical) question is, if the download page can link to the static builds > > for OS X, why doesn't it do that for Linux? It would be a big help if it did! > > first: > there exists no offical ffmpeg binary, for no OS at all > whatever you find linked for binarys is just a pointer Yet in the case of OS X, the link is from the ffmpeg.org download page. To the casual user, that sure looks like it's been given an "official" stamp of approval. > second: > because on Linux you typically get packages from distribution > or 3rd party repos or fire up a compiler / rpmbuild It was getting the package from the "official" repo that caused me to get the libav version. It was using the third party repo that caused me to get an old version. > third: > in case of Apple 98% of OSX users have zero technical knowledge > and *rely* on a random binary found somewhere And why would you assume that Linux users, particularly Ubuntu users, are any different? It might have been true ten years ago that almost all Linux users had a great deal of technical knowledge but since Ubuntu came along, anybody and their grandmother can use Linux, and never have to touch a command line if they don't want to. In my case, it's the whole thing about "git" that first mystifies me, and then the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions that don't assume any prior knowledge on my part. Otherwise it's like handing me eggs, flour, and sugar and saying "bake a cake" - I would have no idea where to begin and the results are probably going to be a hot mess. > but as said - there is *no official binary* at all and whenever > you use one from a random source instead self built or from > your distribution you do that at your own risk Then in theory, the ffmpeg.org download page should not link to any of those at all, or at least should include a big disclaimer to that effect. But then again, any software you download is risky if you don't personally know the developers. If these are static builds that have worked for others and haven't caused anyone problems, I don't see any harm in making it easier for people to have access to such builds. And I definitely don't see why there should be a different standard for OS X users and Linux users. Not all OS X users have zero technical knowledge (I'm pretty sure the percentage is less than 99%!) and not all Linux users started coding at the age of 12. Each group has users at all levels, even if the Linux user base does tend to skew toward the more technically inclined. ? ? From barsnick at gmx.net Sat Oct 4 22:11:10 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sat, 4 Oct 2014 22:11:10 +0200 Subject: [FFmpeg-user] "This syntax is deprecated. Use '|' to separate the list items." (Was: What is the difference between versions of ffmpeg?) In-Reply-To: References: Message-ID: <20141004201110.GA14893@sunshine.barsnick.net> Hello KS (just to give you some name), On Sat, Oct 04, 2014 at 20:56:30 +0200, skyscanner at gmx.ca wrote: > I do have another question: When I am running ffmpeg this way, it prints out the following four lines as part of its output - I notice them because they are all or part in green and yellow text: > > [Parsed_pan_1 @ 0x3bd7e20] This syntax is deprecated. Use '|' to separate the list items. > [Parsed_amerge_0 @ 0x3bc73c0] No channel layout for input 1 > [Parsed_amerge_0 @ 0x3bc73c0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels > [Parsed_pan_1 @ 0x3bd7e20] Pure channel mapping detected: 0 1 2 3 4 5 > > I don't understand all that but it's the first line that has me concerned. What does it mean by, "This syntax is deprecated. Use '|' to separate the list items"? And is there anything else there I should be concerned about? For reference, I'll repeat how I am invoking ffmpeg: > > ffmpeg -i "original program filename.ts" -c:v copy -filter_complex '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1:FL=c0:FR=c1:FC=c2:LFE=c3:BL=c4:BR=c5' -c:a mp2 "converted program filename.ts" I stumbled across that as well. For all I can tell, the filter syntax for a list of parameters to a filter argument was changed and the documentation for the pan filter never updated. Apparently, the eight filters named in the source below require you to use '|' instead of ':'. libavfilter/avfilter.c: #if FF_API_OLD_FILTER_OPTS if ( !strcmp(filter->filter->name, "format") || !strcmp(filter->filter->name, "noformat") || !strcmp(filter->filter->name, "frei0r") || !strcmp(filter->filter->name, "frei0r_src") || !strcmp(filter->filter->name, "ocv") || !strcmp(filter->filter->name, "pan") || !strcmp(filter->filter->name, "pp") || !strcmp(filter->filter->name, "aevalsrc")) { /* a hack for compatibility with the old syntax * replace colons with |s */ I believe your filter should be as such: '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1:FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5' because the first parameter is l=5.1, the second outdef=FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5, and the ':' separates parameters. Just guessing, I might submit a patch, Moritz From h.reindl at thelounge.net Sat Oct 4 22:11:18 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Oct 2014 22:11:18 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <54305466.2090808@thelounge.net> Am 04.10.2014 um 21:58 schrieb skyscanner at gmx.ca: > > On Sat, 04 Oct 2014 21:32:42 +0200, "Reindl Harald" wrote: >> Am 04.10.2014 um 21:25 schrieb skyscanner at gmx.ca: >>> But my (rhetorical) question is, if the download page can link to the static builds >>> for OS X, why doesn't it do that for Linux? It would be a big help if it did! >> >> first: >> there exists no offical ffmpeg binary, for no OS at all >> whatever you find linked for binarys is just a pointer > > Yet in the case of OS X, the link is from the ffmpeg.org download page. To the casual user, that sure looks like it's been given an "official" stamp of approval. the "casual user" would also not read any disclaimer or what not proven by expierience - even big and fat red letters in a box with yellow background and red borders are ignored by them >> second: >> because on Linux you typically get packages from distribution >> or 3rd party repos or fire up a compiler / rpmbuild > > It was getting the package from the "official" repo that caused me to get the libav version. > It was using the third party repo that caused me to get an old version. well, complain at Ubuntu why they are that stupid to replace ffmpeg, firefox, thunderbird and what not else with random crap >> third: >> in case of Apple 98% of OSX users have zero technical knowledge >> and *rely* on a random binary found somewhere > > And why would you assume that Linux users, particularly Ubuntu users, are any different? It might have been true ten years ago that almost all Linux users had a great deal of technical knowledge but since Ubuntu came along, anybody and their grandmother can use Linux, and never have to touch a command line if they don't want to. don't get me wrong but a Ubuntu user is not a Linux user for me by definition, it as some random casual user insalled a random OS > In my case, it's the whole thing about "git" that first mystifies me, and then the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions that don't assume any prior knowledge on my part. Otherwise it's like handing me eggs, flour, and sugar and saying "bake a cake" - I would have no idea where to begin and the results are probably going to be a hot mess. only because you refuse to learn i stared at the same point in 2006 and now maintain production servers while build most server RPMs on my own from source and a lot of other technical stuff far away from where i started with Linux years ago >> but as said - there is *no official binary* at all and whenever >> you use one from a random source instead self built or from >> your distribution you do that at your own risk > > Then in theory, the ffmpeg.org download page should not link to any of those at all then you would have need to learn compile right form the start > or at least should include a big disclaimer to that effect. But then again, any software you download is risky if you don't personally know the developers. If these are static builds that have worked for others and haven't caused anyone problems, I don't see any harm in making it easier for people to have access to such builds. And I definitely don't see why there should be a different standard for OS X users and Linux users. Not all OS X users have zero technical knowledge (I'm pretty sure the percentage is less than 99%!) and not all Linux users started coding at the age of 12. Each group has users at all levels, even if the Linux user base does tend to skew toward the more technically inclined that may all be true but don't change the fact ffpeg is source only and even if it is not for legal reasons because multimedia codecs are deep in patent issues, so you are allowed to write code and publish it but if it comes to binaries depending on where you live and how well known you are you end with one foot in the jail -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From skyscanner at gmx.ca Sat Oct 4 22:45:59 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 22:45:59 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <54305466.2090808@thelounge.net> References: , <54305466.2090808@thelounge.net> Message-ID: On Sat, 04 Oct 2014 22:11:18 +0200, "Reindl Harald" wrote: > Am 04.10.2014 um 21:58 schrieb skyscanner at gmx.ca: > > In my case, it's the whole thing about "git" that first mystifies me, and then the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions that don't assume any prior knowledge on my part. Otherwise it's like handing me eggs, flour, and sugar and saying "bake a cake" - I would have no idea where to begin and the results are probably going to be a hot mess. > only because you refuse to learn Well let me put it this way - suppose I told you that before you were allowed to drive a car, you had to know how to tear down and rebuild an engine. While that might be a useful skill, not everyone who drives a car wants to know anything about that. But if you had that skill, perhaps you might be condescending toward mere drivers, just as you have been to me in your insulting reply. I came to this list looking for help in USING ffmpeg, not in BUILDING ffmpeg. I was under the impression that this list was for ffmpeg USERS, not developers. Compiling software is something I have only had to do a handful of times in my life, and every time I have had to do it, the creators have been kind enough to provide explicit instructions of the type I mentioned in my previous message. I have no desire to write or compile software generally, and at my age (I am in my 60's) it is difficult to pick up new skills. I don't even feel entirely comfortable using the command line because I am always afraid I will break something, and I have done that before. And even if I did figure out how to do it once, it would not be a skill I would retain, because I might not need to do it again for a few years, or maybe ever. > i stared at the same point in 2006 and now maintain production servers > while build most server RPMs on my own from source and a lot of other > technical stuff far away from where i started with Linux years ago Good for you. You learned this stuff because it was useful to you in life and for your employment. I doubt you would have put anywhere near that level of dedication into it if you had thought that it was something you might never need to know how to do again, unless you are just generally attracted to that sort of knowledge. We all have our areas of interest, and building software isn't one of mine, any more than getting under the hood of a car and fixing a motor. I don't know if you are a developer of this project or just a user or somewhere in between, but I certainly hope your views don't represent those of the ffmpeg development team. Anyway can we please just drop the insults? (And if by some chance this post gets me banned from the mailing list, I just want to say thank you to all who have helped me, it was much appreciated!) From phil_rhodes at rocketmail.com Sat Oct 4 22:49:38 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 4 Oct 2014 20:49:38 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <54304FF6.3030406@thelounge.net> References: <54304FF6.3030406@thelounge.net> Message-ID: <870174698.202634.1412455778890.JavaMail.yahoo@jws10633.mail.bf1.yahoo.com> > there is a *large* difference between using a distributions>repo with signed packages or click for every app you want>to use on a different random website clueless about who>built the binary I don't think either situation really guarantees anything, does it? I'm not in a position to check every line of code in a piece of software before I build it. P From scaglione.francesco at neuf.fr Sat Oct 4 22:57:32 2014 From: scaglione.francesco at neuf.fr (francesco scaglione) Date: Sat, 4 Oct 2014 22:57:32 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> On Sat, 4 Oct 2014 21:58:23 +0200 skyscanner at gmx.ca wrote: [...] > and then the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions that don't assume any prior knowledge on my part. Otherwise it's like handing me eggs, flour, and sugar and saying "bake a cake" - I would have no idea where to begin and the results are probably going to be a hot mess. --- I can assure you that following these instructions it is quite simple to compile a recent version of FFmpeg, even without experience (it was my case): https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu From skyscanner at gmx.ca Sat Oct 4 23:05:54 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 23:05:54 +0200 Subject: [FFmpeg-user] "This syntax is deprecated. Use '|' to separate the list items." (Was: What is the difference between versions of ffmpeg?) In-Reply-To: <20141004201110.GA14893@sunshine.barsnick.net> References: , <20141004201110.GA14893@sunshine.barsnick.net> Message-ID: On Sat, 04 Oct 2014 22:11:18 +0200, "Moritz Barsnick" wrote: > I believe your filter should be as such: > '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1:FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5' Thank you. I tried this: ffmpeg -i "original program filename.ts" -c:v copy -filter_complex '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1:FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5' -c:a mp2 "converted program filename.ts" and while that worked, I still got the warning message. Then I tried this: ffmpeg -i "original program filename.ts" -c:v copy -filter_complex '[0|1][0|2][0|3]amerge=inputs=3,pan=5.1:FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5' -c:a mp2 "converted program filename.ts" And got this: [Parsed_pan_1 @ 0x4956e20] This syntax is deprecated. Use '|' to separate the list items. [mpegts @ 0x48eb860] Invalid stream specifier: |1. Last message repeated 7 times Stream specifier '|1' in filtergraph description [0|1][0|2][0|3]amerge=inputs=3,pan=5.1:FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5 matches no streams. And it did NOT do the conversion, so it was not complaining about the 0:1, 0:2, 0:3 syntax. So then I tried: ffmpeg -i "original program filename.ts" -c:v copy -filter_complex '[0:1][0:2][0:3]amerge=inputs=3,pan=5.1|FL=c0|FR=c1|FC=c2|LFE=c3|BL=c4|BR=c5' -c:a mp2 "converted program filename.ts" And then I got: [Parsed_amerge_0 @ 0x3aed3c0] No channel layout for input 1 [Parsed_amerge_0 @ 0x3aed3c0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels [Parsed_pan_1 @ 0x3afde20] Pure channel mapping detected: 0 1 2 3 4 5 But, no complaints about the deprecated syntax! So it appears that it does want the | rather than the : after the 5.1 as well. Thanks much! From h.reindl at thelounge.net Sat Oct 4 23:09:47 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Oct 2014 23:09:47 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <5430621B.7080302@thelounge.net> Am 04.10.2014 um 22:45 schrieb skyscanner at gmx.ca: > On Sat, 04 Oct 2014 22:11:18 +0200, "Reindl Harald" wrote: >> Am 04.10.2014 um 21:58 schrieb skyscanner at gmx.ca: > >>> In my case, it's the whole thing about "git" that first mystifies me, and then the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions that don't assume any prior knowledge on my part. Otherwise it's like handing me eggs, flour, and sugar and saying "bake a cake" - I would have no idea where to begin and the results are probably going to be a hot mess. > >> only because you refuse to learn > > Well let me put it this way - suppose I told you that before you were allowed to drive a car, you had to know how to tear down and rebuild an engine. While that might be a useful skill, not everyone who drives a car wants to know anything about that. But if you had that skill, perhaps you might be condescending toward mere drivers, just as you have been to me in your insulting reply. there was no insulting intention if someone needs a binary he can use it if it is not available - well, build at your own or hire somebody that is not insulting - that is the thruth > I came to this list looking for help in USING ffmpeg, not in BUILDING ffmpeg. I was under the impression that this list was for ffmpeg USERS, not developers. Compiling software is something I have only had to do a handful of times in my life, and every time I have had to do it, the creators have been kind enough to provide explicit instructions of the type I mentioned in my previous message. I have no desire to write or compile software generally, and at my age (I am in my 60's) it is difficult to pick up new skills. I don't even feel entirely comfortable using the command line because I am always afraid I will break something, and I have done that before. And even if I did figure out how to do it once, it would not be a skill I would retain, because I might not need to do it again for a few years, or maybe ever. get rid of "I don't even feel entirely comfortable using the command line because I am always afraid I will break something" because it is wrong - with the commandline you at least have a chance to type "history" and in case of seek help provide what you typed cick on a button and you have no clue what happens behind the scenes and if it does not end in a result you like nobody probably knows the state of whatever to offer help >> i stared at the same point in 2006 and now maintain production servers >> while build most server RPMs on my own from source and a lot of other >> technical stuff far away from where i started with Linux years ago > > Good for you. You learned this stuff because it was useful to you in life and for your employment. I doubt you would have put anywhere near that level of dedication into it if you had thought that it was something you might never need to know how to do again, unless you are just generally attracted to that sort of knowledge. We all have our areas of interest, and building software isn't one of mine, any more than getting under the hood of a car and fixing a motor. no, i learned that stuff because i was interested in it otherwise i could have stayed at Windows frankly i learned the whole IT stuff because i was interested and as i wnet to a shop to buy my first PC the only reaon was "can i burn a Audio CD with only the tracks i want in the order i want to play it in my car" that i later switched to IT as daily job was nothing but play around and stay interested > I don't know if you are a developer of this project or just a user or somewhere in between, but I certainly hope your views don't represent those of the ffmpeg development team. as it is the users list i am just a user > Anyway can we please just drop the insults? again: there was no insult at all * the project don't offer any binary * so there is no binary download * your question was "where to get a binary" * the answer is: whereever someone has taken the source, built one offered the result for others > (And if by some chance this post gets me banned from the mailing list, I just want to say thank you to all who have helped me, it was much appreciated!) no need to consider get banned by speaking frank - hopefully -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Sat Oct 4 23:15:53 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Oct 2014 23:15:53 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <870174698.202634.1412455778890.JavaMail.yahoo@jws10633.mail.bf1.yahoo.com> References: <54304FF6.3030406@thelounge.net> <870174698.202634.1412455778890.JavaMail.yahoo@jws10633.mail.bf1.yahoo.com> Message-ID: <54306389.6080906@thelounge.net> Am 04.10.2014 um 22:49 schrieb Phil Rhodes: >> there is a *large* difference between using a distributions>repo with signed packages or click for every app you want>to use on a different random website clueless about who>built the binary > I don't think either situation really guarantees anything, does it? you stopped to read the lines after your quote your mistake! a signed package is different from random crap and the difference starts by click on the download link - you are sure the DNS you are using is trustable? in case of a signed package even if it is compromised by a MITM the package manager would refuse to install / update the package until the MITM was able to steal the signing key of the distribution you are using > I'm not in a position to check every line of code in a piece of software before I build it me too - but i somehow trust well known upstream developers which is not the case for random binarys where nobody knows if the unmodified upstream source was used in case of distribution repos you know at least that they are signed and changes/updates *likely* reviewed or if something bad happend some news will tell about in case of a hacked random server you used to download you know nothing nor will any press take notice in case of a intrusion - if that happens for opensource projects with some reputation you will hear baout -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From skyscanner at gmx.ca Sat Oct 4 23:32:17 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 23:32:17 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <5430621B.7080302@thelounge.net> References: , <5430621B.7080302@thelounge.net> Message-ID: On?Sat, 04 Oct 2014 23:09:47 +0200?"Reindl Harald" wrote: > there was no insulting intention Well, that wasn't how it came across, but I'll accept that you didn't do it intentionally. > if someone needs a binary he can use it > if it is not available - well, build at your own or hire somebody > that is not insulting - that is the thruth Except that it leaves out the third, most reasonable option - use the static build that someone else has already made the effort to create. Maybe YOU would not do that, for whatever reasons. That's certainly your prerogative. My original point was that I don't see why anyone thinks that it's perfectly fine to give OS X users a static build, but hide it from the Linux users until someone is kind enough to mention it in a forum such as this one. Either all the static builds should be linked from the download page, or none of them should. I would definitely prefer the former, because it makes it a lot easier on users who don't have your level of technical savvy. > get rid of "I don't even feel entirely comfortable using the command > line because I am always afraid I will break something" because it is > wrong - with the commandline you at least have a chance to type > "history" and in case of seek help provide what you typed Just because I can see what I typed doesn't mean I can fix it. Case in point, when I installed ffmpeg (or libav masquerading as ffmpeg) from the Debian repository, it brought in a whole bunch of useless dependencies that I now realize I don't need. But removing that version of ffmpeg didn't get rid of them, so now I am stuck with them. > cick on a button and you have no clue what happens behind the scenes and > if it does not end in a result you like nobody probably knows the state > of whatever to offer help I can't think of any instance where that has actually happened to me unless I stupidly clicked the wrong button. > as it is the users list i am just a user So why are you so interested in keeping the static builds hidden from Linux users? > * the project don't offer any binary > * so there is no binary download > * your question was "where to get a binary" Now you are putting words in my mouth, figuratively speaking. I would have NEVER used the word "binary" in that way. In fact I would not have known to ask for a static build prior to this thread. Anyway, if the project doesn't offer it then what exactly is being offered to OS X users? > * the answer is: whereever someone has taken the source, built one offered the result for others And when someone does that, IMHO it ought to be linked to from the download page, unless there is some compelling reason not to. > no need to consider get banned by speaking frank - hopefully. You would be surprised what little bit of disagreement it takes to get you banned in some forums. From h.reindl at thelounge.net Sat Oct 4 23:42:16 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Oct 2014 23:42:16 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <543069B8.20400@thelounge.net> Am 04.10.2014 um 23:32 schrieb skyscanner at gmx.ca: > Just because I can see what I typed doesn't mean I can fix it. Case in point, when I installed ffmpeg (or libav masquerading as ffmpeg) from the Debian repository, it brought in a whole bunch of useless dependencies that I now realize I don't need. But removing that version of ffmpeg didn't get rid of them, so now I am stuck with them. no you are not and honestly wonder that Debian/Ubuntu don't remove them since it is a repeated flame against RPM based distribution that they don't (which is not true, yum do for a long time if configured correctly as well as "package-cleanup --leaves" lists all packages which can be removed because nothing else depends on them and after remove the first one it offers other "freed" packages) put "clean_requirements_on_remove=1" in /etc/yum.conf on RHEL/CentOS/Fedora as exmaple is the key that if you install package a) which pulls in b, c, d, e, f and 1 hour later you decide to remove a) the others are automatically selected to be removed until no other package you installed in the meantime requires them http://askubuntu.com/questions/28132/removal-of-unused-dependencies-using-autoremove >> cick on a button and you have no clue what happens behind the scenes and >> if it does not end in a result you like nobody probably knows the state >> of whatever to offer help > > I can't think of any instance where that has actually happened to me unless I stupidly clicked the wrong button. > >> as it is the users list i am just a user > > So why are you so interested in keeping the static builds hidden from Linux users? i am not interested - honestly i don't care my RPM SEPC is fine and i just put an new tarball there and rebuild >> * the project don't offer any binary >> * so there is no binary download >> * your question was "where to get a binary" > > Now you are putting words in my mouth, figuratively speaking. I would have NEVER used the word "binary" in that way. In fact I would not have known to ask for a static build prior to this thread. > > Anyway, if the project doesn't offer it then what exactly is being offered to OS X users? just a link to somebody who builds it >> * the answer is: whereever someone has taken the source, built one > offered the result for others > > And when someone does that, IMHO it ought to be linked to from the download page, unless there is some compelling reason not to. > >> no need to consider get banned by speaking frank - hopefully. > > You would be surprised what little bit of disagreement it takes to get you banned in some forums i am not - but i don#t support that attitude :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From skyscanner at gmx.ca Sat Oct 4 23:48:25 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sat, 4 Oct 2014 23:48:25 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> References: , <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> Message-ID: On?Sat, 4 Oct 2014 22:57:32 +0200,?"francesco scaglione" wrote: > I can assure you that following these instructions it is quite simple to compile a recent version of FFmpeg, even without experience (it was my case): > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu That would be true except for this: "Compilation & Installation You can compile ffmpeg to your liking. If you do not require certain encoders you may skip the relevant section and then remove the appropriate ./configure option in FFmpeg. For example, if libopus is not needed, then skip that section and then remove --enable-libopus from the Install FFmpeg section." Now if only they would follow that up by saying, "If you don't know which encoders you need or how to use the configuration options, here is how to build a 'standard' version of ffmpeg...", then this page might actually be useful. The problem is that when you offer a lot of options, people such as myself that have no clue what those options do get lost really fast. All I want and need is a standard version that will work. However, if someone has any idea of what they actually want and need, that seems like a pretty thorough guide. Basically, however, the question that I think needs to be asked is this: If I go to the download page and it sends me to http://www.deb-multimedia.org/ and I add the repository suggested (deb http://www.deb-multimedia.org wheezy main non-free) to my /etc/apt/sources.list, why is it supplying an old version? This, I think, is the crux of the matter. Had I received a current version from that source, we would have not had any of this discussion. From h.reindl at thelounge.net Sun Oct 5 00:00:08 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 00:00:08 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <54306DE8.3030702@thelounge.net> Am 04.10.2014 um 23:48 schrieb skyscanner at gmx.ca: > Now if only they would follow that up by saying, "If you don't know which encoders you need or how to use the configuration options, here is how to build a 'standard' version of ffmpeg...", then this page might actually be useful. The problem is that when you offer a lot of options, people such as myself that have no clue what those options do get lost really fast. All I want and need is a standard version that will work. define "standard" * all supported codecs * minimized supported codecs * if minimized which ones > However, if someone has any idea of what they actually want and need, that seems like a pretty thorough guide you need an idea otherwise you end what about you caomplained before "the package i installed pulled a ton of dependencies" - so in other words "default" would support only limited codecs or pull a lot of dependencies with their cahin-deps there is not much between and no matter what you do the next day somebody would complain why all that deps are required or a static binary is 100 MB large or why the codec he needs right now is not supported > Basically, however, the question that I think needs to be asked is this: > > If I go to the download page and it sends me to http://www.deb-multimedia.org/ and I add the repository suggested (deb http://www.deb-multimedia.org wheezy main non-free) to my /etc/apt/sources.list, why is it supplying an old version? that answer is *really* easy - because who ever did built that binary don't care or has no time - if you want soemthing else you need to do that at your own - that's the benefit of open source: you can do so, in case of closed source all that questions would not exist -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From dev at rarevision.com Sun Oct 5 00:01:27 2014 From: dev at rarevision.com (Thomas Worth) Date: Sat, 4 Oct 2014 15:01:27 -0700 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> Message-ID: On Sat, Oct 4, 2014 at 2:48 PM, wrote: > On Sat, 4 Oct 2014 22:57:32 +0200, "francesco scaglione" < > scaglione.francesco at neuf.fr> wrote: > > > I can assure you that following these instructions it is quite simple to > compile a recent version of FFmpeg, even without experience (it was my > case): > > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > > That would be true except for this: > > "Compilation & Installation > > You can compile ffmpeg to your liking. If you do not require certain > encoders you may skip the relevant section and then remove the appropriate > ./configure option in FFmpeg. For example, if libopus is not needed, then > skip that section and then remove --enable-libopus from the Install FFmpeg > section." > > Now if only they would follow that up by saying, "If you don't know which > encoders you need or how to use the configuration options, here is how to > build a 'standard' version of ffmpeg...", then this page might actually be > useful. The problem is that when you offer a lot of options, people such > as myself that have no clue what those options do get lost really fast. > All I want and need is a standard version that will work. > > However, if someone has any idea of what they actually want and need, that > seems like a pretty thorough guide. > > Basically, however, the question that I think needs to be asked is this: > > If I go to the download page and it sends me to > http://www.deb-multimedia.org/ and I add the repository suggested (deb > http://www.deb-multimedia.org wheezy main non-free) to my > /etc/apt/sources.list, why is it supplying an old version? > > This, I think, is the crux of the matter. Had I received a current > version from that source, we would have not had any of this discussion. > Another thing you may want to keep in mind is that many would consider a "standard" version of FFmpeg of little use out of the box. The reason for this is the FFmpeg source code does not include popular encoders like x264 and FAAC (i.e. h.264 video encoding and AAC audio encoding). In order to use these, you must download their sources, compile them first and then compile FFmpeg after you've configured it to look for the appropriate libraries (libx264 and libfaac, for example). Sometimes, but not always, these libraries are installed on your system so you can have FFmpeg dynamically link to them. However, for my own use, I always statically link the ffmpeg executable so I can move it from machine to machine without having to worry about what libraries are installed on each system. I do this with Mac OS X, but the same idea applies to Linux. It would be nice to have one place where a Mac, Linux and Windows binary can be downloaded, but because of licensing and the need to use code from separate projects, this gets complicated. :-( From scaglione.francesco at neuf.fr Sun Oct 5 00:09:38 2014 From: scaglione.francesco at neuf.fr (francesco scaglione) Date: Sun, 5 Oct 2014 00:09:38 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> Message-ID: <20141005000938.7e7e034af676d4f355eeb905@neuf.fr> On Sat, 4 Oct 2014 23:48:25 +0200 skyscanner at gmx.ca wrote: > On?Sat, 4 Oct 2014 22:57:32 +0200,?"francesco scaglione" wrote: > > > I can assure you that following these instructions it is quite simple to compile a recent version of FFmpeg, even without experience (it was my case): > > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > > That would be true except for this: > > "Compilation & Installation > > You can compile ffmpeg to your liking. If you do not require certain encoders you may skip the relevant section and then remove the appropriate ./configure option in FFmpeg. For example, if libopus is not needed, then skip that section and then remove --enable-libopus from the Install FFmpeg section." > > Now if only they would follow that up by saying, "If you don't know which encoders you need or how to use the configuration options, here is how to build a 'standard' version of ffmpeg...", then this page might actually be useful. The problem is that when you offer a lot of options, people such as myself that have no clue what those options do get lost really fast. All I want and need is a standard version that will work. > > However, if someone has any idea of what they actually want and need, that seems like a pretty thorough guide. > > Basically, however, the question that I think needs to be asked is this: > > If I go to the download page and it sends me to http://www.deb-multimedia.org/ and I add the repository suggested (deb http://www.deb-multimedia.org wheezy main non-free) to my /etc/apt/sources.list, why is it supplying an old version? > > This, I think, is the crux of the matter. Had I received a current version from that source, we would have not had any of this discussion. About compiling: just try with the options enabled there, why bother for the moment? About deb-multimedia: they have now even a wheezy-backports repository, and there you can get a more recent version. Have a look: http://www.deb-multimedia.org/dists/stable-backports/main/binary-amd64/package/ffmpeg Francesco From barsnick at gmx.net Sun Oct 5 00:19:44 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 5 Oct 2014 00:19:44 +0200 Subject: [FFmpeg-user] "This syntax is deprecated. Use '|' to separate the list items." (Was: What is the difference between versions of ffmpeg?) In-Reply-To: References: <20141004201110.GA14893@sunshine.barsnick.net> Message-ID: <20141004221944.GB14893@sunshine.barsnick.net> On Sat, Oct 04, 2014 at 23:05:54 +0200, skyscanner at gmx.ca wrote: > So it appears that it does want the | rather than the : after the 5.1 as well. Yes, while trying to improve the documentation, I have figured out the same. They are apparently not separate parameters, but a single parameter as a list of values. Whatever. > Thanks much! No problem! Moritz From phil_rhodes at rocketmail.com Sun Oct 5 00:22:04 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 4 Oct 2014 22:22:04 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <184595537.413747.1412461324325.JavaMail.yahoo@jws10679.mail.bf1.yahoo.com> > ...the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions... You aren't alone. I've mentioned this problem, on this list, many times. Most open source software uses a combination of commandline tools, with scripts and code in various formats and languages required to build it. This is emphatically not simple - at least not as simple as loading a Visual Studio project in Windows. It is not reasonable to expect everyone to be able to do it. The open source community deals with this situation by denying that it exists and is often inexcusably impolite: > only because you refuse to learn ...like that. There is often a complete lack of respect for any form of skill or ability other than software engineering, to the point that some projects (ffmpeg included) have suffered some quite egregious technical omissions because they simply won't take anyone's input. Don't feel bad. The technical problems we're discussing here, and the attitude problem underlying them, are one of the main things holding back open source software from what could be its full potential. P From h.reindl at thelounge.net Sun Oct 5 00:29:43 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 00:29:43 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <184595537.413747.1412461324325.JavaMail.yahoo@jws10679.mail.bf1.yahoo.com> References: <184595537.413747.1412461324325.JavaMail.yahoo@jws10679.mail.bf1.yahoo.com> Message-ID: <543074D7.20005@thelounge.net> Am 05.10.2014 um 00:22 schrieb Phil Rhodes: >> ...the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions... > You aren't alone. I've mentioned this problem, on this list, many times. Most open source software uses a combination of commandline tools, with scripts and code in various formats and languages required to build it. This is emphatically not simple - at least not as simple as loading a Visual Studio project in Windows. It is not reasonable to expect everyone to be able to do it. then just use a source for a binary like a distribution > The open source community deals with this situation by denying that it exists and is often inexcusably impolite it does not exist - the developers offer *their work* in form of source code - who do you think you are to demand them offer a "just happy to use" binary additional to the development work? >> only because you refuse to learn > ...like that. There is often a complete lack of respect for any form of skill or ability other than software engineering, to the point that some projects (ffmpeg included) have suffered some quite egregious technical omissions because they simply won't take anyone's input. you still don't get it * just intsall the packge from your distribution * if it don't fullfill your needs complain there * if you don't want to complain there just learn to build the source > Don't feel bad. The technical problems we're discussing here, and the attitude problem underlying them, are one of the main things holding back open source software from what could be its full potential it has the full potential * just use pre-built packages from the sources * hire one to build them for your needs * learn to build them at your own well, finally you could offer enough money to a upstream developer for build a binary at your your needs try the same with closed source and look how far you get -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From scaglione.francesco at neuf.fr Sun Oct 5 00:31:31 2014 From: scaglione.francesco at neuf.fr (francesco scaglione) Date: Sun, 5 Oct 2014 00:31:31 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <184595537.413747.1412461324325.JavaMail.yahoo@jws10679.mail.bf1.yahoo.com> References: <184595537.413747.1412461324325.JavaMail.yahoo@jws10679.mail.bf1.yahoo.com> Message-ID: <20141005003131.67a1fee2b36aaf8a265907f0@neuf.fr> On Sat, 4 Oct 2014 22:22:04 +0000 (UTC) Phil Rhodes wrote: > > ...the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions... > You aren't alone. I've mentioned this problem, on this list, many times. Most open source software uses a combination of commandline tools, with scripts and code in various formats and languages required to build it. This is emphatically not simple - at least not as simple as loading a Visual Studio project in Windows. It is not reasonable to expect everyone to be able to do it. > > The open source community deals with this situation by denying that it exists and is often inexcusably impolite: > > only because you refuse to learn > ...like that. There is often a complete lack of respect for any form of skill or ability other than software engineering, to the point that some projects (ffmpeg included) have suffered some quite egregious technical omissions because they simply won't take anyone's input. > > Don't feel bad. The technical problems we're discussing here, and the attitude problem underlying them, are one of the main things holding back open source software from what could be its full potential. > > P "Software engineering"? I repeat: I compiled FFpmeg following the instructions on the site and that was the very first time I compiled anything. It worked at the first try, on an eeePC with an Atom N450. Francesco From h.reindl at thelounge.net Sun Oct 5 00:46:13 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 00:46:13 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <20141005003131.67a1fee2b36aaf8a265907f0@neuf.fr> References: <184595537.413747.1412461324325.JavaMail.yahoo@jws10679.mail.bf1.yahoo.com> <20141005003131.67a1fee2b36aaf8a265907f0@neuf.fr> Message-ID: <543078B5.5030503@thelounge.net> Am 05.10.2014 um 00:31 schrieb francesco scaglione: > On Sat, 4 Oct 2014 22:22:04 +0000 (UTC) > Phil Rhodes wrote: > >>> ...the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions... >> You aren't alone. I've mentioned this problem, on this list, many times. Most open source software uses a combination of commandline tools, with scripts and code in various formats and languages required to build it. This is emphatically not simple - at least not as simple as loading a Visual Studio project in Windows. It is not reasonable to expect everyone to be able to do it. >> >> The open source community deals with this situation by denying that it exists and is often inexcusably impolite: >>> only because you refuse to learn >> ...like that. There is often a complete lack of respect for any form of skill or ability other than software engineering, to the point that some projects (ffmpeg included) have suffered some quite egregious technical omissions because they simply won't take anyone's input. >> >> Don't feel bad. The technical problems we're discussing here, and the attitude problem underlying them, are one of the main things holding back open source software from what could be its full potential. >> > "Software engineering"? I repeat: I compiled FFpmeg following the > instructions on the site and that was the very first time I compiled > anything. It worked at the first try, on an eeePC with an Atom N450 don't waste your time - Phil is known for comlain against ffmpeg and if he would have used all the time to write complaints for just learn how to deal with build it he could offer pre-compiled binaries for every OS out there P.S.: i am known for not be nice always but at least i do my homework -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Sun Oct 5 00:50:02 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 5 Oct 2014 00:50:02 +0200 Subject: [FFmpeg-user] libvo-amrwbenc.so.0: cannot open shared object file In-Reply-To: <542A8173.2060906@thelounge.net> References: <5429C61E.60306@thelounge.net> <20140930083535.GA11096@sunshine.barsnick.net> <542A8173.2060906@thelounge.net> Message-ID: <20141004225002.GC14893@sunshine.barsnick.net> Hallo Harald, On Tue, Sep 30, 2014 at 12:09:55 +0200, Reindl Harald wrote: > i do the same - ffmpeg under /usr/local/bin with static linked > x264 but packed as RPM - it don't collide with the rpmfuison > ffmpeg-libs package that way Good point. Except that I use a lot of self-built libs (ahead of rpmfusion) in the process as well. Has libfdk_aac finally been packaged? I recall a package review which was never completed - I could use that. I would also need to contemplate a proper versioning scheme for snapshots. > Obsoletes: ffmpeg I might even avoid this and risk allowing to have two binaries of the same name lying around. ;-) > --extra-cflags="-I%{_prefix}/local/x264 %{optflags} -O3 -ffast-math -fomit-frame-pointer -floop-interchange > -floop-block -ftree-loop-distribution -fno-strict-aliasing" \ Carl Eugen would question this, wouldn't he? ;-) Thanks for the inspiration, Moritz From phil_rhodes at rocketmail.com Sun Oct 5 00:56:06 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 4 Oct 2014 22:56:06 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <543074D7.20005@thelounge.net> References: <543074D7.20005@thelounge.net> Message-ID: <1783455991.471821.1412463366488.JavaMail.yahoo@jws10607.mail.bf1.yahoo.com> >- who do you think you are to demand them offer a "just happy to use" binary additional to the development work? No - who do you think you are to run around screaming at people that they "refuse to learn"? You created this problem. If you want less hassle from users, make the software easier to use. If you can't be bothered, deal with the fallout. Either way, you are not the boss, you are not in a position of authority, and it is not your place to tell peopl eoff. P From cehoyos at ag.or.at Sun Oct 5 00:57:20 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 Oct 2014 22:57:20 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? References: Message-ID: gmx.ca> writes: > > As an alternative, please use the static binaries > > provided on http://johnvansickle.com/ffmpeg/ > > I tried that one and it seems to work fine. And I > REALLY wish that had been offered on the download page. It is mentioned on the download page, I would not have been able to post the link it were not there;-) Carl Eugen From h.reindl at thelounge.net Sun Oct 5 01:00:21 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 01:00:21 +0200 Subject: [FFmpeg-user] libvo-amrwbenc.so.0: cannot open shared object file In-Reply-To: <20141004225002.GC14893@sunshine.barsnick.net> References: <5429C61E.60306@thelounge.net> <20140930083535.GA11096@sunshine.barsnick.net> <542A8173.2060906@thelounge.net> <20141004225002.GC14893@sunshine.barsnick.net> Message-ID: <54307C05.4080108@thelounge.net> Am 05.10.2014 um 00:50 schrieb Moritz Barsnick: > Hallo Harald, > > On Tue, Sep 30, 2014 at 12:09:55 +0200, Reindl Harald wrote: >> i do the same - ffmpeg under /usr/local/bin with static linked >> x264 but packed as RPM - it don't collide with the rpmfuison >> ffmpeg-libs package that way > > Good point. Except that I use a lot of self-built libs (ahead of > rpmfusion) in the process as well. Has libfdk_aac finally been > packaged? I recall a package review which was never completed - I could > use that. I would also need to contemplate a proper versioning scheme > for snapshots. i don't bother about libfdk_aac with "-acodec aac -strict experimental" you can use the builtin AAC encoder which works just fine for at least 2 years here and don't pull any deps >> Obsoletes: ffmpeg > > I might even avoid this and risk allowing to have two binaries of the > same name lying around. ;-) the opposite is true, it replaces the meta-package, installs the binary to /usr/local/bin as well as the symlink in /usr/bin and replaces the executable binaries from rpmfusion (in other words a drop-in replacement) while ffmpeg-libs for deps is still installed and untouched from rpmfusion works fine for years now using the latest ffmpeg and any other package built against the rpmfusion libraries works untouched as before >> --extra-cflags="-I%{_prefix}/local/x264 %{optflags} -O3 -ffast-math -fomit-frame-pointer -floop-interchange >> -floop-block -ftree-loop-distribution -fno-strict-aliasing" \ > > Carl Eugen would question this, wouldn't he? ;-) repeatly yes - with all respect i don't care since the results are fine the last 5 years :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Sun Oct 5 01:01:40 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 01:01:40 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <1783455991.471821.1412463366488.JavaMail.yahoo@jws10607.mail.bf1.yahoo.com> References: <543074D7.20005@thelounge.net> <1783455991.471821.1412463366488.JavaMail.yahoo@jws10607.mail.bf1.yahoo.com> Message-ID: <54307C54.8020100@thelounge.net> Am 05.10.2014 um 00:56 schrieb Phil Rhodes: >> - who do you think you are to demand them offer a "just happy to use" binary additional to the development work? > No - who do you think you are to run around screaming at people that they "refuse to learn"? > > You created this problem. > If you want less hassle from users, make the software easier to use i made clear that *i am a user* so the problem is on your side -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From phil_rhodes at rocketmail.com Sun Oct 5 01:04:54 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 4 Oct 2014 23:04:54 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <54307C54.8020100@thelounge.net> References: <54307C54.8020100@thelounge.net> Message-ID: <240476572.260424.1412463894867.JavaMail.yahoo@jws106139.mail.bf1.yahoo.com> > i made clear that *i am a user* so the problem is on your side No, you're the one throwing insults around on a mailing list. Examine your own behaviour. If you don't like the fact that people find compiling ffmpeg difficult, make ffmpeg easier to compile. If you don't want to do that, that's absolutely fine, you aren't required to - but you may not reasonably tell other people off for complaining. Their complaints are justified. P From cehoyos at ag.or.at Sun Oct 5 01:08:11 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 Oct 2014 23:08:11 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? References: <54307C54.8020100@thelounge.net> <240476572.260424.1412463894867.JavaMail.yahoo@jws106139.mail.bf1.yahoo.com> Message-ID: Phil Rhodes rocketmail.com> writes: > > i made clear that *i am a user* so the problem is on your side > > No, you're the one throwing insults around on a mailing list. > Examine your own behaviour. Stop bullying other users here, this is not acceptable! > If you don't like the fact that people find compiling > ffmpeg difficult, make ffmpeg easier to compile. FFmpeg compiles on many common and a few very unusual systems with "./configure && make" if you have a compiler installed, I don't think you can make compilation significantly easier. If compilation does not succeed on any platform, please tell us! And please stop trolling here, it is not welcome! Carl Eugen From h.reindl at thelounge.net Sun Oct 5 01:12:35 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 01:12:35 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <240476572.260424.1412463894867.JavaMail.yahoo@jws106139.mail.bf1.yahoo.com> References: <54307C54.8020100@thelounge.net> <240476572.260424.1412463894867.JavaMail.yahoo@jws106139.mail.bf1.yahoo.com> Message-ID: <54307EE3.3060807@thelounge.net> Am 05.10.2014 um 01:04 schrieb Phil Rhodes: >> i made clear that *i am a user* so the problem is on your side > No, you're the one throwing insults around on a mailing list. Examine your own behaviour my behaviour is fine - honestly you have no clue how it sounds if i forget about it! > If you don't like the fact that people find compiling > ffmpeg difficult, make ffmpeg easier to compile why should i? as said i am a user and managed to build from the sources nobody is forced to do so - everybody can use distribution packages *but* complain why they are not recent enough won't work - pay the distributions package mainatiner, wait until he updates them, update your distribution version to get newer package or just RTFM and build it at your own all valid options exists > If you don't want to do that, that's absolutely fine, you aren't required to fine > but you may not reasonably tell other people off for complaining surely - the same way reasonable as you complain over years > Their complaints are justified no they are not, proven by the following output which did take exatcly 20 seconds work and wait until the build is finished [harry at srv-rhsoft:~]$ ffmpeg ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From skyscanner at gmx.ca Sun Oct 5 01:38:22 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sun, 5 Oct 2014 01:38:22 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <1783455991.471821.1412463366488.JavaMail.yahoo@jws10607.mail.bf1.yahoo.com> References: <543074D7.20005@thelounge.net>, <1783455991.471821.1412463366488.JavaMail.yahoo@jws10607.mail.bf1.yahoo.com> Message-ID: On?Sat, 4 Oct 2014 22:56:06 +0000 (UTC),?"Phil Rhodes" wrote: > >- who do you think you are to demand them offer a "just happy to use" binary additional to the development work? Reindl Harald: And again, you come across as an insulting ass. Look, nobody forces the developers to offer anything. But when you put software out into the world, whether it is free or something you have to buy, and whether it is for Linux, OS X, or Windows, people are going to give their opinion and say what they do and don't like about it. If getting a current version is harder than with other similar software, people have a right to note that and say they wish it were different. What I want to know is, who the hell do you think YOU are to insult other users who don't happen to have your level of Linux knowledge and who may not care to learn all the things you have? You have contributed absolutely nothing to this discussion other than to get people hot under the collar. In my opinion it appears that you may fit the classic definition of an Internet troll. Particularly so because you are just a user of this software, like everyone else here, and therefore cannot speak with any authority. > No - who do you think you are to run around screaming at people that they "refuse to learn"? > You created this problem. > If you want less hassle from users, make the software easier to use. If you can't be bothered, deal with the fallout. > Either way, you are not the boss, you are not in a position of authority, and it is not your place to tell peopl eoff. Thank you, Phil. I almost said something earlier when I thought maybe he was a developer (because I did not think that just another user would have the unmitigated gall to talk this way) that if this was how the developers acted toward people, I could fully understand why the project was forked. But I thought I had better ask if he were a developer first, and I am glad I did! Now that I know he's only a user I think he has a hell of a lot of nerve to talk to anyone the way he's been carrying on today (not that I would think any more highly of such conduct if he were a developer, but at least a developer would have more status to talk that way). I am done with this. The truth is that as long as the static builds are available, that is all I want or need. I did learn a few things from some of the participants and I do appreciate the help, but I am not real likely to ever try to build ffmpeg. For one thing I have absolutely zero desire to do that, and for another thing, it seems to me like the current version ought to be offered in the repositories (and clearly marked as such, not obfuscated among a whole bunch of choices that would leave anyone bewildered as to which to pick), and hopefully someday that will be the case. However, I have no desire to continue this thread, since it has become extremely counter-productive. From phil_rhodes at rocketmail.com Sun Oct 5 01:46:36 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 4 Oct 2014 23:46:36 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <1246727940.420635.1412466396394.JavaMail.yahoo@jws10686.mail.bf1.yahoo.com> >?Reindl Harald: And again, you come across as an insulting ass.? Look, nobody forces the developers to offer anything.? But when you put software out into the world, whether it is free or something you have to buy, and whether it is for> Linux, OS X, or Windows, people are going to give their opinion and say what they do and don't like about it.? If getting a current version is harder than with other similar software, people have a right to note that and say they wish it were> ?different. > What I want to know is, who the hell do you think YOU are to insult other users who don't happen to have your level of Linux knowledge and who may not care to learn all the things you have?? You have contributed absolutely nothing to> this discussion other than to get people hot under the collar.? In my opinion it appears that you may fit the classic definition of an Internet troll.? Particularly so because you are just a user of this software, like everyone else here, and> therefore cannot speak with any authority. I think this bears repeating for its absolute accuracy. P From h.reindl at thelounge.net Sun Oct 5 01:49:40 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 01:49:40 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: <543074D7.20005@thelounge.net> Message-ID: <54308794.4000506@thelounge.net> Am 05.10.2014 um 01:38 schrieb skyscanner at gmx.ca: > On Sat, 4 Oct 2014 22:56:06 +0000 (UTC), "Phil Rhodes" wrote: > >>> - who do you think you are to demand them offer a "just happy to use" binary additional to the development work? > > Reindl Harald: And again, you come across as an insulting ass > Look, nobody forces the developers to offer anything Phil tries to do for many years here > But when you put software out into the world, whether it is free or something you have to buy, and whether it is for Linux, OS X, or Windows, people are going to give their opinion and say what they do and don't like about it. and other people are going to give their opinion like i did - so what you just could have aid "thank you for now knowing that" after i explained you that upstream just offers source code and nothing else, well i even explained you the legal side why this can't change complain at the institutions responsible for patents if somebody builds a static binary of ffmpeg with x264 then it is his choice and risk - doing that in the wrong country or piss up the wrong people holding patent rights may bring him straigt to jail > If getting a current version is harder than with other similar software other free software in Linux distributions is built the same way as ffmpeg and if they are renect just say thank you to the package maintainer > people have a right to note that and say they wish it were different. you still don't get it - if the version your distribution offers is not recent enough *complain there* because it's the apckage maintainers fault not to keep on track and nobodys else he did build the package within the repos from the upstream sources and he is repsonsible to update them - nobody else - if you want rececnt binaries complain there or just build them at your own -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From skyscanner at gmx.ca Sun Oct 5 01:54:31 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Sun, 5 Oct 2014 01:54:31 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <20141005000938.7e7e034af676d4f355eeb905@neuf.fr> References: <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> , <20141005000938.7e7e034af676d4f355eeb905@neuf.fr> Message-ID: On?Sun, 5 Oct 2014 00:09:38 +0200,?"francesco scaglione" wrote: > About deb-multimedia: they have now even a wheezy-backports repository, > and there you can get a more recent version. Have a look: > http://www.deb-multimedia.org/dists/stable-backports/main/binary-amd64/package/ffmpeg Thank you! For some reason, when I saw the word "backports" I thought they were talking about older versions. Don't know why, I just did. Now that I know better, I'll keep it in mind if I ever have the need to seek out a newer version. From h.reindl at thelounge.net Sun Oct 5 01:58:01 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 05 Oct 2014 01:58:01 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: <20141004225732.e9786e7a2abb17edfd4c73ea@neuf.fr> Message-ID: <54308989.3010008@thelounge.net> Am 05.10.2014 um 01:54 schrieb skyscanner at gmx.ca: > On Sun, 5 Oct 2014 00:09:38 +0200, "francesco scaglione" wrote: > >> About deb-multimedia: they have now even a wheezy-backports repository, >> and there you can get a more recent version. Have a look: > >> http://www.deb-multimedia.org/dists/stable-backports/main/binary-amd64/package/ffmpeg > > Thank you! For some reason, when I saw the word "backports" I thought they were talking about older versions http://en.wikipedia.org/wiki/Backporting backport means "we took functionality from later distribution releases to a older one" in general - specifically backport in context of software means "we found a bug in the recent version, it turned out that it existed for years and we backported the fix to older releases too so that you don't need to force a major update" -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From ybrenman at xopnetworks.com Mon Oct 6 05:26:42 2014 From: ybrenman at xopnetworks.com (Yan Brenman) Date: Sun, 05 Oct 2014 20:26:42 -0700 Subject: [FFmpeg-user] Problem with GDIGRAB device on Windows 7 Message-ID: <54320BF2.4030302@xopnetworks.com> Hello ffmpeg/gdigrab gurus! We are using "gdigrab" device on Windows to share/stream video for a specific application window (identified by a title as "gdigrab" requires). Everything works great on Window 8.x - actual application window (and not the region on the desktop occupied by the application window) is getting shared and successfully played by the player on the receiving side. Which means that even if shared window is overlapped by the other window on the source - still the application window is getting played. Unfortunately, as we discovered, "gdigrab" doesn't work correctly on Window 7. And instead window sharing it actually does the region sharing. Which pretty much means that if shared window is being overlapped by the other window on the desktop - that's what getting played on the receiving side. Just for reference - we tried to do window sharing with screen-capture-recorder and unfortunately got exactly the same results. I would greatly appreciate any help/advise anybody can provide on the subject. And please let me know if there is any other information I can provide. Greatly appreciate your help Yan From ajay_382000 at yahoo.co.in Mon Oct 6 10:34:07 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Mon, 6 Oct 2014 16:34:07 +0800 Subject: [FFmpeg-user] ffserver config for HLS Message-ID: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> Hi, Asf video streaming is working smoothly at my end but Now I want to do HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order. Step 1) execute vlc Step 2) execute ffserver Step 3) execute ffmpeg I tried a lot but not getting any ffserver config file that can be used for HLS streaming . Please share working ffserver config file with me. Thanks Ajay From codecomplete at free.fr Mon Oct 6 11:03:10 2014 From: codecomplete at free.fr (Gilles) Date: Mon, 06 Oct 2014 11:03:10 +0200 Subject: [FFmpeg-user] Brighten dark video before reducing size? References: Message-ID: On Tue, 11 Dec 2012 11:31:49 +0000 (UTC), Carl Eugen Hoyos wrote: >> I was wondering if ffmpeg could apply some filters >> before further reducing the filesize? > >Definitely, please see the fine filter documentation: >http://ffmpeg.org/ffmpeg.html#Video-Filters >(hue, lut, geq and mp=eq2 come to mind.) I've tried the following commands, but none worked to brighten a dark video: I tried each of those commands, but observed no change: -vf mp=eq2=1:1.68:0.3:1.25:1:0.96:1 -vf "lutyuv=y=val*1.3" -vf "lutyuv=y=val*2.0" -filter:v lutyuv="y=gammaval(0.7)" Here's how I used the command, where HERE contained one of the switches above ffmpeg -ss 00:05:00 -t 20 -i input.mp4 HERE -vf scale=640:-1 -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4 output.mp4 Thank you. PS: More information about the input file: c:\>ffprobe.exe -i input.mp4 ffprobe version N-66595-g1c4c78e Copyright (c) 2007-2014 the FFmpeg developers built on Oct 3 2014 22:01:53 with gcc 4.9.1 (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-zlib libavutil 54. 9.100 / 54. 9.100 libavcodec 56. 2.101 / 56. 2.101 libavformat 56. 7.104 / 56. 7.104 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.102 / 5. 1.102 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.18.100 Duration: 00:27:31.04, start: 0.000000, bitrate: 1415 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1283 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 12 5 kb/s (default) Metadata: handler_name : SoundHandler From tevans.uk at googlemail.com Mon Oct 6 11:09:09 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 6 Oct 2014 10:09:09 +0100 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: On Sat, Oct 4, 2014 at 8:58 PM, wrote: > In my case, it's the whole thing about "git" that first mystifies me, and then the process of compiling from source. I know there are Linux users that do that, but I can only do it if there are very clear, explicit, line by line instructions that don't assume any prior knowledge on my part. Otherwise it's like handing me eggs, flour, and sugar and saying "bake a cake" - I would have no idea where to begin and the results are probably going to be a hot mess. To use your cake analogy, there are very many ways to end up with a cake. You can go to the store and buy one (Quicktime Pro). The cake should be just how you like it, and you can ask people to make it just how you like it before you buy it. You can go to the store and buy cake mix (Handbrake). This is cheaper, but you need to do some of the mixing and baking yourself. Alternatively, you can go get eggs, flour and sugar and mix it and bake it yourself (ffmpeg). This is the option you have chosen. If you don't like the steps involved, go to the store instead. ffmpeg is open source software delivered as source code. If you have complaints about how binaries of it are packaged, you are complaining in the wrong place - talk to the packager. If you have complaints about having to compile it to get a supported version, you're complaining in the wrong case - no-one here cares, it is part of the cost of using ffmpeg that we all (well, apart from Phil) agree to. Cheers Tom From cehoyos at ag.or.at Mon Oct 6 11:51:51 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 Oct 2014 09:51:51 +0000 (UTC) Subject: [FFmpeg-user] Brighten dark video before reducing size? References: Message-ID: Gilles free.fr> writes: > On Tue, 11 Dec 2012 11:31:49 +0000 (UTC), Carl Eugen Hoyos > ag.or.at> wrote: > >> I was wondering if ffmpeg could apply some filters > >> before further reducing the filesize? > > > >Definitely, please see the fine filter documentation: > >http://ffmpeg.org/ffmpeg.html#Video-Filters > >(hue, lut, geq and mp=eq2 come to mind.) > > I've tried the following commands, but none worked to > brighten a dark video: Note that this answer to a two-year old email is quite disturbing to me... (But that may absolutely only be me!) [...] > Here's how I used the command, where HERE contained > one of the switches above Please never post command lines that contain variables, always post actual command lines that you tested including their complete, uncut console output. As far as I am concerned, using -vf filter1 -vf filter2 is either undefined behaviour or not supported, the filter option does support multiple filters. Carl Eugen From skyscanner at gmx.ca Mon Oct 6 12:08:40 2014 From: skyscanner at gmx.ca (skyscanner at gmx.ca) Date: Mon, 6 Oct 2014 12:08:40 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: , Message-ID: "Tom Evans" wrote: > Alternatively, you can go get eggs, flour and sugar and mix it and > bake it yourself (ffmpeg). This is the option you have chosen. If you > don't like the steps involved, go to the store instead. What on earth are you beating this dead horse for? You're taking the entire analogy to the ridiculous. > ffmpeg is open source software delivered as source code. If you have > complaints about how binaries of it are packaged, you are complaining > in the wrong place - talk to the packager. As a user of the software - remember, this was supposed to be a list for ffmpeg USERS, though I am starting to think that is false advertising - all I was wanting to know is how to get a newer version. Someone told me about a precompiled static version. It works. I will use it. I didn't have to buy it. Problem solved. And you are being utterly ridiculous beyond belief when you suggest I talk to the packager. For one thing, as long as I have the static version, I couldn't care less what the packager does. For another thing, as a user, I have no idea who the packager is. And even if I did, they are probably worse Linux snobs than some of the people in this group seem to be, and I would get the same crap I am getting here, only worse, because after all, why should they listen to a mere user? Never mind that they make their software for users, this attitude that many Linux developers seem to have is something you never see in the Windows world. They make the software, and presumably want people to use it (otherwise they should keep it to themselves), but it's like they can't even take a constructive suggestion for improvement, let alone anything that might be construed as a criticism. Or, they want you to file a bug report or feature request and then maybe five years later they will get around to actually acting on it, by which time I've usually moved on and found something better. > If you have complaints about having to compile it to get a supported > version, you're complaining in the wrong case - no-one here cares, it > is part of the cost of using ffmpeg that we all (well, apart from > Phil) agree to. Phil and ME. Don't forget me. I am damn proud to be in Phil's camp in this case, and I had never heard of him prior to encountering this list. Phil has his head screwed on straight, and you trolls that want to make a mountain out of a molehill really need to find a hobby or something. I'm sure now you are going to try and convince me that using the static build is wrong somehow, and I'll tell you right now, I don't care. It works, it solves my problem, and I am happy with it. The only thing I am not happy about is some of you guys that just have to be so preachy even though none of you have identified yourself as a developer, and therefore you are attempting to speak with authority you don't have. And anyway, I'm not complaining about having to compile it to get a supported version because I don't care if it's an unsupported version, as long as it will do the one thing I need it to do. If I can find a version of ffmpeg that does that, I'll use it. If I could have found a version of libav, or whatever that forked version is, that does what I want I would have happily used that. I don't care about all this internal drama, I don't care about what is considered "correct" by you or anyone else, I don't care whether you or anyone else thinks I ought to learn how to do something that I have zero interest in, and frankly, if anyone feels I am wrong in thinking this way, I don't care what you think. I don't care because you are also just mere users like me, and therefore anything you may have to say on the subject is your your own opinion, and I happen to think differently. If I make a suggestion or a criticism, and you think I'm wrong, I don't care because you are not the person who would ultimately act on or reject it. And if no one here cares, then why are there so many useless messages posted in this thread, that aren't helping anyone and that aren't going to change my mind in the slightest? Are your lives so empty that posting crap like this is all you have to do? Just stop. Because you are typing to no one that cares! And you could put your time to better use by actually helping people, instead of creating a pile of rotting, putrid horsemeat! (No offense intended toward the people who actually did have helpful suggestions). And now I am going to unsubscribe from this list, at least for a while, because I simply don't care to participate it this type of unproductive and unhelpful discussion, and I don't even want to read any more of this garbage. From h.reindl at thelounge.net Mon Oct 6 12:15:42 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 06 Oct 2014 12:15:42 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: References: Message-ID: <54326BCE.8000204@thelounge.net> Am 06.10.2014 um 12:08 schrieb skyscanner at gmx.ca: > I couldn't care less what the packager does > I don't care > because I don't care if it's an unsupported version > I don't care because you are not the > And if no one here cares > Because you are typing to no one that cares! > > And now I am going to unsubscribe from this list thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From codecomplete at free.fr Mon Oct 6 12:33:20 2014 From: codecomplete at free.fr (Gilles) Date: Mon, 06 Oct 2014 12:33:20 +0200 Subject: [FFmpeg-user] Brighten dark video before reducing size? References: Message-ID: On Mon, 6 Oct 2014 09:51:51 +0000 (UTC), Carl Eugen Hoyos wrote: >Please never post command lines that contain variables, >always post actual command lines that you tested >including their complete, uncut console output. > >As far as I am concerned, using -vf filter1 -vf filter2 >is either undefined behaviour or not supported, the >filter option does support multiple filters. This does display the video like I'd like it to look: ffplay -i input.mp4 -vf "lutyuv=y=val*1.3" Next, I tried combining the two "vf" commands, but it didn't work: ========================== c:\>ffmpeg -ss 00:05:00 -t 20 -i input.mp4 -vf lutyuv=y=val*1.3 scale=640:-1 -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4 output.mp4 ffmpeg version N-66595-g1c4c78e Copyright (c) 2000-2014 the FFmpeg developers built on Oct 3 2014 22:01:53 with gcc 4.9.1 (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-zlib libavutil 54. 9.100 / 54. 9.100 libavcodec 56. 2.101 / 56. 2.101 libavformat 56. 7.104 / 56. 7.104 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.102 / 5. 1.102 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.18.100 Duration: 00:27:31.04, start: 0.000000, bitrate: 1415 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1283 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 12 5 kb/s (default) Metadata: handler_name : SoundHandler [NULL @ 0414d840] Unable to find a suitable output format for 'scale=640:-1' scale=640:-1: Invalid argument ffmpeg -ss 00:05:00 -t 20 -i input.mp4 -vf "lutyuv=y=val*1.3 scale=640:-1" -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4 output.mp4 ========================== c:\>ffmpeg -ss 00:05:00 -t 20 -i input.mp4 -vf "lutyuv=y=val*1.3 scale=640:-1" -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4 output.mp4 ffmpeg version N-66595-g1c4c78e Copyright (c) 2000-2014 the FFmpeg developers built on Oct 3 2014 22:01:53 with gcc 4.9.1 (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-zlib libavutil 54. 9.100 / 54. 9.100 libavcodec 56. 2.101 / 56. 2.101 libavformat 56. 7.104 / 56. 7.104 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.102 / 5. 1.102 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.18.100 Duration: 00:27:31.04, start: 0.000000, bitrate: 1415 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1283 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 12 5 kb/s (default) Metadata: handler_name : SoundHandler [Parsed_lutyuv_0 @ 04054f00] [Eval @ 0022af8c] Invalid chars 'scale=640' at the end of expression 'val*1.3 scale=640' [Parsed_lutyuv_0 @ 04054f00] Error when parsing the expression 'val*1.3 scale=64 0' for the component 0 and color 0. [Parsed_lutyuv_0 @ 04054f00] Failed to configure input pad on Parsed_lutyuv_0 Error opening filters! From cehoyos at ag.or.at Mon Oct 6 13:24:46 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 Oct 2014 11:24:46 +0000 (UTC) Subject: [FFmpeg-user] Brighten dark video before reducing size? References: Message-ID: Gilles free.fr> writes: > c:\>ffmpeg -ss 00:05:00 -t 20 -i input.mp4 > -vf lutyuv=y=val*1.3 scale=640:-1 I suspect this should be: -vf lutyuv=y=val*1.3,scale=640:-1 But I suggest you first try without scaling to find the right syntax to brighten your video. Carl Eugen From codecomplete at free.fr Mon Oct 6 13:32:11 2014 From: codecomplete at free.fr (Gilles) Date: Mon, 06 Oct 2014 13:32:11 +0200 Subject: [FFmpeg-user] Brighten dark video before reducing size? References: Message-ID: <6dv43apatdbkj0banc086ccn1nfmp2jitm@4ax.com> On Mon, 6 Oct 2014 11:24:46 +0000 (UTC), Carl Eugen Hoyos wrote: >I suspect this should be: >-vf lutyuv=y=val*1.3,scale=640:-1 Problem solved with the folllowing: ffmpeg -i input.mp4 -vf mp=eq2=1:1.68:0.3:1.25:1:0.96:1,scale=640:-1,format=pix_fmts=yuv420p -c:v libx264 -c:a copy -shortest -f mp4 output.mp4 Thank you. From ajay_382000 at yahoo.co.in Mon Oct 6 13:52:50 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Mon, 6 Oct 2014 19:52:50 +0800 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> Message-ID: <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> Hi, Asf video streaming is working smoothly at my end but Now I want to do HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order. Step 1) execute vlc Step 2) execute ffserver Step 3) execute ffmpeg I tried a lot but not getting any ffserver config file that can be used for HLS streaming . Please share working ffserver config file with me. Thanks Ajay ****************************************************************************** Please provide me working ffserver configuration file for HLS streaming. From phil_rhodes at rocketmail.com Mon Oct 6 17:48:41 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Mon, 6 Oct 2014 15:48:41 +0000 (UTC) Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <54326BCE.8000204@thelounge.net> References: <54326BCE.8000204@thelounge.net> Message-ID: <1314696024.467844.1412610521217.JavaMail.yahoo@jws106111.mail.bf1.yahoo.com> >?thank you You consider this a victory? From h.reindl at thelounge.net Mon Oct 6 18:20:15 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 06 Oct 2014 18:20:15 +0200 Subject: [FFmpeg-user] What is the difference between versions of ffmpeg? In-Reply-To: <1314696024.467844.1412610521217.JavaMail.yahoo@jws106111.mail.bf1.yahoo.com> References: <54326BCE.8000204@thelounge.net> <1314696024.467844.1412610521217.JavaMail.yahoo@jws106111.mail.bf1.yahoo.com> Message-ID: <5432C13F.7050407@thelounge.net> Am 06.10.2014 um 17:48 schrieb Phil Rhodes: >> thank you > You consider this a victory? i am not in a fight but when someone says "i don't care" to anything... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From sagarawmw at yahoo.com Mon Oct 6 19:13:49 2014 From: sagarawmw at yahoo.com (Sagara Wijetunga) Date: Mon, 6 Oct 2014 17:13:49 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode In-Reply-To: References: Message-ID: <1167110840.571151.1412615629559.JavaMail.yahoo@jws10708.mail.gq1.yahoo.com> > Then please also test with > --enable-libvpx --disable-decoder=vp9 --disable-parser=vp9 > (If disabling the parser works at all, I don't know.) Tried. No change. I later managed to more narrow down the issue. Its the vp9 file itself having an issue. Many video packets having negative PTS values! I presume the issue is libvpx-git is not ready yet. I'll check with webm project what options currently can be used. The libvpx 1.3.0 for vp9 is no use. Way too slow. Sagara _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From senthil.nathan at industeqsite.com Tue Oct 7 06:02:43 2014 From: senthil.nathan at industeqsite.com (senthilnathan) Date: Tue, 7 Oct 2014 09:32:43 +0530 Subject: [FFmpeg-user] unsubscribe. Message-ID: <7604CD8C3C984746AF06E474D918C190@itd223> Hello, I have finished my project.I want to do the unsubscribe from the ffmpeg user list. Please do the needful. Thanks and Regards, D.Senthil Nathan Asst.Manager - SDG Indus Teqsite Pvt. Ltd. H-9,SIPCOT IT Park,Siruseri,Chennai-603103,TamilNadu,INDIA. Phone : +91 44 47414137 Mobile : +91 7299202990. **************** 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 ajay_382000 at yahoo.co.in Tue Oct 7 07:18:13 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Tue, 7 Oct 2014 13:18:13 +0800 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> Message-ID: <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> Hi, Asf video streaming is working smoothly at my end but Now I want to do HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order. Step 1) execute vlc Step 2) execute ffserver Step 3) execute ffmpeg I tried a lot but not getting any ffserver config file that can be used for HLS streaming . Please share working ffserver config file with me. Thanks Ajay ****************************************************************************** Please provide me working ffserver configuration file for HLS streaming. ************************************************************************************** Below is the ffmpeg command and it says "maybe incorrect parameters such as bit_rate, rate, width or height". I verified all these parameters are correct ffmpeg -i pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment -segment_list_flags +live -segment_list playlist.m3u8 -segment_time 10 out%03d.ts http://10.125.133.31:8080/feed1.ffm ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static --disable-stripping libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 [mpegts @ 0x22f4ec0] PES packet size mismatch Last message repeated 2 times Input #0, mpegts, from 'pentagon_hd_sd.ts': Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s Program 1 Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:3[0x47]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc [libx264 @ 0x2351e60] using SAR=10/11 [libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 0x2351e60] profile High, level 3.0 [ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB Output #0, stream_segment,ssegment, to 'out%03d.ts': Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm': Metadata: creation_time : now Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s Metadata: encoder : Lavc56.1.100 ac3 Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR 16:9, 59.94 fps, 1000k tbn, 30 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream mapping: Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (copy) Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native)) Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264)) Error while opening encoder for output stream #1:0 - maybe incorrect parameters such as bit_rate, rate, width or height ******************************************************************************************************* My ffserevr config file ********************************************************************************************************* HTTPPort 8080 HTTPBindAddress 10.125.133.31 MaxClients 1000 MaxBandwidth 1000 File /tmp/feed1.ffm FileMaxSize 1G ACL allow localhost ACL allow 10.125.133.31 10.125.133.66 10.125.133.151 Feed feed1.ffm Format HLS VideoCodec libx264 VideoFrameRate 30 VideoBitRate 128 VideoSize 704*480 AVOptionVideo hls_time 10 AVOptionVideo hls_list_size 0 AVOptionVideo flags +global_header AudioCodec ac3 AudioBitRate 128 AudioChannels 2 AudioSampleRate 48000 From maziar.mehrabi at gmail.com Tue Oct 7 07:47:55 2014 From: maziar.mehrabi at gmail.com (Maziar Mehrabi) Date: Tue, 7 Oct 2014 08:47:55 +0300 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> Message-ID: Hi, How did you verify and made sure that these parameters are correct? BR, Maziar -- H?lsningar, Maziar Mehrabi, On Tue, Oct 7, 2014 at 8:18 AM, ajay parashar < ajay_382000-at-yahoo.co.in at ffmpeg.org> wrote: > > > > > > > > > > Hi, > > Asf video streaming is working smoothly at my end but Now I want to do > HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order. > > Step 1) execute vlc > Step 2) execute ffserver > Step 3) execute ffmpeg > > I tried a lot but not getting any ffserver config file that can be used > for HLS streaming . > > Please share working ffserver config file with me. > > Thanks > Ajay > > > ****************************************************************************** > > Please provide me working ffserver configuration file for HLS streaming. > > ************************************************************************************** > > Below is the ffmpeg command and it says "maybe incorrect parameters such > as bit_rate, rate, width or height". I verified all these parameters > are correct > > ffmpeg -i > pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f > ssegment -segment_list_flags +live -segment_list playlist.m3u8 > -segment_time 10 out%03d.ts http://10.125.133.31:8080/feed1.ffm > ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers > built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat > 4.8.3-1) > configuration: --enable-gpl --enable-libx264 --enable-shared > --disable-static --disable-stripping > libavutil 54. 7.100 / 54. 7.100 > libavcodec 56. 1.100 / 56. 1.100 > libavformat 56. 4.101 / 56. 4.101 > libavdevice 56. 0.100 / 56. 0.100 > libavfilter 5. 1.100 / 5. 1.100 > libswscale 3. 0.100 / 3. 0.100 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 0.100 / 53. 0.100 > [mpegts @ 0x22f4ec0] PES packet size mismatch > Last message repeated 2 times > Input #0, mpegts, from 'pentagon_hd_sd.ts': > Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s > Program 1 > Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, > fltp, 192 kb/s > Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, > fltp, 384 kb/s > > Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, > 90k tbn, 119.88 tbc > Stream #0:3[0x47]: Video: > h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480 > [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc > [libx264 @ 0x2351e60] using SAR=10/11 > [libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 > [libx264 @ 0x2351e60] profile High, level 3.0 > [ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB > Output #0, stream_segment,ssegment, to 'out%03d.ts': > Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR > 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc > Metadata: > encoder : Lavc56.1.100 libx264 > Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s > Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm': > Metadata: > creation_time : now > Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s > Metadata: > encoder : Lavc56.1.100 ac3 > Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR > 16:9, 59.94 fps, 1000k tbn, 30 tbc > Metadata: > encoder : Lavc56.1.100 libx264 > Stream mapping: > Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264)) > Stream #0:0 -> #0:1 (copy) > Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native)) > Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264)) > Error while opening encoder for output stream #1:0 - maybe incorrect > parameters such as bit_rate, rate, width or height > > > ******************************************************************************************************* > My ffserevr config file > > ********************************************************************************************************* > HTTPPort 8080 > HTTPBindAddress 10.125.133.31 > MaxClients 1000 > MaxBandwidth 1000 > > > File /tmp/feed1.ffm > FileMaxSize 1G > ACL allow localhost > ACL allow 10.125.133.31 10.125.133.66 10.125.133.151 > > > > Feed feed1.ffm > Format HLS > VideoCodec libx264 > VideoFrameRate 30 > VideoBitRate 128 > VideoSize 704*480 > AVOptionVideo hls_time 10 > AVOptionVideo hls_list_size 0 > AVOptionVideo flags +global_header > AudioCodec ac3 > AudioBitRate 128 > AudioChannels 2 > AudioSampleRate 48000 > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ajay_382000 at yahoo.co.in Tue Oct 7 08:10:49 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Tue, 7 Oct 2014 14:10:49 +0800 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> Message-ID: <1412662249.21788.YahooMailNeo@web194601.mail.sg3.yahoo.com> On Tue, Oct 7, 2014 at 8:18 AM, ajay parashar < ajay_382000-at-yahoo.co.in at ffmpeg.org> wrote: > Hi, > > Asf video streaming is working smoothly at my end but Now I want to do > HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order. > > Step 1) execute vlc > Step 2) execute ffserver > Step 3) execute ffmpeg > > I tried a lot but not getting any ffserver config file that can be used > for HLS streaming . > > Please share working ffserver config file with me. > > Thanks > Ajay > > > ****************************************************************************** > > Please provide me working ffserver configuration file for HLS streaming. > > ************************************************************************************** > > Below is the ffmpeg command and it says "maybe incorrect parameters such > as bit_rate, rate, width or height". I verified all these parameters > are correct > > ffmpeg -i > pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f > ssegment -segment_list_flags +live -segment_list playlist.m3u8 > -segment_time 10 out%03d.ts http://10.125.133.31:8080/feed1.ffm > ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers > built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat > 4.8.3-1) > configuration: --enable-gpl --enable-libx264 --enable-shared > --disable-static --disable-stripping > libavutil 54. 7.100 / 54. 7.100 > libavcodec 56. 1.100 / 56. 1.100 > libavformat 56. 4.101 / 56. 4.101 > libavdevice 56. 0.100 / 56. 0.100 > libavfilter 5. 1.100 / 5. 1.100 > libswscale 3. 0.100 / 3. 0.100 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 0.100 / 53. 0.100 > [mpegts @ 0x22f4ec0] PES packet size mismatch > Last message repeated 2 times > Input #0, mpegts, from 'pentagon_hd_sd.ts': > Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s > Program 1 > Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, > fltp, 192 kb/s > Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, > fltp, 384 kb/s > > Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, > 90k tbn, 119.88 tbc > Stream #0:3[0x47]: Video: > h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480 > [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc > [libx264 @ 0x2351e60] using SAR=10/11 > [libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 > [libx264 @ 0x2351e60] profile High, level 3.0 > [ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB > Output #0, stream_segment,ssegment, to 'out%03d.ts': > Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR > 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc > Metadata: > encoder : Lavc56.1.100 libx264 > Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s > Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm': > Metadata: > creation_time : now > Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s > Metadata: > encoder : Lavc56.1.100 ac3 > Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR > 16:9, 59.94 fps, 1000k tbn, 30 tbc > Metadata: > encoder : Lavc56.1.100 libx264 > Stream mapping: > Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264)) > Stream #0:0 -> #0:1 (copy) > Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native)) > Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264)) > Error while opening encoder for output stream #1:0 - maybe incorrect > parameters such as bit_rate, rate, width or height > > > ******************************************************************************************************* > My ffserevr config file > > ********************************************************************************************************* > HTTPPort 8080 > HTTPBindAddress 10.125.133.31 > MaxClients 1000 > MaxBandwidth 1000 > > > File /tmp/feed1.ffm > FileMaxSize 1G > ACL allow localhost > ACL allow 10.125.133.31 10.125.133.66 10.125.133.151 > > > > Feed feed1.ffm > Format HLS > VideoCodec libx264 > VideoFrameRate 30 > VideoBitRate 128 > VideoSize 704*480 > AVOptionVideo hls_time 10 > AVOptionVideo hls_list_size 0 > AVOptionVideo flags +global_header > AudioCodec ac3 > AudioBitRate 128 > AudioChannels 2 > AudioSampleRate 48000 > *************************************************************************************************** Hi, How did you verify and made sure that these parameters are correct? BR, Maziar -- H?lsningar, Maziar Mehrabi, *************************************************************************************************** I played this video in VLC and confirm Video width, height , video frame rate and use the same value in above mentioned ffserver config file. Regards Ajay From sagarawmw at yahoo.com Tue Oct 7 09:46:22 2014 From: sagarawmw at yahoo.com (Sagara Wijetunga) Date: Tue, 7 Oct 2014 07:46:22 +0000 (UTC) Subject: [FFmpeg-user] Modern ffmpeg/libvpx generates incorrect PTS for vp9 when decode In-Reply-To: <1167110840.571151.1412615629559.JavaMail.yahoo@jws10708.mail.gq1.yahoo.com> References: <1167110840.571151.1412615629559.JavaMail.yahoo@jws10708.mail.gq1.yahoo.com> Message-ID: <1688601538.377716.1412667982704.JavaMail.yahoo@jws10776.mail.gq1.yahoo.com> > I later managed to more narrow down the issue. Its the vp9 file itself having an issue. > Many video packets having negative PTS values! Here are some more insight. The av_read_frame(pFormatCtx, &packet) returns PTS/DTS as follows. For negative PTS video packets I assigned the previous known PTS. Now the vp9 decoded frames comes with correct PTS values and player plays it very well. Video PKT PTS: 0, DTS: 0, Size: 129 Video PKT PTS: 42, DTS: 42, Size: 31 Video PKT PTS: -9223372036854775808, DTS: -9223372036854775808, Size: 27 Negative video PTS: -9223372036854775808, DTS: -9223372036854775808 Last PTS assigned: 42 Video PKT PTS: 83, DTS: 83, Size: 25 Video PKT PTS: 125, DTS: 125, Size: 24 Video PKT PTS: 167, DTS: 167, Size: 23 Video PKT PTS: 209, DTS: 209, Size: 20 Video PKT PTS: 250, DTS: 250, Size: 20 Video PKT PTS: 292, DTS: 292, Size: 18 Video PKT PTS: 334, DTS: 334, Size: 18 Video PKT PTS: 375, DTS: 375, Size: 18 Video PKT PTS: 417, DTS: 417, Size: 19 Video PKT PTS: 459, DTS: 459, Size: 18 Video PKT PTS: 501, DTS: 501, Size: 18 Video PKT PTS: 542, DTS: 542, Size: 18 Video PKT PTS: 584, DTS: 584, Size: 18 Video PKT PTS: 626, DTS: 626, Size: 18 Video PKT PTS: 667, DTS: 667, Size: 18 Video PKT PTS: 709, DTS: 709, Size: 18 Video PKT PTS: 751, DTS: 751, Size: 18 Video PKT PTS: 792, DTS: 792, Size: 18 Video PKT PTS: 834, DTS: 834, Size: 18 Video PKT PTS: 876, DTS: 876, Size: 18 Video PKT PTS: 918, DTS: 918, Size: 18 Video PKT PTS: 959, DTS: 959, Size: 18 Video PKT PTS: 1001, DTS: 1001, Size: 18 Video PKT PTS: 1043, DTS: 1043, Size: 34578 Video PKT PTS: 1084, DTS: 1084, Size: 97 Video PKT PTS: -9223372036854775808, DTS: -9223372036854775808, Size: 38 Negative video PTS: -9223372036854775808, DTS: -9223372036854775808 Last PTS assigned: 1084 Video PKT PTS: 1126, DTS: 1126, Size: 29 Video PKT PTS: 1168, DTS: 1168, Size: 26 Video PKT PTS: 1210, DTS: 1210, Size: 24 Video PKT PTS: 1251, DTS: 1251, Size: 22 Video PKT PTS: 1293, DTS: 1293, Size: 20 Video PKT PTS: 1335, DTS: 1335, Size: 19 I assigned last PTS directly to the packet as follows: packet.pts = videoLastPTS; The real issue is before the decoding, the av_read_frame() returns some video packets with negative PTS/DTS values. 1. Is it always correct to assign the last known PTS to the packet.pts but it works very well? 2. Is this issue known and already corrected in the git version of the ffmpeg? So that I can give it a try to the git version of the ffmpeg. Sagara From barsnick at gmx.net Tue Oct 7 10:32:32 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 7 Oct 2014 10:32:32 +0200 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: <1412662249.21788.YahooMailNeo@web194601.mail.sg3.yahoo.com> References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> <1412662249.21788.YahooMailNeo@web194601.mail.sg3.yahoo.com> Message-ID: <20141007083232.GA14929@sunshine.barsnick.net> On Tue, Oct 07, 2014 at 14:10:49 +0800, ajay parashar wrote: > > Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native)) > > Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264)) > > Error while opening encoder for output stream #1:0 - maybe incorrect > > parameters such as bit_rate, rate, width or height > I played this video in VLC and confirm Video width, height , video > frame rate and use the same value in above mentioned ffserver config > file. But as you can see from the message, something is wrong with the AC3 audio track (output stream #1:0). Have you tried stream-copying input #0:0 or #0:1 instead of re-encoding it? By the way, you have two outputs: out%03d.ts (segment) and http://10.125.133.31:8080/feed1.ffm and you are not specifying any parameters for the second one. Are you sure this is what you are trying to achieve? Moritz From h.reindl at thelounge.net Tue Oct 7 11:03:02 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 07 Oct 2014 11:03:02 +0200 Subject: [FFmpeg-user] unsubscribe. In-Reply-To: <7604CD8C3C984746AF06E474D918C190@itd223> References: <7604CD8C3C984746AF06E474D918C190@itd223> Message-ID: <5433AC46.9060208@thelounge.net> just click on the link in the list footer or type in google "how to unsubscribe from a mailing-list" - how and why should other members are be allowed to unsubscribe somebody which did subscribe at his own? Am 07.10.2014 um 06:02 schrieb senthilnathan: > I have finished my project.I want to do the unsubscribe from the ffmpeg user list. > Please do the needful. > > _______________________________________________ > 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: 181 bytes Desc: OpenPGP digital signature URL: From ajay_382000 at yahoo.co.in Tue Oct 7 11:47:38 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Tue, 7 Oct 2014 17:47:38 +0800 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: <20141007083232.GA14929@sunshine.barsnick.net> References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> <1412662249.21788.YahooMailNeo@web194601.mail.sg3.yahoo.com> <20141007083232.GA14929@sunshine.barsnick.net> Message-ID: <1412675258.28680.YahooMailNeo@web194606.mail.sg3.yahoo.com> On Tue, Oct 07, 2014 at 14:10:49 +0800, ajay parashar wrote: > > Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native)) > > Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264)) > > Error while opening encoder for output stream #1:0 - maybe incorrect > > parameters such as bit_rate, rate, width or height > I played this video in VLC and confirm Video width, height , video > frame rate and use the same value in above mentioned ffserver config > file. From: Moritz Barsnick But as you can see from the message, something is wrong with the AC3 audio track (output stream #1:0). Have you tried stream-copying input #0:0 or #0:1 instead of re-encoding it? By the way, you have two outputs: out%03d.ts (segment) and http://10.125.133.31:8080/feed1.ffm and you are not specifying any parameters for the second one. Are you sure this is what you are trying to achieve? Moritz **************************************************************************************** Okay for second output Now i am using tee option and below is the ffmpeg commnad, ffmpeg does not complain this time for incorrect parameters but ffserver is not streming data. ffmpeg -i pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment -segment_list_flags +live -segment_time 10 -segment_list playlist.m3u8 out%03d.ts |[f=hls] http://10.125.133.31:8080/feed1.ffm ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static --disable-stripping libavutil 54. 7.100 / 54. 7.100 bash: [f=hls]: command not found... libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 [mpegts @ 0x181ee40] PES packet size mismatch Last message repeated 2 times Input #0, mpegts, from 'pentagon_hd_sd.ts': Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s Program 1 Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:3[0x47]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc [libx264 @ 0x187c200] using SAR=10/11 [libx264 @ 0x187c200] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 0x187c200] profile High, level 3.0 [mpegts @ 0x190aaa0] 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, stream_segment,ssegment, to 'out%03d.ts': Metadata: encoder : Lavf56.4.101 Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s Stream mapping: Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help [stream_segment,ssegment @ 0x1826dc0] Non-monotonous DTS in output stream 0:1; previous: 74880, current: 73459; changing to 74881. This may result in incorrect timestamps in the output file. [mpegts @ 0x181ee40] DTS 2958942089 < 2958943387 out of order [mpegts @ 0x1916920] 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 @ 0x1916900] 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 @ 0x190bfc0] 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 @ 0x191b800] 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 @ 0x1ec39c0] 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 @ 0x181ee40] PES packet size mismatch1:02.67 bitrate=N/A dup=38 drop=0 frame= 1891 fps= 27 q=29.0 size=N/A time=00:01:03.05 bitrate=N/A dup=38 drop=0 [2]+ Stopped ffmpeg -i pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment -segment_list_flags +live -segment_time 10 -segment_list playlist.m3u8 out%03d.ts | [f=hls] http://10.125.133.31:8080/feed1.ffm [root at localhost media_files]# ********************************************************************************************** ffserver logs as below ffserver -f hls_ffmpeg_streaming.conf ffserver version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static --disable-stripping libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 [mpegts @ 0x26092a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. From umansky at torcrobotics.com Tue Oct 7 20:16:05 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Tue, 7 Oct 2014 18:16:05 +0000 Subject: [FFmpeg-user] Save segmented and fragmented h264 to disk Message-ID: <205DBBE9F739414F9815C142C7EA61CC03617FC3@exchsvr01.torcrobotics.net> Yes. It actually generates the files as fast as it can (so I get a dozen files in a second or so) but if I don't kill the process nicely, the last generated file is not properly fragmented and is unplayable. This is the atom structure from atomicparsley of the last file (broken), which has no moov or moof atom to define anything: Atom ftyp @ 0 of size: 32, ends @ 32 Atom free @ 32 of size: 8, ends @ 40 Atom mdat @ 40 of size: 141345 (0*), ends @ 141385 (*)denotes length of atom goes to End-of-File ------------------------------------------------------ Total size: 141385 bytes; 2 atoms total. AtomicParsley version: 0.9.0 (utf16) Media data: 141345 bytes; 40 bytes all other atoms (0.028% atom overhead). Total free atom space: 8 bytes; 0.006% waste. Padding available: 0 bytes. From ajay_382000 at yahoo.co.in Wed Oct 8 07:08:56 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Wed, 8 Oct 2014 13:08:56 +0800 Subject: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry In-Reply-To: <542AB032.9040503@misalpina.net> References: <1412082686.47062.BPMail_high_carrier@web194605.mail.sg3.yahoo.com> <542AB032.9040503@misalpina.net> Message-ID: <1412744936.33232.YahooMailNeo@web194606.mail.sg3.yahoo.com> On 9/30/2014 4:11 PM, ajay parashar wrote: >>> #EXTM3U >>> #EXT-X-VERSION:3 >>> #EXT-X-MEDIA-SEQUENCE:0 >>> #EXT-X-ALLOW-CACHE:YES >>> #EXT-X-TARGETDURATION:17 >>> #EXTINF:15.015000, >>> out000.ts >>> #EXTINF:8.341667, >>> out001.ts >>> #EXTINF:8.341667, >>> out002.ts >>> #EXTINF:8.341667, >>> out003.ts >>> #EXTINF:16.683333, >>> out004.ts >>> >>> >> You should add "#EXT-X-ENDLIST" for a VOD hls. > *********************************** > Should I add ENDLIST tag manually or ffmpeg should do this for user while generating playlist.m3u8 file. > Actually, "#EXT-X-ENDLIST" is not added because you have specified "-segment_list_flags +live" in your ffmpeg command. If you want to generate a live HLS stream, use +live flag and the tag will not be added (like in your example), if you want to generate a VOD stream, remove the flag and the tag will be added. However this won't fix the issue you are reporting that "out005.ts" isn't added to the playlist and I can't help you with that, sorry. Just wondering: are you sure that out005.ts contains useful data? -- Claudiu ************************************************************************************ Yes i am sure out005.ts contains valid data as i can play this out005.ts in VLC player smoothly. when i manually add this segment to playlist file then also it plays as part of playlist file. I want to know why this segment out005.ts is not adding to playlist file ? Is it known issue ? or i need to provide some other options to command line. below is the command that currently i am using ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=50000&overrun_nonfatal=1' -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment -hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 out%03d.ts From alexey.vasilyev at gmail.com Wed Oct 8 09:23:00 2014 From: alexey.vasilyev at gmail.com (Alexey Vasilyev) Date: Wed, 8 Oct 2014 10:23:00 +0300 Subject: [FFmpeg-user] Getting http_code on avformat_open_input() error Message-ID: Hi, I'm using RTSP over HTTP from ffmpeg and want to get an extended error when avformat_open_input failed, e.g. Unauthorised error occurred ./ffplay "rtsp://username:incorrectpassword at 192.168.0.3:80/my.sdp" -rtsp_transport http -loglevel debug -stats In the ffmpeg log I have http_code=-1807328772 HTTP error -1807328772 HTTP/1.1 401 Unauthorized However I can not get this status 401 via avformat_open_input. int errCode = 0; if ((errCode = avformat_open_input(&formatContext, c_url, NULL, /*NULL*/&options)) != 0) { // Print error description char errbuf[128]; av_strerror(errCode, errbuf, sizeof(errbuf)); E("avformat_open_input() failed with code %d (%s)", errCode, errbuf); // Cleanup // ... } The error that I have is avformat_open_input() failed with code -5 (I/O error) Is there any way to get the http_code on avformat_open_input or introducing my own AVERROR(http_code) and patching libavformat/http.c is the only way to do that? Best regards, Alex. From lists6mns86k6 at syntropo.com Wed Oct 8 09:45:08 2014 From: lists6mns86k6 at syntropo.com (Doug Anarino) Date: Wed, 8 Oct 2014 03:45:08 -0400 Subject: [FFmpeg-user] Movie Filter No Longer Working with PNG Image Message-ID: Greetings, I seem to be having trouble with a build from 9/28 when trying to use the movie filter with a png image: ffmpeg -filter_complex 'movie=in.png' out.png This same command is working correctly in a different build from 7/2 (on OSX) and this more simplified syntax works correctly too, so it doesn't appear to be a problem with the files: ffmpeg -i in.png out.png And jpeg files work perfectly - the issue is just with png. Below is debug output from running these two commands on the newer build, followed by corresponding output from just the first command on the older one (which is actually producing the correct file despite the claim of '0 frames successfully decoded'). The only difference I notice is the use of png_pipe to decode the input on the newer build, which doesn't seem to be an option on the older one. Is there perhaps some way to get the newer build to not use this decoder? Or maybe some new syntax that's missing? Any help would be greatly valued, as the filter_complex syntax is extremely convenient for my app to utilize. Thanks for your attention, doug [OSX LINUX ~]$ ffmpeg -v debug -filter_complex 'movie=in.png' out.png ffmpeg version N-66356-g9950073 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 28 2014 15:13:16 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16) configuration: --extra-cflags=-I/usr/local/include/openjpeg --enable-libopenjpeg --enable-version3 --enable-gpl --enable-pthreads --enable-zlib --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libspeex --enable-libx264 --enable-postproc --enable-libvorbis --enable-libxvid --enable-libvpx --enable-frei0r --enable-libfreetype --enable-libfontconfig --enable-libfribidi libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.101 / 56. 1.101 libavformat 56. 4.102 / 56. 4.102 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'movie=in.png'. Reading option 'out.png' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Applying option filter_complex (create a complex filtergraph) with argument movie=in.png. Successfully parsed a group of options. Parsing a group of options: output file out.png. Successfully parsed a group of options. Opening an output file: out.png. detected 8 logical cores [Parsed_movie_0 @ 0x22b24c0] Setting 'filename' to value 'in.png' [png_pipe @ 0x22b2720] Format png_pipe probed with size=2048 and score=99 [png_pipe @ 0x22b2720] Before avformat_find_stream_info() pos: 0 bytes read:6133 seeks:0 [png_pipe @ 0x22b2720] After avformat_find_stream_info() pos: 6133 bytes read:6133 seeks:0 frames:1 [Parsed_movie_0 @ 0x22b24c0] seek_point:0 format_name:(null) file_name:in.png stream_index:-1 [format @ 0x22cd0e0] compat: called with args=[rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|monob] [format @ 0x22cd0e0] Setting 'pix_fmts' to value 'rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|monob' Successfully opened the file. [AVFilterGraph @ 0x22b16c0] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed Output #0, image2, to 'out.png': Metadata: encoder : Lavf56.4.102 Stream #0:0, 0, 1/25: Video: png, pal8, 1600x1200 [SAR 1:1 DAR 4:3], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default) Metadata: encoder : Lavc56.1.101 png Stream mapping: movie -> Stream #0:0 (png) Press [q] to stop, [?] for help Error while filtering. frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file #0 (out.png): Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x22bad80] Statistics: 6133 bytes read, 0 seeks [AWS LINUX ~]$ ffmpeg -v debug -i in.png out.png ffmpeg version N-66356-g9950073 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 28 2014 15:13:16 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16) configuration: --extra-cflags=-I/usr/local/include/openjpeg --enable-libopenjpeg --enable-version3 --enable-gpl --enable-pthreads --enable-zlib --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libspeex --enable-libx264 --enable-postproc --enable-libvorbis --enable-libxvid --enable-libvpx --enable-frei0r --enable-libfreetype --enable-libfontconfig --enable-libfribidi libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.101 / 56. 1.101 libavformat 56. 4.102 / 56. 4.102 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'in.png'. Reading option 'out.png' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file in.png. Successfully parsed a group of options. Opening an input file: in.png. [png_pipe @ 0x2786c20] Format png_pipe probed with size=2048 and score=99 [png_pipe @ 0x2786c20] Before avformat_find_stream_info() pos: 0 bytes read:6133 seeks:0 [png_pipe @ 0x2786c20] After avformat_find_stream_info() pos: 6133 bytes read:6133 seeks:0 frames:1 Input #0, png_pipe, from 'in.png': Duration: N/A, bitrate: N/A Stream #0:0, 1, 1/25: Video: png, pal8, 1600x1200, 1/25, 25 tbr, 25 tbn, 25 tbc Successfully opened the file. Parsing a group of options: output file out.png. Successfully parsed a group of options. Opening an output file: out.png. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 0x2788800] Setting 'video_size' to value '1600x1200' [graph 0 input from stream 0:0 @ 0x2788800] Setting 'pix_fmt' to value '11' [graph 0 input from stream 0:0 @ 0x2788800] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0x2788800] Setting 'pixel_aspect' to value '0/1' [graph 0 input from stream 0:0 @ 0x2788800] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x2788800] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x2788800] w:1600 h:1200 pixfmt:pal8 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 [format @ 0x2786680] compat: called with args=[rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|monob] [format @ 0x2786680] Setting 'pix_fmts' to value 'rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|monob' [AVFilterGraph @ 0x277e8a0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed Output #0, image2, to 'out.png': Metadata: encoder : Lavf56.4.102 Stream #0:0, 0, 1/25: Video: png, pal8, 1600x1200, 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc56.1.101 png Stream mapping: Stream #0:0 -> #0:0 (png (native) -> png (native)) Press [q] to stop, [?] for help in.png: Input/output error Last message repeated 1 times [output stream 0:0 @ 0x277dd80] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. [AVIOContext @ 0x279d9a0] Statistics: 0 seeks, 1 writeouts frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A video:6kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (in.png): Input stream #0:0 (video): 1 packets read (6133 bytes); 1 frames decoded; Total: 1 packets (6133 bytes) demuxed Output file #0 (out.png): Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (6486 bytes); Total: 1 packets (6486 bytes) muxed 2 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x27861e0] Statistics: 6133 bytes read, 0 seeks [OSX LINUX ~]$ ffmpeg -v debug -filter_complex 'movie=in.png' out.png ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 2 2014 13:07:25 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-libfdk-aac --enable-openssl --enable-frei0r --enable-libvidstab --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' 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 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'movie=in.png'. Reading option 'out.png' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Applying option filter_complex (create a complex filtergraph) with argument movie=in.png. Successfully parsed a group of options. Parsing a group of options: output file out.png. Successfully parsed a group of options. Opening an output file: out.png. detected 2 logical cores [Parsed_movie_0 @ 0x7fc193c1b700] Setting 'filename' to value 'in.png' [AVIOContext @ 0x7fc193c1c840] Statistics: 4401 bytes read, 0 seeks [Parsed_movie_0 @ 0x7fc193c1b700] seek_point:0 format_name:(null) file_name:in.png stream_index:-1 [format @ 0x7fc193c1e580] compat: called with args=[rgb24|rgba|rgb48be|rgba64be|pal8|gray|gray8a|gray16be|monob] [format @ 0x7fc193c1e580] Setting 'pix_fmts' to value 'rgb24|rgba|rgb48be|rgba64be|pal8|gray|gray8a|gray16be|monob' Successfully opened the file. [AVFilterGraph @ 0x7fc193d00300] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed Output #0, image2, to 'out.png': Metadata: encoder : Lavf55.33.100 Stream #0:0, 0, 1/90000: Video: png, pal8, 1600x900 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc (default) Stream mapping: movie -> Stream #0:0 (png) Press [q] to stop, [?] for help [output stream 0:0 @ 0x7fc193c1e320] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. [AVIOContext @ 0x7fc193d00ea0] Statistics: 0 seeks, 1 writeouts frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A video:5kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead -100.422592% 0 frames successfully decoded, 0 decoding errors From cehoyos at ag.or.at Wed Oct 8 10:23:34 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Oct 2014 08:23:34 +0000 (UTC) Subject: [FFmpeg-user] Movie Filter No Longer Working with PNG Image References: Message-ID: Doug Anarino syntropo.com> writes: > I seem to be having trouble with a build from 9/28 when > trying to use the movie filter with a png image: Please test current git head before reporting issues. Thank you, Carl Eugen From tevans.uk at googlemail.com Wed Oct 8 11:02:54 2014 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 8 Oct 2014 10:02:54 +0100 Subject: [FFmpeg-user] Save segmented and fragmented h264 to disk In-Reply-To: <205DBBE9F739414F9815C142C7EA61CC03617FC3@exchsvr01.torcrobotics.net> References: <205DBBE9F739414F9815C142C7EA61CC03617FC3@exchsvr01.torcrobotics.net> Message-ID: On Tue, Oct 7, 2014 at 7:16 PM, Mark Umansky wrote: > Yes. It actually generates the files as fast as it can (so I get a dozen files in a second or so) but if I don't kill the process nicely, the last generated file is not properly fragmented and is unplayable. Kill it nice then. This is inevitable with mp4 format, which adds the moov atom once it has finished doing everything else with the file - if you kill it uncleanly, you do not give ffmpeg a chance to add the atom, and you end up with a bust file. Alternatively, use a container format that does not have this restriction, like mpeg-ts. Cheers Tom From barsnick at gmx.net Wed Oct 8 11:04:35 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 8 Oct 2014 11:04:35 +0200 Subject: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry In-Reply-To: <1412744936.33232.YahooMailNeo@web194606.mail.sg3.yahoo.com> References: <1412082686.47062.BPMail_high_carrier@web194605.mail.sg3.yahoo.com> <542AB032.9040503@misalpina.net> <1412744936.33232.YahooMailNeo@web194606.mail.sg3.yahoo.com> Message-ID: <20141008090435.GF4631@sunshine.barsnick.net> On Wed, Oct 08, 2014 at 13:08:56 +0800, ajay parashar wrote: > I want to know why this segment out005.ts is not adding to playlist file ? > Is it known issue ? or i need to provide some other options to command line. > > below is the command that currently i am using > ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=50000&overrun_nonfatal=1' > -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment > -hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live > -segment_time 10 out%03d.ts I tried to reproduce this with testsrc, otherwise using the similar (video!) properties and arguments as you, and I don't see any issues. Perhaps you can try with testsrc as well? Moritz barsnick at sunshine:~/tmp/ffmpeg_segment_test > ffmpeg -f lavfi -i 'testsrc=size=704x480:duration=00\\:01\\:02.76' -vcodec libx264 -f ssegment -hls_list_size 10 -segment_list playlist.m3u8 -segment_time 10 -segment_list_flags +live out%03d.ts ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Sep 26 2014 08:47:09 with icc (ICC) 14.0.3 20140422 configuration: --prefix=/usr/new/tools/video/install/ffmpeg/20140925 --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 --enable-libsmbclient --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 54. 7.101 / 54. 7.101 libavcodec 56. 1.101 / 56. 1.101 libavformat 56. 5.100 / 56. 5.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.102 / 5. 1.102 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Input #0, lavfi, from 'testsrc=size=704x480:duration=00\\:01\\:02.76': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 704x480 [SAR 1:1 DAR 22:15], 25 tbr, 25 tbn, 25 tbc No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0xb562260] using SAR=1/1 [libx264 @ 0xb562260] using cpu capabilities: MMX2 SSE2 Cache64 [libx264 @ 0xb562260] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit [mpegts @ 0xba2b8a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, stream_segment,ssegment, to 'out%03d.ts': Metadata: encoder : Lavf56.5.100 Stream #0:0: Video: h264 (libx264), yuv444p, 704x480 [SAR 1:1 DAR 22:15], q=-1--1, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc56.1.101 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help [swscaler @ 0xb552560] Warning: data is not aligned! This can lead to a speedloss [mpegts @ 0xba2b8a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. frame= 1569 fps= 17 q=-1.0 Lsize=N/A time=00:01:02.68 bitrate=N/A video:523kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [libx264 @ 0xb562260] frame I:7 Avg QP:15.55 size: 5746 [libx264 @ 0xb562260] frame P:1562 Avg QP:14.99 size: 317 [libx264 @ 0xb562260] mb I I16..4: 49.3% 39.9% 10.8% [libx264 @ 0xb562260] mb P I16..4: 1.9% 0.8% 0.0% P16..4: 5.0% 1.7% 0.1% 0.0% 0.0% skip:90.4% [libx264 @ 0xb562260] 8x8 transform intra:31.0% inter:86.7% [libx264 @ 0xb562260] coded y,u,v intra: 1.4% 1.1% 1.1% inter: 0.2% 0.3% 0.2% [libx264 @ 0xb562260] i16 v,h,dc,p: 77% 10% 0% 13% [libx264 @ 0xb562260] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 57% 11% 31% 0% 0% 0% 0% 0% 0% [libx264 @ 0xb562260] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 41% 17% 1% 1% 1% 0% 1% 0% [libx264 @ 0xb562260] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0xb562260] ref P L0: 69.1% 2.2% 21.3% 7.3% [libx264 @ 0xb562260] kb/s:68.29 barsnick at sunshine:~/tmp/ffmpeg_segment_test > ll total 740 -rw-rw-r-- 1 barsnick barsnick 115244 2014-10-08 10:52 out000.ts -rw-rw-r-- 1 barsnick barsnick 114680 2014-10-08 10:52 out001.ts -rw-rw-r-- 1 barsnick barsnick 112988 2014-10-08 10:52 out002.ts -rw-rw-r-- 1 barsnick barsnick 113364 2014-10-08 10:53 out003.ts -rw-rw-r-- 1 barsnick barsnick 113928 2014-10-08 10:53 out004.ts -rw-rw-r-- 1 barsnick barsnick 112988 2014-10-08 10:53 out005.ts -rw-rw-r-- 1 barsnick barsnick 35532 2014-10-08 10:53 out006.ts -rw-rw-r-- 1 barsnick barsnick 314 2014-10-08 10:53 playlist.m3u8 barsnick at sunshine:~/tmp/ffmpeg_segment_test > cat playlist.m3u8 #EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-ALLOW-CACHE:YES #EXT-X-TARGETDURATION:11 #EXTINF:10.080000, out000.ts #EXTINF:10.000000, out001.ts #EXTINF:10.000000, out002.ts #EXTINF:10.000000, out003.ts #EXTINF:10.000000, out004.ts #EXTINF:10.000000, out005.ts #EXTINF:2.760000, out006.ts #EXT-X-ENDLIST From lists6mns86k6 at syntropo.com Wed Oct 8 11:05:57 2014 From: lists6mns86k6 at syntropo.com (Doug Anarino) Date: Wed, 8 Oct 2014 05:05:57 -0400 Subject: [FFmpeg-user] Movie Filter No Longer Working with PNG Image In-Reply-To: References: Message-ID: On Oct 8, 2014, at 4:23 AM, Carl Eugen Hoyos wrote: > Doug Anarino syntropo.com> writes: > >> I seem to be having trouble with a build from 9/28 when >> trying to use the movie filter with a png image: > > Please test current git head before reporting issues. > > Thank you, Carl Eugen It does seem to be working now, thanks. Please forgive for considering last week 'current' ;) From ajay_382000 at yahoo.co.in Wed Oct 8 11:34:10 2014 From: ajay_382000 at yahoo.co.in (ajay parashar) Date: Wed, 8 Oct 2014 17:34:10 +0800 Subject: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry In-Reply-To: <20141008090435.GF4631@sunshine.barsnick.net> References: <1412082686.47062.BPMail_high_carrier@web194605.mail.sg3.yahoo.com> <542AB032.9040503@misalpina.net> <1412744936.33232.YahooMailNeo@web194606.mail.sg3.yahoo.com> <20141008090435.GF4631@sunshine.barsnick.net> Message-ID: <1412760850.31787.YahooMailNeo@web194603.mail.sg3.yahoo.com> On Wed, Oct 08, 2014 at 13:08:56 +0800, ajay parashar wrote: > I want to know why this segment out005.ts is not adding to playlist file ? > Is it known issue ? or i need to provide some other options to command line. > > below is the command that currently i am using > ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=50000&overrun_nonfatal=1' > -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment > -hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live > -segment_time 10 out%03d.ts I tried to reproduce this with testsrc, otherwise using the similar (video!) properties and arguments as you, and I don't see any issues. Perhaps you can try with testsrc as well? Moritz barsnick at sunshine:~/tmp/ffmpeg_segment_test > ffmpeg -f lavfi -i 'testsrc=size=704x480:duration=00\\:01\\:02.76' -vcodec libx264 -f ssegment -hls_list_size 10 -segment_list playlist.m3u8 -segment_time 10 -segment_list_flags +live out%03d.ts ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers ******************************************************************************************* testsrc input and even in my case giving local file as input is working well at my end. I am facing this issue when i am receiving stream from network. In my Scenario I am sending UDP stream from machine 1 using VLC and receivng this UDP stream on machine 2 by ffmpeg command. Playlist.m3u8 file skips last segment entry. Last segment out005.ts is vailable on my machine and it is having valid data also ,Please let me know why playlist.m3u8 is skipping last segment entry while receiving UDP stream? Ajay From shatrughna.win at gmail.com Mon Oct 6 08:19:33 2014 From: shatrughna.win at gmail.com (Shatrughna Pandey) Date: Mon, 6 Oct 2014 11:49:33 +0530 Subject: [FFmpeg-user] rtsp streaming Message-ID: hello sir i am trying to stream video from one rtsp url to another rtsp url using ffserver conf file. my ffmpeg command is " ffmpeg -i rtsp://127.0.0.1:1935/live/test.sdp rtsp://127.0.0.1:5454/feed1.ffm" i have streamed a video already on "rtsp://127.0.0.1:1935/live/test.sdp" and i want to stream this live sdp video to another rtsp url "rtsp:// 127.0.0.1:5454/feed1.ffm" using ffserver conf file. my ffserver.conf file is : Port 8090 RTSPPort 5454 BindAddress 0.0.0.0 RTSPBindAddress 0.0.0.0 MaxClients 1000 MaxBandwidth 1000 NoDaemon File /tmp/feed1.ffm FileMaxSize 5000M ACL allow 127.0.0.1 ACL allow 192.0.0.0 192.255.255.255 # flv compatible Feed feed1.ffm Format flv VideoFrameRate 24 VideoSize 480x272 VideoBitRate 100 VideoBufferSize 40 VideoGopSize 30 AudioBitRate 64 StartSendOnKey # H264 compatible Feed feed1.ffm Format rtp #File /tmp/feed1.ffm VideoFrameRate 24 VideoSize 480x272 VideoBitRate 100 VideoBufferSize 40 VideoGopSize 30 AudioBitRate 64 StartSendOnKey Format rtp File "/home/pandey/coffee.mp4" ACL allow 192.0.0.0 192.255.255.255 Format status ACL allow localhost ACL allow 192.0.0.0 192.255.255.255 # Redirect index.html to the appropriate site URL http://www.ffmpeg.org/ i am starting this ffserver.conf file with comman "ffserver -d -f /etc/ffserver.conf and ffserver is started. after that when i play link "rtsp://127.0.0.1:5454/rtsp.flv" with vlc the server is stopped giving message "segmentation fault" where i am going wrong ...........????? pls help me ........... thanx in advance.................. From d at dequid.net Mon Oct 6 10:41:36 2014 From: d at dequid.net (Dietmar Thal) Date: Mon, 06 Oct 2014 10:41:36 +0200 Subject: [FFmpeg-user] ffmpeg detects audio as pcm_s16be, but it seems to be 32bit In-Reply-To: <542DA4CA.5000201@dequid.net> References: <53E507C3.2030806@dequid.net> <53E7AD13.2050301@dequid.net> <542D17E9.6070700@dequid.net> <542DA4CA.5000201@dequid.net> Message-ID: <543255C0.6070509@dequid.net> On 02.10.2014 21:17, Dietmar Thal wrote: > My fault, the current git head is not yet in the > Zeranoe windows builds. I'll wait and post the results. The problem is gone with the latest Zeranoe build: git-6b347f5 (2014-10-06) Audio is detected and exported as it should. Thanks Carl Eugen! From mmehrabi at abo.fi Tue Oct 7 08:24:34 2014 From: mmehrabi at abo.fi (Maziar Mehrabi) Date: Tue, 7 Oct 2014 09:24:34 +0300 Subject: [FFmpeg-user] ffserver config for HLS In-Reply-To: <1412662249.21788.YahooMailNeo@web194601.mail.sg3.yahoo.com> References: <1412584447.34493.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412596370.526.YahooMailNeo@web194603.mail.sg3.yahoo.com> <1412659093.85203.YahooMailNeo@web194606.mail.sg3.yahoo.com> <1412662249.21788.YahooMailNeo@web194601.mail.sg3.yahoo.com> Message-ID: Try ffprobe; I'm not familiar with HLS but as far as I know it's a list of files, not the files themselves. Please inform me about the result. BR, Maziar On 7 Oct 2014 09:10, "ajay parashar" wrote: > > > > > > On Tue, Oct 7, 2014 at 8:18 AM, ajay parashar < > ajay_382000-at-yahoo.co.in at ffmpeg.org> wrote: > > > > Hi, > > > > Asf video streaming is working smoothly at my end but Now I want to do > > HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order. > > > > Step 1) execute vlc > > Step 2) execute ffserver > > Step 3) execute ffmpeg > > > > I tried a lot but not getting any ffserver config file that can be used > > for HLS streaming . > > > > Please share working ffserver config file with me. > > > > Thanks > > Ajay > > > > > > > ****************************************************************************** > > > > Please provide me working ffserver configuration file for HLS streaming. > > > > > ************************************************************************************** > > > > Below is the ffmpeg command and it says "maybe incorrect parameters such > > as bit_rate, rate, width or height". I verified all these parameters > > are correct > > > > ffmpeg -i > > pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f > > ssegment -segment_list_flags +live -segment_list playlist.m3u8 > > -segment_time 10 out%03d.ts http://10.125.133.31:8080/feed1.ffm > > ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers > > built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat > > 4.8.3-1) > > configuration: --enable-gpl --enable-libx264 --enable-shared > > --disable-static --disable-stripping > > libavutil 54. 7.100 / 54. 7.100 > > libavcodec 56. 1.100 / 56. 1.100 > > libavformat 56. 4.101 / 56. 4.101 > > libavdevice 56. 0.100 / 56. 0.100 > > libavfilter 5. 1.100 / 5. 1.100 > > libswscale 3. 0.100 / 3. 0.100 > > libswresample 1. 1.100 / 1. 1.100 > > libpostproc 53. 0.100 / 53. 0.100 > > [mpegts @ 0x22f4ec0] PES packet size mismatch > > Last message repeated 2 times > > Input #0, mpegts, from 'pentagon_hd_sd.ts': > > Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s > > Program 1 > > Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, > > fltp, 192 kb/s > > Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, > > fltp, 384 kb/s > > > > Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), > > yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, > > 90k tbn, 119.88 tbc > > Stream #0:3[0x47]: Video: > > h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480 > > [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc > > [libx264 @ 0x2351e60] using SAR=10/11 > > [libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 > > [libx264 @ 0x2351e60] profile High, level 3.0 > > [ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB > > Output #0, stream_segment,ssegment, to 'out%03d.ts': > > Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR > > 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc > > Metadata: > > encoder : Lavc56.1.100 libx264 > > Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 > kb/s > > Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm': > > Metadata: > > creation_time : now > > Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s > > Metadata: > > encoder : Lavc56.1.100 ac3 > > Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR > > 16:9, 59.94 fps, 1000k tbn, 30 tbc > > Metadata: > > encoder : Lavc56.1.100 libx264 > > Stream mapping: > > Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264)) > > Stream #0:0 -> #0:1 (copy) > > Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native)) > > Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264)) > > Error while opening encoder for output stream #1:0 - maybe incorrect > > parameters such as bit_rate, rate, width or height > > > > > > > ******************************************************************************************************* > > My ffserevr config file > > > > > ********************************************************************************************************* > > HTTPPort 8080 > > HTTPBindAddress 10.125.133.31 > > MaxClients 1000 > > MaxBandwidth 1000 > > > > > > File /tmp/feed1.ffm > > FileMaxSize 1G > > ACL allow localhost > > ACL allow 10.125.133.31 10.125.133.66 10.125.133.151 > > > > > > > > Feed feed1.ffm > > Format HLS > > VideoCodec libx264 > > VideoFrameRate 30 > > VideoBitRate 128 > > VideoSize 704*480 > > AVOptionVideo hls_time 10 > > AVOptionVideo hls_list_size 0 > > AVOptionVideo flags +global_header > > AudioCodec ac3 > > AudioBitRate 128 > > AudioChannels 2 > > AudioSampleRate 48000 > > > > *************************************************************************************************** > Hi, > > How did you verify and made sure that these parameters are correct? > > BR, > Maziar > -- > H?lsningar, > Maziar Mehrabi, > > *************************************************************************************************** > I played this video in VLC and confirm Video width, height , video frame > rate and use the same value in above mentioned ffserver config file. > > Regards > Ajay > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From kosta.vlotis.manwin at gmail.com Tue Oct 7 17:32:34 2014 From: kosta.vlotis.manwin at gmail.com (kosta vlotis) Date: Tue, 7 Oct 2014 11:32:34 -0400 Subject: [FFmpeg-user] Creating screencap mosaic sheet issues Message-ID: I'm trying to create a screencap mosaic sheet similar to what is shown in https://trac.ffmpeg.org/wiki/How%20to%20take%20multiple%20screenshots%20to%20an%20image%20%28tile%2C%20mosaic%29 . I'm running into a few issues: - Firstly, I can't seem to figure out how to set the screencap interval. I need to set the interval to 5 seconds. - Secondly, I've played with some variations of the command and what seems to be happening is the same sheet gets duplicating 5 times before moving on to the next. Screencap mosaic jpg images with the following specs need to be created: - 5x5 tiles - images must have a resolution of 160x90 @ 16:9 - the screencap interval must be 5 seconds. - These must be created for the duration of the video. Here is my command line (running the latest zeranoe windows build): ffmpeg -i video.mpeg -vf "select='isnan(prev_selected_t)+gte(t-prev_selected_t\,5)',scale=160:90,tile=5x5" -qscale:v 3 -y %02d_sheet.jpg Can anyone help? From paolo at bonas.us Wed Oct 8 13:37:50 2014 From: paolo at bonas.us (paolo at bonas.us) Date: Wed, 8 Oct 2014 13:37:50 +0200 Subject: [FFmpeg-user] How does the mkv demuxer really work? Message-ID: <20141008133750.2145ad02@rivendell> Hi I have a question that is perhaps in between ffmpeg-user and ffmpeg-devel. In doubt, i sent it to this ML. First: a few words on the background and the problem: I am trying to create a solution for realtime streaming of transcoded AV files that supports seeking in the media. That is, a web server that serves local videos, but, upon request, it does not serve the video "as is", but it transcodes the video and stream it to the client via http. This would be very easy with ffmpeg, however i want to also offer to the client the possibility to seek in the media. So, the way i thought of doing this is : 0) transcoding using only h264 and a fixed keyframe interval (say 250 frames, for example). 1) using matroska as media container 2) generating a valid matroska header that contains an artificial position (offset) of the cues, since the server does not know the position until it finish transcoding the whole file, which is not gonna happen by design. 3) generating a valid, but artificial, cue block, containing number of cue points, with correct time points, but an artificial offsets (see below). 4) using a custom web server that is able to recognize the cue block offset in the header, and serve the artificial cue block of point 3) 5) making the custom web server also interpret the artificial offset of 3) in order to extract the time offset from the byte offset of a seek request. 6) making the custom web server start a new ffmpeg -ss upon each seek (= range http request that is not a cue block request) So, i started to prototype this tool ( you can find my very first ugly attempt that does not work here: https://github.com/paoletto/mediastreamer ) What i discovered is that the behavior of the ffmpeg matroska demuxer used in players like mplayer or mpv-player is very predictable using a valid mkv file (that is, with correct header and cues). What it does (seeing from the requests received server side) is: - start reading from the beginning. - upon the first seek request, the player sends a range http request to the cues offset and retrieves the cues - then, upon each seek, the player sends range http requests to the server, with offsets that match cluster offsets (this is more or less true. I noticed that, for example, mpv-player requests exact cluster offsets, while mplayer requests offsets that are a little bit before the cluster boundaries, but still very close) Now, this all looks well, but when i feed my artificial cue block, containing cue points with offsets that are , say, multiples of 10000 (or whatever other amount i tried), then the requests that arrive to the server make no sense, like if the demuxer in the player completely ignores the cues, and start firing range requests to euristically find the positions. My question is then why this different behavior? and how does the matroska demuxer really work? thanks and sorry for the long message ps. i suspect that, even if the demuxer behavior can be tamed, to get the whole idea working, we (i) would possibly need to run a modified version of ffmpeg server side, as, from what i understand, the demuxer needs correct time offset in the clusters it receives. From barsnick at gmx.net Wed Oct 8 15:17:45 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 8 Oct 2014 15:17:45 +0200 Subject: [FFmpeg-user] rtsp streaming In-Reply-To: References: Message-ID: <20141008131745.GA9525@sunshine.barsnick.net> On Mon, Oct 06, 2014 at 11:49:33 +0530, Shatrughna Pandey wrote: > where i am going wrong ...........????? You're going wrong in that you're not showing us the complete output of your commands. That would be a good start for understanding what is going wrong. Thanks, Moritz From umansky at torcrobotics.com Wed Oct 8 16:21:07 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Wed, 8 Oct 2014 14:21:07 +0000 Subject: [FFmpeg-user] Save segmented and fragmented h264 to disk Message-ID: <205DBBE9F739414F9815C142C7EA61CC03619179@exchsvr01.torcrobotics.net> Killing it nicely is not an option. I was under the impression that creating a fragmented mp4 would change the location of the moov atom so the file is still playable, which I verified to be true in my original post with the command: ffmpeg -f dshow -i video="UScreenCapture" -vcodec libx264 -r 25 -q 5 -preset ultrafast -movflags frag_keyframe C:\Users\user\Desktop\video.mp4 -y Files created with that command can be killed not-nicely and are still playable. What I am after is creating this same fragmented file but with segmented file creation enabled so I don't get one huge video file if it runs for hours. Thanks, Mark From mitch.crane at gmail.com Thu Oct 9 03:08:33 2014 From: mitch.crane at gmail.com (Mitch Crane) Date: Wed, 8 Oct 2014 21:08:33 -0400 Subject: [FFmpeg-user] Creating screencap mosaic sheet issues In-Reply-To: References: Message-ID: Through some trial and error I got what appears to be a reasonable output using the following command line: ffmpeg -i D:\movies\input.avi -vf "fps=fps=1/5,select='isnan(prev_selected_t)+gte(t-prev_selected_t\,5)',scale=160:90,tile=5x5" -qscale:v 3 -y %03d_sheet.jpg My input file was a 23.98 fps, which I rounded up to 24. I added "fps=fps=1/5" to what you already had in your options. I arrived at 1/5 frames per second by multiplying the frame rate of the input by the interval at which I wanted thumbnails to be captured and then dividing that number by the number of thumbnails in each output file. This was just a guess and I'm not sure if my logic is correct or I just got lucky. I only verified my results by eyeballing it and seeing that the number of thumbnails was in the ballpark of the length of the movie in seconds divided by 5. On Tue, Oct 7, 2014 at 11:32 AM, kosta vlotis wrote: > I'm trying to create a screencap mosaic sheet similar to what is shown in > https://trac.ffmpeg.org/wiki/How%20to%20take%20multiple%20screenshots%20to%20an%20image%20%28tile%2C%20mosaic%29 > . > > I'm running into a few issues: > > - Firstly, I can't seem to figure out how to set the screencap interval. > I need to set the interval to 5 seconds. > - Secondly, I've played with some variations of the command and what > seems to be happening is the same sheet gets duplicating 5 times before > moving on to the next. > > > Screencap mosaic jpg images with the following specs need to be created: > > - 5x5 tiles > - images must have a resolution of 160x90 @ 16:9 > - the screencap interval must be 5 seconds. > - These must be created for the duration of the video. > > > Here is my command line (running the latest zeranoe windows build): > ffmpeg -i video.mpeg -vf > "select='isnan(prev_selected_t)+gte(t-prev_selected_t\,5)',scale=160:90,tile=5x5" > -qscale:v 3 -y %02d_sheet.jpg > > Can anyone help? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mitch.crane at gmail.com Thu Oct 9 03:10:50 2014 From: mitch.crane at gmail.com (Mitch Crane) Date: Wed, 8 Oct 2014 21:10:50 -0400 Subject: [FFmpeg-user] Creating screencap mosaic sheet issues In-Reply-To: References: Message-ID: Excuse my previous top post (thanks gmail). From patrick.fischer at vitec.com Thu Oct 9 10:01:59 2014 From: patrick.fischer at vitec.com (Patrick Fischer) Date: Thu, 9 Oct 2014 10:01:59 +0200 Subject: [FFmpeg-user] autodetect framerate for burn in timestamp with drawtext filter Message-ID: <543640F7.90606@vitec.com> Hello I'm using the drawtext filter to burn in the timestamp. drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00': rate=*25*:fontsize=22:text=\'7.10.2014 \' But with this filter i can only handle videos with framerate=25 Who can i use the filter with autodetect rate. I must handle 50 fps likewise 25fps whole command: ffmpeg -i "udp://238.1.1.1:1234?fifo_size=2000000&overrun_nonfatal=1&timeout=20000000" -vcodec libx264 -preset ultrafast -profile baseline -crf 24 -pix_fmt yuv420p -g 25 -acodec aac -strict experimental -ac 2 -ab 128k -ar 44100 -movflags +faststart -vb 2000k -y -vf "[in]drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=2:fontsize=22:text=\'Test\'[in2]; [in2]drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00': rate=25:fontsize=22:text=\'07.10.2014 \'[in3];[in3]scale=640:-1[out]" test.mp4 Output: ffmpeg version N-53613-g4d2825a Copyright (c) 2000-2013 the FFmpeg developers built on May 29 2013 05:12:05 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.102 / 55. 12.102 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.101 / 55. 1.101 libavfilter 3. 72.100 / 3. 72.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpegts @ 0x975f4a0] Unable to seek back to the start [h264 @ 0x977e280] non-existing PPS referenced [h264 @ 0x977e280] non-existing PPS 0 referenced [h264 @ 0x977e280] decode_slice_header error [h264 @ 0x977e280] no frame! ..... [h264 @ 0x977e280] non-existing PPS referenced [h264 @ 0x977e280] non-existing PPS 0 referenced [h264 @ 0x977e280] decode_slice_header error [h264 @ 0x977e280] no frame! [mpegts @ 0x975f4a0] Stream #0: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Stream #5: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Stream #8: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Stream #9: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'udp://238.1.1.1:1234?fifo_size=2000000&overrun_nonfatal=1&timeout=20000000': Duration: N/A, start: 94707.794833, bitrate: 1024 kb/s Program 10302 Metadata: service_name : arte HD service_provider: ARD Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Program 10301 Metadata: service_name : Das Erste HD service_provider: ARD Program 10303 Metadata: service_name : SWR BW HD service_provider: ARD Program 10304 Metadata: service_name : SWR RP HD service_provider: ARD Please use -profile:a or -profile:v, -profile is ambiguous [libx264 @ 0x9967440] using SAR=1/1 [libx264 @ 0x9967440] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x9967440] profile Constrained Baseline, level 3.1 [libx264 @ 0x9967440] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=24.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf55.7.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 12800 tbn, 50 tbc Stream #0:1(mul): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:1 -> #0:0 (h264 -> libx264) Stream #0:6 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help [h264 @ 0xa675ba0] Missing reference picture, default is 0 [h264 @ 0xa675ba0] decode_slice_header error [h264 @ 0xa6bae20] reference picture missing during reorder [h264 @ 0xa6bae20] Missing reference picture, default is 65530 [h264 @ 0xa6bae20] reference picture missing during reorder [h264 @ 0xa6bae20] Missing reference picture, default is 65544 Starting second pass: moving header on top of the file09.00 bitrate=1167.6kbits/s dup=84 drop=0 frame= 468 fps= 39 q=-1.0 Lsize= 1505kB time=00:00:09.36 bitrate=1317.2kbits/s dup=84 drop=0 video:1366kB audio:130kB subtitle:0 global headers:0kB muxing overhead 0.577583% [libx264 @ 0x9967440] frame I:19 Avg QP:19.37 size: 29260 [libx264 @ 0x9967440] frame P:449 Avg QP:22.53 size: 1877 [libx264 @ 0x9967440] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 0x9967440] mb P I16..4: 1.3% 0.0% 0.0% P16..4: 14.7% 0.0% 0.0% 0.0% 0.0% skip:84.0% [libx264 @ 0x9967440] coded y,uvDC,uvAC intra: 62.3% 52.4% 30.4% inter: 6.6% 4.1% 0.4% [libx264 @ 0x9967440] i16 v,h,dc,p: 30% 35% 20% 15% [libx264 @ 0x9967440] i8c dc,h,v,p: 48% 28% 18% 7% [libx264 @ 0x9967440] kb/s:1195.43 From rogerdpack2 at gmail.com Thu Oct 9 13:49:22 2014 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 9 Oct 2014 05:49:22 -0600 Subject: [FFmpeg-user] Save segmented and fragmented h264 to disk In-Reply-To: <205DBBE9F739414F9815C142C7EA61CC03619179@exchsvr01.torcrobotics.net> References: <205DBBE9F739414F9815C142C7EA61CC03619179@exchsvr01.torcrobotics.net> Message-ID: (FWIW I kill ffmpeg's nicely by sending them a 'q') mpeg output format might satisfy better here? On Wed, Oct 8, 2014 at 8:21 AM, Mark Umansky wrote: > Killing it nicely is not an option. I was under the impression that > creating a fragmented mp4 would change the location of the moov atom so the > file is still playable, which I verified to be true in my original post > with the command: > > ffmpeg -f dshow -i video="UScreenCapture" -vcodec libx264 -r 25 -q 5 > -preset ultrafast -movflags frag_keyframe C:\Users\user\Desktop\video.mp4 > -y > > Files created with that command can be killed not-nicely and are still > playable. What I am after is creating this same fragmented file but with > segmented file creation enabled so I don't get one huge video file if it > runs for hours. > > Thanks, > Mark > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From liangry at ucweb.com Fri Oct 10 12:19:53 2014 From: liangry at ucweb.com (Ruoyu) Date: Fri, 10 Oct 2014 18:19:53 +0800 Subject: [FFmpeg-user] rc buffer underflow Message-ID: <5437B2C9.5070602@ucweb.com> Hi there, I am new to ffmpeg. I have a question in capturing video stream with my camera. Firstly, I clone current repository from github. And then, run ./configure && make. Secondly, start ffserver as below. $ ./ffserver -f tests/ffserver.conf Then, try starting ffmpeg to activate my camera. $ ./ffmpeg -f video4linux2 -i /dev/video0 http://127.0.0.1:9999/feed1.ffm Then, it complains rc buffer underflow repeatedly as below. // more log omitted here Press [q] to stop, [?] for help [mjpeg @ 0x3802ac0] rc buffer underflow [mjpeg @ 0x3809480] rc buffer underflow [mjpeg @ 0x3802ac0] rc buffer underflow=5.6 q=5.6 q=3.6 q=7.6 q=33.2 q=1.6 q=34.8 size= 156kB time=00:00:00.10 bitrate=12779.5kbits/s [mjpeg @ 0x3809480] rc buffer underflow [msmpeg4 @ 0x37f8c20] rc buffer underflow [msmpeg4 @ 0x37f8c20] max bitrate possibly too small or try trellis with large lmax or increase qmax [rv10 @ 0x37ff5e0] rc buffer underflow [rv10 @ 0x37ff5e0] max bitrate possibly too small or try trellis with large lmax or increase qmax [rv10 @ 0x37ff5e0] rc buffer underflow [rv10 @ 0x37ff5e0] max bitrate possibly too small or try trellis with large lmax or increase qmax [rv10 @ 0x37ff5e0] rc buffer underflow [rv10 @ 0x37ff5e0] max bitrate possibly too small or try trellis with large lmax or increase qmax Anyone know how to solve it? How to enlarge lmax or qmax? Correct me if I do something wrong. Thanks first. From liangry at ucweb.com Fri Oct 10 12:33:08 2014 From: liangry at ucweb.com (Ruoyu) Date: Fri, 10 Oct 2014 18:33:08 +0800 Subject: [FFmpeg-user] ffplay not found Message-ID: <5437B5E4.5090609@ucweb.com> Hi there, Another question, after compiling, I cannot find out the executable ffplay. How to compile it? Thanks. From h.reindl at thelounge.net Fri Oct 10 13:09:45 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 10 Oct 2014 13:09:45 +0200 Subject: [FFmpeg-user] ffplay not found In-Reply-To: <5437B5E4.5090609@ucweb.com> References: <5437B5E4.5090609@ucweb.com> Message-ID: <5437BE79.4030603@thelounge.net> Am 10.10.2014 um 12:33 schrieb Ruoyu: > Another question, after compiling, I cannot find out the executable > ffplay. How to compile it? ./configure --help -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Fri Oct 10 13:36:27 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 10 Oct 2014 13:36:27 +0200 Subject: [FFmpeg-user] ffplay not found In-Reply-To: <5437BE79.4030603@thelounge.net> References: <5437B5E4.5090609@ucweb.com> <5437BE79.4030603@thelounge.net> Message-ID: <20141010113627.GC5128@sunshine.barsnick.net> On Fri, Oct 10, 2014 at 13:09:45 +0200, Reindl Harald wrote: > > Another question, after compiling, I cannot find out the executable > > ffplay. How to compile it? > > ./configure --help What that doesn't tell you though is that you need libsdl, and it needs to be found, in order to have ffplay included in the build. You need SDL-devel or libsdl1.2-dev or whatever it may be called on your distribution. You also need some other libs, notably X11 libs, as the note in this document hints: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#GettheDependencies > [...] ffplay and x11 dependencies: libsdl1.2-dev libva-dev > libvdpau-dev libx11-dev libxext-dev libxfixes-dev (These package names are for Ubuntu. The RedHat/Fedora/CentOS wiki page isn't so clear about this.) Moritz From peter_trompeter at hotmail.com Thu Oct 9 00:52:47 2014 From: peter_trompeter at hotmail.com (Peter Trompeter) Date: Thu, 9 Oct 2014 00:52:47 +0200 Subject: [FFmpeg-user] c:v copy - output file is empty, nothing was encoded Message-ID: hi all, i've been trying to solve a strange problem but i'm not really getting anywhere, so i'm hoping to find an expert here ... basic situation is i have a raw h264 encoded video and want to mux it into an mp4 container. no audio. no re-encoding. so i do: ffmpeg -i snippet.h264 -r 25 -c:v copy snippet.mp4 however, this does not seem to work. error message: Output file is empty, nothing was encoded what am I doing wrong? sample file can be found at: http://s000.tinyupload.com/?file_id=78774328066008732903 thanks peter --- full cmdline + output for reference: crs at vbox:~/data$ ffmpeg -i snippet.h264 -r 25 -c:v copy snippet.mp4 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 [h264 @ 0x171c2c0] Stream #0: not enough frames to estimate rate; consider increasing probesize [h264 @ 0x171c2c0] Estimating duration from bitrate, this may be inaccurate Input #0, h264, from 'snippet.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1440x544, 25 fps, 25 tbr, 1200k tbn, 50 tbc Output #0, mp4, to 'snippet.mp4': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1440x544, q=2-31, 25 fps, 12800 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) From doenerbudenchef at yahoo.de Thu Oct 9 13:05:26 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Thu, 9 Oct 2014 04:05:26 -0700 (PDT) Subject: [FFmpeg-user] MXF encoding, right audio channel delayed Message-ID: <1412852726397-4667711.post@n4.nabble.com> I have a big problem: We use ffmbc to encode proes files to mxf with dedicated mono audio channels: -ss 00:00:00 -i "" -target xdcamhd422 -an "_MXF.mxf" -acodec pcm_s24le -ar 48000 -newaudio -acodec pcm_s24le -ar 48000 -newaudio -map_audio_channel 0:0:0:0:1:0 -map_audio_channel 0:0:1:0:2:0 I have noticed that the right audio channel is delayed by 1586 samples, or about 38 ms. Why does this happen? Is there any chance to fix this issue without reencoding the complete file? Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MXF-encoding-right-audio-channel-delayed-tp4667711.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From doenerbudenchef at yahoo.de Thu Oct 9 16:16:45 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Thu, 9 Oct 2014 07:16:45 -0700 (PDT) Subject: [FFmpeg-user] MXF encoding, right audio channel delayed In-Reply-To: <1412852726397-4667711.post@n4.nabble.com> References: <1412852726397-4667711.post@n4.nabble.com> Message-ID: <1412864205667-4667713.post@n4.nabble.com> Ok, I've found the cause. Sometimes it is nesscary to trim the first 5 seconds of videofile. Therefor I use "-ss 00:00:05". The result is: Output #0, mxf, to 'C:\Users\FiebigA\Desktop\File_MXF.mxf': Metadata: encoder: FFmbc 0.7 Stream #0.0(und): Video: mpeg2video, yuv422p, 1920x1080p [PAR 1:1 DAR 16:9], cbr, 50000 kb/s, 23.98 fps Stream #0.1(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0.2(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 [channel: 0 -> 0] Stream #0.1 -> #0.2 [channel: 1 -> 0] Press [q] to stop, [?] for help *discarding 1920 audio samples in stream #0.1 Last message repeated 1 times discarding 1727 audio samples in stream #0.1 Last message repeated 1 times* frame= 1874 fps= 5 q=2.0 size= 501110kB time=00:01:18.16 bitrate=52520.7kbits/s eta=00:10:11.71 dup=0 drop=1 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MXF-encoding-right-audio-channel-delayed-tp4667711p4667713.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From venky1893 at gmail.com Fri Oct 10 09:57:26 2014 From: venky1893 at gmail.com (venky v) Date: Fri, 10 Oct 2014 13:27:26 +0530 Subject: [FFmpeg-user] Help : Stream video using FFMPEG from client side Message-ID: I have setup a ffmpeg and I'm streaming a file from localhost to rtmp server. What i need is to stream a file from the client PC. i.e., I am hosting ffmpeg on the server and i need my web application to streams the file from the client PC to the rtmp server. Is it possible? I don't want to upload the entire file to my server because sometime the files are from a live feed (mixer studio outputs) -- VENKY From microspam at list.ru Thu Oct 9 13:13:17 2014 From: microspam at list.ru (=?UTF-8?B?YSBi?=) Date: Thu, 09 Oct 2014 15:13:17 +0400 Subject: [FFmpeg-user] =?utf-8?q?merged_video_fails_to_play?= Message-ID: <1412853197.970030473@f242.i.mail.ru> I have a PNG image and a video file and I want to merge them together into one video file. All of the work should be done under Linux. 1. The PNG image has 1280x720 resolution and I converted it to *.mp4 file using the following command: $ ffmpeg -loop 1 -r 24 -i image.png -t 00:00:05 -vcodec h264 -pix_fmt yuv420p -an image.mp4 2. The video was created via pipe using the following command (pay attention to its last line): $ gource -s 2 --auto-skip-seconds 0.1 --file-idle-time 0 --max-files 500 --multi-sampling --bloom-multiplier 0.9 \ --bloom-intensity 0.4 -1280x720 --stop-at-end --output-ppm-stream - history.xml \ | ffmpeg -y -r 24 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p video.mp4 3. Then I merged them in one video. The list of input files: $ cat files.txt file 'image.mp4' file 'video.mp4' This command was used to concatenate the files: $ ffmpeg -f concat -i files.txt -c:v copy result.mp4 This command printed the following message, not sure if it is important: [concat @ 0xc83b90] Estimating duration from bitrate, this may be inaccurate 4. Finally, I open result video with mplayer. I see the first image for 5 seconds, as expected. Then, when the second video should start, mplayer "hangs" and the following messages appear in the console: [h264 @ 0x7f8e00260520]deblocking_filter_idc 16 out of range [h264 @ 0x7f8e00260520]decode_slice_header error [h264 @ 0x7f8e00260520]Missing reference picture, default is 65539 [h264 @ 0x7f8e00260520]Missing reference picture, default is 65539 ... [h264 @ 0x7f8e00260520]cabac_init_idc 32 overflow [h264 @ 0x7f8e00260520]decode_slice_header error [h264 @ 0x7f8e00260520]illegal reordering_of_pic_nums_idc [h264 @ 0x7f8e00260520]decode_slice_header error [h264 @ 0x7f8e00260520]abs_diff_pic_num overflow ... [h264 @ 0x7f8e00260520]top block unavailable for requested intra mode at 3 0 [h264 @ 0x7f8e00260520]error while decoding MB 3 0, bytestream 2463 [h264 @ 0x7f8e00260520]number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 0x7f8e00260520]Cannot use next picture in error concealment [h264 @ 0x7f8e00260520]concealing 3600 DC, 3600 AC, 3600 MV errors in P frame [h264 @ 0x7f8e00260520]number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 0x7f8e00260520]Cannot use next picture in error concealment [h264 @ 0x7f8e00260520]concealing 3571 DC, 3571 AC, 3571 MV errors in P frame ... [h264 @ 0x7f8e00260520]top block unavailable for requested intra4x4 mode -1 at 59 0 ... [h264 @ 0x7f8e00260520]deblocking_filter_idc 3 out of range [h264 @ 0x7f8e00260520]decode_slice_header error [h264 @ 0x7f8e00260520]Missing reference picture, default is 65536 [h264 @ 0x7f8e00260520]Missing reference picture, default is 65536 [h264 @ 0x7f8e00260520]Reference 5 >= 4 [h264 @ 0x7f8e00260520]error while decoding MB 49 0, bytestream 50981 [h264 @ 0x7f8e00260520]Cannot use next picture in error concealment [h264 @ 0x7f8e00260520]concealing 3600 DC, 3600 AC, 3600 MV errors in P frame Any ideas what could be wrong? Here is ffmpeg's info about my video files: $ ffmpeg -i image.mp4 [h264 @ 0x8e2f40] Warning: not compiled with thread support, using thread emulation Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'image.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.33.100 Duration: 00:00:03.00, start: 0.000000, bitrate: 46 kb/s Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 1280x720 [SAR 1260:1273 DAR 2240:1273], 41 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler $ ffmpeg -i video.mp4 [h264 @ 0x15e7f30] Warning: not compiled with thread support, using thread emulation Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.33.100 Duration: 00:19:17.38, start: 0.000000, bitrate: 2646 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 2645 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default) Metadata: handler_name : VideoHandler $ ffmpeg -i result.mp4 [h264 @ 0x119bf30] Warning: not compiled with thread support, using thread emulation Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'result.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.33.100 Duration: 00:19:22.46, start: 0.000000, bitrate: 2635 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1260:1273 DAR 2240:1273], 2634 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default) Metadata: handler_name : VideoHandler ffmpeg info: $ ffmpeg version 2.2.7 built on Oct 4 2014 16:07:27 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native -mtune=native -mmmx -msse -msse2 -msse4.1 -msse4.2 -mssse3 -maes -mpclmul -mf16c -mfma -mabm -mbmi -mbmi2' --extra-cflags='-O2 -pipe -march=native -mtune=native -mmmx -msse -msse2 -msse4.1 -msse4.2 -mssse3 -maes -mpclmul -mf16c -mfma -mabm -mbmi -mbmi2' --extra-cxxflags='-O2 -pipe -march=native -mtune=native -mmmx -msse -msse2 -msse4.1 -msse4.2 -mssse3 -maes -mpclmul -mf16c -mfma -mabm -mbmi -mbmi2' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --disable-openssl --disable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libaacplus --disable-libfaac --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --disable-openal --enable-opengl --enable-libv4l2 --disable-libpulse --enable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig --disable-ladspa --enable-libass --disable-libfreetype --disable-libsoxr --disable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-sse4 --cpu=host 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 From matusnov at gmail.com Thu Oct 9 18:07:54 2014 From: matusnov at gmail.com (Matus Novak) Date: Thu, 9 Oct 2014 18:07:54 +0200 Subject: [FFmpeg-user] FFmpeg licensing Message-ID: Hi, I am developing open-source framework that is licensed under LPGL and it is mainly focused on graphical usage. I am also developing addons for this framework and one of which is video player that uses FFmpeg libraries. My question is, if I compile shared FFmpeg libraries *without* parameters "--enable-gpl" and "--enable-nonfree" to make it LGPL compatible, then am I legally allowed to make DDLs available on framework`s git repository? If I understood right, I also need to make the source code available on same repository from which DLLs were compiled? My last question. I am also making closed-source app that is using my framework also with addon that uses FFmpeg libraries and clients will not be charged for this app. In order to ship the application I also need to ship FFmpeg DLLs with exe in order to make app properly working. I am only using shared libraries, not static. Do I need to include FFmpeg lib source code into application? If yes, would it be OK if I only provided link to repository (in which DLLs with source code and my framework are) inside app`s readmy file? Thank you. with regards, Matus Novak From ilia.broudno at gmail.com Fri Oct 10 02:50:37 2014 From: ilia.broudno at gmail.com (Ilia Broudno) Date: Thu, 9 Oct 2014 17:50:37 -0700 Subject: [FFmpeg-user] ./configure --toolchain=msvc Message-ID: I am trying to build an LGPL version of ffmpeg. I am following instructions from https://www.ffmpeg.org/platform.html section 4.3 4.2 Microsoft Visual C++ or Intel C++ Compiler for Windows Let me know if there is a better instructions list to use. I got as far as ./configure --toolchain=msvc After I ran msys.bat it started I believe MINGW32 bash in which I went to the directory where I downloaded source from http://ffmpeg.zeranoe.com/builds/ and I ran ./configure --toolchain=msvc I got back this: $ ./configure --toolchain=msvc cl is unable to create an executable file. If cl is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed. 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. I attached the config.log here Thank you in advance for your help. Ilia -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 135354 bytes Desc: not available URL: From h.reindl at thelounge.net Fri Oct 10 13:59:15 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 10 Oct 2014 13:59:15 +0200 Subject: [FFmpeg-user] FFmpeg licensing In-Reply-To: References: Message-ID: <5437CA13.7000504@thelounge.net> Am 09.10.2014 um 18:07 schrieb Matus Novak: > I am developing open-source framework that is licensed under LPGL and it is > mainly focused on graphical usage. I am also developing addons for this > framework and one of which is video player that uses FFmpeg libraries. > > My question is, if I compile shared FFmpeg libraries *without* parameters > "--enable-gpl" and "--enable-nonfree" to make it LGPL compatible, then am I > legally allowed to make DDLs available on framework`s git repository? If I > understood right, I also need to make the source code available on same > repository from which DLLs were compiled? if you use "--enable-gpl" you need to follow the GPL if you use "--enable-nonfree" the binary is *undistributeable* at the end you need to consult a laywer, this is the wrong place there is a good reason why you find only sources on the official page patent issues and so on..... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Fri Oct 10 14:15:25 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 10 Oct 2014 14:15:25 +0200 Subject: [FFmpeg-user] c:v copy - output file is empty, nothing was encoded In-Reply-To: References: Message-ID: <20141010121525.GD5128@sunshine.barsnick.net> On Thu, Oct 09, 2014 at 00:52:47 +0200, Peter Trompeter wrote: > so i do: ffmpeg -i snippet.h264 -r 25 -c:v copy snippet.mp4 > however, this does not seem to work. error message: Output file is empty, nothing was encoded > ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers This version is way too old. Use a recent one or build your own from git. Because it works for me (two week old snapshot), see below. Moritz :-) barsnick at sunshine:/tmp > ffmpeg -i snippet.h264 -r 25 -c:v copy snippet.mp4 -y ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Sep 26 2014 08:47:09 with icc (ICC) 14.0.3 20140422 configuration: --prefix=/usr/new/tools/video/install/ffmpeg/20140925 --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 --enable-libsmbclient --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 54. 7.101 / 54. 7.101 libavcodec 56. 1.101 / 56. 1.101 libavformat 56. 5.100 / 56. 5.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.102 / 5. 1.102 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 [h264 @ 0xa35c420] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, h264, from 'snippet.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1440x544, 25 fps, 25 tbr, 1200k tbn, 50 tbc Output #0, mp4, to 'snippet.mp4': Metadata: encoder : Lavf56.5.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1440x544, q=2-31, 25 fps, 12800 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 99 fps=0.0 q=-1.0 Lsize= 8451kB time=00:00:03.96 bitrate=17481.8kbits/s video:8449kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.014528% From cehoyos at ag.or.at Fri Oct 10 19:46:47 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 Oct 2014 17:46:47 +0000 (UTC) Subject: [FFmpeg-user] ./configure --toolchain=msvc References: Message-ID: Ilia Broudno gmail.com> writes: > I got as far as > ./configure --toolchain=msvc > link -o ./ffconf.unrLPcwG.exe ./ffconf.SSAAzJcB.o > link: invalid option -- o > Try `link --help' for more information. I believe this means you ignored the first "Note" in the documentation for msvc compilation. Carl Eugen From cehoyos at ag.or.at Fri Oct 10 19:58:43 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 Oct 2014 17:58:43 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg licensing References: Message-ID: Matus Novak gmail.com> writes: > My question is, if I compile shared FFmpeg libraries > *without* parameters "--enable-gpl" and "--enable-nonfree" > to make it LGPL compatible, then am I legally allowed to > make DDLs available on framework`s git repository? I am not sure if I understand the question: (I am not a native speaker.) If you compile FFmpeg with --enable-nonfree, you are not allowed to distribute the resulting binaries. If you compile with --enable-gpl, you are allowed to distribute the binaries if you comply with the rules of the GPL. If you use neither --enable-nonfree nor --enable-gpl, you may distribute the resulting binaries under the rules of the LGPL. We have written a page that makes it - in our opinion - easy to check if you follow all LGPL requirements: https://www.ffmpeg.org/legal.html > If I understood right, I also need to make the source > code available on same repository from which DLLs were > compiled? You have to make sure that users can (easily) download the exact sources that you used to compile the binaries based on FFmpeg source code (the "DLLs"). I am not sure what you mean with "same repository": If your binaries are not typically downloaded through a web browser (but through an installer program), then it is important that your users may click on a link to the source code. I believe we do explain this on our checklist: I suspect you somewhere (on a webpage) provide a link that will be used by the installation program. Just put a link to the source code next to the link to the app. (And you should of course mention that the source code is not needed to run your app.) (And we believe that it makes sense to host the binaries and the source code on the same server, but this is of course no requirement, the requirement is that users may download the sources if they want to do AND that they can switch the "DLLs" you provided with DLLs they compiled themselves. All the above is relevant no matter if the executable that calls the "DLLs" is licensed under LGPL or is proprietary and it makes no difference how much you charge for the executable. Don't forget that you also have to tell your users about FFmpeg and the LGPL. I am not a lawyer, it may be necessary that you consult your lawyer. Carl Eugen From cehoyos at ag.or.at Fri Oct 10 20:01:00 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 Oct 2014 18:01:00 +0000 (UTC) Subject: [FFmpeg-user] merged video fails to play References: <1412853197.970030473@f242.i.mail.ru> Message-ID: a b list.ru> writes: > $ ffmpeg -loop 1 -r 24 -i image.png -t 00:00:05 > -vcodec h264 -pix_fmt yuv420p -an image.mp4 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'image.mp4': > Duration: 00:00:03.00, start: 0.000000, bitrate: 46 kb/s > Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) It is very unlikely that above command (that requests 4:2:0) was used to produce the input file (that has 4:4:4). You can only use concat on two videos with the same (very similar) properties, ie you need the same pix_fmt for both input videos. Carl Eugen From doenerbudenchef at yahoo.de Fri Oct 10 23:00:02 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Fri, 10 Oct 2014 14:00:02 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted Message-ID: <1412974802235-4667730.post@n4.nabble.com> Hi all, I normally transcode MY prores files to mxf/xdcam422 and 2 dedicated pcm audio streams with ffmbc, which basically works very well. Due a bug in ffmbc 0.7-rc7 (https://groups.google.com/forum/#!topic/ffmbc-discuss/6rqUhyG4Wv8), I have recognized yesterdaym that the second audio stream of some of my files is shifted by about 40ms. I've had a look at the ffmpeg manual and found "atrim" as one possible solution for my problem. Is there maybe a smoother way to get the audio channels back in sync? Best, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Oct 10 23:09:34 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 10 Oct 2014 21:09:34 +0000 (UTC) Subject: [FFmpeg-user] Right audio channel shifted References: <1412974802235-4667730.post@n4.nabble.com> Message-ID: Alex ffmpeg.org> writes: [...] Since this is apparently not clear: This is not the ffmbc user mailing list. (FFmpeg != ffmbc) Carl Eugen From doenerbudenchef at yahoo.de Sat Oct 11 00:46:38 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Fri, 10 Oct 2014 15:46:38 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: References: <1412974802235-4667730.post@n4.nabble.com> Message-ID: <1412981198461-4667732.post@n4.nabble.com> Thats absolutely clear, but I want to use ffmpeg to solve that issue. Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667732.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From liangry at ucweb.com Sat Oct 11 03:45:47 2014 From: liangry at ucweb.com (Ruoyu) Date: Sat, 11 Oct 2014 09:45:47 +0800 Subject: [FFmpeg-user] ffplay not found In-Reply-To: <20141010113627.GC5128@sunshine.barsnick.net> References: <5437B5E4.5090609@ucweb.com> <5437BE79.4030603@thelounge.net> <20141010113627.GC5128@sunshine.barsnick.net> Message-ID: <54388BCB.4070902@ucweb.com> Thanks. It works! On 2014?10?10? 19:36, Moritz Barsnick wrote: > On Fri, Oct 10, 2014 at 13:09:45 +0200, Reindl Harald wrote: >>> Another question, after compiling, I cannot find out the executable >>> ffplay. How to compile it? >> ./configure --help > What that doesn't tell you though is that you need libsdl, and it needs > to be found, in order to have ffplay included in the build. You need > SDL-devel or libsdl1.2-dev or whatever it may be called on your > distribution. > > You also need some other libs, notably X11 libs, as the note in this > document hints: > > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#GettheDependencies > >> [...] ffplay and x11 dependencies: libsdl1.2-dev libva-dev >> libvdpau-dev libx11-dev libxext-dev libxfixes-dev > (These package names are for Ubuntu. The RedHat/Fedora/CentOS wiki page > isn't so clear about this.) > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sat Oct 11 09:01:35 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Oct 2014 07:01:35 +0000 (UTC) Subject: [FFmpeg-user] ffplay not found References: <5437B5E4.5090609@ucweb.com> <5437BE79.4030603@thelounge.net> <20141010113627.GC5128@sunshine.barsnick.net> Message-ID: Moritz Barsnick gmx.net> writes: > > [...] ffplay and x11 dependencies: libsdl1.2-dev I (strongly) suspect this is the only dependency for ffplay, the other libraries are needed for other features. Concerning "--enable-ffplay": I just like to add that this should not be part of any sane configure line, it does NOT do what most people expect, ffplay is built if libsdl-devel is installed. Carl Eugen From liangry at ucweb.com Sat Oct 11 13:59:52 2014 From: liangry at ucweb.com (Ruoyu) Date: Sat, 11 Oct 2014 19:59:52 +0800 Subject: [FFmpeg-user] duplicate branch for if else statement Message-ID: <54391BB8.4080004@ucweb.com> Hi, Duplicate branches for if and else is found in libavformat/sol.c, at line 60-62. static enum AVCodecID sol_codec_id(int magic, int type) { if (magic == 0x0B8D) { if (type & SOL_DPCM) return AV_CODEC_ID_SOL_DPCM; else return AV_CODEC_ID_PCM_U8; } if (type & SOL_DPCM) { if (type & SOL_16BIT) return AV_CODEC_ID_SOL_DPCM; else if (magic == 0x0C8D) return AV_CODEC_ID_SOL_DPCM; else return AV_CODEC_ID_SOL_DPCM; } if (type & SOL_16BIT) return AV_CODEC_ID_PCM_S16LE; return AV_CODEC_ID_PCM_U8; } As you can see, all branches return AV_CODEC_ID_SOL_DPCM. Is it correct? From liangry at ucweb.com Sat Oct 11 14:24:42 2014 From: liangry at ucweb.com (Ruoyu) Date: Sat, 11 Oct 2014 20:24:42 +0800 Subject: [FFmpeg-user] logical express always be true Message-ID: <5439218A.8060308@ucweb.com> Hi, Logical express always be true in libavformat/mov.c, line 954. Is it correct? if (color_trc >= AVCOL_TRC_LINEAR || color_trc <= AVCOL_TRC_LOG_SQRT || color_trc >= AVCOL_TRC_BT2020_10) color_trc = AVCOL_TRC_UNSPECIFIED; Definition of the three constants: AVCOL_TRC_LINEAR = 8 AVCOL_TRC_LOG_SQRT = 10 AVCOL_TRC_BT2020_10 = 14 From cehoyos at ag.or.at Sat Oct 11 15:54:29 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Oct 2014 13:54:29 +0000 (UTC) Subject: [FFmpeg-user] logical express always be true References: <5439218A.8060308@ucweb.com> Message-ID: Ruoyu ucweb.com> writes: > Logical express always be true in libavformat/mov.c, line 954. > Is it correct? No, feel free to send a patch made with "git format-patch" to the development mailing list to fix this. Carl Eugen From cehoyos at ag.or.at Sat Oct 11 15:59:59 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Oct 2014 13:59:59 +0000 (UTC) Subject: [FFmpeg-user] duplicate branch for if else statement References: <54391BB8.4080004@ucweb.com> Message-ID: Ruoyu ucweb.com> writes: > Duplicate branches for if and else is found in > libavformat/sol.c, at line 60-62. Feel free to send a patch made with "git format-patch" to the development mailing list if you feel that this should be improved. Carl Eugen From sajjad.moshen at gmail.com Sun Oct 12 04:34:32 2014 From: sajjad.moshen at gmail.com (Sajjad Moshen) Date: Sun, 12 Oct 2014 03:34:32 +0100 Subject: [FFmpeg-user] UDP Packet size option Message-ID: Hi, I've been trying to get my decoder to read my UDP feed but for some odd reason it doesn't like when I add the ?pkt_size=1316 option to my unicast stream. >From reading around I am aware that I can recompile ffmpeg with a custom MTU setting to ensure I can get the desired packet size, however my question is if there is another way to insert the MTU override setting in the CLI without placing it right at the end of the stream? Command is: ffmpeg -re -i rtmp://x -vcodec mpeg2video -r 25 -flags cgop+ilme -sc_threshold 1000000000 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v 0.2M -muxrate 2.5M -acodec mp2 -ac 2 -b:a 224k -f mpegts udp:// 192.168.0.4:1234?pkt_size=1316 Thanks in advance. -- Regards Sajjad Moshen From xanadu at apost.plala.or.jp Sun Oct 12 14:17:11 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Sun, 12 Oct 2014 21:17:11 +0900 Subject: [FFmpeg-user] Can I change overlay color of subtitle? Message-ID: Hello, I am trying to hardcode dvd subtitle into video referring the link below https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo The command line I tried is the following. $ ffmpeg -analyzeduration 60M -probesize 60M \ -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB \ -filter_complex "[0:v][0:s]overlay[v]" \ -map [v] -map 0:a -t 00:05:00 test.mp4 The command line works fine and I can get a mp4 movie with subtitle. But I got yellow colored subtitle. I'd like to change subtitle color into yellow to white if I can. Is there any way to change overlay color of subtitle? // Miya From james.darnley at gmail.com Sun Oct 12 15:47:16 2014 From: james.darnley at gmail.com (James Darnley) Date: Sun, 12 Oct 2014 15:47:16 +0200 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: References: Message-ID: <543A8664.40603@gmail.com> On 2014-10-12 14:17, Kimio Miyamura wrote: > Hello, > > I am trying to hardcode dvd subtitle into video referring the link below > > https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo > > > The command line I tried is the following. > > $ ffmpeg -analyzeduration 60M -probesize 60M \ > -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB \ > -filter_complex "[0:v][0:s]overlay[v]" \ > -map [v] -map 0:a -t 00:05:00 test.mp4 > > The command line works fine and I can get a mp4 movie with subtitle. But I got yellow colored subtitle. I'd like to change subtitle color into yellow to white if I can. > > Is there any way to change overlay color of subtitle? Only of text subtitles. DVDs have vobsub subtitles which are bitmaps. This means it can't be as easy as setting "color=white". There might be some complicated way of altering the colours of the bitmaps by saturation, brightness, or just a lut. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 603 bytes Desc: OpenPGP digital signature URL: From nickrobbins at yahoo.com Sun Oct 12 16:03:59 2014 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Sun, 12 Oct 2014 07:03:59 -0700 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: <543A8664.40603@gmail.com> References: <543A8664.40603@gmail.com> Message-ID: <1413122639.71033.YahooMailNeo@web160804.mail.bf1.yahoo.com> > On Sunday, October 12, 2014 9:47 AM, James Darnley wrote: > > On 2014-10-12 14:17, Kimio Miyamura wrote: > >> Hello, >> >> I am trying to hardcode dvd subtitle into video referring the link below >> >> https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo >> >> >> The command line I tried is the following. >> >> $ ffmpeg -analyzeduration 60M -probesize 60M \ >> -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB \ >> -filter_complex "[0:v][0:s]overlay[v]" \ >> -map [v] -map 0:a -t 00:05:00 test.mp4 >> >> The command line works fine and I can get a mp4 movie with subtitle. But I > got yellow colored subtitle. I'd like to change subtitle color into yellow > to white if I can. >> >> Is there any way to change overlay color of subtitle? > > Only of text subtitles. DVDs have vobsub subtitles which are bitmaps. > This means it can't be as easy as setting "color=white". There > might be > some complicated way of altering the colours of the bitmaps by > saturation, brightness, or just a lut. > If they are vobsubs, you could split them out into a track.idx/track.sub pair with, for instance mkvextract. Looking at the .idx file, I see it has a line at the start: palette: 000000, 0000ff, 00ff00, ff0000, ffff00, ff00ff, 00ffff, ffffff, 808000, 8080ff, 800080, 80ff80, 008080, ff8080, 555555, aaaaaa Changing that would presumably change the color of the subtitles. mkvmerge can pull the subtitles back in. So what i would suggest is #remux subtitles ffmpeg -analyzeduration 60M -probesize 60M -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB -vn -an subtitles.mkv #pull out .idx/.sub pair mkvextract tracks subtitles.mkv 0:subtitles.idx $??edit that line to change the colors?? #put the .idx/.sub pair back together mkvmerge -o newsubs.mkv subtitles.idx #use that new subtitle stream ffmpeg -analyzeduration 60M -probesize 60M \ -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB \ -i newsubs.mkv \ -filter_complex "[0:v][1:s]overlay[v]" \ -map [v] -map 0:a -t 00:05:00 test.mp4 I have no idea if changing the palette line will work. From xanadu at apost.plala.or.jp Sun Oct 12 16:32:56 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Sun, 12 Oct 2014 23:32:56 +0900 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: <543A8664.40603@gmail.com> References: <543A8664.40603@gmail.com> Message-ID: 2014/10/12 22:47?James Darnley wrote: > On 2014-10-12 14:17, Kimio Miyamura wrote: >> The command line works fine and I can get a mp4 movie with subtitle. But I got yellow colored subtitle. I'd like to change subtitle color into yellow to white if I can. >> >> Is there any way to change overlay color of subtitle? > > Only of text subtitles. DVDs have vobsub subtitles which are bitmaps. > This means it can't be as easy as setting "color=white". There might be > some complicated way of altering the colours of the bitmaps by > saturation, brightness, or just a lut. I know that vobsub subtitles are bitmaps. But in a original DVD, the subtitle are white bordered in black. I don't know how ffmpeg process those subtitle, but I think ffmpeg intentionally change the color of subtitle. Am I wrong? // Miya From xanadu at apost.plala.or.jp Sun Oct 12 16:43:11 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Sun, 12 Oct 2014 23:43:11 +0900 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: <1413122639.71033.YahooMailNeo@web160804.mail.bf1.yahoo.com> References: <543A8664.40603@gmail.com> <1413122639.71033.YahooMailNeo@web160804.mail.bf1.yahoo.com> Message-ID: 2014/10/12 23:03?Nicholas Robbins wrote: >> On Sunday, October 12, 2014 9:47 AM, James Darnley wrote: > >>> On 2014-10-12 14:17, Kimio Miyamura wrote: >> >>> The command line works fine and I can get a mp4 movie with subtitle. But I got yellow colored subtitle. I'd like to change subtitle color into yellow to white if I can. >>> >>> Is there any way to change overlay color of subtitle? >> >> Only of text subtitles. DVDs have vobsub subtitles which are bitmaps. >> This means it can't be as easy as setting "color=white". There >> might be >> some complicated way of altering the colours of the bitmaps by >> saturation, brightness, or just a lut. > > If they are vobsubs, you could split them out into a track.idx/track.sub pair with, for instance mkvextract. > > Looking at the .idx file, I see it has a line at the start: > > palette: 000000, 0000ff, 00ff00, ff0000, ffff00, ff00ff, 00ffff, ffffff, 808000, 8080ff, 800080, 80ff80, 008080, ff8080, 555555, aaaaaa > > Changing that would presumably change the color of the subtitles. > > mkvmerge can pull the subtitles back in. > > So what i would suggest is > > > #remux subtitles > ffmpeg -analyzeduration 60M -probesize 60M -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB -vn -an subtitles.mkv > > #pull out .idx/.sub pair > mkvextract tracks subtitles.mkv 0:subtitles.idx > > $??edit that line to change the colors?? > > #put the .idx/.sub pair back together > mkvmerge -o newsubs.mkv subtitles.idx > > > #use that new subtitle stream > ffmpeg -analyzeduration 60M -probesize 60M \ > -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB \ > -i newsubs.mkv \ > -filter_complex "[0:v][1:s]overlay[v]" \ > -map [v] -map 0:a -t 00:05:00 test.mp4 > > I have no idea if changing the palette line will work. Thanks for procedure. I don't tried it yet. But this procedure is based on changing color of original dvd-vobsub. Am I right? Do I need this procedure even if original dvd-vobsub is white bordered in black when watching original DVD with player? I heard that the color is intentionally changed by ffmpeg. Am I wrong? // Miya From james.darnley at gmail.com Sun Oct 12 16:51:57 2014 From: james.darnley at gmail.com (James Darnley) Date: Sun, 12 Oct 2014 16:51:57 +0200 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: References: <543A8664.40603@gmail.com> Message-ID: <543A958D.9040801@gmail.com> On 2014-10-12 16:32, Kimio Miyamura wrote: > > 2014/10/12 22:47?James Darnley wrote: > >> On 2014-10-12 14:17, Kimio Miyamura wrote: >>> The command line works fine and I can get a mp4 movie with subtitle. But I got yellow colored subtitle. I'd like to change subtitle color into yellow to white if I can. >>> >>> Is there any way to change overlay color of subtitle? >> >> Only of text subtitles. DVDs have vobsub subtitles which are bitmaps. >> This means it can't be as easy as setting "color=white". There might be >> some complicated way of altering the colours of the bitmaps by >> saturation, brightness, or just a lut. > > I know that vobsub subtitles are bitmaps. But in a original DVD, the subtitle are white bordered in black. I don't know how ffmpeg process those subtitle, but I think ffmpeg intentionally change the color of subtitle. Am I wrong? I don't think it is supposed to do that but I am not at all familiar with subtitles in FFmpeg. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 603 bytes Desc: OpenPGP digital signature URL: From george at nsup.org Sun Oct 12 19:05:59 2014 From: george at nsup.org (Nicolas George) Date: Sun, 12 Oct 2014 19:05:59 +0200 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: References: <543A8664.40603@gmail.com> Message-ID: <20141012170559.GA15762@phare.normalesup.org> Le primidi 21 vend?miaire, an CCXXIII, Kimio Miyamura a ?crit?: > I know that vobsub subtitles are bitmaps. But in a original DVD, the > subtitle are white bordered in black. I don't know how ffmpeg process > those subtitle, but I think ffmpeg intentionally change the color of > subtitle. Am I wrong? In DVDs, the subtitles colors are stored in the IFO metadata file. Your command line does not use that file (and actually, FFmpeg is not capable of taking advantage of it yet), so the palette is lost. You can override the palette using the -palette option to the dvdsub decoder. If that does not work or if it is not powerful enough, remember that once you use the bitmap subtitles in the filter graph, they are actually treated as video (with alpha). So you can use all video filters, and amongst the various hue and lut filters there is probably one that can change the colors. As a side note, I see your command line accesses the VOB files directly in the DVD-Video file structure. That is almost always wrong. You need to use DVD-Video-aware software to reconstruct the MPEG streams correctly. You can use the dvd2concat for that for example, or mplayer -dumpstream. 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 xanadu at apost.plala.or.jp Sun Oct 12 19:29:06 2014 From: xanadu at apost.plala.or.jp (Kimio Miyamura) Date: Mon, 13 Oct 2014 02:29:06 +0900 Subject: [FFmpeg-user] Can I change overlay color of subtitle? In-Reply-To: <20141012170559.GA15762@phare.normalesup.org> References: <543A8664.40603@gmail.com> <20141012170559.GA15762@phare.normalesup.org> Message-ID: <9BD6A5BE-2EC8-4E29-AD17-A208F9DB70F0@apost.plala.or.jp> 2014/10/13 2:05?Nicolas George wrote: > Le primidi 21 vend?miaire, an CCXXIII, Kimio Miyamura a ?crit : >> I know that vobsub subtitles are bitmaps. But in a original DVD, the >> subtitle are white bordered in black. I don't know how ffmpeg process >> those subtitle, but I think ffmpeg intentionally change the color of >> subtitle. Am I wrong? > > In DVDs, the subtitles colors are stored in the IFO metadata file. Your > command line does not use that file (and actually, FFmpeg is not capable of > taking advantage of it yet), so the palette is lost. > > You can override the palette using the -palette option to the dvdsub > decoder. > > If that does not work or if it is not powerful enough, remember that once > you use the bitmap subtitles in the filter graph, they are actually treated > as video (with alpha). So you can use all video filters, and amongst the > various hue and lut filters there is probably one that can change the > colors. Thank you very much. Now I understand why my command line produce yellow colored subtitle. Also I understand how to change the color using -pallet option. > As a side note, I see your command line accesses the VOB files directly in > the DVD-Video file structure. That is almost always wrong. You need to use > DVD-Video-aware software to reconstruct the MPEG streams correctly. You can > use the dvd2concat for that for example, or mplayer -dumpstream. OK, I will take care... // Miya From qiannizouguo at qq.com Sat Oct 11 09:54:02 2014 From: qiannizouguo at qq.com (=?utf-8?B?5a6L5Yev5a6H?=) Date: Sat, 11 Oct 2014 15:54:02 +0800 Subject: [FFmpeg-user] Mac os configure error Message-ID: <1066E479-216D-4336-80E5-134F9D5A0F57@qq.com> os : mac os 10.9.4 source version:latest here is the configure log Thanks to solve the problem -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 164336 bytes Desc: not available URL: -------------- next part -------------- best wish sky From barsnick at gmx.net Sun Oct 12 23:30:24 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 12 Oct 2014 23:30:24 +0200 Subject: [FFmpeg-user] Mac os configure error In-Reply-To: <1066E479-216D-4336-80E5-134F9D5A0F57@qq.com> References: <1066E479-216D-4336-80E5-134F9D5A0F57@qq.com> Message-ID: <20141012213024.GA16019@sunshine.barsnick.net> On Sat, Oct 11, 2014 at 15:54:02 +0800, ??? wrote: > Thanks to solve the problem > nasm: fatal: unrecognised output format `macho64' - use -hf for a list > type `nasm -h' for help > yasm/nasm not found or too old. Use --disable-yasm for a crippled build. This has been seen on this list before. Try installing yasm first. Moritz From henry.soang at umbocv.com Mon Oct 13 04:41:30 2014 From: henry.soang at umbocv.com (Henry Soang) Date: Mon, 13 Oct 2014 10:41:30 +0800 Subject: [FFmpeg-user] Not able to get seek working with concat demuxer Message-ID: Hi, I'm not able to get seek (ss) working with the concat demuxer, is this supported or can anybody spot what I'm doing wrong? The command I run to seek 20 seconds into the concat is: ffmpeg -f concat -ss 20 -i test.list -vcodec copy -acodec copy -f flv rtmp://localhost/live/hello test.list contents: test1.flv test2.flv test3.flv I verfied if I just pick one file, the seek (ss) works within it: ffmpeg -f concat -ss 20 -i test1.flv -vcodec copy -acodec copy -f flv rtmp://localhost/live/hello Any ideas? Thx. Henry From ROLF.SCHILL at thalesgroup.com Mon Oct 13 08:58:58 2014 From: ROLF.SCHILL at thalesgroup.com (SCHILL Rolf) Date: Mon, 13 Oct 2014 08:58:58 +0200 Subject: [FFmpeg-user] UNSUBSCRIBE Message-ID: <30392_1413183540_543B7834_30392_4498_1_679632B80F42D843A55602841100442B34AE030F58@THSNCOA06MXS02P.ONE-06.GRP> Mit freundlichen Gr?ssen, With best regards Rolf Schill Systemengineer Bitte beachten Sie meine ge?nderten Kontaktdaten ab 27. Oktober 2014 / Please note my changed contact details as of 9th October 2014: Thales Electronic Systems GmbH Thalesplatz 1 - 71254 Ditzingen - Germany Phone: +49 7156 353 23190 Defence & Security Systems Thales Deutschland Phone: + 49 7231 15 3190 Email: Rolf.Schill at thalesgroup.com Web: www.thalesgroup.com -------------------------------------------------------------- Thales Electronic Systems GmbH Ostendstrasse 3 - 75175 Pforzheim - Germany -------------------------------------------------------------- Sitz der Gesellschaft/Domicile of the Company: Stuttgart Amtsgericht/District Court: Stuttgart HRB 728793 Gesch?ftsf?hrer/Managing Directors: Peter Obermark (Vorsitzender/Chairman), Holger Brandt, Horst Strauss, Carel Tijhuis Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Henning Biebinger This e-mail is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Thales. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please notify Thales. From jbcurtinnews at gmail.com Mon Oct 13 09:04:13 2014 From: jbcurtinnews at gmail.com (Joseph Curtin) Date: Mon, 13 Oct 2014 00:04:13 -0700 Subject: [FFmpeg-user] UNSUBSCRIBE In-Reply-To: <30392_1413183540_543B7834_30392_4498_1_679632B80F42D843A55602841100442B34AE030F58@THSNCOA06MXS02P.ONE-06.GRP> References: <30392_1413183540_543B7834_30392_4498_1_679632B80F42D843A55602841100442B34AE030F58@THSNCOA06MXS02P.ONE-06.GRP> Message-ID: Rolf, Input your email at the bottom of the page in the following link: http://ffmpeg.org/mailman/listinfo/ffmpeg-user . This'll begin the process to unsubscribe you from the list. Cheers, On Sun, Oct 12, 2014 at 11:58 PM, SCHILL Rolf wrote: > > > Mit freundlichen Gr?ssen, With best regards > > Rolf Schill > Systemengineer > > Bitte beachten Sie meine ge?nderten Kontaktdaten ab 27. Oktober 2014 / > Please note my changed contact details as of 9th October 2014: > > Thales Electronic Systems GmbH > Thalesplatz 1 - 71254 Ditzingen - Germany > Phone: +49 7156 353 23190 > > Defence & Security Systems > Thales Deutschland > Phone: + 49 7231 15 3190 > Email: Rolf.Schill at thalesgroup.com > Web: www.thalesgroup.com > -------------------------------------------------------------- > Thales Electronic Systems GmbH > Ostendstrasse 3 - 75175 Pforzheim - Germany > -------------------------------------------------------------- > Sitz der Gesellschaft/Domicile of the Company: Stuttgart > Amtsgericht/District Court: Stuttgart HRB 728793 > Gesch?ftsf?hrer/Managing Directors: Peter Obermark (Vorsitzender/Chairman), > Holger Brandt, Horst Strauss, Carel Tijhuis > Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Henning > Biebinger > > > This e-mail is confidential and intended solely for the use of the > individual to whom it is addressed. Any views or opinions presented > are solely those of the author and do not necessarily represent > those of Thales. If you are not the intended recipient, be advised > that you have received this e-mail in error and that any use, > dissemination, forwarding, printing or copying of this e-mail is > strictly prohibited. If you have received this e-mail in error > please notify Thales. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- -Joseph Curtin http://www.jbcurtin.com github @jbcurtin From nichot20 at yahoo.com Mon Oct 13 09:34:59 2014 From: nichot20 at yahoo.com (tim nicholson) Date: Mon, 13 Oct 2014 08:34:59 +0100 Subject: [FFmpeg-user] MXF encoding, right audio channel delayed In-Reply-To: <1412864205667-4667713.post@n4.nabble.com> References: <1412852726397-4667711.post@n4.nabble.com> <1412864205667-4667713.post@n4.nabble.com> Message-ID: <543B80A3.3080004@yahoo.com> On 09/10/14 15:16, Alex wrote: > Ok, I've found the cause. Sometimes it is nesscary to trim the first 5 > seconds of videofile. Therefor I use "-ss 00:00:05". The result is: > > Output #0, mxf, to 'C:\Users\FiebigA\Desktop\File_MXF.mxf': > Metadata: > encoder: FFmbc 0.7 Two observations, firstly this is the ffmpeg mail list *not* ffmbc so not really the place to ask such questions. The common codebase for the two projects is some way back so what is relevant for one may not be relevant for the other. Secondly, is your source file by any chance a .mov? Some files in this format created by ingesting from tape have the first (and may be more) frame flagged as being of a different duration to the actual value calculated from the frame rate. This can cause issues for ffm*. If you drop the whole '-ss 0' is there a difference? > [..] -- Tim. Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 From nichot20 at yahoo.com Mon Oct 13 09:39:49 2014 From: nichot20 at yahoo.com (tim nicholson) Date: Mon, 13 Oct 2014 08:39:49 +0100 Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <1412981198461-4667732.post@n4.nabble.com> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> Message-ID: <543B81C5.8090503@yahoo.com> On 10/10/14 23:46, Alex wrote: > Thats absolutely clear, but I want to use ffmpeg to solve that issue. > Have you actually tried a later version of ffmbc? Baptiste said the issue would be fixed in the next version... > Alex > [...] -- Tim. Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 From damian at artnmedia.pl Mon Oct 13 09:56:10 2014 From: damian at artnmedia.pl (=?iso-8859-2?Q?Damian_G=B3odny?=) Date: Mon, 13 Oct 2014 09:56:10 +0200 Subject: [FFmpeg-user] UDP Packet size option In-Reply-To: References: Message-ID: <000001cfe6bb$270ba0a0$7522e1e0$@artnmedia.pl> Hey, verify packets size with Wireshark. You can also add -flush_packets 0, to be sure that all packets will have 1316 bytes. -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Sajjad Moshen Sent: Sunday, October 12, 2014 4:35 AM To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] UDP Packet size option Hi, I've been trying to get my decoder to read my UDP feed but for some odd reason it doesn't like when I add the ?pkt_size=1316 option to my unicast stream. >From reading around I am aware that I can recompile ffmpeg with a custom MTU setting to ensure I can get the desired packet size, however my question is if there is another way to insert the MTU override setting in the CLI without placing it right at the end of the stream? Command is: ffmpeg -re -i rtmp://x -vcodec mpeg2video -r 25 -flags cgop+ilme -sc_threshold 1000000000 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v 0.2M -muxrate 2.5M -acodec mp2 -ac 2 -b:a 224k -f mpegts udp:// 192.168.0.4:1234?pkt_size=1316 Thanks in advance. -- Regards Sajjad Moshen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From barsnick at gmx.net Mon Oct 13 10:18:20 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 13 Oct 2014 10:18:20 +0200 Subject: [FFmpeg-user] UDP Packet size option In-Reply-To: References: Message-ID: <20141013081820.GC5339@sunshine.barsnick.net> Hi Sajjad, On Sun, Oct 12, 2014 at 03:34:32 +0100, Sajjad Moshen wrote: > I've been trying to get my decoder to read my UDP feed but for some odd > reason it doesn't like when I add the ?pkt_size=1316 option to my unicast > stream. ffmpeg is your encoder and some other program is your decoder, right? And that other program doesn't cope with '?pkt_size=1316' in the URL? > question is if there is another way to insert the MTU override setting in > the CLI without placing it right at the end of the stream? > > ffmpeg -re -i rtmp://x -vcodec mpeg2video -r 25 -flags cgop+ilme > -sc_threshold 1000000000 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v > 0.2M -muxrate 2.5M -acodec mp2 -ac 2 -b:a 224k -f mpegts udp:// > 192.168.0.4:1234?pkt_size=1316 Your decoder doesn't need the "?pkt_size=1316" part of the URL. Just omit that on its side. Moritz From sajjad.moshen at gmail.com Mon Oct 13 10:24:10 2014 From: sajjad.moshen at gmail.com (Sajjad Moshen) Date: Mon, 13 Oct 2014 09:24:10 +0100 Subject: [FFmpeg-user] UDP Packet size option In-Reply-To: <20141013081820.GC5339@sunshine.barsnick.net> References: <20141013081820.GC5339@sunshine.barsnick.net> Message-ID: Thanks for the suggestions, as far as the flush packets command is concerned I will try that today. But in respect to omitting the command from decoder side, this isn't possible as the decoder is set up to receive streams directed to its IP. And as such, I cannot configure it to receive the stream without the pkt_size option. The problem is that it simply doesn't recognize the stream with the added option. It's an Ericsson RX8200 in case anyone is wondering. On 13 Oct 2014 09:18, "Moritz Barsnick" wrote: > Hi Sajjad, > > On Sun, Oct 12, 2014 at 03:34:32 +0100, Sajjad Moshen wrote: > > I've been trying to get my decoder to read my UDP feed but for some odd > > reason it doesn't like when I add the ?pkt_size=1316 option to my unicast > > stream. > > ffmpeg is your encoder and some other program is your decoder, right? > And that other program doesn't cope with '?pkt_size=1316' in the URL? > > > question is if there is another way to insert the MTU override setting in > > the CLI without placing it right at the end of the stream? > > > > ffmpeg -re -i rtmp://x -vcodec mpeg2video -r 25 -flags cgop+ilme > > -sc_threshold 1000000000 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v > > 0.2M -muxrate 2.5M -acodec mp2 -ac 2 -b:a 224k -f mpegts udp:// > > 192.168.0.4:1234?pkt_size=1316 > > Your decoder doesn't need the "?pkt_size=1316" part of the URL. Just > omit that on its side. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From barsnick at gmx.net Mon Oct 13 10:33:11 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 13 Oct 2014 10:33:11 +0200 Subject: [FFmpeg-user] ffplay not found In-Reply-To: References: <5437B5E4.5090609@ucweb.com> <5437BE79.4030603@thelounge.net> <20141010113627.GC5128@sunshine.barsnick.net> Message-ID: <20141013083311.GD5339@sunshine.barsnick.net> On Sat, Oct 11, 2014 at 07:01:35 +0000, Carl Eugen Hoyos wrote: > Concerning "--enable-ffplay": I just like to add that > this should not be part of any sane configure line, it > does NOT do what most people expect, ffplay is built > if libsdl-devel is installed. BTW, this is somewhat different from what I expect from my experience with autoconf based configure scripts. Note that this is possibly a matter of taste, and that autoconf based scripts may differ in their behavior as well. This is what seems logical to me: - Say nothing about a feature. The configure script decides what is default, and what to do if something can't be fulfilled (like to omit a feature). - --disable-feature: Whatever the default is, don't include this, and don't error out if its (unique) dependencies aren't fulfilled. - --enable-feature: Whatever the default is, try to include this, and error out if it can't be fulfilled. ffmpeg's configure behaves differently. "--enable-ffplay" will just confirm the default behavior, but still silently not build ffplay. Well, not so silently, as the missing of SDL is reported (and probably the resulting missing of ffplay). But this gets lost in all the messages, and configure still creates its Makefile(s). The same with enabling e.g. the filters that require font libraries. I believe if you figure out that you're missing drawtext, then rebuild with "--enable-filter=drawtext", you still won't get it if you're missing freetype-devel. I realize this is or may be a design decision regarding configure. I just want to point it out, as it seems a bit confusing to me. I have explicitly tripped over both of these issues. ;-) Cheers, Moritz From karl.kiniger at med.ge.com Mon Oct 13 15:01:06 2014 From: karl.kiniger at med.ge.com (Karl Kiniger) Date: Mon, 13 Oct 2014 15:01:06 +0200 Subject: [FFmpeg-user] hue filter set brightness broken? Message-ID: <20141013130106.GA6080@kipc2.localdomain> Dear list, -vf hue=b=-10 does not result in black images depending on colors. Is this expected behavior? I tried to use the hue filter in combo with sendcmd to simulate fade in and out but failed miserably. #!/bin/bash a2z=($(echo {a..z})) for i in $(seq -10 10);do t=${a2z[$i+10]} fn=$(printf "huetest-%c-%d.png" $t $i) ffmpeg -f lavfi -i testsrc -an -vf hue=b=$i -frames 1 -y $fn done Karl From garbytrash at gmail.com Mon Oct 13 16:48:17 2014 From: garbytrash at gmail.com (Zenny) Date: Mon, 13 Oct 2014 16:48:17 +0200 Subject: [FFmpeg-user] static background removal from videos Message-ID: Hi: I have been trying to remove the static background (both mp4 and png backgrounds alternatingly) from the video, but without success. I used in a single line: % ffmpeg -report -y -i "FORGROUND.mp4/png" -i "BACKGROUND.mp4" -filter_complex "[1:v]format=yuva444p,lut=c3=128[video2withAlpha],[0:v][video2withAlpha]blend=all_mode=difference[out]" -map "[out]" "OUTPUT.mp4" where: 1. BACKGROUND.mp4/png is the video/static picture without any moving objects respectively. 2. FOREGROUND.mp4 is the moving object in front of the BACKGROUND as in 1 above 3. OUTPUT.mp4 is the result file. Appreciate any input from expert ffmpegers here to make this happen. Thanks! From cehoyos at ag.or.at Mon Oct 13 18:56:40 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 Oct 2014 16:56:40 +0000 (UTC) Subject: [FFmpeg-user] ffplay not found References: <5437B5E4.5090609@ucweb.com> <5437BE79.4030603@thelounge.net> <20141010113627.GC5128@sunshine.barsnick.net> <20141013083311.GD5339@sunshine.barsnick.net> Message-ID: Moritz Barsnick gmx.net> writes: > On Sat, Oct 11, 2014 at 07:01:35 +0000, Carl Eugen Hoyos wrote: > > Concerning "--enable-ffplay": I just like to add that > > this should not be part of any sane configure line, it > > does NOT do what most people expect, ffplay is built > > if libsdl-devel is installed. > > BTW, this is somewhat different from what I expect from > my experience with autoconf based configure scripts. Yes, that's what I tried to explain: FFmpeg's configure script is not autoconf-based. The important thing is that --enable-ffplay is mostly a debug option and should not be part of any user's configure line. Carl Eugen From david at davidfavor.com Mon Oct 13 20:58:12 2014 From: david at davidfavor.com (David Favor) Date: Mon, 13 Oct 2014 13:58:12 -0500 Subject: [FFmpeg-user] ffmpeg encoding In-Reply-To: References: <9CB99A2A-E5E8-4EB8-9F66-AB795E20893C@planetife.us> Message-ID: <543C20C4.4060703@davidfavor.com> Maziar Mehrabi wrote: > Hi, > > Could you be more specific? Why it didn't work? Can you provide us with > some error log, or the output of ffmpeg? > > Thank you, > Maziar > > > -- > H?lsningar, > Maziar Mehrabi > > On Wed, Sep 24, 2014 at 7:43 PM, Maria De Los Angeles Quintero < > maquintero at planetife.us> wrote: > >> Hi!! >> >> I need to encode an specific mp4, i have been trying with the ffmpeg, but >> i couldnt make it, if you could help me with these would be great. >> The encoding requirements are these: >> >> Mpeg4-h.264 >> >> Main profile Level 3.0 >> >> >> Set CABAC for Main profile >> >> Constant bit rate encoding >> >> 1.5-2.0 Mb?s resolution >> >> Closed GOP must be set >> >> GOP size shall be equal to 1/2 second, with the following exceptions: >> >> -Utilizing GOP size less than 1/2 second is acceptable and shall be >> used for scene change detection. >> >> Every I-frame must be in IDR- IDR Frecuency shall be set to 1 >> >> Streaming format is required e.g SPS and other secuence headers shall be >> repeated throughout the stream to facilitate fast decoder synchronization >> during random acces. >> >> B-Frames shall be used when main profile is chosen >> >> No referenced B-frames >> >> Number of B-Frames shall be set to 2 or 3 >> >> Number of referenced frames shall be set to 2 >> >> Encode without wight prediction >> >> Number of slices shall be set to 1,2 or 4 >> >> Deblocking filter shall be enable >> >> 720x480 NTSC >> >> Thanks you so much!!! Provide your full command + likely someone can help. From doenerbudenchef at yahoo.de Tue Oct 14 11:03:27 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Tue, 14 Oct 2014 02:03:27 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <543B81C5.8090503@yahoo.com> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> Message-ID: <1413277407675-4667763.post@n4.nabble.com> On 10/10/14 23:46, Alex wrote: > Thats absolutely clear, but I want to use ffmpeg to solve that issue. > Have you actually tried a later version of ffmbc? Baptiste said the issue would be fixed in the next version... > Alex > [...] Yep, I've tried ffmbc 0.7.1 and it works fine now. But I have to bring the audio back in sync for approx. 80 files. Do you have any suggestions? Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667763.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From doenerbudenchef at yahoo.de Tue Oct 14 11:44:16 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Tue, 14 Oct 2014 02:44:16 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <1413277407675-4667763.post@n4.nabble.com> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> <1413277407675-4667763.post@n4.nabble.com> Message-ID: <1413279856848-4667764.post@n4.nabble.com> Okay, I played a bit around with the atrim Filter, but the manual isn't very helpful here. I've tried the following: C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -map 0:2 -filter_complex "[a:1]atrim=start=0.035" test_new.mxf ffmpeg version N-66809-g20df026 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 11 2014 23:42:02 with gcc 4.9.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-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-zlib libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 4.101 / 56. 4.101 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mxf, from 'test.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000b0000 generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001 company_name : FFmbc product_name : OP1a Muxer product_version : 53.6.0 product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002 modification_date: 2014-03-28 11:58:57 timecode : 00:00:00:00 Duration: 00:03:32.59, start: 0.000000, bitrate: 52515 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s File 'test_new.mxf' already exists. Overwrite ? [y/N] y [mxf @ 00000000003b69c0] there must be exactly one video stream and it must be the first one Output #0, mxf, to 'test_new.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000b0000 generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001 company_name : FFmbc product_name : OP1a Muxer product_version : 53.6.0 product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002 modification_date: 2014-03-28 11:58:57 timecode : 00:00:00:00 encoder : Lavf56.9.100 Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s Metadata: encoder : Lavc56.4.101 pcm_s24le Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc Stream mapping: Stream #0:2 (pcm_s24le) -> atrim atrim -> Stream #0:0 (pcm_s24le) Stream #0:0 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred I guess there is somehing wrong with the channel mapping, but without the fliter_complex the mapping seems to be okay. Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667764.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From barsnick at gmx.net Tue Oct 14 13:59:41 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 14 Oct 2014 13:59:41 +0200 Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <1413279856848-4667764.post@n4.nabble.com> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> <1413277407675-4667763.post@n4.nabble.com> <1413279856848-4667764.post@n4.nabble.com> Message-ID: <20141014115941.GD17055@sunshine.barsnick.net> Hi Alex, > I guess there is somehing wrong with the channel mapping, but without the > fliter_complex the mapping seems to be okay. I think the filter_complex messes up the mapping. Note this mapping from your output: > Stream mapping: > Stream #0:2 (pcm_s24le) -> atrim > atrim -> Stream #0:0 (pcm_s24le) > Stream #0:0 -> #0:1 (copy) and this result: > Output #0, mxf, to 'test_new.mxf': > Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s > Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], and this warning: > [mxf @ 00000000003b69c0] there must be exactly one video stream and it must be the first one I'm sure that's your issue. The filter seems to be messing up the mapping, at least in this automatic case. Instead of > C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -map 0:2 -filter_complex "[a:1]atrim=start=0.035" test_new.mxf you probably need something like ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -filter_complex "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" test_new.mxf (Untested) Note that I'm trying to explicitly map the filter output to a particular stream, avoiding automatic mapping. You may have to play around a bit more with the map options. Is this a bug, BTW? Documentation on "-map" states: > The first -map option on the command line specifies the source for > output stream 0, the second -map option specifies the source for > output stream 1, etc. Digging further, documentation of "-filter_complex" clarifies: > Output link labels are referred to with ?-map?. Unlabeled outputs > are added to the first output file. So the first documentation section is somewhat unclear, as it is "disturbed" by the second behavior. (And in the second section: "first output file" -> "first output stream", right?) Moritz From krueger at lesspain.de Tue Oct 14 14:03:45 2014 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 14 Oct 2014 14:03:45 +0200 Subject: [FFmpeg-user] Start time/duration question when transcoding to WMV/WMA Message-ID: I observed that start times and durations changed when transcoding whatever input (tried a few) to wmv/wma in a wmv container. Here's a sample command line with output: ffmpeg -f lavfi -i testsrc=s=640x480:d=1 -f lavfi -i sine=frequency=1000:sample_rate=48000:duration=1 -c:v wmv2 -c:a wmav2 ~/tmp/out.wmv ffmpeg version N-66701-g33db995 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 8 2014 21:12:12 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) configuration: --enable-gpl --enable-libx264 --extra-cflags=-I/Users/krueger/src/x264 --extra-ldflags=-L/Users/krueger/src/x264 libavutil 54. 9.100 / 54. 9.100 libavcodec 56. 3.101 / 56. 3.101 libavformat 56. 7.104 / 56. 7.104 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Input #0, lavfi, from 'testsrc=s=640x480:d=1': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Input #1, lavfi, from 'sine=frequency=1000:sample_rate=48000:duration=1': Duration: N/A, start: 0.000000, bitrate: 768 kb/s Stream #1:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Output #0, asf, to '/Users/krueger/tmp/out.wmv': Metadata: WM/EncodingSettings: Lavf56.7.104 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc56.3.101 wmv2 Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, mono, fltp, 128 kb/s Metadata: encoder : Lavc56.3.101 wmav2 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> wmv2 (native)) Stream #1:0 -> #0:1 (pcm_s16le (native) -> wmav2 (native)) Press [q] to stop, [?] for help frame= 25 fps=0.0 q=1.7 Lsize= 107kB time=00:00:01.00 bitrate= 877.6kbits/s video:85kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 6.368599% This should result in a file of one second length but this is what ffprobe tells me: see ffprobe output: ffprobe -show_streams -i ~/tmp/out.wmv ffprobe version N-66701-g33db995 Copyright (c) 2007-2014 the FFmpeg developers built on Oct 8 2014 21:12:12 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) configuration: --enable-gpl --enable-libx264 --extra-cflags=-I/Users/krueger/src/x264 --extra-ldflags=-L/Users/krueger/src/x264 libavutil 54. 9.100 / 54. 9.100 libavcodec 56. 3.101 / 56. 3.101 libavformat 56. 7.104 / 56. 7.104 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Input #0, asf, from '/Users/krueger/tmp/out.wmv': Metadata: encoder : Lavf56.7.104 Duration: 00:00:01.09, start: 0.000000, bitrate: 808 kb/s Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 640x480, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 1 channels, fltp, 128 kb/s [STREAM] index=0 codec_name=wmv2 codec_long_name=Windows Media Video 8 profile=unknown codec_type=video codec_time_base=1/1000 codec_tag_string=WMV2 codec_tag=0x32564d57 width=640 height=480 has_b_frames=0 sample_aspect_ratio=1:1 display_aspect_ratio=4:3 pix_fmt=yuv420p level=-99 color_range=N/A color_space=unknown timecode=N/A id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/1000 start_pts=43 start_time=0.043000 ^^^^^^^^^^^^^^^^^^^^^ duration_ts=1043 duration=1.043000 ^^^^^^^^^^^^^^^^^^^ bit_rate=N/A max_bit_rate=N/A bits_per_raw_sample=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] [STREAM] index=1 codec_name=wmav2 codec_long_name=Windows Media Audio 2 profile=unknown codec_type=audio codec_time_base=1/48000 codec_tag_string=a[1][0][0] codec_tag=0x0161 sample_fmt=fltp sample_rate=48000 channels=1 channel_layout=unknown bits_per_sample=0 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/1000 start_pts=0 start_time=0.000000 duration_ts=1043 duration=1.043000 ^^^^^^^^^^^^^^^^^^^^ bit_rate=128000 max_bit_rate=N/A bits_per_raw_sample=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] Is this due to encoder delay of WMA (2064 samples?) and is OK in principle? From yasar.sahinoz at hotmail.com Tue Oct 14 14:07:54 2014 From: yasar.sahinoz at hotmail.com (Celal Yasar Sahinoz) Date: Tue, 14 Oct 2014 15:07:54 +0300 Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <20141014115941.GD17055@sunshine.barsnick.net> References: <1412974802235-4667730.post@n4.nabble.com>, , <1412981198461-4667732.post@n4.nabble.com>, <543B81C5.8090503@yahoo.com>, <1413277407675-4667763.post@n4.nabble.com>, <1413279856848-4667764.post@n4.nabble.com>, <20141014115941.GD17055@sunshine.barsnick.net> Message-ID: Dear All, Just joined the mailing list. Looking for a video player in a browser, that will play: mp4 video codec, aac audio codec, and floor audio, en, fr, ger, tr translations. Each audio channel will be selected in the browser in most platforms. I have managed to: ffmpeg -i 00.mp4 -i 01.mp4 -i 02.mp4 -i 03.mp4 -map 0:0 -map 0:1 -map 1:0 -map 2:0 -map 3:0 -acodec copy -vcodec copy output.mp4 where output.mp4 is the video file with 4 audio stream muxed together. Now how can i play it in a browser. Regards, Celal Yasar Sahinoz > Date: Tue, 14 Oct 2014 13:59:41 +0200 > From: barsnick at gmx.net > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Right audio channel shifted > > Hi Alex, > > > I guess there is somehing wrong with the channel mapping, but without the > > fliter_complex the mapping seems to be okay. > > I think the filter_complex messes up the mapping. Note this mapping > from your output: > > Stream mapping: > > Stream #0:2 (pcm_s24le) -> atrim > > atrim -> Stream #0:0 (pcm_s24le) > > Stream #0:0 -> #0:1 (copy) > > and this result: > > Output #0, mxf, to 'test_new.mxf': > > Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s > > Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], > > and this warning: > > [mxf @ 00000000003b69c0] there must be exactly one video stream and it must be the first one > > I'm sure that's your issue. The filter seems to be messing up the > mapping, at least in this automatic case. > > Instead of > > > C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -map 0:2 -filter_complex "[a:1]atrim=start=0.035" test_new.mxf > > you probably need something like > > ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -filter_complex "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" test_new.mxf > > (Untested) Note that I'm trying to explicitly map the filter output to > a particular stream, avoiding automatic mapping. You may have to play > around a bit more with the map options. > > Is this a bug, BTW? Documentation on "-map" states: > > The first -map option on the command line specifies the source for > > output stream 0, the second -map option specifies the source for > > output stream 1, etc. > > Digging further, documentation of "-filter_complex" clarifies: > > Output link labels are referred to with ?-map?. Unlabeled outputs > > are added to the first output file. > > So the first documentation section is somewhat unclear, as it is > "disturbed" by the second behavior. (And in the second section: "first > output file" -> "first output stream", right?) > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From doenerbudenchef at yahoo.de Tue Oct 14 15:35:07 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Tue, 14 Oct 2014 06:35:07 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <20141014115941.GD17055@sunshine.barsnick.net> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> <1413277407675-4667763.post@n4.nabble.com> <1413279856848-4667764.post@n4.nabble.com> <20141014115941.GD17055@sunshine.barsnick.net> Message-ID: <1413293707699-4667768.post@n4.nabble.com> Moritz Barsnick wrote > Hi Alex, > >> I guess there is somehing wrong with the channel mapping, but without the >> fliter_complex the mapping seems to be okay. > > I think the filter_complex messes up the mapping. Note this mapping > from your output: >> Stream mapping: >> Stream #0:2 (pcm_s24le) -> atrim >> atrim -> Stream #0:0 (pcm_s24le) >> Stream #0:0 -> #0:1 (copy) > > and this result: >> Output #0, mxf, to 'test_new.mxf': >> Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 >> kb/s >> Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR >> 16:9], > > and this warning: >> [mxf @ 00000000003b69c0] there must be exactly one video stream and it >> must be the first one > > I'm sure that's your issue. The filter seems to be messing up the > mapping, at least in this automatic case. > > Instead of > >> C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 >> -map 0:2 -filter_complex "[a:1]atrim=start=0.035" test_new.mxf > > you probably need something like > > ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 > -filter_complex "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" > test_new.mxf > > (Untested) Note that I'm trying to explicitly map the filter output to > a particular stream, avoiding automatic mapping. You may have to play > around a bit more with the map options. > > Is this a bug, BTW? Documentation on "-map" states: >> The first -map option on the command line specifies the source for >> output stream 0, the second -map option specifies the source for >> output stream 1, etc. > > Digging further, documentation of "-filter_complex" clarifies: >> Output link labels are referred to with ?-map?. Unlabeled outputs >> are added to the first output file. > > So the first documentation section is somewhat unclear, as it is > "disturbed" by the second behavior. (And in the second section: "first > output file" -> "first output stream", right?) > > Moritz Hi Moritz, thanks for your help, works great! The mapping thing is still a bit confusing to me. :) One last problem: I would like to set the sample format of the second stream back to s32. I tried the follwoing, but it won't work: ffmpeg -i test.mxf -vcodec copy -map 0:v -map 0:1 -sample_fmt s32 -c:a:0 copy -c:a:1 pcm_s24le -sample_fmt:a:1 s32 -filter_complex "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" test_new.mxf Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667768.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From barsnick at gmx.net Tue Oct 14 16:21:11 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 14 Oct 2014 16:21:11 +0200 Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <1413293707699-4667768.post@n4.nabble.com> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> <1413277407675-4667763.post@n4.nabble.com> <1413279856848-4667764.post@n4.nabble.com> <20141014115941.GD17055@sunshine.barsnick.net> <1413293707699-4667768.post@n4.nabble.com> Message-ID: <20141014142111.GE17055@sunshine.barsnick.net> On Tue, Oct 14, 2014 at 06:35:07 -0700, Alex wrote: > thanks for your help, works great! The mapping thing is still a bit > confusing to me. :) :-) > One last problem: I would like to set the sample format of the second stream > back to s32. I tried the follwoing, but it won't work: In this case, since you didn't include the output, I was quite lost. I use "-loglevel debug" to inspect the filter chain, by the way. > ffmpeg -i test.mxf -vcodec copy -map 0:v -map 0:1 -sample_fmt s32 -c:a:0 > copy -c:a:1 pcm_s24le -sample_fmt:a:1 s32 -filter_complex > "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" test_new.mxf Using one artificial audio source, I was able to experiment a bit. It appears that it's only the default output of pcm_s16le that is incorrectly selected for you, your choice of -c:a pcm_s24le is fine, and atrim seems to handle s32 fine. In other words: "-c:a:0 copy -c:a:1 pcm_s24le" should work fine in your case, you can omit "-sample_fmt:a:1 s32". Furthermore, I was able to make "-c:a:1 pcm_s24le -sample_fmt:a:1 s32" work. Perhaps your first "-sample_fmt s32" is incorrect (apart from being unneeded). I can't even tell what it applies to. As I said: No output messages, no idea. :-) Moritz From fcassia at gmail.com Tue Oct 14 17:07:16 2014 From: fcassia at gmail.com (Fernando Cassia) Date: Tue, 14 Oct 2014 12:07:16 -0300 Subject: [FFmpeg-user] Any ffmpeg plugin for image stabilization that handles walking tilt? Message-ID: Hi there. I have begun playing around with using a wearable camera that just clips into your shirt, like w mic clip. It records MJPEG at 720x480 which is enough for my uses, recording daily walks around the city. But there's one issue I had not taken into account: the body (actually torso) where the cam is attached to moves a LOT while walking, you might not perceive it since your neck/head does a lot of stabilization on its own, coupled with any built-in image stabilization done by the brain (great firmware!). I was shocked when I first saw the recording of me walking very fast, it looked as if was recoded from a helmet cam by Godzilla rampaging throughout the city. The problem is not only the shacking but the TILT. The body tilts a bit with each step. I have read here about the "deshake" option in FFMPEG http://adaptivesamples.com/2014/05/30/camera-stabilisation-with-ffmpeg/ But I'm curious as to what algorithm it uses, or if it is tweakable at all to compensate for side-tilt while walking in addition to vertical shake. Someone on the above post talks about the vidstabdetect and vidstabtransform filters, but without giving further detail on why those are better. Looking around, I came across this IEEE research paper (sorry,I could only read the abstract, don?t have access to it)... "A physiological camera shake model for image stabilization systems" That seems to address specifically the complexities of stabilization needed due to walking. ? http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6127172&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D6127172 " It successfully reproduces subjective observations made about the shape and time evolution of hand tremor-induced motion blur patterns. Our model is compared to the simpler random-walk and straight-line-walk models as well as previously reported experiments. It paves the way towards accurate deblurring and optimal image stabilization algorithms by providing realistic motion blur point spread function matrices. To our best knowledge it is the first model in which both spectral and statistical characteristics fit several ground truths from literature." In short: I?d like to know if there?s any FOSS filters -both for FFMPEG and third party ones for ie Virtualdub or Avidemux, that represents the state-of-the-art in image stabilization post-processing wrt to walking recordings... Thanks in advance! FC PS: I know what some of you will say: Just wear the camera above your head, not below your neck. Well, that's not an option for me. PS2: I?m crossposting on the dev list in case any devs are likely more aware then users... -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante ?pocas de Enga?o Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell From doenerbudenchef at yahoo.de Tue Oct 14 17:10:41 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Tue, 14 Oct 2014 08:10:41 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <20141014142111.GE17055@sunshine.barsnick.net> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> <1413277407675-4667763.post@n4.nabble.com> <1413279856848-4667764.post@n4.nabble.com> <20141014115941.GD17055@sunshine.barsnick.net> <1413293707699-4667768.post@n4.nabble.com> <20141014142111.GE17055@sunshine.barsnick.net> Message-ID: <1413299441390-4667771.post@n4.nabble.com> Moritz Barsnick wrote > On Tue, Oct 14, 2014 at 06:35:07 -0700, Alex wrote: >> thanks for your help, works great! The mapping thing is still a bit >> confusing to me. :) > > :-) > >> One last problem: I would like to set the sample format of the second >> stream >> back to s32. I tried the follwoing, but it won't work: > > In this case, since you didn't include the output, I was quite lost. I > use "-loglevel debug" to inspect the filter chain, by the way. > >> ffmpeg -i test.mxf -vcodec copy -map 0:v -map 0:1 -sample_fmt s32 -c:a:0 >> copy -c:a:1 pcm_s24le -sample_fmt:a:1 s32 -filter_complex >> "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" test_new.mxf > > Using one artificial audio source, I was able to experiment a bit. > > It appears that it's only the default output of pcm_s16le that is > incorrectly selected for you, your choice of -c:a pcm_s24le is fine, > and atrim seems to handle s32 fine. > > In other words: "-c:a:0 copy -c:a:1 pcm_s24le" should work fine in your > case, you can omit "-sample_fmt:a:1 s32". Furthermore, I was able to > make "-c:a:1 pcm_s24le -sample_fmt:a:1 s32" work. Perhaps your first > "-sample_fmt s32" is incorrect (apart from being unneeded). I can't > even tell what it applies to. > > As I said: No output messages, no idea. :-) > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks for your time Moritz. You are right, I forgot to remove the first -sample_fmt 32, sorry. I run the command again: C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -map 0:1 -c:a:0 copy -c:a:1 pcm_s24le -sample_fmt:a:1 s32 -filter_complex "[a:1]atrim=start=0.035[ashifted]" -map "[ashifted]" test_new.mxf ffmpeg version N-66809-g20df026 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 11 2014 23:42:02 with gcc 4.9.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-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-zlib libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 4.101 / 56. 4.101 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mxf, from 'test.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000b0000 generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001 company_name : FFmbc product_name : OP1a Muxer product_version : 53.6.0 product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002 modification_date: 2014-03-28 11:58:57 timecode : 00:00:00:00 Duration: 00:03:32.59, start: 0.000000, bitrate: 52515 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s File 'test_new.mxf' already exists. Overwrite ? [y/N] y Output #0, mxf, to 'test_new.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000b0000 generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001 company_name : FFmbc product_name : OP1a Muxer product_version : 53.6.0 product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002 modification_date: 2014-03-28 11:58:57 timecode : 00:00:00:00 encoder : Lavf56.9.100 Stream #0:0: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s Metadata: encoder : Lavc56.4.101 pcm_s24le Stream mapping: Stream #0:2 (pcm_s24le) -> atrim Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) atrim -> Stream #0:2 (pcm_s24le) Press [q] to stop, [?] for help [mxf @ 0000000002b64460] -d10_channelcount requires MXF D-10 and will be ignored Last message repeated 1 times [mxf @ 0000000002b64460] missing frames2kB time=00:03:29.75 bitrate=52557.5kbits/s frame= 5097 fps=516 q=-1.0 Lsize= 1362548kB time=00:03:32.58 bitrate=52505.4kbits/s video:1297530kB audio:59779kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.385942% VLC still said: http://s14.directupload.net/images/141014/r7h73d5b.jpg One other thing: I checked my database again and I have to verify over 300 videos which are possibly affected by this bug. Is there a possibility with ffmpeg to repair those files automatically or at least see if a file is affected. Otherwise I am going to do this job manually via a vectorscope. :) Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667771.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From jshupert at pps-inc.com Tue Oct 14 17:31:52 2014 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 14 Oct 2014 11:31:52 -0400 Subject: [FFmpeg-user] Any ffmpeg plugin for image stabilization that handles walking tilt? In-Reply-To: References: Message-ID: <543D41E8.3030102@pps-inc.com> friend Fernando I do not have a direct reply to your questions. But rather a comment - I have recently been reading about how the "softwear" of human perception that allows us to all "deal with" the shaking of our vision and how we smooth that out. and and how that is defeated when we have objective video in the raster. --- fascinating stuff how we throw away and filter our perception. best of luck with your deshake. maybe a pocket protector-steady cam device would be a solution ... ;) for fun http://www.journalofvision.org/content/13/13/20.full From nichot20 at yahoo.com Tue Oct 14 17:35:24 2014 From: nichot20 at yahoo.com (tim nicholson) Date: Tue, 14 Oct 2014 16:35:24 +0100 Subject: [FFmpeg-user] WAS Right audio channel shifted In-Reply-To: References: <1412974802235-4667730.post@n4.nabble.com>, , <1412981198461-4667732.post@n4.nabble.com>, <543B81C5.8090503@yahoo.com>, <1413277407675-4667763.post@n4.nabble.com>, <1413279856848-4667764.post@n4.nabble.com>, <20141014115941.GD17055@sunshine.barsnick.net> Message-ID: <543D42BC.3020803@yahoo.com> On 14/10/14 13:07, Celal Yasar Sahinoz wrote: > Dear All, > Just joined the mailing list. Then please take a moment to check on the ml etiquette. Specifically please do not:- 1/. top post 2/. Hijack existing threads In order to avoid further pollution of the existing thread please do *not* reply to this message, but submit a new message with your original request again. > Looking for a video player in a browser, that will play: > mp4 video codec, aac audio codec, and floor audio, en, fr, ger, tr translations. > Each audio channel will be selected in the browser in most platforms. > I have managed to: > ffmpeg -i 00.mp4 -i 01.mp4 -i 02.mp4 -i 03.mp4 -map 0:0 -map 0:1 -map 1:0 -map 2:0 -map 3:0 -acodec copy -vcodec copy output.mp4 > where output.mp4 is the video file with 4 audio stream muxed together. Now how can i play it in a browser. > Regards, > Celal Yasar Sahinoz > >> Date: Tue, 14 Oct 2014 13:59:41 +0200 >> From: barsnick at gmx.net >> To: ffmpeg-user at ffmpeg.org >> Subject: Re: [FFmpeg-user] Right audio channel shifted >> >> Hi Alex, >> [.... hi jacked thread....] -- Tim. Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 From barsnick at gmx.net Tue Oct 14 18:02:10 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 14 Oct 2014 18:02:10 +0200 Subject: [FFmpeg-user] Any ffmpeg plugin for image stabilization that handles walking tilt? In-Reply-To: References: Message-ID: <20141014160210.GF17055@sunshine.barsnick.net> On Tue, Oct 14, 2014 at 12:07:16 -0300, Fernando Cassia wrote: > Someone on the above post talks about the vidstabdetect and > vidstabtransform filters, but without giving further detail on why > those are better. I think I have read something, but can't recall where. That said, have you looked at the examples? http://public.hronopik.de/vid.stab/features.php?lang=en Though thay may not specifically involve your combination of vertical and horizontal tilting, I do find them quite convincing. (I only have a little bit of experience with less wiggled input though.) How about just giving it a try? Moritz From voipcallnet at gmail.com Tue Oct 14 01:23:57 2014 From: voipcallnet at gmail.com (LD2K.com Litecoin Mining Pool) Date: Mon, 13 Oct 2014 16:23:57 -0700 Subject: [FFmpeg-user] FFmpeg hangs very often Message-ID: FFmpeg hangs very often, even if i trying output to a local file output.flv ffmpeg/ffmpeg -i http://21.12.32.23:8042/9275617894-ru-perviy-hd -preset fast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -b:v 1900k -maxrate 2000k -bufsize 4000k -g 60 -f flv rtmp://wowza/live/11111 ffmpeg version 2.4.2- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers built on Oct 9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11) configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8 libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! [h264 @ 0x2d9fba0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x2d9fba0] decode_slice_header error [h264 @ 0x2d9fba0] no frame! Input #0, mpegts, from ' http://21.12.32.23:8042/9275617894-ru-perviy-hd': Duration: N/A, start: 66740.830422, bitrate: 132 kb/s Program 1 Stream #0:0[0x4a](rus): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 132 kb/s Stream #0:1[0x4b]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc [libx264 @ 0x2dcace0] using SAR=1/1 [libx264 @ 0x2dcace0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x2dcace0] profile High, level 4.0 [libx264 @ 0x2dcace0] 264 - core 142 r50 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=1900 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2000 vbv_bufsize=4000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'rtmp://wowza/live/11111': Metadata: encoder : Lavf56.4.101 Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1900 kb/s, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream #0:1(rus): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 96 kb/s Metadata: encoder : Lavc56.1.100 aac Stream mapping: Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [mpegts @ 0x2d99aa0] PES packet size mismatchme=00:00:10.66 bitrate=1485.6kbits/s [aac @ 0x2dab320] TYPE_FIL: Input buffer exhausted before END element found Error while decoding stream #0:0: Invalid data found when processing input [mpegts @ 0x2d99aa0] PES packet size mismatch [aac @ 0x2dab320] Number of bands (29) exceeds limit (28). Error while decoding stream #0:0: Invalid data found when processing input [h264 @ 0x3659420] corrupted macroblock 64 38 (total_coeff=16)trate=1491.3kbits/s [h264 @ 0x3659420] error while decoding MB 64 38 [h264 @ 0x3659420] concealing 3585 DC, 3585 AC, 3585 MV errors in I frame [mpegts @ 0x2d99aa0] PES packet size mismatchme=00:00:30.53 bitrate=1780.3kbits/s [h264 @ 0x3531500] Cannot use next picture in error concealment [h264 @ 0x3531500] concealing 3314 DC, 3314 AC, 3314 MV errors in P frame [flv @ 0x2dcd060] Failed to update header with correct duration.ate=1789.2kbits/s [flv @ 0x2dcd060] Failed to update header with correct filesize. frame= 757 fps= 14 q=-1.0 Lsize= 7141kB time=00:00:30.70 bitrate=1905.4kbits/s video:6743kB audio:360kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.522933% [libx264 @ 0x2dcace0] frame I:18 Avg QP:27.18 size: 68232 [libx264 @ 0x2dcace0] frame P:413 Avg QP:30.18 size: 10996 [libx264 @ 0x2dcace0] frame B:326 Avg QP:30.78 size: 3482 [libx264 @ 0x2dcace0] consecutive B-frames: 34.3% 19.6% 15.5% 30.6% [libx264 @ 0x2dcace0] mb I I16..4: 33.4% 53.8% 12.8% [libx264 @ 0x2dcace0] mb P I16..4: 4.6% 5.8% 0.1% P16..4: 33.3% 2.7% 1.6% 0.0% 0.0% skip:51.8% [libx264 @ 0x2dcace0] mb B I16..4: 1.0% 0.4% 0.0% B16..8: 14.3% 0.7% 0.0% direct: 8.3% skip:75.3% L0:47.0% L1:51.2% BI: 1.8% [libx264 @ 0x2dcace0] 8x8 transform intra:53.1% inter:83.3% [libx264 @ 0x2dcace0] coded y,uvDC,uvAC intra: 19.8% 55.0% 7.8% inter: 4.0% 15.4% 0.1% [libx264 @ 0x2dcace0] i16 v,h,dc,p: 46% 35% 9% 9% [libx264 @ 0x2dcace0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 14% 57% 2% 2% 2% 2% 2% 2% [libx264 @ 0x2dcace0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 25% 11% 5% 6% 6% 6% 6% 6% [libx264 @ 0x2dcace0] i8c dc,h,v,p: 47% 23% 27% 4% [libx264 @ 0x2dcace0] Weighted P-Frames: Y:1.5% UV:1.5% [libx264 @ 0x2dcace0] ref P L0: 76.9% 23.1% [libx264 @ 0x2dcace0] ref B L0: 82.8% 17.2% [libx264 @ 0x2dcace0] ref B L1: 93.8% 6.2% [libx264 @ 0x2dcace0] kb/s:1819.37 From 15175227908 at 163.com Tue Oct 14 05:14:12 2014 From: 15175227908 at 163.com (=?GBK?B?vfLI8A==?=) Date: Tue, 14 Oct 2014 11:14:12 +0800 (CST) Subject: [FFmpeg-user] configuring the ffmpeg failed,need a hand. Message-ID: <1cb25436.1e4d4.1490ca61b1d.Coremail.15175227908@163.com> Dear Sir or Madam: I'm a programmer from Shanghai of China and sorry to disturb you! I'm working with the monitor and using the ffmepg to make a player but it failed when I was configuring the ffmpeg with a note:ERROR: libx264 not found . I have done such work before the upper working including downloading the sdl1.2,x264,libvpx and configuring them without error.My final destination is that using the ffplay to play a video file on the prompt line.I am very upset when I have tried many approaches and hope you can give a favor which I am very very grateful. I am looking forward your replay and thank you! Best wishes! From tempn at mi.rr.com Tue Oct 14 18:21:22 2014 From: tempn at mi.rr.com (compn) Date: Tue, 14 Oct 2014 12:21:22 -0400 Subject: [FFmpeg-user] [FFmpeg-devel] Any ffmpeg plugin for image stabilization that handles walking tilt? In-Reply-To: References: Message-ID: <20141014122122.00002c16@mi.rr.com> On Tue, 14 Oct 2014 12:07:16 -0300 Fernando Cassia wrote: > In short: I?d like to know if there?s any FOSS filters -both for > FFMPEG and third party ones for ie Virtualdub or Avidemux, that > represents the state-of-the-art in image stabilization > post-processing wrt to walking recordings... avisynth and vdub both have open source deshake/vstab filters and plugins. google diy steadicam many you can make for $15-$30 http://14dollarstabilizer.org/ the human walk image stabilizing filter you want would probably take 1-2 years to develop from scratch. >MJPEG at 720x480 seriously? is this 2003? image stabilizing software will work better on higher resolution video and better codecs. lossless is best, but h264 will work better than mjpeg too. and you'd want higher fps to get more image data. otherwise it will be all blur. ok now that i'm done insulting your pathetic camera, how about sharing with us a sample video (uncompressed original mjpeg file) of your walking so we can see and/or fix our deshake algorithms? -compn From barsnick at gmx.net Tue Oct 14 18:33:59 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 14 Oct 2014 18:33:59 +0200 Subject: [FFmpeg-user] configuring the ffmpeg failed,need a hand. In-Reply-To: <1cb25436.1e4d4.1490ca61b1d.Coremail.15175227908@163.com> References: <1cb25436.1e4d4.1490ca61b1d.Coremail.15175227908@163.com> Message-ID: <20141014163359.GH17055@sunshine.barsnick.net> On Tue, Oct 14, 2014 at 11:14:12 +0800, ?? wrote: > I have done such work before the upper working including downloading > the sdl1.2,x264,libvpx and configuring them without error. Please show us your ./configure command line and attach the resulting config.log file. You may also want to show us the ./configure line you used for libx264. Moritz From liangry at ucweb.com Wed Oct 15 08:54:17 2014 From: liangry at ucweb.com (Ruoyu) Date: Wed, 15 Oct 2014 14:54:17 +0800 Subject: [FFmpeg-user] configuring the ffmpeg failed,need a hand. In-Reply-To: <1cb25436.1e4d4.1490ca61b1d.Coremail.15175227908@163.com> References: <1cb25436.1e4d4.1490ca61b1d.Coremail.15175227908@163.com> Message-ID: <543E1A19.7020500@ucweb.com> If you are using Ubuntu, try sudo apt-get install libx264-dev I am a new user to ffmpeg too. The senior user kindly gave me a useful link about compilation. https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#GettheDependencies On 2014?10?14? 11:14, ?? wrote: > Dear Sir or Madam: > I'm a programmer from Shanghai of China and sorry to disturb you! > I'm working with the monitor and using the ffmepg to make a player but it failed when I was configuring the ffmpeg with a note:ERROR: libx264 not found . > I have done such work before the upper working including downloading the sdl1.2,x264,libvpx and configuring them without error.My final destination is that using > the ffplay to play a video file on the prompt line.I am very upset when I have tried many approaches and hope you can give a favor which I am very very grateful. > I am looking forward your replay and thank you! > Best wishes! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From garbytrash at gmail.com Wed Oct 15 10:55:40 2014 From: garbytrash at gmail.com (Zenny) Date: Wed, 15 Oct 2014 10:55:40 +0200 Subject: [FFmpeg-user] How to create trapezoid videos with ffmpeg? Message-ID: Hi: New to ffmpeg. How can one create a trapezoid shaped video as a overlay to the background as seen at http://www.youtube.com/watch?v=_380o5B9MrA (starts at 00:02:25) using ffmpeg command? Thanks! /z From doenerbudenchef at yahoo.de Wed Oct 15 16:58:23 2014 From: doenerbudenchef at yahoo.de (Alex) Date: Wed, 15 Oct 2014 07:58:23 -0700 (PDT) Subject: [FFmpeg-user] Right audio channel shifted In-Reply-To: <1413299441390-4667771.post@n4.nabble.com> References: <1412974802235-4667730.post@n4.nabble.com> <1412981198461-4667732.post@n4.nabble.com> <543B81C5.8090503@yahoo.com> <1413277407675-4667763.post@n4.nabble.com> <1413279856848-4667764.post@n4.nabble.com> <20141014115941.GD17055@sunshine.barsnick.net> <1413293707699-4667768.post@n4.nabble.com> <20141014142111.GE17055@sunshine.barsnick.net> <1413299441390-4667771.post@n4.nabble.com> Message-ID: <1413385103636-4667781.post@n4.nabble.com> Alex wrote > VLC still said: > > http://s14.directupload.net/images/141014/r7h73d5b.jpg > > One other thing: I checked my database again and I have to verify over 300 > videos which are possibly affected by this bug. Is there a possibility > with ffmpeg to repair those files automatically or at least see if a file > is affected. Otherwise I am going to do this job manually via a > vectorscope. :) > > Thanks, > Alex Okay, when I check the trimmed file with ffmpeg it looks okay: C:\>ffmpeg -i test_new.mxf ffmpeg version N-66809-g20df026 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 11 2014 23:42:02 with gcc 4.9.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-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-zlib libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 4.101 / 56. 4.101 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 [mxf @ 0000000000350280] index entry 5095 + TemporalOffset 1 = 5096, which is out of bounds Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mxf, from 'test_new.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000b0000 generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001 company_name : FFmpeg product_name : OP1a Muxer product_version : 56.9.100 product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002 modification_date: 0000-01-01 00:00:00 timecode : 00:00:00:00 Duration: 00:03:32.55, start: 0.000000, bitrate: 52515 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s But: "[mxf @ 0000000000350280] index entry 5095 + TemporalOffset 1 = 5096, which is out of bounds" What does this mean? An why does VLC identifies different channel values? Best, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667781.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hdlmnate at gmail.com Wed Oct 15 18:37:01 2014 From: hdlmnate at gmail.com (hdn8) Date: Wed, 15 Oct 2014 09:37:01 -0700 (PDT) Subject: [FFmpeg-user] Failed to resolve hostname: Ubuntu static builds Message-ID: <1413391021206-4667782.post@n4.nabble.com> Using the binaries from http://johnvansickle.com/ I get an error when using a http input, "failed to resolve hostname": (using ffprobe, but also with ffmpeg): ffprobe version N-41351-g676110e- http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2014 the FFmpeg developers built on Oct 15 2014 01:22:19 with gcc 4.8 (Debian 4.8.3-11) configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8 libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 5.100 / 56. 5.100 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.106 / 5. 1.106 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [tcp @ 0x3f82100] Failed to resolve hostname mirrorblender.top-ix.org: Name or service not known http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov: Input/output error Note I have tried with various http sources/hosts, all same result. Using the builds from ffmpeg.gusari.org it works fine: ffprobe version N-63893-gc69defd Copyright (c) 2007-2014 the FFmpeg developers built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 66.101 / 55. 66.101 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, mov,mp4,m4a,3gp,3g2,mj2, from 'http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2008-05-27 18:32:32 timecode : 00:00:00:00 Duration: 00:09:56.46, start: 0.000000, bitrate: 3342 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 854x480, 2899 kb/s, 24 fps, 24 tbr, 2400 tbn, 4800 tbc (default) Metadata: creation_time : 2008-05-27 18:32:32 handler_name : Apple Alias Data Handler encoder : H.264 Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default) Metadata: creation_time : 2008-05-27 18:32:32 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 437 kb/s (default) Metadata: creation_time : 2008-05-27 18:32:32 handler_name : Apple Alias Data Handler The error from http://johnvansickle.com/ffmpeg/ is the same for the nightly and version 2.4. The gusari.org binaries havent been built since July 16, for now I am using ffprobe from gusari for http sources and for file sources johnvansickle. From where are you getting your (supposedly stable) binaries? Ubuntu x86_64 GNU/Linux -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Failed-to-resolve-hostname-Ubuntu-static-builds-tp4667782.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From battistel at gmail.com Wed Oct 15 21:09:22 2014 From: battistel at gmail.com (Massimo Battistel) Date: Wed, 15 Oct 2014 21:09:22 +0200 Subject: [FFmpeg-user] Slideshow+audio causes huge amount of memory allocated Message-ID: hello, the following command line plays a web radio while showing a picture slide show. ffmpeg -loop 1 -framerate 1/10 -i img%3d.png -i http://webradio:port -vcodec rawvideo -pix_fmt yuv420p -vf fps=fps=25 -acodec pcm_s16le -ac 2 -af aresample=48000:first_pts=0,asetnsamples=n=1920:p=1 -f asf - | ffplay - The longer is the time between pictures, the bigger is the memory allocated (> 1gb). I suppose this is caused by fps filter that every 10 seconds generates 250 frames and the multiplexer, trying to keep proper interleaving, buffers a lot of frames. Can you suggest some alternative that allow me to do this in realtime? (the script should run 24/7) thanks, MB From barsnick at gmx.net Thu Oct 16 10:48:33 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 16 Oct 2014 10:48:33 +0200 Subject: [FFmpeg-user] Failed to resolve hostname: Ubuntu static builds In-Reply-To: <1413391021206-4667782.post@n4.nabble.com> References: <1413391021206-4667782.post@n4.nabble.com> Message-ID: <20141016084833.GB28208@sunshine.barsnick.net> On Wed, Oct 15, 2014 at 09:37:01 -0700, hdn8 wrote: > ffprobe version N-41351-g676110e- http://johnvansickle.com/ffmpeg/ > Copyright (c) 2007-2014 the FFmpeg developers > built on Oct 15 2014 01:22:19 with gcc 4.8 (Debian 4.8.3-11) [...] > [tcp @ 0x3f82100] Failed to resolve hostname mirrorblender.top-ix.org: Name > or service not known > http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov: > Input/output error Works for me with today's nightly: > built on Oct 16 2014 01:22:22 with gcc 4.8 (Debian 4.8.3-11) > From where are you getting your (supposedly stable) binaries? I build them myself, and on some machines just stick to Fedora's/RPMFusions's version as distributed in the repositories. Moritz From garbytrash at gmail.com Thu Oct 16 11:01:34 2014 From: garbytrash at gmail.com (Zenny) Date: Thu, 16 Oct 2014 11:01:34 +0200 Subject: [FFmpeg-user] static background removal from videos In-Reply-To: References: Message-ID: Can anyone guide me where did I go wrong or share their opinions? Thanks! On 10/13/14, Zenny wrote: > Hi: > > I have been trying to remove the static background (both mp4 and png > backgrounds alternatingly) from the video, but without success. > > I used in a single line: > > % ffmpeg -report -y -i "FORGROUND.mp4/png" -i "BACKGROUND.mp4" > -filter_complex > "[1:v]format=yuva444p,lut=c3=128[video2withAlpha],[0:v][video2withAlpha]blend=all_mode=difference[out]" > -map "[out]" "OUTPUT.mp4" > > where: > > 1. BACKGROUND.mp4/png is the video/static picture without any moving > objects respectively. > 2. FOREGROUND.mp4 is the moving object in front of the BACKGROUND as in 1 > above > 3. OUTPUT.mp4 is the result file. > > Appreciate any input from expert ffmpegers here to make this happen. > Thanks! > From hdlmnate at gmail.com Thu Oct 16 12:12:17 2014 From: hdlmnate at gmail.com (hdn8) Date: Thu, 16 Oct 2014 03:12:17 -0700 (PDT) Subject: [FFmpeg-user] Failed to resolve hostname: Ubuntu static builds In-Reply-To: <20141016084833.GB28208@sunshine.barsnick.net> References: <1413391021206-4667782.post@n4.nabble.com> <20141016084833.GB28208@sunshine.barsnick.net> Message-ID: <1413454337989-4667786.post@n4.nabble.com> > Works for me with today's nightly: >> built on Oct 16 2014 01:22:22 with gcc 4.8 (Debian 4.8.3-11) Tried with this build, still doesnt work for me using an http://... input: ... "[tcp @ 0xbf594a0] Failed to resolve hostname" > I build them myself, and on some machines just stick to > Fedora's/RPMFusions's version as distributed in the repositories. I will try using a repo version, in the past I have also compiled manually but for this particular project we were after a simpler process to pass on to the system admins. Thanks for your feedback! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Failed-to-resolve-hostname-Ubuntu-static-builds-tp4667782p4667786.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From inge.becht91 at gmail.com Thu Oct 16 14:00:06 2014 From: inge.becht91 at gmail.com (inge) Date: Thu, 16 Oct 2014 05:00:06 -0700 (PDT) Subject: [FFmpeg-user] Buffer Underflow in case of high resolution mpeg1video encoding Message-ID: <1413460806577-4667787.post@n4.nabble.com> Hello, I've been using ffmpeg to encode raw data using the following command line argument: ffmpeg -r 24 -pix_fmt rgba -s 2560x1440 -f rawvideo -y -i - -c:v mpeg1video -qscale:v 4 -vf vflip filename.mpeg During encoding I get the following output: [mpeg @ 000000000434c3c0] buffer underflow st=0 bufi=234679 size=263328 [mpeg @ 000000000434c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000434c3c0] buffer underflow st=0 bufi=234679 size=263328 [mpeg @ 000000000434c3c0] buffer underflow st=0 bufi=236708 size=263328 [mpeg @ 000000000434c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000434c3c0] buffer underflow st=0 bufi=236708 size=263328 ... I noticed that using a lower resolution, for example 1920x1080, does not give me a buffer underflow. Also using a qscale of 5 instead of 4 prevents it. It's also interesting to note that the output seems to be fine, despite these messages. Can someone help me understand what exactly a buffer underflow means in this context? And/Or how to prevent it from happening? I've searched around for some time now and I'm still none the wiser. Much appreciated! Inge -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Buffer-Underflow-in-case-of-high-resolution-mpeg1video-encoding-tp4667787.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Thu Oct 16 15:18:41 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 16 Oct 2014 13:18:41 +0000 (UTC) Subject: [FFmpeg-user] Buffer Underflow in case of high resolution mpeg1video encoding References: <1413460806577-4667787.post@n4.nabble.com> Message-ID: inge gmail.com> writes: > ffmpeg -r 24 -pix_fmt rgba -s 2560x1440 -f rawvideo -y > -i - -c:v mpeg1video -qscale:v 4 -vf vflip filename.mpeg Please provide the complete, uncut console output whenever asking for support here. Carl Eugen From inge.becht91 at gmail.com Thu Oct 16 16:28:49 2014 From: inge.becht91 at gmail.com (inge) Date: Thu, 16 Oct 2014 07:28:49 -0700 (PDT) Subject: [FFmpeg-user] Buffer Underflow in case of high resolution mpeg1video encoding In-Reply-To: References: <1413460806577-4667787.post@n4.nabble.com> Message-ID: <1413469729059-4667789.post@n4.nabble.com> Sorry about that! Here is the whole output: ffmpeg version N-66352-g33c752b Copyright (c) 2000-2014 the FFmpeg developers built on Sep 19 2014 23:23:41 with gcc 4.9.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-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 54. 7.100 / 54. 7.100 libavcodec 56. 1.101 / 56. 1.101 libavformat 56. 4.102 / 56. 4.102 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Input #0, rawvideo, from 'pipe:': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 2560x1440, -1463812 kb/s, 24 tbr, 24 tbn, 24 tbc Please use -q:a or -q:v, -qscale is ambiguous [mpeg @ 000000000431c3c0] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to 'filename.mpeg': Metadata: encoder : Lavf56.4.102 Stream #0:0: Video: mpeg1video, yuv420p, 2560x1440, q=2-31, 200 kb/s, 24 fps, 90k tbn, 24 tbc Metadata: encoder : Lavc56.1.101 mpeg1video Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg1video (native)) frame= 14 fps=0.0 q=4.0 size= 908kB time=00:00:00.50 bitrate=14876.7kbits/s frame= 26 fps= 25 q=4.0 size= 1626kB time=00:00:01.00 bitrate=13320.2kbits/s frame= 38 fps= 24 q=4.0 size= 2578kB time=00:00:01.50 bitrate=14079.3kbits/s frame= 50 fps= 24 q=4.0 size= 3486kB time=00:00:02.00 bitrate=14278.7kbits/s frame= 62 fps= 24 q=4.0 size= 4322kB time=00:00:02.50 bitrate=14162.3kbits/s frame= 72 fps= 23 q=4.0 size= 4784kB time=00:00:02.91 bitrate=13436.8kbits/s frame= 82 fps= 22 q=4.0 size= 5382kB time=00:00:03.33 bitrate=13226.8kbits/s frame= 91 fps= 22 q=4.0 size= 5932kB time=00:00:03.70 bitrate=13104.3kbits/s frame= 101 fps= 21 q=4.0 size= 6518kB time=00:00:04.12 bitrate=12944.4kbits/s frame= 111 fps= 21 q=4.0 size= 7094kB time=00:00:04.54 bitrate=12795.8kbits/s frame= 121 fps= 21 q=4.0 size= 7552kB time=00:00:04.95 bitrate=12477.2kbits/s frame= 131 fps= 21 q=4.0 size= 8132kB time=00:00:05.37 bitrate=12393.9kbits/s frame= 140 fps= 20 q=4.0 size= 8706kB time=00:00:05.75 bitrate=12403.4kbits/s frame= 150 fps= 20 q=4.0 size= 9286kB time=00:00:06.16 bitrate=12335.8kbits/s frame= 159 fps= 20 q=4.0 size= 9886kB time=00:00:06.54 bitrate=12380.0kbits/s frame= 168 fps= 20 q=4.0 size= 10376kB time=00:00:06.91 bitrate=12289.2kbits/s frame= 177 fps= 20 q=4.0 size= 11312kB time=00:00:07.29 bitrate=12708.7kbits/s frame= 186 fps= 20 q=4.0 size= 12242kB time=00:00:07.66 bitrate=13080.8kbits/s frame= 195 fps= 20 q=4.0 size= 13162kB time=00:00:08.04 bitrate=13408.1kbits/s frame= 205 fps= 19 q=4.0 size= 13720kB time=00:00:08.45 bitrate=13288.0kbits/s frame= 215 fps= 19 q=4.0 size= 14382kB time=00:00:08.87 bitrate=13275.2kbits/s frame= 225 fps= 19 q=4.0 size= 15142kB time=00:00:09.29 bitrate=13349.9kbits/s frame= 234 fps= 19 q=4.0 size= 16022kB time=00:00:09.66 bitrate=13577.8kbits/s frame= 244 fps= 19 q=4.0 size= 16980kB time=00:00:10.08 bitrate=13795.1kbits/s frame= 253 fps= 19 q=4.0 size= 17804kB time=00:00:10.45 bitrate=13945.9kbits/s frame= 262 fps= 19 q=4.0 size= 18866kB time=00:00:10.83 bitrate=14266.2kbits/s frame= 271 fps= 19 q=4.0 size= 19640kB time=00:00:11.20 bitrate=14354.6kbits/s frame= 281 fps= 19 q=4.0 size= 20408kB time=00:00:11.62 bitrate=14381.3kbits/s frame= 290 fps= 19 q=4.0 size= 21302kB time=00:00:12.00 bitrate=14542.2kbits/s frame= 302 fps= 19 q=4.0 size= 22318kB time=00:00:12.50 bitrate=14626.3kbits/s frame= 313 fps= 19 q=4.0 size= 23506kB time=00:00:12.95 bitrate=14860.0kbits/s frame= 324 fps= 19 q=4.0 size= 24808kB time=00:00:13.41 bitrate=15147.4kbits/s frame= 336 fps= 19 q=4.0 size= 26020kB time=00:00:13.91 bitrate=15316.6kbits/s frame= 348 fps= 19 q=4.0 size= 27140kB time=00:00:14.41 bitrate=15421.8kbits/s frame= 360 fps= 19 q=4.0 size= 28300kB time=00:00:14.91 bitrate=15541.9kbits/s frame= 372 fps= 19 q=4.0 size= 29324kB time=00:00:15.41 bitrate=15582.0kbits/s frame= 384 fps= 20 q=4.0 size= 30368kB time=00:00:15.91 bitrate=15629.8kbits/s frame= 396 fps= 20 q=4.0 size= 31480kB time=00:00:16.41 bitrate=15708.7kbits/s frame= 408 fps= 20 q=4.0 size= 32444kB time=00:00:16.91 bitrate=15711.2kbits/s frame= 418 fps= 20 q=4.0 size= 33466kB time=00:00:17.33 bitrate=15816.5kbits/s frame= 429 fps= 20 q=4.0 size= 34764kB time=00:00:17.79 bitrate=16006.7kbits/s [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=234050 size=236304 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=234050 size=236304 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=236079 size=236304 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=236079 size=236304 frame= 441 fps= 20 q=4.0 size= 36128kB time=00:00:18.29 bitrate=16180.1kbits/s [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=233707 size=238471 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=233707 size=238471 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=235736 size=238471 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=235736 size=238471 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=237777 size=238471 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=237777 size=238471 frame= 453 fps= 20 q=4.0 size= 37468kB time=00:00:18.79 bitrate=16333.7kbits/s [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=234979 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=234979 size=248802 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=237008 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=237008 size=248802 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=239049 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=239049 size=248802 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=241090 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=241090 size=248802 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=243131 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=243131 size=248802 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=245172 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=245172 size=248802 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=247213 size=248802 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=247213 size=248802 frame= 465 fps= 20 q=4.0 size= 38878kB time=00:00:19.29 bitrate=16509.1kbits/s [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=234643 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=234643 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=236672 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=236672 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=238713 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=238713 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=240754 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=240754 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=242795 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=242795 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=244836 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=244836 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=246877 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=246877 size=250215 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=248918 size=250215 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=248918 size=250215 frame= 477 fps= 20 q=4.0 size= 40062kB time=00:00:19.79 bitrate=16582.1kbits/s [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=233803 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=233803 size=247655 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=235832 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=235832 size=247655 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=237873 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=237873 size=247655 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=239914 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=239914 size=247655 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=241955 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=241955 size=247655 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=243996 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=243996 size=247655 [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=246037 size=247655 [mpeg @ 000000000431c3c0] packet too large, ignoring buffer limits to mux it [mpeg @ 000000000431c3c0] buffer underflow st=0 bufi=246037 size=247655 frame= 488 fps= 20 q=4.0 size= 41034kB time=00:00:20.25 bitrate=16600.0kbits/s frame= 499 fps= 20 q=4.0 size= 42084kB time=00:00:20.70 bitrate=16648.0kbits/s frame= 510 fps= 20 q=4.0 size= 42854kB time=00:00:21.16 bitrate=16585.5kbits/s frame= 522 fps= 20 q=4.0 size= 43036kB time=00:00:21.66 bitrate=16271.6kbits/s frame= 534 fps= 20 q=4.0 size= 43216kB time=00:00:22.16 bitrate=15971.1kbits/s frame= 546 fps= 20 q=4.0 size= 43396kB time=00:00:22.66 bitrate=15683.8kbits/s frame= 557 fps= 20 q=4.0 size= 43576kB time=00:00:23.12 bitrate=15436.7kbits/s frame= 568 fps= 20 q=4.0 size= 43756kB time=00:00:23.58 bitrate=15199.3kbits/s frame= 579 fps= 20 q=4.0 size= 43934kB time=00:00:24.04 bitrate=14970.1kbits/s frame= 590 fps= 20 q=4.0 size= 44104kB time=00:00:24.50 bitrate=14746.9kbits/s frame= 602 fps= 20 q=4.0 size= 44284kB time=00:00:25.00 bitrate=14511.0kbits/s frame= 614 fps= 20 q=4.0 size= 44464kB time=00:00:25.50 bitrate=14284.3kbits/s frame= 624 fps= 20 q=4.0 Lsize= 44486kB time=00:00:25.95 bitrate=14039.0kbits/s video:44321kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.371842% If there is anything else I should provide, let me know! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Buffer-Underflow-in-case-of-high-resolution-mpeg1video-encoding-tp4667787p4667789.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From barsnick at gmx.net Thu Oct 16 17:59:32 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 16 Oct 2014 17:59:32 +0200 Subject: [FFmpeg-user] How to create trapezoid videos with ffmpeg? In-Reply-To: References: Message-ID: <20141016155932.GD28208@sunshine.barsnick.net> Hi Zenny, On Wed, Oct 15, 2014 at 10:55:40 +0200, Zenny wrote: > New to ffmpeg. How can one create a trapezoid shaped video as a > overlay to the background as seen at > http://www.youtube.com/watch?v=_380o5B9MrA (starts at 00:02:25) using > ffmpeg command? I can't seem to find a filter which does that directly, but the "perspective" does a similar transformation, in an inverse way. I believe it "virtually pulls the given viewpoints to the corners." Using it with values pointing at viewpoints outside of the frame gives the approximate effect of what you're trying to achieve, see my example below. Interestingly, that filter smears the edges colors of the input across the rest of the output frame. (I'm not sure whether that's a bug or a feature.) Here's an example, using a test source with an overlayed outline and grid lines, to may the effect more clearly visible. It uses the SDL display driver as output to screen, but you can output to a file alternatively: ffmpeg -re -f lavfi -i "testsrc,drawbox=x=1:y=1:w=iw-2:h=ih-2:t=1:c=white,drawgrid=w=iw/10:h=ih/10:t=1:c=white at 0.5" -filter_complex "[0:v]perspective=x0=-100:y0=-100:x2=-100:y2=H+100[ovl1]; [0:v]pad=w=iw*2[ovl0]; [ovl0][ovl1]overlay=x=W/2[vidout]" -map "[vidout]" -pix_fmt yuv420p -f sdl - I use the "-filter_complex" chain to combine the original and the transformed output side-by-side. The relevant "perspective" filter section is: "perspective=x0=-100:y0=-100:x2=-100:y2=H+100" Note the reference points _outside_ of the frame to achieve a trapezoid size reduction. The filter you are looking for should probably accept actual corner values. That said, such a filter could probably be derived from the "perspective" filter's code. (I failed at finding an easy way to do this though.) Moritz From cehoyos at ag.or.at Thu Oct 16 23:15:47 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 16 Oct 2014 21:15:47 +0000 (UTC) Subject: [FFmpeg-user] Buffer Underflow in case of high resolution mpeg1video encoding References: <1413460806577-4667787.post@n4.nabble.com> <1413469729059-4667789.post@n4.nabble.com> Message-ID: inge gmail.com> writes: > [mpeg 000000000431c3c0] VBV buffer size not set, > using default size of 130KB Set -bufsize and -maxrate to (very) high values for high resolution / low quantiser mpegvideo. (I am not sure if the resulting file will conform to any specification but it will play with all open-source decoders.) Carl Eugen From rvmwg+aw79bhsphljik at guerrillamail.org Fri Oct 17 05:48:09 2014 From: rvmwg+aw79bhsphljik at guerrillamail.org (Sofier) Date: Thu, 16 Oct 2014 20:48:09 -0700 (PDT) Subject: [FFmpeg-user] converting .mov(MJPEG) to web optimized .mp4(h264) In-Reply-To: References: <53B1304C.7080405@thelounge.net> <20140630101041.GA3322@krille.blacktrash.org> <53B139A7.8010008@thelounge.net> <53B13CC8.3080506@thelounge.net> <53B14196.5070102@thelounge.net> Message-ID: <1413517689674-4667792.post@n4.nabble.com> Hello, do you try *Adoreshare iMovie Video Converter *? I found this on Google and I don't know if it work, you can try -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/converting-mov-MJPEG-to-web-optimized-mp4-h264-tp4666104p4667792.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From S.Sedlbauer at DigitalEndoscopy.de Fri Oct 17 14:59:32 2014 From: S.Sedlbauer at DigitalEndoscopy.de (deseb) Date: Fri, 17 Oct 2014 05:59:32 -0700 (PDT) Subject: [FFmpeg-user] Question about audio video synchronization in containers Message-ID: <1413550772304-4667793.post@n4.nabble.com> Dear Sirs and Madams, I have a question about containers and synchronization of the contained video and audio streams and hope someone can provide me some basic information. How can I guarantee that the muxed/interleaved streams are synchronized in a container so that there is no delay when played? Video has timestamps like PTS and DTS. Do audio streams have that too? Does a container have timestamps or does it work with timestamps provided by the streams? Is there a general way of synchronization for all containers (AVI, MPEG, MKV ...)? Thank you for your time, help and any information or hint that could help me to understand that matter. Have a nice day Seb -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Question-about-audio-video-synchronization-in-containers-tp4667793.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From karl.kiniger at med.ge.com Fri Oct 17 15:18:36 2014 From: karl.kiniger at med.ge.com (Karl Kiniger) Date: Fri, 17 Oct 2014 15:18:36 +0200 Subject: [FFmpeg-user] hue filter set brightness broken? In-Reply-To: <20141013130106.GA6080@kipc2.localdomain> References: <20141013130106.GA6080@kipc2.localdomain> Message-ID: <20141017131836.GA29255@kipc2.localdomain> On Mon 141013, Karl Kiniger wrote: > -vf hue=b=-10 does not result in black images depending > on colors. > -vf mp=eq2=1.0:1.0:-1:1.0 gives the very same result like hue=b=-10 e.g: red,green,blue colors from testsrc when saved w/o filter as png are exactly #ff0000, #00ff00, #0000ff as expected. going thru hue=b=0 or mp=eq2=1.0:1.0:0.0:1.0 the colors are: #fe0000, #00ff01, #0000ff however when setting brightness to minimum: (hue=b=-10 or mp=eq2=1.0:1.0:-1.0:1.0) the resulting colors (rgb) are: #a00000, #005700, #0000cf Is this really the expected behaviour? Simply-minded I expected the brightness value to act like the brigthness control on a color TV... Going into YUV vs RGB pm weekend if time permits.. have a nice weekend, Karl eq2 testing fragment: #!/bin/bash a2z=($(echo {a..z})) for i in $(seq -10 10);do b=$(bc -l <<< "scale=1;$i/10.") t=${a2z[$i+10]} fn=$(printf "eq2test-%c-%d.png" $t $i) ffmpeg -f lavfi -i testsrc -an -vf mp=eq2=1.0:1.0:$b:1.0 -frames 1 -y $fn done From david.cassany at i2cat.net Fri Oct 17 19:50:26 2014 From: david.cassany at i2cat.net (David Cassany Viladomat) Date: Fri, 17 Oct 2014 19:50:26 +0200 Subject: [FFmpeg-user] Get H264 NALUs from a muxed file Message-ID: Hi all, I have a question regarding demuxing files containing H264 data. I am trying to demux MP4 files and MPEG2-TS files. I have noticed that when I read a fram in an AVPacket get whole frame (containing several NALUs) in a different format, in concret in MPEG2-TS I get the data with the start_code (0001) to divide the NALUs, but with the MP4 I get the frame without start codes but 4 bytes indicating NALU size instead. I now this is due each container specification, but I am wondering if there is a way with FFMPEG to get exactly the same data regardless the container. The problem I have is that I want to process certain NALUs so I'd like to get NALUs one by one in a discrete way, assuming this is not possible with FFMPEG (at least as far as I know) I am dividing NALUs of the frame one by one parsing AVPacket data. The problem here is that I have to implement different parsers for every container. Is there a way to solve this? to get H264 frames in an standarized way? or even better, is it possible to get NALS one by one with FFMPEG. Thanks in advance for any advice about this matter. Best regards, David From nickrobbins at yahoo.com Fri Oct 17 20:18:04 2014 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Fri, 17 Oct 2014 11:18:04 -0700 Subject: [FFmpeg-user] How to create trapezoid videos with ffmpeg? In-Reply-To: <20141016155932.GD28208@sunshine.barsnick.net> References: <20141016155932.GD28208@sunshine.barsnick.net> Message-ID: <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> > On Thursday, October 16, 2014 11:59 AM, Moritz Barsnick wrote: > > Hi Zenny, > > On Wed, Oct 15, 2014 at 10:55:40 +0200, Zenny wrote: >> New to ffmpeg. How can one create a trapezoid shaped video as a >> overlay to the background as seen at >> http://www.youtube.com/watch?v=_380o5B9MrA (starts at 00:02:25) using >> ffmpeg command? > > I can't seem to find a filter which does that directly, but the > "perspective" does a similar transformation, in an inverse way. I > believe it "virtually pulls the given viewpoints to the corners." > Using > > .... > > Note the reference points _outside_ of the frame to achieve a trapezoid > size reduction. The filter you are looking for should probably accept > actual corner values. That said, such a filter could probably be > derived from the "perspective" filter's code. (I failed at finding > an > easy way to do this though.) > > Moritz Ok, I'm not sure what you meant by an easy way, but the formula for what to put into the perspective filter options to essentially have it be the inverse (where to send the corners, not what to send to the corners) is huge mess, so it can't be done easily for any given picture (just change the x0 to a -x0 or whatever). However it might be able to be hardcoded into a different filter (vf_keystone?) I'll inquire on ffmpeg-devel if that is possible, to have one filter basically just call another filter with different options. For example, if you wanted the original corners to go to x0:y0:x1:y1:x2:y2:x3:y3 the first option (x0 for that filter) you would want to give to vf_perspective is (W (x2 y0 - x0 y2) (x3 (y0 - y1) + x0 (y1 - y3) + x1 (-y0 + y3)) (x3 (y1 - y2) + x1 (y2 - y3) + x2 (-y1 + y3)))/(-x0 (x3^2 (y1 - y2) (-2 y1 y2 + y0 (y1 + y2)) - 2 x2 x3 y1 (y1 - y2) (y0 - y3) + x2^2 y0 (y1 - y3)^2) + x2 x3 (y0 - y1)^2 (-x3 y2 + x2 y3) + x1 (x3^2 y1 (y0 - y2)^2 + 2 x0 x3 (y1 - y2) y2 (y0 - y3) - x0^2 y1 (y2 - y3)^2 - 2 x2 (y1 - y2) (y0 - y3) (x3 y0 + x0 y3) + x2^2 (y0 - y3) (y0 (y1 - 2 y3) + y1 y3)) + x0^2 (x2 y2 (y1 - y3)^2 - x3 (y1 - y2) (2 y1 y2 - y1 y3 - y2 y3)) + x1^2 (x0 y0 (y2 - y3)^2 - x3 (y0 - y2)^2 y3 - x2 (y0 - y3) (y0 (y2 - 2 y3) + y2 y3))) so, yeah, not easily computed, but totally something you could compute once when you initialize the filter. -Nick From cehoyos at ag.or.at Sat Oct 18 01:21:33 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 17 Oct 2014 23:21:33 +0000 (UTC) Subject: [FFmpeg-user] Get H264 NALUs from a muxed file References: Message-ID: David Cassany Viladomat i2cat.net> writes: > in MPEG2-TS I get the data with the start_code (0001) to > divide the NALUs, but with the MP4 I get the frame without > start codes but 4 bytes indicating NALU size instead. I > now this is due each container specification, but I am > wondering if there is a way with FFMPEG to get exactly the > same data regardless the container. Yes, the following should produce similar result: $ ffmpeg -i in.ts -vcodec copy -an -f image2 out%4d $ ffmpeg -i in.mp4 -vcodec copy -vbsf h264_mp4toannexb -an -f image2 out%4d Carl Eugen From garbytrash at gmail.com Sat Oct 18 08:03:25 2014 From: garbytrash at gmail.com (Zenny) Date: Sat, 18 Oct 2014 08:03:25 +0200 Subject: [FFmpeg-user] How to create trapezoid videos with ffmpeg? In-Reply-To: <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> References: <20141016155932.GD28208@sunshine.barsnick.net> <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> Message-ID: @Moritz and @Nick: Thanks for the very useful inputs. Appreciate that! On 10/17/14, Nicholas Robbins wrote: >> On Thursday, October 16, 2014 11:59 AM, Moritz Barsnick >> wrote: > >> > Hi Zenny, >> >> On Wed, Oct 15, 2014 at 10:55:40 +0200, Zenny wrote: >>> New to ffmpeg. How can one create a trapezoid shaped video as a >>> overlay to the background as seen at >>> http://www.youtube.com/watch?v=_380o5B9MrA (starts at 00:02:25) using >>> ffmpeg command? >> >> I can't seem to find a filter which does that directly, but the >> "perspective" does a similar transformation, in an inverse way. I >> believe it "virtually pulls the given viewpoints to the corners." >> Using >> >> .... >> >> Note the reference points _outside_ of the frame to achieve a trapezoid >> size reduction. The filter you are looking for should probably accept >> actual corner values. That said, such a filter could probably be >> derived from the "perspective" filter's code. (I failed at finding >> an >> easy way to do this though.) >> >> Moritz > > Ok, I'm not sure what you meant by an easy way, but the formula for what to > put into the perspective filter options to essentially have it be the > inverse (where to send the corners, not what to send to the corners) is huge > mess, so it can't be done easily for any given picture (just change the x0 > to a -x0 or whatever). However it might be able to be hardcoded into a > different filter (vf_keystone?) I'll inquire on ffmpeg-devel if that is > possible, to have one filter basically just call another filter with > different options. > > For example, if you wanted the original corners to go to > x0:y0:x1:y1:x2:y2:x3:y3 the first option (x0 for that filter) you would want > to give to vf_perspective is > > (W (x2 y0 - x0 y2) (x3 (y0 - y1) + x0 (y1 - y3) + > x1 (-y0 + y3)) (x3 (y1 - y2) + x1 (y2 - y3) + > x2 (-y1 + y3)))/(-x0 (x3^2 (y1 - y2) (-2 y1 y2 + y0 (y1 + y2)) - > 2 x2 x3 y1 (y1 - y2) (y0 - y3) + x2^2 y0 (y1 - y3)^2) + > x2 x3 (y0 - y1)^2 (-x3 y2 + x2 y3) + > x1 (x3^2 y1 (y0 - y2)^2 + 2 x0 x3 (y1 - y2) y2 (y0 - y3) - > x0^2 y1 (y2 - y3)^2 - 2 x2 (y1 - y2) (y0 - y3) (x3 y0 + x0 y3) + > x2^2 (y0 - y3) (y0 (y1 - 2 y3) + y1 y3)) + > x0^2 (x2 y2 (y1 - y3)^2 - x3 (y1 - y2) (2 y1 y2 - y1 y3 - y2 y3)) + > x1^2 (x0 y0 (y2 - y3)^2 - x3 (y0 - y2)^2 y3 - > x2 (y0 - y3) (y0 (y2 - 2 y3) + y2 y3))) > > so, yeah, not easily computed, but totally something you could compute once > when you initialize the filter. > > -Nick > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From barsnick at gmx.net Sat Oct 18 14:36:33 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Sat, 18 Oct 2014 14:36:33 +0200 Subject: [FFmpeg-user] How to create trapezoid videos with ffmpeg? In-Reply-To: <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> References: <20141016155932.GD28208@sunshine.barsnick.net> <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> Message-ID: <20141018123633.GA10295@sunshine.barsnick.net> On Fri, Oct 17, 2014 at 11:18:04 -0700, Nicholas Robbins wrote: > Ok, I'm not sure what you meant by an easy way, but the formula for > what to put into the perspective filter options to essentially have > it be the inverse (where to send the corners, not what to send to the > corners) is huge mess, so it can't be done easily for any given > picture (just change the x0 to a -x0 or whatever). You basically got it right. (I happened to follow the thread on ffmpeg-devel, thanks for forwarding it.) a) An inverse calculation, like in your example given. But that's just totally over the top, no-one can be expected to be capable of such a calculation. I tried to figure it out from the code, but couldn't. > be able to be hardcoded into a different filter (vf_keystone?) I'll > inquire on ffmpeg-devel if that is possible, to have one filter > basically just call another filter with different options. b) What I meant - and you got it totally right on ffmpeg-devel - is to re-use the code from the perspective filter, because it contains all the transformations, considerations, and colorspace cruft. Just the wrong parameters. So the questions regarding "how to re-use a filter's algorithms/mechanisms without duplicating its code" are spot-on. That said, I pointed out that the perspective filter is doing peculiar things with the color edges when using such "negative" parameters. Have a look at my testsrc example's output. Possibly the perspective filter was only written with "inside" reference points in mind. The opposite filter would also need to be able to fill the remaining "empty" space with some kind of transparency/alpha channel, so that overlaying the warped frame over another stream is possible. That's basically what the original poster was looking for, and what makes sense to me from a user perspective. I'm happy to try coding, but don't know nearly enough about the libav* code to cope. ;-) Moritz From nickrobbins at yahoo.com Sat Oct 18 14:55:29 2014 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Sat, 18 Oct 2014 05:55:29 -0700 Subject: [FFmpeg-user] How to create trapezoid videos with ffmpeg? In-Reply-To: <20141018123633.GA10295@sunshine.barsnick.net> References: <20141016155932.GD28208@sunshine.barsnick.net> <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> <20141018123633.GA10295@sunshine.barsnick.net> Message-ID: <1413636929.4281.YahooMailNeo@web160806.mail.bf1.yahoo.com> > On Saturday, October 18, 2014 8:36 AM, Moritz Barsnick wrote: > You basically got it right. (I happened to follow the thread on > ffmpeg-devel, thanks for forwarding it.) > > a) An inverse calculation, like in your example given. But that's just > totally over the top, no-one can be expected to be capable of such a > calculation. I tried to figure it out from the code, but couldn't. I happen to be a mathematician, and I've taught courses on projective geometry and perspective. If you know the right question to ask mathematically it's straight forward, but the answer is a mess. > b) What I meant - and you got it totally right on ffmpeg-devel - is to > re-use the code from the perspective filter, because it contains all > the transformations, considerations, and colorspace cruft. Just the > wrong parameters. So the questions regarding "how to re-use a filter's > algorithms/mechanisms without duplicating its code" are spot-on. I'm leaning to making it an option to the perspective filter, so you can say how you want the parameters intrepreted, as the locations in the source of the corners of the new video or the locations in the new video of the corners of the source. I don't know anything about the colorspace stuff but that could presumably be put in. If I understand correctly (a big if), the array pv in the context stores the inverse locations of the new image. If that is outside of the original image, it could just be set to [0,0,0,0] or whatever, but I don't know about color formats or anything. If you want to handle that, I'll tackle the inverse transformation part. -Nick > > That said, I pointed out that the perspective filter is doing peculiar > things with the color edges when using such "negative" parameters. > Have > a look at my testsrc example's output. Possibly the perspective filter > was only written with "inside" reference points in mind. The opposite > filter would also need to be able to fill the remaining "empty" space > with some kind of transparency/alpha channel, so that overlaying the > warped frame over another stream is possible. That's basically what the > original poster was looking for, and what makes sense to me from a user > perspective. > > I'm happy to try coding, but don't know nearly enough about the libav* > code to cope. ;-) > > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From nickrobbins at yahoo.com Sun Oct 19 00:47:38 2014 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Sat, 18 Oct 2014 15:47:38 -0700 Subject: [FFmpeg-user] [FFmpeg-devel] Patch to create trapezoid videos with ffmpeg. In-Reply-To: <1413636929.4281.YahooMailNeo@web160806.mail.bf1.yahoo.com> References: <20141016155932.GD28208@sunshine.barsnick.net> <1413569884.57409.YahooMailNeo@web160803.mail.bf1.yahoo.com> <20141018123633.GA10295@sunshine.barsnick.net> <1413636929.4281.YahooMailNeo@web160806.mail.bf1.yahoo.com> Message-ID: <1413672458.73155.YahooMailNeo@web160804.mail.bf1.yahoo.com> > On Saturday, October 18, 2014 8:55 AM, Nicholas Robbins wrote: > >> On Saturday, October 18, 2014 8:36 AM, Moritz Barsnick > wrote: > >> You basically got it right. (I happened to follow the thread on >> ffmpeg-devel, thanks for forwarding it.) >> >> a) An inverse calculation, like in your example given. But that's just >> totally over the top, no-one can be expected to be capable of such a >> calculation. I tried to figure it out from the code, but couldn't. > > I happen to be a mathematician, and I've taught courses on projective > geometry and perspective. If you know the right question to ask mathematically > it's straight forward, but the answer is a mess. > >> b) What I meant - and you got it totally right on ffmpeg-devel - is to >> re-use the code from the perspective filter, because it contains all >> the transformations, considerations, and colorspace cruft. Just the >> wrong parameters. So the questions regarding "how to re-use a > filter's >> algorithms/mechanisms without duplicating its code" are spot-on. > > I'm leaning to making it an option to the perspective filter, so you can say > how you want the parameters intrepreted, as the locations in the source of the > corners of the new video or the locations in the new video of the corners of the > source. > > I don't know anything about the colorspace stuff but that could presumably > be put in. If I understand correctly (a big if), the array pv in the context > stores the inverse locations of the new image. If that is outside of the > original image, it could just be set to [0,0,0,0] or whatever, but I don't > know about color formats or anything. > > If you want to handle that, I'll tackle the inverse transformation part. > > -Nick > >> That said, I pointed out that the perspective filter is doing peculiar >> things with the color edges when using such "negative" > parameters. I see what it is doing, I think it is just interpolating from the data it has. The "peculiar" things you see it doing is probably due to the fact that it might not sample croma at every pixel. I find that if I put a two pixel black frame around the image first it works fine. >> Have >> a look at my testsrc example's output. Possibly the perspective filter >> was only written with "inside" reference points in mind. The > opposite >> filter would also need to be able to fill the remaining "empty" > space >> with some kind of transparency/alpha channel, so that overlaying the >> warped frame over another stream is possible. That's basically what the >> original poster was looking for, and what makes sense to me from a user >> perspective. I imagine you if you add a two pixel pad of transparent black (0x00000000), it would do what you suggest. I've attached a patch. Apply the patch, recompile and see if ./ffplay -f lavfi -i testsrc -vf pad="iw+4:ih+4:2:2:0x00000000",perspective=x0=W/4:y0=H/4:x1=3*W/4:y1=H/4:sense=destination does what you want. If this works, I'll add documentation and submit it. >> Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: perspective.patch Type: text/x-patch Size: 6279 bytes Desc: not available URL: From david.cassany at i2cat.net Mon Oct 20 09:35:40 2014 From: david.cassany at i2cat.net (David Cassany Viladomat) Date: Mon, 20 Oct 2014 09:35:40 +0200 Subject: [FFmpeg-user] Get H264 NALUs from a muxed file In-Reply-To: References: Message-ID: Thanks Carl, that's pretty useful. I guess I was not clear enough when I asked I there was a way to do it in FFMPEG, maybe I'd better say libavformat, I am not using the execution binaries, I am writing my own application in C using libavformat, libavcodec and so on. At the moment I am using FFMPEG examples "remuxing.c" and "demuxing_decoding.c" as a reference to start coding my NALU extractor. Then, according the Carl Eugen response I assume that I should use video filters in order to do that, should I read about libavfilter to reproduce "-vbsf h264_mp4toannexb" behaviour in my C application, or I have some kind of solution to go throw it having some sort of remuxing in h264 format? Thank all, David 2014-10-18 1:21 GMT+02:00 Carl Eugen Hoyos : > David Cassany Viladomat i2cat.net> writes: > > > in MPEG2-TS I get the data with the start_code (0001) to > > divide the NALUs, but with the MP4 I get the frame without > > start codes but 4 bytes indicating NALU size instead. I > > now this is due each container specification, but I am > > wondering if there is a way with FFMPEG to get exactly the > > same data regardless the container. > > Yes, the following should produce similar result: > > $ ffmpeg -i in.ts -vcodec copy -an -f image2 out%4d > $ ffmpeg -i in.mp4 -vcodec copy -vbsf h264_mp4toannexb -an -f image2 out%4d > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From binti179 at gmail.com Mon Oct 20 10:19:20 2014 From: binti179 at gmail.com (Binathi Bingi) Date: Mon, 20 Oct 2014 13:49:20 +0530 Subject: [FFmpeg-user] Error when installed ffmpeg from git Message-ID: Hi everyone, I installed ffmpeg from git on my machine which runs on Ubuntu14.04. I followed the instructions given in the below compilation guide. https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu Instead of using the git snapshot as mentioned in the documentation, I did git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg ffmpeg is installed, but when i typed ffserver at command prompt, it gave me the error "Could not open the configuration file '/etc/ffserver.conf' Error reading configuration file '/etc/ffserver.conf': No such file or directory" Binathi From h.reindl at thelounge.net Mon Oct 20 10:46:50 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 20 Oct 2014 10:46:50 +0200 Subject: [FFmpeg-user] Error when installed ffmpeg from git In-Reply-To: References: Message-ID: <5444CBFA.7060109@thelounge.net> Am 20.10.2014 um 10:19 schrieb Binathi Bingi: > I installed ffmpeg from git on my machine which runs on Ubuntu14.04. > I followed the instructions given in the below compilation guide. > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > > Instead of using the git snapshot as mentioned in the documentation, I did > > git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg > > ffmpeg is installed, but when i typed ffserver at command prompt, it gave > me the error "Could not open the configuration file '/etc/ffserver.conf' > Error reading configuration file '/etc/ffserver.conf': No such file or > directory" so what - a config file don't exist magically :-) PEBCAK https://www.google.at/search?q=ffserver.conf http://www.ffmpeg.org/sample.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From binti179 at gmail.com Mon Oct 20 10:52:31 2014 From: binti179 at gmail.com (Binathi Bingi) Date: Mon, 20 Oct 2014 14:22:31 +0530 Subject: [FFmpeg-user] Error when installed ffmpeg from git In-Reply-To: <5444CBFA.7060109@thelounge.net> References: <5444CBFA.7060109@thelounge.net> Message-ID: I couldn't find the file /etc but could locate the ffserver.conf in ~/ffmpeg_sources/ffmpeg/doc I copied it from ~/ffmpeg_sources/ffmpeg/doc to /etc But I am not sure if this was the right thing to do. Binathi On Mon, Oct 20, 2014 at 2:16 PM, Reindl Harald wrote: > > Am 20.10.2014 um 10:19 schrieb Binathi Bingi: > > I installed ffmpeg from git on my machine which runs on Ubuntu14.04. >> I followed the instructions given in the below compilation guide. >> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu >> >> Instead of using the git snapshot as mentioned in the documentation, I did >> >> git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg >> >> ffmpeg is installed, but when i typed ffserver at command prompt, it gave >> me the error "Could not open the configuration file '/etc/ffserver.conf' >> Error reading configuration file '/etc/ffserver.conf': No such file or >> directory" >> > > so what - a config file don't exist magically :-) > PEBCAK > > https://www.google.at/search?q=ffserver.conf > http://www.ffmpeg.org/sample.html > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From h.reindl at thelounge.net Mon Oct 20 10:55:01 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 20 Oct 2014 10:55:01 +0200 Subject: [FFmpeg-user] Error when installed ffmpeg from git In-Reply-To: References: <5444CBFA.7060109@thelounge.net> Message-ID: <5444CDE5.7090507@thelounge.net> Am 20.10.2014 um 10:52 schrieb Binathi Bingi: > I couldn't find the file /etc /etc is not a file /etc is the folder with configurations on unix > but could locate the ffserver.conf in > ~/ffmpeg_sources/ffmpeg/doc > I copied it from ~/ffmpeg_sources/ffmpeg/doc to /etc > But I am not sure if this was the right thing to do. uhm read some manpages start here https://www.google.at/search?q=ffserver.conf you need to configure it for *your needs* that's why it is a config file > On Mon, Oct 20, 2014 at 2:16 PM, Reindl Harald > wrote: > >> >> Am 20.10.2014 um 10:19 schrieb Binathi Bingi: >> >> I installed ffmpeg from git on my machine which runs on Ubuntu14.04. >>> I followed the instructions given in the below compilation guide. >>> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu >>> >>> Instead of using the git snapshot as mentioned in the documentation, I did >>> >>> git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg >>> >>> ffmpeg is installed, but when i typed ffserver at command prompt, it gave >>> me the error "Could not open the configuration file '/etc/ffserver.conf' >>> Error reading configuration file '/etc/ffserver.conf': No such file or >>> directory" >>> >> >> so what - a config file don't exist magically :-) >> PEBCAK >> >> https://www.google.at/search?q=ffserver.conf >> http://www.ffmpeg.org/sample.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From binti179 at gmail.com Mon Oct 20 10:59:25 2014 From: binti179 at gmail.com (Binathi Bingi) Date: Mon, 20 Oct 2014 14:29:25 +0530 Subject: [FFmpeg-user] Error when installed ffmpeg from git In-Reply-To: <5444CDE5.7090507@thelounge.net> References: <5444CBFA.7060109@thelounge.net> <5444CDE5.7090507@thelounge.net> Message-ID: Sorry, that was a typo error, I meant I couldnot find the file in /etc . On Mon, Oct 20, 2014 at 2:25 PM, Reindl Harald wrote: > > > Am 20.10.2014 um 10:52 schrieb Binathi Bingi: > >> I couldn't find the file /etc >> > > /etc is not a file > /etc is the folder with configurations on unix > > but could locate the ffserver.conf in >> ~/ffmpeg_sources/ffmpeg/doc >> I copied it from ~/ffmpeg_sources/ffmpeg/doc to /etc >> But I am not sure if this was the right thing to do. >> > > uhm read some manpages > > start here > https://www.google.at/search?q=ffserver.conf > > you need to configure it for *your needs* > that's why it is a config file > > > On Mon, Oct 20, 2014 at 2:16 PM, Reindl Harald >> wrote: >> >> >>> Am 20.10.2014 um 10:19 schrieb Binathi Bingi: >>> >>> I installed ffmpeg from git on my machine which runs on Ubuntu14.04. >>> >>>> I followed the instructions given in the below compilation guide. >>>> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu >>>> >>>> Instead of using the git snapshot as mentioned in the documentation, I >>>> did >>>> >>>> git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg >>>> >>>> ffmpeg is installed, but when i typed ffserver at command prompt, it >>>> gave >>>> me the error "Could not open the configuration file '/etc/ffserver.conf' >>>> Error reading configuration file '/etc/ffserver.conf': No such file or >>>> directory" >>>> >>>> >>> so what - a config file don't exist magically :-) >>> PEBCAK >>> >>> https://www.google.at/search?q=ffserver.conf >>> http://www.ffmpeg.org/sample.html >>> >> > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From george at nsup.org Mon Oct 20 11:04:35 2014 From: george at nsup.org (Nicolas George) Date: Mon, 20 Oct 2014 11:04:35 +0200 Subject: [FFmpeg-user] Error when installed ffmpeg from git In-Reply-To: References: <5444CBFA.7060109@thelounge.net> Message-ID: <20141020090435.GA13658@phare.normalesup.org> Le nonidi 29 vend?miaire, an CCXXIII, Binathi Bingi a ?crit?: > I couldn't find the file /etc but could locate the ffserver.conf in > ~/ffmpeg_sources/ffmpeg/doc > I copied it from ~/ffmpeg_sources/ffmpeg/doc to /etc > But I am not sure if this was the right thing to do. That was definitely NOT the right thing to do. You should never use the root privileges lightly. The right thing to do is to read the documentation. FFserver's documentation is available online: http://ffmpeg.org/ffserver.html And you also have a copy of the same documentation in the doc/ directory in the compilation tree. The documentation is quite long, but there is a nice table of contents in the HTML version, and the title "3.3 How do I make it work?" looks promising. > On Mon, Oct 20, 2014 at 2:16 PM, Reindl Harald > wrote: Please remember that this mailing-list's netiquette strongly discourage top-posting. 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 Oct 20 11:06:10 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 20 Oct 2014 11:06:10 +0200 Subject: [FFmpeg-user] Error when installed ffmpeg from git In-Reply-To: References: <5444CBFA.7060109@thelounge.net> <5444CDE5.7090507@thelounge.net> Message-ID: <5444D082.3060002@thelounge.net> Am 20.10.2014 um 10:59 schrieb Binathi Bingi: > Sorry, that was a typo error, I meant I couldnot find the file in /etc . well, that is what the error message says in your first post >>>>> Error reading configuration file '/etc/ffserver.conf': >>>>> No such file or directory" you don't want that file to be installed automatically or do you wan't to get your config overwritten with updates > On Mon, Oct 20, 2014 at 2:25 PM, Reindl Harald > wrote: >> >> Am 20.10.2014 um 10:52 schrieb Binathi Bingi: >> >>> I couldn't find the file /etc >>> >> >> /etc is not a file >> /etc is the folder with configurations on unix >> >> but could locate the ffserver.conf in >>> ~/ffmpeg_sources/ffmpeg/doc >>> I copied it from ~/ffmpeg_sources/ffmpeg/doc to /etc >>> But I am not sure if this was the right thing to do. >> >> uhm read some manpages >> >> start here >> https://www.google.at/search?q=ffserver.conf >> >> you need to configure it for *your needs* >> that's why it is a config file >> >> On Mon, Oct 20, 2014 at 2:16 PM, Reindl Harald >>> wrote: >>> >>> >>>> Am 20.10.2014 um 10:19 schrieb Binathi Bingi: >>>> >>>> I installed ffmpeg from git on my machine which runs on Ubuntu14.04. >>>> >>>>> I followed the instructions given in the below compilation guide. >>>>> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu >>>>> >>>>> Instead of using the git snapshot as mentioned in the documentation, I >>>>> did >>>>> >>>>> git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg >>>>> >>>>> ffmpeg is installed, but when i typed ffserver at command prompt, it >>>>> gave >>>>> me the error "Could not open the configuration file '/etc/ffserver.conf' >>>>> Error reading configuration file '/etc/ffserver.conf': No such file or >>>>> directory" >>>>> >>>>> >>>> so what - a config file don't exist magically :-) >>>> PEBCAK >>>> >>>> https://www.google.at/search?q=ffserver.conf >>>> http://www.ffmpeg.org/sample.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From spreadys at aol.com Mon Oct 20 00:47:06 2014 From: spreadys at aol.com (David Spreadborough) Date: Sun, 19 Oct 2014 18:47:06 -0400 Subject: [FFmpeg-user] decimate with dupthresh Message-ID: <8D1BA05BDCFA2BD-B5C-446AA@webmail-vm102.sysops.aol.com> Hi there, would it be possible for someone to explain the dupthresh option for the decimate filter? I have a number of different formats with encoded duplicate frames. I cannot remove them with -vsync drop and then manage frame rate. The duplicate rate varies so I am unable to use the cycle parameter. The dupthresh option appears to be similar to that used with Mencoder. (I have used -vf decimate=-0:99999 to remove all images that are exactly the same as the previous). I would prefer to use ffmpeg and understand the dupthresh option a little better. Thanks David From cehoyos at ag.or.at Mon Oct 20 21:22:13 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 20 Oct 2014 19:22:13 +0000 (UTC) Subject: [FFmpeg-user] decimate with dupthresh References: <8D1BA05BDCFA2BD-B5C-446AA@webmail-vm102.sysops.aol.com> Message-ID: David Spreadborough aol.com> writes: > I have a number of different formats with encoded > duplicate frames. > The duplicate rate varies Then please try the mpdecimate filter thought it comes from different times and may not be what you want. Carl Eugen From jonathan.viney at gmail.com Tue Oct 21 06:21:32 2014 From: jonathan.viney at gmail.com (Jonathan Viney) Date: Tue, 21 Oct 2014 17:21:32 +1300 Subject: [FFmpeg-user] Problem re-streaming an RTSP stream with ffserver Message-ID: Hi, Thanks for all the hard work people do for ffmpeg, it's a fantastic tool :). I am having an issue trying to re-stream an RTSP stream from a camera using ffserver - any ideas as to the problem would be much appreciated. I am using the latest git revision of ffmpeg on Ubuntu 14.04. Scenario: RTSP stream coming from IP camera. The stream can be captured easily with ffmpeg and output to a file. I am running ffserver (see config below), and passing the stream to ffserver with ffmpeg (see command lines below). This part appears to work fine. However, when I try to capture the rtsp stream from ffserver it gives the following errors: [h264 @ 0xbc9ac0] decode_slice_header error [h264 @ 0xbc9ac0] no frame! [h264 @ 0xbc9ac0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0xbc9ac0] decode_slice_header error [h264 @ 0xbc9ac0] no frame! [rtsp @ 0xbc6f80] interrupted [rtsp @ 0xbc6f80] decoding for stream 0 failed [rtsp @ 0xbc6f80] Could not find codec parameters for stream 0 (Video: h264, none(left)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options rtsp://localhost:8554/test1.rtsp: could not find codec parameters Here are the details of the setup I am using: Example ffmpeg command line to capture from camera to a file. ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy test1.mp4 ffprobe of camera's RTSP stream: ffprobe rtsp://10.9.9.1:554/axis-media/media.amp ffprobe version N-67063-g282c935 Copyright (c) 2007-2014 the FFmpeg developers built on Oct 21 2014 16:13:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-vda --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 8.102 / 56. 8.102 libavformat 56. 9.101 / 56. 9.101 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, rtsp, from 'rtsp://10.9.9.1:554/axis-media/media.amp': Metadata: title : Media Presentation Duration: N/A, start: 0.039989, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 180k tbc ffserver.conf: HTTPPort 8090 HTTPBindAddress 0.0.0.0 RTSPPort 8554 RTSPBindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 50000 CustomLog - File feed1-buffer.ffm FileMaxSize 300M ACL allow 127.0.0.1 Feed feed1.ffm Format rtp NoAudio StartSendOnKey Command to get ffmpeg to send RTSP stream to ffserver: ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy http://localhost:8090/feed1.ffm Command to capture rtsp stream from ffserver, with errors: ffmpeg -loglevel verbose -y -i rtsp://localhost:8554/test1.rtsp out.mp4 ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 21 2014 16:13:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-vda --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 8.102 / 56. 8.102 libavformat 56. 9.101 / 56. 9.101 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [rtsp @ 0x23b9c20] SDP: v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Title c=IN IP4 0.0.0.0 t=0 0 a=tool:libavformat 56.9.101 m=video 0 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1 a=control:streamid=0 [h264 @ 0x23bc760] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x23bc760] decode_slice_header error [h264 @ 0x23bc760] no frame! [h264 @ 0x23bc760] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x23bc760] decode_slice_header error [h264 @ 0x23bc760] no frame! [h264 @ 0x23bc760] non-existing PPS 0 referenced Last message repeated 1 times [rtsp @ 0x23b9c20] decoding for stream 0 failed [rtsp @ 0x23b9c20] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options rtsp://localhost:8554/test1.rtsp: could not find codec parameters Input #0, rtsp, from 'rtsp://localhost:8554/test1.rtsp': Metadata: title : No Title Duration: N/A, bitrate: N/A Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc Output #0, mp4, to 'out.mp4': Metadata: title : No Title Output file #0 does not contain any stream Received signal 2: terminating. Does anyone know why I'm not able to do this successfully? I have tried altering a bunch of settings on the camera, including bring the resolution right down to reduce the data rate, and adjusting the analyzeduration and probesize as suggested. I am able to re-stream an RTSP stream from another source successfully (rtsp://live.cdn2.streamago.tv/streamago/34961/28964/). Is there likely to be some sort of incompatibility with the stream from the camera? Thanks in advance, -Jonathan. From maziar.mehrabi at gmail.com Tue Oct 21 07:45:40 2014 From: maziar.mehrabi at gmail.com (Maziar Mehrabi) Date: Tue, 21 Oct 2014 08:45:40 +0300 Subject: [FFmpeg-user] Problem re-streaming an RTSP stream with ffserver In-Reply-To: References: Message-ID: Hi, I think you should save the SDP data into a file and then play/capture/transcode using that file. ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy http://localhost:8090/feed1.ffm > test.sdp I can see some sdp data printed on your log: SDP: v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Title c=IN IP4 0.0.0.0 t=0 0 a=tool:libavformat 56.9.101 m=video 0 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1 a=control:streamid=0 and then: ffmpeg -loglevel verbose -y -i test.sdp out.mp4 Regards, Maziar -- H?lsningar, Maziar Mehrabi, On Tue, Oct 21, 2014 at 7:21 AM, Jonathan Viney wrote: > Hi, > > Thanks for all the hard work people do for ffmpeg, it's a fantastic tool > :). > > I am having an issue trying to re-stream an RTSP stream from a camera using > ffserver - any ideas as to the problem would be much appreciated. I am > using the latest git revision of ffmpeg on Ubuntu 14.04. > > Scenario: RTSP stream coming from IP camera. The stream can be captured > easily with ffmpeg and output to a file. I am running ffserver (see config > below), and passing the stream to ffserver with ffmpeg (see command lines > below). This part appears to work fine. However, when I try to capture the > rtsp stream from ffserver it gives the following errors: > > [h264 @ 0xbc9ac0] decode_slice_header error > [h264 @ 0xbc9ac0] no frame! > [h264 @ 0xbc9ac0] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0xbc9ac0] decode_slice_header error > [h264 @ 0xbc9ac0] no frame! > [rtsp @ 0xbc6f80] interrupted > [rtsp @ 0xbc6f80] decoding for stream 0 failed > [rtsp @ 0xbc6f80] Could not find codec parameters for stream 0 (Video: > h264, none(left)): unspecified size > Consider increasing the value for the 'analyzeduration' and 'probesize' > options > rtsp://localhost:8554/test1.rtsp: could not find codec parameters > > Here are the details of the setup I am using: > > Example ffmpeg command line to capture from camera to a file. > ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy test1.mp4 > > ffprobe of camera's RTSP stream: > ffprobe rtsp://10.9.9.1:554/axis-media/media.amp > ffprobe version N-67063-g282c935 Copyright (c) 2007-2014 the FFmpeg > developers > built on Oct 21 2014 16:13:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) > configuration: --enable-shared --enable-pthreads --enable-gpl > --enable-version3 --enable-nonfree --enable-vda --enable-libx264 > --enable-libfaac --enable-libmp3lame --enable-libxvid > libavutil 54. 10.100 / 54. 10.100 > libavcodec 56. 8.102 / 56. 8.102 > libavformat 56. 9.101 / 56. 9.101 > libavdevice 56. 1.100 / 56. 1.100 > libavfilter 5. 2.100 / 5. 2.100 > libswscale 3. 1.101 / 3. 1.101 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 3.100 / 53. 3.100 > Input #0, rtsp, from 'rtsp://10.9.9.1:554/axis-media/media.amp': > Metadata: > title : Media Presentation > Duration: N/A, start: 0.039989, bitrate: N/A > Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 1920x1080 [SAR > 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 180k tbc > > ffserver.conf: > HTTPPort 8090 > HTTPBindAddress 0.0.0.0 > RTSPPort 8554 > RTSPBindAddress 0.0.0.0 > MaxHTTPConnections 2000 > MaxClients 1000 > MaxBandwidth 50000 > CustomLog - > > File feed1-buffer.ffm > FileMaxSize 300M > ACL allow 127.0.0.1 > > > Feed feed1.ffm > Format rtp > NoAudio > StartSendOnKey > > > Command to get ffmpeg to send RTSP stream to ffserver: > ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy > http://localhost:8090/feed1.ffm > > Command to capture rtsp stream from ffserver, with errors: > ffmpeg -loglevel verbose -y -i rtsp://localhost:8554/test1.rtsp out.mp4 > ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg > developers > built on Oct 21 2014 16:13:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) > configuration: --enable-shared --enable-pthreads --enable-gpl > --enable-version3 --enable-nonfree --enable-vda --enable-libx264 > --enable-libfaac --enable-libmp3lame --enable-libxvid > libavutil 54. 10.100 / 54. 10.100 > libavcodec 56. 8.102 / 56. 8.102 > libavformat 56. 9.101 / 56. 9.101 > libavdevice 56. 1.100 / 56. 1.100 > libavfilter 5. 2.100 / 5. 2.100 > libswscale 3. 1.101 / 3. 1.101 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 3.100 / 53. 3.100 > [rtsp @ 0x23b9c20] SDP: > v=0 > o=- 0 0 IN IP4 127.0.0.1 > s=No Title > c=IN IP4 0.0.0.0 > t=0 0 > a=tool:libavformat 56.9.101 > m=video 0 RTP/AVP 96 > a=rtpmap:96 H264/90000 > a=fmtp:96 packetization-mode=1 > a=control:streamid=0 > > [h264 @ 0x23bc760] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0x23bc760] decode_slice_header error > [h264 @ 0x23bc760] no frame! > [h264 @ 0x23bc760] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0x23bc760] decode_slice_header error > [h264 @ 0x23bc760] no frame! > [h264 @ 0x23bc760] non-existing PPS 0 referenced > Last message repeated 1 times > [rtsp @ 0x23b9c20] decoding for stream 0 failed > [rtsp @ 0x23b9c20] Could not find codec parameters for stream 0 (Video: > h264, none): unspecified size > Consider increasing the value for the 'analyzeduration' and 'probesize' > options > rtsp://localhost:8554/test1.rtsp: could not find codec parameters > Input #0, rtsp, from 'rtsp://localhost:8554/test1.rtsp': > Metadata: > title : No Title > Duration: N/A, bitrate: N/A > Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc > Output #0, mp4, to 'out.mp4': > Metadata: > title : No Title > Output file #0 does not contain any stream > Received signal 2: terminating. > > Does anyone know why I'm not able to do this successfully? I have tried > altering a bunch of settings on the camera, including bring the resolution > right down to reduce the data rate, and adjusting the analyzeduration and > probesize as suggested. > > I am able to re-stream an RTSP stream from another source successfully > (rtsp://live.cdn2.streamago.tv/streamago/34961/28964/). Is there likely to > be some sort of incompatibility with the stream from the camera? > > Thanks in advance, > -Jonathan. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jonathan.viney at gmail.com Tue Oct 21 07:59:37 2014 From: jonathan.viney at gmail.com (Jonathan Viney) Date: Tue, 21 Oct 2014 18:59:37 +1300 Subject: [FFmpeg-user] Problem re-streaming an RTSP stream with ffserver In-Reply-To: References: Message-ID: Thanks for the reply. The ffmpeg command is to continuously stream the camera's rtsp stream into ffserver. Redirecting the stdout of that process doesn't seem to do much. That SDP output you saw was from the ffmpeg process streaming the relayed stream via ffserver. I may have just answered my own question actually. Adding "AVOptionVideo flags +global_header" to the stream configuration in ffserver.conf seems to fix the problem. Oddly, when using rtsp with udp I get a bunch of missed packets: [NULL @ 0x24ac900] RTP: missed 1 packets Last message repeated 19 times It does seem to affect the output stream, the video is all distorted. This camera is on the local network, so there shouldn't be drops like this. The bitrate is around 8000kbits/s. Specifying "-rtsp_transport tcp" when streaming from ffserver fixes the output file. Any idea why "-rtsp_transport tcp" is needed when streaming from ffserver, but not when streaming directly from the camera? Regards, -Jonathan. On Tue, Oct 21, 2014 at 6:45 PM, Maziar Mehrabi wrote: > Hi, > > I think you should save the SDP data into a file and then > play/capture/transcode using that file. > ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy > http://localhost:8090/feed1.ffm > test.sdp > > I can see some sdp data printed on your log: > SDP: > v=0 > o=- 0 0 IN IP4 127.0.0.1 > s=No Title > c=IN IP4 0.0.0.0 > t=0 0 > a=tool:libavformat 56.9.101 > m=video 0 RTP/AVP 96 > a=rtpmap:96 H264/90000 > a=fmtp:96 packetization-mode=1 > a=control:streamid=0 > > and then: > ffmpeg -loglevel verbose -y -i test.sdp out.mp4 > > Regards, > Maziar > > > -- > H?lsningar, > Maziar Mehrabi, > > On Tue, Oct 21, 2014 at 7:21 AM, Jonathan Viney > wrote: > > > Hi, > > > > Thanks for all the hard work people do for ffmpeg, it's a fantastic tool > > :). > > > > I am having an issue trying to re-stream an RTSP stream from a camera > using > > ffserver - any ideas as to the problem would be much appreciated. I am > > using the latest git revision of ffmpeg on Ubuntu 14.04. > > > > Scenario: RTSP stream coming from IP camera. The stream can be captured > > easily with ffmpeg and output to a file. I am running ffserver (see > config > > below), and passing the stream to ffserver with ffmpeg (see command lines > > below). This part appears to work fine. However, when I try to capture > the > > rtsp stream from ffserver it gives the following errors: > > > > [h264 @ 0xbc9ac0] decode_slice_header error > > [h264 @ 0xbc9ac0] no frame! > > [h264 @ 0xbc9ac0] non-existing PPS 0 referenced > > Last message repeated 1 times > > [h264 @ 0xbc9ac0] decode_slice_header error > > [h264 @ 0xbc9ac0] no frame! > > [rtsp @ 0xbc6f80] interrupted > > [rtsp @ 0xbc6f80] decoding for stream 0 failed > > [rtsp @ 0xbc6f80] Could not find codec parameters for stream 0 (Video: > > h264, none(left)): unspecified size > > Consider increasing the value for the 'analyzeduration' and 'probesize' > > options > > rtsp://localhost:8554/test1.rtsp: could not find codec parameters > > > > Here are the details of the setup I am using: > > > > Example ffmpeg command line to capture from camera to a file. > > ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy test1.mp4 > > > > ffprobe of camera's RTSP stream: > > ffprobe rtsp://10.9.9.1:554/axis-media/media.amp > > ffprobe version N-67063-g282c935 Copyright (c) 2007-2014 the FFmpeg > > developers > > built on Oct 21 2014 16:13:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) > > configuration: --enable-shared --enable-pthreads --enable-gpl > > --enable-version3 --enable-nonfree --enable-vda --enable-libx264 > > --enable-libfaac --enable-libmp3lame --enable-libxvid > > libavutil 54. 10.100 / 54. 10.100 > > libavcodec 56. 8.102 / 56. 8.102 > > libavformat 56. 9.101 / 56. 9.101 > > libavdevice 56. 1.100 / 56. 1.100 > > libavfilter 5. 2.100 / 5. 2.100 > > libswscale 3. 1.101 / 3. 1.101 > > libswresample 1. 1.100 / 1. 1.100 > > libpostproc 53. 3.100 / 53. 3.100 > > Input #0, rtsp, from 'rtsp://10.9.9.1:554/axis-media/media.amp': > > Metadata: > > title : Media Presentation > > Duration: N/A, start: 0.039989, bitrate: N/A > > Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 1920x1080 [SAR > > 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 180k tbc > > > > ffserver.conf: > > HTTPPort 8090 > > HTTPBindAddress 0.0.0.0 > > RTSPPort 8554 > > RTSPBindAddress 0.0.0.0 > > MaxHTTPConnections 2000 > > MaxClients 1000 > > MaxBandwidth 50000 > > CustomLog - > > > > File feed1-buffer.ffm > > FileMaxSize 300M > > ACL allow 127.0.0.1 > > > > > > Feed feed1.ffm > > Format rtp > > NoAudio > > StartSendOnKey > > > > > > Command to get ffmpeg to send RTSP stream to ffserver: > > ffmpeg -i rtsp://10.9.9.1:554/axis-media/media.amp -c copy > > http://localhost:8090/feed1.ffm > > > > Command to capture rtsp stream from ffserver, with errors: > > ffmpeg -loglevel verbose -y -i rtsp://localhost:8554/test1.rtsp out.mp4 > > ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg > > developers > > built on Oct 21 2014 16:13:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) > > configuration: --enable-shared --enable-pthreads --enable-gpl > > --enable-version3 --enable-nonfree --enable-vda --enable-libx264 > > --enable-libfaac --enable-libmp3lame --enable-libxvid > > libavutil 54. 10.100 / 54. 10.100 > > libavcodec 56. 8.102 / 56. 8.102 > > libavformat 56. 9.101 / 56. 9.101 > > libavdevice 56. 1.100 / 56. 1.100 > > libavfilter 5. 2.100 / 5. 2.100 > > libswscale 3. 1.101 / 3. 1.101 > > libswresample 1. 1.100 / 1. 1.100 > > libpostproc 53. 3.100 / 53. 3.100 > > [rtsp @ 0x23b9c20] SDP: > > v=0 > > o=- 0 0 IN IP4 127.0.0.1 > > s=No Title > > c=IN IP4 0.0.0.0 > > t=0 0 > > a=tool:libavformat 56.9.101 > > m=video 0 RTP/AVP 96 > > a=rtpmap:96 H264/90000 > > a=fmtp:96 packetization-mode=1 > > a=control:streamid=0 > > > > [h264 @ 0x23bc760] non-existing PPS 0 referenced > > Last message repeated 1 times > > [h264 @ 0x23bc760] decode_slice_header error > > [h264 @ 0x23bc760] no frame! > > [h264 @ 0x23bc760] non-existing PPS 0 referenced > > Last message repeated 1 times > > [h264 @ 0x23bc760] decode_slice_header error > > [h264 @ 0x23bc760] no frame! > > [h264 @ 0x23bc760] non-existing PPS 0 referenced > > Last message repeated 1 times > > [rtsp @ 0x23b9c20] decoding for stream 0 failed > > [rtsp @ 0x23b9c20] Could not find codec parameters for stream 0 (Video: > > h264, none): unspecified size > > Consider increasing the value for the 'analyzeduration' and 'probesize' > > options > > rtsp://localhost:8554/test1.rtsp: could not find codec parameters > > Input #0, rtsp, from 'rtsp://localhost:8554/test1.rtsp': > > Metadata: > > title : No Title > > Duration: N/A, bitrate: N/A > > Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc > > Output #0, mp4, to 'out.mp4': > > Metadata: > > title : No Title > > Output file #0 does not contain any stream > > Received signal 2: terminating. > > > > Does anyone know why I'm not able to do this successfully? I have tried > > altering a bunch of settings on the camera, including bring the > resolution > > right down to reduce the data rate, and adjusting the analyzeduration and > > probesize as suggested. > > > > I am able to re-stream an RTSP stream from another source successfully > > (rtsp://live.cdn2.streamago.tv/streamago/34961/28964/). Is there likely > to > > be some sort of incompatibility with the stream from the camera? > > > > Thanks in advance, > > -Jonathan. > > _______________________________________________ > > 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 umansky at torcrobotics.com Tue Oct 21 14:26:37 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Tue, 21 Oct 2014 12:26:37 +0000 Subject: [FFmpeg-user] Send audio to Axis encoder and change http_post header Message-ID: <205DBBE9F739414F9815C142C7EA61CC0367AA44@exchsvr01.torcrobotics.net> Hello, I am trying to send audio data to an Axis encoder using the VAPIX API: http://www.axis.com/files/manuals/vapix_audio_52913_en_1307.pdf Essentially I send audio to it by pointing something at the address of the encoder: http:// ch:1 chl:mono fmt:s16 r:16000Hz Output #0, flv, to 'http://192.168.0.90/axis-cgi/audio/transmit.cgi': Metadata: encoder : Lavf56.7.101 Stream #0:0, 0, 1/1000: Audio: pcm_mulaw ([8][0][0][0] / 0x0008), 16000 Hz, mono, s16, 128 kb/s Metadata: encoder : Lavc56.1.101 pcm_mulaw Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_mulaw (native)) Press [q] to stop, [?] for help av_interleaved_write_frame(): Unknown error No more output streams to write to, finishing. [flv @ 0000000002b77560] Failed to update header with correct duration. [flv @ 0000000002b77560] Failed to update header with correct filesize. size= 8kB time=00:00:00.49 bitrate= 131.8kbits/s video:0kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.955912% Input file #0 (audio=Internal Microphone (Conexant 2): Input stream #0:0 (audio): 1 packets read (88200 bytes); 1 frames decoded (22050 samples); Total: 1 packets (88200 bytes) demuxed Output file #0 (http://192.168.0.90/axis-cgi/audio/transmit.cgi): Output stream #0:0 (audio): 1 frames encoded (7984 samples); 1 packets muxed (7984 bytes); Total: 1 packets (7984 bytes) muxed 1 frames successfully decoded, 0 decoding errors [AVIOContext @ 0000000002b83460] Statistics: 0 seeks, 2 writeouts Conversion failed! From 243165084 at qq.com Tue Oct 21 10:26:56 2014 From: 243165084 at qq.com (=?GB2312?B?0OzBwcHB?=) Date: Tue, 21 Oct 2014 16:26:56 +0800 Subject: [FFmpeg-user] ffmpeg complie Message-ID: <201410211626493801384@qq.com> #!/bin/bash NDK=/home/xull/dennis/android-ndk-r9d SYSROOT=$NDK/platforms/android-8/arch-arm/ TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64 function build_one { ./configure \ --prefix=$PREFIX \ --enable-shared \ --disable-static \ --disable-doc \ --disable-ffserver \ --enable-cross-compile \ --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ --target-os=linux \ --arch=arm \ --sysroot=$SYSROOT \ --extra-cflags="-Os -fpic $ADDI_CFLAGS" \ --extra-ldflags="$ADDI_LDFLAGS" \ $ADDITIONAL_CONFIGURE_FLAG } CPU=arm PREFIX=$(pwd)/android/$CPU ADDI_CFLAGS="-marm" build_one /home/xull/dennis/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. Hello, please help me. FYI vincent ?????+86 13761019596 ???243165084 at qq.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 20365 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 168790 bytes Desc: not available URL: From cehoyos at ag.or.at Tue Oct 21 23:41:17 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 21 Oct 2014 21:41:17 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Send_audio_to_Axis_encoder_and_change_htt?= =?utf-8?q?p=5Fpost_header?= References: <205DBBE9F739414F9815C142C7EA61CC0367AA44@exchsvr01.torcrobotics.net> Message-ID: Mark Umansky torcrobotics.com> writes: > Connection: Keep-Alive > Connection: close > The "connection: close" is what I think is preventing > any data from getting to the encoder as it errors out > after one frame. Did you test the option "multiple_requests"? > ffmpeg -v debug -y -re -f dshow > -i "audio=Internal Microphone (Conexant 2" > -c:a pcm_mulaw -ac 1 -ar 16000 -b:a 128k -f flv > http://192.168.0.90/axis-cgi/audio/transmit.cgi I am not saying it's wrong but where in the documentation did you find a reason to use "-f flv"? Carl Eugen From a.nielsen at shikadi.net Wed Oct 22 10:07:24 2014 From: a.nielsen at shikadi.net (Adam Nielsen) Date: Wed, 22 Oct 2014 18:07:24 +1000 Subject: [FFmpeg-user] Unable to stream H264 via multicast Message-ID: <20141022180724.4c84c9da@korath.teln.shikadi.net> Hi all, I'm having so many problems trying to get this to work I'm desperately hoping someone can give me some help! I'm trying to capture video from the Raspberry Pi's internal camera, which can natively supply hardware-encoded H264 video. I'd like to then multicast this over my LAN. You'd think it would be simple, but I've been going for five hours now with no luck yet! I had ffmpeg successfully multicasting over RTP with this: ffmpeg -f v4l2 -video_size hd720 -framerate 30 -input_format h264 -i /dev/video0 -vcodec copy -an -f rtp rtp://224.0.1.2:5001 But any player I tried didn't work except VLC which said it needed an SDP file. I tried copying one that apparently ffmpeg printed when it was run, and VLC accepted it and said it was playing but there was no video (just the VLC logo showing where the video should be.) I thought this would be a bit of a hassle having to maintain an SDP file, so I switched to ffserver instead. However although ffserver appears to have an option for broadcasting RTP it doesn't seem to work? I'm also not sure where to get the SDP file from, as apparently you can add ".sdp" onto the end of the URL or something but I just get a 404 Not Found error doing that. But weirdly if I run ffserver in debug mode, the logs it prints says it returns HTTP 200 OK to these requests even though ffplay says I get 404 or even 503 Service Unavailable. So I'm really confused now! Here is my ffserver config: HTTPPort 80 RTSPPort 81 File /tmp/csi.ffm FileMaxSize 200K Feed csi.ffm Format rtp MulticastAddress 224.0.1.2 MulticastPort 5001 MulticastTTL 4 NoAudio Metadata title "CSI Camera" Feed csi.ffm Format asf NoAudio Metadata title "CSI Camera" Format status ACL allow 192.168.0.0 192.168.0.255 I'm running ffmpeg with this: ffmpeg -f v4l2 -video_size hd720 -framerate 30 -input_format h264 -i /dev/video0 -vcodec copy -an http://localhost/csi.ffm If I try to play rtp://224.0.1.2 I get no data, and I can verify that no data is being transmitted over the LAN. If I use mplayer to play csi.asf I get these errors: Error while decoding frame! [h264 @ 0x7ffbde842400]non-existing PPS 0 referenced [h264 @ 0x7ffbde842400]decode_slice_header error [h264 @ 0x7ffbde842400]no frame! Error while decoding frame! [h264 @ 0x7ffbde842400]non-existing PPS 0 referenced [h264 @ 0x7ffbde842400]decode_slice_header error [h264 @ 0x7ffbde842400]no frame! I'm not really sure what to do next! Can anyone offer any suggestions? Many thanks, Adam. From umansky at torcrobotics.com Wed Oct 22 14:26:35 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Wed, 22 Oct 2014 12:26:35 +0000 Subject: [FFmpeg-user] Send audio to Axis encoder and change http_post header In-Reply-To: References: <205DBBE9F739414F9815C142C7EA61CC0367AA44@exchsvr01.torcrobotics.net> Message-ID: <205DBBE9F739414F9815C142C7EA61CC0367B16F@exchsvr01.torcrobotics.net> I actually figured out the "multiple_requests" option soon after posting my question. In the case of the Axis encoder, I also had to set the "content_type" to "audio/basic" to match their API. I can confirm that with those two commands it is now working and sending audio to the Axis, which is playing it correctly. I don't remember why I used FLV, but I remember in my googling that was one of the suggestions. Many of the examples in https://trac.ffmpeg.org/wiki/StreamingGuide also use FLV. Now I have a periodic popping noise that's occurring at the same time as malformed packets (according to wireshark), but that's probably a question for a different thread. Thanks, Mark -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos Sent: Tuesday, October 21, 2014 5:41 PM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] Send audio to Axis encoder and change http_post header Mark Umansky torcrobotics.com> writes: > Connection: Keep-Alive > Connection: close > The "connection: close" is what I think is preventing any data from > getting to the encoder as it errors out after one frame. Did you test the option "multiple_requests"? > ffmpeg -v debug -y -re -f dshow > -i "audio=Internal Microphone (Conexant 2" > -c:a pcm_mulaw -ac 1 -ar 16000 -b:a 128k -f flv > http://192.168.0.90/axis-cgi/audio/transmit.cgi I am not saying it's wrong but where in the documentation did you find a reason to use "-f flv"? Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ------------------------ This email was scanned by BitDefender. From paulo.fidalgo.pt at gmail.com Wed Oct 22 20:52:52 2014 From: paulo.fidalgo.pt at gmail.com (Paulo Fidalgo) Date: Wed, 22 Oct 2014 19:52:52 +0100 Subject: [FFmpeg-user] MP3 enconding bitrate Message-ID: <5447FD04.80602@gmail.com> Hi! I have trouble to get the mp3 encoded right to play on my Volvo Infotainment System (Sensus 3.0), so I have contacted the costumer support, and they told me that the files are being encoding with frames with more than 320Kbps of bitrate. Since I don't have a tool to debug it, I've tried to see in codec statistics in VLC, which for the files I'm showing as example I've seen 380Kbps near 3:31 mins. I believe it's a bug on ffmpeg, although I'm not sure, so I'm asking for advice here, since encoding with the lame it works like a charm. I've encoded with this command: ffmpeg -i 2L38_01_96kHz.flac -codec:a libmp3lame -qscale:a 0 2L38_01_96kHz.mp3 The file used is from here: http://www.lindberg.no/hires/test/2L38_01_96kHz.flac and the mp3 encoded is here: http://www.datafilehost.com/d/42cf1c8e and I'm using ffmpeg from rpm-fusion in Fedora 20: ffmpeg version 2.1.5 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 Hyper fast Audio and Video encoder From bobm-ffmpeg at burner.com Wed Oct 22 21:23:51 2014 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Wed, 22 Oct 2014 13:23:51 -0600 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: <5447FD04.80602@gmail.com> References: <5447FD04.80602@gmail.com> Message-ID: <54480447.2080402@burner.com> > I have trouble to get the mp3 encoded right to play on my Volvo > Infotainment System (Sensus 3.0), so I have contacted the costumer > support, and they told me that the files are being encoding with frames > with more than 320Kbps of bitrate. [...] > I've encoded with this command: > > ffmpeg -i 2L38_01_96kHz.flac -codec:a libmp3lame -qscale:a 0 > 2L38_01_96kHz.mp3 You're using a qscale of 0 which is like saying "use ALL of the bits!" Raise the q or use -b:a to set a sensible bitrate ilke -b:a 192k (opinions vary) From italo.oliveira at ieee.org Wed Oct 22 22:44:40 2014 From: italo.oliveira at ieee.org (=?UTF-8?Q?=C3=8Dtalo_de_Pontes_Oliveira?=) Date: Wed, 22 Oct 2014 17:44:40 -0300 Subject: [FFmpeg-user] Error in instalation Message-ID: ?[image: Imagem inline 2]? -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 72896 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 115970 bytes Desc: not available URL: From james.darnley at gmail.com Thu Oct 23 00:09:59 2014 From: james.darnley at gmail.com (James Darnley) Date: Thu, 23 Oct 2014 00:09:59 +0200 Subject: [FFmpeg-user] Error in instalation In-Reply-To: References: Message-ID: <54482B37.2090904@gmail.com> On 2014-10-22 22:44, ?talo de Pontes Oliveira wrote: > BEGIN /tmp/ffconf.fXcZCLwZ.c > 1 #include > 2 #include > 3 long check_faacEncGetVersion(void) { return (long) faacEncGetVersion; } > 4 int main(void) { return 0; } > END /tmp/ffconf.fXcZCLwZ.c > gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -c -o /tmp/ffconf.3uD5SRzk.o /tmp/ffconf.fXcZCLwZ.c > /tmp/ffconf.fXcZCLwZ.c:2:18: fatal error: faac.h: No such file or directory > #include > ^ > compilation terminated. > ERROR: libfaac not found Did you install faac? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 603 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Thu Oct 23 00:12:39 2014 From: lou at lrcd.com (Lou) Date: Wed, 22 Oct 2014 14:12:39 -0800 Subject: [FFmpeg-user] Error in instalation In-Reply-To: References: Message-ID: <20141022141239.2347d76b@lrcd.com> On Wed, 22 Oct 2014 17:44:40 -0300 ?talo de Pontes Oliveira wrote: > ?[image: Imagem inline 2]? Screenshots of console outputs are unnecessary. The actual content as text is more useful, is smaller in file size, is easier to copy, and is searchable. > /tmp/ffconf.fXcZCLwZ.c:2:18: fatal error: faac.h: No such file or directory > #include > ^ > compilation terminated. > ERROR: libfaac not found Two options: A. Remove --enable-libfaac --enable-nonfree. B. Install faac. The package is probably named libfaac-dev(el) if you use a distro that annoyingly splits packages. faac is not recommended by me since there are better alternatives such as fdkaac. See: http://trac.ffmpeg.org/wiki/Encode/AAC From paulo.fidalgo.pt at gmail.com Thu Oct 23 09:30:07 2014 From: paulo.fidalgo.pt at gmail.com (Paulo Fidalgo) Date: Thu, 23 Oct 2014 08:30:07 +0100 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: <54480447.2080402@burner.com> References: <5447FD04.80602@gmail.com> <54480447.2080402@burner.com> Message-ID: <5448AE7F.7030904@gmail.com> OK, I understand your point, but encoding with lame, instead of ffmpeg results in a file which don't pass the 320 Kbps. Also in the documentation we have a table of equivalence between ffmpeg and lame options: https://trac.ffmpeg.org/wiki/Encode/MP3 which will induce the users in error because those settings are not really equivalent. Also if I lower the quality setting I'll have the problem anyway... For reference there is a note in wikipedia in bitrate section: http://en.wikipedia.org/wiki/MP3 /Non-standard bit rates up to 640 kbit/s can be achieved with the //LAME //encoder and the freeformat option, although few MP3 players can play those files. According to the ISO standard, decoders are only required to be able to decode streams up to 320 kbit/s//^ // / I think I will open a bug report and try to listen the developers opinion on the subject. Best regards, Paulo Fidalgo On 22/10/14 20:23, Bob Maple wrote: >> I have trouble to get the mp3 encoded right to play on my Volvo >> Infotainment System (Sensus 3.0), so I have contacted the costumer >> support, and they told me that the files are being encoding with frames >> with more than 320Kbps of bitrate. > [...] > >> I've encoded with this command: >> >> ffmpeg -i 2L38_01_96kHz.flac -codec:a libmp3lame -qscale:a 0 >> 2L38_01_96kHz.mp3 > You're using a qscale of 0 which is like saying "use ALL of the bits!" > Raise the q or use -b:a to set a sensible bitrate ilke -b:a 192k > (opinions vary) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cvilad at gmail.com Thu Oct 23 10:16:46 2014 From: cvilad at gmail.com (Carles Vila) Date: Thu, 23 Oct 2014 10:16:46 +0200 Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) Message-ID: Hi all, This is my first message, nice to meet you all. We've been using ffmpeg and ffmbc in our small postproduction company for quite some time. We use it for many tasks. I remember having used ffmpeg to convert a picture mxf from a DCP to ProRes. ffmpeg detected the XYZ colorspace fine and converted it OK to YUV, so the Prores looked gorgeous. Now I'm trying with another DCP, but ffmpeg fails to see that the mxf is in XYZ, but sees RGB. ffmpeg -i INPUT_j2c.mxf -s 1920*1080 -vcodec prores -profile:v 3 -an OUTPUT.mov ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 22 2014 15:41:47 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Code: [Select] Metadata: uid : 0365d3e4-5e72-4229-8b3d-cd8ada6ace94 generation_uid : 0497c548-2c85-4bd0-a915-2f1d65a0ffaf company_name : Fraunhofer IIS product_name : easyDCP Creator product_version : 2.2.3 product_uid : 7d836e16-37c7-4c22-b2e0-46a717e84f42 modification_date: 2014-10-08 14:40:08 application_platform: i386-apple-darwin9.8.0 timecode : 00:00:00:00 Duration: 00:19:18.58, start: 0.000000, bitrate: 222669 kb/s Stream #0:0: Video: jpeg2000, rgb48le(12 bpc), 1998x1080, 24 tbr, 24 tbn, 24 tbc Now, the resulting Quicktime is wrong color-wise. (That greenish look) Is there any way to force ffmpeg that it interprets the input as XYZ? Thanks!! From francesco.menegoni at gmail.com Thu Oct 23 19:02:49 2014 From: francesco.menegoni at gmail.com (Francesco Menegoni) Date: Thu, 23 Oct 2014 19:02:49 +0200 Subject: [FFmpeg-user] ffmpeg Gopro and server Message-ID: <3247A4A5-C938-4457-A9F0-A7588518E972@gmail.com> Hi, a newbie here, interested in setting up a server for encoding sport movies (GoPro files) in order to stream them. Input format will be MPEG4 h.264 in different formats: 1080p, 960p, 720p Output format (I am still studying it, any suggestions are welcome ^__^) should be: - MPEG4 h.264 720p @2500 kbit/sec - MPEG4 h.264 480p @900 kbit/sec How can I estimate time for encoding? Is there any hosting provider offering a good platform for doing it? Or have you any recommendation about what I have to ask? Thank you for your time and patience, I've searched the list without being able to find any hint! Best, F. Francesco Menegoni francesco.menegoni at gmail.com From streamin at elitemail.org Thu Oct 23 19:13:59 2014 From: streamin at elitemail.org (marsupilami) Date: Thu, 23 Oct 2014 10:13:59 -0700 (PDT) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing Message-ID: <1414084439652-4667828.post@n4.nabble.com> Hello, I'm experiencing a weird problem which I will try to describe in the following post. Currently, I'm writing a perl script for automatic encoding of MPEG-TS files using ffmpeg and x264. I'm having ffmpeg apply video filters like resize, deinterlace and so on and am then sending the output to x264 via stdout, which will result in a mkv file. The audio is encoded in a separate ffmpeg instance to AC3. For testing and checking purposes I'm later muxing the resulting mkv and ac3 files to form a new mkv file. Both ffmpeg instances (for video and audio encoding) start at the same position in the .ts file, or at least so I'm assuming. For some weird reason I'm getting an unpredictable audio delay after muxing (with mkvmerge). It is always a negative value, ranging from -300 ms to -1000 ms audio delay. The delay is a constant value, so by remuxing the two output files with some delay added, it'll be sync for the rest of the file. Yet the delay changes for different files and I can't understand why it does that and how to fix it. After some googling and reading man pages I tried skipping the first 10 seconds of both audio and video and checked if it would fix the problem - unfortunately it didn't, the delay was still there and still an unpredictable value. Another thing which I was thinking of trying was to get ffmpeg to encode video and audio in one instance - however I do not know how to accomplish that and I'm not even sure if it would fix the problem. ffmpeg would have to send the video output to stdout (piping to x264) and the audio output to an ac3 file. Here's the command lines I've been using: (I should mention the .ts files are being encoded as they're written to the disk - hence the -re switch; however "non-live" encoding doesn't fix things) Video: ffmpeg -hide_banner -loglevel quiet -re -ss 00:00:10 -i file.ts -vf "yadif=0:0:0,scale=720x404" -sws_flags lanczos -f yuv4mpegpipe -pix_fmt yuv420p - | x264_64.exe --stdin y4m --level 3.1 --output output.mkv - Audio: ffmpeg -hide_banner -loglevel quiet -re -ss 00:00:10 -i file.ts -map #0:7 -b:a 384k output.ac3 The script is running on a windows box. I've tried google lots of times but I can't seem to find a solution to this problem. Would you mind giving me a push into the right direction? I feel like I'm running into a wall here. Greetings -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From andrey.krieger.utkin at gmail.com Thu Oct 23 20:00:58 2014 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Thu, 23 Oct 2014 22:00:58 +0400 Subject: [FFmpeg-user] ffmpeg Gopro and server In-Reply-To: <3247A4A5-C938-4457-A9F0-A7588518E972@gmail.com> References: <3247A4A5-C938-4457-A9F0-A7588518E972@gmail.com> Message-ID: 2014-10-23 21:02 GMT+04:00 Francesco Menegoni : > Hi, > > a newbie here, interested in setting up a server for encoding sport movies (GoPro files) in order to stream them. > Input format will be MPEG4 h.264 in different formats: 1080p, 960p, 720p > > Output format (I am still studying it, any suggestions are welcome ^__^) should be: > - MPEG4 h.264 720p @2500 kbit/sec > - MPEG4 h.264 480p @900 kbit/sec > > > How can I estimate time for encoding? > Is there any hosting provider offering a good platform for doing it? Or have you any recommendation about what I have to ask? > > > Thank you for your time and patience, I've searched the list without being able to find any hint! Your plan is overly general, in this maillist you can get answers for more exact questions about multimedia data processing. Or say that you just need to hire a professional to design and implement a system for you. -- Andrey Utkin From jdevelop at gmail.com Thu Oct 23 22:07:55 2014 From: jdevelop at gmail.com (Eugene Dzhurinsky) Date: Thu, 23 Oct 2014 16:07:55 -0400 Subject: [FFmpeg-user] [Parsed_amerge_145 @ 0x283dba0] Too many channels (max 32) Message-ID: <20141023200755.GA31385@devbox.ma.labs.intellij.net> Hello! I'm trying to merge 27 audio files into the single one. The command line is: ffmpeg -y -i d1544954e748a6447a8d22ce.mp3 -i d1544954e748a6447a8d22ce.mp3 -i d6544954e37ef008993e45e3.mp3 -i d7544954609cf87b2747bfac.mp3 -i da54495442d9c0a51a42ae9c.mp3 -i db544954aaaacf02f738639e.mp3 -i dc5449540c61844f04fa37c8.mp3 -i dd5449547bb7c732cb19df05.mp3 -i df5449547dc820f5fc6763f3.mp3 -i e054495497d9ee06ea99ca66.mp3 -i e15449540c531e78287981e3.mp3 -i e2544954aef18681daf6a826.mp3 -i e5544954ab6f9e0744ef1f06.mp3 -i e754495446ea63cc013228d7.mp3 -i e8544954307c0a0c21c0566a.mp3 -i e95449543c288f18bcf64fbb.mp3 -i ea544954bedc1f246ffec3ba.mp3 -i ec5449545519c045a59dba84.mp3 -i ed5449549deef0419d9fa7c4.mp3 -i ee544954696a466e6327cf37.mp3 -i f0544954d4e98fb4ca487c07.mp3 -i f154495476e9c39bdc95f812.mp3 -i f2544954e41c34d3e29c2e6c.mp3 -i f454495482c151aea8761dda.mp3 -i f5544954796af4a171f11b57.mp3 -i f754495448788e35e6123679.mp3 -i f754495448788e35e6123679.mp3 -i f85449545e646dea98e5dd19.mp3 -filter_complex "[0]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,129.00,129.20),0.15000*(t - 129.00) + 0.03,1)':eval=frame,volume='if(between(t,129.20,181.50),-0.00057*(t - 129.20) + 0.06,1)':eval=frame,volume='if(between(t,181.50,181.60),0.40000*(t - 181.50) + 0.03,1)':eval=frame,volume='if(between(t,181.60,183.50),-0.03684*(t - 181.60) + 0.07,1)':eval=frame,volume='if(between(t,183.50,188.00),0.00000*(t - 183.50) + 0.00,1)':eval=frame,atrim=0.00:56.00,adelay=129000|129000|129000|129000,apad[0:o];[1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,0.00,134.00),0.00000*(t - 0.00) + 0.06,1)':eval=frame,atrim=0.00:134.00,apad[1:o];[2]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,2.80,3.30),1.90000*(t - 2.80) + 0.05,1)':eval=frame,volume='if(between(t,3.30,4.00),0.00000*(t - 3.30) + 1.00,1)':eval=frame,atrim=0.00:1.20,adelay=2800|2800|2800|2800,apad[2:o];[3]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,4.70,5.30),1.58333*(t - 4.70) + 0.05,1)':eval=frame,volume='if(between(t,5.30,14.00),0.00000*(t - 5.30) + 1.00,1)':eval=frame,atrim=0.00:9.30,adelay=4700|4700|4700|4700,apad[3:o];[4]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,14.10,25.00),0.00000*(t - 14.10) + 1.00,1)':eval=frame,atrim=0.00:10.90,adelay=14100|14100|14100|14100,apad[4:o];[5]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,25.80,33.00),0.00000*(t - 25.80) + 1.00,1)':eval=frame,atrim=0.00:7.20,adelay=25800|25800|25800|25800,apad[5:o];[6]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,33.80,40.00),0.00000*(t - 33.80) + 1.00,1)':eval=frame,atrim=0.00:6.20,adelay=33800|33800|33800|33800,apad[6:o];[7]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,40.00,45.00),0.00000*(t - 40.00) + 1.00,1)':eval=frame,atrim=0.00:5.00,adelay=40000|40000|40000|40000,apad[7:o];[8]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,45.50,49.50),0.00000*(t - 45.50) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=45500|45500|45500|45500,apad[8:o];[9]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,50.50,58.50),0.00000*(t - 50.50) + 1.00,1)':eval=frame,atrim=0.00:8.00,adelay=50500|50500|50500|50500,apad[9:o];[10]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,58.00,61.00),0.00000*(t - 58.00) + 1.00,1)':eval=frame,atrim=0.00:3.00,adelay=58000|58000|58000|58000,apad[10:o];[11]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,61.50,65.50),0.00000*(t - 61.50) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=61500|61500|61500|61500,apad[11:o];[12]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,65.50,75.50),0.00000*(t - 65.50) + 1.00,1)':eval=frame,atrim=0.00:10.00,adelay=65500|65500|65500|65500,apad[12:o];[13]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,76.00,80.00),0.00000*(t - 76.00) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=76000|76000|76000|76000,apad[13:o];[14]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,81.00,85.00),0.00000*(t - 81.00) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=81000|81000|81000|81000,apad[14:o];[15]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,88.00,91.00),0.00000*(t - 88.00) + 1.00,1)':eval=frame,atrim=0.00:3.00,adelay=88000|88000|88000|88000,apad[15:o];[16]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,99.00,111.00),0.00000*(t - 99.00) + 1.00,1)':eval=frame,atrim=0.00:12.00,adelay=99000|99000|99000|99000,apad[16:o];[17]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,111.00,119.00),0.00000*(t - 111.00) + 1.00,1)':eval=frame,atrim=0.00:8.00,adelay=111000|111000|111000|111000,apad[17:o];[18]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,120.00,131.00),0.00000*(t - 120.00) + 1.00,1)':eval=frame,atrim=0.00:11.00,adelay=120000|120000|120000|120000,apad[18:o];[19]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,121.00,133.00),0.00000*(t - 121.00) + 1.00,1)':eval=frame,atrim=0.00:12.00,adelay=121000|121000|121000|121000,apad[19:o];[20]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,134.00,142.00),0.00000*(t - 134.00) + 1.00,1)':eval=frame,atrim=0.00:8.00,adelay=134000|134000|134000|134000,apad[20:o];[21]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,142.00,151.00),0.00000*(t - 142.00) + 1.00,1)':eval=frame,atrim=0.00:9.00,adelay=142000|142000|142000|142000,apad[21:o];[22]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,152.00,161.00),0.00000*(t - 152.00) + 1.00,1)':eval=frame,atrim=0.00:9.00,adelay=152000|152000|152000|152000,apad[22:o];[23]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,161.00,175.00),0.00000*(t - 161.00) + 1.00,1)':eval=frame,atrim=0.00:14.00,adelay=161000|161000|161000|161000,apad[23:o];[24]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,161.00,172.00),0.00000*(t - 161.00) + 1.00,1)':eval=frame,atrim=0.00:11.00,adelay=161000|161000|161000|161000,apad[24:o];[25]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,171.60,174.40),0.00000*(t - 171.60) + 1.00,1)':eval=frame,atrim=0.00:2.80,adelay=171600|171600|171600|171600,apad[25:o];[26]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,172.80,178.90),0.00000*(t - 172.80) + 1.00,1)':eval=frame,atrim=2.80:8.90,adelay=175600|175600|175600|175600,apad[26:o];[27]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,172.00,184.50),0.00000*(t - 172.00) + 1.00,1)':eval=frame,atrim=0.00:12.50,adelay=172000|172000|172000|172000,apad[27:o];[0:o][1:o][2:o][3:o][4:o][5:o][6:o][7:o][8:o][9:o][10:o][11:o][12:o][13:o][14:o][15:o][16:o][17:o][18:o][19:o][20:o][21:o][22:o][23:o][24:o][25:o][26:o][27:o]amerge=inputs=28,atrim=duration=185.00" -shortest -ac 2 track.mp3 As a result, I'm getting the message: =========================================================================== Input #27, mp3, from 'f85449545e646dea98e5dd19.mp3': Duration: 00:00:09.53, start: 0.025057, bitrate: 320 kb/s Stream #27:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s Metadata: encoder : LAME3.98r [Parsed_amerge_145 @ 0x283dba0] No channel layout for input 1 [Parsed_amerge_145 @ 0x283dba0] Too many channels (max 32) [Parsed_amerge_145 @ 0x283dba0] Query format failed for 'Parsed_amerge_145': Invalid argument =========================================================================== As far as I understood, each filter creates it's own channel. So FFMPEG can't handle more than 32 channels (27 MP3 files will produce 54 channels in total). What is the best way to overcome this limit? I need only 2 channels as output. Thanks! -- Eugene N Dzhurinsky -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 473 bytes Desc: not available URL: From cehoyos at ag.or.at Thu Oct 23 23:16:53 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 23 Oct 2014 21:16:53 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?=5BParsed=5Famerge=5F145_=3Cat=3E__0x283d?= =?utf-8?q?ba0=5D_Too_many_channels_=28max_32=29?= References: <20141023200755.GA31385@devbox.ma.labs.intellij.net> Message-ID: Eugene Dzhurinsky gmail.com> writes: > [Parsed_amerge_145 0x283dba0] Too many channels (max 32) Is there a real disadvantage if you do it in two steps? Carl Eugen From cehoyos at ag.or.at Thu Oct 23 23:20:01 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 23 Oct 2014 21:20:01 +0000 (UTC) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing References: <1414084439652-4667828.post@n4.nabble.com> Message-ID: marsupilami elitemail.org> writes: > Here's the command lines I've been using What's wrong with the following? $ ffmpeg -i file.ts -vf yadif -vcodec libx264 -acodec ac3 out.mkv (You have to add the remaining options you need.) If this doesn't work, please provide the actual command line you used together with the complete, uncut console output (including banner!!) Carl Eugen From cehoyos at ag.or.at Thu Oct 23 23:21:05 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 23 Oct 2014 21:21:05 +0000 (UTC) Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) References: Message-ID: Carles Vila gmail.com> writes: > Now I'm trying with another DCP, but ffmpeg fails to > see that the mxf is in XYZ, but sees RGB. Please provide the sample. For future questions: Please do not cut the console output, always provide the first 50 and the last 50 lines. Carl Eugen From cvilad at gmail.com Fri Oct 24 01:41:06 2014 From: cvilad at gmail.com (Carles Vila) Date: Fri, 24 Oct 2014 01:41:06 +0200 Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) In-Reply-To: References: Message-ID: Hi Carl, You can download a short sample here: http://we.tl/KH56sHWuZs I followed the instructions at http://olitee.com/2014/02/ffmpeg-convert-dcp-quicktime/ Thanks for looking at it. Thanks On 23 October 2014 23:21, Carl Eugen Hoyos wrote: > Carles Vila gmail.com> writes: > > > Now I'm trying with another DCP, but ffmpeg fails to > > see that the mxf is in XYZ, but sees RGB. > > Please provide the sample. > > For future questions: Please do not cut the console > output, always provide the first 50 and the last > 50 lines. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mitch.crane at gmail.com Fri Oct 24 02:26:49 2014 From: mitch.crane at gmail.com (Mitch Crane) Date: Thu, 23 Oct 2014 20:26:49 -0400 Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) In-Reply-To: References: Message-ID: On Thu, Oct 23, 2014 at 7:41 PM, Carles Vila wrote: > Hi Carl, > > You can download a short sample here: http://we.tl/KH56sHWuZs I downloaded the file and use the following command line: ffmpeg -i 177d8c52-e30d-4b52-8f77-7e7a25e13a79_j2c.mxf -s 1920*1080 -vcodec prores -profile:v 3 -an OUTPUT.mov The colorspace seems to have been correctly detected and the resulting MOV file looks fine to me. Output below: ================================ ffmpeg version N-66690-gf3296b9 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 8 2014 01:17:39 with gcc 4.9.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --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-zlib libavutil 54. 9.100 / 54. 9.100 libavcodec 56. 3.101 / 56. 3.101 libavformat 56. 7.104 / 56. 7.104 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 [mxf @ 0000000004327c80] "OPAtom" with 2 ECs - assuming OP1a Input #0, mxf, from '177d8c52-e30d-4b52-8f77-7e7a25e13a79_j2c.mxf': Metadata: uid : 63a3a820-123f-46f3-921d-dd8b17c2a847 generation_uid : 1f505f11-8d26-431f-9c6f-e3b6f89a8046 company_name : Fraunhofer IIS product_name : easyDCP Creator product_version : 2.2.3 product_uid : 7d836e16-37c7-4c22-b2e0-46a717e84f42 modification_date: 2014-09-08 07:55:42 application_platform: i386-apple-darwin9.8.0 timecode : 00:00:00:00 Duration: 00:00:04.04, start: 0.000000, bitrate: 11989 kb/s Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 1998x1080, 24 tbr, 24 tbn, 24 tbc Output #0, mov, to 'OUTPUT.mov': Metadata: uid : 63a3a820-123f-46f3-921d-dd8b17c2a847 generation_uid : 1f505f11-8d26-431f-9c6f-e3b6f89a8046 company_name : Fraunhofer IIS product_name : easyDCP Creator product_version : 2.2.3 product_uid : 7d836e16-37c7-4c22-b2e0-46a717e84f42 modification_date: 2014-09-08 07:55:42 application_platform: i386-apple-darwin9.8.0 timecode : 00:00:00:00 encoder : Lavf56.7.104 Stream #0:0: Video: prores (apch) (apch / 0x68637061), yuv422p10le, 1920x1080, q=2-31, 200 kb/s, 24 fps, 12288 tbn, 24 tbc Metadata: encoder : Lavc56.3.101 prores Stream mapping: Stream #0:0 -> #0:0 (jpeg2000 (native) -> prores (native)) Press [q] to stop, [?] for help frame= 97 fps=9.1 q=0.0 Lsize= 16805kB time=00:00:04.04 bitrate=34062.3kbits/s video:16803kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.010757% From streamin at elitemail.org Fri Oct 24 11:27:30 2014 From: streamin at elitemail.org (marsupilami) Date: Fri, 24 Oct 2014 02:27:30 -0700 (PDT) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: References: <1414084439652-4667828.post@n4.nabble.com> Message-ID: <1414142850660-4667836.post@n4.nabble.com> Carl Eugen Hoyos wrote > marsupilami > > elitemail.org> writes: > > What's wrong with the following? > $ ffmpeg -i file.ts -vf yadif -vcodec libx264 -acodec ac3 out.mkv > (You have to add the remaining options you need.) The main reason why I didn't try this sooner was because I was worried ffmpeg wouldn't include the latest version of x264 or it would maybe be too slow. However after trying out your command line I realised I was wrong and maybe I was thinking too complex when there was a cleaner and simpler solution available. Encoding with my command line produces the following output: E:\enc>ffmpeg -ss 00:00:10 -i input.ts -vf "framestep=2,scale=720x404" -sws_flags lanczos -f yuv4mpegpipe -pix_fmt yuv420p - | x264_64.exe --stdin y4m --level 3.1 --preset slow --crf 19.0 --deblo ck -2:-2 --aq-strength 0.8 --sar 1:1 --output output.mkv - ffmpeg version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg developers built on Oct 8 2014 22:01:47 with gcc 4.9.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --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-zlib libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 4.101 / 56. 4.101 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 [h264 @ 029df000] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 029df000] decode_slice_header error [h264 @ 029df000] no frame! [h264 @ 029df000] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 029df000] decode_slice_header error [h264 @ 029df000] no frame! [h264 @ 029df000] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 029df000] decode_slice_header error [h264 @ 029df000] no frame! [h264 @ 029df000] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 029df000] decode_slice_header error [h264 @ 029df000] no frame! [h264 @ 029df000] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 029df000] decode_slice_header error [h264 @ 029df000] no frame! [h264 @ 029df000] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 029df000] decode_slice_header error [h264 @ 029df000] no frame! [NULL @ 0426d300] start time for stream 8 is not set in estimate_timings_from_pts [mpegts @ 0426e300] PES packet size mismatch Last message repeated 3 times [mpegts @ 0426e300] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0426e300] PES packet size mismatch Last message repeated 10 times Input #0, mpegts, from 'input.ts': Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s Program 10301 Program 10302 Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Program 10303 Program 10304 Output #0, yuv4mpegpipe, to 'pipe:': Metadata: encoder : Lavf56.9.100 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x404 [SAR 404:405 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc56.4.101 rawvideo Stream mapping: Stream #0:1 -> #0:0 (h264 (native) -> rawvideo (native)) Press [q] to stop, [?] for help [yuv4mpegpipe @ 05140060] Encoder did not produce proper pts, making some up. y4m [info]: 720x404p 404:405 @ 25/1 fps (cfr) x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2 x264 [info]: profile High, level 3.1 frame=112275 fps=121 q=0.0 Lsize=47840334kB time=01:14:51.00 bitrate=87265.2kbits/s dup=14 drop=0 video:7017kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 681659.375000% x264 [info]: frame I:954 Avg QP:15.72 size: 32986 x264 [info]: frame P:30208 Avg QP:18.51 size: 7304 x264 [info]: frame B:81113 Avg QP:21.12 size: 1656 x264 [info]: consecutive B-frames: 1.7% 2.9% 9.3% 86.1% x264 [info]: mb I I16..4: 11.9% 64.1% 24.0% x264 [info]: mb P I16..4: 2.0% 4.7% 1.2% P16..4: 41.1% 17.5% 11.5% 0.0% 0.0% skip:22.0% x264 [info]: mb B I16..4: 0.1% 0.3% 0.1% B16..8: 32.9% 4.2% 0.9% direct: 2.1% skip:59.4% L0:40.8% L1:49.1% BI:10.0% x264 [info]: 8x8 transform intra:59.6% inter:75.6% x264 [info]: direct mvs spatial:100.0% temporal:0.0% x264 [info]: coded y,uvDC,uvAC intra: 59.1% 66.7% 38.4% inter: 13.5% 16.9% 1.1% x264 [info]: i16 v,h,dc,p: 46% 21% 9% 25% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 9% 15% 8% 11% 12% 10% 10% 9% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 9% 5% 7% 11% 12% 10% 9% 9% x264 [info]: i8c dc,h,v,p: 42% 23% 24% 11% x264 [info]: Weighted P-Frames: Y:2.0% UV:0.8% x264 [info]: ref P L0: 53.6% 10.7% 19.6% 8.4% 7.1% 0.7% 0.0% x264 [info]: ref B L0: 80.3% 13.2% 4.5% 1.9% x264 [info]: ref B L1: 95.8% 4.2% x264 [info]: kb/s:688.38 encoded 112275 frames, 121.31 fps, 688.39 kb/s For the sake of speed I omitted the -re switch. Audio encoding produces this output: E:\enc>ffmpeg -ss 00:00:10 -i input.ts -map 0:6 -b:a 384k output.ac3 ffmpeg version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg developers built on Oct 8 2014 22:01:47 with gcc 4.9.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --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-zlib libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 4.101 / 56. 4.101 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 [h264 @ 0412b620] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0412b620] decode_slice_header error [h264 @ 0412b620] no frame! [h264 @ 0412b620] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0412b620] decode_slice_header error [h264 @ 0412b620] no frame! [h264 @ 0412b620] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0412b620] decode_slice_header error [h264 @ 0412b620] no frame! [h264 @ 0412b620] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0412b620] decode_slice_header error [h264 @ 0412b620] no frame! [h264 @ 0412b620] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0412b620] decode_slice_header error [h264 @ 0412b620] no frame! [h264 @ 0412b620] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0412b620] decode_slice_header error [h264 @ 0412b620] no frame! [NULL @ 0410f820] start time for stream 8 is not set in estimate_timings_from_pts [mpegts @ 040fdf60] PES packet size mismatch Last message repeated 3 times [mpegts @ 040fdf60] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 040fdf60] PES packet size mismatch Last message repeated 10 times Input #0, mpegts, from 'input.ts': Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s Program 10301 Program 10302 Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Program 10303 Program 10304 Output #0, ac3, to 'output.ac3': Metadata: encoder : Lavf56.9.100 Stream #0:0(mul): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Metadata: encoder : Lavc56.4.101 ac3 Stream mapping: Stream #0:6 -> #0:0 (ac3 (native) -> ac3 (native)) Press [q] to stop, [?] for help [mpegts @ 040fdf60] PES packet size mismatch4.0kbits/s [ac3 @ 04654440] incomplete frame size= 210456kB time=01:14:49.72 bitrate= 384.0kbits/s video:0kB audio:210456kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% Encoding with your provided command line (altered to match my needs) produces the following output: E:\enc>ffmpeg -i input.ts -vf "framestep=2,scale=720x404" -sws_flags lanczos -vcodec libx264 -map 0:v -preset slow -level 3.1 -crf 19 -sar 1:1 -deblock -2:-2 -aq-strength 0.8 -acodec ac3 -map 0:6 -b:a 384k output2.mkv ffmpeg version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg developers built on Oct 8 2014 22:01:47 with gcc 4.9.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --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-zlib libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 4.101 / 56. 4.101 libavformat 56. 9.100 / 56. 9.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.103 / 5. 1.103 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 [h264 @ 0423c600] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0423c600] decode_slice_header error [h264 @ 0423c600] no frame! [h264 @ 0423c600] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0423c600] decode_slice_header error [h264 @ 0423c600] no frame! [h264 @ 0423c600] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0423c600] decode_slice_header error [h264 @ 0423c600] no frame! [h264 @ 0423c600] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0423c600] decode_slice_header error [h264 @ 0423c600] no frame! [h264 @ 0423c600] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0423c600] decode_slice_header error [h264 @ 0423c600] no frame! [h264 @ 0423c600] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0423c600] decode_slice_header error [h264 @ 0423c600] no frame! [NULL @ 02aaab40] start time for stream 8 is not set in estimate_timings_from_pts [mpegts @ 0420e000] PES packet size mismatch Last message repeated 3 times [mpegts @ 0420e000] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'input.ts': Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s Program 10301 Program 10302 Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 190 kb/s Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Program 10303 Program 10304 [libx264 @ 05469e80] using SAR=404/405 [libx264 @ 05469e80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2 [libx264 @ 05469e80] profile High, level 3.1 [libx264 @ 05469e80] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:-2:-2 analyse=0x3:0x113 me=umh su bme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate= 1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:0.80 Output #0, matroska, to 'output2.mkv': Metadata: encoder : Lavf56.9.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x404 [SAR 404:405 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc56.4.101 libx264 Stream #0:1(mul): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 384 kb/s Metadata: encoder : Lavc56.4.101 ac3 Stream mapping: Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:6 -> #0:1 (ac3 (native) -> ac3 (native)) Press [q] to stop, [?] for help [mpegts @ 0420e000] PES packet size mismatchtime=01:14:57.65 bitrate=1076.2kbits/s [ac3 @ 055b6500] incomplete frame frame=112493 fps=110 q=-1.0 Lsize= 591301kB time=01:15:00.80 bitrate=1076.2kbits/s video:378608kB audio:210918kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.301056% [libx264 @ 05469e80] frame I:958 Avg QP:15.73 size: 33004 [libx264 @ 05469e80] frame P:30266 Avg QP:18.51 size: 7312 [libx264 @ 05469e80] frame B:81269 Avg QP:21.13 size: 1658 [libx264 @ 05469e80] consecutive B-frames: 1.7% 2.9% 9.3% 86.1% [libx264 @ 05469e80] mb I I16..4: 11.9% 64.1% 24.0% [libx264 @ 05469e80] mb P I16..4: 2.0% 4.7% 1.2% P16..4: 41.1% 17.5% 11.5% 0.0% 0.0% skip:21.9% [libx264 @ 05469e80] mb B I16..4: 0.1% 0.2% 0.1% B16..8: 32.9% 4.2% 0.9% direct: 2.1% skip:59.3% L0:40.9% L1:49.1% BI:10.1% [libx264 @ 05469e80] 8x8 transform intra:59.3% inter:75.6% [libx264 @ 05469e80] direct mvs spatial:100.0% temporal:0.0% [libx264 @ 05469e80] coded y,uvDC,uvAC intra: 59.2% 66.8% 38.5% inter: 13.5% 17.0% 1.1% [libx264 @ 05469e80] i16 v,h,dc,p: 46% 21% 9% 25% [libx264 @ 05469e80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 9% 15% 8% 11% 12% 10% 10% 9% [libx264 @ 05469e80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 9% 6% 7% 11% 12% 10% 9% 9% [libx264 @ 05469e80] i8c dc,h,v,p: 42% 23% 24% 11% [libx264 @ 05469e80] Weighted P-Frames: Y:2.0% UV:0.8% [libx264 @ 05469e80] ref P L0: 53.5% 10.7% 19.6% 8.4% 7.1% 0.7% 0.0% [libx264 @ 05469e80] ref B L0: 80.3% 13.2% 4.5% 2.0% [libx264 @ 05469e80] ref B L1: 95.8% 4.2% [libx264 @ 05469e80] kb/s:689.28 It seems to need the -map 0:v switch or it won't encode the video stream. I've tested your command line with multiple files and it seems to work like a charm. I'll test some more later but for your assistance I offer you a big virtual cup of coffee and my thanks. However, it's still strange why separate encoding of video and audio would result in this delay. Cheerio! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828p4667836.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From barsnick at gmx.net Fri Oct 24 11:31:57 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 24 Oct 2014 11:31:57 +0200 Subject: [FFmpeg-user] ffmpeg Gopro and server In-Reply-To: <3247A4A5-C938-4457-A9F0-A7588518E972@gmail.com> References: <3247A4A5-C938-4457-A9F0-A7588518E972@gmail.com> Message-ID: <20141024093157.GB19587@sunshine.barsnick.net> Hi, On Thu, Oct 23, 2014 at 19:02:49 +0200, Francesco Menegoni wrote: > any suggestions are welcome ^__^ Similar to what Andrey replied: Life (and encoding) is more complicated than this. It seems you're not only a newbie on this list. ;-) You need to consider: What are your - target users and devices, - bandwidth/storage limitation (though you did mention what bandwidth you aim at); - conversion hardware capabilities and so on. Usually, when choosing codecs and encoding parameters, you pick e.g. the best of time, space, quality _for your needs_, but you never get the best of all three! > How can I estimate time for encoding? By experimenting. We don't know your hardware or any of the above. Take some time to look at how encoding works, and play around some. That's how most people here gathered their experience. Or get consultants. :) Just a kind hint, Moritz From francois.visagie at gmail.com Fri Oct 24 12:23:00 2014 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 24 Oct 2014 12:23:00 +0200 Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <1414142850660-4667836.post@n4.nabble.com> References: <1414084439652-4667828.post@n4.nabble.com> <1414142850660-4667836.post@n4.nabble.com> Message-ID: <006c01cfef74$81061ce0$831256a0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of marsupilami > Sent: 24 October 2014 11:28 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Automatic encoding of .ts files gives an > inexplicable delay after muxing > > Carl Eugen Hoyos wrote > > marsupilami > > > > elitemail.org> writes: > > > > What's wrong with the following? > > $ ffmpeg -i file.ts -vf yadif -vcodec libx264 -acodec ac3 out.mkv (You > > have to add the remaining options you need.) > > The main reason why I didn't try this sooner was because I was worried > ffmpeg wouldn't include the latest version of x264 or it would maybe be too > slow. However after trying out your command line I realised I was wrong and > maybe I was thinking too complex when there was a cleaner and simpler > solution available. > > Encoding with my command line produces the following output: > > E:\enc>ffmpeg -ss 00:00:10 -i input.ts -vf "framestep=2,scale=720x404" > -sws_flags lanczos -f yuv4mpegpipe -pix_fmt yuv420p - | x264_64.exe --stdin > y4m --level 3.1 --preset slow --crf 19.0 --deblo ck -2:-2 --aq-strength 0.8 --sar > 1:1 --output output.mkv - ffmpeg version N-66742-gf6777ce Copyright (c) > 2000-2014 the FFmpeg developers > built on Oct 8 2014 22:01:47 with gcc 4.9.1 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads -- > enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable- > gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b -- > enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm -- > enable-libilbc --enable-libmodplug --enable-libmp3lame --enable- > libopencore-amrnb --enable-libopencore-amrw b --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-zlib > libavutil 54. 10.100 / 54. 10.100 > libavcodec 56. 4.101 / 56. 4.101 > libavformat 56. 9.100 / 56. 9.100 > libavdevice 56. 1.100 / 56. 1.100 > libavfilter 5. 1.103 / 5. 1.103 > libswscale 3. 1.100 / 3. 1.100 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 1.100 / 53. 1.100 > [h264 @ 029df000] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 029df000] decode_slice_header error > [h264 @ 029df000] no frame! > [h264 @ 029df000] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 029df000] decode_slice_header error > [h264 @ 029df000] no frame! > [h264 @ 029df000] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 029df000] decode_slice_header error > [h264 @ 029df000] no frame! > [h264 @ 029df000] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 029df000] decode_slice_header error > [h264 @ 029df000] no frame! > [h264 @ 029df000] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 029df000] decode_slice_header error > [h264 @ 029df000] no frame! > [h264 @ 029df000] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 029df000] decode_slice_header error > [h264 @ 029df000] no frame! > [NULL @ 0426d300] start time for stream 8 is not set in > estimate_timings_from_pts [mpegts @ 0426e300] PES packet size mismatch > Last message repeated 3 times > [mpegts @ 0426e300] Could not find codec parameters for stream 0 > (Unknown: > none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value > for the 'analyzeduration' and 'probesize' > options > [mpegts @ 0426e300] PES packet size mismatch > Last message repeated 10 times > Input #0, mpegts, from 'input.ts': > Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s > Program 10301 > Program 10302 > Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) > Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, > 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc > Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) > Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > (hearing impaired) > Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, > 5.1(side), fltp, 448 kb/s > Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > Program 10303 > Program 10304 > Output #0, yuv4mpegpipe, to 'pipe:': > Metadata: > encoder : Lavf56.9.100 > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x404 [SAR > 404:405 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc > Metadata: > encoder : Lavc56.4.101 rawvideo > Stream mapping: > Stream #0:1 -> #0:0 (h264 (native) -> rawvideo (native)) Press [q] to stop, > [?] for help [yuv4mpegpipe @ 05140060] Encoder did not produce proper > pts, making some up. > y4m [info]: 720x404p 404:405 @ 25/1 fps (cfr) > x264 [info]: using SAR=1/1 > x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 > FMA3 LZCNT BMI2 > x264 [info]: profile High, level 3.1 > frame=112275 fps=121 q=0.0 Lsize=47840334kB time=01:14:51.00 > bitrate=87265.2kbits/s dup=14 drop=0 video:7017kB audio:0kB subtitle:0kB > other streams:0kB global headers:0kB muxing overhead: 681659.375000% > x264 [info]: frame I:954 Avg QP:15.72 size: 32986 > x264 [info]: frame P:30208 Avg QP:18.51 size: 7304 > x264 [info]: frame B:81113 Avg QP:21.12 size: 1656 > x264 [info]: consecutive B-frames: 1.7% 2.9% 9.3% 86.1% > x264 [info]: mb I I16..4: 11.9% 64.1% 24.0% > x264 [info]: mb P I16..4: 2.0% 4.7% 1.2% P16..4: 41.1% 17.5% 11.5% > 0.0% 0.0% skip:22.0% > x264 [info]: mb B I16..4: 0.1% 0.3% 0.1% B16..8: 32.9% 4.2% 0.9% > direct: 2.1% skip:59.4% L0:40.8% L1:49.1% BI:10.0% > x264 [info]: 8x8 transform intra:59.6% inter:75.6% > x264 [info]: direct mvs spatial:100.0% temporal:0.0% > x264 [info]: coded y,uvDC,uvAC intra: 59.1% 66.7% 38.4% inter: 13.5% 16.9% > 1.1% > x264 [info]: i16 v,h,dc,p: 46% 21% 9% 25% > x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 9% 15% 8% 11% 12% 10% 10% > 9% > x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 9% 5% 7% 11% 12% 10% 9% > 9% > x264 [info]: i8c dc,h,v,p: 42% 23% 24% 11% > x264 [info]: Weighted P-Frames: Y:2.0% UV:0.8% > x264 [info]: ref P L0: 53.6% 10.7% 19.6% 8.4% 7.1% 0.7% 0.0% > x264 [info]: ref B L0: 80.3% 13.2% 4.5% 1.9% > x264 [info]: ref B L1: 95.8% 4.2% > x264 [info]: kb/s:688.38 > > encoded 112275 frames, 121.31 fps, 688.39 kb/s > > For the sake of speed I omitted the -re switch. > > Audio encoding produces this output: > > E:\enc>ffmpeg -ss 00:00:10 -i input.ts -map 0:6 -b:a 384k output.ac3 ffmpeg > version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg developers > built on Oct 8 2014 22:01:47 with gcc 4.9.1 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads -- > enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable- > gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b -- > enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm -- > enable-libilbc --enable-libmodplug --enable-libmp3lame --enable- > libopencore-amrnb --enable-libopencore-amrw b --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-zlib > libavutil 54. 10.100 / 54. 10.100 > libavcodec 56. 4.101 / 56. 4.101 > libavformat 56. 9.100 / 56. 9.100 > libavdevice 56. 1.100 / 56. 1.100 > libavfilter 5. 1.103 / 5. 1.103 > libswscale 3. 1.100 / 3. 1.100 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 1.100 / 53. 1.100 > [h264 @ 0412b620] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0412b620] decode_slice_header error > [h264 @ 0412b620] no frame! > [h264 @ 0412b620] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0412b620] decode_slice_header error > [h264 @ 0412b620] no frame! > [h264 @ 0412b620] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0412b620] decode_slice_header error > [h264 @ 0412b620] no frame! > [h264 @ 0412b620] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0412b620] decode_slice_header error > [h264 @ 0412b620] no frame! > [h264 @ 0412b620] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0412b620] decode_slice_header error > [h264 @ 0412b620] no frame! > [h264 @ 0412b620] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0412b620] decode_slice_header error > [h264 @ 0412b620] no frame! > [NULL @ 0410f820] start time for stream 8 is not set in > estimate_timings_from_pts [mpegts @ 040fdf60] PES packet size mismatch > Last message repeated 3 times > [mpegts @ 040fdf60] Could not find codec parameters for stream 0 > (Unknown: > none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value > for the 'analyzeduration' and 'probesize' > options > [mpegts @ 040fdf60] PES packet size mismatch > Last message repeated 10 times > Input #0, mpegts, from 'input.ts': > Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s > Program 10301 > Program 10302 > Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) > Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, > 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc > Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) > Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > (hearing impaired) > Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, > 5.1(side), fltp, 448 kb/s > Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > Program 10303 > Program 10304 > Output #0, ac3, to 'output.ac3': > Metadata: > encoder : Lavf56.9.100 > Stream #0:0(mul): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s > Metadata: > encoder : Lavc56.4.101 ac3 > Stream mapping: > Stream #0:6 -> #0:0 (ac3 (native) -> ac3 (native)) Press [q] to stop, [?] for > help [mpegts @ 040fdf60] PES packet size mismatch4.0kbits/s > [ac3 @ 04654440] incomplete frame > size= 210456kB time=01:14:49.72 bitrate= 384.0kbits/s video:0kB > audio:210456kB subtitle:0kB other streams:0kB global headers:0kB muxing > overhead: 0.000000% > > Encoding with your provided command line (altered to match my needs) > produces the following output: > > E:\enc>ffmpeg -i input.ts -vf "framestep=2,scale=720x404" -sws_flags > lanczos -vcodec libx264 -map 0:v -preset slow -level 3.1 -crf 19 -sar 1:1 - > deblock > -2:-2 -aq-strength 0.8 -acodec ac3 -map 0:6 -b:a 384k output2.mkv ffmpeg > version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg developers > built on Oct 8 2014 22:01:47 with gcc 4.9.1 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads -- > enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable- > gnutls --enable-iconv --enable-libass --enable-libblu ray --enable-libbs2b -- > enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm -- > enable-libilbc --enable-libmodplug --enable-libmp3lame --enable- > libopencore-amrnb --enable-libopencore-amrw b --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-zlib > libavutil 54. 10.100 / 54. 10.100 > libavcodec 56. 4.101 / 56. 4.101 > libavformat 56. 9.100 / 56. 9.100 > libavdevice 56. 1.100 / 56. 1.100 > libavfilter 5. 1.103 / 5. 1.103 > libswscale 3. 1.100 / 3. 1.100 > libswresample 1. 1.100 / 1. 1.100 > libpostproc 53. 1.100 / 53. 1.100 > [h264 @ 0423c600] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0423c600] decode_slice_header error > [h264 @ 0423c600] no frame! > [h264 @ 0423c600] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0423c600] decode_slice_header error > [h264 @ 0423c600] no frame! > [h264 @ 0423c600] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0423c600] decode_slice_header error > [h264 @ 0423c600] no frame! > [h264 @ 0423c600] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0423c600] decode_slice_header error > [h264 @ 0423c600] no frame! > [h264 @ 0423c600] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0423c600] decode_slice_header error > [h264 @ 0423c600] no frame! > [h264 @ 0423c600] non-existing PPS 0 referenced > Last message repeated 1 times > [h264 @ 0423c600] decode_slice_header error > [h264 @ 0423c600] no frame! > [NULL @ 02aaab40] start time for stream 8 is not set in > estimate_timings_from_pts [mpegts @ 0420e000] PES packet size mismatch > Last message repeated 3 times > [mpegts @ 0420e000] Could not find codec parameters for stream 0 > (Unknown: > none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value > for the 'analyzeduration' and 'probesize' > options > Input #0, mpegts, from 'input.ts': > Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s > Program 10301 > Program 10302 > Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005) > Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, > 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc > Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) > Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > (hearing impaired) > Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, > 5.1(side), fltp, 448 kb/s > Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 190 kb/s > Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) > Program 10303 > Program 10304 > [libx264 @ 05469e80] using SAR=404/405 > [libx264 @ 05469e80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 > AVX > AVX2 FMA3 LZCNT BMI2 > [libx264 @ 05469e80] profile High, level 3.1 > [libx264 @ 05469e80] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC > codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: > cabac=1 > ref=5 deblock=1:-2:-2 analyse=0x3:0x113 me=umh su > bme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 > trellis=1 > 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 > threads=12 > lookahead_threads=2 sliced_threads=0 nr=0 decimate= > 1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 > b_pyramid=2 > b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 > keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf > mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 > aq=1:0.80 > Output #0, matroska, to 'output2.mkv': > Metadata: > encoder : Lavf56.9.100 > Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x404 > [SAR 404:405 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc > Metadata: > encoder : Lavc56.4.101 libx264 > Stream #0:1(mul): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, > 384 kb/s > Metadata: > encoder : Lavc56.4.101 ac3 > Stream mapping: > Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264)) > Stream #0:6 -> #0:1 (ac3 (native) -> ac3 (native)) Press [q] to stop, [?] for > help [mpegts @ 0420e000] PES packet size mismatchtime=01:14:57.65 > bitrate=1076.2kbits/s > [ac3 @ 055b6500] incomplete frame > frame=112493 fps=110 q=-1.0 Lsize= 591301kB time=01:15:00.80 > bitrate=1076.2kbits/s video:378608kB audio:210918kB subtitle:0kB other > streams:0kB global headers:0kB muxing overhead: 0.301056% > [libx264 @ 05469e80] frame I:958 Avg QP:15.73 size: 33004 > [libx264 @ 05469e80] frame P:30266 Avg QP:18.51 size: 7312 > [libx264 @ 05469e80] frame B:81269 Avg QP:21.13 size: 1658 > [libx264 @ 05469e80] consecutive B-frames: 1.7% 2.9% 9.3% 86.1% > [libx264 @ 05469e80] mb I I16..4: 11.9% 64.1% 24.0% > [libx264 @ 05469e80] mb P I16..4: 2.0% 4.7% 1.2% P16..4: 41.1% 17.5% > 11.5% 0.0% 0.0% skip:21.9% > [libx264 @ 05469e80] mb B I16..4: 0.1% 0.2% 0.1% B16..8: 32.9% 4.2% 0.9% > direct: 2.1% skip:59.3% L0:40.9% L1:49.1% BI:10.1% > [libx264 @ 05469e80] 8x8 transform intra:59.3% inter:75.6% > [libx264 @ 05469e80] direct mvs spatial:100.0% temporal:0.0% > [libx264 @ 05469e80] coded y,uvDC,uvAC intra: 59.2% 66.8% 38.5% inter: > 13.5% 17.0% 1.1% > [libx264 @ 05469e80] i16 v,h,dc,p: 46% 21% 9% 25% > [libx264 @ 05469e80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 9% 15% 8% 11% 12% > 10% 10% 9% > [libx264 @ 05469e80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 9% 6% 7% 11% 12% > 10% 9% 9% > [libx264 @ 05469e80] i8c dc,h,v,p: 42% 23% 24% 11% > [libx264 @ 05469e80] Weighted P-Frames: Y:2.0% UV:0.8% > [libx264 @ 05469e80] ref P L0: 53.5% 10.7% 19.6% 8.4% 7.1% 0.7% 0.0% > [libx264 @ 05469e80] ref B L0: 80.3% 13.2% 4.5% 2.0% > [libx264 @ 05469e80] ref B L1: 95.8% 4.2% > [libx264 @ 05469e80] kb/s:689.28 > > It seems to need the -map 0:v switch or it won't encode the video stream. > I've tested your command line with multiple files and it seems to work like a > charm. I'll test some more later but for your assistance I offer you a big virtual > cup of coffee and my thanks. However, it's still strange why separate > encoding of video and audio would result in this delay. >From my experience I'd say it has to do with the piping. Although I encoded to other formats, using piped inputs has introduced similar audio-video offsets for me, but only with certain inputs. > > Cheerio! > > > > -- > View this message in context: http://ffmpeg- > users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an- > inexplicable-delay-after-muxing-tp4667828p4667836.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 cehoyos at ag.or.at Fri Oct 24 12:52:25 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 24 Oct 2014 10:52:25 +0000 (UTC) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing References: <1414084439652-4667828.post@n4.nabble.com> <1414142850660-4667836.post@n4.nabble.com> Message-ID: marsupilami elitemail.org> writes: > The main reason why I didn't try this sooner was > because I was worried ffmpeg wouldn't include > the latest version of x264 It is entirely up to you which version of x264 you use when you compile FFmpeg (remember that the project FFmpeg only ships source code and only supports the source code). > or it would maybe be too slow. Video encoding is exactly as fast as x264 allows (with your compilation options and your runtime options), overall speed is of course faster if you don't use separate encodings. Carl Eugen From cehoyos at ag.or.at Fri Oct 24 12:59:31 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 24 Oct 2014 10:59:31 +0000 (UTC) Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) References: Message-ID: Carles Vila gmail.com> writes: > --enable-libopenjpeg > --disable-decoder=jpeg2000 I know why you are doing this (and I recommended it often) but it makes detection of xyz impossible. We should probably work on this but I suspect the easiest solution is to compile without "--disable-encoder" and specify the decoder you want: $ ffmpeg -vcodec libopenjpeg -i input.mxf This will use the internal decoder only to decide the pix_fmt but will use the (bitexact!) libopenjpeg decoder for actual decoding. Carl Eugen From cvilad at gmail.com Fri Oct 24 13:25:46 2014 From: cvilad at gmail.com (Carles Vila) Date: Fri, 24 Oct 2014 13:25:46 +0200 Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) In-Reply-To: References: Message-ID: Hi! Mitch, Thanks for taking the time and do the test. This confirms the problem is on my side. And Carl Eugen, thanks for knowing what I'm talking about! I installed ffmpeg one week ago on my mac via homebrew, using this command: brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools So, in theory nothing would be disabled. Should I compile ffmpeg in some other way? Thank you On 24 October 2014 12:59, Carl Eugen Hoyos wrote: > Carles Vila gmail.com> writes: > > > --enable-libopenjpeg > > > --disable-decoder=jpeg2000 > > I know why you are doing this (and I recommended it often) > but it makes detection of xyz impossible. > > We should probably work on this but I suspect the easiest > solution is to compile without "--disable-encoder" and > specify the decoder you want: > $ ffmpeg -vcodec libopenjpeg -i input.mxf > This will use the internal decoder only to decide the > pix_fmt but will use the (bitexact!) libopenjpeg > decoder for actual decoding. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From belcampo at zonnet.nl Fri Oct 24 15:52:39 2014 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Fri, 24 Oct 2014 15:52:39 +0200 Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <1414084439652-4667828.post@n4.nabble.com> References: <1414084439652-4667828.post@n4.nabble.com> Message-ID: <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> On 23 Oct 2014, at 19:13, marsupilami wrote: > Hello, > > I'm experiencing a weird problem which I will try to describe in the > following post. > > Currently, I'm writing a perl script for automatic encoding of MPEG-TS files > using ffmpeg and x264. I'm having ffmpeg apply video filters like resize, > deinterlace and so on and am then sending the output to x264 via stdout, > which will result in a mkv file. The audio is encoded in a separate ffmpeg > instance to AC3. For testing and checking purposes I'm later muxing the > resulting mkv and ac3 files to form a new mkv file. Both ffmpeg instances > (for video and audio encoding) start at the same position in the .ts file, > or at least so I'm assuming. > > For some weird reason I'm getting an unpredictable audio delay after muxing > (with mkvmerge). It is always a negative value, ranging from -300 ms to > -1000 ms audio delay. The delay is a constant value, so by remuxing the two > output files with some delay added, it'll be sync for the rest of the file. > Yet the delay changes for different files and I can't understand why it does > that and how to fix it. After some googling and reading man pages I tried > skipping the first 10 seconds of both audio and video and checked if it > would fix the problem - unfortunately it didn't, the delay was still there > and still an unpredictable value. The source files almost always have audio or video delayed from each other. If you encode both video and audio in one step they are kept synchronised. If you separately encode audio and thereafter video the audio encoding starts -ss 00:00:10 after the first audio part and the video encoding starts -ss 00:00:10 after the first video part, so the ?original? delay between video and audio is lost. Everything AFAIK. > > Another thing which I was thinking of trying was to get ffmpeg to encode > video and audio in one instance - however I do not know how to accomplish > that and I'm not even sure if it would fix the problem. ffmpeg would have to > send the video output to stdout (piping to x264) and the audio output to an > ac3 file. > > Here's the command lines I've been using: (I should mention the .ts files > are being encoded as they're written to the disk - hence the -re switch; > however "non-live" encoding doesn't fix things) > > Video: > ffmpeg -hide_banner -loglevel quiet -re -ss 00:00:10 -i file.ts -vf > "yadif=0:0:0,scale=720x404" -sws_flags lanczos -f yuv4mpegpipe -pix_fmt > yuv420p - | x264_64.exe --stdin y4m --level 3.1 --output output.mkv - > > Audio: > ffmpeg -hide_banner -loglevel quiet -re -ss 00:00:10 -i file.ts -map #0:7 > -b:a 384k output.ac3 > > The script is running on a windows box. I've tried google lots of times but > I can't seem to find a solution to this problem. Would you mind giving me a > push into the right direction? I feel like I'm running into a wall here. > > Greetings > > > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828.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 -------------- 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 steigensonne at gmail.com Fri Oct 24 19:29:53 2014 From: steigensonne at gmail.com (EILWOO BAIK) Date: Fri, 24 Oct 2014 10:29:53 -0700 Subject: [FFmpeg-user] Questions on loglevel Message-ID: <819DAAC8-595C-43EC-B5F0-12ACF1B36FB3@gmail.com> Dear all, I need to have your help and advice for my problem. I installed ffmpeg in fedora 16 by using yum command. After it, I try to run the ffmpeg with option "-loglevel panic" (or others like error, debug, etc). But, whatever value for the option I put, it does not have any changes. I would like to use the -loglevel panic or quiet, but it does not work. It always shows in default mode (like info). Please help me how to solve this problem. The attached screenshot is the result when I put the option "-loglevel panic" Please help~~~. I need your advice and helps. I appreciate of your helps in advance. Best Regards, Eilwoo From cehoyos at ag.or.at Sat Oct 25 00:10:36 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 24 Oct 2014 22:10:36 +0000 (UTC) Subject: [FFmpeg-user] Questions on loglevel References: <819DAAC8-595C-43EC-B5F0-12ACF1B36FB3@gmail.com> Message-ID: EILWOO BAIK gmail.com> writes: > The attached screenshot Please do not send screenshots to this mailing list. Instead just post the output of "$ ffmpeg -loglevel panic" Carl Eugen From cehoyos at ag.or.at Sat Oct 25 00:12:49 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 24 Oct 2014 22:12:49 +0000 (UTC) Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) References: Message-ID: Carles Vila gmail.com> writes: > I installed ffmpeg one week ago on my mac via > homebrew, using this command: > brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype > --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis > --with-libvpx --with-opencore-amr --with-openjpeg --with-opus > --with-rtmpdump --with-schroedinger --with-speex --with-theora > --with-tools This does not look like a FFmpeg configure command. Please understand that we don't support any other means of installing here than running configure and make. Please don't top-post, Carl Eugen From kinglag at gmail.com Sat Oct 25 03:05:22 2014 From: kinglag at gmail.com (Daniel Schultze) Date: Fri, 24 Oct 2014 18:05:22 -0700 Subject: [FFmpeg-user] trouble with serving rtsp Message-ID: Hello All, I'm trying to serve an mp4 video over rtsp but for some reason ffplay will not play the video stream. I am at a loss about what to do next. Please advise on how I can view the stream via rtsp. # O/S info $ uname -r 3.16.6-200.fc20.x86_64 ###### # ffserver.conf ###### HTTPPort 8080 RTSPPort 8554 HTTPBindAddress 0.0.0.0 RTSPBindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000 CustomLog - ACL allow localhost ACL allow 127.0.0.1 ACL allow 192.168.0.0 192.168.255.255 NoAudio Format rtsp Feed mycam1.ffm ###### # ffserver output # built from 2.4.2 source release (2.1.5 was originally tried with the same errors) ###### $ ./ffserver -v verbose ffserver version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 24 2014 17:26:26 with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-7) configuration: --enable-nonfree libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 Fri Oct 24 17:46:37 2014 FFserver started. # ffmpeg stream connect Fri Oct 24 17:49:04 2014 127.0.0.1 - - [GET] "/mycam1.ffm HTTP/1.1" 200 4175 # $ ffplay -v debug rtsp://localhost:8080/mycam1 Fri Oct 24 17:49:17 2014 127.0.0.1 - - [OPTIONS] " " 200 0 # ffplay -v debug rtsp://localhost:8554/mycam1 Fri Oct 24 17:49:26 2014 127.0.0.1 - - [DESCRIBE] "rtsp://localhost:8554/mycam1 RTSP/1.0" 200 157 # $ ffplay -v debug http://localhost:8554/mycam1 Fri Oct 24 17:52:16 2014 127.0.0.1 - - [GET] "/mycam1 HTTP/1.1" 200 89 # $ ffplay -v debug http://localhost:8080/mycam1 Fri Oct 24 17:53:13 2014 [rtsp @ 0x2a60370]Codec for stream 0 does not use global headers but container format requires global headers Fri Oct 24 17:53:13 2014 [rtsp @ 0x2a60370]Codec for stream 1 does not use global headers but container format requires global headers Fri Oct 24 17:53:13 2014 [tcp @ 0x2a68600]Connection to tcp://:554?timeout=0 failed (Connection refused), trying next address Fri Oct 24 17:53:13 2014 [tcp @ 0x2a68600]Connection to tcp://:554?timeout=0 failed: Connection refused Fri Oct 24 17:53:13 2014 Error writing output header for stream 'mycam1': Input/output error Fri Oct 24 17:53:13 2014 127.0.0.1 - - [GET] "/mycam1 HTTP/1.1" 200 79 ###### # ffprobe ###### $ ffprobe cam1.mp4 ffprobe version 2.1.5 Copyright (c) 2007-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 'cam1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : IP Camera Video encoder : Lavf55.19.104 comment : videoMain Duration: 00:44:31.00, start: 0.000000, bitrate: 389 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 389 kb/s, 1 fps, 1 tbr, 16384 tbn, 2 tbc (default) Metadata: handler_name : VideoHandler ###### # ffmpeg # rpm fusion release ###### $ ffmpeg -r 1 -i /tmp/cam1.mp4 -f lavfi -i aevalsrc=0 -c:a pcm_s16le -vcodec copy -strict -2 http://127.0.0.1:8080/mycam1.ffm ffmpeg version 2.1.5 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 '/tmp/cam1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : IP Camera Video encoder : Lavf55.19.104 comment : videoMain Duration: 00:44:31.00, start: 0.000000, bitrate: 389 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 389 kb/s, 1 fps, 1 tbr, 16384 tbn, 2 tbc (default) Metadata: handler_name : VideoHandler Input #1, lavfi, from 'aevalsrc=0': Duration: N/A, start: 0.000000, bitrate: 2822 kb/s Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s Output #0, ffm, to 'http://127.0.0.1:8080/mycam1.ffm': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : IP Camera Video creation_time : now comment : videoMain encoder : Lavf55.19.104 Stream #0:0: Audio: aac, 22050 Hz, mono, fltp, 128 kb/s Stream #0:1(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 389 kb/s, 1 fps, 1000k tbn, 1 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #1:0 -> #0:0 (pcm_f64le -> aac) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help ###### # ffplay # attempt 1/4 $ ffplay -v debug rtsp://localhost:8080/mycam1 ffplay version 2.1.5 Copyright (c) 2003-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 [tcp @ 0x7fb3a4001620] Connection to tcp://localhost:8080?timeout=0 failed (Connection refused), trying next address rtsp://localhost:8080/mycam1: Invalid data found when processing input ###### # ffplay # attempt 2/4 $ ffplay -v debug rtsp://localhost:8554/mycam1 ffplay version 2.1.5 Copyright (c) 2003-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 [tcp @ 0x7f8fa4001620] Connection to tcp://localhost:8554?timeout=0 failed (Connection refused), trying next address [rtsp @ 0x7f8fa40008c0] method DESCRIBE failed: 404 Not Found [rtsp @ 0x7f8fa40008c0] CSeq: 2 Date: Sat, 25 Oct 2014 00:49:26 GMT rtsp://localhost:8554/mycam1: Invalid data found when processing input ###### # ffplay # attempt 3/4 ffplay -v debug http://localhost:8554/mycam1 ffplay version 2.1.5 Copyright (c) 2003-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 [tcp @ 0x7f3ee0005720] Connection to tcp://localhost:8554 failed (Connection refused), trying next address [http @ 0x7f3ee0001620] HTTP error 505 RTSP Version not Supported http://localhost:8554/mycam1: Input/output error ###### # ffplay # attempt 4/4 $ ffplay -v debug rtsp://localhost:8554/mycam1 ffplay version 2.1.5 Copyright (c) 2003-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) 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 [tcp @ 0x7f8fa4001620] Connection to tcp://localhost:8554?timeout=0 failed (Connection refused), trying next address [rtsp @ 0x7f8fa40008c0] method DESCRIBE failed: 404 Not Found [rtsp @ 0x7f8fa40008c0] CSeq: 2 Date: Sat, 25 Oct 2014 00:49:26 GMT rtsp://localhost:8554/mycam1: Invalid data found when processing input From cehoyos at ag.or.at Sat Oct 25 14:09:42 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 25 Oct 2014 12:09:42 +0000 (UTC) Subject: [FFmpeg-user] MP3 enconding bitrate References: <5447FD04.80602@gmail.com> Message-ID: Paulo Fidalgo gmail.com> writes: > I have trouble to get the mp3 encoded right to play > on my Volvo Infotainment System (Sensus 3.0), so I > have contacted the costumer support, and they told > me that the files are being encoding with frames > with more than 320Kbps of bitrate. Please ask them to explain which frame has >320kb, I don't think it's true, see below. > Since I don't have a tool to debug it, I've tried to > see in codec statistics in VLC, which for the files > I'm showing as example I've seen 380Kbps near 3:31 > mins. I played the encoded file you uploaded with vlc, it does not show a bitrate of >320 here at any time. I then analyzed the file you uploaded: $ ffmpeg -i outff.mp3 -acodec copy -f image2 -map 0 out%5d The largest mp3 frame in your encoded file is 960 bytes which corresponds to 320kb/s. Maybe you should test the following to verify: $ lame -b 320 input.wav out320.mp3 $ lame -b 256 input.wav out256.mp3 Do both files play in your car? Or only the second? > I believe it's a bug on ffmpeg, although I'm not sure, > so I'm asking for advice here, since encoding with the > lame it works like a charm. lame documentation states that the default for lame's -q option is 5 but if you use -V, the default is lower (4 or smaller for your input sample). This may be a bug, either in the documentation of FFmpeg (because it states that FFmpeg's option -q corresponds to -V which is mostly does but not exactly) or because FFmpeg sets lame's -q to 5 if you don't specify anything else. > I've encoded with this command: > > ffmpeg -i 2L38_01_96kHz.flac -codec:a libmp3lame > -qscale:a 0 2L38_01_96kHz.mp3 Please test with -compression_level 4, this should produce output files more similar with lame. Carl Eugen From felix.klee at inka.de Sat Oct 25 21:35:57 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sat, 25 Oct 2014 20:35:57 +0100 Subject: [FFmpeg-user] Switching live streams without interruption? Message-ID: I'm streaming to Wowza: $ ffmpeg -re -i sintel_trailer-480p.mp4 -c copy -f flv \ rtmp://192.168.56.1/live/myStream *How do I switch to another stream once playback has finished?* Note that when playback of the first stream starts, it is not clear what will be the next stream. So something like a playlist won't work. From felix.klee at inka.de Sat Oct 25 21:39:28 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sat, 25 Oct 2014 20:39:28 +0100 Subject: [FFmpeg-user] Streaming a single image? Message-ID: Say, I have a TV channel and, at night time, I want to broadcast a [test pattern][1], then: *How do I approach that? Should I convert the image into a video and loop that? How?* It's just a JPEG image. No sound needs to be streamed. [2]: http://de.wikipedia.org/wiki/Testbild#mediaviewer/File:FuBK-Testbild.png From dopelabs at dubstep.fm Sat Oct 25 21:48:14 2014 From: dopelabs at dubstep.fm (DopeLabs) Date: Sat, 25 Oct 2014 12:48:14 -0700 Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: Message-ID: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> you might want to check out the stream class controller http://www.wowza.com/forums/content.php?187 there is also http://www.wowza.com/forums/content.php?145-How-to-schedule-streaming-with-Wowza-Streaming-Engine-(StreamPublisher) and http://www.wowza.com/forums/content.php?468-How-to-loop-a-pre-roll-until-a-live-stream-starts > On Oct 25, 2014, at 12:35 PM, Felix E. Klee wrote: > > I'm streaming to Wowza: > > $ ffmpeg -re -i sintel_trailer-480p.mp4 -c copy -f flv \ > rtmp://192.168.56.1/live/myStream > > *How do I switch to another stream once playback has finished?* > > Note that when playback of the first stream starts, it is not clear > what will be the next stream. So something like a playlist won't work. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From felix.klee at inka.de Sat Oct 25 21:53:50 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sat, 25 Oct 2014 20:53:50 +0100 Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> References: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> Message-ID: > http://www.wowza.com/... Thanks for the links, but: *Can't I do that from ffmpeg?* Thing is, I want to script switching of streams, and I want to have the option to later use another server for broadcasting. From dopelabs at dubstep.fm Sat Oct 25 21:56:30 2014 From: dopelabs at dubstep.fm (DopeLabs) Date: Sat, 25 Oct 2014 12:56:30 -0700 Subject: [FFmpeg-user] Streaming a single image? In-Reply-To: References: Message-ID: i have also not yet found a way to loop video files.. but you can loop an image (or image sequence) i use this for some of my radio stations? ( -re -loop 1 -i /path/to/image.jpg ) ffmpeg -i http://shoutcasthost.com:8000 -re -loop 1 -i /path/to/image.jpg -c:a libfdk_aac -b:a 192k -c:v h264 -preset ultrafast -pix_fmt yuvj420p -bsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10000?pkt_size=1316 > On Oct 25, 2014, at 12:39 PM, Felix E. Klee wrote: > > Say, I have a TV channel and, at night time, I want to broadcast a > [test pattern][1], then: > > *How do I approach that? Should I convert the image into a video and > loop that? How?* > > It's just a JPEG image. No sound needs to be streamed. > > [2]: http://de.wikipedia.org/wiki/Testbild#mediaviewer/File:FuBK-Testbild.png > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From felix.klee at inka.de Sat Oct 25 22:10:00 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sat, 25 Oct 2014 21:10:00 +0100 Subject: [FFmpeg-user] Streaming a single image? In-Reply-To: References: Message-ID: On Sat, Oct 25, 2014 at 8:56 PM, DopeLabs wrote: > ffmpeg -i http://shoutcasthost.com:8000 -re -loop 1 -i > /path/to/image.jpg -c:a libfdk_aac -b:a 192k -c:v h264 -preset > ultrafast -pix_fmt yuvj420p -bsf h264_mp4toannexb -f mpegts > udp://127.0.0.1:10000?pkt_size=1316 Thanks! I modified that a little, and now it works for DASH broadcasting with Wowza: $ ffmpeg -re -loop 1 -i image.jpg -c:v h264 -preset ultrafast \ -pix_fmt yuvj420p -bsf aac_adtstoasc -f flv \ rtmp://192.168.56.1/live/myStream From l1 at newanswertech.com Sat Oct 25 22:41:41 2014 From: l1 at newanswertech.com (Luke Davis) Date: Sat, 25 Oct 2014 16:41:41 -0400 (EDT) Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> Message-ID: On Sat, 25 Oct 2014, Felix E. Klee wrote: > Thanks for the links, but: *Can't I do that from ffmpeg?* > > Thing is, I want to script switching of streams, and I want to have > the option to later use another server for broadcasting. Unless I am mistaken (I have only done this with audio, icecast, etc.), your problem is that any break in the stream will disconnect clients, or at least inconvenience them rather a bit. Thus, the solution has to be server side, in which case you need a fallback stream to fill the gaps. Even if only used briefly, if your server supports it, you fall back to a holding pattern stream (company logo looped or something), and then stream in your new content from the script. Even that will make discontinuities, and I have no idea if Wowza or anything else supports it. Unless your server supports holding client connections open during a disconnect-reconnect cycle of the source client, which is what will happen here. One possible ffmpeg-only solution comes to mind. This is a bit out there. Feed your ffmpeg source client from a segmented MpegTS stream. In other words, feed it from HLS generated locally. Ffmpeg instance one generates a segmented stream for five minutes, then exits. Meanwhile, ffmpeg two (source client) takes that stream and sends it to Wowza/whatever server. When ffmpeg one stops, with maybe eight seconds left in the last segment (assuming ffmpeg two is keeping up, and 10 second segments): Ffmpeg three starts, generating segments with numbering starting where ffmpeg one left off (you'll likely need to `tail` the .m3u8 file to figure out where to start). I believe that ffmpeg two, which is taking the segments and compiling them to send as a stream to the server, will not know the difference between one origin stream and another, since their all just segments as far as it's concerned. Not having tried this, my only worry at the moment is catch-up. Every time you do this, the source client (ffmpeg two in the above plan) will get a little closer to falling off the end of your segments. Good luck. The entirety of this email is speculative, and could be punctured with a dull pin. Luke From felix.klee at inka.de Sat Oct 25 22:54:14 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sat, 25 Oct 2014 21:54:14 +0100 Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> Message-ID: Thanks Luke! Hm, I thought it was standard feature. But being not, I guess I'll first look at Wowza which seems to be scriptable with ActionScript. Fortunately, I've used ActionScript before: Many years ago, I wrote a streaming video player, based on AMS. Anyhow, there must be a smooth solution. l just can't believe that it's not possible to run something akin to a TV station on the Internet. From l1 at newanswertech.com Sat Oct 25 23:36:49 2014 From: l1 at newanswertech.com (Luke Davis) Date: Sat, 25 Oct 2014 17:36:49 -0400 (EDT) Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> Message-ID: On Sat, 25 Oct 2014, Felix E. Klee wrote: > Thanks Luke! Hm, I thought it was standard feature. But being not, I Of ffmpeg? The ability to add to the list of sources after the process has started? I highly doubt it. I have never seen a feature like that in ffmpeg described. Maybe you need the ability to read a list of sources from STDIN on an as-needed basis? But don't take my word for it Felix, I could still be quite wrong. The requirement for continuous video is how I *think* it works, and that weird segmenting idea is the only way I can think of using only ffmpeg to do it. I would imagine that if there is another way to have ffmpeg stream from a file, and add to that file dynamically, you could accomplish the same thing, but I still think you would need a headerless format (I.E. MPEGTS) to make it work. I am no authority on this, I just wanted to present a possible answer that nobody else mentioned. > guess I'll first look at Wowza which seems to be scriptable with > ActionScript. Fortunately, I've used ActionScript before: Many years > ago, I wrote a streaming video player, based on AMS. If I recall, Wowza has a JAVA API as well, if you want to get really serious about it. But your problem hasn't changed, you just moved it from the source to the server. It may be that Wowza already has a connection keeping feature for this. Present it on their list and see what you get. > Anyhow, there must be a smooth solution. l just can't believe that > it's not possible to run something akin to a TV station on the > Internet. I'm sure you can, as long as you can avoid interrupting the stream. Which was my whole point. You would seem to need a constant stream, with ability to switch sources in and out of it on the fly. But there always has to be something streaming, even in the short gap between sources. Someone correct me if I'm wrong please. Luke From dopelabs at dubstep.fm Sun Oct 26 01:26:52 2014 From: dopelabs at dubstep.fm (DopeLabs) Date: Sat, 25 Oct 2014 16:26:52 -0700 Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: <4B6528D3-0556-4CD5-A2E4-198C73B48E1E@dubstep.fm> Message-ID: <9A9155C1-B249-4A8B-A86D-091F9B5E8737@dubstep.fm> i have the publisher/controller/loop until live all setup/automated with ffmpeg providing 4 live streams which rotate this allows me to have a ?main stream? in which the wowza server rotates content on a time based schedule. the cut between streams is very subtle. the 2 modules im using are stream publisher and loop until live in wowza/conf/live/Application.xml ModuleStreamPublisher ModuleStreamPublisher com.wowza.wms.plugin.collection.module.ModuleStreamPublisher ModuleLoopUntilLive ModuleLoopUntilLive com.wowza.wms.plugin.collection.module.ModuleLoopUntilLive streamPublisherSmilFile streamschedule.smil loopUntilLiveStream djstream loopUntilLiveOutStream dubstepfm loopUntilLiveReloadEntirePlaylist true loopUntilLiveHandleMediaCasters true in wowza/content/streamschedule.smil in wowza/content/wavespoint.stream udp://127.0.0.1:10040 in wowza/content/wavesline.stream udp://127.0.0.1:10030 in wowza/content/spectrum2.stream udp://127.0.0.1:10020 in wowza/content/spectrum1.stream udp://127.0.0.1:10010 and finally the ffmpeg instances that create the audio viz ffmpeg -i http://stream.dubstep.fm:5000 -filter_complex showwaves=s=1280x720:mode=point,drawtext=fontfile=d3.ttf:fontsize=28:fontcolor=white:textfile=dsfm.tv.txt:y=10:x=10 -c:v libx264 -b:v 3000k -pix_fmt yuv420p -c:a copy -preset ultrafast -bsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10040?pkt_size=1316 ffmpeg -i http://stream.dubstep.fm:5000 -filter_complex showwaves=s=1280x720:mode=line,drawtext=fontfile=/d3.ttf:fontsize=28:fontcolor=white:textfile=dsfm.tv.txt:y=10:x=10 -c:v libx264 -preset ultrafast -b:v 3000k -pix_fmt yuv420p -c:a copy -bsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10030?pkt_size=1316 ffmpeg -i http://stream.dubstep.fm:5000 -filter_complex showspectrum=mode=separate:s=1280x720,drawtext=fontfile=d3.ttf:fontsize=28:fontcolor=white:textfile=dsfm.tv.txt:y=10:x=10 -c:v libx264 -b:v 3000k -pix_fmt yuv420p -c:a copy -preset ultrafast -bsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10020?pkt_size=1316 ffmpeg -i http://stream.dubstep.fm:5000 -filter_complex showspectrum=s=1280x720,drawtext=fontfile=d3.ttf:fontsize=28:fontcolor=white:textfile=dsfm.tv.txt:y=10:x=10 -c:v libx264 -preset ultrafast -b:v 3000k -pix_fmt yuv420p -c:a copy -bsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10010?pkt_size=1316 to sum it all up im generating 2 spectrograms and 2 waveforms using the audio from a shoutcast server. each one plays for 24 hours before switching to the next one in the list. if a stream is published with the name djstream, it will immediately switch to that content? once djstream is finished it goes back to the schedule again, rotating once every 24 hours to the next stream? the single i believe the app type has to be ?live? for most of this stuff to work, and i dont think you can switch to a stream published to a different app. results -> http://dsfm.tv ok enough wowza on the ffmpeg list.. let me know if you have any q?s, etc cheers! > On Oct 25, 2014, at 1:54 PM, Felix E. Klee wrote: > > Thanks Luke! Hm, I thought it was standard feature. But being not, I > guess I'll first look at Wowza which seems to be scriptable with > ActionScript. Fortunately, I've used ActionScript before: Many years > ago, I wrote a streaming video player, based on AMS. > > Anyhow, there must be a smooth solution. l just can't believe that > it's not possible to run something akin to a TV station on the > Internet. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From felix.klee at inka.de Sun Oct 26 02:41:14 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sun, 26 Oct 2014 01:41:14 +0000 Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: Message-ID: I?ve been thinking: For gapless playback, it?s probably best to have two video streams running, and then switch between these with some kind of mixer. As I?ve just found out, software implementations of mixers for video are called [Software vision mixers][1]. [1]: http://en.wikipedia.org/wiki/Software_vision_mixer From dave at dericed.com Sun Oct 26 04:10:34 2014 From: dave at dericed.com (Dave Rice) Date: Sat, 25 Oct 2014 23:10:34 -0400 Subject: [FFmpeg-user] Introduction and problem with decoding DCP (jpeg2000 wrapped in MXF) In-Reply-To: References: Message-ID: Hi Carles, > On Oct 24, 2014, at 7:25 AM, Carles Vila wrote: > > Hi! > Mitch, Thanks for taking the time and do the test. This confirms the > problem is on my side. > And Carl Eugen, thanks for knowing what I'm talking about! > I installed ffmpeg one week ago on my mac via homebrew, using this command: > > brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype > --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis > --with-libvpx --with-opencore-amr --with-openjpeg --with-opus > --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools > > So, in theory nothing would be disabled. Should I compile ffmpeg in some > other way? When homebrew builds ffmpeg with openjpeg it disables jpeg2000 (see this commit: https://github.com/Homebrew/homebrew/commit/66a7aa83fdba702a7981744a3db564fc3b953297). This was done because as the commit note says the jpeg2000 encoder/decoder "mostly doesn't work". To build an ffmpeg as Carl suggests, run `brew edit ffmpeg`, and delete this line `args << "--disable-decoder=jpeg2000"`. Dave Rice > Thank you > > On 24 October 2014 12:59, Carl Eugen Hoyos wrote: > >> Carles Vila gmail.com> writes: >> >>> --enable-libopenjpeg >> >>> --disable-decoder=jpeg2000 >> >> I know why you are doing this (and I recommended it often) >> but it makes detection of xyz impossible. >> >> We should probably work on this but I suspect the easiest >> solution is to compile without "--disable-encoder" and >> specify the decoder you want: >> $ ffmpeg -vcodec libopenjpeg -i input.mxf >> This will use the internal decoder only to decide the >> pix_fmt but will use the (bitexact!) libopenjpeg >> decoder for actual decoding. >> >> 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 diogopmserrano at gmail.com Thu Oct 23 18:06:43 2014 From: diogopmserrano at gmail.com (Diogo Serrano) Date: Thu, 23 Oct 2014 17:06:43 +0100 Subject: [FFmpeg-user] Segment times dynamic. Wrong durations Message-ID: Hi, i have this command. I want to generate different times for my ts files. My command: ffmpeg -y -i rod.mp4 -force_key_frames 2,2,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9 -codec:v libx264 -r 25 -g 25 -codec:a libfdk_aac -f stream_segment -segment_times 2,2,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9 -segment_format mpegts But this command generate ts files with wrong durations. The espected result is: 00.ts -> 2 seconds 01.ts -> 2 seconds 02.ts -> 3 seconds 03.ts -> 3 seconds ..... ..... ..... Last ts file is 9 seconds. The sum of all this number is the duration of the video. Thanks From jingshaoqi at 163.com Thu Oct 23 10:45:22 2014 From: jingshaoqi at 163.com (=?GBK?B?s8K0zbOj?=) Date: Thu, 23 Oct 2014 16:45:22 +0800 (CST) Subject: [FFmpeg-user] What's ffmpeg command line convert H265 mkv file to H265 ts file? Message-ID: <7aa8dce4.b82f.1493c2e880e.Coremail.jingshaoqi@163.com> HI? I have been confused several days, how I convert a video (H265 format,MkV) to H265 ts file, my command line as follow: ffmpeg -y -i tos-4096x1720-tiles.mkv -r 24 -b:v 2300000 -c:v libx265 -x265-params crf=26:psy-rd=1:subme=3:merange=32:bframes=2:b-adapt=1:rc-lookahead=10:keyint=200:min-keyint=50:open-gop=1:bitrate=2000:threads=64 -acodec copy tos1003.ts this command convert ts file very slow and no video information, only having audio information. Two pictures are tos-4096x1720-tiles.mkv basic information, parsed by MediaInfo. Command line is correct? Yours sincerely Jingshaoqi 2014-10-23 -------------- next part -------------- A non-text attachment was scrubbed... Name: fileInfor.jpg Type: image/jpeg Size: 133427 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fileInfor1.jpg Type: image/jpeg Size: 152862 bytes Desc: not available URL: From ricardoflmota at gmail.com Sat Oct 25 22:48:58 2014 From: ricardoflmota at gmail.com (Ricardo Mota) Date: Sat, 25 Oct 2014 21:48:58 +0100 Subject: [FFmpeg-user] ffserver streaming H.264 from Logitech C920 Message-ID: I'm having some trouble trying to implement a web live stream from my Logitech C920 webcam w/ H.264 encoding using ffmpeg/ffserver. Here is the configuration file I'm using for the ffserver: # Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. Port 8090 # Address on which the server is bound. Only useful if you have # several network interfaces. BindAddress 0.0.0.0 # Number of simultaneous HTTP connections that can be handled. It has # to be defined *before* the MaxClients parameter, since it defines the # MaxClients maximum limit. MaxHTTPConnections 2000 # Number of simultaneous requests that can be handled. Since FFServer # is very fast, it is more likely that you will want to leave this high # and use MaxBandwidth, below. MaxClients 1000 # This the maximum amount of kbit/sec that you are prepared to # consume when streaming to clients. MaxBandwidth 1000 # Access log file (uses standard Apache log file format) # '-' is the standard output. CustomLog - ################################################################## # Definition of the live feeds. Each live feed contains one video # and/or audio sequence coming from an ffmpeg encoder or another # ffserver. This sequence may be encoded simultaneously with several # codecs at several resolutions. # You must use 'ffmpeg' to send a live feed to ffserver. In this # example, you can type: # File /tmp/feed.ffm FileMaxSize 100M # You could specify # ReadOnlyFile /saved/specialvideo.ffm # This marks the file as readonly and it will not be deleted or updated. # Only allow connections from localhost to the feed. ACL allow 127.0.0.1 ################################################################## # Now you can define each stream which will be generated from the # original audio and video stream. Each format has a filename (here # 'test1.mpg'). FFServer will send this stream when answering a # request containing this filename. Feed feed.ffm Format mp4 # Audio settings NoAudio # Video Settings #VideoSize 1280x720 # Video resolution #VideoFrameRate 30 # Video FPS #AVOptionVideo flags +global_header # Parameters passed to encoder #AVOptionVideo cpu-used 0 #AVOptionVideo qmin 10 #AVOptionVideo qmax 42 #AVOptionVideo quality good PreRoll 0 StartSendOnKey #VideoBitRate 400 # Video bitrate # Server status Format status # Only allow local people to get the status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 And here is the command I'm issuing through the command line and the respective output: $ ffmpeg -s 1280x720 -f video4linux2 -r 30 -vcodec h264 -re -i /dev/video0 \ -copyinkf -codec copy h**p://localhost:8090/feed.ffm ffmpeg version N-67036-g04a4fb8 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 20 2014 17:39:50 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --enable-gpl --enable-libx264 libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 8.102 / 56. 8.102 libavformat 56. 9.101 / 56. 9.101 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 12614.859199, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc Output #0, ffm, to 'h**p://localhost:8090/feed.ffm': Metadata: creation_time : now encoder : Lavf56.9.101 Stream #0:0: Video: h264, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, -5 kb/s, 30 fps, 1000k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 0, current: -166263; changing to 1. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 1, current: -134365; changing to 2. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 2, current: -102381; changing to 3. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 3, current: -66434; changing to 4. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 4, current: -34548; changing to 5. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 5, current: -2645; changing to 6. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 232857, current: 138514; changing to 232858. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 232858, current: 167942; changing to 232859. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 232859, current: 197415; changing to 232860. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 232860, current: 227037; changing to 232861. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 997959, current: 938599; changing to 997960. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 997960, current: 995052; changing to 997961. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 1240745, current: 1232841; changing to 1240746. This may result in incorrect timestamps in the output file. [ffm @ 0x28c7ea0] Non-monotonous DTS in output stream 0:0; previous: 1293561, current: 1282157; changing to 1293562. This may result in incorrect timestamps in the output file. frame= 69 fps= 34 q=-1.0 Lsize= 912kB time=00:00:02.01 bitrate=3702.1kbits/s When I try to play the stream with VLC for example: vlc h**p://localhost:8090/stream.mp4 I get the following error: [00007f5234003948] core stream error: cannot pre fill buffer And I can't watch the stream on the web browser side either. Could someone give me an hint on this? -- Ricardo Mota From anatol2002 at gmail.com Sun Oct 26 05:43:29 2014 From: anatol2002 at gmail.com (Anatol) Date: Sun, 26 Oct 2014 07:43:29 +0300 Subject: [FFmpeg-user] Segment times dynamic. Wrong durations In-Reply-To: References: Message-ID: You should provide timing list, rather than durations - 0,2,4,7,10..... On Thu, Oct 23, 2014 at 7:06 PM, Diogo Serrano wrote: > Hi, i have this command. > > I want to generate different times for my ts files. > > My command: > > ffmpeg -y -i rod.mp4 -force_key_frames > > 2,2,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9 > -codec:v libx264 -r 25 -g 25 -codec:a libfdk_aac -f stream_segment > -segment_times > > 2,2,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9 > -segment_format mpegts > > > But this command generate ts files with wrong durations. The espected > result is: > > 00.ts -> 2 seconds > 01.ts -> 2 seconds > 02.ts -> 3 seconds > 03.ts -> 3 seconds > ..... > ..... > ..... > Last ts file is 9 seconds. > > The sum of all this number is the duration of the video. > > Thanks > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sun Oct 26 15:58:57 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 26 Oct 2014 14:58:57 +0000 (UTC) Subject: [FFmpeg-user] What's ffmpeg command line convert H265 mkv file to H265 ts file? References: <7aa8dce4.b82f.1493c2e880e.Coremail.jingshaoqi@163.com> Message-ID: ??? 163.com> writes: > ffmpeg -y -i tos-4096x1720-tiles.mkv -r 24 -b:v 2300000 > -c:v libx265 -x265-params crf=26:psy-rd=1:subme=3: > merange=32:bframes=2:b-adapt=1:rc-lookahead=10:keyint=200: > min-keyint=50:open-gop=1:bitrate=2000:threads=64 > -acodec copy tos1003.ts Complete, uncut console output missing and please also provide the output of "ffmpeg -i tos1003.ts". Carl Eugen From cehoyos at ag.or.at Sun Oct 26 16:00:50 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 26 Oct 2014 15:00:50 +0000 (UTC) Subject: [FFmpeg-user] Streaming a single image? References: Message-ID: Felix E. Klee inka.de> writes: > $ ffmpeg -re -loop 1 -i image.jpg -c:v h264 -preset ultrafast \ > -pix_fmt yuvj420p -bsf aac_adtstoasc -f flv \ > rtmp://192.168.56.1/live/myStream "-re" should be unneeded, "-bsf aac_adtstoasc" makes no sense if there is no audio input. Carl Eugen From felix.klee at inka.de Sun Oct 26 17:39:27 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sun, 26 Oct 2014 16:39:27 +0000 Subject: [FFmpeg-user] Streaming a single image? In-Reply-To: References: Message-ID: On Sun, Oct 26, 2014 at 3:00 PM, Carl Eugen Hoyos wrote: > "-re" should be unneeded, "-bsf aac_adtstoasc" makes no sense if there > is no audio input. Thanks! I?m just getting started, currently investigating what setup I need. From felix.klee at inka.de Sun Oct 26 17:42:11 2014 From: felix.klee at inka.de (Felix E. Klee) Date: Sun, 26 Oct 2014 16:42:11 +0000 Subject: [FFmpeg-user] Switching live streams without interruption? In-Reply-To: References: Message-ID: In the meantime I discovered [FreeJ][1], which should be able to do what I want. However, it's limited to Ogg Theora, so would require live reencoding before sending the stream to the broadcasting software. Also, I asked on one of the GStreamer mailing lists if that tool could be a solution. There actually is a videomixer plugin for GStreamer. [1]: http://freej.org/ From cehoyos at ag.or.at Sun Oct 26 20:03:31 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 26 Oct 2014 19:03:31 +0000 (UTC) Subject: [FFmpeg-user] DVCPRO50 PAL decoding oddity - light line in top row References: Message-ID: Sal Kennedy gmail.com> writes: > depending on possibly brightness and complexity > of the top row of macroblocks, i get a sort of > horizontal line. it's only the top row, but > it's quite visible in the right conditions. This issue was fixed in current FFmpeg git head. Thank you for the sample (and your patience)! Carl Eugen From paulo.fidalgo.pt at gmail.com Sun Oct 26 20:29:25 2014 From: paulo.fidalgo.pt at gmail.com (Paulo Fidalgo) Date: Sun, 26 Oct 2014 19:29:25 +0000 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: References: <5447FD04.80602@gmail.com> Message-ID: <544D4B95.3000206@gmail.com> After making another test with lame and ffmpeg and using the same input file, every file from lame works although none of ffmpeg files have worked. lame -b 256 2L38_01_96kHz.wav 2L38_01_96kHz-lame-256.mp3 lame -V 0 2L38_01_96kHz.wav 2L38_01_96kHz-lame-V0.mp3 lame -V 1 2L38_01_96kHz.wav 2L38_01_96kHz-lame-V1.mp3 ffmpeg -i 2L38_01_96kHz.wav -codec:a libmp3lame -qscale:a 0 2L38_01_96kHz-ffmpeg-qa-0.mp3 ffmpeg -i 2L38_01_96kHz.wav -codec:a libmp3lame -qscale:a 1 2L38_01_96kHz-ffmpeg-qa-1.mp3 ffmpeg -i 2L38_01_96kHz.wav -codec:a libmp3lame -qscale:a 2 2L38_01_96kHz-ffmpeg-qa-2.mp3 ffmpeg -i 2L38_01_96kHz.wav -codec:a libmp3lame -qscale:a 3 2L38_01_96kHz-ffmpeg-qa-3.mp3 ffmpeg -i 2L38_01_96kHz.wav -codec:a libmp3lame -qscale:a 4 2L38_01_96kHz-ffmpeg-qa-4.mp3 Now I don't have any clue of what is going on... and what is causing this malfunction. Also I've found that Amarok, the package which leads me to this behaviour is also using 4 as audio quality value. On 25/10/14 13:09, Carl Eugen Hoyos wrote: > Paulo Fidalgo gmail.com> writes: > >> I have trouble to get the mp3 encoded right to play >> on my Volvo Infotainment System (Sensus 3.0), so I >> have contacted the costumer support, and they told >> me that the files are being encoding with frames >> with more than 320Kbps of bitrate. > Please ask them to explain which frame has >320kb, I > don't think it's true, see below. > >> Since I don't have a tool to debug it, I've tried to >> see in codec statistics in VLC, which for the files >> I'm showing as example I've seen 380Kbps near 3:31 >> mins. > I played the encoded file you uploaded with vlc, > it does not show a bitrate of >320 here at any > time. > > I then analyzed the file you uploaded: > $ ffmpeg -i outff.mp3 -acodec copy -f image2 -map 0 out%5d > The largest mp3 frame in your encoded file is 960 bytes > which corresponds to 320kb/s. > Maybe you should test the following to verify: > $ lame -b 320 input.wav out320.mp3 > $ lame -b 256 input.wav out256.mp3 > Do both files play in your car? > Or only the second? > >> I believe it's a bug on ffmpeg, although I'm not sure, >> so I'm asking for advice here, since encoding with the >> lame it works like a charm. > lame documentation states that the default for lame's > -q option is 5 but if you use -V, the default is lower > (4 or smaller for your input sample). > This may be a bug, either in the documentation of > FFmpeg (because it states that FFmpeg's option -q > corresponds to -V which is mostly does but not exactly) > or because FFmpeg sets lame's -q to 5 if you don't > specify anything else. > >> I've encoded with this command: >> >> ffmpeg -i 2L38_01_96kHz.flac -codec:a libmp3lame >> -qscale:a 0 2L38_01_96kHz.mp3 > Please test with -compression_level 4, this should > produce output files more similar with lame. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Mon Oct 27 01:04:29 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 27 Oct 2014 00:04:29 +0000 (UTC) Subject: [FFmpeg-user] MP3 enconding bitrate References: <5447FD04.80602@gmail.com> <544D4B95.3000206@gmail.com> Message-ID: Paulo Fidalgo gmail.com> writes: > After making another test with lame and ffmpeg Please test the following: $ lame -V 0 -q 0 2L38_01_96kHz.wav 2L38_01_96kHz-lame-V0.mp3 $ ffmpeg -i 2L38_01_96kHz.wav -compression_level 1 -q:0 0 out.mp3 Please do not top-post here, Carl Eugen From streamin at elitemail.org Mon Oct 27 17:36:57 2014 From: streamin at elitemail.org (marsupilami) Date: Mon, 27 Oct 2014 09:36:57 -0700 (PDT) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> References: <1414084439652-4667828.post@n4.nabble.com> <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> Message-ID: <1414427817152-4667871.post@n4.nabble.com> So most things work alright now. But I'd like to have the "Encoding Settings" header back in my mkv files like the standalone x264 adds them - ffmpeg's muxer doesn't seem to do that. What would I have to do to fix that? I've tried ffmpeg's -metadata option, but it doesn't work like I want it to. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828p4667871.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From Ravi.Chaganti at ReedElsevier.com Mon Oct 27 16:02:24 2014 From: Ravi.Chaganti at ReedElsevier.com (Chaganti, Ravi (RE-CON)) Date: Mon, 27 Oct 2014 15:02:24 +0000 Subject: [FFmpeg-user] ffmpeg - error Message-ID: <8d63d243e29b4b0885063dbd39f6f522@CY1PR0801MB0857.namprd08.prod.outlook.com> Hi, I am trying to make a package for ffmpeg. When I am running the configure command, it is giving the error. Could you please help me in resolving the issue. OS is Oracle Solaris 10. root at xxxx # ./configure --extra-cflags="-fpicfPIC" --extra-ldflags="-L/usr/local/lib -R/usr/local/lib" --disable-mmx --disable-protocol=udp --disable-encoder=nellymoser --disable-debug --arch=sparc --target-os=sunossunos --enable-cross-compile gcc is unable to create an executable file. C compiler test failed. Your support is really appreciated in advance!! Thanks & Regards, Ravi Chaganti. Unix Engineer Mobile : +44 7776162408 ________________________________ This email is from Reed Elsevier Group plc, a company registered in England and Wales with company number 2746616, whose registered office is 1-3 Strand, London, WC2N 5JR, United Kingdom. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message, please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 174005 bytes Desc: config.log URL: From christophgerstbauer at gmail.com Mon Oct 27 19:37:21 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Mon, 27 Oct 2014 19:37:21 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? Message-ID: <544E90E1.9030204@gmail.com> Hello I am testing the jpeg2000 encoder (libopenjpeg) but I always get a damaged image (Colorshifting, Color flickering, etc..) Generally asked: is it possible to encode to Motion JPEG2000 with following pixel formats in ffmpeg? yuv420p yuv411p yuv422p yuv422p10le yuv444p10le If yes, how is the correct encoding syntax? My used syntax: ffmpeg -i -vcodec libopenjpeg -pix_fmt yuv422p -an I am shure that this syntax is not correct (not enough in defining the correct encoding params), furthermore I made no setting for LOSSLESS encoding mode. Therefore I just need a HOW TO for jpeg2000 lossless encoding. Addionally: which container formats are supported within ffmpeg for MotionJPEG2000? Best Regards Christoph Gerstbauer From h.reindl at thelounge.net Mon Oct 27 19:44:49 2014 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 27 Oct 2014 19:44:49 +0100 Subject: [FFmpeg-user] ffmpeg - error In-Reply-To: <8d63d243e29b4b0885063dbd39f6f522@CY1PR0801MB0857.namprd08.prod.outlook.com> References: <8d63d243e29b4b0885063dbd39f6f522@CY1PR0801MB0857.namprd08.prod.outlook.com> Message-ID: <544E92A1.90707@thelounge.net> Am 27.10.2014 um 16:02 schrieb Chaganti, Ravi (RE-CON): > I am trying to make a package for ffmpeg. When I am running the configure command, it is giving the error. Could you please help me in resolving the issue. OS is Oracle Solaris 10. > > > root at xxxx # ./configure --extra-cflags="-fpicfPIC" --extra-ldflags="-L/usr/local/lib -R/usr/local/lib" --disable-mmx --disable-protocol=udp --disable-encoder=nellymoser --disable-debug --arch=sparc --target-os=sunossunos --enable-cross-compile > gcc is unable to create an executable file. > C compiler test failed. > > Your support is really appreciated in advance!! -fpicfPIC must be a joke -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From phil_rhodes at rocketmail.com Mon Oct 27 20:06:56 2014 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Mon, 27 Oct 2014 12:06:56 -0700 Subject: [FFmpeg-user] MOX kickstarter Message-ID: <1414436816.68983.YahooMailNeo@web161504.mail.bf1.yahoo.com> So, what do we all think of this? https://www.indiegogo.com/projects/mox-file-format Is this something ffmpeg would need new code to support, or does it already know how to deal with (say) Dirac in MXF? P From cehoyos at ag.or.at Mon Oct 27 20:32:52 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 27 Oct 2014 19:32:52 +0000 (UTC) Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? References: <544E90E1.9030204@gmail.com> Message-ID: Christoph Gerstbauer gmail.com> writes: > I am testing the jpeg2000 encoder (libopenjpeg) > but I always get a damaged image (Colorshifting, > Color flickering, etc..) This doesn't sound familiar to me, how can I reproduce? > Generally asked: is it possible to encode to > Motion JPEG2000 with following pixel formats in > ffmpeg? > > yuv420p > yuv411p > yuv422p > yuv422p10le > yuv444p10le Yes, they all work fine. > If yes, how is the correct encoding syntax? > My used syntax: > > ffmpeg -i -vcodec libopenjpeg > -pix_fmt yuv422p -an Please always provide an actual command line (no variables) and the complete, uncut console output if you ask for support here. > I am shure that this syntax is not correct Why? I don't think so. > (not enough in defining the correct encoding params), > furthermore I made no setting for LOSSLESS > encoding mode. Lossless is the default for libopenjpeg iirc. > Therefore I just need a HOW TO for jpeg2000 > lossless encoding. > Addionally: which container formats are supported > within ffmpeg for MotionJPEG2000? avi (including mkv), mov, mxf, nut Finally, please note that ffv1 is faster than libopenjpeg, compresses better and should make significantly less trouble than the so-called "professional" solutions you are being offered. Carl Eugen From paulo.fidalgo.pt at gmail.com Mon Oct 27 20:36:37 2014 From: paulo.fidalgo.pt at gmail.com (Paulo Fidalgo) Date: Mon, 27 Oct 2014 19:36:37 +0000 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: References: <5447FD04.80602@gmail.com> <544D4B95.3000206@gmail.com> Message-ID: <544E9EC5.9070706@gmail.com> On 27/10/14 00:04, Carl Eugen Hoyos wrote: > Paulo Fidalgo gmail.com> writes: > >> After making another test with lame and ffmpeg > Please test the following: > > $ lame -V 0 -q 0 2L38_01_96kHz.wav 2L38_01_96kHz-lame-V0.mp3 > $ ffmpeg -i 2L38_01_96kHz.wav -compression_level 1 -q:0 0 out.mp3 The file created by lame works, although the ffmpeg don't. If there's something I can do to further investigate please let me know. > Please do not top-post here, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From christophgerstbauer at gmail.com Mon Oct 27 21:02:31 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Mon, 27 Oct 2014 21:02:31 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: References: <544E90E1.9030204@gmail.com> Message-ID: <544EA4D7.8060000@gmail.com> Hello Carl, here is the syntax: C:\Users\gersti>ffmpeg -i C:\TESTS\8bit_ffv1_yuv422p.avi -vcodec libopenjpeg C:\TESTS\8bit_jpeg2000_yuv422p.avi ffmpeg version N-67205-g61e42c1 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 26 2014 22:40:18 with gcc 4.9.1 (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-zlib libavutil 54. 11.100 / 54. 11.100 libavcodec 56. 10.100 / 56. 10.100 libavformat 56. 11.100 / 56. 11.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, avi, from 'C:\TESTS\8bit_ffv1_yuv422p.avi': Metadata: encoder : Lavf56.11.100 timecode : 00:00:00:00 Duration: 00:00:05.00, start: 0.000000, bitrate: 76491 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 77094 kb/s, SAR 64:45 DAR 16:9, 25 fps, 25 tbr, 25 t bn, 25 tbc Output #0, avi, to 'C:\TESTS\8bit_jpeg2000_yuv422p.avi': Metadata: ISMP : 00:00:00:00 ISFT : Lavf56.11.100 Stream #0:0: Video: jpeg2000 (libopenjpeg) (mjp2 / 0x32706A6D), yuv422p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 k b/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc56.10.100 libopenjpeg Stream mapping: Stream #0:0 -> #0:0 (ffv1 (native) -> jpeg2000 (libopenjpeg)) Press [q] to stop, [?] for help frame= 125 fps=4.6 q=0.0 Lsize= 46802kB time=00:00:05.00 bitrate=76680.9kbits/s video:46794kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.018440% > Finally, please note that ffv1 is faster than libopenjpeg, compresses > better and should make significantly less trouble than the so-called > "professional" solutions you are being offered. Do you mean "ffv1 is faster/compresses better than libopenjpeg" or "ffv1 is faster/compresses better than motionJPEG2000 generally"? You can download my test files here (in about 15minutes, still uploading): https://dl.dropboxusercontent.com/u/26129407/JPEG2000_sample1.zip From dave at dericed.com Mon Oct 27 21:08:55 2014 From: dave at dericed.com (Dave Rice) Date: Mon, 27 Oct 2014 16:08:55 -0400 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <544EA4D7.8060000@gmail.com> References: <544E90E1.9030204@gmail.com> <544EA4D7.8060000@gmail.com> Message-ID: <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> Hi Christoph, On Oct 27, 2014, at 4:02 PM, Christoph Gerstbauer wrote: > Hello Carl, > > here is the syntax: > > C:\Users\gersti>ffmpeg -i C:\TESTS\8bit_ffv1_yuv422p.avi -vcodec libopenjpeg C:\TESTS\8bit_jpeg2000_yuv422p.avi Your encoding looks okay to me, but what process are you using to decode the resulting jpeg2000 file where you notice to color issues. Could you test playback with libopenjpeg: ffplay -vcodec libopenjpeg -i C:\TESTS\8bit_jpeg2000_yuv422p.avi >> Finally, please note that ffv1 is faster than libopenjpeg, compresses better and should make significantly less trouble than the so-called "professional" solutions you are being offered. > > Do you mean "ffv1 is faster/compresses better than libopenjpeg" or > "ffv1 is faster/compresses better than motionJPEG2000 generally?? I suspect both are true. Dave Rice From christophgerstbauer at gmail.com Mon Oct 27 21:36:00 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Mon, 27 Oct 2014 21:36:00 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> References: <544E90E1.9030204@gmail.com> <544EA4D7.8060000@gmail.com> <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> Message-ID: <544EACB0.5020005@gmail.com> Hello David, using "ffplay -vcodec libopenjpeg -i ..." works. So I have to force decoding with libopenjpeg to get an correct output. Compression: As I see: ffv1 compressed (if not using slices) a little bit better than jpeg2000. But ffv1 is much more faster than jpeg2000. Can you explain me why jpeg 2000 is so extremely slow and needs much more CPU load than ffv1? Where is the difference here? Both are wavelet transformation codecs, not? I am very disappointed that jpeg2000 is a "standard" and ffv1 is not :/ FFv1 would get much more acceptance in the "professional" video world if it would be. The reason why i want to test jpeg2000: We are always using ffv1 but we sometimes we get "contrary wind" from the professional video world against ffv1 (like: "jpeg2000 is THE lossless codec...."). So we want to show compression rate7speed comparisons for 10bit pixel formats and above, to open their eyes. br Christoph Am 27.10.2014 um 21:08 schrieb Dave Rice: > Hi Christoph, > > On Oct 27, 2014, at 4:02 PM, Christoph Gerstbauer wrote: > >> Hello Carl, >> >> here is the syntax: >> >> C:\Users\gersti>ffmpeg -i C:\TESTS\8bit_ffv1_yuv422p.avi -vcodec libopenjpeg C:\TESTS\8bit_jpeg2000_yuv422p.avi > Your encoding looks okay to me, but what process are you using to decode the resulting jpeg2000 file where you notice to color issues. Could you test playback with libopenjpeg: > ffplay -vcodec libopenjpeg -i C:\TESTS\8bit_jpeg2000_yuv422p.avi > >>> Finally, please note that ffv1 is faster than libopenjpeg, compresses better and should make significantly less trouble than the so-called "professional" solutions you are being offered. >> Do you mean "ffv1 is faster/compresses better than libopenjpeg" or >> "ffv1 is faster/compresses better than motionJPEG2000 generally?? > I suspect both are true. > Dave Rice > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ricardoflmota at gmail.com Mon Oct 27 21:52:13 2014 From: ricardoflmota at gmail.com (Ricardo Mota) Date: Mon, 27 Oct 2014 20:52:13 +0000 Subject: [FFmpeg-user] ffmpeg/ffserver h264 webcam streaming Message-ID: I'm trying to setup a h264 streaming from my webcam to the web using the following configuration file for ffserver. - ffserver.conf When I feed ffserver with *fmpeg -f v4l2 -input_format rawvideo -pixel_format yuyv422 -framerate 10 -video_size 1280x720 -i /dev/video0 http://localhost:8090/feed1.ffm *, i get the following output: - ffmpeg output But when I try to play the stream with *ffplay *for example, I get the following error: *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9d680008c0] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!* *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9d680008c0] moov atom not found* *http://localhost:8090/test.mp4 : Invalid data found when processing input* Could you guys please help me on this? Thank you for your attention. -- Ricardo Frederico Leote Mota From dave at dericed.com Mon Oct 27 21:58:09 2014 From: dave at dericed.com (Dave Rice) Date: Mon, 27 Oct 2014 16:58:09 -0400 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <544EACB0.5020005@gmail.com> References: <544E90E1.9030204@gmail.com> <544EA4D7.8060000@gmail.com> <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> <544EACB0.5020005@gmail.com> Message-ID: <1D36C547-2D7F-4316-B80F-318DE8915652@dericed.com> Hi Christoph, On Oct 27, 2014, at 4:36 PM, Christoph Gerstbauer wrote: > Hello David, > > using "ffplay -vcodec libopenjpeg -i ..." works. > So I have to force decoding with libopenjpeg to get an correct output. Another option is to use --disable-decoder=jpeg2000 when configuring to prevent its use. In most encoding or decoding scenarios ffmpeg's default jpeg2000 encoder/decoder (named ?jpeg2000?) is broken. > Compression: > As I see: ffv1 compressed (if not using slices) a little bit better than jpeg2000. > But ffv1 is much more faster than jpeg2000. > Can you explain me why jpeg 2000 is so extremely slow and needs much more CPU load than ffv1? > Where is the difference here? Both are wavelet transformation codecs, not? Others could explain this much better than I. Note that ffmpeg can recently do some threading with libopenjpeg encoding so current speeds though slow are at least double what they were last year. > I am very disappointed that jpeg2000 is a "standard" and ffv1 is not :/ > FFv1 would get much more acceptance in the "professional" video world if it would be. I think this subject has been on the list before (to further standardize ffv1), maybe time to revive that thread. > The reason why i want to test jpeg2000: > We are always using ffv1 but we sometimes we get "contrary wind" from the professional video world against ffv1 (like: "jpeg2000 is THE lossless codec...."). So we want to show compression rate7speed comparisons for 10bit pixel formats and above, to open their eyes. It sounds like there are two contentions: 1) that there should only be one lossless codec in use professionally 2) that jpeg2000 should be that one lossless codec If contention 1 is invalidated than contention 2 is not so meaningful. I don?t really see a good argument for a singular lossless codec. Archives are filled with many different film gauges, dozens of video tape formats, and huge varieties of digital media specifications and the variety is created because of the need to meet competing priorities (fast or slow, large or small, long term or temporary, open or closed). Because of the nature of lossless codecs and ffmpeg?s support of frame-level checksums it is feasible to encode around and around from uncompressed to jpeg2000 to huffyuv to ffv1 without loss (as long as significant characteristics are maintained). Either way any organization utilizing lossless codecs for preservation (or I suppose this goes for any codec) should be able to trust and ensure that they can maintain their ability to decode and assess that codec. If that maintenance becomes tenuous, when a codec becomes an obsolescence risk, then there is a need to transcode losslessly to preserve in a safer environment. In my opinion ffmpeg provides the tools needed to maintain, assess, transcode, and wrangle collections of either ffv1 or jpeg2000, but I can understand that for some they may have a more supportive community based on one codec or the other based on their professional network, still if considering the factors of speed, software support, and features I think you?ve already seen the difference. One further note for ffv1 for preservation is its self-descriptiveness. FFv1 version 3 maintains information about field dominance, sample aspect ratio, and pixel format within the codec whereas jpeg2000 is moreso dependent on standards like SMPTE422M and the container. FFv1 version 3 also mandates embedded crc values per frame, which is a huge plus for long term preservation. Dave Rice From christophgerstbauer at gmail.com Mon Oct 27 22:14:55 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Mon, 27 Oct 2014 22:14:55 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <1D36C547-2D7F-4316-B80F-318DE8915652@dericed.com> References: <544E90E1.9030204@gmail.com> <544EA4D7.8060000@gmail.com> <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> <544EACB0.5020005@gmail.com> <1D36C547-2D7F-4316-B80F-318DE8915652@dericed.com> Message-ID: <544EB5CF.5010500@gmail.com> Hello David, you said "FFv1 version 3 maintains information about field dominance". How can I set the field order when I encode to ffv1? With "-top 1"? And can I read the field order with the "show_frames" syntax or otherwise? br Christoph From christophgerstbauer at gmail.com Mon Oct 27 22:22:02 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Mon, 27 Oct 2014 22:22:02 +0100 Subject: [FFmpeg-user] FieldOrder detection with an timestamp list (time position of field order changes) Message-ID: <544EB77A.7070805@gmail.com> Hello ffmpeg has a very good field detection algorythm: ffmpeg -i -vf idet -f rawvideo -y NUL Output: [Parsed_idet_0 @ 003ea220] Single frame detection: TFF:0 BFF:153 Progressive:0 Undetermined:0 [Parsed_idet_0 @ 003ea220] Multi frame detection: TFF:0 BFF:153 Progressive:0 Undetermined:0 Is it possible to extract an timestamp list where you can see on which timeposition in the file the field order is changing? Like this: 00:00:00.000 - 00:00:23.040 TFF 00:00:23.080 - 00:01:00.000 BFF 00:01:00.040 - 00:02:00.000 Progressive Sometimes material is made where field orders are switching, so it would be very helpful to find the exact time position where the field order changes. br Christoph Gerstbauer From barsnick at gmx.net Mon Oct 27 22:36:36 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 27 Oct 2014 22:36:36 +0100 Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <1414427817152-4667871.post@n4.nabble.com> References: <1414084439652-4667828.post@n4.nabble.com> <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> <1414427817152-4667871.post@n4.nabble.com> Message-ID: <20141027213636.GE6792@sunshine.barsnick.net> On Mon, Oct 27, 2014 at 09:36:57 -0700, marsupilami wrote: > So most things work alright now. But I'd like to have the "Encoding Settings" > header back in my mkv files like the standalone x264 adds them - ffmpeg's > muxer doesn't seem to do that. What would I have to do to fix that? I've > tried ffmpeg's -metadata option, but it doesn't work like I want it to. Oh, I think it's in there somewhere, because mediainfo kindly displays it. File created with: $ ffmpeg -f lavfi -i testsrc -c:v libx264 -t 3 /tmp/test.mkv and checked with mediainfo: $ mediainfo /tmp/test.mkv | grep -E "Encoding|Writing" Writing application : Lavf56.9.100 Writing library : Lavf56.9.100 Writing library : x264 core 142 Encoding settings : 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=4 / 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 (Sorry, I couldn't tickle that info out of ffprobe, nor find it in the metadata displayed by ffmpeg.) Moritz From greeshmabalabadra at gmail.com Tue Oct 28 03:09:31 2014 From: greeshmabalabadra at gmail.com (greeshma) Date: Tue, 28 Oct 2014 07:39:31 +0530 Subject: [FFmpeg-user] New MLP Encoder(urgent) Message-ID: HI, I am working on validating Mlp encoder in Libavcodec . I have converted .wav file to .pcm file using acodec pcm_s16le . Now i want to convert .pcm file to .mlp file using mlp encoder which i am working on. the command line tool i am using is ./ffmpeg -i ~/file.pcm -acodec mlp -b:a 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp But i am getting the below error user at user:~/ffmpeg_sources/ffmpeg$ ./ffmpeg -i ~/file.raw -acodec mlp -b:a 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Oct 27 2014 22:58:52 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/soumya/ffmpeg_build --extra-cflags=-I/home/soumya/ffmpeg_build/include --extra-ldflags=-L/home/soumya/ffmpeg_build/lib --bindir=/home/soumya/bin --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 --cc=c99 libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 9.102 / 56. 9.102 libavformat 56. 9.101 / 56. 9.101 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [image2 @ 0x3d6ff60] Format image2 detected only with low score of 5, misdetection possible! [rawvideo @ 0x3d70d80] Invalid pixel format. [image2 @ 0x3d6ff60] Failed to open codec in av_find_stream_info [rawvideo @ 0x3d70d80] Invalid pixel format. [image2 @ 0x3d6ff60] Could not find codec parameters for stream 0 (Video: rawvideo, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options /home/user/file.raw: could not find codec parameters Input #0, image2, from '/home/soumya/file.raw': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo, none, 25 tbr, 25 tbn, 25 tbc Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (/home/soumya/final.mlp) 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. File '/home/user/final.mlp' already exists. Overwrite ? [y/N] y Output #0, mlp, to '/home/user/final.mlp': Output file #0 does not contain any stream and one more kind of error /home/user/file.pcm: Invalid data found when processing input Please help me out Greeshma Balabhadra From barsnick at gmx.net Tue Oct 28 09:21:30 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 28 Oct 2014 09:21:30 +0100 Subject: [FFmpeg-user] New MLP Encoder(urgent) In-Reply-To: References: Message-ID: <20141028082130.GB22216@sunshine.barsnick.net> On Tue, Oct 28, 2014 at 07:39:31 +0530, greeshma wrote: > I have converted .wav file to .pcm file using acodec pcm_s16le . You should tell us how you did this. > But i am getting the below error > user at user:~/ffmpeg_sources/ffmpeg$ ./ffmpeg -i ~/file.raw -acodec mlp -b:a > 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp [...] > [image2 @ 0x3d6ff60] Format image2 detected only with low score of 5, > misdetection possible! > [rawvideo @ 0x3d70d80] Invalid pixel format. > [image2 @ 0x3d6ff60] Failed to open codec in av_find_stream_info > [rawvideo @ 0x3d70d80] Invalid pixel format. > [image2 @ 0x3d6ff60] Could not find codec parameters for stream 0 (Video: > rawvideo, none): unspecified size > Consider increasing the value for the 'analyzeduration' and 'probesize' > options > /home/user/file.raw: could not find codec parameters It seems you created a raw audio file. ffmpeg cannot detect it as such, because it is raw, i.e. it has no headers or such to indicate its format. You need to tell ffmpeg via the input file parameters (before "-i" what type of file to expect. In your case, that should probably be "-f s16le": ./ffmpeg -f s16le -i ~/file.raw -acodec mlp -b:a 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp (Depending on what sort of file ~/file.raw actually is.) > Please help me out Hope this helps, Moritz From riokierkels at gmail.com Tue Oct 28 09:42:15 2014 From: riokierkels at gmail.com (Rio Kierkels) Date: Tue, 28 Oct 2014 09:42:15 +0100 Subject: [FFmpeg-user] MOX kickstarter In-Reply-To: <1414436816.68983.YahooMailNeo@web161504.mail.bf1.yahoo.com> References: <1414436816.68983.YahooMailNeo@web161504.mail.bf1.yahoo.com> Message-ID: I, for one, have been wanting a format like this ever since I started working in this industry and so do quite some of my colleagues. Internally we are discussing to at least consider the format for archiving. As for implementation, the goal of the project is to make a solid library that can handle both the streams and container. So most of the stuff will be handled by the library itself. I'll be making an effort to contribute to the project as well both for learning purposes and to have someone within our company with deep knowledge of the format. Rio On 27 October 2014 20:06, Phil Rhodes wrote: > So, what do we all think of this? > > https://www.indiegogo.com/projects/mox-file-format > > > Is this something ffmpeg would need new code to support, or does it > already know how to deal with (say) Dirac in MXF? > > P > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- C018 4C82 3701 9CAC B723 4C29 2C04 E81A 7418 D158 From cehoyos at ag.or.at Tue Oct 28 10:14:58 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 Oct 2014 10:14:58 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <544EACB0.5020005@gmail.com> References: <544E90E1.9030204@gmail.com> <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> <544EACB0.5020005@gmail.com> Message-ID: <201410281014.58600.cehoyos@ag.or.at> On Monday 27 October 2014 09:36:00 pm Christoph Gerstbauer wrote: > We are always using ffv1 but we sometimes we get "contrary wind" > from the professional video world against ffv1 (like: "jpeg2000 is > THE lossless codec...."). So we want to show compression rate7speed > comparisons for 10bit pixel formats and above, to open their eyes. And you have shown convincingly that there is a better alternative to one existing jpeg2000 implementation. It will be no problem to write a faster one if you have the time (or the money), I am not sure if compression will be better than with current libopenjpeg. Note that the issues with jpeg2000 are of course nothing against the issues that mxf has, iirc you already know that there are as many interpretations of the standard as implementations, don't you? And regarding the "professional" solutions: Please ask them to show you how to get the original content back after encoding once;-) Please do not top-post here, Carl Eugen From christophgerstbauer at gmail.com Tue Oct 28 10:39:18 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Tue, 28 Oct 2014 10:39:18 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <201410281014.58600.cehoyos@ag.or.at> References: <544E90E1.9030204@gmail.com> <2E95F0E8-E7A5-44F2-9134-35220D1B4A15@dericed.com> <544EACB0.5020005@gmail.com> <201410281014.58600.cehoyos@ag.or.at> Message-ID: <544F6446.6040704@gmail.com> > And you have shown convincingly that there is a better alternative > to one existing jpeg2000 implementation. It will be no problem to > write a faster one if you have the time (or the money), I am not sure > if compression will be better than with current libopenjpeg. How much (approx) would it cost to write a faster jpeg2000 encoder for ffmpeg? > > Note that the issues with jpeg2000 are of course nothing against the > issues that mxf has, iirc you already know that there are as many > interpretations of the standard as implementations, don't you? The most solutions which are using JPEG2000 are encoding in lossy compression mode, as far as I know. Additionally, I spoek last week with a very professional video guy, and he said to me how he checks the "losslessness" of jpeg2000. He makes a difference picture of the original source and the encoded jpeg2000 -> and checks this just VISUALLY. (o.O) He does not make frame md5s. So his (mathemtically) lossless checks are only visually checks. And yes, I know that there are so mich implementations. Like Samma Solo (Front Porch) or OpenCube etc... The most solutions which are using JPEG2000 are anyhow encoding in lossy compression mode, as far as I know. > > And regarding the "professional" solutions: Please ask them to show > you how to get the original content back after encoding once;-) > > Please do not top-post here, Carl Eugen Yesterday I tested to extract the original source from a libopenjpeg encoded file, and it worked (check was done with framemd5 checksums). But i need to force ffmpeg to use the libopenjpeg decoder. If I give the jpeg2000 MXF file (libopenjpeg) as source into a CARBON CODER, the picture looks exactly like the same I see in ffplay when I DONT use the libopenjpeg decoder. Officially Carbon Coder is able to READ jpeg2000.... but not to read correctly? bg Christoph From cehoyos at ag.or.at Tue Oct 28 11:12:33 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 Oct 2014 11:12:33 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <544F6446.6040704@gmail.com> References: <544E90E1.9030204@gmail.com> <201410281014.58600.cehoyos@ag.or.at> <544F6446.6040704@gmail.com> Message-ID: <201410281112.33265.cehoyos@ag.or.at> On Tuesday 28 October 2014 10:39:18 am Christoph Gerstbauer wrote: > > And you have shown convincingly that there is a better alternative > > to one existing jpeg2000 implementation. It will be no problem to > > write a faster one if you have the time (or the money), I am not sure > > if compression will be better than with current libopenjpeg. > > How much (approx) would it cost to write a faster jpeg2000 encoder for > ffmpeg? I was hoping you would understand that this money is (from your point of view) wasted. Since this would be a very welcome patch to FFmpeg, please ask Michael or Kamil Nowosad. Note that the decoder should be fixed at the same time. > > Note that the issues with jpeg2000 are of course nothing against the > > issues that mxf has, iirc you already know that there are as many > > interpretations of the standard as implementations, don't you? > > The most solutions which are using JPEG2000 are encoding in lossy > compression mode, as far as I know. This seems unlikely to me but I am definitely no j2k expert. > Additionally, I spoek last week with a very professional video guy, and ^^^^^^^^^^^^^^^^^^^^^^ > he said to me how he checks the "losslessness" of jpeg2000. > He makes a difference picture of the original source and the encoded > jpeg2000 -> and checks this just VISUALLY. (o.O) ^^^^^^^^ There is some contradiction in your writing... > He does not make frame md5s. So his (mathemtically) lossless checks are > only visually checks. > > And yes, I know that there are so mich implementations. Like Samma Solo > (Front Porch) or OpenCube etc... > The most solutions which are using JPEG2000 are anyhow encoding in lossy > compression mode, as far as I know. That seems useless for archiving. > > And regarding the "professional" solutions: Please ask them to show > > you how to get the original content back after encoding once;-) > > > > Please do not top-post here, Carl Eugen > > Yesterday I tested to extract the original source from a libopenjpeg > encoded file, and it worked (check was done with framemd5 checksums). > But i need to force ffmpeg to use the libopenjpeg decoder. Of course. Sorry if you believe that this is not sufficiently documented, this is one of the very indirect (but still bad) consequences of the fork. > If I give the jpeg2000 MXF file (libopenjpeg) as source into a CARBON > CODER, the picture looks exactly like the same I see in ffplay when I > DONT use the libopenjpeg decoder. Officially Carbon Coder is able to > READ jpeg2000.... but not to read correctly? (Did you already guess why Carbon Coder produces the same output as ffplay?) Could you please send the Carbon Coder EULA either to this mailing list or to me personally? This would be *very* welcome! Thank you, Carl Eugen From barsnick at gmx.net Tue Oct 28 11:28:04 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 28 Oct 2014 11:28:04 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <201410281112.33265.cehoyos@ag.or.at> References: <544E90E1.9030204@gmail.com> <201410281014.58600.cehoyos@ag.or.at> <544F6446.6040704@gmail.com> <201410281112.33265.cehoyos@ag.or.at> Message-ID: <20141028102804.GC22216@sunshine.barsnick.net> On Tue, Oct 28, 2014 at 11:12:33 +0100, Carl Eugen Hoyos wrote: > > Additionally, I spoek last week with a very professional video guy, and > ^^^^^^^^^^^^^^^^^^^^^^ > > jpeg2000 -> and checks this just VISUALLY. (o.O) > ^^^^^^^^ > There is some contradiction in your writing... I believe "professional(ly)" originally means that he is doing it as a profession, i.e. to earn his livelihood. It doesn't have to mean he does it well. ;-) As in "amateur sports" vs. "professional sports". Moritz From cehoyos at ag.or.at Tue Oct 28 11:43:19 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 Oct 2014 11:43:19 +0100 Subject: [FFmpeg-user] MOX kickstarter In-Reply-To: References: <1414436816.68983.YahooMailNeo@web161504.mail.bf1.yahoo.com> Message-ID: <201410281143.19964.cehoyos@ag.or.at> On Tuesday 28 October 2014 09:42:15 am Rio Kierkels wrote: > I'll be making an effort to contribute to the project Just to make sure: All contributions (code, documentation, reproducible bug reports and financial contributions) for FFmpeg are very welcome (and needed)! To the best of my knowledge, FFmpeg supports most of what this project wants to achieve, the remaining features should not take 6 months to implement. (And from a quick look, the missing features are only missing because nobody specified them yet.) Carl Eugen From cehoyos at ag.or.at Tue Oct 28 11:49:23 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 Oct 2014 11:49:23 +0100 Subject: [FFmpeg-user] ffmpeg - error In-Reply-To: <8d63d243e29b4b0885063dbd39f6f522@CY1PR0801MB0857.namprd08.prod.outlook.com> References: <8d63d243e29b4b0885063dbd39f6f522@CY1PR0801MB0857.namprd08.prod.outlook.com> Message-ID: <201410281149.23603.cehoyos@ag.or.at> On Monday 27 October 2014 04:02:24 pm Chaganti, Ravi (RE-CON) wrote: > OS is Oracle Solaris 10. Please install a compiler on your system or pass the compiler path with "--cc=". > root at xxxx # ./configure > --extra-cflags="-fpicfPIC" Remove this. > --extra-ldflags="-L/usr/local/lib -R/usr/local/lib" Are they really needed? I don't think so, please remove them if they are not necessary. > --disable-mmx This is always bad, please remove it. (Or explain why you think it is needed / open a bug report.) > --disable-protocol=udp --disable-encoder=nellymoser I am very curious: Could you explain why you added these options? > --disable-debug This is normally not a good idea. > --arch=sparc --target-os=sunossunos --enable-cross-compile Remove all of them if you want to compile on your Oracle system for an Orcale system. > The information transmitted is intended only for the person or entity to > which it is addressed and may contain confidential and/or privileged > material. Please understand that this makes no sense when sending an email to a public mailing list and lets your company look stupid. Carl Eugen From cehoyos at ag.or.at Tue Oct 28 11:55:40 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 Oct 2014 11:55:40 +0100 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: <544E9EC5.9070706@gmail.com> References: <5447FD04.80602@gmail.com> <544E9EC5.9070706@gmail.com> Message-ID: <201410281155.40532.cehoyos@ag.or.at> On Monday 27 October 2014 08:36:37 pm Paulo Fidalgo wrote: > On 27/10/14 00:04, Carl Eugen Hoyos wrote: > > Paulo Fidalgo gmail.com> writes: > >> After making another test with lame and ffmpeg > > > > Please test the following: > > > > $ lame -V 0 -q 0 2L38_01_96kHz.wav 2L38_01_96kHz-lame-V0.mp3 > > $ ffmpeg -i 2L38_01_96kHz.wav -compression_level 1 -q:0 0 out.mp3 > > The file created by lame works, although the ffmpeg don't. Hmm. Is the problem related at all to "-q:0" or is it also reproducible if you specify a bitrate (or neither bitrate nor quality)? > If there's something I can do to further investigate please let me know. You could ask Volvo again (as said, the bitrate is not >320 for any frame) but I wonder now if you shouldn't just use -write_xing 0 or -id3v2_version 3. Carl Eugen From christophgerstbauer at gmail.com Tue Oct 28 11:56:24 2014 From: christophgerstbauer at gmail.com (Christoph Gerstbauer) Date: Tue, 28 Oct 2014 11:56:24 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <20141028102804.GC22216@sunshine.barsnick.net> References: <544E90E1.9030204@gmail.com> <201410281014.58600.cehoyos@ag.or.at> <544F6446.6040704@gmail.com> <201410281112.33265.cehoyos@ag.or.at> <20141028102804.GC22216@sunshine.barsnick.net> Message-ID: <544F7658.9060006@gmail.com> > On Tue, Oct 28, 2014 at 11:12:33 +0100, Carl Eugen Hoyos wrote: >>> Additionally, I spoek last week with a very professional video guy, and >> ^^^^^^^^^^^^^^^^^^^^^^ >>> jpeg2000 -> and checks this just VISUALLY. (o.O) >> ^^^^^^^^ >> There is some contradiction in your writing... > I believe "professional(ly)" originally means that he is doing it as a > profession, i.e. to earn his livelihood. It doesn't have to mean he > does it well. ;-) > > As in "amateur sports" vs. "professional sports". > Thats why I made this smilie: (o.O) I meaned that in the international video world, this "professional" video guy is a very important person (eminently respectable in some video issues). I was wondering myself how he could get this status, when he is just checking visually his content. I can never trust my eyes, but I can always trust a framemd5 (numbers dont lie). He didnt know that the possibility to check via framemd5s even exists... Anyhow, how can a set the LOSSY encoding in libopenjpeg? via "-b:v" or "-q"? I want to know all encoding/decoding paramaters of the libopenjpeg codec or also j2k (if this is still implemented codec, even if it is experimentally) From barsnick at gmx.net Tue Oct 28 12:02:17 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 28 Oct 2014 12:02:17 +0100 Subject: [FFmpeg-user] ffmpeg/ffserver h264 webcam streaming In-Reply-To: References: Message-ID: <20141028110217.GD22216@sunshine.barsnick.net> On Mon, Oct 27, 2014 at 20:52:13 +0000, Ricardo Mota wrote: > I'm trying to setup a h264 streaming from my webcam to the web using the > following configuration file for ffserver. > - ffserver.conf For reference, here is one relevant part: # Output stream URL definition Feed feed1.ffm # Feed from which to receive video Format mp4 # Audio settings NoAudio VideoCodec libx264 VideoSize 1280x720 VideoFrameRate 25 AVOptionVideo flags +global_header AVOptionVideo cpu-used 0 AVOptionVideo qmin 10 AVOptionVideo qmax 42 AVOptionVideo quality good AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionAudio flags +global_header PreRoll 15 StartSendOnKey VideoBitRate 1M > *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9d680008c0] Format mov,mp4,m4a,3gp,3g2,mj2 > detected only with low score of 1, misdetection possible!* > *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9d680008c0] moov atom not found* > *http://localhost:8090/test.mp4 : Invalid > data found when processing input* It seems this is an FAQ. Most answers hint that mp4 is not a suitable format, despite "flags +global_header". If you replace the above config with flv: Feed feed1.ffm Format flv [...] and access the appropriate URL with ffplay (http://localhost:8090/test.flv), it works fine (for me). Moritz From ricardoflmota at gmail.com Tue Oct 28 13:00:46 2014 From: ricardoflmota at gmail.com (Ricardo Mota) Date: Tue, 28 Oct 2014 12:00:46 +0000 Subject: [FFmpeg-user] ffmpeg/ffserver h264 webcam streaming In-Reply-To: <20141028110217.GD22216@sunshine.barsnick.net> References: <20141028110217.GD22216@sunshine.barsnick.net> Message-ID: Thank you for your help Moritz, I tried your suggestion and I can say it works. I'm now trying to implement the same thing but using webm streaming, with the same configuration, just replacing the format and VideoCodec: * # Output stream URL definition* * Feed feed1.ffm # Feed from which to receive video* * Format webm* * # Audio settings* * NoAudio * * VideoCodec libvpx* * VideoSize 1280x720 * * VideoFrameRate 25 * * AVOptionVideo flags +global_header * * AVOptionVideo cpu-used 0* * AVOptionVideo qmin 10* * AVOptionVideo qmax 42* * AVOptionVideo quality good* * AVOptionVideo me_range 16* * AVOptionVideo qdiff 4* * AVOptionAudio flags +global_header* * PreRoll 15* * StartSendOnKey* * VideoBitRate 1M* ** but when i try to run it with *ffmpeg -f v4l2 -input_format rawvideo -pixel_format yuyv422 -framerate 25 -video_size 1280x720 -i /dev/video0 http://localhost:8090/feed1.ffm *, i get the following error: - http://pastebin.com/Z0ePhx3N On Tue, Oct 28, 2014 at 11:02 AM, Moritz Barsnick wrote: > On Mon, Oct 27, 2014 at 20:52:13 +0000, Ricardo Mota wrote: > > I'm trying to setup a h264 streaming from my webcam to the web using the > > following configuration file for ffserver. > > > - ffserver.conf > > For reference, here is one relevant part: > > # Output stream URL definition > Feed feed1.ffm # Feed from which to receive video > Format mp4 > > # Audio settings > NoAudio > > VideoCodec libx264 > VideoSize 1280x720 > VideoFrameRate 25 > AVOptionVideo flags +global_header > AVOptionVideo cpu-used 0 > AVOptionVideo qmin 10 > AVOptionVideo qmax 42 > AVOptionVideo quality good > AVOptionVideo me_range 16 > AVOptionVideo qdiff 4 > AVOptionAudio flags +global_header > PreRoll 15 > StartSendOnKey > VideoBitRate 1M > > > > *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9d680008c0] Format > mov,mp4,m4a,3gp,3g2,mj2 > > detected only with low score of 1, misdetection possible!* > > *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9d680008c0] moov atom not found* > > *http://localhost:8090/test.mp4 : > Invalid > > data found when processing input* > > It seems this is an FAQ. Most answers hint that mp4 is not a suitable > format, despite "flags +global_header". > > If you replace the above config with flv: > > Feed feed1.ffm > Format flv > [...] > > and access the appropriate URL with ffplay > (http://localhost:8090/test.flv), it works fine (for me). > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Ricardo Frederico Leote Mota Mestrado Integrado em Engenharia Electrot?cnica e de Computadores - N? 25154 *http://artica.cc * *faceboo**k* *blog * *youtube * Embedded, Robotics and Control Systems Engineer @ Artica CC We transform emerging technologies and art into *meaningful* human experiences. Artica digs electronics, education, robots, digital fabrication, prototyping, and all things creative. E-Mail : ricardoflmota at gmail.com Phone : (+351) 92 442 19 71 Skype : rfl.mota From barsnick at gmx.net Tue Oct 28 13:28:47 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 28 Oct 2014 13:28:47 +0100 Subject: [FFmpeg-user] ffmpeg/ffserver h264 webcam streaming In-Reply-To: References: <20141028110217.GD22216@sunshine.barsnick.net> Message-ID: <20141028122847.GF22216@sunshine.barsnick.net> On Tue, Oct 28, 2014 at 12:00:46 +0000, Ricardo Mota wrote: > - http://pastebin.com/Z0ePhx3N Please always post logs to the list! > but when i try to run it with *ffmpeg -f v4l2 -input_format rawvideo > -pixel_format yuyv422 -framerate 25 -video_size 1280x720 -i /dev/video0 > http://localhost:8090/feed1.ffm *, i get You're probably not encoding to webm. You need to add something like -c:v libvpx to your ffmpeg command line. But I'm just guessing, I can't test since I don't have libvpx. Moritz From ricardoflmota at gmail.com Tue Oct 28 13:32:15 2014 From: ricardoflmota at gmail.com (Ricardo Mota) Date: Tue, 28 Oct 2014 12:32:15 +0000 Subject: [FFmpeg-user] ffmpeg/ffserver h264 webcam streaming In-Reply-To: <20141028122847.GF22216@sunshine.barsnick.net> References: <20141028110217.GD22216@sunshine.barsnick.net> <20141028122847.GF22216@sunshine.barsnick.net> Message-ID: But should't ffserver configuration file provide the encoding options, namely *VideoCodec *libvpx? With ffmpeg command I'm just feeding the raw video stream... On Tue, Oct 28, 2014 at 12:28 PM, Moritz Barsnick wrote: > On Tue, Oct 28, 2014 at 12:00:46 +0000, Ricardo Mota wrote: > > > - http://pastebin.com/Z0ePhx3N > > Please always post logs to the list! > > > but when i try to run it with *ffmpeg -f v4l2 -input_format rawvideo > > -pixel_format yuyv422 -framerate 25 -video_size 1280x720 -i /dev/video0 > > http://localhost:8090/feed1.ffm *, i > get > > You're probably not encoding to webm. You need to add something like > -c:v libvpx > to your ffmpeg command line. But I'm just guessing, I can't test since > I don't have libvpx. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Ricardo Frederico Leote Mota Mestrado Integrado em Engenharia Electrot?cnica e de Computadores - N? 25154 *http://artica.cc * *faceboo**k* *blog * *youtube * Embedded, Robotics and Control Systems Engineer @ Artica CC We transform emerging technologies and art into *meaningful* human experiences. Artica digs electronics, education, robots, digital fabrication, prototyping, and all things creative. E-Mail : ricardoflmota at gmail.com Phone : (+351) 92 442 19 71 Skype : rfl.mota From ryan.vincent29 at gmail.com Tue Oct 28 14:15:46 2014 From: ryan.vincent29 at gmail.com (Ryan Vincent) Date: Tue, 28 Oct 2014 08:15:46 -0500 Subject: [FFmpeg-user] Images and Lengths of Time to Generate Video Message-ID: Hello ffmpeg-users, I am currently working on a project where I would like to take a series of images and create a video, however, I would like the images to be displayed for a certain, but different amount of time. For example, I have a series of 3 images, image1, image2, and image3. I would like image1 to be displayed for 3 seconds, image2 for 9 seconds and image3 for 4 seconds. Ideally, I could take care of this problem using timestamps (since I generate these files in the order and the approximate time frame they need to be rendered), but am not sure that is possible. Additionally, I know that I could, in a script, generate a loop video of each of the images separately, and then concatenate those videos in order to get the desired output, but I didn't know if it was possible to do this in a different way, with ffmpeg. Any help would be much appreciated! Ryan From greeshmabalabadra at gmail.com Tue Oct 28 14:46:20 2014 From: greeshmabalabadra at gmail.com (greeshma) Date: Tue, 28 Oct 2014 19:16:20 +0530 Subject: [FFmpeg-user] New MLP Encoder(urgent) In-Reply-To: <20141028082130.GB22216@sunshine.barsnick.net> References: <20141028082130.GB22216@sunshine.barsnick.net> Message-ID: hi, using the below line, ./ffmpeg -f s16le -i ~/file.raw -acodec mlp -b:a 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp I got the following error ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Oct 27 2014 22:58:52 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/soumya/ffmpeg_build --extra-cflags=-I/home/soumya/ffmpeg_build/include --extra-ldflags=-L/home/soumya/ffmpeg_build/lib --bindir=/home/soumya/bin --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 --cc=c99 libavutil 54. 10.100 / 54. 10.100 libavcodec 56. 9.102 / 56. 9.102 libavformat 56. 9.101 / 56. 9.101 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [s16le @ 0x221af60] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.0 : mono Input #0, s16le, from '/home/soumya/file.raw': Duration: 00:10:51.83, bitrate: 705 kb/s Stream #0:0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s File '/home/soumya/final.mlp' already exists. Overwrite ? [y/N] y Output #0, mlp, to '/home/soumya/final.mlp': Metadata: encoder : Lavf56.9.101 Stream #0:0: Audio: mlp, 44100 Hz, mono, s16 Metadata: encoder : Lavc56.9.102 mlp Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> mlp (native)) Press [q] to stop, [?] for help *** Error in `./ffmpeg': munmap_chunk(): invalid pointer: 0x0000000000c75610 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7f4c6)[0x7f5f450a74c6] ./ffmpeg[0xd04b2c] ./ffmpeg[0x869607] ./ffmpeg[0x884d99] ./ffmpeg[0x889184] ./ffmpeg[0x9dd300] ./ffmpeg[0x48a3b3] ./ffmpeg[0x46efea] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f5f45049de5] ./ffmpeg[0x4714f2] ======= Memory map: ======== 00400000-0143b000 r-xp 00000000 08:06 439489 /home/soumya/ffmpeg_sources/ffmpeg/ffmpeg 0163a000-0163b000 r--p 0103a000 08:06 439489 /home/soumya/ffmpeg_sources/ffmpeg/ffmpeg 0163b000-01672000 rw-p 0103b000 08:06 439489 /home/soumya/ffmpeg_sources/ffmpeg/ffmpeg 01672000-01dca000 rw-p 00000000 00:00 0 02202000-0227a000 rw-p 00000000 00:00 0 [heap] 7f5f3ee85000-7f5f3ee9a000 r-xp 00000000 08:06 1571697 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f5f3ee9a000-7f5f3f099000 ---p 00015000 08:06 1571697 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f5f3f099000-7f5f3f09a000 r--p 00014000 08:06 1571697 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f5f3f09a000-7f5f3f09b000 rw-p 00015000 08:06 1571697 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f5f3f09b000-7f5f3f09c000 ---p 00000000 00:00 0 7f5f3f09c000-7f5f3f89c000 rw-p 00000000 00:00 0 [stack:15396] 7f5f3f89c000-7f5f3f89d000 ---p 00000000 00:00 0 7f5f3f89d000-7f5f4009d000 rw-p 00000000 00:00 0 [stack:15395] 7f5f4009d000-7f5f4009e000 ---p 00000000 00:00 0 7f5f4009e000-7f5f4089e000 rw-p 00000000 00:00 0 [stack:15394] 7f5f4089e000-7f5f4089f000 ---p 00000000 00:00 0 7f5f4089f000-7f5f4109f000 rw-p 00000000 00:00 0 [stack:15393] 7f5f4109f000-7f5f410a0000 ---p 00000000 00:00 0 7f5f410a0000-7f5f418a0000 rw-p 00000000 00:00 0 [stack:15392] 7f5f418a0000-7f5f418b6000 r-xp 00000000 08:06 1571826 /lib/x86_64-linux-gnu/libresolv-2.17.so 7f5f418b6000-7f5f41ab6000 ---p 00016000 08:06 1571826 /lib/x86_64-linux-gnu/libresolv-2.17.so 7f5f41ab6000-7f5f41ab7000 r--p 00016000 08:06 1571826 /lib/x86_64-linux-gnu/libresolv-2.17.so 7f5f41ab7000-7f5f41ab8000 rw-p 00017000 08:06 1571826 /lib/x86_64-linux-gnu/libresolv-2.17.so 7f5f41ab8000-7f5f41aba000 rw-p 00000000 00:00 0 7f5f41aba000-7f5f41ae9000 r-xp 00000000 08:06 2098881 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0 7f5f41ae9000-7f5f41ce9000 ---p 0002f000 08:06 2098881 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0 7f5f41ce9000-7f5f41cea000 r--p 0002f000 08:06 2098881 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0 7f5f41cea000-7f5f41ceb000 rw-p 00030000 08:06 2098881 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0 7f5f41ceb000-7f5f41d02000 r-xp 00000000 08:06 1570604 /lib/x86_64-linux-gnu/libnsl-2.17.so 7f5f41d02000-7f5f41f01000 ---p 00017000 08:06 1570604 /lib/x86_64-linux-gnu/libnsl-2.17.so 7f5f41f01000-7f5f41f02000 r--p 00016000 08:06 1570604 /lib/x86_64-linux-gnu/libnsl-2.17.so 7f5f41f02000-7f5f41f03000 rw-p 00017000 08:06 1570604 /lib/x86_64-linux-gnu/libnsl-2.17.so 7f5f41f03000-7f5f41f05000 rw-p 00000000 00:00 0 7f5f41f05000-7f5f41f0a000 r-xp 00000000 08:06 2094207 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f5f41f0a000-7f5f42109000 ---p 00005000 08:06 2094207 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f5f42109000-7f5f4210a000 r--p 00004000 08:06 2094207 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f5f4210a000-7f5f4210b000 rw-p 00005000 08:06 2094207 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 7f5f4210b000-7f5f4216c000 r-xp 00000000 08:06 2099215 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f5f4216c000-7f5f4236c000 ---p 00061000 08:06 2099215 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f5f4236c000-7f5f4236e000 r--p 00061000 08:06 2099215 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f5f4236e000-7f5f4236f000 rw-p 00063000 08:06 2099215 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25 7f5f4236f000-7f5f42373000 rw-p 00000000 00:00 0 7f5f42373000-7f5f4237b000 r-xp 00000000 08:06 1573882 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f5f4237b000-7f5f4257b000 ---p 00008000 08:06 1573882 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f5f4257b000-7f5f4257c000 r--p 00008000 08:06 1573882 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f5f4257c000-7f5f4257d000 rw-p 00009000 08:06 1573882 /lib/x86_64-linux-gnu/libwrap.so.0.7.6 7f5f4257d000-7f5f425a4000 r-xp 00000000 08:06 1569850 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f5f425a4000-7f5f427a4000 ---p 00027000 08:06 1569850 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f5f427a4000-7f5f427a6000 r--p 00027000 08:06 1569850 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f5f427a6000-7f5f427a7000 rw-p 00029000 08:06 1569850 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f5f427a7000-7f5f427cc000 r-xp 00000000 08:06 1571700 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7f5f427cc000-7f5f429cb000 ---p 00025000 08:06 1571700 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7f5f429cb000-7f5f429cf000 r--p 00024000 08:06 1571700 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7f5f429cf000-7f5f429d0000 rw-p 00028000 08:06 1571700 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7f5f429d0000-7f5f42a03000 r-xp 00000000 08:06 1571698 /lib/x86_64-linux-gnu/libncursesw.so.5.9 7f5f42a03000-7f5f42c02000 ---p 00033000 08:06 1571698 /lib/x86_64-linux-gnu/libncursesw.so.5.9 7f5f42c02000-7f5f42c03000 r--p 00032000 08:06 1571698 /lib/x86_64-linux-gnu/libncursesw.so.5.9 7f5f42c03000-7f5f42c04000 rw-p 00033000 08:06 1571698 /lib/x86_64-linux-gnu/libncursesw.so.5.9 7f5f42c04000-7f5f42d14000 r-xp 00000000 08:06 1573857 /lib/x86_64-linux-gnu/libslang.so.2.2.4 7f5f42d14000-7f5f42f13000 ---p 00110000 08:06 1573857 /lib/x86_64-linux-gnu/libslang.so.2.2.4 7f5f42f13000-7f5f42f17000 r--p 0010f000 08:06 1573857 /lib/x86_64-linux-gnu/libslang.so.2.2.4 7f5f42f17000-7f5f42f30000 rw-p 00113000 08:06 1573857 /lib/x86_64-linux-gnu/libslang.so.2.2.4 7f5f42f30000-7f5f42f94000 rw-p 00000000 00:00 0 7f5f42f94000-7f5f42fd8000 r-xp 00000000 08:06 1569797 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.4 7f5f42fd8000-7f5f431d7000 ---p 00044000 08:06 1569797 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.4 7f5f431d7000-7f5f431d8000 r--p 00043000 08:06 1569797 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.4 7f5f431d8000-7f5f431d9000 rw-p 00044000 08:06 1569797 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.4 7f5f431d9000-7f5f431e2000 r-xp 00000000 08:06 1569836 /lib/x86_64-linux-gnu/libjson-c.so.2.0.1 7f5f431e2000-7f5f433e2000 ---p 00009000 08:06 1569836 /lib/x86_64-linux-gnu/libjson-c.so.2.0.1 7f5f433e2000-7f5f433e3000 r--p 00009000 08:06 1569836 /lib/x86_64-linux-gnu/libjson-c.so.2.0.1 7f5f433e3000-7f5f433e4000 rw-p 0000a000 08:06 1569836 /lib/x86_64-linux-gnu/libjson-c.so.2.0.1 7f5f433e4000-7f5f4344a000 r-xp 00000000 08:06 1518 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so 7f5f4344a000-7f5f43649000 ---p 00066000 08:06 1518 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so 7f5f43649000-7f5f4364a000 r--p 00065000 08:06 1518 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so 7f5f4364a000-7f5f4364b000 rw-p 00066000 08:06 1518 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so 7f5f4364b000-7f5f43650000 r-xp 00000000 08:06 2101520 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0 7f5f43650000-7f5f4384f000 ---p 00005000 08:06 2101520 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0 7f5f4384f000-7f5f43850000 r--p 00004000 08:06 2101520 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0 7f5f43850000-7f5f43851000 rw-p 00005000 08:06 2101520 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0 7f5f43851000-7f5f43853000 r-xp 00000000 08:06 2096602 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 7f5f43853000-7f5f43a53000 ---p 00002000 08:06 2096602 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 7f5f43a53000-7f5f43a54000 r--p 00002000 08:06 2096602 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 7f5f43a54000-7f5f43a55000 rw-p 00003000 08:06 2096602 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 7f5f43a55000-7f5f43a82000 r-xp 00000000 08:06 2095579 /usr/lib/x86_64-linux-gnu/libenca.so.0.5.1 7f5f43a82000-7f5f43c82000 ---p 0002d000 08:06 2095579 /usr/lib/x86_64-linux-gnu/libenca.so.0.5.1 7f5f43c82000-7f5f43c84000 r--p 0002d000 08:06 2095579 /usr/lib/x86_64-linux-gnu/libenca.so.0.5.1 7f5f43c84000-7f5f43c88000 rw-p 0002f000 08:06 2095579 /usr/lib/x86_64-linux-gnu/libenca.so.0.5.1 7f5f43c88000-7f5f43cc1000 r-xp 00000000 08:06 2093668 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.7.0 7f5f43cc1000-7f5f43ec1000 ---p 00039000 08:06 2093668 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.7.0 7f5f43ec1000-7f5f43ec3000 r--p 00039000 08:06 2093668 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.7.0 7f5f43ec3000-7f5f43ec4000 rw-p 0003b000 08:06 2093668 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.7.0 7f5f43ec4000-7f5f43eda000 r-xp 00000000 08:06 2093214 /usr/lib/x86_64-linux-gnu/libfribidi.so.0.3.4 7f5f43eda000-7f5f440d9000 ---p 00016000 08:06 2093214 /usr/lib/x86_64-linux-gnu/libfribidi.so.0.3.4 7f5f440d9000-7f5f440da000 r--p 00015000 08:06 2093214 /usr/lib/x86_64-linux-gnu/libfribidi.so.0.3.4 7f5f440da000-7f5f440db000 rw-p 00016000 08:06 2093214 /usr/lib/x86_64-linux-gnu/libfribidi.so.0.3.4 7f5f440db000-7f5f440e2000 r-xp 00000000 08:06 2098877 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1 7f5f440e2000-7f5f442e2000 ---p 00007000 08:06 2098877 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1 7f5f442e2000-7f5f442e3000 r--p 00007000 08:06 2098877 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1 7f5f442e3000-7f5f442e4000 rw-p 00008000 08:06 2098877 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1 7f5f442e4000-7f5f443aa000 r-xp 00000000 08:06 2098902 /usr/lib/x86_64-linux-gnu/libcaca.so.0.99.18 7f5f443aa000-7f5f445aa000 ---p 000c6000 08:06 2098902 /usr/lib/x86_64-linux-gnu/libcaca.so.0.99.18 7f5f445aa000-7f5f445ab000 r--p 000c6000 08:06 2098902 /usr/lib/x86_64-linux-gnu/libcaca.so.0.99.18 7f5f445ab000-7f5f445ac000 rw-p 000c7000 08:06 2098902 /usr/lib/x86_64-linux-gnu/libcaca.so.0.99.18 7f5f445ac000-7f5f445b1000 rw-p 00000000 00:00 0 7f5f445b1000-7f5f445f8000 r-xp 00000000 08:06 2099304 /usr/lib/x86_64-linux-gnu/libpulse.so.0.16.2 7f5f445f8000-7f5f447f8000 ---p 00047000 08:06 2099304 /usr/lib/x86_64-linux-gnu/libpulse.so.0.16.2 7f5f447f8000-7f5f447f9000 r--p 00047000 08:06 2099304 /usr/lib/x86_64-linux-gnu/libpulse.so.0.16.2 7f5f447f9000-7f5f447fa000 rw-p 00048000 08:06 2099304 /usr/lib/x86_64-linux-gnu/libpulse.so.0.16.2 7f5f447fa000-7f5f447fd000 r-xp 00000000 08:06 2099305 /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.0.4 7f5f447fd000-7f5f449fc000 ---p 00003000 08:06 2099305 /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.0.4 7f5f449fc000-7f5f449fd000 r--p 00002000 08:06 2099305 /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.0.4 7f5f449fd000-7f5f449fe000 rw-p 00003000 08:06 2099305 /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.0.4 7f5f449fe000-7f5f44a05000 r-xp 00000000 08:06 1571837 /lib/x86_64-linux-gnu/librt-2.17.so 7f5f44a05000-7f5f44c04000 ---p 00007000 08:06 1571837 /lib/x86_64-linux-gnu/librt-2.17.so 7f5f44c04000-7f5f44c05000 r--p 00006000 08:06 1571837 /lib/x86_64-linux-gnu/librt-2.17.so 7f5f44c05000-7f5f44c06000 rw-p 00007000 08:06 1571837 /lib/x86_64-linux-gnu/librt-2.17.so 7f5f44c06000-7f5f44c23000 r-xp 00000000 08:06 2096604 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 7f5f44c23000-7f5f44e22000 ---p 0001d000 08:06 2096604 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 7f5f44e22000-7f5f44e23000 r--p 0001c000 08:06 2096604 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 7f5f44e23000-7f5f44e24000 rw-p 0001d000 08:06 2096604 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 7f5f44e24000-7f5f44e27000 r-xp 00000000 08:06 1571843 /lib/x86_64-linux-gnu/libdl-2.17.so 7f5f44e27000-7f5f45026000 ---p 00003000 08:06 1571843 /lib/x86_64-linux-gnu/libdl-2.17.so 7f5f45026000-7f5f45027000 r--p 00002000 08:06 1571843 /lib/x86_64-linux-gnu/libdl-2.17.so 7f5f45027000-7f5f45028000 rw-p 00003000 08:06 1571843 /lib/x86_64-linux-gnu/libdl-2.17.so 7f5f45028000-7f5f451e5000 r-xp 00000000 08:06 1571842 /lib/x86_64-linux-gnu/libc-2.17.so 7f5f451e5000-7f5f453e5000 ---p 001bd000 08:06 1571842 /lib/x86_64-linux-gnu/libc-2.17.so 7f5f453e5000-7f5f453e9000 r--p 001bd000 08:06 1571842 /lib/x86_64-linux-gnu/libc-2.17.so 7f5f453e9000-7f5f453eb000 rw-p 001c1000 08:06 1571842 /lib/x86_64-linux-gnu/libc-2.17.so 7f5f453eb000-7f5f453f0000 rw-p 00000000 00:00 0 7f5f453f0000-7f5f45407000 r-xp 00000000 08:06 1571844 /lib/x86_64-linux-gnu/libpthread-2.17.so 7f5f45407000-7f5f45607000 ---p 00017000 08:06 1571844 /lib/x86_64-linux-gnu/libpthread-2.17.so 7f5f45607000-7f5f45608000 r--p 00017000 08:06 1571844 /lib/x86_64-linux-gnu/libpthread-2.17.so 7f5f45608000-7f5f45609000 rw-p 00018000 08:06 1571844 /lib/x86_64-linux-gnu/libpthread-2.17.so 7f5f45609000-7f5f4560d000 rw-p 00000000 00:00 0 7f5f4560d000-7f5f45610000 r-xp 00000000 08:06 2100990 /usr/lib/x86_64-linux-gnu/libvdpau.so.1.0.0Aborted (core dumped) What is the problem? Greeshma Balabhadra Pre final Undergraduate IIT Guwahati +91 7896366744 greeshma at iitg.ernet.in On Tue, Oct 28, 2014 at 1:51 PM, Moritz Barsnick wrote: > On Tue, Oct 28, 2014 at 07:39:31 +0530, greeshma wrote: > > I have converted .wav file to .pcm file using acodec pcm_s16le . > > You should tell us how you did this. > > > But i am getting the below error > > user at user:~/ffmpeg_sources/ffmpeg$ ./ffmpeg -i ~/file.raw -acodec mlp > -b:a > > 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp > [...] > > [image2 @ 0x3d6ff60] Format image2 detected only with low score of 5, > > misdetection possible! > > [rawvideo @ 0x3d70d80] Invalid pixel format. > > [image2 @ 0x3d6ff60] Failed to open codec in av_find_stream_info > > [rawvideo @ 0x3d70d80] Invalid pixel format. > > [image2 @ 0x3d6ff60] Could not find codec parameters for stream 0 (Video: > > rawvideo, none): unspecified size > > Consider increasing the value for the 'analyzeduration' and 'probesize' > > options > > /home/user/file.raw: could not find codec parameters > > It seems you created a raw audio file. ffmpeg cannot detect it as such, > because it is raw, i.e. it has no headers or such to indicate its > format. You need to tell ffmpeg via the input file parameters (before > "-i" what type of file to expect. In your case, that should probably be > "-f s16le": > > ./ffmpeg -f s16le -i ~/file.raw -acodec mlp -b:a 18m -r 29.97 -strict > unofficial -sample_fmt s16 ~/final.mlp > > (Depending on what sort of file ~/file.raw actually is.) > > > Please help me out > > Hope this helps, > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From dave at dericed.com Tue Oct 28 15:18:23 2014 From: dave at dericed.com (Dave Rice) Date: Tue, 28 Oct 2014 10:18:23 -0400 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <544F7658.9060006@gmail.com> References: <544E90E1.9030204@gmail.com> <201410281014.58600.cehoyos@ag.or.at> <544F6446.6040704@gmail.com> <201410281112.33265.cehoyos@ag.or.at> <20141028102804.GC22216@sunshine.barsnick.net> <544F7658.9060006@gmail.com> Message-ID: <780E799E-4B3A-4213-9040-C7081ADA5FF0@dericed.com> On Oct 28, 2014, at 6:56 AM, Christoph Gerstbauer wrote: >> On Tue, Oct 28, 2014 at 11:12:33 +0100, Carl Eugen Hoyos wrote: >>>> Additionally, I spoek last week with a very professional video guy, and >>> ^^^^^^^^^^^^^^^^^^^^^^ >>>> jpeg2000 -> and checks this just VISUALLY. (o.O) >>> ^^^^^^^^ >>> There is some contradiction in your writing... >> I believe "professional(ly)" originally means that he is doing it as a >> profession, i.e. to earn his livelihood. It doesn't have to mean he >> does it well. ;-) >> >> As in "amateur sports" vs. "professional sports". > > Thats why I made this smilie: > > (o.O) > > I meaned that in the international video world, this "professional" video guy is a very important person (eminently respectable in some video issues). > I was wondering myself how he could get this status, when he is just checking visually his content. Using a human eye and a computer screen to verify losslessness at this scale doesn?t make sense for a number of reasons. Both the original video and the lossless version would have been converted to RGB and 8 bit to show on a computer screen so any details in higher bit depth content or lost in the colorspace conversion would not be noticeable. If you presume that the video is one hours of NTSC SD video that 720x486 times 29.97 frames/second times 3600 seconds per hour or 37,753,568,640 pixels that represent values from multiple planes. Despite how 'professional' someone may be I don?t think it is feasible or sane for a human to visualize determine what sample value is represented per pixel in a computer screen representation of a video and if it exactly correlates to a related pixel in another video. Even if they use intensive sampling to accomplish this it?s likely a visual check would miss single frame discrepancies like this one: https://twitter.com/dericed/status/482195897456275457. > I can never trust my eyes, but I can always trust a framemd5 (numbers dont lie). > He didnt know that the possibility to check via framemd5s even exists? Not too hard to conceive of changing DECODER->ENCODER or DECODER->DISPLAY to DECODER->CHECKSUM. > Anyhow, how can a set the LOSSY encoding in libopenjpeg? via "-b:v" or "-q?? IIRC the libopenjpeg encoder/decoder in ffmpeg only supports lossless encoding. > I want to know all encoding/decoding paramaters of the libopenjpeg codec or also j2k (if this is still implemented codec, even if it is experimentally) ffmpeg -h encoder=libopenjpeg ffmpeg -h decoder=libopenjpeg ffmpeg -h encoder=jpeg2000 ffmpeg -h decoder=jpeg2000 Dave Rice From george at nsup.org Tue Oct 28 15:40:54 2014 From: george at nsup.org (Nicolas George) Date: Tue, 28 Oct 2014 15:40:54 +0100 Subject: [FFmpeg-user] Images and Lengths of Time to Generate Video In-Reply-To: References: Message-ID: <20141028144053.GA21191@phare.normalesup.org> Le septidi 7 brumaire, an CCXXIII, Ryan Vincent a ?crit?: > I am currently working on a project where I would like to take a series of > images and create a video, however, I would like the images to be displayed > for a certain, but different amount of time. You can do that with the concat demuxer: file a.jpg duration 5 file b.jpg duration 3 Note that the last frame's duration may not be preserved by the rest of the chain, especially if you use -vf fps=X:round=down to achieve a common frame rate. You can work around that using a final last frame: file b.jpg duration 2.96 file b.jpg duration 0.04 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 barsnick at gmx.net Tue Oct 28 16:22:30 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 28 Oct 2014 16:22:30 +0100 Subject: [FFmpeg-user] New MLP Encoder(urgent) In-Reply-To: References: <20141028082130.GB22216@sunshine.barsnick.net> Message-ID: <20141028152230.GG22216@sunshine.barsnick.net> Hi greeshma, you're writing this MLP encoder, right? On Tue, Oct 28, 2014 at 19:16:20 +0530, greeshma wrote: > I got the following error [...] > *** Error in `./ffmpeg': munmap_chunk(): invalid pointer: > 0x0000000000c75610 *** You have hit a segmentation fault. Most likely in your own code, but that's not known at this point. If you have modified the code, and can't reproduce this with "vanilla" ffmpeg source code, you'll have to debug by yourself. > ======= Backtrace: ========= > /lib/x86_64-linux-gnu/libc.so.6(+0x7f4c6)[0x7f5f450a74c6] > ./ffmpeg[0xd04b2c] > ./ffmpeg[0x869607] > ./ffmpeg[0x884d99] > ./ffmpeg[0x889184] > ./ffmpeg[0x9dd300] > ./ffmpeg[0x48a3b3] > ./ffmpeg[0x46efea] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f5f45049de5] > ./ffmpeg[0x4714f2] If you run ./ffmpeg_g instead, you should get a proper stacktrace. Otherwise, use gdb and possibly valgrind to get to the root of the problem. Short intros here: https://www.ffmpeg.org/bugreports.html If you don't know how to debug _your own_ code, I can't help you much further. But a look at a proper stack trace and some general gdb knowledge will usually help you out. Moritz From cehoyos at ag.or.at Tue Oct 28 16:29:09 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 28 Oct 2014 16:29:09 +0100 Subject: [FFmpeg-user] Mathematically lossless MotionJPEG2000 encoding possible? In-Reply-To: <544F7658.9060006@gmail.com> References: <544E90E1.9030204@gmail.com> <20141028102804.GC22216@sunshine.barsnick.net> <544F7658.9060006@gmail.com> Message-ID: <201410281629.09756.cehoyos@ag.or.at> On Tuesday 28 October 2014 11:56:24 am Christoph Gerstbauer wrote: > Anyhow, how can a set the LOSSY encoding in libopenjpeg? Set -compression_level to anything >0. But please remember ticket #3754. you have to use libopenjpeg 1.3 if you really want compression. Carl Eugen From ryan.vincent29 at gmail.com Tue Oct 28 19:00:18 2014 From: ryan.vincent29 at gmail.com (Ryan Vincent) Date: Tue, 28 Oct 2014 13:00:18 -0500 Subject: [FFmpeg-user] Images and Lengths of Time to Generate Video In-Reply-To: <20141028144053.GA21191@phare.normalesup.org> References: <20141028144053.GA21191@phare.normalesup.org> Message-ID: The concat demuxer did the trick. Thank you, Nicolas! Ryan On Tue, Oct 28, 2014 at 9:40 AM, Nicolas George wrote: > Le septidi 7 brumaire, an CCXXIII, Ryan Vincent a ?crit : > > I am currently working on a project where I would like to take a series > of > > images and create a video, however, I would like the images to be > displayed > > for a certain, but different amount of time. > > You can do that with the concat demuxer: > > file a.jpg > duration 5 > file b.jpg > duration 3 > > Note that the last frame's duration may not be preserved by the rest of the > chain, especially if you use -vf fps=X:round=down to achieve a common frame > rate. You can work around that using a final last frame: > > file b.jpg > duration 2.96 > file b.jpg > duration 0.04 > > Regards, > > -- > Nicolas George > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From obucinac at gmail.com Tue Oct 28 18:54:00 2014 From: obucinac at gmail.com (=?UTF-8?B?0KHRgNGS0LDQvSDQntCx0YPRm9C40L3QsA==?=) Date: Tue, 28 Oct 2014 18:54:00 +0100 Subject: [FFmpeg-user] ffmpeg4android and missing math functions Message-ID: This thread came to my attention today: http://ffmpeg.org/pipermail/ffmpeg-user/2014-July/022377.html Although the problem is solved, I want to point to the root cause, which I reported long time ago, here: https://code.google.com/p/android/issues/detail?id=38423 Because Android build system is so different than "regular" ./configure; make; it introduces all kinds of ugly porting problems, which may be resolved only by all kind of ugly hacks (which You may see in ffmpeg4android makefiles), especially when You step away from default architecture. So, there is libc in NDK which You can download from android homepage, there is libc in NDK which is embedded in android source code tree, and there is bionic, Android's version of libc. And the problem is - although highly compatible, THEY ARE NOT THE SAME. Same may apply for other libraries. configure/make is not aware of bionic, or any other library present in Android source code tree, it is aware of libc and libraries installed in NDK sysroot (which is minimal), and in the end Your software needs to be linked and run against bionic, and libraries in Android source code tree. This is a source of horrendous problems when trying to port something to Android. E.g. in order to enable libx264, the library needs to be installed in NDK sysroot, so it may be found during configure phase, but in order to use Android build system to build FFmpeg with libx264 enabled, libx264 needs to be ported, compiled, and its binaries in out/target/product/.../wherever folder. The horror increases when You involve C++. From umansky at torcrobotics.com Tue Oct 28 22:15:20 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Tue, 28 Oct 2014 21:15:20 +0000 Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed Message-ID: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> Hello, I have two live video feeds with audio coming in over rtsp. I would like to take each audio feed that also comes in, which is in mono, and combine them both into a true stereo feed so that one feed plays in one ear and one feed plays in the other simultaneously. When I use amerge like described in: https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a2monostereo, I get a delay between the two sides. It does not occur if I use two mono files as inputs instead of two live feeds. If I switch the order in of 0 and 1 in -filter_complex "[0:a][1:a]amerge[aout]" it changes which one gets delayed, but the delay is still there. If I open the two video feeds using VLC, both feeds come in at the same time, so there's no delay on the feed side. Command used: ffmpeg -y -i "rtsp://172.24.0.31:554/axis-media/media.amp?camera=1" -i "rtsp://172.24.0.32:554/axis-media/media.amp?camera=1" -filter_complex "[0:a][1:a]amerge[aout]" -map "[aout]" output.m4a -report Thanks, Mark Full log output: ffmpeg started on 2014-10-28 at 17:05:14 Report written to "ffmpeg-20141028-170514.log" Command line: ffmpeg -y -i "rtsp://172.24.0.31:554/axis-media/media.amp?camera=1" -i "rtsp://172.24.0.32:554/axis-media/media.amp?camera=1" -filter_complex "[0:a][1:a]amerge[aout]" -map "[aout]" output.m4a -report ffmpeg version N-66521-g3edb9aa Copyright (c) 2000-2014 the FFmpeg developers built on Sep 27 2014 22:10:25 with gcc 4.9.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-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-zlib libavutil 54. 7.101 / 54. 7.101 libavcodec 56. 1.101 / 56. 1.101 libavformat 56. 7.101 / 56. 7.101 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 1.102 / 5. 1.102 libswscale 3. 1.100 / 3. 1.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 1.100 / 53. 1.100 Splitting the commandline. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option '-i' ... matched as input file with argument 'rtsp://172.24.0.31:554/axis-media/media.amp?camera=1'. Reading option '-i' ... matched as input file with argument 'rtsp://172.24.0.32:554/axis-media/media.amp?camera=1'. Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument '[0:a][1:a]amerge[aout]'. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '[aout]'. Reading option 'output.m4a' ... matched as output file. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Finished splitting the commandline. Parsing a group of options: global . Applying option y (overwrite output files) with argument 1. Applying option filter_complex (create a complex filtergraph) with argument [0:a][1:a]amerge[aout]. Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file rtsp://172.24.0.31:554/axis-media/media.amp?camera=1. Successfully parsed a group of options. Opening an input file: rtsp://172.24.0.31:554/axis-media/media.amp?camera=1. [rtsp @ 0000000000331820] SDP: v=0 o=- 1414515911610422 1414515911610422 IN IP4 172.24.0.31 s=Media Presentation e=NONE b=AS:50032 t=0 0 a=control:rtsp://172.24.0.31:554/axis-media/media.amp?camera=1 a=range:npt=0.000000- m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:50000 a=framerate:25.0 a=transform:0.916667,0.000000,0.000000;0.000000,1.000000,0.000000;0.000000,0.000000,1.000000 a=control:rtsp://172.24.0.31:554/axis-media/media.amp/trackID=1?camera=1 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1; profile-level-id=4D0029; sprop-parameter-sets=Z00AKeKQFgJNgScFAQXh4kRU,aO48gA== m=audio 0 RTP/AVP 97 c=IN IP4 0.0.0.0 b=AS:32 a=control:rtsp://172.24.0.31:554/axis-media/media.amp/trackID=2?camera=1 a=rtpmap:97 mpeg4-generic/16000/1 a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; sizeLength=13; indexLength=3; indexDeltaLength=3; profile=1; bitrate=32000; [rtsp @ 0000000000331820] video codec set to: h264 [rtsp @ 0000000000331820] RTP Packetization Mode: 1 [rtsp @ 0000000000331820] RTP Profile IDC: 4d Profile IOP: 0 Level: 29 [rtsp @ 0000000000331820] Extradata set to 00000000003327a0 (size: 30)! [rtsp @ 0000000000331820] audio codec set to: aac [rtsp @ 0000000000331820] audio samplerate set to: 16000 [rtsp @ 0000000000331820] audio channels set to: 1 [udp @ 00000000003526e0] end receive buffer size reported is 65536 [udp @ 00000000003527a0] end receive buffer size reported is 65536 [udp @ 0000000002eaf2a0] end receive buffer size reported is 65536 [udp @ 0000000002eaf360] end receive buffer size reported is 65536 [rtsp @ 0000000000331820] hello state=0 [rtsp @ 0000000000331820] All info found rfps: 24.416667 0.018100 rfps: 24.500000 0.013298 rfps: 24.583333 0.009234 rfps: 24.583333 0.009234 rfps: 24.666667 0.005910 rfps: 24.666667 0.005910 rfps: 24.750000 0.003324 rfps: 24.750000 0.003324 rfps: 24.833333 0.001477 rfps: 24.833333 0.001477 rfps: 24.916667 0.000369 rfps: 24.916667 0.000369 rfps: 25.000000 0.000000 rfps: 25.000000 0.000000 rfps: 25.083333 0.000370 rfps: 25.083333 0.000370 rfps: 25.166667 0.001479 rfps: 25.166667 0.001479 rfps: 25.250000 0.003326 rfps: 25.250000 0.003326 rfps: 25.333333 0.005913 rfps: 25.333333 0.005913 rfps: 25.416667 0.009238 rfps: 25.416667 0.009238 rfps: 25.500000 0.013302 rfps: 25.583333 0.018105 rfps: 49.416667 0.018098 rfps: 49.500000 0.013296 rfps: 49.583333 0.009233 rfps: 49.583333 0.009233 rfps: 49.666667 0.005908 rfps: 49.666667 0.005908 rfps: 49.750000 0.003323 rfps: 49.750000 0.003323 rfps: 49.833333 0.001476 rfps: 49.833333 0.001476 rfps: 49.916667 0.000369 rfps: 49.916667 0.000369 rfps: 50.000000 0.000000 rfps: 50.083333 0.000370 rfps: 50.083333 0.000370 rfps: 50.166667 0.001479 rfps: 50.166667 0.001479 rfps: 50.250000 0.003327 rfps: 50.250000 0.003327 rfps: 50.333333 0.005914 rfps: 50.333333 0.005914 rfps: 50.416667 0.009240 rfps: 50.416667 0.009240 rfps: 50.500000 0.013305 rfps: 50.583333 0.018108 [rtsp @ 0000000000331820] Setting avg frame rate based on r frame rate Input #0, rtsp, from 'rtsp://172.24.0.31:554/axis-media/media.amp?camera=1': Metadata: title : Media Presentation Duration: N/A, start: 0.040022, bitrate: N/A Stream #0:0, 28, 1/90000: Video: h264 (Main), yuvj420p(pc, bt470bg), 704x576 [SAR 12:11 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 180k tbc Stream #0:1, 17, 1/16000: Audio: aac, 16000 Hz, mono, fltp Successfully opened the file. Parsing a group of options: input file rtsp://172.24.0.32:554/axis-media/media.amp?camera=1. Successfully parsed a group of options. Opening an input file: rtsp://172.24.0.32:554/axis-media/media.amp?camera=1. [rtsp @ 0000000005c74120] SDP: v=0 o=- 1414515912722348 1414515912722348 IN IP4 172.24.0.32 s=Media Presentation e=NONE b=AS:50032 t=0 0 a=control:rtsp://172.24.0.32:554/axis-media/media.amp?camera=1 a=range:npt=0.000000- m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:50000 a=framerate:30.0 a=transform:1.000000,0.000000,0.000000;0.000000,0.909091,0.000000;0.000000,0.000000,1.000000 a=control:rtsp://172.24.0.32:554/axis-media/media.amp/trackID=1?camera=1 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1; profile-level-id=4D0029; sprop-parameter-sets=Z00AKeKQFge2BqwYBBuHiRFQ,aO48gA== m=audio 0 RTP/AVP 97 c=IN IP4 0.0.0.0 b=AS:32 a=control:rtsp://172.24.0.32:554/axis-media/media.amp/trackID=2?camera=1 a=rtpmap:97 mpeg4-generic/16000/1 a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; sizeLength=13; indexLength=3; indexDeltaLength=3; profile=1; bitrate=32000; [rtsp @ 0000000005c74120] video codec set to: h264 [rtsp @ 0000000005c74120] RTP Packetization Mode: 1 [rtsp @ 0000000005c74120] RTP Profile IDC: 4d Profile IOP: 0 Level: 29 [rtsp @ 0000000005c74120] Extradata set to 00000000003326c0 (size: 30)! [rtsp @ 0000000005c74120] audio codec set to: aac [rtsp @ 0000000005c74120] audio samplerate set to: 16000 [rtsp @ 0000000005c74120] audio channels set to: 1 [udp @ 0000000005e59ec0] end receive buffer size reported is 65536 [udp @ 0000000005c24260] end receive buffer size reported is 65536 [udp @ 0000000005e55b80] end receive buffer size reported is 65536 [udp @ 0000000002eafa00] end receive buffer size reported is 65536 [rtsp @ 0000000005c74120] hello state=0 [rtsp @ 0000000005c74120] All info found rfps: 29.250000 0.019157 rfps: 29.333333 0.014976 rfps: 29.416667 0.011309 rfps: 29.416667 0.011309 rfps: 29.500000 0.008156 rfps: 29.500000 0.008156 rfps: 29.583333 0.005517 rfps: 29.583333 0.005517 rfps: 29.666667 0.003392 rfps: 29.666667 0.003392 rfps: 29.750000 0.001781 rfps: 29.750000 0.001781 rfps: 29.833333 0.000685 rfps: 29.833333 0.000685 rfps: 29.916667 0.000103 rfps: 29.916667 0.000103 rfps: 30.000000 0.000035 rfps: 30.000000 0.000035 rfps: 30.083333 0.000481 rfps: 30.083333 0.000481 rfps: 30.166667 0.001441 rfps: 30.166667 0.001441 rfps: 30.250000 0.002916 rfps: 30.250000 0.002916 rfps: 30.333333 0.004904 rfps: 30.333333 0.004904 rfps: 30.416667 0.007407 rfps: 30.416667 0.007407 rfps: 30.500000 0.010424 rfps: 30.500000 0.010424 rfps: 30.583333 0.013955 rfps: 30.666667 0.018000 rfps: 59.250000 0.017560 rfps: 59.333333 0.013568 rfps: 59.416667 0.010090 rfps: 59.416667 0.010090 rfps: 59.500000 0.007126 rfps: 59.500000 0.007126 rfps: 59.583333 0.004676 rfps: 59.583333 0.004676 rfps: 59.666667 0.002740 rfps: 59.666667 0.002740 rfps: 59.750000 0.001319 rfps: 59.750000 0.001319 rfps: 59.833333 0.000411 rfps: 59.833333 0.000411 rfps: 59.916667 0.000018 rfps: 59.916667 0.000018 rfps: 60.000000 0.000139 rfps: 60.000000 0.000139 rfps: 29.970030 0.000000 rfps: 59.940060 0.000000 [rtsp @ 0000000005c74120] Setting avg frame rate based on r frame rate Input #1, rtsp, from 'rtsp://172.24.0.32:554/axis-media/media.amp?camera=1': Metadata: title : Media Presentation Duration: N/A, start: 0.033356, bitrate: N/A Stream #1:0, 28, 1/90000: Video: h264 (Main), yuvj420p(pc, smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc Stream #1:1, 14, 1/16000: Audio: aac, 16000 Hz, mono, fltp Successfully opened the file. Parsing a group of options: output file output.m4a. Applying option map (set input stream mapping) with argument [aout]. Successfully parsed a group of options. Opening an output file: output.m4a. detected 8 logical cores [graph 0 input from stream 0:1 @ 0000000005d7ed00] Setting 'time_base' to value '1/16000' [graph 0 input from stream 0:1 @ 0000000005d7ed00] Setting 'sample_rate' to value '16000' [graph 0 input from stream 0:1 @ 0000000005d7ed00] Setting 'sample_fmt' to value 'fltp' [graph 0 input from stream 0:1 @ 0000000005d7ed00] Setting 'channel_layout' to value '0x4' [graph 0 input from stream 0:1 @ 0000000005d7ed00] tb:1/16000 samplefmt:fltp samplerate:16000 chlayout:0x4 [graph 0 input from stream 1:1 @ 0000000005d7eee0] Setting 'time_base' to value '1/16000' [graph 0 input from stream 1:1 @ 0000000005d7eee0] Setting 'sample_rate' to value '16000' [graph 0 input from stream 1:1 @ 0000000005d7eee0] Setting 'sample_fmt' to value 'fltp' [graph 0 input from stream 1:1 @ 0000000005d7eee0] Setting 'channel_layout' to value '0x4' [graph 0 input from stream 1:1 @ 0000000005d7eee0] tb:1/16000 samplefmt:fltp samplerate:16000 chlayout:0x4 [audio format for output stream 0:0 @ 0000000005e46120] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:0 @ 0000000005e46120] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350' Successfully opened the file. [Parsed_amerge_0 @ 0000000005b99f20] No channel layout for input 1 [AVFilterGraph @ 00000000003399e0] query_formats: 4 queried, 3 merged, 0 already done, 9 delayed [AVFilterGraph @ 00000000003399e0] query_formats not finished [Parsed_amerge_0 @ 0000000005b99f20] Input channel layouts overlap: output layout will be determined by the number of distinct input channels [Parsed_amerge_0 @ 0000000005b99f20] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 0 input from stream 0:1' and the filter 'Parsed_amerge_0' [Parsed_amerge_0 @ 0000000005b99f20] auto-inserting filter 'auto-inserted resampler 1' between the filter 'graph 0 input from stream 1:1' and the filter 'Parsed_amerge_0' [AVFilterGraph @ 00000000003399e0] query_formats: 1 queried, 3 merged, 9 already done, 0 delayed [auto-inserted resampler 0 @ 0000000002ea8920] ch:1 chl:mono fmt:fltp r:16000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz [auto-inserted resampler 1 @ 00000000003315c0] ch:1 chl:mono fmt:fltp r:16000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz [Parsed_amerge_0 @ 0000000005b99f20] in0:mono + in1:mono -> out:stereo Output #0, ipod, to 'output.m4a': Metadata: title : Media Presentation encoder : Lavf56.7.101 Stream #0:0, 0, 1/16000: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 16000 Hz, stereo, s16, 128 kb/s (default) Metadata: encoder : Lavc56.1.101 libvo_aacenc Stream mapping: Stream #0:1 (aac) -> amerge:in0 Stream #1:1 (aac) -> amerge:in1 amerge -> Stream #0:0 (libvo_aacenc) Press [q] to stop, [?] for help [NULL @ 0000000000332220] RTP: missed 21 packets size= 22kB time=00:00:01.33 bitrate= 135.1kbits/s size= 30kB time=00:00:01.84 bitrate= 133.1kbits/s size= 38kB time=00:00:02.36 bitrate= 132.1kbits/s size= 45kB time=00:00:02.80 bitrate= 131.4kbits/s size= 53kB time=00:00:03.32 bitrate= 130.9kbits/s size= 61kB time=00:00:03.83 bitrate= 130.5kbits/s size= 69kB time=00:00:04.34 bitrate= 130.2kbits/s size= 77kB time=00:00:04.85 bitrate= 130.0kbits/s size= 85kB time=00:00:05.36 bitrate= 129.8kbits/s size= 93kB time=00:00:05.88 bitrate= 129.6kbits/s size= 101kB time=00:00:06.39 bitrate= 129.5kbits/s [libvo_aacenc @ 0000000005e45c00] Trying to remove 448 more samples than there are in the queue size= 106kB time=00:00:06.64 bitrate= 130.9kbits/s video:0kB audio:105kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.204427% Input file #0 (rtsp://172.24.0.31:554/axis-media/media.amp?camera=1): Input stream #0:0 (video): 28 packets read (86703 bytes); Input stream #0:1 (audio): 104 packets read (25941 bytes); 104 frames decoded (106496 samples); Total: 132 packets (112644 bytes) demuxed Input file #1 (rtsp://172.24.0.32:554/axis-media/media.amp?camera=1): Input stream #1:0 (video): 28 packets read (40018 bytes); Input stream #1:1 (audio): 103 packets read (25682 bytes); 103 frames decoded (105472 samples); Total: 131 packets (65700 bytes) demuxed Output file #0 (output.m4a): Output stream #0:0 (audio): 103 frames encoded (105472 samples); 105 packets muxed (107520 bytes); Total: 105 packets (107520 bytes) muxed 207 frames successfully decoded, 0 decoding errors [AVIOContext @ 0000000005b97300] Statistics: 30 seeks, 128 writeouts From c.e.macfarlane at macfh.co.uk Tue Oct 28 22:16:45 2014 From: c.e.macfarlane at macfh.co.uk (C E Macfarlane) Date: Tue, 28 Oct 2014 21:16:45 -0000 Subject: [FFmpeg-user] ffmpeg4android and missing math functions In-Reply-To: Message-ID: There are similar problems compiling FFMPEG on MIPS/UCLibc See: https://ffmpeg.org/pipermail/ffmpeg-user/2014-August/023120.html I have now got the same errors by two completely different methods ... 1) Compiling with the native GCC on the target device 2) Compiling with a cross-toolchain ... and have come to the conclusion that the problem is fundamental to FFMPEG, in that it somehow is not configured correctly for UCLibc (despite the title of my original thread, I now think that most probably MIPS is irrelevant, and the problem is really UCLibc. Regards, Charles Macfarlane www.macfh.co.uk/CEMH.html > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org > [mailto:ffmpeg-user-bounces at ffmpeg.org]On Behalf Of ????? ??????? > Sent: 28 October 2014 17:54 > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] ffmpeg4android and missing math functions > > > This thread came to my attention today: > > http://ffmpeg.org/pipermail/ffmpeg-user/2014-July/022377.html > > Although the problem is solved, I want to point to the root > cause, which I > reported long time ago, here: > > https://code.google.com/p/android/issues/detail?id=38423 > > Because Android build system is so different than "regular" > ./configure; > make; it introduces all kinds of ugly porting problems, which may be > resolved only by all kind of ugly hacks (which You may see in > ffmpeg4android makefiles), especially when You step away from default > architecture. > > So, there is libc in NDK which You can download from android homepage, > there is libc in NDK which is embedded in android source code > tree, and > there is bionic, Android's version of libc. And the problem > is - although > highly compatible, THEY ARE NOT THE SAME. Same may apply for other > libraries. configure/make is not aware of bionic, or any other library > present in Android source code tree, it is aware of libc and libraries > installed in NDK sysroot (which is minimal), and in the end > Your software > needs to be linked and run against bionic, and libraries in > Android source > code tree. This is a source of horrendous problems when trying to port > something to Android. E.g. in order to enable libx264, the > library needs to > be installed in NDK sysroot, so it may be found during > configure phase, but > in order to use Android build system to build FFmpeg with > libx264 enabled, > libx264 needs to be ported, compiled, and its binaries in > out/target/product/.../wherever folder. > > The horror increases when You involve C++. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From diogopmserrano at gmail.com Tue Oct 28 19:57:05 2014 From: diogopmserrano at gmail.com (Diogo Serrano) Date: Tue, 28 Oct 2014 18:57:05 +0000 Subject: [FFmpeg-user] Mov video file very slow ffmpeg Message-ID: Hi, I have some working videos with different encoding durations ffmpeg -y -i http:///File.mp4 -c:v libx264 -f mp4 bla.mp4 (encode fast) ffmpeg -y -i http:///File.avi -c:v libx264 -f mp4 bla.mp4 (encode fast) ffmpeg -y -i http:///File.mov -c:v libx264 -f mp4 bla.mp4 (very slow encode, and the quicktime format do lots of 206 HTTP request to my server to process the video). Do you know any solution to process the mov videos from url faster? Logs of apache2: 127.0.0.1 - - [28/Oct/2014:18:56:27 +0000] "GET /File.mov HTTP/1.1" 206 214371 "-" "Lavf/56.4.101" 127.0.0.1 - - [28/Oct/2014:18:56:27 +0000] "GET /File.mov HTTP/1.1" 206 393216 "-" "Lavf/56.4.101" 127.0.0.1 - - [28/Oct/2014:18:56:27 +0000] "GET /File.mov HTTP/1.1" 206 214183 "-" "Lavf/56.4.101" 127.0.0.1 - - [28/Oct/2014:18:56:27 +0000] "GET /File.mov HTTP/1.1" 206 393216 "-" "Lavf/56.4.101" 127.0.0.1 - - [28/Oct/2014:18:56:27 +0000] "GET /File.mov HTTP/1.1" 206 213810 "-" "Lavf/56.4.101" 127.0.0.1 - - [28/Oct/2014:18:56:27 +0000] "GET /File.mov HTTP/1.1" 206 393394 "-" "Lavf/56.4.101" ............. Thanks Diogo From cehoyos at ag.or.at Wed Oct 29 01:10:19 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 00:10:19 +0000 (UTC) Subject: [FFmpeg-user] Mov video file very slow ffmpeg References: Message-ID: Diogo Serrano gmail.com> writes: > ffmpeg -y -i http:///File.mov -c:v libx264 -f mp4 bla.mp4 > (very slow encode, and the quicktime format do lots of > 206 HTTP request to my server to process the video). Complete, uncut console output missing. Did you run qt-faststart on File.mov? Carl Eugen From cehoyos at ag.or.at Wed Oct 29 01:12:03 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 00:12:03 +0000 (UTC) Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed References: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> Message-ID: Mark Umansky torcrobotics.com> writes: > Duration: N/A, start: 0.040022, bitrate: N/A If no wallclock is shown as start time here, I don't think this can work at all. Carl Eugen From parth.9910 at gmail.com Wed Oct 29 06:59:33 2014 From: parth.9910 at gmail.com (Parth Shah) Date: Wed, 29 Oct 2014 11:29:33 +0530 Subject: [FFmpeg-user] FFMPEG : Redirecting Matroska muxed data to socket Message-ID: <54508245.6030109@gmail.com> Hi all, I am using FFMPEG library to mux H.264 and AAC frames to Matroska (.mkv) file. I can do that both using command line and C program. Now, instead of writing the muxed matroska data into file I want to write these muxed data directly on to socket or pipe. My actual goal is to write a C program that send muxed data to socket and server will receive this muxed data. I tried using protocol tcp. They are working with the matroska format. So, My C program is able to send muxed data successfully over socket and server is able to receive this muxed data. But when I apply ffprobe command over the received file, I am getting duration and bitrate field N/A. and when I tried to play this file with vlc i am unable to seek the file and getting garbage duration. Below the output of the ffprobe. ffprobe version N-65784-g50a35f0 Copyright (c) 2007-2014 the FFmpeg developers built on Aug 25 2014 12:31:36 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1) configuration: libavutil 54. 5.100 / 54. 5.100 libavcodec 56. 0.101 / 56. 0.101 libavformat 56. 1.100 / 56. 1.100 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 0.101 / 5. 0.101 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 Input #0, matroska,webm, from 'Array.mkv': Metadata: ENCODER : Lavf54.29.104 *Duration: N/A*, start: 1412858260.281000, *bitrate: N/A* Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg), 2000x1496 [SAR 1:1 DAR 250:187], 27 fps, 27 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Video: mjpeg, yuvj422p(pc, bt470bg), 2000x1496 [SAR 1:1 DAR 250:187], 27 fps, 27 tbr, 1k tbn, 1k tbc (default) Stream #0:2: Video: mjpeg, yuvj422p(pc, bt470bg), 2000x1496 [SAR 1:1 DAR 250:187], 27 fps, 27 tbr, 1k tbn, 1k tbc (default) Stream #0:3: Video: mjpeg, yuvj422p(pc, bt470bg), 2000x1496 [SAR 1:1 DAR 250:187], 27 fps, 27 tbr, 1k tbn, 1k tbc (default) As You can see Duration and Bitrate field shows N/A. However I am getting correct startTime. Any help or advice? Thank you in advance. From cehoyos at ag.or.at Wed Oct 29 09:27:28 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 08:27:28 +0000 (UTC) Subject: [FFmpeg-user] FFMPEG : Redirecting Matroska muxed data to socket References: <54508245.6030109@gmail.com> Message-ID: Parth Shah gmail.com> writes: > Now, instead of writing the muxed matroska data > into file I want to write these muxed data > directly on to socket or pipe. If you do so, FFmpeg will be unable to update the duration field in the header of the output file. (The field is at the beginning of the file.) You have to decide if you want the duration field to be written (and use file output or another output that allows seeking) or if you need pipe output (so the duration cannot be written). Please understand that cross-posting is considered rude everywhere afaik and that posting user questions on the development mailing list is not welcome. Carl Eugen From cehoyos at ag.or.at Wed Oct 29 10:25:00 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 09:25:00 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg4android and missing math functions References: Message-ID: ????? ??????? gmail.com> writes: > This thread came to my attention today: > > http://ffmpeg.org/pipermail/ffmpeg-user/2014-July/022377.html Just to make sure: With the toolchain in question, the headers and the actual library didn't agree whether sincos() is available or not. Maybe I am too harsh, but I still believe this defines a broken toolchain. A simple workaround was found. If this is really the typical situation when building for Android, we can add the check to configure (so that the workaround would not be necessary) but fate builds for Android and this problem was only reported once so I assumed a local breakage / a broken installation. The relevant issue here (on this mailing list) is - as the link above shows - that only unpatched current FFmpeg is supported here and that I (still) believe it allows to build for Android. Carl Eugen From cehoyos at ag.or.at Wed Oct 29 10:31:48 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 09:31:48 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg4android and missing math functions References: Message-ID: C E Macfarlane macfh.co.uk> writes: > https://ffmpeg.org/pipermail/ffmpeg-user/2014-August/023120.html > > I have now got the same errors by two completely different methods ... > 1) Compiling with the native GCC on the target device > 2) Compiling with a cross-toolchain Do you want to discuss one or both of them? I asked for the output of "grep HAVE_FMINF config.h" but didn't find it in your long answer. Note that we want to support such configurations as yours but without your help it is going to be difficult. One more thing: The compiler you used was gcc 4.0.4. This is very old and if a newer compiler is available, please use it. (Note that 4.2 is completely broken though.) Carl Eugen From umansky at torcrobotics.com Wed Oct 29 13:51:51 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Wed, 29 Oct 2014 12:51:51 +0000 Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed In-Reply-To: References: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> Message-ID: <205DBBE9F739414F9815C142C7EA61CC03682203@exchsvr01.torcrobotics.net> -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos Sent: Tuesday, October 28, 2014 8:12 PM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed Mark Umansky torcrobotics.com> writes: > Duration: N/A, start: 0.040022, bitrate: N/A If no wallclock is shown as start time here, I don't think this can work at all. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ------------------------ This email was scanned by BitDefender. Do you mean actual real world time? I'm not sure I follow. -Mark From joolzg at btinternet.com Wed Oct 29 14:34:10 2014 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Wed, 29 Oct 2014 13:34:10 +0000 Subject: [FFmpeg-user] Example C code for encoding/muxing/streaming In-Reply-To: <201410281143.19964.cehoyos@ag.or.at> References: <1414436816.68983.YahooMailNeo@web161504.mail.bf1.yahoo.com> <201410281143.19964.cehoyos@ag.or.at> Message-ID: <1414589650.42830.YahooMailNeo@web87806.mail.ir2.yahoo.com> Ive been playing with the code and have a little test project I want to try, a mosaic generator. Now Ive been looking through the examples code and tried a few but none seem to be able to stream out over multicast. Has anybody got code/knows of example code which shows how to setup a stream which will output a mpegts to a udp multicast address. I think i have most of the other code from the examples. The mosaic will work this way X streams in, running in threads which will send each I frame to the encoding thread, this thread will resize the incoming frame to the correct size and then put it in the correct place on the output frame. The output frame will then be encoded and streamed out, this is the part that i cannot find any code for. Ive tried ffmpeg for this but when dealing with 9 streams (3x3) the startup time is way to long and it does not auto restart a broken stream, which Im trying to overcome. Any help/involvment would be gratefully received joolz From barsnick at gmx.net Wed Oct 29 15:07:23 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 29 Oct 2014 15:07:23 +0100 Subject: [FFmpeg-user] lying about metadata output? Message-ID: <20141029140723.GB19381@sunshine.barsnick.net> Hi, I just encountered a situation where there was a mismatch between what ffmpeg claimed to put into its output metadata, and what was actually put into the resulting file. Why do I bother? It's confusing, and also caused me to try to manipulate the metadata further, although ffmpeg was already doing the right thing. I had grabbed an m4a file from YouTube, but it has the metadata "major_brand : dash", which AtomicParsley refuses to process. So I though I'd use ffmpeg instead to add artist and title metadata, and at the same time change the major_brand. In the "conversion" (remuxing) process, ffmpeg claims to retain this metadata, but in reality, changes major_brand and compatible_brands (which is good). So just out of interest: Does the muxer change metadata _after_ what is reported by the section "Output #0, ipod, [...] Metadata:"? I thought "Output #0" was the muxer (i.e. container), "Stream #0" was the encoder (i.e. codec). Here are the two commands, the first command remuxing the file and reporting unchanged metadata, the second command inspecting the remuxed file and reporting the changed metadata: $ ffmpeg -y -i Null\$katte\$nylterne\ -\ Instinkt-WpMqlB2yp-w.m4a -map 0:a -c:a copy -metadata artist=Null\$katte\$nylterne -metadata title=Instinkt Null\$katte\$nylterne\ -\ Instinkt.m4a ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Oct 28 2014 13:43:00 with icc (ICC) 14.0.3 20140422 configuration: --prefix=/usr/new/tools/video/install/ffmpeg/20141027 --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 --enable-libsmbclient --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 54. 11.100 / 54. 11.100 libavcodec 56. 10.100 / 56. 10.100 libavformat 56. 11.100 / 56. 11.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Null$katte$nylterne - Instinkt-WpMqlB2yp-w.m4a': Metadata: major_brand : dash minor_version : 0 compatible_brands: iso6mp41 creation_time : 2013-09-15 05:40:46 Duration: 00:02:58.05, start: 0.000000, bitrate: 127 kb/s Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2013-09-15 05:40:46 handler_name : SoundHandler Output #0, ipod, to 'Null$katte$nylterne - Instinkt.m4a': Metadata: major_brand : dash minor_version : 0 compatible_brands: iso6mp41 artist : Null$katte$nylterne title : Instinkt encoder : Lavf56.11.100 Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 125 kb/s (default) Metadata: creation_time : 2013-09-15 05:40:46 handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help size= 2760kB time=00:02:58.05 bitrate= 127.0kbits/s video:0kB audio:2730kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.128712% $ ffmpeg -i Null\$katte\$nylterne\ -\ Instinkt.m4a ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Oct 28 2014 13:43:00 with icc (ICC) 14.0.3 20140422 configuration: --prefix=/usr/new/tools/video/install/ffmpeg/20141027 --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 --enable-libsmbclient --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 54. 11.100 / 54. 11.100 libavcodec 56. 10.100 / 56. 10.100 libavformat 56. 11.100 / 56. 11.100 libavdevice 56. 1.100 / 56. 1.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Null$katte$nylterne - Instinkt.m4a': Metadata: major_brand : M4A minor_version : 512 compatible_brands: isomiso2 title : Instinkt artist : Null$katte$nylterne encoder : Lavf56.11.100 Duration: 00:02:58.05, start: 0.000000, bitrate: 127 kb/s Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler At least one output file must be specified Thanks, Moritz From cehoyos at ag.or.at Wed Oct 29 17:25:43 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 16:25:43 +0000 (UTC) Subject: [FFmpeg-user] lying about metadata output? References: <20141029140723.GB19381@sunshine.barsnick.net> Message-ID: Moritz Barsnick gmx.net> writes: > major_brand : dash > minor_version : 0 > compatible_brands: iso6mp41 The input metadata is copied to the output file in ffmpeg (the application). The application cannot know if the muxer will be able to write the metadata or not (it may only support some specific tags) or if it will just write some metadata independently of what was requested to make sure valid files are written (as in this case). There may be a bug but I believe the output metadata print should just be interpreted as what it "tries" to mux. Carl Eugen From cehoyos at ag.or.at Wed Oct 29 17:30:10 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 16:30:10 +0000 (UTC) Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed References: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC03682203@exchsvr01.torcrobotics.net> Message-ID: Mark Umansky torcrobotics.com> writes: > > > Duration: N/A, start: 0.040022, bitrate: N/A > > > > If no wallclock is shown as start time here, I > > don't think this can work at all. > > Do you mean actual real world time? Yes. > I'm not sure I follow. If both streams contain a "real world" start time ("wallclock time") then FFmpeg should be able to synchronize them. If both start with "0" then I fear synchronization will even fail (sometimes) if FFmpeg were infinitely fast (which it is not). It may of course be a bug that FFmpeg cannot read the actual starttime (that may be part of the stream), I don't know. Please try to fix your mailer, Carl Eugen From umansky at torcrobotics.com Wed Oct 29 18:36:34 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Wed, 29 Oct 2014 17:36:34 +0000 Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed In-Reply-To: References: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC03682203@exchsvr01.torcrobotics.net> Message-ID: <205DBBE9F739414F9815C142C7EA61CC036825EC@exchsvr01.torcrobotics.net> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: Wednesday, October 29, 2014 12:30 PM > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Combining two audio feeds from live rtsp > sources into stereo is delayed > > Mark Umansky torcrobotics.com> writes: > > > > > Duration: N/A, start: 0.040022, bitrate: N/A > > > > > > If no wallclock is shown as start time here, I don't think this can > > > work at all. > > > > Do you mean actual real world time? > > Yes. > > > I'm not sure I follow. > > If both streams contain a "real world" start time ("wallclock time") then > FFmpeg should be able to synchronize them. > If both start with "0" then I fear synchronization will even fail (sometimes) if > FFmpeg were infinitely fast (which it is not). > > It may of course be a bug that FFmpeg cannot read the actual starttime (that > may be part of the stream), I don't know. > > Please try to fix your mailer, Carl Eugen Assuming I can't do anything to fix the start times, is there a way to delay input from one of the streams so I can attempt to adjust the delay manually? Thanks, Mark From admin at itvc.pl Wed Oct 29 11:13:58 2014 From: admin at itvc.pl (admin) Date: Wed, 29 Oct 2014 11:13:58 +0100 Subject: [FFmpeg-user] Connection reset by peer Message-ID: <9844681fc80c1de7000fb8b08070b772@itvc.pl> Hi guys, When i`m trying to send stream from ffmpeg to ffserver i have got Connection reset by peer. It`s not firewall problem. Maybe linux distribution? Its Slackware.. When i`m trying to send stream via udp to server where ffserver is (external IP), i don`t have any error Full debug bellow, i wll be v. glad for help. Maybe anyone can share for some while own ffserver for test. ############# Client cmd: ffmpeg -i udp://@231.1.2.199:1234 -b:v 1500k -pix_fmt yuv420p -vcodec libx264 -tune zerolatency -preset ultrafast -f mpegts "http : / / xx.xx.xx.xx:8090/dupa.ffm" File /home/ffmpeg/dupa.ffm FileMaxSize 2G # This is roughly 24h of media Feed dupa.ffm Format mpegts ############# Server debug: ffserver version N-67244-g1a25c33 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 28 2014 20:12:25 with gcc 4.8.2 (GCC) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.4/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-libx264 --enable-postproc --enable-swscale --disable-x11grab --enable-avfilter --enable-gnutls --enable-libcdio --enable-libssh --arch=x86_64 --enable-libmp3lame --enable-libx264 libavutil 54. 11.100 / 54. 11.100 libavcodec 56. 10.100 / 56. 10.100 libavformat 56. 11.100 / 56. 11.100 libavdevice 56. 2.100 / 56. 2.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Tue Oct 28 22:46:23 2014 [ffm @ 0xd53ae0]Format ffm probed with size=2048 and score=101 Tue Oct 28 22:46:23 2014 [AVIOContext @ 0xd4f940]Statistics: 4096 bytes read, 0 seeks Tue Oct 28 22:46:23 2014 FFserver started. Tue Oct 28 22:46:40 2014 xx.xx.xx.xx - - [POST] "/dupa.ffm HTTP/1.1" 200 4096[/code] Client debug: [code]ffmpeg version N-67244-g1a25c33 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 28 2014 20:12:25 with gcc 4.8.2 (GCC) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.4/html --mandir=/usr/man --disable-debug --enable-shared libavutil 54. 11.100 / 54. 11.100 libavcodec 56. 10.100 / 56. 10.100 libavformat 56. 11.100 / 56. 11.100 libavdevice 56. 2.100 / 56. 2.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Splitting the commandline. Reading option '-i' ... matched as input file with argument 'udp://@231.1.2.199:1234'. Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1500k'. Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'. Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'. Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option 'htt p : / / xx.xx.xx.xx:8090/dupa.ffm' ... matched as output file. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file udp://@231.1.2.199:1234. Successfully parsed a group of options. Opening an input file: udp://@231.1.2.199:1234. [udp @ 0x10ebea0] end receive buffer size reported is 131072 [mpegts @ 0x10ed240] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x10ed240] stream=0 stream_type=1b pid=7d2 prog_reg_desc= [mpegts @ 0x10ed240] stream=1 stream_type=4 pid=bba prog_reg_desc= [mpegts @ 0x10ed240] Before avformat_find_stream_info() pos: 0 bytes read:25004 seeks:0 [mpegts @ 0x10ed240] All programs have pmt, headers found [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period [h264 @ 0x1100480] non-existing PPS 0 referenced [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period [h264 @ 0x1100480] non-existing PPS 0 referenced [h264 @ 0x1100480] decode_slice_header error [h264 @ 0x1100480] no frame! [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period [h264 @ 0x1100480] non-existing PPS 0 referenced [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period [h264 @ 0x1100480] non-existing PPS 0 referenced [h264 @ 0x1100480] decode_slice_header error [h264 @ 0x1100480] no frame! [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period [h264 @ 0x1100480] non-existing PPS 0 referenced [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period [h264 @ 0x1100480] non-existing PPS 0 referenced [h264 @ 0x1100480] decode_slice_header error [h264 @ 0x1100480] no frame! [h264 @ 0x1100480] Current profile doesn't provide more RBSP data in PPS, skipping [h264 @ 0x1100480] unknown SEI type 128 [h264 @ 0x1100480] Increasing reorder buffer to 1 [h264 @ 0x1100480] no picture. [h264 @ 0x1100480] unknown SEI type 128 Last message repeated 1 times [h264 @ 0x1100480] Increasing reorder buffer to 2 [h264 @ 0x1100480] no picture ooo [h264 @ 0x1100480] unknown SEI type 128 [h264 @ 0x1100480] Increasing reorder buffer to 3 [h264 @ 0x1100480] no picture ooo [h264 @ 0x1100480] unknown SEI type 128 [h264 @ 0x1100480] no picture ooo [h264 @ 0x1100480] unknown SEI type 128 [h264 @ 0x1100480] no picture. [h264 @ 0x1100480] unknown SEI type 128 [h264 @ 0x1100480] no picture. [h264 @ 0x1100480] unknown SEI type 128 Last message repeated 5 times [h264 @ 0x1100480] Current profile doesn't provide more RBSP data in PPS, skipping [h264 @ 0x1100480] unknown SEI type 128 Last message repeated 3 times [mpegts @ 0x10ed240] All info found [mpegts @ 0x10ed240] After avformat_find_stream_info() pos: 285572 bytes read:285572 seeks:0 frames:51 Input #0, mpegts, from 'udp://@231.1.2.199:1234': Duration: N/A, start: 86384.517867, bitrate: 247 kb/s Program 5090. Metadata: service_name : TV Disco service_provider:. Stream #0:0[0x7d2], 21, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, left), 720x576 [SAR 16:11 DAR 20:11], 1/50, 25 fps, 25 Stream #0:1[0xbba], 30, 1/90000: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 247 kb/s Successfully opened the file. Parsing a group of options: output file htt p : / / xx.xx.xx.xx:8090/dupa.ffm. Applying option b:v (video bitrate (please use -b:v)) with argument 1500k. Applying option pix_fmt (set pixel format) with argument yuv420p. Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264. Applying option f (force format) with argument mpegts. Successfully parsed a group of options. Opening an output file: htt p :/ / xx.xx.xx.xx:8090/dupa.ffm. [http @ 0x1101c80] request: POST /dupa.ffm HTTP/1.1^M Transfer-Encoding: chunked^M User-Agent: Lavf/56.11.100^M Accept: */*^M Connection: close^M Host: xx.xx.xx.xx:8090^M Icy-MetaData: 1^M ^M Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'time_base' to value '1/90000' [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'pixel_aspect' to value '16/11' [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x13778e0] w:720 h:576 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:16/11 sws_param:flags=2 [format @ 0x10ec040] compat: called with args=[yuv420p] [format @ 0x10ec040] Setting 'pix_fmts' to value 'yuv420p' [AVFilterGraph @ 0x1139700] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'time_base' to value '1/48000' [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'sample_rate' to value '48000' [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'sample_fmt' to value 's16p' [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 0x1377dc0] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3 [audio format for output stream 0:1 @ 0x113a520] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:1 @ 0x113a520] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000' [audio format for output stream 0:1 @ 0x113a520] Setting 'channel_layouts' to value '0x4|0x3' [audio format for output stream 0:1 @ 0x113a520] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio [AVFilterGraph @ 0x10ecae0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0x119e820] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz [libx264 @ 0x10e4760] using SAR=16/11 [libx264 @ 0x10e4760] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x10e4760] profile Constrained Baseline, level 3.0 [mpegts @ 0x112b240] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'htt p :/ /xx.xx.xx.xx:8090/dupa.ffm': Metadata: encoder : Lavf56.11.100 Stream #0:0, 0, 1/90000: Video: h264 (libx264), yuv420p(left), 720x576 [SAR 16:11 DAR 20:11], 1/25, q=-1--1, 1500 kb/s, 25 fps, 90k tbn, 25 tbc Metadata: encoder : Lavc56.10.100 libx264 Stream #0:1, 0, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s Metadata: encoder : Lavc56.10.100 mp2 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native)) Press [q] to stop, [?] for help [h264 @ 0x1264d60] Frame num gap 10 5 [h264 @ 0x1264d60] Frame num gap 10 6 [h264 @ 0x1264d60] Frame num gap 10 7 [h264 @ 0x1264d60] Frame num gap 10 8 [h264 @ 0x1264d60] no picture. [h264 @ 0x1265de0] mmco: unref short failure [h264 @ 0x1265de0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 0x1265de0] no picture. [h264 @ 0x1266660] no picture. *** 18 dup! [libx264 @ 0x10e4760] frame= 0 QP=25.00 NAL=3 Slice:I Poc:0 I:1620 P:0 SKIP:0 size=18259 bytes [libx264 @ 0x10e4760] frame= 1 QP=26.00 NAL=2 Slice:P Poc:2 I:0 P:0 SKIP:1620 size=86 bytes [libx264 @ 0x10e4760] frame= 2 QP=22.00 NAL=2 Slice:P Poc:4 I:5 P:649 SKIP:966 size=2547 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 3 QP=18.00 NAL=2 Slice:P Poc:6 I:27 P:1321 SKIP:272 size=11388 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 4 QP=16.00 NAL=2 Slice:P Poc:8 I:46 P:1416 SKIP:158 size=12070 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 5 QP=15.00 NAL=2 Slice:P Poc:10 I:3 P:883 SKIP:734 size=5210 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 6 QP=14.00 NAL=2 Slice:P Poc:12 I:12 P:1200 SKIP:408 size=7699 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 7 QP=13.00 NAL=2 Slice:P Poc:14 I:8 P:1360 SKIP:252 size=11766 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 8 QP=13.00 NAL=2 Slice:P Poc:16 I:0 P:18 SKIP:1602 size=169 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 9 QP=12.00 NAL=2 Slice:P Poc:18 I:19 P:1342 SKIP:259 size=9715 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 10 QP=12.00 NAL=2 Slice:P Poc:20 I:5 P:617 SKIP:998 size=2314 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 11 QP=12.00 NAL=2 Slice:P Poc:22 I:3 P:580 SKIP:1037 size=2117 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 12 QP=11.00 NAL=2 Slice:P Poc:24 I:3 P:1260 SKIP:357 size=7489 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 13 QP=11.00 NAL=2 Slice:P Poc:26 I:3 P:832 SKIP:785 size=3103 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 14 QP=10.00 NAL=2 Slice:P Poc:28 I:5 P:1398 SKIP:217 size=12018 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 15 QP=11.00 NAL=2 Slice:P Poc:30 I:2 P:386 SKIP:1232 size=1176 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 16 QP=10.00 NAL=2 Slice:P Poc:32 I:2 P:343 SKIP:1275 size=1064 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 17 QP=10.00 NAL=2 Slice:P Poc:34 I:2 P:116 SKIP:1502 size=463 bytes av_interleaved_write_frame(): Connection reset by peer [libx264 @ 0x10e4760] frame= 18 QP=9.00 NAL=2 Slice:P Poc:36 I:2 P:779 SKIP:839 size=4851 bytes av_interleaved_write_frame(): Connection reset by peer No more output streams to write to, finishing. frame= 19 fps=0.0 q=9.0 Lsize= 92kB time=00:00:00.76 bitrate= 987.5kbits/s dup=18 drop=0 ^M video:111kB audio:22kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (udp://@231.1.2.199:1234): Input stream #0:0 (video): 15 packets read (159198 bytes); 2 frames decoded;. Input stream #0:1 (audio): 20 packets read (15360 bytes); 20 frames decoded (23040 samples);. Total: 35 packets (174558 bytes) demuxed Output file #0 (htt p :/ / xx.xx.xx.xx:8090/dupa.ffm): Output stream #0:0 (video): 19 frames encoded; 19 packets muxed (113504 bytes);. Output stream #0:1 (audio): 20 frames encoded (23040 samples); 20 packets muxed (23040 bytes);. Total: 39 packets (136544 bytes) muxed 36 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x127e240] Statistics: 0 seeks, 16 writeouts [libx264 @ 0x10e4760] frame I:1 Avg QP:25.00 size: 18259 [libx264 @ 0x10e4760] frame P:18 Avg QP:13.61 size: 5291 [libx264 @ 0x10e4760] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 0x10e4760] mb P I16..4: 0.5% 0.0% 0.0% P16..4: 49.7% 0.0% 0.0% 0.0% 0.0% skip:49.8% [libx264 @ 0x10e4760] final ratefactor: 20.23 [libx264 @ 0x10e4760] coded y,uvDC,uvAC intra: 45.6% 56.9% 16.4% inter: 19.6% 21.4% 5.9% [libx264 @ 0x10e4760] i16 v,h,dc,p: 29% 34% 14% 23% [libx264 @ 0x10e4760] i8c dc,h,v,p: 47% 21% 24% 8% [libx264 @ 0x10e4760] kb/s:1194.78 [AVIOContext @ 0x10ed980] Statistics: 285572 bytes read, 0 seeks Conversion failed! Thanks for help! Lucas From kuban.altan at sinefekt.com Wed Oct 29 19:07:39 2014 From: kuban.altan at sinefekt.com (Kuban Altan) Date: Wed, 29 Oct 2014 20:07:39 +0200 Subject: [FFmpeg-user] Generating an rgb24 pix_fmt solid color using lavfi by default Message-ID: I try to generate user avatars, using the initials of a user. Here is the code: *ffmpeg -v debug -f lavfi -i "color=c=0x0044DD:s=80x80" -vf "format=pix_fmts=rgb24,drawtext=fontfile=/windows/fonts/arial.ttf:fontsize=40:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:text='KA'" -vframes 1 -y ka_thumb.png* Is working fine. But I have one minor problem. The resulting text is rendered into a rgb24 buffer, and seems fine. But the problem is, the color I create as *0x0044DD* is in *yuv420p* pixel format by default. What I am doing as a workaround, first generating a colored buffer in yuv420 pixel format, then convert it to *rgb24*, then render text over that color in rgb24 mode. The pixel format conversion step in between seems to be unneeded. How can I avoid this conversion step, and directly create a colored background in *rgb24 *pixel format using *lavfi*? *[lavfi @ 0000000002a9f680] All info foundInput #0, lavfi, from 'color=c=0x0044DD:s=80x80': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (I420 / 0x30323449), yuv420p, 80x80 [SAR 1:1 DAR 1:1], 1/25, 25 tbr, 25 tbn, 25 tbc* Looking at debug info, I can see that Stream #0:0 is originally yuv420p kuban altan From kuban.altan at gmail.com Wed Oct 29 19:09:46 2014 From: kuban.altan at gmail.com (Kuban Altan) Date: Wed, 29 Oct 2014 20:09:46 +0200 Subject: [FFmpeg-user] Generating an rgb24 pix_fmt solid color using lavfi by default Message-ID: I try to generate user avatars, using the initials of a user. Here is the code: *ffmpeg -v debug -f lavfi -i "color=c=0x0044DD:s=80x80" -vf "format=pix_fmts=rgb24,drawtext=fontfile=/windows/fonts/arial.ttf:fontsize=40:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:text='KA'" -vframes 1 -y ka_thumb.png* Is working fine. But I have one minor problem. The resulting text is rendered into a rgb24 buffer, and seems fine. But the problem is, the color I create as *0x0044DD* is in*yuv420p* pixel format by default. What I am doing as a workaround, first generating a colored buffer in yuv420 pixel format, then convert it to *rgb24*, then render text over that color in rgb24 mode. The pixel format conversion step in between seems to be unneeded. How can I avoid this conversion step, and directly create a colored background in *rgb24 *pixel format using *lavfi*? *[lavfi @ 0000000002a9f680] All info foundInput #0, lavfi, from 'color=c=0x0044DD:s=80x80': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo (I420 / 0x30323449), yuv420p, 80x80 [SAR 1:1 DAR 1:1], 1/25, 25 tbr, 25 tbn, 25 tbc* Looking at debug info, I can see that Stream #0:0 is originally yuv420p kuban altan From umansky at torcrobotics.com Wed Oct 29 19:11:58 2014 From: umansky at torcrobotics.com (Mark Umansky) Date: Wed, 29 Oct 2014 18:11:58 +0000 Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed In-Reply-To: <205DBBE9F739414F9815C142C7EA61CC036825EC@exchsvr01.torcrobotics.net> References: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC03682203@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC036825EC@exchsvr01.torcrobotics.net> Message-ID: <205DBBE9F739414F9815C142C7EA61CC036826AE@exchsvr01.torcrobotics.net> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Mark Umansky > Sent: Wednesday, October 29, 2014 1:37 PM > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Combining two audio feeds from live rtsp > sources into stereo is delayed > > > -----Original Message----- > > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > > Sent: Wednesday, October 29, 2014 12:30 PM > > To: ffmpeg-user at ffmpeg.org > > Subject: Re: [FFmpeg-user] Combining two audio feeds from live rtsp > > sources into stereo is delayed > > > > Mark Umansky torcrobotics.com> writes: > > > > > > > Duration: N/A, start: 0.040022, bitrate: N/A > > > > > > > > If no wallclock is shown as start time here, I don't think this > > > > can work at all. > > > > > > Do you mean actual real world time? > > > > Yes. > > > > > I'm not sure I follow. > > > > If both streams contain a "real world" start time ("wallclock time") > > then FFmpeg should be able to synchronize them. > > If both start with "0" then I fear synchronization will even fail > > (sometimes) if FFmpeg were infinitely fast (which it is not). > > > > It may of course be a bug that FFmpeg cannot read the actual starttime > > (that may be part of the stream), I don't know. > > > > Please try to fix your mailer, Carl Eugen > > Assuming I can't do anything to fix the start times, is there a way to delay > input from one of the streams so I can attempt to adjust the delay manually? > > Thanks, > Mark Answered my own question, the "-ss" command does it nicely. ffmpeg -y -ss 1.3 -i "rtsp://172.24.0.31:554/axis-media/media.amp?camera=1" -i "rtsp://172.24.0.32:554/axis-media/media.amp?camera=1" -filter_complex "[0:1][1:1]amerge" -vn [outputs] -Mark From james.darnley at gmail.com Wed Oct 29 20:05:43 2014 From: james.darnley at gmail.com (James Darnley) Date: Wed, 29 Oct 2014 20:05:43 +0100 Subject: [FFmpeg-user] lying about metadata output? In-Reply-To: References: <20141029140723.GB19381@sunshine.barsnick.net> Message-ID: <54513A87.5040300@gmail.com> On 2014-10-29 17:25, Carl Eugen Hoyos wrote: > There may be a bug There is. The MP4 demuxer writes all sort of rubbish into the metadata struct. None of which are useful should you be encoding to another file format. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 603 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Thu Oct 30 00:10:18 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 23:10:18 +0000 (UTC) Subject: [FFmpeg-user] lying about metadata output? References: <20141029140723.GB19381@sunshine.barsnick.net> <54513A87.5040300@gmail.com> Message-ID: James Darnley gmail.com> writes: > On 2014-10-29 17:25, Carl Eugen Hoyos wrote: > > There may be a bug > > There is. The MP4 demuxer writes all sort of > rubbish into the metadata struct. Do I understand correctly that you believe no application will ever want to know the content of (for example) the different brand fields? Carl Eugen From cehoyos at ag.or.at Thu Oct 30 00:15:57 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 23:15:57 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Generating_an_rgb24_pix=5Ffmt_solid_color?= =?utf-8?q?_using_lavfi_by_default?= References: Message-ID: Kuban Altan sinefekt.com> writes: > How can I avoid this conversion step, and directly create a > colored background in *rgb24 *pixel format using *lavfi*? There is currently no rgb-color filter. Patch welcome, Carl Eugen From cehoyos at ag.or.at Thu Oct 30 00:36:16 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 23:36:16 +0000 (UTC) Subject: [FFmpeg-user] Combining two audio feeds from live rtsp sources into stereo is delayed References: <205DBBE9F739414F9815C142C7EA61CC036811D4@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC03682203@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC036825EC@exchsvr01.torcrobotics.net> <205DBBE9F739414F9815C142C7EA61CC036826AE@exchsvr01.torcrobotics.net> Message-ID: Mark Umansky torcrobotics.com> writes: > > Assuming I can't do anything to fix the start times, is > > there a way to delay input from one of the streams so I > > can attempt to adjust the delay manually? > > Answered my own question, the "-ss" command does it nicely. -itsoffset should also work but I am not convinced that you will always get the same delay... Carl Eugen From c.e.macfarlane at macfh.co.uk Thu Oct 30 00:39:22 2014 From: c.e.macfarlane at macfh.co.uk (C E Macfarlane) Date: Wed, 29 Oct 2014 23:39:22 -0000 Subject: [FFmpeg-user] ffmpeg4android and missing math functions In-Reply-To: Message-ID: As requested, here is the output from the cross-compilation effort: /home/Embedded/cross-compiler-mipsel/ffmpeg-2.4.2# export PATH="/home/Embedded/cross-compiler-mipsel/bin:$PATH" /home/Embedded/cross-compiler-mipsel/ffmpeg-2.4.2# mipsel-gcc --version uClibc mipsel-rawgcc (GCC) 4.1.2 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. /home/Embedded/cross-compiler-mipsel/ffmpeg-2.4.2# ./configure --prefix=/opt/share --disable-mipsdspr1 --disable-mipsdspr2 --en able-cross-compile --arch=mipsel --target-os=linux --cross-prefix=mipsel- -- cc=mipsel-gcc --cxx=mipsel-g++ /home/Embedded/cross-compiler-mipsel/ffmpeg-2.4.2# make CC libavdevice/alldevices.o In file included from ./libavutil/internal.h:168, from ./libavutil/common.h:415, from ./libavutil/avutil.h:289, from ./libavutil/log.h:25, from libavdevice/avdevice.h:46, from libavdevice/alldevices.c:22: ./libavutil/libm.h:88: error: static declaration of 'fminf' follows non-static declaration make: *** [libavdevice/alldevices.o] Error 1 /home/Embedded/cross-compiler-mipsel/ffmpeg-2.4.2# grep HAVE_FMINF config.h #define HAVE_FMINF 0 www.macfh.co.uk/CEMH.html > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org > [mailto:ffmpeg-user-bounces at ffmpeg.org]On Behalf Of Carl Eugen Hoyos > Sent: 29 October 2014 09:32 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] ffmpeg4android and missing math functions > > > C E Macfarlane macfh.co.uk> writes: > > > https://ffmpeg.org/pipermail/ffmpeg-user/2014-August/023120.html > > > > I have now got the same errors by two completely different > methods ... > > 1) Compiling with the native GCC on the target device > > 2) Compiling with a cross-toolchain > > Do you want to discuss one or both of them? > > I asked for the output of "grep HAVE_FMINF config.h" > but didn't find it in your long answer. From cehoyos at ag.or.at Thu Oct 30 00:49:47 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 29 Oct 2014 23:49:47 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg4android and missing math functions References: Message-ID: C E Macfarlane macfh.co.uk> writes: > ./configure --prefix=/opt/share --disable-mipsdspr1 > --disable-mipsdspr2 --enable-cross-compile --arch=mipsel > --target-os=linux --cross-prefix=mipsel- > --cc=mipsel-gcc --cxx=mipsel-g++ (cxx should be unneded.) > /home/Embedded/cross-compiler-mipsel/ffmpeg-2.4.2# make > CC libavdevice/alldevices.o > In file included from ./libavutil/internal.h:168, > from ./libavutil/common.h:415, > from ./libavutil/avutil.h:289, > from ./libavutil/log.h:25, > from libavdevice/avdevice.h:46, > from libavdevice/alldevices.c:22: > ./libavutil/libm.h:88: error: static declaration of 'fminf' follows > non-static declaration Too bad the compiler doesn't tell us where the non-static declaration is... > make: *** [libavdevice/alldevices.o] Error 1 > # grep HAVE_FMINF config.h > #define HAVE_FMINF 0 It appears to me that fminf() is defined in one of your cross-compilation system headers - probably math.h - but not available in your C library. Is that correct or do I miss something? Or does the cross compiler use the wrong headers? Or is a linker flag needed to tell the compiler where to find fminf()? Your compiler is eight years old, I don't know if this is the problem but I don't think anybody can rule it out. Carl Eugen From paulo.fidalgo.pt at gmail.com Thu Oct 30 09:05:22 2014 From: paulo.fidalgo.pt at gmail.com (Paulo Fidalgo) Date: Thu, 30 Oct 2014 08:05:22 +0000 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: <201410281155.40532.cehoyos@ag.or.at> References: <5447FD04.80602@gmail.com> <544E9EC5.9070706@gmail.com> <201410281155.40532.cehoyos@ag.or.at> Message-ID: <5451F142.9070903@gmail.com> On 28/10/14 10:55, Carl Eugen Hoyos wrote: > On Monday 27 October 2014 08:36:37 pm Paulo Fidalgo wrote: >> On 27/10/14 00:04, Carl Eugen Hoyos wrote: >>> Paulo Fidalgo gmail.com> writes: >>>> After making another test with lame and ffmpeg >>> Please test the following: >>> >>> $ lame -V 0 -q 0 2L38_01_96kHz.wav 2L38_01_96kHz-lame-V0.mp3 >>> $ ffmpeg -i 2L38_01_96kHz.wav -compression_level 1 -q:0 0 out.mp3 >> The file created by lame works, although the ffmpeg don't. > Hmm. > Is the problem related at all to "-q:0" or is it also reproducible > if you specify a bitrate (or neither bitrate nor quality)? When I try to encode with 320k I see this message at the begining: size= 6626kB time=00:02:49.58 bitrate= 320.9kbits/s I've tried with 320k and 256k and both files don't play. > >> If there's something I can do to further investigate please let me know. > You could ask Volvo again (as said, the bitrate is not >320 for any frame) > but I wonder now if you shouldn't just use -write_xing 0 or -id3v2_version 3. I can't use this option (-write_xing) nor I can't found in documentation: https://www.ffmpeg.org/ffmpeg-all.html And it don't make any difference to use -id3v2_version 3 flag. > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From streamin at elitemail.org Thu Oct 30 09:34:17 2014 From: streamin at elitemail.org (marsupilami) Date: Thu, 30 Oct 2014 01:34:17 -0700 (PDT) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <20141027213636.GE6792@sunshine.barsnick.net> References: <1414084439652-4667828.post@n4.nabble.com> <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> <1414427817152-4667871.post@n4.nabble.com> <20141027213636.GE6792@sunshine.barsnick.net> Message-ID: <1414658057823-4667936.post@n4.nabble.com> Now I've had some time to test this issue more extensively and you're right, the header really is there. However after encoding I'm using mkvmerge to cut (split) the file so only the parts I want will be there in the final mkv. This all condenses down to one problem: mkvmerge (as well as ffmpeg) in cutting mode does not read all headers that are included in the mkv file and includes them in the cut mkv file - so the encoding settings header gets lost if I'm not cutting from the beginning from the file but from somewhere in let's say the first quarter. It seems somewhat logical that the two tools don't do that, but it's very unfortunate for me since I would like to preserve this header in the final mkv file that comes out after cutting. I've read some man pages and tested extracting the tags of the uncut file (where the "encoding settings" header is still intact) with mkvextract, but unfortunately it doesn't show it - neither does mkvinfo. Only mediainfo shows the "encoding settings" tag in the uncut file. Any ideas how I could extract this tag somehow from the uncut file and put it back into the cut file (preferrably with ffmpeg)? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828p4667936.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Thu Oct 30 09:56:35 2014 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 30 Oct 2014 08:56:35 +0000 (UTC) Subject: [FFmpeg-user] MP3 enconding bitrate References: <5447FD04.80602@gmail.com> <544E9EC5.9070706@gmail.com> <201410281155.40532.cehoyos@ag.or.at> <5451F142.9070903@gmail.com> Message-ID: Paulo Fidalgo gmail.com> writes: > I've tried with 320k and 256k and both files don't play. I wanted to suggest a very low bitrate (or none at all) to convince you that this is not related to the used bitrate (it is not easily possible or maybe even impossible to encode mp3 with >320k with FFmpeg). > > but I wonder now if you shouldn't just use -write_xing 0 > > I can't use this option (-write_xing) Sorry, I am not a native speaker: What do you mean? > nor I can't found in documentation: https://ffmpeg.org/ffmpeg-formats.html#mp3 Carl Eugen From barsnick at gmx.net Thu Oct 30 10:07:26 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 30 Oct 2014 10:07:26 +0100 Subject: [FFmpeg-user] MP3 enconding bitrate In-Reply-To: <5451F142.9070903@gmail.com> References: <5447FD04.80602@gmail.com> <544E9EC5.9070706@gmail.com> <201410281155.40532.cehoyos@ag.or.at> <5451F142.9070903@gmail.com> Message-ID: <20141030090726.GB12578@sunshine.barsnick.net> On Thu, Oct 30, 2014 at 08:05:22 +0000, Paulo Fidalgo wrote: > I've tried with 320k and 256k and both files don't play. While applying trial and error using ffmpeg, you might also want to analyze the failing (and the successful) files with an MP3 diagnosis tool. There are quite a few out there, even open source. I have used MP3Diags, and recently found a few others such as mp3check and mp3val.[*] I can't tell though whether these tools would detect your issue. Some apparently only actually process the _headers_. Moritz [*] Best link I found, in German though: http://wiki.ubuntuusers.de/%C3%9Cberpr%C3%BCfung_MP3-Sammlung From kuban.altan at sinefekt.com Thu Oct 30 11:15:32 2014 From: kuban.altan at sinefekt.com (Kuban Altan) Date: Thu, 30 Oct 2014 12:15:32 +0200 Subject: [FFmpeg-user] Generating an rgb24 pix_fmt solid color using lavfi by default In-Reply-To: References: Message-ID: All I want to do is, generate a solid color in rgb24 pixel format. Is there any other way to achieve this? (Other than using an input rgb24 file? I don't want to make this command line dependant on an external image file) kuban altan On Thu, Oct 30, 2014 at 1:15 AM, Carl Eugen Hoyos wrote: > Kuban Altan sinefekt.com> writes: > > > How can I avoid this conversion step, and directly create a > > colored background in *rgb24 *pixel format using *lavfi*? > > There is currently no rgb-color filter. > > Patch welcome, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From francois.visagie at gmail.com Thu Oct 30 11:19:23 2014 From: francois.visagie at gmail.com (Francois Visagie) Date: Thu, 30 Oct 2014 12:19:23 +0200 Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <1414658057823-4667936.post@n4.nabble.com> References: <1414084439652-4667828.post@n4.nabble.com> <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> <1414427817152-4667871.post@n4.nabble.com> <20141027213636.GE6792@sunshine.barsnick.net> <1414658057823-4667936.post@n4.nabble.com> Message-ID: <004801cff42a$fd79dea0$f86d9be0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of marsupilami > Sent: 30 October 2014 10:34 > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Automatic encoding of .ts files gives an > inexplicable delay after muxing > > Now I've had some time to test this issue more extensively and you're right, > the header really is there. However after encoding I'm using mkvmerge to > cut > (split) the file so only the parts I want will be there in the final mkv. > This all condenses down to one problem: > > mkvmerge (as well as ffmpeg) in cutting mode does not read all headers that > are included in the mkv file and includes them in the cut mkv file - so the > encoding settings header gets lost if I'm not cutting from the beginning from > the file but from somewhere in let's say the first quarter. It seems somewhat > logical that the two tools don't do that, but it's very unfortunate for me since > I would like to preserve this header in the final mkv file that comes out after > cutting. > > I've read some man pages and tested extracting the tags of the uncut file > (where the "encoding settings" header is still intact) with mkvextract, but > unfortunately it doesn't show it - neither does mkvinfo. Only mediainfo > shows the "encoding settings" tag in the uncut file. > > Any ideas how I could extract this tag somehow from the uncut file and put it > back into the cut file (preferrably with ffmpeg)? Unfortunately you don't include previous discussions, but have you tried ffprobe for that purpose? > > > -- > View this message in context: http://ffmpeg- > users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an- > inexplicable-delay-after-muxing-tp4667828p4667936.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 p.rennert at cs.ucl.ac.uk Thu Oct 30 13:15:34 2014 From: p.rennert at cs.ucl.ac.uk (Peter Rennert) Date: Thu, 30 Oct 2014 12:15:34 +0000 Subject: [FFmpeg-user] Problems getting the very last frames of videos using av_read_frame Message-ID: <54522BE6.5010703@cs.ucl.ac.uk> Hi, I am having a problem with reading video files with the ffmpeg api. I am building on a python wrapper, that someone else wrote. I noticed a bug, but the creator could not solve the issue. So I am trying to hunt it down by myself. The problem is that the wrapper truncates any video I tried it with. The basic idea of the wrapper is, to use av_read_frame() to read frames until it returns a value < 0. That seems to work, and I get the right frames back all the time (even using seek of the wrapper), except for the last frames. It seems as av_read_frame only reads until the last key frame and does not go beyond it. FFMPEG command line tools, on the other hand, can extract the full video sequence and do not omit anything. I am not sure whether the information I give here is enough to start hunting down the bug. I am not experienced at all with the ffmpeg api and I am working with the code I have got from the other guy. Let me know if you need something else to start tracing the problem. Thanks, Peter Stuff to test the problem: Wrapper code with line calling av_read_frame: =========================== https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-231 ( you can install the wraper with pip install https://bitbucket.org/groakat/ffvideo/get/b45143f755ac.zip) Rendered test Video (1000 frames numbered from 1..1000): ==================================== https://www.dropbox.com/s/guu33jyy4t7sq53/test.avi?dl=0 Script to generate the video: ================= First generate frames: #!/bin/bash for i in $(seq -f "%05g" 1 1000) do convert -size 51x18 -pointsize 16 -font /usr/share/fonts/truetype/freefont/FreeMono.ttf label:$i $i.png done Then use to create a video from the image sequence: ffmpeg -y -f image2 -r 30 -i "%05d.png" -r 30 test.avi Then test whether ffmpeg can read all frames: ffmpeg -i "test.avi" -an -f image2 "output_%05d.png" Python script using the wrapper from above to extract the frames: ======================================== from ffvideo import VideoStream from scipy.misc import imsave vs = VideoStream('test.avi', exact_seek=True) cnt = 0 for frame in vs: f = frame.ndarray() imsave("frame {0:05d}.png".format(cnt), f) cnt += 1 My ffmpeg version =========== $ ffmpeg ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers built on Apr 9 2014 16:32:16 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/peter/ffmpeg_build --extra-cflags=-I/home/peter/ffmpeg_build/include --extra-ldflags=-L/home/peter/ffmpeg_build/lib --bindir=/home/peter/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 --enable-shared WARNING: library configuration mismatch avutil configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared avcodec configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared avformat configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared avdevice configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared avfilter configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared swscale configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared swresample configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared postproc configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-shared libavutil 52. 74.100 / 52. 75.100 libavcodec 55. 58.102 / 55. 58.103 libavformat 55. 36.102 / 55. 36.102 libavdevice 55. 11.100 / 55. 11.100 libavfilter 4. 3.100 / 4. 3.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 18.100 / 0. 18.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 barsnick at gmx.net Thu Oct 30 14:40:05 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 30 Oct 2014 14:40:05 +0100 Subject: [FFmpeg-user] Problems getting the very last frames of videos using av_read_frame In-Reply-To: <54522BE6.5010703@cs.ucl.ac.uk> References: <54522BE6.5010703@cs.ucl.ac.uk> Message-ID: <20141030134005.GF12578@sunshine.barsnick.net> On Thu, Oct 30, 2014 at 12:15:34 +0000, Peter Rennert wrote: > except for the last frames. It seems as av_read_frame only reads until > the last key frame and does not go beyond it. Do you ever see "Unable to decode video picture: %d" from https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-233 ??? There's an example in ffmpeg's doc/ directory, named demuxing_decoding.c, which uses your described av_read_frame() loop, and succeeds at reading all 1000 frames. So the issue is probably somewhere in the python wrapper. > ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers > built on Apr 9 2014 16:32:16 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) This is quite a bit too old to gain support on this list. :) > WARNING: library configuration mismatch and is apparently using libraries from a different build, which is not a good idea. The first suggestion would be to build lastest git, and ensure you're not using "stale" libraries from older installs. (I don't have enough knowledge to tell you more about how to use libav properly, I only know the examples. Anyway, there's a separate list for libav issues: https://ffmpeg.org/mailman/listinfo/libav-user ) Moritz From p.rennert at cs.ucl.ac.uk Thu Oct 30 14:48:20 2014 From: p.rennert at cs.ucl.ac.uk (Peter Rennert) Date: Thu, 30 Oct 2014 13:48:20 +0000 Subject: [FFmpeg-user] Problems getting the very last frames of videos using av_read_frame In-Reply-To: <20141030134005.GF12578@sunshine.barsnick.net> References: <54522BE6.5010703@cs.ucl.ac.uk> <20141030134005.GF12578@sunshine.barsnick.net> Message-ID: <545241A4.70602@cs.ucl.ac.uk> Hi Moritz, Thanks for looking into this. On 30/10/14 13:40, Moritz Barsnick wrote: > On Thu, Oct 30, 2014 at 12:15:34 +0000, Peter Rennert wrote: > >> except for the last frames. It seems as av_read_frame only reads until >> the last key frame and does not go beyond it. > Do you ever see "Unable to decode video picture: %d" from > https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-233 > ??? No, I never saw that Error being raised. > > There's an example in ffmpeg's doc/ directory, named > demuxing_decoding.c, which uses your described av_read_frame() loop, > and succeeds at reading all 1000 frames. Thanks for that lead. I will follow that up and report the results later. > > So the issue is probably somewhere in the python wrapper. > >> ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers >> built on Apr 9 2014 16:32:16 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) > This is quite a bit too old to gain support on this list. :) I will rebuild ffmpeg, and see if it persists. > >> WARNING: library configuration mismatch > and is apparently using libraries from a different build, which is not > a good idea. > > The first suggestion would be to build lastest git, and ensure you're > not using "stale" libraries from older installs. > > (I don't have enough knowledge to tell you more about how to use libav > properly, I only know the examples. Anyway, there's a separate list for > libav issues: https://ffmpeg.org/mailman/listinfo/libav-user ) To my knowledge I am not using libav. At least when I last checked ;). > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ryan.vincent29 at gmail.com Thu Oct 30 18:27:07 2014 From: ryan.vincent29 at gmail.com (ryan.vincent29 at gmail.com) Date: Thu, 30 Oct 2014 10:27:07 -0700 (PDT) Subject: [FFmpeg-user] DTS Out of Order / DTS & PTS Invalid Dropping Message-ID: <1414690027434-4667944.post@n4.nabble.com> Hello FFmpeg-users, I am struggling to get the concat demuxer working on FFMPEG Version 4.2.4. I am attempting to combine multiple image files into a video by using the command: ffmpeg -f concat -i myFile.txt output.mp4 I get an output file from the command, but the total time is much shorter than the time I specify in the file. I am fairly sure it has something to do with these: [concat @ 0x3517c20] DTS -230575710986727 < -9214782102262 out of order DTS -221360928884465, next:40000 st:0 invalid dropping PTS -221360928884465, next:40000 invalid dropping st:0 DTS -221360928884389, next:80000 st:0 invalid dropping PTS -221360928884389, next:80000 invalid dropping st:0 *Does anyone have any idea what I can do to get this working? Contents of myFile.txt: file 'image0.png' duration 2.018 file 'image1.png' duration 3.018 file 'image2.png' duration 4.018 Version Information for FFMPEG: ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 10 2014 15:15:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-x11grab --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Output from ffmpeg upon running the command: ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 10 2014 15:15:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-x11grab --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Input #0, concat, from 'myFile.txt': Duration: 00:00:09.05, start: 775903366.480000, bitrate: 0 kb/s Stream #0:0: Video: png, rgba, 1500x1000, 25 tbr, 25 tbn, 25 tbc No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x35240e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x35240e0] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit [libx264 @ 0x35240e0] 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=4 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf56.4.101 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1500x1000, q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (png (native) -> h264 (libx264)) Press [q] to stop, [?] for help [concat @ 0x3517c20] DTS -230575710986727 < -9214782102262 out of order DTS -221360928884465, next:40000 st:0 invalid dropping PTS -221360928884465, next:40000 invalid dropping st:0 DTS -221360928884389, next:80000 st:0 invalid dropping PTS -221360928884389, next:80000 invalid dropping st:0 frame= 3 fps=0.0 q=28.0 Lsize= 27kB time=00:00:00.04 bitrate=5587.6kbits/s video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.225568% [libx264 @ 0x35240e0] frame I:1 Avg QP:14.32 size: 13024 [libx264 @ 0x35240e0] frame P:1 Avg QP:16.34 size: 246 [libx264 @ 0x35240e0] frame B:1 Avg QP:18.24 size: 13107 [libx264 @ 0x35240e0] consecutive B-frames: 33.3% 66.7% 0.0% 0.0% [libx264 @ 0x35240e0] mb I I16..4: 73.4% 19.5% 7.1% [libx264 @ 0x35240e0] mb P I16..4: 0.1% 0.1% 0.0% P16..4: 1.7% 0.1% 0.0% 0.0% 0.0% skip:98.0% [libx264 @ 0x35240e0] mb B I16..4: 9.5% 6.3% 6.8% B16..8: 4.8% 0.5% 0.0% direct: 0.1% skip:72.0% L0:20.7% L1:79.0% BI: 0.3% [libx264 @ 0x35240e0] 8x8 transform intra:21.1% inter:70.4% [libx264 @ 0x35240e0] coded y,u,v intra: 10.0% 5.9% 3.9% inter: 0.5% 0.5% 0.5% [libx264 @ 0x35240e0] i16 v,h,dc,p: 86% 12% 1% 1% [libx264 @ 0x35240e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 12% 55% 1% 1% 1% 1% 1% 1% [libx264 @ 0x35240e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 27% 10% 3% 4% 4% 4% 3% 3% [libx264 @ 0x35240e0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x35240e0] kb/s:1758.47 Any help would be much appreciated. Ryan Vincent -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/DTS-Out-of-Order-DTS-PTS-Invalid-Dropping-tp4667944.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From benchuk at gmail.com Thu Oct 30 10:07:01 2014 From: benchuk at gmail.com (Ben Amsallem) Date: Thu, 30 Oct 2014 11:07:01 +0200 Subject: [FFmpeg-user] Capture android device screen Message-ID: http://ffmpeg.org/pipermail/ffmpeg-user/2013-January/012941.html Any luck with solving this issue? I am facing the same problem myself. From obucinac at gmail.com Wed Oct 29 19:34:44 2014 From: obucinac at gmail.com (=?UTF-8?B?0KHRgNGS0LDQvSDQntCx0YPRm9C40L3QsA==?=) Date: Wed, 29 Oct 2014 19:34:44 +0100 Subject: [FFmpeg-user] ffmpeg4android and missing math functions Message-ID: A typical configure line to build FFmpeg for android with NDK would be something like this: PLATFORM=$NDK/platforms/android-8/arch-arm PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86 ./configure --target-os=linux \ --prefix=$PREFIX \ --enable-cross-compile \ --extra-libs="-lgcc" \ --arch=arm \ --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \ --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \ --nm=$PREBUILT/bin/arm-linux-androideabi-nm \ --sysroot=$PLATFORM \ So, the script makes its conclusions according to this $PLATFORM sysroot, libraries contained there, and functions contained in these libraries. But, when building with android build system, using Android.mk file, this sysroot is NOT USED. The linking goes against libraries built from Android source code tree, which are placed in a totally different location. So, I believe there is nothing wrong with toolchain, there is nothing wrong with configure script, and there is a lot of wrong in Android build system. IMO, no additional checks in configure script are needed or would be helpful, because what we basically have here is configuring FFmpeg according to one set of the libraries, and building and linking it with another. IMO, the best and most secure way to build FFmpeg for Android is cross-compiling with statically linking everything it needs. But, in my industry, we have to adapt to Android build system, and this way simply does not offer elegance and ease of work. Scripts from ffmpeg4android are my attempt to adapt to the requirements of Android build system and to the way FFmpeg is usually used by developers working with full Android source code. Bottom line, don't bother, there is nothing wrong with configure script. Blame the Android build system and hacks that have to be made in order to build FFmpeg by Android build system. From shashank.pathak at einfochips.com Thu Oct 30 12:32:06 2014 From: shashank.pathak at einfochips.com (Shashank Pathak) Date: Thu, 30 Oct 2014 17:02:06 +0530 Subject: [FFmpeg-user] Getting H264 elementary stream from mp4 Message-ID: <545221B6.7020706@einfochips.com> Hi All, We are having one mp4 file with h264 codec. we want to feed this file to a video decoder but the decoder requires elementary stream. So we tried to extract H264 elementary string from mp4 with below ffmpeg commnd, ffmpeg -i input.mp4 -vcodec copy -vbsf h264_mp4toannexb output.h264 Now with this command we are getting h264 file but this file is not having I-frame in it. We viewed the file in Hex editor and found that it contains, 00 00 00 01 67 --> SPS frame 00 00 00 01 68 --> PPS frame But we couldn't find, 00 00 00 01 65 --> I-frmae. VLC is not able to play the generated h264 file. ffplay plays the file but very fast (higher fps). Can anyone suggest what we are doing wrong? or Any other method to get H264 file? -- Best Regards, Shashank Pathak Senior Engineer | PES [cid:part1.05050907.05040709 at einfochips.com] Product Engineering Services Software | Embedded | Semiconductor Frost & Sullivan Company of the Year 2013-14 ************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ************************************************************************************************************************************************************* From p.rennert at cs.ucl.ac.uk Fri Oct 31 02:09:38 2014 From: p.rennert at cs.ucl.ac.uk (Peter Rennert) Date: Fri, 31 Oct 2014 01:09:38 +0000 Subject: [FFmpeg-user] Problems getting the very last frames of videos using av_read_frame In-Reply-To: <545241A4.70602@cs.ucl.ac.uk> References: <54522BE6.5010703@cs.ucl.ac.uk> <20141030134005.GF12578@sunshine.barsnick.net> <545241A4.70602@cs.ucl.ac.uk> Message-ID: <5452E152.4000305@cs.ucl.ac.uk> I rebuild ffmpeg and cleared the issues with WARNING: library configuration mismatch (there was indeed libav installed because of a dependency..) After rebuilding the wrapper, the issue is exactly the same. On 30/10/14 13:48, Peter Rennert wrote: > Hi Moritz, > > Thanks for looking into this. > > On 30/10/14 13:40, Moritz Barsnick wrote: >> On Thu, Oct 30, 2014 at 12:15:34 +0000, Peter Rennert wrote: >> >>> except for the last frames. It seems as av_read_frame only reads until >>> the last key frame and does not go beyond it. >> Do you ever see "Unable to decode video picture: %d" from >> https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-233 >> >> ??? > No, I never saw that Error being raised. > >> >> There's an example in ffmpeg's doc/ directory, named >> demuxing_decoding.c, which uses your described av_read_frame() loop, >> and succeeds at reading all 1000 frames. > Thanks for that lead. I will follow that up and report the results later. > >> >> So the issue is probably somewhere in the python wrapper. >> >>> ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers >>> built on Apr 9 2014 16:32:16 with gcc 4.8 (Ubuntu/Linaro >>> 4.8.1-10ubuntu9) >> This is quite a bit too old to gain support on this list. :) > I will rebuild ffmpeg, and see if it persists. > >> >>> WARNING: library configuration mismatch >> and is apparently using libraries from a different build, which is not >> a good idea. >> >> The first suggestion would be to build lastest git, and ensure you're >> not using "stale" libraries from older installs. >> >> (I don't have enough knowledge to tell you more about how to use libav >> properly, I only know the examples. Anyway, there's a separate list for >> libav issues: https://ffmpeg.org/mailman/listinfo/libav-user ) > To my knowledge I am not using libav. At least when I last checked ;). > > >> 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 voipcallnet at gmail.com Thu Oct 30 21:04:21 2014 From: voipcallnet at gmail.com (LD2K.com Litecoin Mining Pool) Date: Thu, 30 Oct 2014 13:04:21 -0700 Subject: [FFmpeg-user] errors: Input buffer exhausted before END element found, error while decoding, Failed to update header with correct duration.. Message-ID: ffmpeg often stops with errors: [mpegts @ 0x316cae0] PES packet size mismatchme=00:31:33.14 bitrate=1005.2kbits/s Last message repeated 1 times [aac @ 0x317c7e0] Input buffer exhausted before END element found Error while decoding stream #0:0: Invalid data found when processing input [h264 @ 0x38b40e0] negative number of zero coeffs at 29 18 [h264 @ 0x38b40e0] error while decoding MB 29 18 [h264 @ 0x38b40e0] concealing 812 DC, 812 AC, 812 MV errors in I frame [flv @ 0x31bbc00] Failed to update header with correct duration. [flv @ 0x31bbc00] Failed to update header with correct filesize =============================. ffmpeg -re -i http://Source -preset fast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -b:v 900k -maxrate 1000k -bufsize 2000k -g 60 -flags +global_header -f flv http://Destination ffmpeg version 2.4.2- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers built on Oct 9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11) configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8 libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! [h264 @ 0x3172be0] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x3172be0] decode_slice_header error [h264 @ 0x3172be0] no frame! Input #0, mpegts, from 'http://Source': Duration: N/A, start: 78430.151411, bitrate: 117 kb/s Program 1 Stream #0:0[0x100](rus): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 117 kb/s Stream #0:1[0x101]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc [libx264 @ 0x328e880] using SAR=16/11 [libx264 @ 0x328e880] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x328e880] profile High, level 3.0 [libx264 @ 0x328e880] 264 - core 142 r50 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=900 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=2000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'http://Destination': Metadata: encoder : Lavf56.4.101 Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 704x576 [SAR 16:11 DAR 16:9], q=-1--1, 900 kb/s, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream #0:1(rus): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 96 kb/s Metadata: encoder : Lavc56.1.100 aac Stream mapping: Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [mpegts @ 0x316cae0] PES packet size mismatchme=00:31:33.14 bitrate=1005.2kbits/s Last message repeated 1 times [aac @ 0x317c7e0] Input buffer exhausted before END element found Error while decoding stream #0:0: Invalid data found when processing input [h264 @ 0x38b40e0] negative number of zero coeffs at 29 18 [h264 @ 0x38b40e0] error while decoding MB 29 18 [h264 @ 0x38b40e0] concealing 812 DC, 812 AC, 812 MV errors in I frame [flv @ 0x31bbc00] Failed to update header with correct duration. [flv @ 0x31bbc00] Failed to update header with correct filesize. frame=47313 fps= 25 q=-1.0 Lsize= 232612kB time=00:31:33.28 bitrate=1006.5kbits/s video:208092kB audio:22243kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.989065% [libx264 @ 0x328e880] frame I:1177 Avg QP:18.14 size: 24962 [libx264 @ 0x328e880] frame P:21942 Avg QP:22.47 size: 6217 [libx264 @ 0x328e880] frame B:24194 Avg QP:23.16 size: 1955 [libx264 @ 0x328e880] consecutive B-frames: 26.3% 12.2% 13.1% 48.4% [libx264 @ 0x328e880] mb I I16..4: 25.9% 42.7% 31.4% [libx264 @ 0x328e880] mb P I16..4: 5.5% 7.0% 1.2% P16..4: 37.7% 12.3% 5.1% 0.0% 0.0% skip:31.3% [libx264 @ 0x328e880] mb B I16..4: 1.7% 1.2% 0.1% B16..8: 25.5% 5.1% 0.2% direct:11.3% skip:55.0% L0:49.3% L1:43.4% BI: 7.4% [libx264 @ 0x328e880] 8x8 transform intra:47.3% inter:63.7% [libx264 @ 0x328e880] coded y,uvDC,uvAC intra: 42.3% 61.2% 17.8% inter: 12.2% 25.1% 0.3% [libx264 @ 0x328e880] i16 v,h,dc,p: 49% 22% 13% 16% [libx264 @ 0x328e880] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 15% 25% 3% 4% 6% 4% 6% 4% [libx264 @ 0x328e880] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 17% 11% 5% 6% 8% 5% 7% 4% [libx264 @ 0x328e880] i8c dc,h,v,p: 52% 18% 26% 4% [libx264 @ 0x328e880] Weighted P-Frames: Y:1.7% UV:1.1% [libx264 @ 0x328e880] ref P L0: 79.4% 20.6% [libx264 @ 0x328e880] ref B L0: 83.5% 16.5% [libx264 @ 0x328e880] ref B L1: 94.5% 5.5% [libx264 @ 0x328e880] kb/s:900.75 From p.rennert at cs.ucl.ac.uk Fri Oct 31 06:39:38 2014 From: p.rennert at cs.ucl.ac.uk (Peter Rennert) Date: Fri, 31 Oct 2014 05:39:38 +0000 Subject: [FFmpeg-user] Problems getting the very last frames of videos using av_read_frame In-Reply-To: <5452E152.4000305@cs.ucl.ac.uk> References: <54522BE6.5010703@cs.ucl.ac.uk> <20141030134005.GF12578@sunshine.barsnick.net> <545241A4.70602@cs.ucl.ac.uk> <5452E152.4000305@cs.ucl.ac.uk> Message-ID: <5453209A.4000502@cs.ucl.ac.uk> I had a close look through https://www.ffmpeg.org/doxygen/2.1/doc_2examples_2demuxing_8c-example.html and compared it to what the wrapper is doing. They are pretty similar, the biggest difference I could spot so far was in https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-353 Which means whenever the wrapper starts looping over the frames, it starts using av_seek_frame, rather than just to open the video file again. I noticed a while ago that when doing an accurate seek (in get_frame_at_pts of the wrapper) the dts of the stream has an offset, therefore I needed to put this hack in, to make the seek precise: https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-345 The number of frames missing at the end seems to coincide with the +9 that I hacked into that loop to account for the offset I observed. Back then I could not make out where that offset comes from. Now when I read the code and the ffmpeg documentation again, I still cannot find why there should be an offset. On the other hand, av_read_frame should not care about that at all, because it should just return the next frame in the stream, regardless of any dts, no? Anyway, I will continue the bug hunt at Monday. Any suggestions are still welcome :) On 31/10/14 01:09, Peter Rennert wrote: > I rebuild ffmpeg and cleared the issues with > > WARNING: library configuration mismatch > > (there was indeed libav installed because of a dependency..) > > After rebuilding the wrapper, the issue is exactly the same. > > > On 30/10/14 13:48, Peter Rennert wrote: >> Hi Moritz, >> >> Thanks for looking into this. >> >> On 30/10/14 13:40, Moritz Barsnick wrote: >>> On Thu, Oct 30, 2014 at 12:15:34 +0000, Peter Rennert wrote: >>> >>>> except for the last frames. It seems as av_read_frame only reads until >>>> the last key frame and does not go beyond it. >>> Do you ever see "Unable to decode video picture: %d" from >>> https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-233 >>> >>> ??? >> No, I never saw that Error being raised. >> >>> >>> There's an example in ffmpeg's doc/ directory, named >>> demuxing_decoding.c, which uses your described av_read_frame() loop, >>> and succeeds at reading all 1000 frames. >> Thanks for that lead. I will follow that up and report the results >> later. >> >>> >>> So the issue is probably somewhere in the python wrapper. >>> >>>> ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers >>>> built on Apr 9 2014 16:32:16 with gcc 4.8 (Ubuntu/Linaro >>>> 4.8.1-10ubuntu9) >>> This is quite a bit too old to gain support on this list. :) >> I will rebuild ffmpeg, and see if it persists. >> >>> >>>> WARNING: library configuration mismatch >>> and is apparently using libraries from a different build, which is not >>> a good idea. >>> >>> The first suggestion would be to build lastest git, and ensure you're >>> not using "stale" libraries from older installs. >>> >>> (I don't have enough knowledge to tell you more about how to use libav >>> properly, I only know the examples. Anyway, there's a separate list for >>> libav issues: https://ffmpeg.org/mailman/listinfo/libav-user ) >> To my knowledge I am not using libav. At least when I last checked ;). >> >> >>> 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 On 31/10/14 01:09, Peter Rennert wrote: > I rebuild ffmpeg and cleared the issues with > > WARNING: library configuration mismatch > > (there was indeed libav installed because of a dependency..) > > After rebuilding the wrapper, the issue is exactly the same. > > > On 30/10/14 13:48, Peter Rennert wrote: >> Hi Moritz, >> >> Thanks for looking into this. >> >> On 30/10/14 13:40, Moritz Barsnick wrote: >>> On Thu, Oct 30, 2014 at 12:15:34 +0000, Peter Rennert wrote: >>> >>>> except for the last frames. It seems as av_read_frame only reads until >>>> the last key frame and does not go beyond it. >>> Do you ever see "Unable to decode video picture: %d" from >>> https://bitbucket.org/groakat/ffvideo/src/b45143f755ac8da1e6ed4f52a11217af1e093d54/ffvideo/ffvideo.pyx?at=default#cl-233 >>> >>> ??? >> No, I never saw that Error being raised. >> >>> >>> There's an example in ffmpeg's doc/ directory, named >>> demuxing_decoding.c, which uses your described av_read_frame() loop, >>> and succeeds at reading all 1000 frames. >> Thanks for that lead. I will follow that up and report the results >> later. >> >>> >>> So the issue is probably somewhere in the python wrapper. >>> >>>> ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers >>>> built on Apr 9 2014 16:32:16 with gcc 4.8 (Ubuntu/Linaro >>>> 4.8.1-10ubuntu9) >>> This is quite a bit too old to gain support on this list. :) >> I will rebuild ffmpeg, and see if it persists. >> >>> >>>> WARNING: library configuration mismatch >>> and is apparently using libraries from a different build, which is not >>> a good idea. >>> >>> The first suggestion would be to build lastest git, and ensure you're >>> not using "stale" libraries from older installs. >>> >>> (I don't have enough knowledge to tell you more about how to use libav >>> properly, I only know the examples. Anyway, there's a separate list for >>> libav issues: https://ffmpeg.org/mailman/listinfo/libav-user ) >> To my knowledge I am not using libav. At least when I last checked ;). >> >> >>> 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 streamin at elitemail.org Fri Oct 31 09:29:56 2014 From: streamin at elitemail.org (marsupilami) Date: Fri, 31 Oct 2014 01:29:56 -0700 (PDT) Subject: [FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing In-Reply-To: <004801cff42a$fd79dea0$f86d9be0$@gmail.com> References: <1414084439652-4667828.post@n4.nabble.com> <033134CE-311C-444B-A357-FA943CDF0EF1@zonnet.nl> <1414427817152-4667871.post@n4.nabble.com> <20141027213636.GE6792@sunshine.barsnick.net> <1414658057823-4667936.post@n4.nabble.com> <004801cff42a$fd79dea0$f86d9be0$@gmail.com> Message-ID: <1414744196177-4667951.post@n4.nabble.com> Yes, I tried ffprobe as well, it doesn't show the tag. No program I tried so far shows it (tried mkvinfo, Media Player Classic, ffprobe, ffmpeg -i, mkvextract, mkvpropedit) except for mediainfo. I found a workaround though: parse the mediainfo output, generate a tags.xml file with a script and add it to the cut mkv file with mkvmerge --tracks 0:tags.xml. I feel dirty doing this, but I didn't find any other way. It's probably not the best option. When I find the time to do so, I'll dig around in the matroska specifications and/or the x264 source code to see how they accomplish this. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828p4667951.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stansp2004 at mail.ru Fri Oct 31 15:11:42 2014 From: stansp2004 at mail.ru (=?UTF-8?B?RGRmc2RmIHNkZnNkZg==?=) Date: Fri, 31 Oct 2014 17:11:42 +0300 Subject: [FFmpeg-user] =?utf-8?q?Errors_while_muxing_into_=2Emkv_from_ip_c?= =?utf-8?q?amera?= Message-ID: <1414764702.199801535@f301.i.mail.ru> Hello! I'm trying to convert video stream received from IP camera into .mkv container. While processing file ffmpeg prints errors described in log file. What's the reason of arising these errors in log? What can I do to eliminate them? Source video file you can download from https://yadi.sk/d/HQ4aJsmucQo9P Part of log: ffmpeg.exe -f h264 -i video.raw video.mkv 2> rawvideo.log ffmpeg version N-67289-g7f24e1e Copyright (c) 2000-2014 the FFmpeg developers built on Oct 30 2014 00:04:25 with gcc 4.9.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-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-zlib libavutil 54. 11.100 / 54. 11.100 libavcodec 56. 10.100 / 56. 10.100 libavformat 56. 11.100 / 56. 11.100 libavdevice 56. 2.100 / 56. 2.100 libavfilter 5. 2.100 / 5. 2.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [h264 @ 02b0d700] Cannot use next picture in error concealment [h264 @ 02b0d700] concealing 564 DC, 564 AC, 564 MV errors in P frame Input #0, h264, from 'video.raw': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc), 1280x960, 15 fps, 15 tbr, 1200k tbn, 30 tbc No pixel format specified, yuvj420p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 02b0e300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 02b0e300] profile High, level 3.2 [libx264 @ 02b0e300] 264 - core 142 r2479 dd79a61 - 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=15 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 'video.mkv': Metadata: encoder : Lavf56.11.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1280x960, q=-1--1, 15 fps, 1k tbn, 15 tbc Metadata: encoder : Lavc56.10.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [h264 @ 05865d20] cbp too large (4294967295) at 44 53 [h264 @ 05865d20] error while decoding MB 44 53 [h264 @ 05865d20] Cannot use next picture in error concealment [h264 @ 05865d20] concealing 565 DC, 565 AC, 565 MV errors in P frame [h264 @ 05115cc0] Cannot use next picture in error concealment [h264 @ 05115cc0] concealing 2372 DC, 2372 AC, 2372 MV errors in P frame [h264 @ 0585f500] Invalid level prefix [h264 @ 0585f500] error while decoding MB 44 22 [h264 @ 0585f500] concealing 3045 DC, 3045 AC, 3045 MV errors in I frame [h264 @ 05865d20] Cannot use next picture in error concealment [h264 @ 05865d20] concealing 1564 DC, 1564 AC, 1564 MV errors in P frame [h264 @ 05861900] negative number of zero coeffs at 18 45 [h264 @ 05861900] error while decoding MB 18 45 [h264 @ 05861900] Cannot use next picture in error concealment [h264 @ 05861900] concealing 1231 DC, 1231 AC, 1231 MV errors in P frame [h264 @ 05115cc0] mb_type 43 in P slice too large at 66 54 [h264 @ 05115cc0] error while decoding MB 66 54 [h264 @ 05115cc0] Cannot use next picture in error concealment [h264 @ 05115cc0] concealing 463 DC, 463 AC, 463 MV errors in P frame [h264 @ 0585f500] Cannot use next picture in error concealment [h264 @ 0585f500] concealing 501 DC, 501 AC, 501 MV errors in P frame [h264 @ 05867920] Cannot use next picture in error concealment [h264 @ 05867920] concealing 372 DC, 372 AC, 372 MV errors in P frame [h264 @ 0585f500] negative number of zero coeffs at 63 54 [h264 @ 0585f500] error while decoding MB 63 54 [h264 @ 0585f500] Cannot use next picture in error concealment [h264 @ 0585f500] concealing 466 DC, 466 AC, 466 MV errors in P frame [h264 @ 0585f500] corrupted macroblock 51 48 (total_coeff=-1) [h264 @ 0585f500] error while decoding MB 51 48 [h264 @ 0585f500] Cannot use next picture in error concealment [h264 @ 0585f500] concealing 958 DC, 958 AC, 958 MV errors in P frame [h264 @ 05866d20] Invalid level prefix [h264 @ 05866d20] error while decoding MB 35 26 [h264 @ 05866d20] concealing 2734 DC, 2734 AC, 2734 MV errors in I frame [h264 @ 05115cc0] mb_type 50 in P slice too large at 58 28 [h264 @ 05115cc0] error while decoding MB 58 28 [h264 @ 05115cc0] Cannot use next picture in error concealment [h264 @ 05115cc0] concealing 2551 DC, 2551 AC, 2551 MV errors in P frame frame= 64 fps=0.0 q=27.0 size= 96kB time=00:00:00.39 bitrate=1977.7kbits/s [h264 @ 05867920] Cannot use next picture in error concealment [h264 @ 05867920] concealing 1032 DC, 1032 AC, 1032 MV errors in P frame [h264 @ 05866d20] Cannot use next picture in error concealment [h264 @ 05866d20] concealing 906 DC, 906 AC, 906 MV errors in P frame frame= 86 fps= 83 q=24.0 size= 378kB time=00:00:01.86 bitrate=1658.5kbits/s With best regards, Lev. From francois.visagie at gmail.com Fri Oct 31 15:53:59 2014 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 31 Oct 2014 16:53:59 +0200 Subject: [FFmpeg-user] Automatically ensuring level-conformance for H.264 encodes Message-ID: <000001cff51a$84593f70$8d0bbe50$@gmail.com> Here is something I started, partly to fulfil a need and partly to explore Windows shell scripting. As it may be useful to others too, I'm taking the liberty of sharing it here. The main aim of the attached utilities is to automatically ensure the H.264 level-conformance of arbitrary encodes. In other words, the utilities make it unnecessary to guess and/or discover the required settings through trial-and-error test encodes. Automatically ensuring level-conformance is useful for various reasons: * It ensures maximum compatibility with the widest range of players (even in cases where strict settings for a specific target are not required) * Encoding time can be reduced by as much as 50% by using only as many reference frames as a particular encode's level allows (relevant to (lib)x264 presets slower than medium, and esp. true for veryslow) * It takes the guesswork and test encodes out of changing between sources with different frame sizes, frame rates, bitrates, etc. h264levl calculates, for the given output video parameters, the expected H.264 level and corresponding maximum reference frames. It supports both manual and unattended operation, providing appropriate exit codes and diagnostic output to STDERR for the latter. Here is an example of how h264level can be called from another script: ... setlocal enableextensions setlocal enabledelayedexpansion ... rem Calculate H.264 level and maxref rem -------------------------------- for /f "usebackq tokens=1* delims==" %%i in (`"call h264levl %WIDTH% %HEIGHT% %FPS% %BITRATE% %PROFILE% 1 1 "`) do ( if /i [%%i] == [level] ( set LEVEL=%%j ) else if /i [%%i] == [maxref] ( set MAXREF=%%j ) else if /i [%%i] == [x264maxref] ( set XMAXREF=%%j ) ) rem Check successful parsing set PARLIST= for %%i in (LEVEL MAXREF XMAXREF) do ( if [!%%i!] == [] ( if not [!PARLIST!] == [] set PARLIST=!PARLIST!, set PARLIST=!PARLIST!'%%i' ) ) if not "%PARLIST%" == "" ( set ERRMSG=Unable to calculate legal value/s for %PARLIST%^^! goto ERRPAUSE ) ... FFx264 is an example of such an encoder wrapper script. In addition to h264levl, it also uses ffprobe to establish video characteristics such as frame rate and width and height (the latter two when not over-ridden by the user). Although FFx264 uses ffmpeg for encoding, its syntax is readily adapted for e.g. x264. Extract the files from the attachment, rename extensions from *.bta to *.bat and double-click for instructions. Known restrictions * These utilities have only been properly tested on 8-bit video Fran?ois Visagie T: +27 (83) 326-4358 F: +27 (86) 511-3490 E: francois.visagie at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: h264levl.zip Type: application/octet-stream Size: 8946 bytes Desc: not available URL: From Ibrahim.Nfoudikue at eneo.cm Fri Oct 31 19:41:28 2014 From: Ibrahim.Nfoudikue at eneo.cm (Ibrahim Nfoudikue) Date: Fri, 31 Oct 2014 18:41:28 +0000 Subject: [FFmpeg-user] libvpx error during ffmpeg installation Message-ID: <74426884c43448df9b45250091431894@DB3PR01MB0428.eurprd01.prod.exchangelabs.com> De : Ibrahim Nfoudikue Envoy? : vendredi 31 octobre 2014 19:40 ? : Webmaster PF Editors; 'ffmpeg-user at ffmpeg.org' Objet : libvpx error during ffmpeg installation Hello, I need help ! https://code.google.com/p/bigbluebutton/wiki/090InstallationUbuntu#1._Update_your_server/ I'm installing Bigbluebutton 09 beta on Ubuntu 10.4 64 bit sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx ERROR: libvpx encoder version must be >=0.9.7 [cid:image001.png at 01CFF542.DA0067A0] Bellow snap shot from bbb sites [cid:image002.jpg at 01CFF542.DA0067A0] How can I solve this ? Regards, Ibrahim -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2195 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 29966 bytes Desc: image002.jpg URL: From vtilakece at gmail.com Fri Oct 31 13:30:52 2014 From: vtilakece at gmail.com (Tilak Varisetty) Date: Fri, 31 Oct 2014 13:30:52 +0100 Subject: [FFmpeg-user] Regarding delay in ffserver in reading packets from utils.c source code Message-ID: Hello all, I am using ffserver for my application that transmits pipe of images to the webclient html5. I have observed the the function s->iformat->read_packet(s, pkt) waits for a long time ( aprox. 116 msec) until the output packet size is a const value 786486, and turns the flag got_output as 1. I would appreciate if there is a work around to reduce this delay or waiting times or looping time. Thanks in advance, Tilak From xuws at novel-supertv.com Fri Oct 31 12:17:47 2014 From: xuws at novel-supertv.com (xuws) Date: Fri, 31 Oct 2014 19:17:47 +0800 Subject: [FFmpeg-user] ffmpeg configure error Message-ID: <2b1bfeef.8ebbd.14965ed0930.Coremail.xuws@novel-supertv.com> xuws at xuws_win7 /d/tmp/ffmpeg-2.4.2 $ ./configure --enable-shared --prefix=d:/tmp/lib --enable-debug --toolchain= cl is unable to create an executable file. If cl is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed. 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. 2014-10-31 xuws -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 135187 bytes Desc: not available URL: From james.darnley at gmail.com Fri Oct 31 20:06:44 2014 From: james.darnley at gmail.com (James Darnley) Date: Fri, 31 Oct 2014 20:06:44 +0100 Subject: [FFmpeg-user] libvpx error during ffmpeg installation In-Reply-To: <74426884c43448df9b45250091431894@DB3PR01MB0428.eurprd01.prod.exchangelabs.com> References: <74426884c43448df9b45250091431894@DB3PR01MB0428.eurprd01.prod.exchangelabs.com> Message-ID: <5453DDC4.1090909@gmail.com> On 2014-10-31 19:41, Ibrahim Nfoudikue wrote: > sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx > ERROR: libvpx encoder version must be >=0.9.7 > [cid:image001.png at 01CFF542.DA0067A0] Did you install libvpx? Was it version 0.9.7 or newer? > Bellow snap shot from bbb sites > > [cid:image002.jpg at 01CFF542.DA0067A0] What is this? > How can I solve this ? By installing libvpx or by removing --enable-libvpx -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 603 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Fri Oct 31 22:05:44 2014 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 31 Oct 2014 22:05:44 +0100 Subject: [FFmpeg-user] Capture android device screen In-Reply-To: References: Message-ID: <20141031210544.GA2967@sunshine.barsnick.net> On Thu, Oct 30, 2014 at 11:07:01 +0200, Ben Amsallem wrote: > http://ffmpeg.org/pipermail/ffmpeg-user/2013-January/012941.html > Any luck with solving this issue? > I am facing the same problem myself. That can't work, x11grab is meant to grab from an X11 display server, and I somehow doubt that Android uses that. Did you test according to the suggestion in the neighboring thread? http://ffmpeg.org/pipermail/ffmpeg-user/2013-January/012942.html There was never any feedback regarding that: $ ffmpeg -f fbdev -i /dev/graphics/fb0 out.avi Moritz