Jump to content

Emby Wrong Audio Channel


Recommended Posts

Posted

Hi There,

 

I trying to see a episode and it has 2 audios (Portuguese ans Japanese). But when I select the Jap audio plays the Port audio. When e select the Port audio works fine. I've tested the file on my computer and is working just fine.

Follows ffmpeg log:

 

2018-02-22 19:49:52.492
Application version: 3.2.70.0

http://localhost:8096/emby/videos/97985004044f6b7b1e64379f49f2fcd5/hls1/main/0.ts?DeviceId=49a53c9d3d53c06d4d24dcd0b853fd54c2f0de45&MediaSourceId=97985004044f6b7b1e64379f49f2fcd5&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=10710896&AudioBitrate=192000&PlaySessionId=d8d73ae8862d4254a9c38bda305abfb6&api_key=deb439cf07b942d088aeae5c1f3415cb&CopyTimestamps=false&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=ed1bea47923795f2460403fff27f648c&RequireAvc=true&RequireNonAnamorphic=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=SecondaryAudioNotSupported&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&h264-deinterlace=true

{"Protocol":"File","Id":"97985004044f6b7b1e64379f49f2fcd5","Path":"xxx/xxx/xxx/Fullmetal Alchemist Brotherhood 01.mkv","Type":"Default","Container":"mkv,webm","Name":"Fullmetal Alchemist Brotherhood 01.mkv","IsRemote":false,"ETag":"ed1bea47923795f2460403fff27f648c","RunTimeTicks":14693350400,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","CodecTimeBase":"104271/5000000","DisplayTitle":"720P H264","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":699331,"BitDepth":8,"RefFrames":16,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":23.9760246,"RealFrameRate":23.9760246,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":50,"IsAnamorphic":false},{"Codec":"aac","Language":"por","TimeBase":"1/1000","CodecTimeBase":"1/44100","DisplayTitle":"Por AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":44100,"IsDefault":false,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"aac","Language":"jpn","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Jpn AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"HE-AACv2","Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"ass","Language":"por","TimeBase":"1/1000","CodecTimeBase":"1/1000","DisplayTitle":"Por Default","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false}],"Formats":[],"Bitrate":699331,"RequiredHttpHeaders":{}}

User policy for Grayfados: EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True

/usr/bin/ffmpeg -noaccurate_seek -f matroska,webm -i file:"/xxx/xxx/xxx/Fullmetal Alchemist Brotherhood 01.mkv" -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -copyts -vsync -1 -codec:a:0 copy -copypriorss:a:0 0 -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 6 -individual_header_trailer 0 -break_non_keyframes 1 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby-server/transcoding-temp/5f4a70a65118f31bb83318a18864883f.m3u8" -y "/var/lib/emby-server/transcoding-temp/5f4a70a65118f31bb83318a18864883f%d.ts"

ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright © 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'file:/xxx/xxx/xxx/Fullmetal Alchemist Brotherhood 01.mkv':
Metadata:
encoder : libebml v1.2.3 + libmatroska v1.3.0
creation_time : 2017-03-06 21:11:33
Duration: 00:24:29.34, start: 0.000000, bitrate: 699 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(por): Audio: aac (LC), 44100 Hz, stereo, fltp
Stream #0:2(jpn): Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp (default)
Stream #0:3(por): Subtitle: ass (default)
Stream #0:4: Attachment: ttf
Metadata:
filename : bluecond.ttf
mimetype : application/x-truetype-font
Stream #0:5: Attachment: ttf
Metadata:
filename : Harrington.ttf
mimetype : application/x-truetype-font
Stream #0:6: Attachment: ttf
Metadata:
filename : impact.ttf
mimetype : application/x-truetype-font
Stream #0:7: Attachment: ttf
Metadata:
filename : Mistral.ttf
mimetype : application/x-truetype-font
Stream #0:8: Attachment: ttf
Metadata:
filename : TektonPro-BoldCond.otf
mimetype : application/x-truetype-font
[segment @ 0x153d060] Codec for stream 0 does not use global headers but container format requires global headers
[segment @ 0x153d060] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, segment, to '/var/lib/emby-server/transcoding-temp/5f4a70a65118f31bb83318a18864883f%d.ts':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264, yuv420p, 1280x720 [sAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)
Stream #0:1: Audio: aac, 44100 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=18776 fps=0.0 q=-1.0 size=N/A time=00:13:03.25 bitrate=N/A
frame=35212 fps=0.0 q=-1.0 Lsize=N/A time=00:24:29.33 bitrate=N/A
video:92210kB audio:22722kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

 

Posted

Hi, in this log it looks like you've got the "por" track selected. Try using the in-video controls to pull up the audio menu and switch to the "jap" track. Please let us know if this helps. Thanks.

Posted

That's the problem... the Jap track is selected...

 

5a8f1ba7a2bba_Untitled.png

Posted

I've just figured something... When I change the quality to 360p the correct audio track plays...

Posted

5a8f4deedf470_Untitled.pngChrome Version 64.0.3282.167 64 bits - Windows 10

Posted

Ok please try again with the next release of Emby Server as there have been some adjustments to this, thanks.

  • Like 1
Posted

When the next version came?

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...