Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
adamkaz
Level 7

4k Video / Audio Not Synced

Has anyone successfully viewed 4k content (on Roku4) using the SDK?

We were able to successfully encode some h265 into HLS through bitcodin (bitcodin.com). However, when played on Roku, the audio track starts playing 3/4 way through the video and continues playing after the video has gone to a black screen.

Any experiences / lessons out there would be useful.

Thanks,
Adam
0 Kudos
3 Replies
Yuriy_OM
Level 7

Re: 4k Video / Audio Not Synced

Adam, your HLS stream contains audio as a separate stream or is it embedded in video TS? Also what manifest version are you using?
0 Kudos
Roku Employee
Roku Employee

Re: 4k Video / Audio Not Synced

Adam, here is some feedback from our Media Service Team:

Confirmed, audio and video timestamps are completely off :

First segment Video starts PTS = 844378
First segment Audio start PTS = 0 (9.381978 sec)

[tmp]$ ffmpeg -i video/segment_0.ts
ffmpeg version 2.6.3- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
Duration: 00:00:04.00, start: 9.381978, bitrate: 856 kb/s


[tmp]$ ffmpeg -i audio/segment_0.ts
ffmpeg version 2.6.3- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
Duration: 00:00:04.01, start: 0.000000, bitrate: 216 kb/s

audio and video data does not match, so we can not play back properly, audio and video segments MUST be in sync when audio is in a separate stream

Correction :

First segment Video starts PTS = 844378 (9.381978 sec)
First segment Audio start PTS = 0 (0 sec)



- Joel
0 Kudos
adamkaz
Level 7

Re: 4k Video / Audio Not Synced

Joel - Thanks for the reply!
I'll look into it with our encoding team.
0 Kudos