mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Adjustment for xvid and avc1
To test
This commit is contained in:
parent
cd618131e7
commit
6264090741
1 changed files with 9 additions and 1 deletions
|
@ -129,10 +129,18 @@ class API():
|
||||||
if "Video" in type:
|
if "Video" in type:
|
||||||
videotrack = {}
|
videotrack = {}
|
||||||
videotrack['videocodec'] = mediaStream.get('Codec')
|
videotrack['videocodec'] = mediaStream.get('Codec')
|
||||||
|
if "mpeg4" in videotrack['videocodec']:
|
||||||
|
profile = mediaStream.get('Profile', "")
|
||||||
|
if "Advanced" in profile:
|
||||||
|
videotrack['videocodec'] = "xvid"
|
||||||
|
elif "h264" in videotrack['videocodec']:
|
||||||
|
container = item['MediaSources'][0].get('Container', "")
|
||||||
|
if "mp4" in container:
|
||||||
|
videotrack['videocodec'] = "avc1"
|
||||||
videotrack['height'] = mediaStream.get('Height')
|
videotrack['height'] = mediaStream.get('Height')
|
||||||
videotrack['width'] = mediaStream.get('Width')
|
videotrack['width'] = mediaStream.get('Width')
|
||||||
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "1:1")
|
|
||||||
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
||||||
|
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "1:1")
|
||||||
if len(videotrack['aspectratio']) >= 3:
|
if len(videotrack['aspectratio']) >= 3:
|
||||||
try:
|
try:
|
||||||
aspectwidth, aspectheight = videotrack['aspectratio'].split(':')
|
aspectwidth, aspectheight = videotrack['aspectratio'].split(':')
|
||||||
|
|
Loading…
Reference in a new issue