Wowza Community

Ffmpeg + wowza

I’m trying the following command

ffmpeg-y-i-acodec video.flv libfaac-ac 1-ab 32k-vcodec libx264-b-vpre veryfast 200k-s 320x240-f mp4 rtmp: / / localhost: 1935/ffmpeg/myStream

The following error appears

[mp4 @ 0x12188d400] muxer does not support non seekable output

Wowza is a bug? or an error from ffmpeg?

This is a FFmpeg error. It looks like seekable output is a requirement of mp4 output. I would reduce your FFmpeg command down to just the essentials and test. The first thing I would do is remove the ‘-f mp4’ option from the output. You are already running the input through libx264. There is no reason to stuff the output from libx264 into a MP4 container. The libx264 output stream will work just fine with librtmp and WMS.

Edit: Don’t remove the ‘-f mp4’ option but rather change it to ‘-f rtmp rtmp://localhost:1935/ffmpeg/myStream’

If you want to records to mp4 container, use the prefix.

ffmpeg … -f flv rtmp://localhost:1935/ffmpeg/mp4:myStream

the reason for the “-f mp4” is for the wms understand that a file should be saved “.mp4”, because this same command with “-f flv” works perfectly, but is written in “/content” a file “myStream.flv”

with your suggestion is submitted an error where you need some option "-f "

sorry for my bad English!

sincerely,

thanks!

working very well now with “-f flv” and “mp4:myStream”

Now, someone has managed to use the “iSight” as input?

sincerely,

I see. I do not use WMS to save files. I only use it to broadcast live streams. I was under the impression that WMS could technically save any published stream. I did not know it had to be in a specific container. It does make sense that ‘flv’ works perfectly as you are using RTMP as the protocol (which is the proto used by flash). In case it helps this is one of the string I use with FFmpeg.

ffmpeg -er 4 -y -r 2 -g 1 -f mjpeg -an  -force_nth_key_frames 2 -i http://<domain>/-wvhttp-01-/getoneshot?frame_rate=2000"&"frame_count=0 -vcodec libx264 -vpre fastfirstpass -vpre baseline -b 150k -bt 32k -threads 0 -f rtsp rtsp://192.168.1.50:554/surf/testStream

This works just as well by replacing ‘rtsp’ with ‘rtmp’ and publishing to port 1935.

ffmpeg does not support iSight capture the last I heard.