Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
adamkaz
Channel Surfer

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 3
Yuriy_OM
Visitor

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
RokuJoel
Binge Watcher

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
Channel Surfer

Re: 4k Video / Audio Not Synced

Joel - Thanks for the reply!
I'll look into it with our encoding team.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.