# Converting Wowza's FLV to MP4

**URL:** https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651
**Category:** Wowza Streaming Engine
**Created:** [March 9, 2011, 10:47am UTC](https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651 "2011-03-09T10:47:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hector\_Herrera](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hector\_Herrera](https://community.wowza.com/u/Hector_Herrera)
#### Post date: [March 9, 2011, 10:47am UTC](https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651/1 "2011-03-09T10:47:18Z")

</div>

I have a recording of a live broadcast generated by WMS. The broadcast used h.264/AAC.

I have been trying to convert the FLV to MP4 with FFmpeg, without any positive results. This is what I have tried:

```auto
ffmpeg -i stream.flv -vcodec copy -acodec copy out.mp4

```

```auto
ffmpeg -i stream.flv -vcodec copy video.ts
ffmpeg -i stream.flv -acodec copy audio.ts
ffmpeg -i video.ts -vcodec copy -i audio.ts -acodec copy out.mp4

```

Both attempts fail with errors.

Can somebody provide me with a command line for ffmpeg to convert the FLV to an MP4 without having to transcode the video again?

Alternatively, I would also consider any other Linux/Windows tools to perform the format conversion.

Thank you,

Hector

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [March 9, 2011, 6:55pm UTC](https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651/2 "2011-03-09T18:55:43Z")

</div>

Hector,

Take a look at these examples:

[https://www.wowza.com/docs/how-to-encode-video-on-demand-content](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)

Richard

---

<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: [March 9, 2011, 5:01pm UTC](https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651/3 "2011-03-09T17:01:31Z")

</div>

ffmpeg -i infile.flv -acodec copy -vcodec copy outfile.mov

There is a chance you might get a message about timecode issues. I have not found a way around this message.

Charlie

---

<div class="post-metadata">

### Author: ![Hector\_Herrera](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hector\_Herrera](https://community.wowza.com/u/Hector_Herrera)
#### Post date: [March 9, 2011, 1:57pm UTC](https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651/4 "2011-03-09T13:57:58Z")

</div>

Hello Richard,

Thank you for the link. The link you sent me is for instructions on how to setup an encoder for broadcasting. That’s not what I want to do.

I want to convert Wowza’s FLV file into an MP4.

Hector

---

<div class="post-metadata">

### Author: ![Hector\_Herrera](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hector\_Herrera](https://community.wowza.com/u/Hector_Herrera)
#### Post date: [March 9, 2011, 4:16pm UTC](https://community.wowza.com/t/converting-wowzas-flv-to-mp4/35651/5 "2011-03-09T16:16:06Z")

</div>

Is it possible to do this without transcoding? It is a large file (2GB+) and transcoding will not only take a long time, it will also degrade the quality of the video.
