Jump to content

Stop Playback if Transcoding 4k?


spaceman07

Recommended Posts

spaceman07

I am trying to work out what part of the API would capture the information i would need in order to stop playback if a user/client is transcoding the video stream part and if so i would like to stop it and send them a message with a reason on the screen. My 4k content are in a folder path with 4K in the name so I am hoping to capture that possibly from the path part of the capture.

 

I have been looking around the SessionsService part of the API and would like to check if this is the part that i need to look into -

"TranscodingInfo": {
            "AudioChannels": 6,
            "AudioCodec": "ac3",
            "Bitrate": 18827060,
            "CompletionPercentage": 7.304118161106082,
            "Container": "ts",
            "Framerate": 36,
            "Height": 2160,
            "IsAudioDirect": true,
            "IsVideoDirect": false,
            "TranscodeReasons": [
                "ContainerBitrateExceedsLimit"
            ],
            "TranscodingPositionTicks": 2246700000,
            "TranscodingStartPositionTicks": 0,
            "VideoCodec": "h264",
            "VideoDecoder": "Automatic software decoder",
            "VideoDecoderIsHardware": false,
            "VideoDecoderMediaType": "HEVC",
            "VideoEncoder": "libx264 Software Encoder",
            "VideoEncoderIsHardware": false,
            "VideoEncoderMediaType": "H.264 (AVC)",
            "Width": 3840
        }

IsVideoDirect = false/true

 

If I could get clarification on that please if I am looking at the correct place for that information?

 

 

Thanks

Edited by spaceman07
Link to comment
Share on other sites

PenkethBoy

you already have height and width info - is that not enough to tell if its 4k or not?

  • Like 1
Link to comment
Share on other sites

spaceman07

Is it possible to have a stream where it is direct playing the 4k video and transcoding the audio? If so I am ok with that but only interested in stopping the stream if it's transcoding the video part.

Link to comment
Share on other sites

PenkethBoy

Yes

 

isaudiodirect looks like what you need to check

 

along with isvideodirect

 

you would have to test this but they look like they tell you what you need

Link to comment
Share on other sites

PenkethBoy

another way would be parental controls to limit certain users to not be able to "see" 4k videos

Link to comment
Share on other sites

spaceman07

I would like them to be able to be able to use 4k but only direct play.

 

So be able to direct play or transcoding for 720/1080p content and direct play only for 4k

Link to comment
Share on other sites

PenkethBoy

ok if parental controls dont work for you then you have enough info to control their access via the info you have in the first post

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