[FFmpeg-user] Convert mkv video with 2 audio and 2 subtitle in format (e.g. avi) for playing in a dvd home player.

arkkimede arkkimede at gmail.com
Thu Sep 22 18:14:23 EEST 2016


Hi Moritz! Thank you for your kind answer!
First of all the info requested;

$> ffmpeg -i input.mkv
ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/usr --extra-cflags='-g -O2
-fstack-protector-strong -Wformat -Werror=format-security '
--extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared
--enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis
--enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc
--enable-x11grab --enable-libgsm --enable-libtheora
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
--enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx
--enable-libschroedinger --disable-encoder=libschroedinger
--enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter
--enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb
--enable-libvo-amrwbenc --enable-libaacplus
--libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray
--enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl
--enable-libass --enable-libopus --enable-fontconfig --enable-libpulse
--disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2
--enable-libvidstab --enable-libzvbi --enable-avresample
--disable-htmlpages --disable-podpages --enable-libutvideo
--enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi
--enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'input.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2015-01-28 19:41:55
  Duration: 00:41:48.80, start: 0.000000, bitrate: 4768 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1280x720 [SAR 1:1
DAR 16:9], 25 fps, 25 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 4190350
      BPS-eng         : 4190350
      DURATION        : 00:41:48.800000000
      DURATION-eng    : 00:41:48.800000000
      NUMBER_OF_FRAMES: 62720
      NUMBER_OF_FRAMES-eng: 62720
      NUMBER_OF_BYTES : 1314093849
      NUMBER_OF_BYTES-eng: 1314093849
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_DATE_UTC: 2015-01-28 19:41:55
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-01-28 19:41:55
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(ita): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
(default) (forced)
    Metadata:
      title           : ITA BY IGM CREW
      BPS             : 192000
      BPS-eng         : 192000
      DURATION        : 00:41:48.768000000
      DURATION-eng    : 00:41:48.768000000
      NUMBER_OF_FRAMES: 78399
      NUMBER_OF_FRAMES-eng: 78399
      NUMBER_OF_BYTES : 60210432
      NUMBER_OF_BYTES-eng: 60210432
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_DATE_UTC: 2015-01-28 19:41:55
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-01-28 19:41:55
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : ENG
      BPS             : 384000
      BPS-eng         : 384000
      DURATION        : 00:41:48.800000000
      DURATION-eng    : 00:41:48.800000000
      NUMBER_OF_FRAMES: 78400
      NUMBER_OF_FRAMES-eng: 78400
      NUMBER_OF_BYTES : 120422400
      NUMBER_OF_BYTES-eng: 120422400
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_DATE_UTC: 2015-01-28 19:41:55
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-01-28 19:41:55
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(ita): Subtitle: subrip (default) (forced)
    Metadata:
      title           : ITA - Forced
      BPS             : 0
      BPS-eng         : 0
      DURATION        : 00:36:47.880000000
      DURATION-eng    : 00:36:47.880000000
      NUMBER_OF_FRAMES: 4
      NUMBER_OF_FRAMES-eng: 4
      NUMBER_OF_BYTES : 176
      NUMBER_OF_BYTES-eng: 176
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_DATE_UTC: 2015-01-28 19:41:55
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-01-28 19:41:55
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(ita): Subtitle: subrip
    Metadata:
      BPS             : 93
      BPS-eng         : 93
      DURATION        : 00:41:07.080000000
      DURATION-eng    : 00:41:07.080000000
      NUMBER_OF_FRAMES: 725
      NUMBER_OF_FRAMES-eng: 725
      NUMBER_OF_BYTES : 28876
      NUMBER_OF_BYTES-eng: 28876
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_DATE_UTC: 2015-01-28 19:41:55
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-01-28 19:41:55
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5(eng): Subtitle: subrip
    Metadata:
      BPS             : 82
      BPS-eng         : 82
      DURATION        : 00:40:43.000000000
      DURATION-eng    : 00:40:43.000000000
      NUMBER_OF_FRAMES: 767
      NUMBER_OF_FRAMES-eng: 767
      NUMBER_OF_BYTES : 25292
      NUMBER_OF_BYTES-eng: 25292
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 64bit
built on Jan  4 2015 21:03:35
      _STATISTICS_WRITING_DATE_UTC: 2015-01-28 19:41:55
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-01-28 19:41:55
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
At least one output file must be specified
=========================================
Related to the output I can provide a sequence of preferences:
1 Video with good resolution and Italian and English languages and subtitle
in Italian and English
2 Video with good resolution and Italian and English languages
3 Video with good resolution and Italian language.

Thank you again for your support
Daniele

2016-09-22 12:27 GMT+02:00 Moritz Barsnick <barsnick at gmx.net>:

> On Thu, Sep 22, 2016 at 11:23:17 +0200, arkkimede wrote:
> > Hi!
> > I'm looking for the right options to convert with ffmpeg a mkv video that
> > have 2 language and 2 subtitle in a format compatible with an home dvd
> > player.
>
> To understand the input format you have, please show us the console
> output of
> $ ffmpeg -i yourmkvfile.mkv
>
> > If it is possible, I want keep the resolution of the mkv video.
>
> That depends on the resolution of original video. DVD is somewhat
> restricted in what it supports. We'll see when we have the output of
> the above command.
>
> The real issue will be: If you have text-based subtitles, I believe
> ffmpeg can't convert them. DVDs require bitmap subtitles (codec
> "dvdsub"), ffmpeg doesn't provide such a conversion.
>
> The rest can be handled fine. We'll show you.
>
> Moritz
>
> P.S.: You can burn one of the text subtitle tracks into the video
>       though:
>       https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
>       But that can't be what you want.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list