View Single Post
Old 7th November 2017, 22:55   #11  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by doomleox999 View Post
Why does this happen? Is the problem is the source?
The source have two problems:

- That second absurd timecode.
- The wrong Frame rate : 23.810 FPS, witouth sense.

with a standard framerate 23.976 the movie play with a little delay (41 ms) and can be unnoticeable.

Quote:
Is there any way to prevent this when I encode with MeGUI or do I have to do all these steps everytime I encounter this issue?
That process (extract and insert timecodes) is only recommended for Variable FrameRate sources.

If MediaInfo show: Frame rate mode : Constant
we can't expect troubles.

But when encode I always use in avs script a Assumefps(24000,1001) or Assumefps(24) or Assumefps(25) or Assumefps(30000,1001), never let non-standard fps because most the times are wrong, like here.

Quote:
Finally, is it possible to batch this? (meaning to extract timecodes from multiple original files to multiple encoded files and remux multiple "SYNC.mp4" files)
If the name or mkv's and mp4's are the same:

movie_01.mkv, movie_02.mkv, ...
movie_01.mp4, movie_02.mp4, ...

You can use:

Quote:
rem modify path to mkvextract
FOR %%I IN (*.mkv) DO "D:\Programa\megui\tools\mkvmerge\mkvextract.exe" timecodes_v2 "%%I" 0:"%%~nI.txt"
FOR %%I IN (*.mkv) DO mp4fpsmod -t "%%~nI.txt" -x -c ""%%~nI.mp4" -o ""%%~nI_SYNC.mp4"
pause
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote