Open Bug 1411766 Opened 7 years ago Updated 2 years ago

mp4{h264} files created with ffmpeg (x11grab device) not playing

Categories

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

56 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: s1svi7gw, Unassigned)

References

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20170824000000

Steps to reproduce:

- Install Firefox 56.0 (Windows, Linux, macOS)
- Install FFmpeg (latest git version or 3.4 or 3.3.4; Linux)
- $ ffmpeg -y -video_size 640x480 -t 3 -framerate 10 -f x11grab -i :0.0 -s 640x480 out.mp4


Actual results:

Firefox reports "Video can't be played because the file is corrupt." as error when trying to open the out.mp4 file created with FFmpeg.

Note: The video file also doesn't play in Safari or QuickTime on Mac OS X/OS X/macOS.


Expected results:

Firefox plays the video file like Google Chrome, Microsoft Edge, ffplay, VLC, mpv, mplayer and probably others do as well.
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
I tried the attached file on Macbook Pro and Windows laptop.
Only Chrome can play that. Edge, Salari, and Firefox cannot play that.
Priority: -- → P3
By using ffmpeg -i 

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test-out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.71.100
  Duration: 00:00:03.00, start: 0.000000, bitrate: 159 kb/s
    Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 640x480, 156 kb/s, 10 fps, 10 tbr, 10240 tbn, 20 tbc (default)
    Metadata:
      handler_name    : VideoHandler


Alfredo, 
Why Firefox cannot play it?
Flags: needinfo?(ayang)
[71949, MediaPlayback #1] WARNING: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - auto mozilla::SupportChecker::AddMediaFormatChecker(const mozilla::TrackInfo &)::(anonymous class)::operator()() const: Decoder may not have the capability to handle the requested video format with YUV444 chroma subsampling.: file /Users/alfredo/mozilla/mozilla-unified/dom/media/MediaFormatReader.cpp, line 1814


See bug 1291742.
Flags: needinfo?(ayang)
Attached image Console log.png
Firefox shows the error message on the "Console". It would be also nice to show the error message on the video control.
> Product: Firefox → Core

Yep, <https://mozilla.logbot.info/firefox/20171026#c13750128> "… reportedly corrupt when browsed by SeaMonkey." More exactly, the on-screen text is: 

> Video can't be played because the file is corrupt.

– that text is visible but can not be selected (side note: maybe an accessibility issue).
(In reply to Blake Wu [:bwu][:blakewu] from comment #5)
> Created attachment 8922597 [details]
> Console log.png
> 
> Firefox shows the error message on the "Console". It would be also nice to
> show the error message on the video control.

I can see the error message on nightly(58.0a1 2017-10-29) now after bug 1412251 landed, could you verify again? Thanks.
See Also: → 1412251
Attached image error in Chinese.png
Ray,
Yeah. I can see the error on nightly but the translation could be wrong...
(In reply to Blake Wu [:bwu][:blakewu] from comment #8)
> Created attachment 8923353 [details]
> error in Chinese.png
> 
> Ray,
> Yeah. I can see the error on nightly but the translation could be wrong...

Thanks :D 

Not sure what do you mean by translation wrong, are you saying in this case it's more reasonable to show MEDIA_ERR_SRC_NOT_SUPPORTED error instead of MEDIA_ERR_DECODE error or just we don't have an accurate translation in Mandarin for that?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: