Jump to content

Wrong audio track playing on web client


fraenhawk

Recommended Posts

fraenhawk

According to Media Info in Windows, the mkvs I'm playing (Attack on Titan) have audio #1 192kbps Japanese, audio #2 448 kbps English. I have my default language set to English. In the web interface for that episode, if I click the Media Info tab, it says Audio Language Eng, Bitrate 448 kbps, so it seems to be filtering to show me the english (and it has the bitrate that matches the correct track). However, when I playback the file in the web client, it plays the japanese track. When I click the audio tracks button it only shows Eng.ac3.448 kbps so it's not like there's another track I can pick. This is on server 3.0.5309.26857. Also, subtitles aren't playing, and I'm wondering if that's because the client thinks it's playing an English track so supressing subs.

 

If I'm reading the transcode logs correctly, it says it's playing 0:1 which is the japanese track even though the display says it's playing the english.

2014-07-17 19:47:01.6696 Info - App: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140612\ffmpeg.exe -ss 00:01:57.139 -fflags +genpts -i file:"\\WHSHAWK\Shows\Attack on Titan\Season 1\Attack on Titan - S01E03 - A Dull Light in Despair.mkv" -map 0:0 -map 0:1 -map -0:s -vcodec libvpx -force_key_frames expr:gte(t,n_forced*5) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -speed 16 -quality good -profile:v 2 -slices 8 -crf 12 -maxrate:v 872001 -bufsize:v (872001*2) -b:v 872001 -r 23.97602 -vsync vfr -map_metadata -1 -threads 2 -acodec libvorbis -ac 2 -ab 128000 -af "aresample=async=1,volume=1" -y "C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\85fdea29f80284c19d74eaccafbd727a.webm"
C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140612\ffmpeg.exe -ss 00:02:28.784 -fflags +genpts -i file:"\\WHSHAWK\Shows\Attack on Titan\Season 1\Attack on Titan - S01E03 - A Dull Light in Despair.mkv" -map 0:0 -map 0:1 -map -0:s -vcodec libvpx -force_key_frames expr:gte(t,n_forced*5) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -speed 16 -quality good -profile:v 2 -slices 8 -crf 12 -maxrate:v 872001 -bufsize:v (872001*2) -b:v 872001 -r 23.97602 -vsync vfr -map_metadata -1 -threads 2 -acodec libvorbis -ac 2 -ab 128000 -af "aresample=async=1,volume=1" -y "C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\bc2cd3e243fdd4c561b389272c1daaf6.webm"


ffmpeg version N-63911-g3a1c895 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 11 2014 22:01:49 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.100 / 55. 66.100
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'file:\\WHSHAWK\Shows\Attack on Titan\Season 1\Attack on Titan - S01E03 - A Dull Light in Despair.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2014-06-10 06:19:32
  Duration: 00:24:12.06, start: 0.000000, bitrate: 3208 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 2566702
      BPS-eng         : 2566702
      DURATION        : 00:24:12.034000000
      DURATION-eng    : 00:24:12.034000000
      NUMBER_OF_FRAMES: 34814
      NUMBER_OF_FRAMES-eng: 34814
      NUMBER_OF_BYTES : 465867432
      NUMBER_OF_BYTES-eng: 465867432
      _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_DATE_UTC: 2014-06-10 06:19:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2014-06-10 06:19:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      BPS             : 192000
      BPS-eng         : 192000
      DURATION        : 00:24:12.064000000
      DURATION-eng    : 00:24:12.064000000
      NUMBER_OF_FRAMES: 45377
      NUMBER_OF_FRAMES-eng: 45377
      NUMBER_OF_BYTES : 34849536
      NUMBER_OF_BYTES-eng: 34849536
      _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_DATE_UTC: 2014-06-10 06:19:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2014-06-10 06:19:32
      _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, 448 kb/s
    Metadata:
      BPS             : 448000
      BPS-eng         : 448000
      DURATION        : 00:24:12.064000000
      DURATION-eng    : 00:24:12.064000000
      NUMBER_OF_FRAMES: 45377
      NUMBER_OF_FRAMES-eng: 45377
      NUMBER_OF_BYTES : 81315584
      NUMBER_OF_BYTES-eng: 81315584
      _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_DATE_UTC: 2014-06-10 06:19:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2014-06-10 06:19:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: subrip (default) (forced)
    Metadata:
      title           : Full
      BPS             : 71
      BPS-eng         : 71
      DURATION        : 00:23:54.266000000
      DURATION-eng    : 00:23:54.266000000
      NUMBER_OF_FRAMES: 351
      NUMBER_OF_FRAMES-eng: 351
      NUMBER_OF_BYTES : 12756
      NUMBER_OF_BYTES-eng: 12756
      _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_DATE_UTC: 2014-06-10 06:19:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2014-06-10 06:19:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: subrip
    Metadata:
      title           : Forced
      BPS             : 6
      BPS-eng         : 6
      DURATION        : 00:23:35.456000000
      DURATION-eng    : 00:23:35.456000000
      NUMBER_OF_FRAMES: 22
      NUMBER_OF_FRAMES-eng: 22
      NUMBER_OF_BYTES : 1142
      NUMBER_OF_BYTES-eng: 1142
      _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
      _STATISTICS_WRITING_DATE_UTC: 2014-06-10 06:19:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2014-06-10 06:19:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[libvpx @ 04bc0440] v1.3.0
Output #0, webm, to 'C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\bc2cd3e243fdd4c561b389272c1daaf6.webm':
  Metadata:
    encoder         : Lavf55.43.100
    Stream #0:0: Video: vp8 (libvpx), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 872 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
    Metadata:
      encoder         : Lavc55.66.100 libvpx
    Stream #0:1: Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc55.66.100 libvorbis
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp8 (libvpx))
  Stream #0:1 -> #0:1 (ac3 (native) -> vorbis (libvorbis))

P.S. Loving getting to the logs from the web interface now!

Link to comment
Share on other sites

it appears the jp track is marked as default so check your profile preferences

Link to comment
Share on other sites

fraenhawk

What am I looking for? The "Play default audio track regardless of language" checkbox? It's unchecked.

Even if that was on, would it cause the list of audio tracks to show a checkmark next to the english track even though that's not what's playing?

Link to comment
Share on other sites

  • 2 weeks later...
fraenhawk

it appears the jp track is marked as default so check your profile preferences

@@Luke is there any other info I can send you that might help? I answered your question above.

Link to comment
Share on other sites

fraenhawk

Well, this got me to learn how to use mkvpropedit. I toggled off forced for audio 1 and subtitle 1, and turned on forced for subtitle 2 (the forced). Now everything (both LAV for MBC and the web client) are happy.

 

Interesting to note though, and maybe this will give you a clue of something that might have happened during the part of the database scan that checks the media info: With the original file that I posted the logs for, on the media info tab of the web client, it just showed the Eng 448 (as I posted in original post above). I made my change and rescanned the libaray and now the media info tab shows the info for ALL the tracks. Both Japanese and English. And when I play it back, not only is the correct set playing (english with the forced subs only, not full), but all of the others are now choices in the player. Before I had no other choices - I couldn't switch between English and Japanese. Makes me wonder if all this had to do with a failed mediainfo read.

 

I kept one of the original, unaltered files in case you want me to run any other tests.

  • Like 1
Link to comment
Share on other sites

fraenhawk

Ok, this is really bizarre (and related to this same audio language issue) but I don't think it's necessarily an MBC problem. I thought I'd start here though to see if anyone has an idea before I try some general Media Center boards.

 

Those same files that are now set with the JPN audio default, but none forced. They play great in the web client now (english by default since that's my default lang). If I go to an MBC machine, sometimes they're in English, sometimes Japanese. I figured out how to make it happen one way or another, and I noticed this because I had the mouse out (rare on my HTPC) and WMC wasn't maximized to I could see what was going on with LAV. If I start WMC from the desktop with the mouse, the state is remembered (i.e. if it was restored it starts restored, if it was maximized it starts maximized) and the audio will ALWAYS be English. If I browse to the file in Explorer and tell it to play in Media Center, it remembers its state and plays in English. If I press the big Green button on the remote, it always starts WMC maximized and the audio always plays the Japanese track!! It's almost like starting with the button makes the system start in some kind of safe mode and there's no default language set. WTF?! Anyone run across this before?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...