Jump to content

STRM PlaybackInfo


Recommended Posts

Why is it that STRM files change their container type after first play?

 

How can I tell this is an STRM file after first play?
 

On First Play

PlaybackInfo : {u'PlaySessionId': u'339fd39901034807af06f1118d664a14', u'MediaSources': [{u'SupportsDirectStream': True, u'Container': u'strm', u'RequiresClosing': False, u'MediaStreams': [{u'IsInterlaced': False, u'Index': 0, u'AverageFrameRate': 25, u'DisplayLanguage': u'English', u'Width': 1280, u'VideoRange': u'SDR', u'Codec': u'h264', u'IsForced': False, u'AspectRatio': u'16:9', u'Type': u'Video', u'IsTextSubtitleStream': False, u'Profile': u'High', u'TimeBase': u'1/25000', u'Language': u'eng', u'NalLengthSize': u'4', u'ColorSpace': u'bt709', u'CodecTimeBase': u'1/50', u'ColorTransfer': u'bt709', u'RealFrameRate': 25, u'CodecTag': u'avc1', u'Level': 51, u'ColorPrimaries': u'bt709', u'RefFrames': 1, u'DisplayTitle': u'720p H264', u'BitRate': 14517166, u'IsDefault': True, u'IsAnamorphic': False, u'Protocol': u'File', u'SupportsExternalStream': False, u'Height': 720, u'IsAVC': True, u'PixelFormat': u'yuv420p', u'BitDepth': 8, u'IsExternal': False}, {u'IsInterlaced': False, u'Index': 1, u'DisplayLanguage': u'English', u'Codec': u'aac', u'IsForced': False, u'SampleRate': 48000, u'Type': u'Audio', u'IsTextSubtitleStream': False, u'Profile': u'LC', u'DisplayTitle': u'English AAC stereo (Default)', u'Language': u'eng', u'ChannelLayout': u'stereo', u'SupportsExternalStream': False, u'CodecTimeBase': u'1/48000', u'CodecTag': u'mp4a', u'Level': 0, u'TimeBase': u'1/48000', u'BitRate': 189375, u'IsDefault': True, u'Protocol': u'File', u'Channels': 2, u'IsExternal': False}], u'DefaultAudioStreamIndex': 1, u'SupportsDirectPlay': True, u'Type': u'Default', u'ReadAtNativeFramerate': False, u'RequiresLooping': False, u'Path': u'http://mirrors.standaloneinstaller.com/video-sample/star_trails.mp4'u'RequiresOpening': False, u'Bitrate': 14706541, u'IsRemote': True, u'Name': u'movie', u'RequiredHttpHeaders': {}, u'SupportsTranscoding': True, u'Formats': [], u'Protocol': u'Http', u'IsInfiniteStream': False, u'SupportsProbing': False, u'Id': u'c14f62f38a984301023e5cc30d5f9ffa', u'Size': 0}]}

Subsequent plays

PlaybackInfo : {u'PlaySessionId': u'87156a77c21a42aba59e906c6f6474e3', u'MediaSources': [{u'SupportsDirectStream': True, u'Container': u'mp4', u'RequiresClosing': False, u'DefaultAudioStreamIndex': 1, u'MediaStreams': [{u'IsInterlaced': False, u'Index': 0, u'AverageFrameRate': 25, u'DisplayLanguage': u'English', u'Width': 1280, u'VideoRange': u'SDR', u'Codec': u'h264', u'IsForced': False, u'AspectRatio': u'16:9', u'Type': u'Video', u'IsTextSubtitleStream': False, u'Profile': u'High', u'TimeBase': u'1/25000', u'Language': u'eng', u'NalLengthSize': u'4', u'ColorSpace': u'bt709', u'CodecTimeBase': u'1/50', u'ColorTransfer': u'bt709', u'RealFrameRate': 25, u'CodecTag': u'avc1', u'Level': 51, u'ColorPrimaries': u'bt709', u'RefFrames': 1, u'DisplayTitle': u'720p H264', u'BitRate': 14517166, u'IsDefault': True, u'IsAnamorphic': False, u'Protocol': u'File', u'SupportsExternalStream': False, u'Height': 720, u'IsAVC': True, u'PixelFormat': u'yuv420p', u'BitDepth': 8, u'IsExternal': False}, {u'IsInterlaced': False, u'Index': 1, u'DisplayLanguage': u'English', u'Codec': u'aac', u'IsForced': False, u'SampleRate': 48000, u'Type': u'Audio', u'IsTextSubtitleStream': False, u'Profile': u'LC', u'DisplayTitle': u'English AAC stereo (Default)', u'Language': u'eng', u'ChannelLayout': u'stereo', u'SupportsExternalStream': False, u'CodecTimeBase': u'1/48000', u'CodecTag': u'mp4a', u'Level': 0, u'TimeBase': u'1/48000', u'BitRate': 189375, u'IsDefault': True, u'Protocol': u'File', u'Channels': 2, u'IsExternal': False}], u'Type': u'Default', u'ReadAtNativeFramerate': False, u'RequiresLooping': False, u'Path': u'http://mirrors.standaloneinstaller.com/video-sample/star_trails.mp4'u'RequiresOpening': False, u'Bitrate': 14904205, u'IsRemote': True, u'Name': u'movie', u'RequiredHttpHeaders': {}, u'SupportsTranscoding': True, u'SupportsDirectPlay': True, u'Formats': [], u'Protocol': u'Http', u'IsInfiniteStream': False, u'RunTimeTicks': 212906670, u'SupportsProbing': False, u'Id': u'c14f62f38a984301023e5cc30d5f9ffa', u'Size': 39665059}]}

Link to post
Share on other sites

We put that value on the media source because transcoding features are dependent on that. The way playback is done in our apps, the apps never actually know that it's a strm file.

 

I guess if you must know this information, then what you'd have to do is look at the Path of the original item, not the mediasource, and see if it ends in .strm. That's not the cleanest way, but it will work.

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
×
×
  • Create New...