2014-04-28, 21:12
Is there a way to check that the video output of the media codec is valid?
I have a transport stream file (h.264 video) that I am trying to play back. The problem is that the first part of the file is corrupted (~700 KB). When I start play back from the beginning of the file, I get a black screen. However, if I seek past the beginning of the file the video starts playing back normally. It is as if the hw video decoder gets in a bad state and is reset somehow after a seek operation.
Also if I disable the media codec from the settings screen and then try to play back the file, the video will play back (although on my device the sw play back doesn't keep up).
The question I have is if there is a way to tell programmatically if the output of the hardware decoder is good or not?
Any thoughts on this?
I have a transport stream file (h.264 video) that I am trying to play back. The problem is that the first part of the file is corrupted (~700 KB). When I start play back from the beginning of the file, I get a black screen. However, if I seek past the beginning of the file the video starts playing back normally. It is as if the hw video decoder gets in a bad state and is reset somehow after a seek operation.
Also if I disable the media codec from the settings screen and then try to play back the file, the video will play back (although on my device the sw play back doesn't keep up).
The question I have is if there is a way to tell programmatically if the output of the hardware decoder is good or not?
Any thoughts on this?