Log in

View Full Version : [Solved]MP4 and WebM files not working in MPC-HC/BE


hubblec4
20th November 2018, 03:28
I open this thread to avoid double post.

On github (https://github.com/brenopolanski/html5-video-webvtt-example) I found this test files.
MP4 (https://github.com/brenopolanski/html5-video-webvtt-example/blob/master/MIB2.mp4)
WebM (https://github.com/brenopolanski/html5-video-webvtt-example/blob/master/MIB2.webm)

Where is the issue, are the files corrupt?

videoh
20th November 2018, 03:35
The MP4 plays fine for me in MPC-HC and in DGIndexNV.

hubblec4
20th November 2018, 03:43
I use the latest MPC-HC(clsid) with latest external LAV Filters: Can't render file

nevcairiel
20th November 2018, 11:25
Both files play fine for me as well.

manolito
20th November 2018, 14:38
Both files also work nicely on my ancient WinXP computer. The old MPC-HC 1.5.2.3456 neither has problems using the internal filters nor using the external LAV Filters 0.69.0.85.

Tiny Player also plays both files using LAV Filters 0.69.0.85, it only gets the aspect ratio of the WebM file wrong (plays it with 4:3), but this is probably an issue of the player.

MKVToolNix (latest stable version, but replacing the GUI with the old v. 10 GUI) also accepts both files. So I suppose that something must be broken at your end...


Cheers
manolito

hubblec4
20th November 2018, 16:33
OK, it was my fault, I have downloaded the files with a right-click -> save as. Thats wrong.

manolito
20th November 2018, 17:06
Maybe you should change your Windows folder options to always show the "true" file extensions (instead of hiding known extensions)...

Groucho2004
20th November 2018, 18:31
OK, it was my fault, I have downloaded the files with a right-click -> save as. Thats wrong.Right-clicking and saving the link results in a HTML file with .mp4 (.webm) extension. One doesn't even have to look at the content of the file, the small size should give a clue that it's not a video. :rolleyes:

manolito
21st November 2018, 02:08
Right-clicking and saving the link results in a HTML file with .mp4 (.webm) extension.

Not here... (WinXP, either Opera12 or Chrome latest XP version)

https://i.postimg.cc/3RZ0Rt10/GitHub.png (https://postimages.org/)

Right-clicking and saving the link on the top left will save a HTML file. The extension is HTML, cannot be mistaken for a WebM file.

Clicking on the "Download" button to the bottom right is a different story. For an MP4 file this will really download the MP4 file. But for the WebM file this will open a player instead of downloading. This player just plays the audio, though. To download the WebM file you need to right-click the "Download" button and save the link.

The weird thing is that this player which comes up for the WebM file does not seem to be part of the browser as it is identical for Opera and Chrome. Must be part of the GitHub website. Strange...

Cheers
manolito

Groucho2004
21st November 2018, 03:10
Right-clicking and saving the link on the top left will save a HTML file. The extension is HTML, cannot be mistaken for a WebM file.I meant right-clicking the links in the first post which I suppose the OP did.

manolito
21st November 2018, 14:28
I meant right-clicking the links in the first post which I suppose the OP did.

This is true only for Chrome, and I consider it a bug... :devil:
Opera and Internet Explorer both save the files as HTML, and Firefox refuses to save the linked content altogether and issues an error message that the source file could not be read. So all my browsers with the exception of Chrome handle these links correctly.

hubblec4
21st November 2018, 14:51
Maybe you should change your Windows folder options to always show the "true" file extensions (instead of hiding known extensions)...

This is always one of the tasks which I change directly after the Win-installation.
And my downloaded files have the right extensions(.mp4 .webm) but there are some html-bytes in front of the files.

Groucho2004
21st November 2018, 17:33
This is true only for Chrome, and I consider it a bug... :devil:
Opera and Internet Explorer both save the files as HTML, and Firefox refuses to save the linked content altogether and issues an error message that the source file could not be read. So all my browsers with the exception of Chrome handle these links correctly.For me, Firefox, Palemoon and Seamonkey save a HTML file when I select the links in the first post and use "Save as...".

manolito
21st November 2018, 19:52
For me, Firefox, Palemoon and Seamonkey save a HTML file when I select the links in the first post and use "Save as...".

Yes, and this is fine as long as the extension of the saved file is html. I see it as a bug if the saved file is HTML but has an mp4 or webm extension. And this is what Chrome does on my machine, and you did report just this a few posts above:
Right-clicking and saving the link results in a HTML file with .mp4 (.webm) extension