0

I try to copy video from in.mp4 to out.mp4 without reincoding. I'm using the code example suggested by pogorskiy here. The copy process success, but the video is played very fast. I checked the fps of both files with MediaInfo. The fps of "in.mp4" is 25 fps and "out.mp4" it 533fps. I don't understand what changing the fps to 533 if I construct outStream from inStream?

I hope I explained myself correctly.

Community
  • 1
  • 1
theateist
  • 13,879
  • 17
  • 69
  • 109

1 Answers1

0

The problem was in PTS and DTS values. They must be set correctly.

The detailed answer is here

Community
  • 1
  • 1
theateist
  • 13,879
  • 17
  • 69
  • 109