Jump to content

Not intelligently switching audio streams


thefirstofthe300
Go to solution Solved by Luke,

Recommended Posts

thefirstofthe300

One thing that I have noticed is that the Android app doesn't handle audio streams intelligently. I have a number of videos encoded h264 with an AC3 stream and an AAC stream. 

[daniel@Iron-Man ~]$ ffprobe /data/TV-Shows/MASH/Season\ 01/M-A-S-H\ -\ S01E01\ -\ M-A-S-H\ the\ Pilot.mkv 
ffprobe version 2.6.1 Copyright (c) 2007-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC) 20150304 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  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 '/data/TV-Shows/MASH/Season 01/M-A-S-H - S01E01 - M-A-S-H the Pilot.mkv':
  Metadata:
    title           : M*A*S*H - S01E01
    ENCODER         : Lavf55.33.100
  Duration: 00:25:34.95, start: 0.055000, bitrate: 3496 kb/s
    Chapter #0:0: start 0.000000, end 156.289833
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 156.289833, end 369.836500
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 369.836500, end 530.830667
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 530.830667, end 681.648000
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 681.648000, end 942.708800
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 942.708800, end 1124.223467
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1124.223467, end 1229.461933
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1229.461933, end 1360.292633
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1360.292633, end 1463.061967
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 1463.061967, end 1534.846322
    Metadata:
      title           : Chapter 10
    Stream #0:0(eng): Video: h264 (High), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
    Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng

For the above file, the AC3 stream is the one chosen by the app and not the aac stream (if I remember right, it was encoded at 192 kbps so it should play without a problem).

 

Logs:

Transcode log: http://hastebin.com/igitokamim

Server log: http://hastebin.com/parucudeyo

Android log: On its way...

Link to comment
Share on other sites

  • Solution

we don't do that. we have no way of knowing if it's actually an alternate encoding or some kind of commentary. Instead we go by what is marked as default and the order of the streams.

  • Like 1
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...