Broadcating a stream in ffmpeg encoder

i am new to ffmpeg encoder i have to publish a stream in ffmpeg for Wowza as described in this link https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder

in this Host should be localhost:1935 and stream should be /live/mystream.sdp

please guideline what should be command i am using linux please help!!

Take a look at this FFmpeg guide:

https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts

Richard

Our examples are using a pre-built version of FFmpeg for Windows, linked to on that page. It is version N-52458-gaa96439. Try to match that version

Richard

Hi,

You can change the protocol of the stream to Wowza using FFMPEG if needed.

Sending the stream to Wowza using RTMP would be simpler and the tutorial does have a section on how to do this.

FFmpeg can publish streams using other outgoing protocols such as RTMP and RTSP/RTP (QuickTime ANNOUNCE).

To send a stream using RTMP, change the destination portion of the FFmpeg URL:

From:

-f mpegts udp://127.0.0.1:10000?pkt_size=1316

To:

-f flv rtmp://127.0.0.1/live/myStream

After applying this to FFMPEG the publishing stream will be going to application “live” with stream name myStream

Playback form Wowza would also be:

RTMP - rtmp://[wowza-ip-address]:1935/live/myStream
RTSP - rtsp://[wowza-ip-address]:1935/live/myStream
Apple HLS - http://[wowza-ip-address]:1935/live/myStream]/playlist.m3u8
Flash HDS - http://[wowza-ip-address]:1935/live/myStream/manifest.f4m
Silverlight - http://[wowza-ip-address]:1935/live/myStream/Manifest

Jason

Hi,

What version of FFMEPG are you using?

Jason

hi rrlanham ,i read this thread before for streaming using rtsp.but it is streaming data froma url udp://127.0.0.1:10000 but in this case u have to set value of host to and stream to Host Address: [wowza-ip-address]:1935

Stream Name: live/myStream.sdp .how to accomplish this in ffmpeg encoder and what is the content of myStream.sdp file please specify??

please help a little from morning i am trying to complete this tutorial!!:confused:

i am facing error using your method "Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec libx264: Invalid argument "

when i type ffmpeg-version it gave the result

ffmpeg version git-2013-06-03-c8faa47

built on Jun 3 2013 23:34:11 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)

configuration: --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libvpx --enable-x11grab --enable-libfaac --enable-libx264 --enable-nonfree --enable-version3

libavutil 52. 34.100 / 52. 34.100

libavcodec 55. 15.100 / 55. 15.100

libavformat 55. 8.102 / 55. 8.102

libavdevice 55. 2.100 / 55. 2.100

libavfilter 3. 74.101 / 3. 74.101

libswscale 2. 3.100 / 2. 3.100

libswresample 0. 17.102 / 0. 17.102

libpostproc 52. 3.100 / 52. 3.100