Quantcast
Channel: VideoHelp Forum
Viewing all articles
Browse latest Browse all 45530

WEBM creation with ffmpeg: broken video in MPC-HC and Explorer

$
0
0
Hey,

I’m using ffmpeg to convert a GIF to a WEBM file, like so:

Code:

ffmpeg -i test.gif -r 25 -an -c:v libvpx -crf 23 test.webm
This works pretty well. The produced file is playable in both Firefox and Chrome, and has a decent enough quality for its very small size (compared to the source GIF).

However, when trying to play this file in Media Player Classic Home Cinema (from CCCP—don’t judge me), the video is not displayed correctly. The first frame seems to be fine, but all subsequent ones are mostly white with just a few artifacts appearing where movement is in the video. You can see what it looks like for me in this GIF screencapture (that’s a bit ironic). Also, the file is not rendered with a preview in Windows Explorer (unlike every other video).

Now I don’t really know why this happens, especially as other’s WEBM files—for example those from YouTube—play just fine in MPC-HC. I’ve checked the output file using MediaInfo, and this is what I get:

Code:

General
Unique ID                                : 109982964302111834666886362827577618438 (0x52BDF2CC73BAA4B055C86773E647F006)
Complete name                            : C:\path\to\test.webm
Format                                  : WebM
Format version                          : Version 4 / Version 2
File size                                : 143 KiB
Duration                                : 5s 160ms
Overall bit rate                        : 228 Kbps
Writing application                      : Lavf55.22.100
Writing library                          : Lavf55.22.100

Video
ID                                      : 1
Format                                  : VP8
Codec ID                                : V_VP8
Duration                                : 5s 160ms
Bit rate                                : 212 Kbps
Width                                    : 480 pixels
Height                                  : 360 pixels
Display aspect ratio                    : 4:3
Frame rate mode                          : Constant
Frame rate                              : 25.000 fps
Compression mode                        : Lossy
Bits/(Pixel*Frame)                      : 0.049
Stream size                              : 133 KiB (93%)
Default                                  : Yes
Forced                                  : No

I’ve compared this with the WEBMs, YouTube uses, and the only difference (apart from the obvious things that make out the video) is that those are missing the “Unique ID”, have just the format version “Version 2” (instead of 4 and 2) and list the “overall bit rate mode” explicitely as “variable”.

So I could imagine that the format version ffmpeg creates, 4/2, is somewhat too new or special. Is there a way to generate just a “version 2” file with ffmpeg? Or is the reason for this problem something completely different?

Thanks a lot in advance!

Viewing all articles
Browse latest Browse all 45530

Trending Articles