web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

cookpad.com - video doesn't play

Open karlcow opened this issue 11 years ago • 20 comments

URL: http://cookpad.com/recipe/1128628 Browser / Version: Firefox 39.0 Operating System: Android Problem type: Video doesn't play

Steps to Reproduce

  1. Navigate to: http://cookpad.com/recipe/1128628
  2. 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

karlcow avatar May 06 '15 17:05 karlcow

cc @hallvors for analysis of the Video issue.

miketaylr avatar May 07 '15 20:05 miketaylr

Mozilla Japan has contact. Will contact them.

kudodo avatar May 13 '15 09:05 kudodo

@karlcow does that video play anything in your Firefox on Android if you load it directly? It doesn't for me.

hallvors avatar May 14 '15 11:05 hallvors

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.

hallvors avatar May 14 '15 12:05 hallvors

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

karlcow avatar May 14 '15 12:05 karlcow

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.

karlcow avatar May 14 '15 12:05 karlcow

Plays fine in Chrome too

hallvors avatar May 14 '15 12:05 hallvors

No idea why the MP4 won't play in Android, maybe @cpearce or @eamsen can take a peek at the file.

AaronMT avatar May 14 '15 15:05 AaronMT

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}]

miketaylr avatar May 19 '15 18:05 miketaylr

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}]

eamsen avatar May 20 '15 15:05 eamsen

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.

sagrid avatar May 20 '15 17:05 sagrid

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 avatar May 20 '15 17:05 karlcow

@karlcow hi Karl! let me find the right person and see if they can shed any light on this. cheers

tapster avatar May 21 '15 05:05 tapster

Hi @karlcow adding @yoshiori to this issue. He knows all about Cookpad video encoding! Hope you guys can resolve the issue! cheers

tapster avatar May 22 '15 03:05 tapster

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.

yoshiori avatar May 22 '15 04:05 yoshiori

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.

miketaylr avatar May 22 '15 16:05 miketaylr

I'm closing this - based on the assumption that this is a Gecko bug. No outreach should be necessary -

hallvors avatar May 23 '15 21:05 hallvors

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

miketaylr avatar Jun 02 '15 15:06 miketaylr

Hi @miketaylr, Our video's settings is this. 20150603171157_9983950dd488970b45bc832c6f62db2bd07e9f7d

yoshiori avatar Jun 03 '15 09:06 yoshiori

Thanks again @yoshiori!

miketaylr avatar Jun 03 '15 15:06 miketaylr