Jump to content

YouTube video 4k AV1/VP9 transcode and black screen


Guest raptor2003

Recommended Posts

Guest raptor2003

Hello,

I have been using Emby for a little while and I have an issue with 4K AV1 (or VP9) videos. I would like to play some 4K YouTube videos, but I can't. Transcoding is disabled, I only want directplay or stream.

For exemple this doesn't work https://www.youtube.com/watch?v=LXb3EKWsInQ

What I don't understand, using thoose exact codecs the YouTube app on the TV has no issue and I can also play the exact same file using the DLNA player on the TV.

 

Samsung Smart TV (QE55Q65AAUXXC)
TranscodeReasons=VideoCodecNotSupported
https://xxxxxxxxx.xxxxx:2083/emby/videos/585/hls1/main/0.ts?DeviceId=xxxxxxxx&MediaSourceId=xxxxxxxx&PlaySessionId=xxxxxxxx&api_key=xxxxxxxx&VideoCodec=h264,h265,hevc&AudioCodec=ac3,eac3,aac,mp3,opus&VideoBitrate=119872001&AudioBitrate=127999&MaxWidth=4096&AudioStreamIndex=1&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=VideoCodecNotSupported

{"Protocol":"File","Id":"xxxxxxxx","Path":"/mnt/data/upload/TV/test/Costa AV1 - AAC.mp4","Type":"Default","Container":"mp4","Size":959414034,"Name":"Costa AV1 - AAC","IsRemote":false,"RunTimeTicks":3138410000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"av1","CodecTag":"av01","Language":"und","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","ColorSpace":"bt2020nc","TimeBase":"1/60000","CodecTimeBase":"6275269/376160000","VideoRange":"HDR10","DisplayTitle":"4K AV1 HDR10","IsInterlaced":false,"BitRate":24324745,"BitDepth":10,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":59.94325,"RealFrameRate":59.94006,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p10le","Level":13},{"Codec":"aac","CodecTag":"mp4a","Language":"und","TimeBase":"1/44100","CodecTimeBase":"1/44100","DisplayTitle":"Und AAC stereo (Default)","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":127999,"Channels":2,"SampleRate":44100,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File"}],"Formats":[],"Bitrate":24456053,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}

>>>>>>  User policy for emby
        EnablePlaybackRemuxing: True
        EnableVideoPlaybackTranscoding: False
        EnableAudioPlaybackTranscoding: False


>>>>>>  Processing Plan
Info    Name                                        CanDoInHardware      WillDoInHardware     Reason                                  
Info    Copy video stream                        >> False                False                Software Codec                           
Info    VideoInput                               >> False                False                Not a hardware decoder                   
Info    VideoOutput                              >> False                False                Not a hardware encoder                   
Info    Copy video stream                        >> False                False                Software Codec                           

>>>>>>  Projected Processing Formats
Info    Previous                HW-Context   Format       SW-Format           Size   Next
Info                         >> -            yuv420p10    yuv420p10      3840x2160 >> 

https://downloadcenter.samsung.com/content/UM/202109/20210910124253866/OSNDVBEUA-7.2.0_EM_OSCAR_EU_ENG_210910.0.pdf

The manual here on page 162 also says that the codecs are supported.

Why can't Emby play this file when the YouTube app and DLNA player can ?

video info.png

Link to comment
Share on other sites

Guest raptor2003

Hello @FrostByte

thank you for your answser. Do you now if that will be added one day ? My TV is a 2021 so it can play this format.

I have no idea if that is only a compatibility list to update or if it is more complicated than that.

Link to comment
Share on other sites

I can add it, but I won't be able to test it so we'll make sure we do it in a USB release before the store release

  • Like 1
Link to comment
Share on other sites

FrostByte
1 hour ago, raptor2003 said:

Hello @FrostByte

thank you for your answser. Do you now if that will be added one day ? My TV is a 2021 so it can play this format.

I have no idea if that is only a compatibility list to update or if it is more complicated than that.

Every year different things seem to change.  Something similar was done in 2018 when Samsung stopped supporting DTS.  Sounds like SamES is already on it.

Thanks for reporting.

Link to comment
Share on other sites

Unfortunately it's not that simple when you're in a price war and many consumers buy one or the other based on what is cheapest. It stinks to lose dts but I can understand why they'd do it given that the major streaming apps are all jumping on atmos now.

Link to comment
Share on other sites

Guest raptor2003

If the format is abonned in the future like HD-DVD was, yes we don't really care. But the sad thing about it is that if you have an AV receiver you have to play the file from an Nvidia Shield or anything else that accepts it, when the TV could pass it along to the receiver to do the work, but just won't.

Link to comment
Share on other sites

  • 5 months later...
SamES

Please test this when the next USB release is published.  Thanks

  • Like 1
Link to comment
Share on other sites

2 minutes ago, raptor2003 said:

@SamES Is this already available in 1.2.7 or is it for the next version ?

HI, the next version.

Link to comment
Share on other sites

  • 3 weeks later...
Guest raptor2003

Hi, this is still not working.

It's not the same error, files are playing but the screen is black, audio is playing.

2022-06-06 14:47:19.327
Operating System: Linux version 5.4.0-113-generic (buildd@lcy02-amd64-067) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2
OS/Process: x64/x64
Emby Server version: 4.7.2.0
Operating system: Unix 5.4.0.113
Command Line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3

App: Emby for Samsung 1.2.8
Samsung Smart TV (QE55Q65AAUXXC)

http://xxxxxx:2083/emby/videos/405/main.m3u8?DeviceId=XXXXXXX&MediaSourceId=XXXXXXX&PlaySessionId=XXXXXXX&api_key=XXXXXXX&VideoCodec=h264,h265,hevc&AudioCodec=ac3,eac3,aac,mp3,opus&VideoBitrate=119808000&AudioBitrate=192000&MaxWidth=4096&AudioStreamIndex=1&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=52&TranscodeReasons=DirectPlayError

http://xxxxxx:2083/emby/videos/405/hls1/main/0.ts?PlaySessionId=XXXXXXX

{"Protocol":"File","Id":"9dbbec1e7c6a72be76639d203ee3d60d","Path":"/media/data/upload/TV/zzzzyt/COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ].webm","Type":"Default","Container":"webm","Size":1135674857,"Name":"COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ]","IsRemote":false,"RunTimeTicks":3138010000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"vp9","Language":"eng","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","ColorSpace":"bt2020nc","TimeBase":"1/1000","VideoRange":"HDR10","DisplayTitle":"4K VP9 HDR10","DisplayLanguage":"English","IsInterlaced":false,"BitRate":28952740,"BitDepth":10,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":59.940063,"RealFrameRate":59.940063,"Profile":"Profile 2","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p10le","Level":-99,"IsAnamorphic":false,"AttachmentSize":0},{"Codec":"opus","Language":"eng","TimeBase":"1/1000","DisplayTitle":"English OPUS stereo (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","AttachmentSize":0}],"Formats":[],"Bitrate":28952740,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}

>>>>>>  User policy for emby
        Enable Playback Remuxing: True
        Enable Video Playback Transcoding: False
        Enable Audio Playback Transcoding: False


>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        Copy video stream                        >> False      False       Software Codec                                          
        VideoInput                               >> False      False       Not a hardware decoder                                  
        VideoOutput                              >> False      False       Not a hardware encoder                                  
        Copy video stream                        >> False      False       Software Codec                                          

>>>>>>  Video Processing Steps for [0:0]: VP9
        Step                    HW-Context   Format       SW-Format           Size   Next
        VP9                  >> -            yuv420p10    yuv420p10      3840x2160 >> 

/app/emby/ffmpeg -loglevel +timing -y -print_graphs_file "/config/logs/ffmpeg-directstream-c9f1796c-d328-409f-8191-a7e66c4f11b3_1graph.txt" -copyts -start_at_zero -f matroska,webm -c:v:0 vp9 -i "/media/data/upload/TV/zzzzyt/COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ].webm" -map 0:0 -map 0:1 -sn -c:v:0 copy -c:a:0 copy -metadata:s:a:0 language=eng -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/config/transcoding-temp/BC489D/BC489D.m3u8" -segment_list_type m3u8 -segment_time 00:00:06.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/config/transcoding-temp/BC489D/BC489D_%d.ts"

14:47:19.408 ffmpeg version 5.0.0-emby_2022_05_07 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
14:47:19.408   built with gcc 8.3.0 (crosstool-NG 1.24.0)
14:47:19.408 Execution Date: 2022-06-06 14:47:19
14:47:19.532 Input #0, matroska,webm, from '/media/data/upload/TV/zzzzyt/COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ].webm':
14:47:19.532   Metadata:
14:47:19.532     ENCODER         : Lavf58.29.100
14:47:19.532   Duration: 00:05:13.80, start: -0.007000, bitrate: 28952 kb/s
14:47:19.532   Stream #0:0(eng): Video: vp9 (Profile 2), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn (default)
14:47:19.533     Metadata:
14:47:19.533       DURATION        : 00:05:13.780000000
14:47:19.533     Side data:
14:47:19.533       Content Light Level Metadata, MaxCLL=1100, MaxFALL=180
14:47:19.533       Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6780,0.3220) g(0.2450,0.7030) b(0.1380 0.0520) wp(0.3127, 0.3290) min_luminance=0.000000, max_luminance=1000.000000
14:47:19.533   Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp, Start-Time -0.007s (default)
14:47:19.533     Metadata:
14:47:19.533       DURATION        : 00:05:13.801000000
14:47:19.533 Output #0, segment, to '/config/transcoding-temp/BC489D/BC489D_%d.ts':
14:47:19.533   Metadata:
14:47:19.533     encoder         : Lavf59.17.100
14:47:19.533   Stream #0:0: Video: vp9 (Profile 2), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 59.94 tbr, 90k tbn (default)
14:47:19.534     Side data:
14:47:19.534       Content Light Level Metadata, MaxCLL=1100, MaxFALL=180
14:47:19.534       Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6780,0.3220) g(0.2450,0.7030) b(0.1380 0.0520) wp(0.3127, 0.3290) min_luminance=0.000000, max_luminance=1000.000000
14:47:19.534   Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
14:47:19.534 Stream mapping:
14:47:19.534   Stream #0:0 -> #0:0 (copy)
14:47:19.534   Stream #0:1 -> #0:1 (copy)
14:47:19.534 Press [q] to stop, [?] for help
14:47:19.534 elapsed=00:00:00.00 frame=    1 fps=0.0 q=-1.0 size=N/A time=-00:00:00.00 bitrate=N/A throttle=off speed=N/A    
14:47:19.535 [mpegts @ 0x1487100] Stream 0, codec vp9, is muxed as a private data stream and may not be recognized upon reading.
......

 

Link to comment
Share on other sites

3 hours ago, raptor2003 said:

Hi, this is still not working.

It's not the same error, files are playing but the screen is black, audio is playing.

2022-06-06 14:47:19.327
Operating System: Linux version 5.4.0-113-generic (buildd@lcy02-amd64-067) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2
OS/Process: x64/x64
Emby Server version: 4.7.2.0
Operating system: Unix 5.4.0.113
Command Line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3

App: Emby for Samsung 1.2.8
Samsung Smart TV (QE55Q65AAUXXC)

http://xxxxxx:2083/emby/videos/405/main.m3u8?DeviceId=XXXXXXX&MediaSourceId=XXXXXXX&PlaySessionId=XXXXXXX&api_key=XXXXXXX&VideoCodec=h264,h265,hevc&AudioCodec=ac3,eac3,aac,mp3,opus&VideoBitrate=119808000&AudioBitrate=192000&MaxWidth=4096&AudioStreamIndex=1&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=52&TranscodeReasons=DirectPlayError

http://xxxxxx:2083/emby/videos/405/hls1/main/0.ts?PlaySessionId=XXXXXXX

{"Protocol":"File","Id":"9dbbec1e7c6a72be76639d203ee3d60d","Path":"/media/data/upload/TV/zzzzyt/COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ].webm","Type":"Default","Container":"webm","Size":1135674857,"Name":"COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ]","IsRemote":false,"RunTimeTicks":3138010000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"vp9","Language":"eng","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","ColorSpace":"bt2020nc","TimeBase":"1/1000","VideoRange":"HDR10","DisplayTitle":"4K VP9 HDR10","DisplayLanguage":"English","IsInterlaced":false,"BitRate":28952740,"BitDepth":10,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":59.940063,"RealFrameRate":59.940063,"Profile":"Profile 2","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p10le","Level":-99,"IsAnamorphic":false,"AttachmentSize":0},{"Codec":"opus","Language":"eng","TimeBase":"1/1000","DisplayTitle":"English OPUS stereo (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","AttachmentSize":0}],"Formats":[],"Bitrate":28952740,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}

>>>>>>  User policy for emby
        Enable Playback Remuxing: True
        Enable Video Playback Transcoding: False
        Enable Audio Playback Transcoding: False


>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        Copy video stream                        >> False      False       Software Codec                                          
        VideoInput                               >> False      False       Not a hardware decoder                                  
        VideoOutput                              >> False      False       Not a hardware encoder                                  
        Copy video stream                        >> False      False       Software Codec                                          

>>>>>>  Video Processing Steps for [0:0]: VP9
        Step                    HW-Context   Format       SW-Format           Size   Next
        VP9                  >> -            yuv420p10    yuv420p10      3840x2160 >> 

/app/emby/ffmpeg -loglevel +timing -y -print_graphs_file "/config/logs/ffmpeg-directstream-c9f1796c-d328-409f-8191-a7e66c4f11b3_1graph.txt" -copyts -start_at_zero -f matroska,webm -c:v:0 vp9 -i "/media/data/upload/TV/zzzzyt/COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ].webm" -map 0:0 -map 0:1 -sn -c:v:0 copy -c:a:0 copy -metadata:s:a:0 language=eng -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/config/transcoding-temp/BC489D/BC489D.m3u8" -segment_list_type m3u8 -segment_time 00:00:06.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/config/transcoding-temp/BC489D/BC489D_%d.ts"

14:47:19.408 ffmpeg version 5.0.0-emby_2022_05_07 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
14:47:19.408   built with gcc 8.3.0 (crosstool-NG 1.24.0)
14:47:19.408 Execution Date: 2022-06-06 14:47:19
14:47:19.532 Input #0, matroska,webm, from '/media/data/upload/TV/zzzzyt/COSTA RICA IN 4K 60fps HDR (ULTRA HD) [LXb3EKWsInQ].webm':
14:47:19.532   Metadata:
14:47:19.532     ENCODER         : Lavf58.29.100
14:47:19.532   Duration: 00:05:13.80, start: -0.007000, bitrate: 28952 kb/s
14:47:19.532   Stream #0:0(eng): Video: vp9 (Profile 2), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn (default)
14:47:19.533     Metadata:
14:47:19.533       DURATION        : 00:05:13.780000000
14:47:19.533     Side data:
14:47:19.533       Content Light Level Metadata, MaxCLL=1100, MaxFALL=180
14:47:19.533       Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6780,0.3220) g(0.2450,0.7030) b(0.1380 0.0520) wp(0.3127, 0.3290) min_luminance=0.000000, max_luminance=1000.000000
14:47:19.533   Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp, Start-Time -0.007s (default)
14:47:19.533     Metadata:
14:47:19.533       DURATION        : 00:05:13.801000000
14:47:19.533 Output #0, segment, to '/config/transcoding-temp/BC489D/BC489D_%d.ts':
14:47:19.533   Metadata:
14:47:19.533     encoder         : Lavf59.17.100
14:47:19.533   Stream #0:0: Video: vp9 (Profile 2), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 59.94 tbr, 90k tbn (default)
14:47:19.534     Side data:
14:47:19.534       Content Light Level Metadata, MaxCLL=1100, MaxFALL=180
14:47:19.534       Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6780,0.3220) g(0.2450,0.7030) b(0.1380 0.0520) wp(0.3127, 0.3290) min_luminance=0.000000, max_luminance=1000.000000
14:47:19.534   Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
14:47:19.534 Stream mapping:
14:47:19.534   Stream #0:0 -> #0:0 (copy)
14:47:19.534   Stream #0:1 -> #0:1 (copy)
14:47:19.534 Press [q] to stop, [?] for help
14:47:19.534 elapsed=00:00:00.00 frame=    1 fps=0.0 q=-1.0 size=N/A time=-00:00:00.00 bitrate=N/A throttle=off speed=N/A    
14:47:19.535 [mpegts @ 0x1487100] Stream 0, codec vp9, is muxed as a private data stream and may not be recognized upon reading.
......

 

5c9b141743595_Untitled.png

Link to comment
Share on other sites

Guest raptor2003

It works that way but using transcoding.

These files play natively using Samsung's player and DNLA so it should not have to transcode.

Link to comment
Share on other sites

SamES

It looks like it tried to DirectPlay, but was unable to. If you put this file on a usb drive and connect it directly to the TV, does it play with the internal video player?

Link to comment
Share on other sites

Guest raptor2003
12 hours ago, SamES said:

It looks like it tried to DirectPlay, but was unable to. If you put this file on a usb drive and connect it directly to the TV, does it play with the internal video player?

They play with the internal video player using DLNA.

Link to comment
Share on other sites

SamES
1 hour ago, raptor2003 said:

They play with the internal video player using DLNA.

A better test is using usb as you may still get some conversion via dlna

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