I have a bunch of MP4s I need to move to MKV containers. I don't want to reencode the video or audio streams. MakeMKV would work if it supported MP4 as an input file but it doesn't. Any recommendations on what to use?
+ Reply to Thread
Results 1 to 30 of 36
-
-
Try MKvmergegui (included in Mkvtoolnix ). MakeMKV wont work.
-
Perhaps theese:
Yamb (video raw format), foobar2000 (AAC to WAV), eac3to (WAV to AC-3), mkvmerge GUI -
I guess that is still not going to work... the audio is all out of sync now. Also looks like avidemux (which is outputting to the correct framerate at least) is losing sync on audio.
This is a sample input file:
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 976 MiB
Duration : 1h 42mn
Overall bit rate : 1 334 Kbps
Encoded date : UTC 2010-01-26 01:09:25
Tagged date : UTC 2010-01-26 01:58:04
Writing application : HandBrake 0.9.4 2009112300
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 42mn
Bit rate mode : Variable
Bit rate : 1 169 Kbps
Width : 720 pixels
Height : 464 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 14.985 fps
Maximum frame rate : 29.970 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.146
Stream size : 855 MiB (88%)
Writing library : x264 core 79
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=2 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=0 / wpredp=2 / keyint=240 / keyint_min=24 / scenecut=40 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2010-01-26 01:09:25
Tagged date : UTC 2010-01-26 01:58:04
Color primaries : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1h 42mn
Bit rate mode : Variable
Bit rate : 160 Kbps
Maximum bit rate : 245 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Stream size : 117 MiB (12%)
Language : English
Encoded date : UTC 2010-01-26 01:09:25
Tagged date : UTC 2010-01-26 01:58:04
Text
ID : 3
Format : Apple text
Codec ID : text
Duration : 1h 42mn
Bit rate mode : Variable
Bit rate : 1 bps
Stream size : 759 Bytes (0%)
Encoded date : UTC 2010-01-26 01:09:25
Tagged date : UTC 2010-01-26 01:58:04Last edited by zdvd; 2nd Mar 2010 at 11:12.
-
It's VFR = variable frame rate
You need to mux with timecodes, or it will never be in sync -
-
-
-
Open it an anything that can open AviSynth scripts -- VirtualDub, a media player, etc. It will generate a timecode file -- "blah.txt".
-
How exactly would I go about using the ffmpegsource plugin? The website gives me an archive file with a dll and an executable. What do I do with these? How do I install/call on them?
-
Have you already installed Avisynth? If not, do that first.
Then copy the ffms2.dll into the Avisynth plugins folder (default location C:\Program Files\Avisynth 2.5\Plugins).
You don't need the executable (ffindex.exe), but there should also be a file ffms2.avsi, which should be copied into the plugins folder.
You need to create a script - a text file containing the line
ffmpegsource2("myvid.mp4", timecodes="blah.txt")
(changing "myvid" to the name of your file)
Rename this file with a .avs extension and you're good to go - as jagabo says, just open it in any application that can process Avisynth scripts. -
Ok, I extracted a timecode from an mp4 file with VFR, muxed it in with mkvmerge, and it now seems to show up with a constant frame rate in MediaInfo. Thing is though, when I open the new mkv file with Avidemux, it seems unable to decode it (MPC plays it fine). I just get a solid green frame and I can't move the slider.
-
I'd give Freemake a shot...
It's not important the problem be solved, only that the blame for the mistake is assigned correctly -
Last edited by wuwearin; 26th Jun 2013 at 20:05.
-
Same here, this worked twice.. Any further input (apologies for being seriously lazy)
-
It works for some mp4 but not for others. Can't see the error message when it fails since the cmd window closes too fast
-
Put "pause" on the next line. That will keep the window open until you press a key.
Similar Threads
-
MkvТоMp4 v0.224 - rapid tool for repack Mkv to Mp4
By oreons in forum Video ConversionReplies: 808Last Post: 7th Mar 2022, 01:43 -
Looking for ts to mp4 conversion tool
By joel5632 in forum Video ConversionReplies: 15Last Post: 3rd Dec 2015, 04:49 -
MKV to MP4 without conversion
By swiego in forum Video ConversionReplies: 9Last Post: 7th Dec 2014, 11:54 -
MKV guide, Play MKV, MKV to AVI, MKV to DVD, MKV to MP4, MKV to Blu-ray
By Baldrick in forum Newbie / General discussionsReplies: 55Last Post: 29th Jun 2012, 11:19 -
AppleTV - Conversion of MKV to HD MP4
By Austehn in forum Video ConversionReplies: 7Last Post: 22nd Oct 2008, 19:28