Page 1 of 1

choose english stream mkv

PostPosted: Thu Oct 04, 2012 4:59 pm
by Karnith
Hi all,

I am currently having a problem getting the English stream to play. I am using the wrapper from viewtopic.php?f=11&t=6688&hilit=change+audio+language#p48294 but the mkv is still Japanese audio.

here is the file output

  Code:
karnith@mediastream:~/.serviio/bin$ /usr/local/bin/ffmpeg "-i" "/media/Media/Mov
ies/Howl's Moving Castle (2004)/Howl's Moving Castle.mkv" "-y" "-copyts" "-c:v"
"copy" "-c:a" "libmp3lame" "-b:a" "192k" "-ar" "44100" "-ac" "2" "-map" "0:0" "-
map" "0:1" "-sn" "-f" "flv" "/tmp/Serviio/transcoding-temp-576-flv_player-ORIGIN
AL.stf"
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 21 2012 07:47:41 with gcc 4.6.3
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis -
-enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x1
1grab --enable-libvpx --enable-librtmp --enable-libxvid
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from '/media/Media/Movies/Howl's Moving Castle (2004)/H
owl's Moving Castle.mkv':
  Duration: 01:59:09.01, start: 0.000000, bitrate: 5249 kb/s
    Chapter #0.0: start 0.000000, end 64.273000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 64.273000, end 298.632000
    Metadata:
      title           : 00:01:04.273
    Chapter #0.2: start 298.632000, end 742.825000
    Metadata:
      title           : 00:04:58.632
    Chapter #0.3: start 742.825000, end 1103.269000
    Metadata:
      title           : 00:12:22.825
    Chapter #0.4: start 1103.269000, end 1396.770000
    Metadata:
      title           : 00:18:23.269
    Chapter #0.5: start 1396.770000, end 1731.939000
    Metadata:
      title           : 00:23:16.770
    Chapter #0.6: start 1731.939000, end 1993.783000
    Metadata:
      title           : 00:28:51.939
    Chapter #0.7: start 1993.783000, end 2410.241000
    Metadata:
      title           : 00:33:13.783
    Chapter #0.8: start 2410.241000, end 2730.394000
    Metadata:
      title           : 00:40:10.241
    Chapter #0.9: start 2730.394000, end 2955.870000
    Metadata:
      title           : 00:45:30.394
    Chapter #0.10: start 2955.870000, end 3326.365000
    Metadata:
      title           : 00:49:15.870
    Chapter #0.11: start 3326.365000, end 3512.509000
    Metadata:
      title           : 00:55:26.365
    Chapter #0.12: start 3512.509000, end 3891.221000
    Metadata:
      title           : 00:58:32.509
    Chapter #0.13: start 3891.221000, end 4253.708000
    Metadata:
      title           : 01:04:51.221
    Chapter #0.14: start 4253.708000, end 4524.353000
    Metadata:
      title           : 01:10:53.708
    Chapter #0.15: start 4524.353000, end 4825.487000
    Metadata:
      title           : 01:15:24.353
    Chapter #0.16: start 4825.487000, end 5119.489000
    Metadata:
      title           : 01:20:25.487
    Chapter #0.17: start 5119.489000, end 5550.879000
    Metadata:
      title           : 01:25:19.489
    Chapter #0.18: start 5550.879000, end 5915.576000
    Metadata:
      title           : 01:32:30.879
    Chapter #0.19: start 5915.576000, end 6262.423000
    Metadata:
      title           : 01:38:35.576
    Chapter #0.20: start 6262.423000, end 6500.786000
    Metadata:
      title           : 01:44:22.423
    Chapter #0.21: start 6500.786000, end 6739.483000
    Metadata:
      title           : 01:48:20.786
    Chapter #0.22: start 6739.483000, end 6879.039000
    Metadata:
      title           : 01:52:19.483
    Chapter #0.23: start 6879.039000, end 7149.017000
    Metadata:
      title           : 01:54:39.039
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x688, SAR 1:1 DAR 80:43,23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(jpn): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 768 kb/s (default)
    Metadata:
      title           : Japanese DTS 754kbps
    Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 768 kb/s (default)
    Metadata:
      title           : English DTS 754kbps
    Stream #0:3(eng): Subtitle: text (forced)
    Metadata:
      title           : English


It looks like the en stream is on 0:2, but I can't figure out how to get that stream to play. any ideas?

Thanks

Re: choose english stream mkv

PostPosted: Fri Oct 05, 2012 8:36 am
by Illico
Use mkvmerge tool to set "en" track on first position.