This is with .mpeg2 videos ripped as .mkv. If any editing is done do it all in .mkv first. After which those .mkv segments are remuxed to .mpg using avidemux. If no editing is done just remux the .mkv video to .mpg. In avidemux use audio and video copy. Use mpeg-ps muxer ff (mpg container) in output format (containers).
Mpeg2 is the codec. .Mpg and .Mkv are the containers. They contain the mpeg2 video.
+ Reply to Thread
Results 1 to 4 of 4
-
-
And so... at what point does it get out of sync? You mean the audio stream relative to the video stream?
(Tip: using question marks would help indicating where questions are.)
What is the purpose of ripping as MKV then converting to MPG if the end goal is to transcode to MP4 / H.264? Is there anything wrong with transcoding directly from the MKV? If the source is a standard (video) DVD, the time base of the original VOB files may be more accurate than that of converted MPG files, although I'm not sure about that at all. I would suppose that the MKV container can store whatever metadate from the original VOB files is necessary to preserve audio/video synchronization, but likewise, I'm not sure about that at all. (I'm not sure about much of anything these days.)
I haven't used Avidemux in a long time, in my experience it was streamlined and convenient but quite quirky, and it had a track record of evolving backward, as in, newer versions often broke features that formerly worked fine. But it may have improved since then, I couldn't say.
Nowadays I do most encodes with a simple ffmpeg script, which I find more simple and more reliable than using any fancy GUI program. It's more austere initially, but once you have a script that produces a satisfying output, you can reuse it with zero effort and expect the same quality, whereas with GUI program has to be configured each time, with the risk of making mistakes or forgetting something.
Anyway, at least it won't be yet another orphaned thread with zero reply... -
How does Staxrip open MKVs containing mpeg2?
It's just that some source filters for Avisynth (and possibly VapourSynth) operate in variable frame rate mode by default, so when they decode mpeg2 video that's a mixture of 29.97fps and 23.976fps, they decode it at the average frame rate, which messes with the audio sync and the speed of the video playback. For mpeg2 video, StaxRip probably uses a different source filter. One that decodes in constant frame rate mode by default. Just a guess....
If all you need to do is remux an MKV containing mpeg2 video, try TSMuxer. It can open MKVs and will probably be easier, although the output with be a TS file, however if it's a source filter issue, StaxRip should use the same source filter for TS files that is does for mpeg2.Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
The post was how I was able to keep mpeg videos in sync by remuxing from .mkv to .mpg with avidemux and then converting the .mpgs to avc x264. I used staxrip. I'm certainly not the be all end all but the procedure works. The videos were originally converted from vhs tapes to dvd (interlaced 29.97) back in the 2000's. When ripping using makemkv they are .mkv. These .mkvs are in sync but when converted to x264 they are out of sync. Somehow using avidemux as an intermediary fixes the sync issue somehow. Even with videos (tapes) that were not to the best shape such as sound cutting out or getting static here and there on the videos it stayed in sync.
Similar Threads
-
Audio Sync Issue after Deinterlacing and Converting to MP4
By Bermuda1 in forum Video ConversionReplies: 51Last Post: 2nd Oct 2024, 07:47 -
Converting old MPEG2 videos to HEVC - how much file space could I save?
By Gameshow Host in forum Video ConversionReplies: 17Last Post: 18th Aug 2024, 13:23 -
Tweaking best settings for NVENC h.264 with Staxrip
By salvo00786 in forum Video ConversionReplies: 23Last Post: 8th Mar 2023, 04:16 -
MPEG-4 AVC H.264 (Intel Quick Sync) not for AVI but only for MP4 videos?
By pxstein in forum Video ConversionReplies: 1Last Post: 24th Jan 2022, 01:19 -
Compress Mpeg2 to H.264 MP4
By Ferggue in forum Capturing and VCRReplies: 2Last Post: 10th Dec 2021, 04:46



Quote