Re: [FFmpeg-user] IDR frames v non-IDR frames

2024-07-04 Thread Mark Filipak
On 04/07/2024 23.07, Srikanth Kotagiri wrote: On Fri, Jul 5, 2024 at 4:49 AM Mark Filipak wrote: Has anyone figured out how to discern IDR frames v non-IDR frames in either FFmpeg or FFprobe? ffprobe -select_streams v -show_frames -print_format json sample.mp4 2>/dev/null | jq '.frames[] |

Re: [FFmpeg-user] IDR frames v non-IDR frames

2024-07-04 Thread Srikanth Kotagiri
On Fri, Jul 5, 2024 at 4:49 AM Mark Filipak wrote: > > Has anyone figured out how to discern IDR frames v non-IDR frames in either > FFmpeg or FFprobe? > > --Mark. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/li

[FFmpeg-user] IDR frames v non-IDR frames

2024-07-04 Thread Mark Filipak
Has anyone figured out how to discern IDR frames v non-IDR frames in either FFmpeg or FFprobe? --Mark. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpe

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Mark Filipak
On 04/07/2024 17.12, Paul B Mahol wrote: Its in documentation: asetpts=N/SR/TB, assuming everything starts from 0, so add it after each atrim. For both video & audio, time_base=1/9 start_pts=1048560 So, there are 'silent' audio samples starting with the first video frame. I'm dropping

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Paul B Mahol
Its in documentation: asetpts=N/SR/TB, assuming everything starts from 0, so add it after each atrim. On Thu, Jul 4, 2024 at 11:09 PM Mark Filipak wrote: > I meant the "broken non-IDR frame". > > On 04/07/2024 17.04, Mark Filipak wrote: > > Paul, if I find a way to change only the audio frame's

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Paul B Mahol
On Thu, Jul 4, 2024 at 10:44 PM Mark Filipak wrote: > On 04/07/2024 14.22, Paul B Mahol wrote: > > On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak > > wrote: > > > >> Is there some secret to the trim filter? > >> > >> --filter_complex "split=2[i5][i6], > >>[i5]trim=start_frame=481:end_frame=1340

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Mark Filipak
I meant the "broken non-IDR frame". On 04/07/2024 17.04, Mark Filipak wrote: Paul, if I find a way to change only the audio frame's PTSes, what would I change them to? Don't I want to simply drop them, instead? _But_ if I use -noise=drop, I'll drop the video packets, too, and the video decoder

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Mark Filipak
Paul, if I find a way to change only the audio frame's PTSes, what would I change them to? Don't I want to simply drop them, instead? _But_ if I use -noise=drop, I'll drop the video packets, too, and the video decoder will malfunction because of the broken IDR frame. This is not a simple probl

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Mark Filipak
On 04/07/2024 14.22, Paul B Mahol wrote: On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak wrote: Is there some secret to the trim filter? --filter_complex "split=2[i5][i6], [i5]trim=start_frame=481:end_frame=134047[o5], [i6]trim=start_frame=138745:end_frame=246719[o6], [o5][o6]concat=n=2"

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Paul B Mahol
On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak wrote: > Is there some secret to the trim filter? > > --filter_complex "split=2[i5][i6], > [i5]trim=start_frame=481:end_frame=134047[o5], > [i6]trim=start_frame=138745:end_frame=246719[o6], > [o5][o6]concat=n=2" > > I get "dup=481", instead, and w

[FFmpeg-user] the trim filter

2024-07-04 Thread Mark Filipak
Is there some secret to the trim filter? --filter_complex "split=2[i5][i6], [i5]trim=start_frame=481:end_frame=134047[o5], [i6]trim=start_frame=138745:end_frame=246719[o6], [o5][o6]concat=n=2" I get "dup=481", instead, and wind up with 20.061708[3..] seconds of black frames preceding the seg

[FFmpeg-user] how to handle trun coming before tfdt in mp4 box

2024-07-04 Thread Sheraz Ali Shah via ffmpeg-user
Hi @ffmpeg-user@ffmpeg.org Does anyone know how to handle trun coming before tfdt in mp4 box as observed in this mpd file https://dash.akamaized.net/akamai/test/caption_test/ElephantsDream/elephants_dream_480p_heaac5_1_https.mpd Thanks and Regards Sheraz Ali Shah C