![]() ![]() If you do this step, the new timescale should be equal or an integral multiple of the original framerate.Ģb. ![]() ffmpeg -i in.mp4 -c copy -an -video_track_timescale 30 in-v30.mp4 (Optional) Change the timescale to something convenient, to make calculations simpler. You want to note the source properties, especially resolution and tbn.Ģa. This would become a 45 fps stream if we could change the timescale to 23040 without affecting the PTS values.Įssentially, that's what the method below does.ġ. That means frame 0 has PTS 0 and frame 30 has PTS 15360. Let's say you have a 30 fps stream with a timescale of 15360 (typical of FFmpeg output). ![]() It relies on the concat demuxer not rescaling the PTS of inputs after the first file, but simply applying a fixed offset. Here's the method using current versions of FFmpeg. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |