# Is it possible to uplaod mp4 file via rtmp?

**URL:** <https://community.wowza.com/t/is-it-possible-to-uplaod-mp4-file-via-rtmp/45887>\
**Category:** Wowza Streaming Engine\
**Created:** [December 10, 2015, 10:35pm UTC](https://community.wowza.com/t/is-it-possible-to-uplaod-mp4-file-via-rtmp/45887 "2015-12-10T22:35:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hochul\_Shin](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Hochul\_Shin](https://community.wowza.com/u/Hochul_Shin)\
**Post date:** [December 10, 2015, 10:35pm UTC](https://community.wowza.com/t/is-it-possible-to-uplaod-mp4-file-via-rtmp/45887/1 "2015-12-10T22:35:52Z")

</div>

I want to upload mp4 files via RTMP using ffmpeg and tried several times. However, I got the following received error message.

Please help me.

[ffmpeg command]

C:\>ffmpeg -i D:\Project\360ActionCam\R0010020\_er.MP4 -acodec aac -vcodec libx264 -f mp4 rtmp://52.76.193.11:1935/UploadFromGocoder/myStream

[Error message]

Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [December 11, 2015, 9:04am UTC](https://community.wowza.com/t/is-it-possible-to-uplaod-mp4-file-via-rtmp/45887/2 "2015-12-11T09:04:22Z")

</div>

Hello there.

I am not quite sure I understand your question. But here is a guide to use FFMPEG as a live stream encoder, which sounds like what you might be trying to do:

[How to use FFmpeg with Wowza Streaming Engine (MPEG-TS)](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts%28MPEG-TS%29)

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [December 17, 2015, 8:54pm UTC](https://community.wowza.com/t/is-it-possible-to-uplaod-mp4-file-via-rtmp/45887/3 "2015-12-17T20:54:01Z")

</div>

Hello,

You should be able to publish an RTMP stream to a Wowza Streaming Engine application using FFMPEG. Wowza does support an RTMP stream wrapped as MP4, when using H.264 video and AAC audio codecs.

Here is a forum thead where you can find some frequently used FFMPEG commands with a Wowza server: [Frequently requested FFMPEG command examples for Wowza](http://community.wowza.com/t/-/36326)

Zoran

---

<div class="post-metadata">

**Author:** ![Hochul\_Shin](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Hochul\_Shin](https://community.wowza.com/u/Hochul_Shin)\
**Post date:** [December 14, 2015, 12:38am UTC](https://community.wowza.com/t/is-it-possible-to-uplaod-mp4-file-via-rtmp/45887/4 "2015-12-14T00:38:46Z")

</div>

Hi,

Thank you for the response. I hope to clarify my question.

First, I want to know why the following ffmpeg command doesn’t work.

Could you confirm if the ffmpeg doesn’t support mp4 over RTMP? or please let me know how to fix it.

C:\>ffmpeg -i D:\Project\360ActionCam\R0010020\_er.MP4 -acodec aac -vcodec libx264 -f mp4 rtmp://52.76.193.11:1935/UploadFromGocoder/myStream

Instead, flv over RTMP works well with the following command.

- C:\>ffmpeg -i D:\Project\360ActionCam\R0010020\_er.MP4 -acodec aac -vcodec libx264 -f flv rtmp://52.76.193.11:1935/UploadFromGocoder/myStream

In addition, does the Wowza media server support mp4 over RTMP?
