Re: [FFmpeg-user] Encode to timestamp on ts with "holes"

2019-03-06 Thread Carl Eugen Hoyos
2019-03-06 14:31 GMT+01:00, Gabriele Greco : > What I want to achieve is that if: > > start_ts = 00:01:00 > end_ts = 00:05:00 > > and input.ts has one or more "holes" for a total of 2 minutes > > my output video should last 2 minutes and not 4. Depending on your definition of holes, this is not

Re: [FFmpeg-user] Encode to timestamp on ts with "holes"

2019-03-06 Thread Gabriele Greco
2019-03-05 12:31 GMT+01:00, Gabriele Greco : > so after reading ffmpeg documentation and various stackoverflow questions I > decided that copyts was my friend to achieve my result and I tried: > > ffmpeg -ss start_ts -copyts -i input.ts -to end_ts out.mp4 > ffmpeg -ss start_ts -i input.ts -copyts

Re: [FFmpeg-user] Encode to timestamp on ts with "holes"

2019-03-05 Thread Carl Eugen Hoyos
2019-03-05 12:31 GMT+01:00, Gabriele Greco : > Actually what I do basically is: > > ffmpeg -ss start_ts -i input.ts -to (end_ts - start_ts) out.mp4 > > this can work only if the input file has no holes... > > so after reading ffmpeg documentation and various stackoverflow questions I > decided

[FFmpeg-user] Encode to timestamp on ts with "holes"

2019-03-05 Thread Gabriele Greco
Hi guys, I'm trying to encode part of a video in a particular source timestamp range, from input .ts files got from satellite inputs that can have "holes" (due to signal issues). Actually what I do basically is: ffmpeg -ss start_ts -i input.ts -to (end_ts - start_ts) out.mp4 this can work only