Отправляет email-рассылки с помощью сервиса Sendsay

FreeBSD: полезные заметки

  Все выпуски  

FreeBSD: полезные заметки. Конвертация .mkv в .avi


Вот за что я люблю FreeBSD. Старенький проигрыватель не умеет читать mkv-файлы, а искать конверторы, конечно, нет времени. Воспользуемся старым знакомым ffmpeg.

> ffmpeg -i Strelok.D.2007.HDRip.x264.mkv -vcodec copy -acodec copy Strelok.D.2007.HDRip.x264.avi
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 22 2012 11:32:58 with gcc 4.2.1 20070831 patched [FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-libaacplus --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --disable-libdirac --disable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --disable-libopenjpeg --disable-librtmp --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x2a021010] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
Input #0, matroska,webm, from 'Strelok.D.2007.HDRip.x264.mkv':
Metadata:
title : rip by D!mka
Duration: 02:05:41.82, start: 0.000000, bitrate: 384 kb/s
Stream #0.0: Video: h264 (Main), yuv420p, 720x304, PAR 1:1 DAR 45:19, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : Shooter (2007)
Stream #0.1(rus): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s (default)
Metadata:
title : Dub rus
Output #0, avi, to 'Strelok.D.2007.HDRip.x264.avi':
Metadata:
INAM : rip by D!mka
ISFT : Lavf52.111.0
Stream #0.0: Video: libx264, yuv420p, 720x304 [PAR 1:1 DAR 45:19], q=2-31, 23.98 tbn, 23.98 tbc (default)
Metadata:
title : Shooter (2007)
Stream #0.1(rus): Audio: ac3, 48000 Hz, 5.1, 384 kb/s (default)
Metadata:
title : Dub rus
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
frame=180814 fps=2029 q=-1.0 Lsize= 1432823kB time=02:05:41.37 bitrate=1556.4kbits/s
video:1067953kB audio:353523kB global headers:0kB muxing overhead 0.798241%
>

P.S. Ещё подобное делает avidemux.

В избранное