Closed Bug 765977 Opened 7 years ago Closed 7 years ago

h.264 and playing mp4 content within the video app in B2g

Categories

(Core :: Audio/Video, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED WORKSFORME
blocking-basecamp +

People

(Reporter: onecyrenus, Assigned: cajbir)

References

Details

(Keywords: feature, Whiteboard: [WebAPI:P0][LOE:S])

The general repro for this is simple..

Build a new version of gaia:

./build.sh gaia && ./flash.sh gaia
Load the video app on your b2g device. 

Then copy gizmo2.mp4 to /mnt/sdcard/videos



----
I/OmxPlugin( 4168): channelCount: 1 sampleRate: 48000
I/OMXCodec( 4168): [OMX.google.h264.decoder] AVC profile = 77 (Main), level = 13
I/OMXCodec( 4168): [OMX.google.h264.decoder] video dimensions are 320 x 240
I/OMXCodec( 4168): [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)
I/OmxPlugin( 4168): stride not available, assuming width
I/OmxPlugin( 4168): slice height not available, assuming height
I/OmxPlugin( 4168): rotation not available, assuming 0
I/OmxPlugin( 4168): width: 320 height: 240 component: OMX.google.h264.decoder format: 19 stride: 320 sliceHeight: 240 rotation: 0
E/SoftAVC ( 4168): Decoder failed: -2
E/OMXCodec( 4168): [OMX.google.h264.decoder] ERROR(0x80001001, -1007)
I/OmxPlugin( 4168): channelCount: 2 sampleRate: 48000
E/GeckoConsole( 4168): Content JS ERROR at http://video.gaiamobile.org/js/video.js:58 in anonymous: file = gizmo2.mp4
E/GeckoConsole( 4168): Content JS ERROR at http://video.gaiamobile.org/js/video.js:83 in anonymous: vid duration = 5.589333
E/GeckoConsole( 4168): [JavaScript Error: "NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMMozURLProperty.createObjectURL]" {file: "http://video.gaiamobile.org/js/video.js" line: 136}]
This is a Samsung SII device, running the latest version of b2g. 

This needs to be verified on a new device before a dev looks at it
Do webm videos work using the same approach?
Chris WebM videos work using this approach. 

inside gaia you just need to make install-test-media 

To install the gizmo2.mp4.
Summary: h.264 and playing apps within the video app in B2g → h.264 and playing mp4 content within the video app in B2g
blocking-basecamp: --- → ?
blocking-basecamp: ? → +
Chris Double, should this be assigned to you?
Assignee: nobody → chris.double
So to give an update on where we are at now. 

08/27/12 -Otoro Daily build
---Mp4 video playback is occurring.  However there is significant horizontal banding through the video content, making the content not so watchable, but a definite improvement over where we were at last week. 

I think possibly this bug will end up with edwin flores ?
(In reply to dclarke@mozilla.com  [:onecyrenus] from comment #5)
> ---Mp4 video playback is occurring.  However there is significant horizontal
> banding through the video content, making the content not so watchable, but
> a definite improvement over where we were at last week. 

Is it possible to get a screenshot or photo? Have you got kernel update 7 applied? I'm assuming not since it just crashes for me on kernel7. With http://cd.pn/hwfix.patch applied I get playback on kernel update 7 but stuttering audio.
https://docs.google.com/open?id=0B8tsg__lnySwa2lXcVJFZURiNXc

I believe this should allow you to view, one video is the gizmo video, another is big buck bunny. 

I am assuming i have kerenel update 7 applied by virtue of the e-mail i received..
I forwarded the contents of the e-mail to you, please respond on that thread if you don't feel the information is correct.
Whiteboard: [WebAPI:P0]
Keywords: feature
Whiteboard: [WebAPI:P0] → [WebAPI:P0][LOE:S]
Depends on: 791164
With bug 791164 and bug 791167 workarounds applies I can play H.264 videos (gizmo2.mp4) in the video app.
Status: NEW → ASSIGNED
Depends on: 791167
Changed dependency to bug 759506 as that's our main target to achieve video playback in the video app now.
Depends on: 759506
No longer depends on: 791164, 791167
This bug, as written, is already fixed.  \o/
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.