Re: [Libav-user] Changing time_bases for decoder(mpeg2video) when sending packets with avcodec_send_packet().

2018-05-30 Thread Carl Eugen Hoyos
2018-05-30 10:11 GMT+02:00, Hristo Ivanov : > The idea is to avoid rescaling when not needed (trying > to be more efficient). The rescaling is free compared to any decoding (or even parsing). > Is it normal for objects to change their timebase when > packets/frames are sent It is unavoidable

[Libav-user] Changing time_bases for decoder(mpeg2video) when sending packets with avcodec_send_packet().

2018-05-30 Thread Hristo Ivanov
Hi, I am writing(C++) a simple transcoding program. At first I did not understand the concept of a timebase and how to work with it, until I found this stackoverflow response: https://stackoverflow.com/a/40278283/3022945 The response from the above link can be summarized as: - Copy the