"Video is malformed"/ "Ignore Corrupt NAL" messages but no error event.

RESOLVED INACTIVE

Status

()

RESOLVED INACTIVE
5 years ago
2 months ago

People

(Reporter: djf, Unassigned)

Tracking

18 Branch
ARM
Gonk (Firefox OS)
Points:
---

Firefox Tracking Flags

(blocking-b2g:-)

Details

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Bug 871482 appears to be caused by the way gecko handles a corrupt video file. In particular, the FirefoxOS Video app metadata parser depends on receiving a'seeked' event after setting the playback time. With the attached video, gecko spews lots of errors, but never fires the seeked event or an error event, and the metadata parsing process hangs.  I do get a "metadataloaded" event with this video, but then when I try to seek, I never get my seeked event.

The video does play in Aurora on the desktop but on the phone it doesn't seem to. It seems like we should either get a seeked event or an error event. The bug, I think, is that neither one occurs.

I'll attach the video in question, and also a log of output from a FirefoxOS device. Here are some highlights from the log.  I'm guessing that these first lines are benign:

E/ExtendedExtractor( 4667): Failed to open MM_PARSER_LIB, dlerror = Cannot load library: load_library[1091]: Library 'libmmparser.so' not found 
E/ExtendedExtractor( 4667): Failed to open MM_PARSER_LITE_LIB, dlerror = Cannot load library: load_library[1091]: Library 'libmmparser_lite.so' not found 

Here is the main message I see. These two lines are repeated hundreds of times, starting right after I set the src attribute of the <video> tag tot he blob URL of the corrupt video:

W/OMXCodec( 4667): Ignore Corrupt NAL
E/MPEG4Extractor( 4667): Video is malformed
(Reporter)

Comment 1

5 years ago
Created attachment 752439 [details]
logcat
(Reporter)

Comment 2

5 years ago
Created attachment 752441 [details]
corrupt video
(Reporter)

Comment 3

5 years ago
Sotaro: do you know anything about bugs like this? Or do any of the NZ people at your workweek work on things like this?

Nominating this for leo because it is blocking a blocker.  (I might be able to work around in Gaia, but we should fix it at the source if we can.)
Blocks: 871482
blocking-b2g: --- → leo?
Flags: needinfo?(sotaro.ikeda.g)

Comment 4

5 years ago
(In reply to David Flanagan [:djf] from comment #0)
> The video does play in Aurora on the desktop but on the phone it doesn't
> seem to. It seems like we should either get a seeked event or an error
> event. The bug, I think, is that neither one occurs.

How is it playing on desktop? I wasn't aware 3gp support was there.
I tried attachment 752441 [details] on my Galaxy s3. It show the icon of the video, bug show "unable to load the video".
Flags: needinfo?(sotaro.ikeda.g)
(In reply to Sotaro Ikeda [:sotaro] from comment #5)
> I tried attachment 752441 [details] on my Galaxy s3. It show the icon of the
> video, bug show "unable to load the video".

It was from Gallery app.
I checked how gonk and gecko works with the video.

Following logs are internal log. Corrupt NALs and malformed NALs are ignored internally OMXCodec and MPEG4Extractor.

>W/OMXCodec( 4667): Ignore Corrupt NAL
>E/MPEG4Extractor( 4667): Video is malformed
Gecko succeeded to extract metadata from the video without an error. Though, no frame is extracted from it. To complete seek, at least one frame read at seek position is necessary. That is the reason why 'seeked' event was not emitted.

Comment 9

5 years ago
We wouldn't block on malformed videos unless this was a common occurence.
blocking-b2g: leo? → -
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.