jellyfin / jellyfin-plugin-dlna

GNU General Public License v3.0
16 stars 12 forks source link

[Issue]: Nothing plays on 10.8 dlna on old TV #19

Open awyl opened 2 years ago

awyl commented 2 years ago

Please describe your bug

My files used to play fine with 10.7.7. I upgraded to 10.8.0-beta2 last night, and the files won't play any more on my old Samsung TV.

The files are in .MOV, .AVI and .MP4 containers that I ripped years ago.

Qnap DLNA -> Ok Jellyfin 10.7.7 -> Ok Jellyfin 10.8.0-beta2 -> Nothing plays.

Jellyfin Version

10.8.0

if other:

No response

Environment

- OS: Debian
- Virtualization: Docker
- Clients: DLNA player on old TV
- Browser: n/a
- FFmpeg Version: 4.4.1-Jellyfin
- Playback Method: Direct Play
- Hardware Acceleration: none
- Plugins: none
- Reverse Proxy: none
- Base URL: none
- Networking: Host
- Storage: local

Jellyfin logs

[2022-04-27 14:43:47.372 +00:00] [INF] [22] Emby.Dlna.ContentDirectory.ContentDirectoryService: StreamBuilder.BuildVideoItem( Profile="Generic Device", Path="/media/ASL/BabySignLanguage/Baby Sign Language Basics-96.m4v", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/a0b95cc6-8ed5-e741-15f8-2b275dc7cb7d/stream.mov?MediaSourceId=a0b95cc68ed5e74115f82b275dc7cb7d&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=139839713&AudioBitrate=160287&AudioSampleRate=48000&MaxFramerate=29.97003&api_key=<token>&Tag=c473cd433202e40ae4f2999285f63409&hevc-level=90&hevc-profile=main&hevc-audiochannels=2&aac-profile=lc"
[2022-04-27 14:43:47.373 +00:00] [INF] [22] Emby.Dlna.ContentDirectory.ContentDirectoryService: StreamBuilder.BuildVideoItem( Profile="Generic Device", Path="/media/ASL/BabySignLanguage/Baby Sign Language Basics-97.m4v", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/897a2b8a-c75a-af5a-a60a-649fa28c5163/stream.mov?MediaSourceId=897a2b8ac75aaf5aa60a649fa28c5163&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=139856989&AudioBitrate=143011&AudioSampleRate=48000&MaxFramerate=29.97003&api_key=<token>&Tag=d72feeae9985c75fe2498932a476f9ce&hevc-level=90&hevc-profile=main&hevc-audiochannels=2&aac-profile=lc"

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

awyl commented 2 years ago

I am reporting on 10.8.0 beta 3.

Jellyfin 10.8.0-beta2 -> Nothing plays. Jellyfin 10.8.0-beta3 -> Plays on my old Samsung TV, with direct play. Jellyfin 10.8.0-beta3 -> Doesn't play on Roku Jellyfin app any more. Previously it transcoded.

When playing on Roku, my old media (Mpeg4, AVI) was recognized that transcoding was needed. But Jellyfin didn't actually start ffmpeg (no ffmpeg log). Roku Jellyfin app reported that there was problem playing the media.

[2022-05-17 04:56:05.108 +00:00] [INF] [64] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/media/***/My Favorite Things.avi", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=Transcode, TranscodeReason=VideoCodecNotSupported ) "media:/videos/1bd90935-beb3-6d6b-a7c1-42a6d0830ce9/master.m3u8?MediaSourceId=1bd90935beb36d6ba7c142a6d0830ce9&VideoCodec=h264,mpeg2video,h265,hevc&AudioCodec=aac,ac3&AudioStreamIndex=1&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=29.97003&api_key=<token>&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&RequireAvc=false&Tag=bf4912e1c08c1ff2481cc62a9eaa7615&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&mpeg4-level=3&mpeg4-videobitdepth=8&mpeg4-profile=simpleprofile&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&aac-audiochannels=6&TranscodeReasons=VideoCodecNotSupported"

For the record, on Roku. I think Mpeg4 is supported. If I convert the container from AVI to MP4 (with just copy, ffmpeg -c copy), Roku native media player plays just fine without transcoding. So I think the transcode reason should be ContainerNotSupported.

Fyb3roptik commented 2 years ago

https://github.com/jellyfin/jellyfin-roku/pull/678

This should fix your problem on Roku