Jump to content
Sign in to follow this  
isamudaison

ANSWERED new apple tv client allows live tv streaming when user should not have access

Recommended Posts

isamudaison

I have a user on my server that explicitly does not have access to live tv, but are somehow able to stream it. I've tried 're-disabling' the live tv access to no avail. The newest apple tv client and to have enabled this.

Share this post


Link to post
Share on other sites
corey

Thanks for reporting this @@isamudaison. We'll take a look and get back to you on this.

Share this post


Link to post
Share on other sites
isamudaison

Here's some log detail :

2020-06-01 13:27:09.999
Emby Server version: 4.4.2.0
Operating system: Unix 5.3.0.40
Command Line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3

App: tvOS 1.4.5.24
AppleTV

[...]

{"Protocol":"Http","Id":"native_ff80f93c46e0a0b178f0c4d61a5abab3_342026f585ad3c9e9dadeffc3b351653","Path":"http://127.0.0.1:8920/LiveTv/LiveStreamFiles/c399807498a04de387efb1eb8e8b71e7/stream.ts","Type":"Default","Container":"mpegts","IsRemote":false,"ContainerStartTimeTicks":152626512670,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":false,"IsInfiniteStream":true,"RequiresOpening":true,"RequiresClosing":true,"LiveStreamId":"06044cf0e6f93cdae5f285c9ecfaaeb4_01413a525b3a9622ce6fdf19f7dde354_native_ff80f93c46e0a0b178f0c4d61a5abab3_342026f585ad3c9e9dadeffc3b351653","RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"mpeg2video","StreamStartTimeTicks":152629341330,"TimeBase":"1/90000","CodecTimeBase":"1001/30000","VideoRange":"SDR","DisplayTitle":"1080i MPEG2VIDEO","IsInterlaced":true,"BitRate":20000000,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":4,"IsAnamorphic":false},{"Codec":"ac3","CodecTag":"AC-3","StreamStartTimeTicks":152626512670,"TimeBase":"1/90000","CodecTimeBase":"1/48000","DisplayTitle":"Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":384000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File"}],"Formats":[],"Bitrate":20384000,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}

>>>>>>  User policy for Saeng
        EnablePlaybackRemuxing: True
        EnableVideoPlaybackTranscoding: True
        EnableAudioPlaybackTranscoding: True

>>>>>>  Affected codecs
Encoder VAAPI HD Graphics 630 - H.264 (AVC)
        Adapter #0: 'HD Graphics 630' Id:22802 (Driver: Intel iHD driver - 19.4.0, Vendor: Intel Corporation)
        Frame Sizes: 32x32...4096x4096
        Color Formats: NV12, P010
        Profiles: Main Profile (Level 6), High Profile (Level 6), Constrained Baseline Profile (Level 6)

Decoder VAAPI HD Graphics 630 - MPEG-2
        Adapter #0: 'HD Graphics 630' Id:22802 (Driver: Intel iHD driver - 19.4.0, Vendor: Intel Corporation)
        Frame Sizes: max 2048x2048
        Color Formats: NV12
        Profiles: Simple Profile (High Level), Main Profile (High Level)


>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Custom
Info    Checking: 'VAAPI HD Graphics 630 - H.264 (AVC)'
Info    Check successful - selecting 'VAAPI HD Graphics 630 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: mpeg2video, Mode: Custom
Info    Checking: 'VAAPI HD Graphics 630 - MPEG-2'
Info    Check successful - selecting 'VAAPI HD Graphics 630 - MPEG-2'

>>>>>>  Processing Plan
Info    Name                                        CanDoInHardware      WillDoInHardware     Reason                                  
Info    VAAPI HD Graphics 630 - MPEG-2           >> True                 True                 Hardware Codec                           
Info    VideoInput                               >> True                 True                 Same adapter (/dev/dri/renderD128), s... 
Info    Deinterlace                              >> True                 True                                                          
Info    Scaling                                  >> True                 True                                                          
Info    VideoOutput                              >> True                 True                 Hardware encoder                         
Info    VAAPI HD Graphics 630 - H.264 (AVC)      >> True                 True                 Hardware Codec                           

>>>>>>  Projected Processing Formats
Info    Previous                HW-Context   Format       SW-Format       Next
Info    mpeg2video           >> VAAPI        vaapi_vld    nv12         >> scale_vaapi
Info    scale_vaapi          >> VAAPI        vaapi_vld    nv12         >> 

>>>>>  Legacy Command

/bin/ffmpeg -analyzeduration 3000000 -fflags +discardcorruptts+fillwallclockdts -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -f mpegts -i "http://127.0.0.1:8920/LiveTv/LiveStreamFiles/c399807498a04de387efb1eb8e8b71e7/stream.ts" -threads 1 -sn -c:v:0 h264_vaapi -vf "deinterlace_vaapi,scale_vaapi=w=1280:h=720"  -b:v:0 2616000 -maxrate 2616000 -bufsize 5232000 -profile:v:0 high -level:v:0 4.1 -g:v:0 90 -keyint_min:v:0 90 -sc_threshold:v:0 0  -copyts -vsync -1 -codec:a:0 copy -disposition:a:0 default -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_write_temp 1 -segment_list_type m3u8 -segment_start_number 0 -segment_list "/config/transcoding-temp/902260.m3u8" -y "/config/transcoding-temp/902260_%d.ts"

>>>>>  Actual Command

/bin/ffmpeg -loglevel +timing -y -print_graphs_file /config/logs/ffmpeg-transcode-3386433e-9187-4455-b442-4f016f82561a_1graph.txt -copyts -start_at_zero -analyzeduration 3000000 -f mpegts -c:v:0 mpeg2video -hwaccel:v:0 vaapi -hwaccel_device:v:0 /dev/dri/renderD128 -hwaccel_output_format:v:0 vaapi -i "http://127.0.0.1:8920/LiveTv/LiveStreamFiles/c399807498a04de387efb1eb8e8b71e7/stream.ts" -filter_complex "[v:0]deinterlace_vaapi@f1,scale_vaapi@f2=w=1280:h=720[f2_out0]" -map [f2_out0] -map a:0 -sn -c:v:0 h264_vaapi -b:v:0 2616000 -g:v:0 90 -maxrate:v:0 2616000 -bufsize:v:0 5232000 -sc_threshold:v:0 0 -keyint_min:v:0 90 -profile:v:0 high -level:v:0 3.1 -c:a:0 copy -disposition:a:0 default -fflags +discardcorruptts+fillwallclockdts -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list /config/transcoding-temp/902260.m3u8 -segment_list_type m3u8 -segment_time 3 -segment_list_entry_prefix hls/902260/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/config/transcoding-temp/902260_%d.ts"

13:27:10.028 ffmpeg version 4.3.0-emby_2020_02_24 Copyright (c) 2000-2019 the FFmpeg developers and softworkz for Emby LLC
13:27:10.028   built with gcc 8.3.0 (crosstool-NG 1.24.0)
13:27:10.028 Execution Date: 2020-06-01 13:27:10
13:27:10.808 [mpeg2video @ 0xaee240] Invalid frame dimensions 0x0.
    Last message repeated 4 times
13:27:11.909 Input #0, mpegts, from 'http://127.0.0.1:8920/LiveTv/LiveStreamFiles/c399807498a04de387efb1eb8e8b71e7/stream.ts':

 

Share this post


Link to post
Share on other sites
corey

@@isamudaison --

 

I've logged this as an issue in our internal tracking system and we'll likely have this fixed in our next release.

  • Like 1

Share this post


Link to post
Share on other sites
corey

This should be fixed in our most recent release (1.4.6).

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...