Closed andreasgangso closed 3 months ago
Note: Check if this is consistent with the SMIL file. We have done some changes in how the files are transcoded so the ordering could be dependent on that.
ill investigate a little
We are filling up the audio tracks into the video files, starting with the lowest quality (180p) But its max 16 audio tracks per video file.
Issue is basically that the 17th language gets put into the next quality, and the ordering is not consistent, so the 270p can be at the top:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<smil>
<head>
<meta name="formats" content="mp4"></meta>
</head>
<body>
<switch>
<video src="SC24_TILBAKEBLIKK_SEQ_480x270.mp4" includeAudio="true" systemLanguage="tam" audioName="Tamil"></video>
<video src="SC24_TILBAKEBLIKK_SEQ_960x540.mp4" includeAudio="false" systemLanguage="" audioName=""></video>
<video src="SC24_TILBAKEBLIKK_SEQ_1920x1080.mp4" includeAudio="false" systemLanguage="" audioName=""></video>
<video src="SC24_TILBAKEBLIKK_SEQ_1280x720.mp4" includeAudio="false" systemLanguage="" audioName=""></video>
<video src="SC24_TILBAKEBLIKK_SEQ_640x360.mp4" includeAudio="false" systemLanguage="" audioName=""></video>
<video src="SC24_TILBAKEBLIKK_SEQ_320x180.mp4" includeAudio="true" systemLanguage="nor,deu,nld,eng,fra,spa,fin,rus,por,ron,tur,pol,hun,slv,cmn,hrv" audioName="Norwegian,German,Dutch,English,French,Spanish,Finnish,Russian,Portuguese,Romanian,Turkish,Polish,Hungarian,Slovenian,Simplified Chinese,Croatian"></video>
</switch>
</body>
</smil>
Here, tamil gets picked as the default lang and the rest gets put below it. I'm assuming the fix is simply to order the qualities correctly.
Older videos, e.g. https://app.bcc.media/episode/2706, has correct audio ordering Newer videos, e.g. https://app.bcc.media/episode/2716 has random audio ordering
Video ordering for both of them could be better, by putting 540p first and then ascending from 180p. But this can be split into a separate issue.
Example (https://app.bcc.media/episode/2716)