jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
33.4k stars 3.05k forks source link

[Issue]: BD Folder playback, PCM Audio not supported, forces transcode #10525

Closed radry closed 6 months ago

radry commented 10 months ago

Please describe your bug

According to this PR #9254 BD Folder playback should work but I always get "TranscodeReason=AudioCodecNotSupported " when trying to play back a BD Folder on Jellyfin (Android TV). Direct Play, no transcoding or remuxing.

The Audiocodec of every BD is PCM, so this shouldn't be specific to my BD but apply to every disc.

The Jellyfin documentation doesn't even mention PCM codec. Playing one of the M2TS files locally on the Android TV client without jellyfin works including audio.

Maybe the problem is not the m2ts file but the folder structure is maybe not regonised correctly? That would be strange because the mentioned PR should have fixed that.

Mediainfo:


General
ID                                       : 0 (0x0)
Complete name                            : \xyz\00004.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 15.0 GiB
Duration                                 : 1 h 20 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 26.6 Mb/s
Maximum Overall bit rate                 : 48.0 Mb/s
Frame rate                               : 23.976 FPS

Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 3 frames
Codec ID                                 : 27
Duration                                 : 1 h 20 min
Bit rate mode                            : Variable
Bit rate                                 : 23.0 Mb/s
Maximum bit rate                         : 40.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.463
Stream size                              : 13.1 GiB (87%)
Writing library                          : x264 core 128 r2216 198a7ea
Encoding settings                        : cabac=1 / ref=4 / deblock=0:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=2 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=1 / keyint=24 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=0 / bitrate=23000 / ratetol=0.5 / qcomp=0.50 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:0.30
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : PCM
Format settings                          : Big / Signed
Muxing mode                              : Blu-ray
Codec ID                                 : 128
Duration                                 : 1 h 20 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Channel layout                           : M
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 665 MiB (4%)

Text
ID                                       : 4608 (0x1200)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144
Delay relative to video                  : 834 ms

Jellyfin Version

10.8.z

if other:

No response

Environment

- OS:Debian 10
- Linux Kernel:5.10.0-0.deb10.24-amd64
- Clients: Jellyfin v0.15.12 Android TV 
- FFmpeg Version: 4.1.11-0+deb10u1
- Playback Method: Direct Stream/Play

Jellyfin logs

[2023-11-03 21:56:44.309 +01:00] [INF] [54] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="AndroidTV-libVLC", Path="/home/xxx/media/Mo
vies/xxx", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcod
e, TranscodeReason=AudioCodecNotSupported ) "media:/videos/f282ce77-dd7d-0e3f-ae3c-a811957a3a6c/stream?MediaSourceId=f282ce77dd7d0e3fae3ca811957a3a6c&AudioStreamIndex
=1&api_key=<token>&RequireAvc=false&Tag=543b6ca4c9f21c87d81daf7a932499c0&TranscodeReasons=AudioCodecNotSupported"

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

Shadowghost commented 10 months ago

The PR is only available in the unstable builds and it will force at least remuxing. Afaik PCM as codec support was also added only recently so pass through of it should also only work in unstable builds.

That aside, please use the FFmpeg provided by jellyfin.

radry commented 10 months ago

The PR was merged into master in March, over 7 Months ago. I assumed that it has made it into a release version of which there have been 2 since the merge but aparently not. My bad for not checking which merges were part of the releases.

jellyfin-bot commented 6 months ago

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

felix920506 commented 6 months ago

Closing this issue as it should already be fixed in master. Please open a new report if it still happens on master or when 10.9 release is out.

elendil7 commented 4 months ago

Confirmed - results in Playback Error when attempting to play signed 32-bit PCM flac audio.

Version: 10.8.13

image

Shadowghost commented 4 months ago

Please test with unstable.