View Full Version : Lossless MKV to MP4
gigirex
13th May 2011, 18:31
Hello everybody!
I need a (simple) method to transform a mkv container format (video, audio tracks, subtitles, ecc) into a mp4 container format without loss of quality and eventually without become crazy.
Brazil2
13th May 2011, 18:56
ffmpeg -i input.mkv -vcodec copy -acodec copy -scodec copy output.mp4
However the MP4 container only allows Timed Text subtitle format AFAIK.
gigirex
15th May 2011, 14:31
Thanks, Brazil2, but this is exactly what I means when I say "get crazy!":
C:\>ffmpeg -i in.mkv -vcodec copy -acodec copy -scodec copy output.mp4
FFmpeg version git-c9e16a9-Sherpya, Copyright (c) 2000-2011 the FFmpeg developers
built on Feb 4 2011 07:04:01 with gcc 4.2.5 20090330 (prerelease) [Sherpya]
libavutil 50. 37. 0 / 50. 37. 0
libavcore 0. 16. 1 / 0. 16. 1
libavcodec 52.109. 0 / 52.109. 0
libavformat 52. 95. 0 / 52. 95. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 74. 0 / 1. 74. 0
libswscale 0. 12. 0 / 0. 12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 01a6c1d0] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (20000000/417083) -> 24.00 (24/1)
Input #0, matroska,webm, from 'in.mkv':
Duration: 00:40:03.77, start: 0.000000, bitrate: 1536 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 24 tbr, 1k tbn, 47.95 tbc
Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s [mp4 @ 03fa5260] track 1: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
Metadata:
encoder: Lavf52.95.0
Stream #0.0(eng): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2 -31, 10000k tbn, 23.98 tbc
Stream #0.1(eng): Audio: [0][0][0][0] / 0x0000, 48000 Hz, 5.1, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
Please, I need a SIMPLE method for transcoding losslessly!
J_Darnley
15th May 2011, 20:24
Simple, you can't put DTS in mp4
> [mp4 @ 03fa5260] track 1: could not find tag, codec not currently supported in container
cliffadamson83
15th August 2011, 02:48
Hi gigirex, I once have the same requirements as you and I call some customer service center for help, and most of them tell me that any conversion need to recode, so the quality loss is unavoidable anyway, you should also remember that if the output bit rate is smaller than your input bit rate, the quality would be bad. So a suitable bit rate is a must while converting. And I used ojosoft MKV to MP4 converter to settle my problem at last. You can freely set your bit rate, frame size and frequency range by an edit button. Maybe it is suitable for you, too. http://www.ojosoft.com/how-to-convert/mkv-to-mp4-converter.html
hello_hello
15th August 2011, 03:26
I need a (simple) method to transform a mkv container format (video, audio tracks, subtitles, ecc) into a mp4 container format without loss of quality and eventually without become crazy.
YAMB is a MP4Box GUI which will open MKVs and remux any supported streams into an MP4 without re-encoding.
The various supported input formats/streams are listed on this page:
http://yamb.unite-video.com/features.html
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.