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

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

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