FFmpeg MKV to MP4 HD

M2 M.2 at btinternet.com
Sun Feb 12 14:15:31 EST 2012


bat guano wrote:
>
>
> ----------------------------------------
>
>> 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
>> Unknown encoder 'libfaac'
>>
>> C:\Program Files\get_iplayer\ffmpeg\bin>
>>
> This version of FFmpeg has been compiled without "libfaac" enabled.
>
> So (for now) use FFmpeg's own "aac" codec instead of "libfaac".
> Using your Windows get_iplayer version of FFmpeg....
> Try again with this command:-
> ffmpeg -i filename.mkv -t 60 -vf "scale=1280:trunc(ow/a/2)*2" -vcodec libx264 -acodec aac -ab 128k -ac 2 -strict experimental filename.mp4
>   		 	   		
Hi,

that works only with latest ffmpeg-git-fd0b8d5-win32-static :) Thank you 
very much.
Few questions, looking at the recording from the device (Nokia N8):

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 42.7 MiB
Duration                                 : 37s 479ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 9 567 Kbps
Encoded date                             : UTC 2012-02-05 15:43:05
Tagged date                              : UTC 2012-02-05 15:43:05

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline at L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=25
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 37s 479ms
Bit rate mode                            : Constant
Bit rate                                 : 9 432 Kbps
Nominal bit rate                         : 12.0 Mbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 25.000 fps
Original frame rate                      : 12.500 fps
Minimum frame rate                       : 24.814 fps
Maximum frame rate                       : 25.189 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.409
Stream size                              : 42.1 MiB (99%)
Encoded date                             : UTC 2012-02-05 15:43:05
Tagged date                              : UTC 2012-02-05 15:43:05

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 37s 269ms
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 583 KiB (1%)
Encoded date                             : UTC 2012-02-05 15:43:05
Tagged date                              : UTC 2012-02-05 15:43:05

is there any way to make Video:
1280x720,
Format settings CABAC = No,
add the subtitles and then rest of the settings so that the final muxed 
file is up to or not bigger than 4GB?

Here is the muxed testfile:
Complete name                            : C:\Program 
Files\get_iplayer\ffmpeg-git-fd0b8d5-win32-static\bin\filename.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 7.09 MiB
Duration                                 : 1mn 0s
Overall bit rate mode                    : Variable
Overall bit rate                         : 991 Kbps
Writing application                      : Lavf54.0.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1mn 0s
Bit rate                                 : 860 Kbps
Width                                    : 1 280 pixels
Height                                   : 692 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.040
Stream size                              : 6.15 MiB (87%)
Writing library                          : x264 core 120 r2146 bcd41db
Encoding settings                        : cabac=1 / ref=3 / 
deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / 
psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 
8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / 
threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / 
bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / 
b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / 
keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / 
rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / 
qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1mn 0s
Bit rate mode                            : Variable
Bit rate                                 : 126 Kbps
Maximum bit rate                         : 128 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 921 KiB (13%)
Language                                 : English










More information about the get_iplayer mailing list