cookpad.com - video doesn't play
URL: http://cookpad.com/recipe/1128628 Browser / Version: Firefox 39.0 Operating System: Android Problem type: Video doesn't play
Steps to Reproduce
- Navigate to: http://cookpad.com/recipe/1128628
- Go down until you reach レシピ動画(2分00秒)There is a video player. Tap on the arrow play button.
Expected Behavior: The video plays.
Actual Behavior: The video shows an infinite wheel.
The player is at #tonyu_player_1
The video format is valid.
https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4
<video
src="https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4"
webkit-playsinline=""
x-webkit-airplay="allow"></video>
country: jp
cc @hallvors for analysis of the Video issue.
Mozilla Japan has contact. Will contact them.
@karlcow does that video play anything in your Firefox on Android if you load it directly? It doesn't for me.
Videos on cookpad.com - like http://cookpad.com/videos/863 - play just fine for me in Firefox on Desktop and on Firefox OS - however, I haven't found any build of Firefox on Android that will play these videos, not even when I load the URL of the video directly. Either, we get a never-ending loading animation, or (in nightly builds) an animation that ends in an error message: "Error loading media: File could not be played". This seems like a core problem with decoding those videos.
first testing on the CLI if the file still exists
→ http HEAD https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4
HTTP/1.1 200 OK
Accept-Ranges: bytes
Connection: keep-alive
Content-Length: 10842842
Content-Type: video/mp4
Date: Thu, 14 May 2015 12:20:53 GMT
ETag: "369eff8ce3858fc8193c69a11ac93693"
Last-Modified: Fri, 17 Apr 2015 00:42:37 GMT
Server: AmazonS3
x-amz-id-2: tyJZH9EHHjsg/XzPCgjsDUbMpdTC1DGzeULuSa7dMcj4sukWT3tK3XMEpStewrgpL3oIAJb35cA=
x-amz-request-id: 2F2A5D4BCA6A840E
ok let see on Firefox Android.
window.location = 'https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4'
ah indeed! @hallvors I received a
video can't be played because the file is corrupt.
- It is working in Firefox
39.0a2 (2015-05-11) Desktop - It is NOT working in Firefox
Android; Mobile; rv:40.0
To be sure,
- I started UCWeb on the same device and copy/paste the same URI. No issue this is playing perfectly.
- On Android Browser, it didn't work. only the music is playing.
Plays fine in Chrome too
No idea why the MP4 won't play in Android, maybe @cpearce or @eamsen can take a peek at the file.
I get the following from logcat when I open the mp4 directly in Nightly:
W/GeckoConsole( 8090): [JavaScript Warning: "Media resource https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4 could not be decoded." {file: "https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4" line: 0}]
There is a media codec error:
I/OMXClient(11777): Using client-side OMX mux. E/OMXMaster(11777): A component of name 'OMX.qcom.audio.decoder.aac' already exists, > ignoring this one. I/OMXClient(11777): Using client-side OMX mux. E/OMXMaster(11777): A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one. W/SoftAAC2(11777): aacDecoder_ConfigRaw decoderErr = 0x2003 E/ACodec (11777): [OMX.google.aac.decoder] ERROR(0x80001001) E/ACodec (11777): signalError(omxError 0x80001001, internalError -2147483648) E/MediaCodec(11777): Codec reported err 0x80001001, actionCode 0, while in state 6 I/AndroidNativeWindow(11777): void* NativeWindowLibrary::ANativeWindow_fromSurface(JNIEnv*, jobject): env=0xaed1adc0, surface=0x100d72 I/OMXClient(11777): Using client-side OMX mux. I/OMX-VDEC-1080P( 188): component_init: OMX.qcom.video.decoder.avc : fd=20 I/OMX-VDEC-1080P( 188): Capabilities: driver_name = msm_vidc_driver, card = msm_vdec_8974, bus_info = , version = 1, capabilities = 4003000 I/OMX-VDEC-1080P( 188): omx_vdec::component_init() success : fd=20 I/Gecko (11777): [11777] WARNING: exiting decoder loop due to exception: file /home/esawin/dev/gecko/dom/media/platforms/android/AndroidDecoderModule.cpp, line 461 I/Gecko (11777): [11777] WARNING: Decoder=82f786b0 Decode error, changed state to ERROR: file /home/esawin/dev/gecko/dom/media/MediaDecoderStateMachine.cpp, line 2188 I/Gecko (11777): Initializing context 0x7f4bd460 surface 0x7f4b4260 on display 0x1 I/Gecko (11777): Can't find symbol 'GetActiveUniformName'. I/Gecko (11777): [11777] ###!!! ASSERTION: GL supports ARB_uniform_buffer_object without supplying its functions.: 'Error', file /home/esawin/dev/gecko/gfx/gl/GLContext.cpp, line 1333 I/Gecko (11777): [11777] WARNING: uniform_buffer_object marked as unsupported: file /home/esawin/dev/gecko/gfx/gl/GLContextFeatures.cpp, line 768 W/GeckoConsole(11777): [JavaScript Warning: "Media resource https://video.cpcdn.com/cookpad/recipe_video/602/2b092b43e78aa332a4ff373d62b8298d/low.mp4 could not be decoded." {file: "http://cookpad.com/recipe/1 128628" line: 0}]
The file is corrupted, says FF41. Double tap for inner view, however first tap trigger play button and there is the glitch. This kind of player has something to do with YouTube (app) player echo so a file is playable either "out" or "in" and this behavior is detected in Chrome Dev also - in this case has something to do with Webrtc.
Miles @tapster (I'm Karl we met a couple of times at RideTheLightning) Do you know who could help us with this issue at Cookpad? We are wondering if it's only one file or if there are more videos in this case.
Thanks.
@karlcow hi Karl! let me find the right person and see if they can shed any light on this. cheers
Hi @karlcow adding @yoshiori to this issue. He knows all about Cookpad video encoding! Hope you guys can resolve the issue! cheers
Hi there.
Our video is encoding by Amazon Elastic Transcoder.
MP4 file detail is...
| Type | Codec |
|---|---|
| Video | H.264 |
| Audio | AAC |
You can find other videos in cookpad/videos.
ex.
- http://cookpad.com/videos/933
- https://video.cpcdn.com/cookpad/recipe_video/666/80d40c9c683cb6706db968f2ec33d181/low.mp4
- http://cookpad.com/videos/836
- https://video.cpcdn.com/cookpad/recipe_video/580/1c2304f3170bdd43ef5897cf3c8f328c/low.mp4
Please feel free to ask if you have other questions.
Thanks for the info + links @yoshiori! I'm going to file a follow up bug in Bugzilla and will post the link here. For some reason, Firefox for Android does not like these files, but Firefox desktop does. So it seems like our bug (possibly).
edit: filed as https://bugzilla.mozilla.org/show_bug.cgi?id=1167647.
I'm closing this - based on the assumption that this is a Gecko bug. No outreach should be necessary -
Hi @yoshiori, would you be able to share your Elastic Transcoder settings in more detail? We tried to transcode a sample video, but it's possible we picked the wrong settings (there are a lot!). This is what we tested: http://v14d.com/i/556dcc7da33fd.png
Hi @miketaylr, Our video's settings is this.

Thanks again @yoshiori!