views:

133

answers:

0

Hi all,

I have the following situation: I have a video file that I get from a live stream. Then I want to convert the file to a different bitrate using ffmpeg, but unfortunately ffmpeg resets the start time of the video, which breaks my application, since it needs to know the start time of each video (and these of course should be different).

One example: I have mymovie_900kbs.ts with the following data:

Duration: 00:00:10.34, start: 70126.841211, bitrate: 945 kb/s

then I do:

ffmpeg -i mymovie_900kbs.ts -b 100000 mymovie_100kbs.ts

to change the bitrate and after it completes I get:

Duration: 00:00:10.32, start: 0.700000, bitrate: 460 kb/s

and the major important point is that the start time got reset to 0.700000.

If you know any solution on how to make ffmpeg to keep the start time then your help is more than welcome! On the other end, I'm not really stucking to ffmpeg, any other solution is welcome which changes the bitrate but does not change the start time.

Thank you.