[MEncoder-users] Repacking Without Transcoding

Grozdan neutrino8 at gmail.com
Mon Nov 3 22:39:55 CET 2014


On Mon, Nov 3, 2014 at 10:16 PM, Gordan Bobic <gordan at bobich.net> wrote:
> Hi,
>
> I'm trying to convert my video collection so it is suitable for use with all
> of my devices via Plex without realtime transcoding, which limits the format
> I can use to MP4 containers with H264 video and AAC audio.
>
> Unfortunately, the DVDs I've been extracting over time (as the shelf space
> around the TV has been running out) are mostly in MKV containers with H264
> video, which my Chromecasts won't play natively.
>
> What I would ideally like to do is extract the H264 video data and repack it
> into an MP4 container without transcoding (I don't want to lose any video
> quality and transcoding is CPU expensive while just re-containering should
> be much cheaper).
>
> Is there a way to do that?
>
> Also, in many cases, although the video streams I have been encoding are
> H264, I have mostly been using MP3 audio rather than AAC, so I will need to
> transcode the audio. What is the best way of doing that while minimizing the
> risk of upsetting A/V synchronisation?
>
> Many thanks in advance.
>
> Gordan

Use mkvextract to dump the video and/or audio. Then encode the audio
and mux the video with the encoded audio with MP4Box.

you can use mkvmerge -i file.mkv to get the track IDs which you'll
need to provide them to mkvextract. Most likely ID 0 is you video so a
cmd for that will look like

mkvextract tracks file.mkv 0:video.h264

it will dump the video to a file called video.h264

> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users



-- 
Yours truly


More information about the MEncoder-users mailing list