Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded some videos (both mp4 and avi) and I am unable to play them both in Movie Player and VLC.

In Movie Player, it displays error message saying "Could not determine type of stream".

When I see the properties of those video files, there is no information on 'Audio/Video' tab. There should be information about audio and video codec, bitrate, etc.

Are these videos corrupt? Or, am I missing some codecs?

share|improve this question

6 Answers 6

My solution was to go to Tools > Preferences in VLC and, in the Video tab:

  • Check the box for Enable video (if it's unchecked).
  • Check the box for Window decorations (if it's unchecked).
  • Set the Output drop-down menu to X11 video output (XCB).

Then Save your changes. That may fix the problem.

enter image description here

share|improve this answer

You are probably missing the codecs, which may be patented and are not included in Ubuntu by default.

Installing ubuntu-restricted-extras, via sudo apt-get or via the Software Center by clicking this link should solve your problem.

share|improve this answer
    
Codecs are prepacked with vlc , so the possible reason is videos are corrupted –  Tachyons Jul 21 '12 at 10:35

Codecs are prepacked with vlc , so the possible reason is videos are corrupted , If you wanna try your luck ,try to play the video using mplayer

share|improve this answer
up vote 1 down vote accepted

Didn't mention that I was downloading the video files from torrent. Didn't feel to mention it over here because my torrent client shows that it has been downloaded 100%.

I was using qBittorrent Bittorrent client to download the video files. It shows 100% completed. But I was not able to play those video files.

Then I tried to open the torrent file (putting the download location same as that of qBittorrent download location) with Transmission Bittorrent client, the default Bittorrent client in Ubuntu.

To my surprise, Transmission shows that the video file is downloaded 99.8% only. It then downloaded the rest 0.2% and now I am able to play those video files.

Never thought that the torrent client can also be a reason for video files not being played. Hope this issue will help others having similar kind of problem.

share|improve this answer

uninstalling VLC with softwaremanager and then reinstall it from getdeb.net. It works fine now on .mov and .mp4 and the .avi etc. files

share|improve this answer
    
Worst advice ever –  enedil Jul 31 at 18:02

For some reason VLC was crashing on start when opening .mp4 files on Ubutuntu 14.04.

This may not work for others but it worked for me:

sudo apt-get update
sudo apt-get remove --purge vlc
sudo apt-get install vlc

I would try upgrading before doing this and seeing if you need to updateVLC. I didn't need to update it, just had to reinstall because VLC became currupt somehow. Could have possibly been my preferences in VLC got messed up some how (I never touched them).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.