FFmpeg MKV to MP4 HD
M2
M.2 at btinternet.com
Sun Feb 12 10:54:04 EST 2012
bat guano wrote:
>
>
> ----------------------------------------
>
>> Format/Info : Advanced Video Codec
>> Bit rate : 6 410 Kbps
>> Width : 1 920 pixels
>> Height : 1 040 pixels
>> Display aspect ratio : 16:9
>> Bit rate : 1 510 Kbps
>> Channel(s) : 6 channels
>> Channel positions : Front: L C R, Side: L R, LFE
>> Sampling rate : 48.0 KHz
>
>
> Hi
> BBC HD is 1280x720 h264 video with 2 channel aac audio.
> Your mkv file is 1920x1040 h264 video with 6 channel aac audio.
>
> Do a 60 second test run using "-t 60" with FFmpeg.
> Try these settings for a first attempt:-
> ffmpeg -i filename.mkv -t 60 -vf "scale=1280:trunc(ow/a/2)*2" -vcodec libx264 -acodec libfaac -aq 120 -ac 2 filename.mp4
>
On Windows:
C:\Program Files\get_iplayer\ffmpeg\bin>ffmpeg -i o:\MKV\file.mkv -t 60
-vf "scale=1280:trunc(ow/a/2)*2" -vcodec libx264 -acodec libfaac -aq 120
-ac 2 filename.mp4
FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 18 2011 04:07:05 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm
--enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger
--enable-libopencore_amrwb --enable-libopencore_a
mrnb --enable-libvpx --disable-decoder=libvpx --arch=x86
--enable-runtime-cpudetect --enable-libxvid --enable-libx264
--enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm'
--target-os=mingw32 --enable-avisynth --enable-w32
threads --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc'
--enable-memalign-hack
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
[matroska,webm @ 019dc260] max_analyze_duration reached
[matroska,webm @ 019dc260] Estimating duration from bitrate, this may be
inaccurate
Input #0, matroska,webm, from 'o:\MKV\file.mkv':
Duration: 01:39:14.51, start: 0.000000, bitrate: 1536 kb/s
Stream #0.0: Video: h264, yuv420p, 1920x1040 [PAR 1:1 DAR 24:13],
24 fps, 24 tbr, 1k tbn, 48 tbc
Stream #0.1(eng): Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
Metadata:
title : DTS
Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
Unknown encoder 'libfaac'
C:\Program Files\get_iplayer\ffmpeg\bin>
and on Debian:
m2 at D420:~$ ffmpeg -i /home/m2/MKVtoMP4/file.mkv -t 60 -vf
"scale=1280:trunc(ow/a/2)*2" -vcodec libx264 -acodec libfaac -aq 120 -ac
2 filename.mp4
FFmpeg version SVN-r0.5.6-4:0.5.6-3, Copyright (c) 2000-2009 Fabrice
Bellard, et al.
configuration: --extra-version=4:0.5.6-3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libdirac --enable-libgsm --enable-libopenjpeg
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping
--disable-vhook --enable-runtime-cpudetect --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libfaad
--enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Dec 31 2011 15:16:11, gcc: 4.4.5
Seems stream 0 codec frame rate differs from container frame rate: 47.95
(48000/1001) -> 23.98 (24000/1001)
Input #0, matroska, from '/home/m2/MKVtoMP4/file.mkv':
Duration: 01:57:11.10, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264, yuv420p, 720x406, PAR 255:254 DAR
45900:25781, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, s16
ffmpeg: unrecognized option '-vf'
m2 at D420:~$
More information about the get_iplayer
mailing list