Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently bought a Chinese brand DVR (to record security cams). The DVR exports the video files with a ".264" extension. This is my first time ever dealing with this video format.

Anyhow I've been trying to convert the videos to any other format so it will be easier to watch the videos.

The problem is that I could only find one program that can convert and play those files which is Elecard studio something, and even that Elecard studio thing is having trouble with these files, some of them are just making it crash so I can't convert them.

I've tried to find some other programs but I couldn't find anything that can actually play those files.

How can I play or convert these files to another format?

share|improve this question

migrated from Mar 24 '11 at 11:27

This question came from our site for professional and enthusiast programmers.

Typically H.264 encoded video is stored in a container such as mp4. If you have necessary development skills you could investigate using the mp4v2 library from to insert the encoded video into an mp4 container. Once contained in mp4, VLC might even be able to play it. – Ralf Mar 22 '11 at 14:03
What does the file command say about the file? It should be installed on all modern Linux and there's a version for Windows as well. – Joachim Sauer Mar 24 '11 at 8:18
Have you tried ripbot 264? – Lord Loh. Oct 23 '12 at 3:48

Judging from their extension, these videos probably are "raw" h264 files - they contain just the video data, without any audio and outside of the container.

Because they don't contain any headers, media players are unable to understand their contents - however I believe that you can play such files if you declare that they do contain h264 video !

I can see that you downloaded ffmpeg - you could try to play the video with ffplay using something like

ffplay -f h264 test.264

Other video players have similar options to declare the contents of the file to play. Probably vlc also has such an option however I don't have VLC installed and cannot search for it.

In any case, since the Elecard studio is able to handle these files, they will contain h264 video - you can upload a small one somewhere and I will download and try to play it to tell you my conclusions.

share|improve this answer
This worked perfectly for me, thanks. You can also use this to convert the video to another format: ffmpeg -f h264 -i test.264 convertedfilename.avi – edsko Mar 18 '12 at 22:08

My brother has the same issue. I am still working out how to convert these files which are full of errors.

To play the files use mplayer

Run the following commands, if one does not work, attempt the other

mplayer -fps 25 filename.264

mplayer -fps 30 filename.264

You have to run mplayer from a DOS/Command window but the effort is worth it as it will "skip" over the errors allowing you to view the files.

Now for a way to convert these files.

share|improve this answer

If I understand your question, you're looking for software to play .264 format videos? Go to and download the software for the SN501. Included in the software package is R6Viewer. Open R6Viewer and click Open and choose the file you wish to view. If you want to convert to .avi it only seems to work while the video is playing. I can view and convert videos using XP 32bit but can only playback those .avi files on Windows7 x64.

share|improve this answer
If you download the Defender DVR software, it comes with an AVI generator to convert the .264 files to .AVI. – Nathan Moinvaziri Sep 16 '12 at 10:53
both links 404 today, 2013-02-04 – Tom Cerul Feb 4 '13 at 15:12

Download this:

Install NetDVR Run Click Offline Convert to AVI

Files will say they are broken in VLC, but can be repaired.

share|improve this answer

Have you tried using VLC? - it generally plays everything, can to some nifty conversion, and is free.

share|improve this answer
The first thing I tried was VLC, surprisingly it couldn't play the files. – Dan Mar 22 '11 at 12:18
fair enough - how about FFmpeg? – trickwallett Mar 22 '11 at 12:20
Haven't tried FFmpeg yet, I followed the link you provided but couldnt find the download, can you provide the direct link to it please? – Dan Mar 22 '11 at 12:35
Ugh, it doesn't work on ffmpeg too.. – Dan Mar 22 '11 at 12:47
Works on 2.2.1, Ubuntu 15.10. – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Apr 4 at 18:00

Those chinese DVRs usually come with a CD with a bunch of software in it, and one of them is the converter software. See if you've got that CD in the box.

share|improve this answer

This worked for me on Linux:

sudo apt-get install x264

x264 raw_stream.264 -o playable_video.mp4

The MP4 files are playable in VLC and Totem (default video player on Ubuntu) afterwards.

share|improve this answer

Short answer: change the file's extension to .avi.

Long answer:

  1. Go to My Computer
  2. Click organize at the top of the window pane
  3. Click Folder and Search Options
  4. Make sure that hide extensions for known file types is unchecked.
  5. Right click and change the file's extension from .264 to .avi

Then it should work with Media Player, Movie Maker, etc.

share|improve this answer
Not so... These aren't "proper" video files with a container, they're raw h.264 streams – Basic Jan 9 '14 at 17:42

You must log in to answer this question.

protected by Community Jun 27 '12 at 2:50

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?