30

I have a .mp4 movie (it's an .mp4 file, and the "video codec" is Xvid, and the "audio codec" is mp3) that I want to play, but when I try to open it in MPlayer, it says "The steam is encrypted and decryption is not supported." I tried to apply the answer from this question and this wiki page, but neither worked.

Any suggestions?

The file came from an [apparently] less than reputable site, which I guess I can't link to. :(

I've tried:

sudo apt-get install ubuntu-restricted-extras
sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install w64codecs
sudo apt-get update
Andrew
  • 495

8 Answers8

33

In a terminal, type in sudo apt-get install vlc, press enter, and key in your password when prompted.

VLC Player will play just about anything. If your MP3/MP4 files still do not work, you will need to download the restricted codecs pack. Search for these in Google and use the above command to install them once you find out what the file-name is. I.e., type in sudo apt-get install [filename].

DVD playback is the same as above, you will need the restricted repositories. Again, once you locate them, just type in the above.

EDIT: All of the above, and indeed many other countless codecs and programs can also be installed through the Synaptic Package Manager. To access this, click Systems > Administration > Synaptic Package Manager.

This can be a bit of a headache though, as there are many, many things available, and if you do not know the specific program name or keywords for it used through the search function, it can be difficult.

muru
  • 197,895
  • 55
  • 485
  • 740
godknows
  • 331
  • 1
    It's not necessary to start a root shell first, if you're going to run administration commands as root with sudo. You can skip sudo -s, and just use sudo apt-get install vlc. Please note that it's best to run sudo apt-get update first as this updates local information about what packages are available from where in what versions. This can prevent a variety of installation errors (including some "unmet dependencies" errors), and also ensures you get the latest version provided by your enabled software sources. – Eliah Kagan Mar 21 '13 at 12:21
  • 1
    No it will not but dragging the file into Firefox plays it. – NoBugs Jan 17 '21 at 04:23
2

My solution was to go to Tools > Preferences > Video, make sure Enable video and Window decorations were checked, then set the Output drop-down menu to X11 video output (XCB).

See this answer for more information.

1

Dragging and dropping the file in Chrome/Chromium browser also works.

1

Install Totem, the default GNOME video player:

sudo apt-get install totem
1

Play MP4 file in Ubuntu 20.04 without Install vlc

sudo apt-get update
sudo apt-get install libdvdnav4 libdvdread7 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
sudo apt-get install ubuntu-restricted-extras

source

1

Try xine or VNC media players, My personal choice is xine because it uses very little resources. Both are in the repository. Edit, sorry, did not see comment above. Where did the file come from? Can you post a link to it? Is it a pay to view movie?

deleted
  • 2,479
1

It's probably protected by DRM (Digital Rights Management). Quite a number of the songs and such are DRM protected if the origical source is from iTunes etc.

The answers given here possibly applies to you as well.

0

I uses either VLC or SMPlayer, but you need to have all the correct codec, for your issue of the error messages, there are many threads around but perhaps you could scan thru each of those

http://www.google.com/search?client=ubuntu&channel=fs&q=mp4+video+The+stream+is+encrypted+and+decryption+is+not+supported.&ie=utf-8&oe=utf-8

d4v1dv00
  • 171