Closed Bug 1203567 Opened 9 years ago Closed 9 years ago

[FxOS] Video APP keeps loading if a broken video file is copied to sdcard

Categories

(Core :: Audio/Video: Playback, defect)

37 Branch
ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1198169

People

(Reporter: bwu, Unassigned)

Details

Attachments

(1 file)

Device:
Aries with my local build.

STR:
1. Copy the attached file to sdcard.
2. Enter the video App 

Actual result:
Video App keeps showing loading message (........), doesn't show new thumbnail and cannot choose other video to play. 

Expected result:
Video App should finish loading and create a new thumbnail.
The following is the info I got from ffmpeg -i

ffmpeg version 2.2.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun  3 2014 06:51:16 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[sdp @ 0x7fb51c016e00] Could not find codec parameters for stream 0 (Video: h264, 320x240): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, sdp, from '/Users/blake/Documents/video/h264_192kbps_aacPlus_24kbps_3sec_QVGA_10_fps.3gp':
  Metadata:
    title           : /h264_192kbps_aacPlus_24kbps_3sec_QVGA_10_fps.3gp
  Duration: 00:01:59.13, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0: Video: h264, 320x240, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac, 24000 Hz, stereo, fltp
I can see this problem on Flame as well. 
It looks like Video App cannot get onloadedmetadata or onerror event, so it keeps showing the loading message. It might get stuck in MetadataRead in Gecko side.
Summary: [FxOS] Video APP keeps loading if a new and broken video file is in sdcard → [FxOS] Video APP keeps loading if a broken video file is copied to sdcard
After applying the attachment 8660778 [details] [review] in bug 1200401 to my code base, this bug is gone.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: