Skip to main content
Participant
December 6, 2012
Question

StageVideo seek not working correctly with h264 on Android 4.x

  • December 6, 2012
  • 1 reply
  • 2622 views

Hi,

My Setup:

MP4 Video encoded with h264, keyframes set at every second

Adobe Air 3.5.0.600, swf-target=17

Device: ASUS Nexus 7 Tablet with Android 4.2, Kernel Version 3.1.10-g22b4fcd

RenderMode: Direct

The Problem:

Using seek while a MP4 video encoded with h264 is paused does not update the video frames.

It only updates the frame when the video is resumed.

Seeking while the video is not paused works, but it doesnt look smooth because the video plays and seeks at the same time and you cannot seek backwards while the video is playing.

I've already finished the iOS Version of my App in March of this year with Adobe AIR 3.2 where the seeking and my code worked without any seeking problems using the same video file.

Information about the problem:

  1. StageVideo is available and is being used
  2. StageVideoState tells me that the video is correctly accelerated
  3. NetStreamStatus tells me that NetStream.seek() is starting and ending, no NetStream.seek.failed
  4. NetStream.time shows me that the video itself is seeking and that the time is correctly updated after every NetStream.seek()

Solutions and workarounds I've already tried (because I really need to finish this app soon):

  1. Using only code needed to playback the video with StageVideo, to make sure its not caused by someting in my code
  2. Using Adobe AIR 3.2 & 3.4, still not working
  3. Using other MP4 videos from the web to make sure it's not only my video
  4. Changed StageDisplayState from fullscreen to normal, to make sure is not only happening in fullscreen mode
  5. Disabled the StageVideoEvent.RENDER_STATE Handler in which I resized the StageVideo.viewport and set the viewport only once with fixed values
  6. Tried using smart seeking with NetStream.inBufferSeek enabled and using either NetStream.seek() or NetStream.step()
  7. Tried different numbers for NetStream.seek()
  8. Using a FLV video file encoded with On2 VP6 codec and a FLV video file I've downloaded from the web.
    Even though someone said this should work it doesn't, the FLV video is not being rendered (StageVideoState also says RENDER_STATUS_UNAVAILABLE) but i can hear the audio.
    I've also tried this with Adobe AIR 3.2 & 3.4
    Seems like another bug.
  9. Fallback with the standard video object and RenderMode CPU works but the performance of updating the video frames while seeking is not good at all because it stutters/lags
  10. Using a F4V video file with h264, the seek doesn't work at all, NetStreamStatus says NetStream.seek.failed

More info about the bug:

This bug was already posted on different occasions for different AIR Versions, for example:

1) https://bugbase.adobe.com/index.cfm?event=bug&id=3373205

This is posted for iOS and somebody posted a comment that it works for Android, but didn't mention which Android Version.

But as I tested it for myself is doesn't work with Android 4.x

2) https://bugbase.adobe.com/index.cfm?event=bug&id=3317626

Mentioned in this one for Adobe AIR 3.4.0.2540.

I've tried both videos which are attached to this post, both showed the same behavior.

Jing Chen commented on the August 30 on the seek bug: "As for the seek issue, this is a third party issue related to the devices, we'll ask Google to help us fix this bug".

The user responed two days ago that seeking is still a bit "iffy" but he seems to use it on an Android phone not a tablet.

3) https://bugbase.adobe.com/index.cfm?event=bug&id=3164920

In this case for Adobe AIR 3.2.0.2080

In his post at the end the user mentions that this bug was a known issue in the release notes for AIR 3.1.0.556, if this is true this would be more than a year ago.

Related to this information I found this in the bugbase: https://bugbase.adobe.com/index.cfm?event=bug&id=3100560

Questions (i really would like some answers):

1) What is the current status regarding this bug and is Adobe currently working on a fix?

2) Any infos on when we can expect a solution for this? I need an answer for my client because he's waiting.

3) Not related to this bug but when can we expect StageVideo for the Desktop? This app i'm working on was also supposed to be released for the Desktop but without StageVideo i can't publish it.

Thanks for reading.

Best Regards

Maciej

This topic has been closed for replies.

1 reply

Maciej_Author
Participant
January 17, 2013

I posted the bug in the bug database: https://bugbase.adobe.com/index.cfm?event=bug&id=3475839

Already got an answer, that this is a known bug and third party related.

As Jing Chen noted, this bug was known since the release of AIR 3.2 and you can find the notes here: http://helpx.adobe.com/flash-player/release-note/release-notes-developer-flash-player.html#main_known_issues

"Seeking while video is paused does not update the frame on Android 4.0 devices(2995454)"

Best Regards

Maciej