Nuno,

1. When you are muxing a stream you already have some options -- either the
pts is correct for packets or timestamp is being sent in some way, thus the
formula.
2. The crash is because you did not set DTS properly, assign it the same
value))
3. DTS already contains something and more to say, you are using the
muxing.c example. What makes you think fps is going to produce the
wrong playing speed? Have you tested the output? Maybe everything works
without pts changing? (Asking 'coz you are very likely to modify the
example for the purpose)
4. For the file to be correct you are very likely supposed to shift PTS so
that it starts from zero. Don't remember if you extract it or set the
start. Experiment with AVStream->start_time and pts/dts so that the
resulting file plays and navigates (!! check it) correctly in VLC or MPC HC.

Regards, Alex
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to