[FFmpeg-user] cancenate mp4 video problem
I tried to cancenate two mp4 files from YouTube. The Demuxer method (ffmpeg -f concat -i mylist.txt -c copy output) lead to wrong video at the second part (all-time squares, noncontinuity) without any warning. The Protocol method: ffmpeg -i 1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts 1.ts ffmpeg -i 2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts 2.ts ffmpeg -i concat:1.ts|2.ts -c copy -bsf:a aac_adtstoasc 1-2p.mp4 lead to 4 warnings Non-monotonous DTS in output stream. The resulting video seems to by OK in Avidemux or KMPlayer but not in Firefox - there are short-time problems (squares, noncontinuity) at the second part every couple od seconds (looks at I-frames). Any hint how to solve the problem (e.g., to repair the non-monotonous DTS)? Files can be found on http://webshare.cz/group/1vj5Be2GJ8/. ludolf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Applying filters for selected frames?
Hi all, is it possible to apply filters (-vf) in ffmpeg only for selected frames? E. g. to apply a filter for first ten minutes and not apply for the rest of movie? I'm now solving a problem of badly deinterlaced movies, which have some parts not deinterlaced while the rest is. I didn't find this possibility in man page so I assume it's not supported (yet). Is it possible to add the support for example in this form: ffmpeg ... -vf yadif=0-10:00,20:00-30:00 ... to get only first and third 10 minutes deinterlaced? Thank you in advance, Jan Sever ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames?
Hi Jan, On Sun, Dec 21, 2014 at 17:52:16 +0100, Jan Sever wrote: is it possible to apply filters (-vf) in ffmpeg only for selected frames? Yes, for certain filters. Check this: https://ffmpeg.org/ffmpeg-filters.html#Timeline-editing Whether a filter supports this doesn't seem to be stated in each filter's documentation, but I can see this note from yadif: $ ffmpeg -help filter=yadif [...] This filter has support for timeline through the 'enable' option. I'm now solving a problem of badly deinterlaced movies, which have some parts not deinterlaced while the rest is. I don't know much about deinterlacing, but I believe to have heard that some deinterlacing filters cope well with noninterlaced material. Someone else would need to comment on that. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames?
Moritz Barsnick barsnick at gmx.net writes: I don't know much about deinterlacing, but I believe to have heard that some deinterlacing filters cope well with noninterlaced material. You should not use a deinterlacing filter on non-interlaced material. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames?
On Sun, Dec 21, 2014 at 19:36:07 +, Carl Eugen Hoyos wrote: You should not use a deinterlacing filter on non-interlaced material. My bad, thanks for the clarification. I think I had this thread in the back of my mind: http://ffmpeg.org/pipermail/ffmpeg-user/2014-May/021412.html which introduces use of the idet filter to detect interlacing (type). Including your (Carl's) important disclaimer comment: to decide whether or mot to deinterlace a video, only the actual content is relevant: Progressive content is often encoded as interlaced and it is of course possible (although unlikely) that interlaced content is encoded using progressive frames. So Jan (the OP) will have to check what applies to his material. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames? [SOLVED]
On 12/21/2014 8:53 PM, Moritz Barsnick wrote: My bad, thanks for the clarification. You needn't apologize at all, your help is very notable. I think I had this thread in the back of my mind: http://ffmpeg.org/pipermail/ffmpeg-user/2014-May/021412.html which introduces use of the idet filter to detect interlacing (type). Wow, I didn't know about this: it solves my problem even much more better. So Jan (the OP) will have to check what applies to his material. Timeline-editing is exactly what I asked for, but you wrote me about even better solution (previous note). So in other words both solutions are excellent but the first is better ;-), marking as SOLVED. Many thanks to everybody, you solved the problem faster than very quickly. Jan Sever P.S. Sorry for keeping you waiting so long for my answer, I had to unmask newer version of ffmpeg first (in Gentoo ffmpeg-2 is still marked as unstable), recompile it and test both solutions (I didn't have a usable mixed record with both progressive and interlaced frames /big compression prevented from detection of interlacing/, so I made it from two). ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames? [SOLVED]
On 12/21/2014 11:16 PM, Nicholas Robbins wrote: That was my original thread. I've worked through various combination of interlaced, progressive, telecined, filmrate, etc. I've worked out various ffmpeg settings that work for most of these situations. Post if you have one that you are not happy with (for mixed progressive interlaced, I use -vf idet,yadif=mode=1:deint=interlaced,fps=fps=6/1001 and that has worked. You can remove the fps filter at the end if you don't care about producing CFR video. Thank you for this thread, I used the parameters (save fps) and it worked like a charm: I had been sad of mixed records from Czech Television but now I can see there's nothing Open Source would be unable of. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames? [SOLVED]
Nicholas Robbins nickrobbins-at-yahoo.com at ffmpeg.org writes: I've worked through various combination of interlaced, progressive, telecined, filmrate, etc. I've worked out various ffmpeg settings that work for most of these situations. -vf idet,yadif=mode=1:deint=interlaced,fps=fps=6/1001 If you use this filter chain on telecined content your video material gets permanently damaged. idet unfortunately cannot report telecined content yet. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Applying filters for selected frames? [SOLVED]
On Sunday, December 21, 2014 6:45 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Nicholas Robbins nickrobbins-at-yahoo.com at ffmpeg.org writes: I've worked through various combination of interlaced, progressive, telecined, filmrate, etc. I've worked out various ffmpeg settings that work for most of these situations. -vf idet,yadif=mode=1:deint=interlaced,fps=fps=6/1001 If you use this filter chain on telecined content your video material gets permanently damaged. idet unfortunately cannot report telecined content yet. Carl Eugen I'm sorry if I wasn't clear. That is what I use for mixed '30'fps progressive/interlaced. For mixed telecined/progressive material, I use: -vf pullup,dejudder,fps=fps=6/1001 I would rather do fps=24/1001, but 60fps is the fastest my player plays. For mixed telecined + 24fps I use -vf pullup,dejudder,fps=fps=24000/1001 for the rare mixed telecined + interlaced (usually dvd commentarys) -vf pullup,dejudder,idet,yadif=mode=1:deint=interlaced,fps=fps=6/1001 probably not ideal, but it mostly works, and this material is not super important. Nick ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user