Hot answers tagged

1

Found out that ffmpeg works on the text based subtitle file just as well: $ cat subtitles.srt 1 00:00:06,000 --> 00:00:20,000 This is demo subtitle 1 2 00:00:20,000 --> 00:00:40,000 This is demo subtitle 2 $ ffmpeg -i subtitles.srt -ss 5 -t 60 -y cut.srt $ cat cut.srt 1 00:00:01,000 --> 00:00:15,000 This is demo subtitle 1 2 00:00:15,000 --> ...


1

ffmpeg parameters -ss specifies the start time i.e. the 30th second of stream as 00:00:30 -t specifies the duration i.e. 10 second stream as 10 -to specifies the end time i.e. the 90th second of stream as 00:01:30 Note: Only -t will take effect if both -t and -to parameters are used.


1

ffmpeg overwrites service_name and service_provider with default values: Service01 and FFmpeg. You could overwrite it with the original metadata but first you have to retrieve it: i="input.ts" # get service_name with ffprobe and store it in a variable svc_name=$(ffprobe -hide_banner -v error -show_entries program_tags=service_name -of default=nw=1:...


1

Ok, here's an answer that has worked well for me (as well as others: see link to helpful post below). As far as my knowledge goes, there are two main things that need to match up to make the videos reasonably playable after concatenation: The video timebase The audio sampling frequency Before you can match those though, you need to know where your videos ...


Only top voted, non community-wiki answers of a minimum length are eligible