[FFmpeg-user] the trim filter

MacFH - C E Macfarlane - News news at macfh.co.uk
Fri Jul 5 18:17:05 EEST 2024


As Paul has had over an hour to respond to my PM and has failed to do
so, I'll repeat it here ...

On 05/07/2024 12:54, Paul B Mahol wrote:
>
> On Fri, Jul 5, 2024 at 2:09 AM Mark Filipak <markfilipak.imdb at gmail.com>
> wrote:
>>
>> 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/90000
>>     start_pts=1048560
>>
>> So, there are 'silent' audio samples starting with the first video frame.
>> I'm dropping 20.062
>> seconds of video (i.e., 481 frames). I really don't know how I could
>> rewrite audio PTSes to make
>> that 20.062 seconds of audio to go away. I really think that's impossible.
>> They have to be dropped,
>> just as I am dropping the 481 video frames.
>>
>> Here's my trim commands for the first segment:
>>
>> trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360093
>>
>> Here's the interesting terminal output (slightly beautified):
>>
>> [Parsed_trim_1 @ 0000000000620040]
>>    Media type mismatch between the 'Parsed_trim_1' filter output pad 0
>> (video) and the
>> 'Parsed_atrim_2' filter input pad 0 (audio)
>>
>> [AVFilterGraph @ 000000000061c7c0] Error linking filters
>>
>> Failed to set value
>>    'split=2[i5][i6],
>>    [i5]trim=start_frame=481:end_frame=134047,
>> atrim=start_sample=962962:end_sample=268360092[o5],
>>    [i6]trim=start_frame=138745:end_frame=246719[o6],
>>    [o5][o6]concat=n=2'
>> for option 'filter_complex': Invalid argument
>> Error parsing global options: Invalid argument
>
> This is exact proof that your FFmpeg CLI skills are bellow flat absolute
> zero. I'm wasting my and everyone else time replying to your questions.

So, instead of just abusing him, explain to him and the rest of us where
he is going wrong.


More information about the ffmpeg-user mailing list