# Mp4 not playing and how 2 install VLC?

**URL:** <https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233>\
**Category:** Rocky Linux Help & Support\
**Created:** [October 7, 2021, 3:48am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233 "2021-10-07T03:48:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 3:48am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/1 "2021-10-07T03:48:25Z")

</div>

Hi! Did the latest current desktop install, and can not get mp4 files to play. Also can not seem to figure out how to install VLC. (both are easy to do on fedora or pop os) Every googled answer to my probs does not seem to work on my machine. Any help would be greatly appreciated. ///edit – it prolly don’t matter with my questions, but machine is a dell g5 gaming rig, 64mb ram, i-9 cpu and nvme m.2 ssd nvidia gpu --its all very modern. So far i have installed pop os and fedora on it without issue.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [October 7, 2021, 8:52am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/2 "2021-10-07T08:52:20Z")

</div>

Hi,

VLC has some instructions: [VLC media player for Red Hat Enterprise Linux - VideoLAN](https://www.videolan.org/vlc/download-redhat.html)

Usually, to get better help with “probs” one should describe them with more details. Verbatim error messages, etc.

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 9:40am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/4 "2021-10-07T09:40:33Z")

</div>

Upon trying to run the first line from the website, my console returned

Rocky Linux 8 - Media - BaseOS 0.0 B/s | 0 B 00:00  
Errors during downloading metadata for repository ‘media-baseos’:

- Curl error (37): Couldn’t read a file:// file for file:///media/Rocky/BaseOS;file:///media/cdrom/BaseOS;file:///media/cdrecorder/BaseOS/repodata/repomd.xml [Couldn’t open file /media/Rocky/BaseOS;file:///media/cdrom/BaseOS;file:///media/cdrecorder/BaseOS/repodata/repomd.xml]  
Error: Failed to download metadata for repo ‘media-baseos’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 9:44am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/5 "2021-10-07T09:44:01Z")

</div>

from this page [VLC media player for Red Hat Enterprise Linux - VideoLAN](https://www.videolan.org/vlc/download-redhat.html) I try the first line from ALL 6, 7, and 8, and not one of them works on Rocky 8.4

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 9:50am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/6 "2021-10-07T09:50:35Z")

</div>

Besides the VLC prob, I am still unable to find a working answer to play mp4 files, vlc or not. That is what I meant to my reference of “probs”- no MP4 and no VLC- two problems.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [October 7, 2021, 9:56am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/7 "2021-10-07T09:56:21Z")

</div>

> [@adelia](#):
>
> Couldn’t read a file

You have enabled repository ‘media-baseos’. It works only when install media (DVD, USB) is mounted on one of the three paths:

- /media/Rocky
- /media/cdrom
- /media/cdrecorder

You apparently don’t have. You have to tell dnf to not use media-baseos (and probably some other repos too):

```auto
sudo dnf config-manager --disable media-baseos
sudo dnf --enablerepo=* clean all

```

Rocky is derived from RHEL **8**. Ignore all material about RHEL 6/7.  
Furthermore, (a) ‘yum’ is alias for ‘dnf’ and (b) Rocky has definition for EPEL as a package. Therefore:

```auto
sudo dnf install epel-release
sudo dnf install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
sudo dnf install vlc

```

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 10:35pm UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/8 "2021-10-07T22:35:17Z")

</div>

Sorry 2 be a pain, i know its annoying 4 u. When i got to sudo dnf install epel-release it failed tho.  
//////////////  
sudo dnf install epel-release  
Rocky Linux 8 - AppStream 4.5 MB/s | 9.1 MB 00:02  
Rocky Linux 8 - BaseOS 3.6 MB/s | 7.5 MB 00:02  
Rocky Linux 8 - Extras 19 kB/s | 11 kB 00:00  
Rocky Linux 8 - Media - AppStream 0.0 B/s | 0 B 00:00  
Errors during downloading metadata for repository ‘media-appstream’:

- Curl error (37): Couldn’t read a file:// file for file:///media/Rocky/AppStream;file:///media/cdrom/AppStream;file:///media/cdrecorder/AppStream/repodata/repomd.xml [Couldn’t open file /media/Rocky/AppStream;file:///media/cdrom/AppStream;file:///media/cdrecorder/AppStream/repodata/repomd.xml]  
Error: Failed to download metadata for repo ‘media-appstream’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 10:38pm UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/9 "2021-10-07T22:38:06Z")

</div>

I can 1) play mp4 files and 2)install VlC fine in pop os or Fedora-34, seems like that should be a common, easy task. I want to switch to rocky tho, and that is the only 2 things holding me back. Can ANYONE else play mp4 files from Rocky or install VLC on rocky? You know, two common and easy tasks that work on every other OS. I know Rocky is advanced, as centos was the boss (even in desktop) in comparison to something like linux mint that can not even properly maintain security updates. I must be missing something here tho- like in initial setup I checkmark desktop, but is there another thing that has to be checkmarked that i did not checkmark before the install? I must be missing something here…

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [October 7, 2021, 11:02pm UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/10 "2021-10-07T23:02:38Z")

</div>

Hi,

Did you get any errors when running these:

> [@jlehtone](#):
>
> ```auto
> sudo dnf config-manager --disable media-baseos
> sudo dnf --enablerepo=* clean all
> 
> ```

Thanks Tom.

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 11:25pm UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/11 "2021-10-07T23:25:31Z")

</div>

No errors on them 2 lines. First line ran, 2nd line returned that it cleaned like 27 files or something.

---

<div class="post-metadata">

**Author:** ![adelia](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@adelia](https://forums.rockylinux.org/u/adelia)\
**Post date:** [October 7, 2021, 11:30pm UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/12 "2021-10-07T23:30:57Z")

</div>

Rocky is not exactly building a reputation for community support, ha ha 🙂 My first question of why mp4’s do not play on rocky was not even acknowledged, and the 2nd question of how to install VlC, which is stupidly easy to do on every other OS is STILL unresolved. It seems that two commonly easy tasks should have a commonly easy answer.

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [October 8, 2021, 7:15am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/13 "2021-10-08T07:15:52Z")

</div>

Hi,

1st question wasn’t ignored, its just that the vlc is the easiest way to get mp4 playback.

Please provide the output of:

`ls /etc/yum.repos.d/`

Thanks Tom.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [October 8, 2021, 7:42am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/14 "2021-10-08T07:42:33Z")

</div>

We forum users are volunteers, who help when we can on our spare time.

You don’t have problem with VLC. You can’t install _anything_.

In the first error message dnf said: _“I can’t access repo media-baseos.”_  
We did solve that by telling dnf to not use media-baseos:  
`sudo dnf config-manager --disable media-baseos`

After that you got a new, different, but similar error, where dnf says: _“I can’t access repo media-appstream.”_  
Logical remedy to that is to tell dnf to not use media-appstream:  
`sudo dnf config-manager --disable media-appstream`

To my understanding Rocky does not enable the media-\* repositories by default. You must have done that, somehow.

---

<div class="post-metadata">

**Author:** ![pajamian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/pajamian/32/715_2.png) [@pajamian](https://forums.rockylinux.org/u/pajamian)\
**Post date:** [October 14, 2021, 8:54am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/15 "2021-10-14T08:54:19Z")

</div>

or just do: `sudo dnf config-manager --disable media\*` to disable all the media repos in one shot.

---

<div class="post-metadata">

**Author:** ![JustSomeone](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@JustSomeone](https://forums.rockylinux.org/u/JustSomeone)\
**Post date:** [October 14, 2021, 12:31pm UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/16 "2021-10-14T12:31:04Z")

</div>

Hello @adelia

check this answer

> [@MPEG-4, AAC decoder, H.264 decoder are required](https://forums.rockylinux.org/t/mpeg-4-aac-decoder-h-264-decoder-are-required/4266/4):
>
> Hello @RL1000 yes you can use rpmfusion repo check this one [Configuration - RPM Fusion](https://rpmfusion.org/Configuration) for command line you need dnf install epel-release to enable the epel repo and the following from the link i mentioned dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm dnf config-manager --enable powertools dnf groupupdate core dnf groupupdate mul…

it will install the required codec to run the mp4 without the need for vlc

if you still need vlc let me know and have a nice day 🙂

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 4:03am UTC](https://forums.rockylinux.org/t/mp4-not-playing-and-how-2-install-vlc/4233/17 "2023-08-25T04:03:51Z")

</div>

Closed on August 25, 2023, 4:03am UTC


