Hi, the third time I noticed weird framepacing issues on my TV. There is a stutter each second. I looked into these files with MediaInfo and noticed that these movies have 2 different FPS tags. All other movies have only one tag/FPS info. Sorry for the language, I tried to change it to ENG but that didn't work. The first line says "Framerate" and the 2nd line says original "Framerate" So my PC plays this fine without jitter at 25 FPS and my TV plays it wrong with 23,976. I encoded the file with 25FPS and it worked fine on my TV.
1. Is there a way to remove this "tag" without re-encode with ffmpeg?
2. Does anyone know why there are 2 FPS infos/tags? As mentioned this is the third time I encountered this behaviour, so this is not a "corrupted file" case. The movies were encoded this way.
Thanks for any help
[Attachment 77861 - Click to enlarge]
+ Reply to Thread
Results 1 to 9 of 9
-
-
You can use clever Ffmpeg-GUI for this.
Load your video, click main, click various, click fix framerate, enter 25 in the fps field and execute the command.
No reencode is done, only streamcopy, so it's fast, with no quality loss. -
-
I have found a fix with MKVToolNix. (Give the FPS and check the box below) But knowing a way without GUI in ffmpeg would be also nice to know
[Attachment 77866 - Click to enlarge] -
Does anyone know why there are 2 FPS infos/tags?
I noticed similar when I converted the supplied vfr clip ( "Problem Section Exported to H.264" ) to cfr in this thread ...
https://forum.videohelp.com/threads/413536-The-H264-Codec-in-Premiere-Pro-CS6-Creates-...le-Frame-Rates
This is a screenshot of the mediainfo of the vfr file on the left and the cfr converted file on the right.
Is it possible the OP's file was originally VFR ?Last edited by JN-; 22nd Mar 2024 at 19:53.
-
a person on reddit told me
"Frame rate is the frame rate for playback by a player.
Real frame rate is the frame rate used during capture (should have been called "Capture frame rate"), so the one in the reality." -
For AVC:
Code:FOR %%G IN (*.mkv) DO mkvmerge -o "%%~nG 25fps.mkv" --default-duration 0:25p --fix-bitstream-timing-information 0:1 "%%G"
Code:FOR %%G IN (*.mkv) DO ffmpeg -i "%%G" -map 0 -c copy -bsf:v h264_metadata=tick_rate=50:fixed_frame_rate_flag=1 "%%~nG 25fps.mkv"
Code:FOR %%G IN (*.mkv) DO ffmpeg -i "%%G" -map 0 -c copy -bsf:v hevc_metadata=tick_rate=25:num_ticks_poc_diff_one=1 "%%~nG 25fps.mkv"
Last edited by Luke M; 23rd Mar 2024 at 13:06.
-
Note that in MTX this works only for AVC streams. HEVC isn't supported (yet?).
Other than fixing timestamps using clever FFmpegGUI, it's possible to do it directly with ffmpeg.exe cli.
As an example, to rewrite timestamps for "23.976" fps HEVC, do
Code:ffmpeg -i input.hevc -c copy -bsf:v hevc_metadata=tick_rate=(24000/1001):num_ticks_poc_diff_one=1 output.hevc
Similar Threads
-
ffmpeg change fps on remux?
By Selur in forum Newbie / General discussionsReplies: 1Last Post: 21st Sep 2023, 14:09 -
FFMPEG change wrong "interlaced" tag back to progressive w/o re-encode
By Gwar in forum Video ConversionReplies: 2Last Post: 11th Dec 2022, 16:39 -
Remux 29.97p fps to 23.976p fps WITHOUT re-encoding
By kalemvar1 in forum Video ConversionReplies: 6Last Post: 19th Jun 2022, 08:26 -
FFMpeg demux but keeping max bitrate tag
By kalemvar1 in forum Video ConversionReplies: 2Last Post: 12th Jun 2021, 09:58 -
In SSA/ASS, how to change positioning just by a few pixels? POS tag glitchy
By dimailer in forum SubtitleReplies: 0Last Post: 3rd May 2020, 11:44