31.08.2021, 15:15
It works, but only if done step by step: first - a simple remux; command I used:
This will create a 50 FPS file, with fixed timestamps.
Then, a re-encode:
This will output a constant 50 FPS file, deinterlaced, with audio in sync with video.
I'm going to try and find a command that tells FFmpeg to do both of these things in one go.
ffmpeg -fflags +genpts -i "d:\original.ts" -c copy "d:\original.mp4"
This will create a 50 FPS file, with fixed timestamps.
Then, a re-encode:
ffmpeg -c:v h264_cuvid -deint 2 -i "d:\original.mp4" -c:v libx264 -profile:v high -preset veryfast -crf 18 -x264opts "keyint=500" -r 50 -c:a copy "d:\original1.mp4"
This will output a constant 50 FPS file, deinterlaced, with audio in sync with video.
I'm going to try and find a command that tells FFmpeg to do both of these things in one go.