Closed Bug 1376252 Opened 7 years ago Closed 7 years ago

(desktop linux) Valid MP4 Video does not play: “Video can't be played because the file is corrupt”

Categories

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

54 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1265623

People

(Reporter: flying-sheep, Unassigned)

Details

Attachments

(1 file)

Attached video plot.mp4
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170613235745

Steps to reproduce:

I created a H.264 video with ffmpeg and libx264 with the following command:

ffmpeg -y -framerate 10 -i Rplot%d.png -c:v libx264 plot.mp4


Actual results:

It plays back fine in VLC and Dragon (The KDE video player).

When opening it in desktop Firefox, I see “Video can't be played because the file is corrupt”.


Expected results:

It should play back fine in Firefox as well.
[Child 68910] WARNING: Unable to create a decoder, no platform found.: file /Users/suroxen/codebase/mozilla-central/dom/media/platforms/PDMFactory.cpp, line 243

Got this error when playing the file on Mac.
Flags: needinfo?(jyavenard)
We don't support High 4:4:4 profile and can't (neither the mac nor the windows h264 decoder support it).

Check the FFmpeg encoding FAQ:
https://trac.ffmpeg.org/wiki/Encode/H.264

" You may need to use -vf format=yuv420p (or the alias -pix_fmt yuv420p) for your output to work in QuickTime and most other players. These players only supports the YUV planar color space with 4:2:0 chroma subsampling for H.264 video"
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(jyavenard)
Resolution: --- → INVALID
OK, thank you! i thought that on linux, it should support everything the native libraries do?
(In reply to flying sheep from comment #3)
> OK, thank you! i thought that on linux, it should support everything the
> native libraries do?

We favour consistency across platforms.

Having said that, it's surprising it doesn't work on linux nightly, because 444 format is supported there.
Just as I wrote this, I remembered:
http://searchfox.org/mozilla-central/source/dom/media/platforms/wrappers/H264Converter.cpp#253

this is to enforce consistency on the different platforms.
so you disable perfectly fine functionality just because other platforms don’t have it?

that’s not what i’d think of when i hear “consistency”
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: