# publish stream from camera using ffmpeg + v4l2

**URL:** https://community.wowza.com/t/publish-stream-from-camera-using-ffmpeg-v4l2/36042
**Category:** Wowza Streaming Engine
**Created:** [January 28, 2011, 1:11am UTC](https://community.wowza.com/t/publish-stream-from-camera-using-ffmpeg-v4l2/36042 "2011-01-28T01:11:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Langit\_Biru](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Langit\_Biru](https://community.wowza.com/u/Langit_Biru)
#### Post date: [January 28, 2011, 1:11am UTC](https://community.wowza.com/t/publish-stream-from-camera-using-ffmpeg-v4l2/36042/1 "2011-01-28T01:11:45Z")

</div>

Hi,

I can publish file stream from my android by using this command:

```auto
ffmpeg -i Extremists.m4v -re -acodec copy -vcodec copy -f flv rtmp://192.168.1.39/live/myStream

```

When i changed the input device to v4l2, my android crashed and rebooted. The command :

```auto
ffmpeg -f video4linux2 -i /dev/video20 -re -acodec copy -vcodec copy -f flv rtmp://192.168.1.39/live/myStream

```

Any idea ?

Thanks

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [January 27, 2011, 12:10pm UTC](https://community.wowza.com/t/publish-stream-from-camera-using-ffmpeg-v4l2/36042/2 "2011-01-27T12:10:16Z")

</div>

I really don’t know. What video format is the device producing? If H.264 what are the encoding parameters. This is beyond free Wowza support. It is very ffmpeg specific.

Charlie

---

<div class="post-metadata">

### Author: ![Langit\_Biru](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Langit\_Biru](https://community.wowza.com/u/Langit_Biru)
#### Post date: [January 28, 2011, 7:50am UTC](https://community.wowza.com/t/publish-stream-from-camera-using-ffmpeg-v4l2/36042/3 "2011-01-28T07:50:23Z")

</div>

> What video format is the device producing? If H.264 what are the encoding parameters.

I also don’t know.

So, will it be different for every device?
