# Opening .av ip camera video files in Linux

**URL:** <https://linux-tips.com/t/opening-av-ip-camera-video-files-in-linux/777>\
**Category:** Newbie\
**Created:** [November 6, 2019, 8:58pm UTC](https://linux-tips.com/t/opening-av-ip-camera-video-files-in-linux/777 "2019-11-06T20:58:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sputnik](https://linux-tips.com/user_avatar/linux-tips.com/sputnik/32/91_2.png) [@sputnik](https://linux-tips.com/u/sputnik)\
**Post date:** [November 6, 2019, 8:58pm UTC](https://linux-tips.com/t/opening-av-ip-camera-video-files-in-linux/777/1 "2019-11-06T20:58:11Z")

</div>

There are lots of cheap ip cameras in the market which saves the captured video files with .av extension and it can’t be viewed on Linux directly.

When you look at the one of those files with the `file` command, it basically says that plain data file:

```auto
$ file test.av
test.av: data

```

However, if you look at the file with `ffmpeg -i` you can see that it is an raw h264 video:

```auto
$ ffmpeg -i test.av
Input #0, h264, from '20.00.01_M.av':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc

```

You can play this files with specifying `--demux h264` option to **vlc** command like below:

```auto
$ vlc --demux h264 test.av

```

It will be played perfectly.

You can also convert this raw h264 files to another format which will be played without any further actions like that:

```auto
$ ffmpeg -i test.av -codec copy test.mp4
$ file test.mp4
test.mp4: ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]

```

---

<div class="post-metadata">

**Author:** ![tablit](https://linux-tips.com/user_avatar/linux-tips.com/tablit/32/418_2.png) [@tablit](https://linux-tips.com/u/tablit)\
**Post date:** [May 9, 2023, 2:20am UTC](https://linux-tips.com/t/opening-av-ip-camera-video-files-in-linux/777/2 "2023-05-09T02:20:24Z")

</div>

thank you!! this really helped 🙂
