Results 1 to 4 of 4

Thread: Is it possible to uplaod mp4 file via rtmp?

  1. #1
    Join Date
    Sep 2015

    Default Upload mp4/rtmp using ffmpeg

    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://

    [Error message]
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Last edited by darkblue99; 12-10-2015 at 11:42 PM.

  2. #2


    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)



  3. #3
    Join Date
    Sep 2015



    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://

    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://

    In addition, does the Wowza media server support mp4 over RTMP?
    Last edited by darkblue99; 12-14-2015 at 01:41 AM.

  4. #4
    Join Date
    Jun 2012



    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


Similar Threads

  1. Live Dynamic Streaming via RTMP. Is it possible?
    By HelderConde in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 11-21-2013, 06:49 AM
  2. Live audio input via USB - possible?
    By amsl68 in forum General Forum
    Replies: 2
    Last Post: 08-16-2013, 10:07 AM
  3. Possible to reset a live stream via server side modules
    By confusedUser in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 08-08-2012, 10:39 AM
  4. record via flash, play via html5?
    By davidk in forum General Forum
    Replies: 10
    Last Post: 12-29-2011, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts