.264

264 File

Raw H.264 / AVC Video Elementary Stream (DVR/CCTV export)
Ask a question
QUICK ANSWER

A .264 file is a raw H.264 (AVC) video stream, most commonly exported by a CCTV camera, DVR, or NVR. It contains video only - no audio, no container, no timing data - which is why most players refuse it or show no duration. VLC can usually play it directly. To make it work everywhere, remux it to MP4 with ffmpeg in seconds: ffmpeg -i in.264 -c copy out.mp4.

Developer: ITU-T / ISO-IEC (H.264/MPEG-4 AVC); files written by CCTV DVRs, NVRs, cameras and encoders Category: Video Files Open standard MIME: video/h264
OPENS ON Windows macOS Linux
Related: .DAV · .MKV · .MP4 · .H264

On this page

19k+ extensions indexed
Last reviewed Aug 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the 264 file format?

Files with the .264 extension contain raw H.264/AVC video data, typically exported by CCTV cameras, IP cameras, NVRs, or DVR devices. .264 files can also be produced as an intermediate output by video ripping or conversion tools; in those cases the files are typically temporary. Data in a .264 file is encoded using the H.264/AVC codec (MPEG-4 Part 10).

A .264 file is a raw elementary stream - it contains no container wrapper, no audio track, and no timing metadata. Each NAL unit is preceded by a start-code prefix (00 00 00 01). Because there is no container, many media players refuse to open .264 files directly or play them at incorrect frame rates.

.264 files can be transcoded and multiplexed - that is, converted into more widely supported formats such as AVI or MKV. FFmpeg handles this with: ffmpeg -i input.264 -c:v copy output.mp4. Files with the .264 extension can also be opened directly on the recording device or by using software supplied with the device by the manufacturer. The format is functionally identical to .h264 - DVR and NVR firmware simply tends to use .264 as the file extension.

Security & safety

RISK: LOW

A raw .264 stream is inert video data, not executable, so it's safe to play and remux. Two practical notes: crafted streams have occasionally triggered decoder bugs, so keep VLC/ffmpeg updated; and because surveillance exports can be evidence, remux with '-c copy' (lossless) rather than re-encoding if you need to preserve the original frames. Online converters upload your footage to a third party - for CCTV/private video, remux locally with ffmpeg.

Format details

in a nutshell
FULL NAMERaw H.264 / AVC Video Elementary Stream (DVR/CCTV export)
DEVELOPERITU-T / ISO-IEC (H.264/MPEG-4 AVC); files written by CCTV DVRs, NVRs, cameras and encoderssince H.264/AVC standard finalized 2003 (ITU-T Rec. H.264 / ISO/IEC 14496-10)
CATEGORYVideo Files
MIME TYPEvideo/h264
TYPERaw H.264 elementary stream (no container, no audio, no timing metadata) - same as .h264
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
00000001
ASCII
····
A raw .264 stream is a sequence of NAL units separated by the start-code prefix 00 00 00 01 (or the 3-byte 00 00 01). The first NAL is usually an SPS (byte 0x67) then PPS (0x68). This is NOT a container signature - there is no ftyp/RIFF/box header, no audio and no duration, which is why players that expect a container often refuse the file. Identical format to .h264; the .264 extension is the variant DVRs/NVRs tend to use.

Programs that open 264 files

Windows2 apps
VLC media player Open-source Drag the .264/.h264 onto VLC; if it won't play, set Preferences → Input/Codecs → Demuxers → 'H264 video demuxer'.
FFmpeg Open-source Remux losslessly: 'ffmpeg -i in.264 -c copy out.mp4' (add '-r 25' if there's no timing). Use out.mkv if MP4 errors.
macOS2 apps
VLC media player Open-source Open the raw stream in VLC; for sharing, remux to MP4 with ffmpeg.
FFmpeg Open-source 'ffmpeg -i in.264 -c copy out.mp4' wraps the stream in a container without re-encoding.
Linux2 apps
VLC media player Open-source Play directly, or use mpv; remux with ffmpeg for a portable file.
FFmpeg Open-source 'ffmpeg -i in.264 -c copy out.mp4' - the standard remux on Linux.

Technical details

deep spec
Container typeRaw elementary stream - no container wrapper, no audio, no duration metadata
CodecH.264/AVC (MPEG-4 Part 10 / ITU-T H.264)
MIME typevideo/h264
File magic (offset 0)00 00 00 01 (4-byte NAL start code) or 00 00 01 (3-byte variant)
First NAL unit sequenceSPS (0x67) → PPS (0x68) → IDR slice (0x65) → non-IDR slices (0x41)
AudioNone - video only; audio must be added separately when muxing into a container
Timing metadataAbsent - frame rate must be supplied externally at mux or playback time
Supported profilesBaseline, Main, High (High Profile most common in modern DVR/NVR hardware)
Typical export frame rates15, 25, or 30 fps (standard DVR/NVR recording rates)
Equivalent extension.h264 - identical bitstream; .264 is the convention used by DVR/NVR firmware
Common recording resolutions720p (1280×720) to 4K (3840×2160), depending on the recording device
Primary originCCTV cameras, IP cameras, DVRs, NVRs, and hardware H.264 encoders
ReleasedH.264/AVC standard finalized 2003 (ITU-T Rec. H.264 / ISO/IEC 14496-10)
Open standardYes · royalty-free
Specificationwww.itu.int

264 conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with 264 files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about 264 files.

Frequently asked questions

How do I play a .264 file?
Use VLC media player - it plays raw H.264 streams directly (if needed, pick the 'H264 video demuxer' in Preferences). Most other players fail because the file has no container.
How do I convert a .264 file to MP4?
Remux it with ffmpeg: 'ffmpeg -i input.264 -c copy output.mp4'. This wraps the existing video in an MP4 container with no re-encoding and no quality loss. Add '-framerate 25' if playback speed is wrong.
Is .264 the same as .h264?
Yes - both are the same raw H.264 elementary stream, just different file extensions. DVRs and CCTV systems tend to write '.264'; encoders often write '.h264'. Treat them identically: play in VLC, remux to MP4 with ffmpeg.
Why is there no sound in my .264 file?
A raw H.264 stream is video only - it carries no audio track by design. If your CCTV recording had audio, it was either a separate file or in a different container export.
Why won't my .264 file open in Windows Media Player?
It's a raw elementary stream with no container, which WMP can't read. Open it in VLC, or remux it to MP4 with ffmpeg first; then it plays in any player.
My converted .264 plays too fast or too slow - how do I fix it?
The raw stream has no timing info, so the muxer guessed the frame rate. Re-remux specifying it: 'ffmpeg -framerate 25 -i in.264 -c copy out.mp4' (use your camera's actual fps).

References

1ITU-T H.264 - Advanced video codingwww.itu.int
2VideoLAN - VLC media playerwww.videolan.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.DAVDVR365 / Dahua DVR Video File (DHAV stream)
.MKVMatroska Video
.MP4MPEG-4 Part 14 Video File
.H264Raw H.264 / AVC Video Elementary Stream
.VOBDVD Video Object File
.SWFSmall Web Format (Shockwave Flash)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z