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: 
destruk
Streaming Star

Bad encode prevents isFullResult()

MP4: sample overflow at 43182213: read -1711143551 bytes with 10 remaining

How would that be fixed? Would I need to demux the video, crop off 10 bytes from the audio track, and then merge it back over the video? The video plays ok, just with this error it doesn't allow for a full result message to be posted back.
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: Bad encode prevents isFullResult()

The issue isn't that the audio track is longer than video or vice versa. The message indicates that there is an inconsistency in the MP4 metadata that describes the position and size of each "sample" (piece of audio or video data) in the MP4 file. Possibly just reencoding the content would fix it, especially if you use a different encoder, since the encoder that was originally used to create this seems to have a bug. How does 43182213 compare to the size of the file? Is it near the end?

--Mark
0 Kudos
destruk
Streaming Star

Re: Bad encode prevents isFullResult()

It's 10 bytes prior to the end of file. Which encoder would you recommend? I think we're using Adobe Premiere for the initial creation, and then Handbrake to split it into 4 different bitrate streams.
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.