Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th February 2018, 01:26   #1  |  Link
leonccyiu
Registered User
 
Join Date: Feb 2015
Posts: 45
Changing incorrect frame rate flag without re-encoding

Hello

I recently purchased some videos online which have been encoded incorrectly with a strange frame rate of 24.95fps or 24.99fps instead of 25fps and is causing presentation glitches on playback.

When I use handbrake and set the frame rate to constant 25fps with audio passthrough, the newly encoded video is free of presentation glitches, but becomes a second generation encode which is lossy. I have the options of re-encoding the 4k videos as 10bit h265, using x264 or intel qsv.

Is there a simple way I can get the videos to playback at 25fps or alter the flag without having the re-encode?

Thanks
leonccyiu is offline   Reply With Quote
Old 27th February 2018, 10:25   #2  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
What are they encoded into? If you can re-encode them, at least it isn't a proprietary DRM container.

If it's AVI, then changing the framerate is as simple as changing a couple of bytes in the header, but that wouldn't cause glitches, just a steady drift between audio and video. VirtualDub is your best bet for AVI. If it's some form of MP4 (/MOV) or MKV, you can use their respective tools to re-stream them with a new default frame duration, with a tool like MP4Box GUI for MP4 (be sure to add the latest MP4Box) or MKVToolNix for MKV. You might not even need to change the framerate, sometimes just rewriting them with a proper tool fixes glitches.

These tools just pull the encoded frames out of whatever they're in now and put them in a new file, so they don't cause any kind of generational loss.
foxyshadis is offline   Reply With Quote
Old 1st March 2018, 04:36   #3  |  Link
leonccyiu
Registered User
 
Join Date: Feb 2015
Posts: 45
Quote:
Originally Posted by foxyshadis View Post
What are they encoded into? If you can re-encode them, at least it isn't a proprietary DRM container.

If it's AVI, then changing the framerate is as simple as changing a couple of bytes in the header, but that wouldn't cause glitches, just a steady drift between audio and video. VirtualDub is your best bet for AVI. If it's some form of MP4 (/MOV) or MKV, you can use their respective tools to re-stream them with a new default frame duration, with a tool like MP4Box GUI for MP4 (be sure to add the latest MP4Box) or MKVToolNix for MKV. You might not even need to change the framerate, sometimes just rewriting them with a proper tool fixes glitches.

These tools just pull the encoded frames out of whatever they're in now and put them in a new file, so they don't cause any kind of generational loss.
Thank you very much for your reply, I used the MP4Box GUI to separate the video and audio streams, and changed the frame rate to 25fps, before the video and audio length didn't match, now they do and they play back without glitches and without re-encoding.
leonccyiu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.