Now that I have this up and running in docker (thanks @bjønness) is this a straight remux of the container or does it tweak other things as well? What I don’t want it lose quality. I tested it out on a 480p avi file and it went from 1.3GB to 750MB, which is troublesome to me.
`------------------------Starting container ------------------------
[Info] Script already downloaded, skipping download. If you want to redownload the script, delete convert2mkv.sh in you appdata
[Info] Starting script
Arthur Christmas (2011) - 480p.avi
codec_name=mpeg4
codec_name=ac3
ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright © 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, avi, from ‘Arthur Christmas (2011) - 480p.avi’:
Metadata:
title : VIDEO_DVD.Title1.DVDRip
album : VIDEO_DVD
encoder : Lavf53.21.0
Duration: 01:33:34.04, start: 0.000000, bitrate: 2011 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 650x348 [SAR 1:1 DAR 325:174], 1615 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 384 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
[libx264 @ 0x6a1620] -qscale is ignored, -crf is recommended.
[libx264 @ 0x6a1620] using SAR=1/1
[libx264 @ 0x6a1620] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x6a1620] profile High, level 3.1
[libx264 @ 0x6a1620] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to ‘Arthur Christmas (2011) - 480p.mkv’:
Metadata:
title : VIDEO_DVD.Title1.DVDRip
album : VIDEO_DVD
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 650x348 [SAR 1:1 DAR 325:174], q=-1–1, 25 fps, 1k tbn, 25 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 44100 Hz, 5.1(side), fltp, 128 kb/s
Metadata:
encoder : Lavc56.60.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[mpeg4 @ 0xcc80e0] Video uses a non-standard and wasteful way to store B-frames (‘packed B-frames’). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.
video:701777kB audio:87755kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.339300%
[libx264 @ 0x6a1620] frame I:1506 Avg QP:14.87 size: 34784
[libx264 @ 0x6a1620] frame P:48977 Avg QP:19.24 size: 9295
[libx264 @ 0x6a1620] frame B:89866 Avg QP:24.90 size: 2348
[libx264 @ 0x6a1620] consecutive B-frames: 8.4% 15.2% 29.5% 25.0% 8.3% 12.1% 0.5% 0.3% 0.6%
[libx264 @ 0x6a1620] mb I I16…4: 8.5% 76.0% 15.5%
[libx264 @ 0x6a1620] mb P I16…4: 2.7% 12.9% 1.6% P16…4: 30.3% 14.8% 15.5% 0.7% 0.2% skip:21.3%
[libx264 @ 0x6a1620] mb B I16…4: 0.4% 2.0% 0.2% B16…8: 36.3% 7.5% 2.0% direct: 2.4% skip:49.1% L0:40.8% L1:40.7% BI:18.5%
[libx264 @ 0x6a1620] 8x8 transform intra:75.2% inter:70.5%
[libx264 @ 0x6a1620] direct mvs spatial:95.1% temporal:4.9%
[libx264 @ 0x6a1620] coded y,uvDC,uvAC intra: 67.6% 65.7% 32.0% inter: 17.3% 15.6% 5.1%
[libx264 @ 0x6a1620] i16 v,h,dc,p: 27% 50% 9% 14%
[libx264 @ 0x6a1620] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 28% 28% 3% 3% 4% 4% 4% 6%
[libx264 @ 0x6a1620] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 29% 7% 5% 8% 9% 9% 6% 7%
[libx264 @ 0x6a1620] i8c dc,h,v,p: 31% 38% 22% 9%
[libx264 @ 0x6a1620] Weighted P-Frames: Y:2.9% UV:2.1%
[libx264 @ 0x6a1620] ref P L0: 58.5% 11.5% 11.0% 3.8% 2.6% 2.3% 2.0% 1.4% 1.3% 1.1% 0.9% 0.8% 0.7% 0.8% 0.8% 0.7%
[libx264 @ 0x6a1620] ref B L0: 81.9% 7.8% 3.1% 1.4% 1.2% 0.9% 0.9% 0.5% 0.5% 0.4% 0.4% 0.3% 0.3% 0.3% 0.1%
[libx264 @ 0x6a1620] ref B L1: 92.2% 7.8%
[libx264 @ 0x6a1620] kb/s:1024.03
*.3gp`