Occasionally I run across video which is really 24p, but is encoded as 30p. As a result it's very juddery because players treat it as 30p video. Every 4th frame is repeated, which is very noticeable (much more than common 24p->60p judder).
My solution is to use ffmpeg:
ffmpeg -i in.mp4 -vf decimate -acodec copy out.mp4
This works, but it's a transcode operation, which means it's slow and loses quality. It would be nice if there were a way to surgically remove the repeated frames (which aren't even "physical" frames, just a repeat flag! [edit: incorrect]). But I haven't found anything that can do that.
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by Luke M; 26th Apr 2017 at 19:40. Reason: -r parameter is unnecessary
-
They sound like Handbrake encodes where someone has forced a constant 29.940fps output frame rate.
I'd be surprised if they're not actual frames. and I know of no other way to remove them aside from re-encoding if they are, but if there's repeated frames resulting in a variable frame rate (effectively) you could try opening the source with MKVToolNixGUI and specifying a 24p frame rate when remuxing. All frames in the output file should then display for the same duration at 24fps, but I suspect the repeated frames are real frames and it won't work. -
How did you determine this? Sample?
Theoretically it may be possible to remove such frames without loss of quality if one of the following conditions is met:
1.) no inter-frame dependencies blocking it (e.g. intra-only or repeat flags)
2.) you encode to a lossless format (file size will multiply if the source isn't lossless itself, though)
Most of the time it is not possible. We had a similar question recently whose OP had intra-frame only encoding yet it proofed difficult. -
My mistake - there are no frames encoded as repeated. 2% of frames are type I. The rest are type P.
Similar Threads
-
Printing to HDV tape as 1080 24p / 30p
By dellsam34 in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 20Last Post: 8th Feb 2017, 15:27 -
Getting rid of duplicate frames in a 30p video sourced from 24p
By alexpigment in forum Video ConversionReplies: 5Last Post: 22nd Feb 2016, 10:04 -
Need Some Help Fixing A Poorly Encoded MPEG TS File
By Robo4900 in forum Software PlayingReplies: 2Last Post: 5th Nov 2015, 09:31 -
Convert 30p to 24p
By FMDFILM in forum Video ConversionReplies: 3Last Post: 18th Sep 2014, 10:38 -
Provide really nice 24p and 30i video.
By summerfieldfilms in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 2Last Post: 17th Aug 2014, 22:57