[FFmpeg-user] ffmpeg on Ubuntu 12.04 to Wowza server.

Scott Doty cr-ffmpeg at ponzo.net
Wed Aug 14 04:30:19 CEST 2013


On 08/13/2013 05:47 PM, Leonard Bogard wrote:
> After finally getting ffmpeg to compile I've been trying for about 2 days
> to get ffmpeg to live stream from my DeckLink Mini Recorder card (capture
> device) to a WoWza server using rtmp.  Everytime I start ffmpeg I ALWAYS
> get this line "Could not write header for output file #0 (incorrect codec
> parameters ?): Operation not permitted" and then ffmpeg terminates.
>
> FMLE seems to work fine (even to my local test trial install of WoWza) on
> my old and overburdoned Windows XP machine
>
> I'm running a brand new install of Ubuntu 12.04 Server amd64 on a brand
> (butt-spanking) new PC.
>
> This is the command I'm issuing (and the response):
>
> OUTSTREAM="-f mp4 rtmp://192.168.7.2:1935/live/kcfstream.mp4"
> bmdcapture -m 14 -C 0 -A 2 -V 4 -F nut -f pipe:1 | ffmpeg -i - -copyts \
>   -r 30 -s 360x200 -aspect 16:9 \
>   -acodec libfdk_aac -ab 64000 -ar 48000 -ac 2 \
>   -vcodec libx264 -vprofile baseline -level 3.1 -pix_fmt yuv420p \
>   $OUTSTREAM

> Stream mapping:
>   Stream #0:0 -> #0:0 (rawvideo -> libx264)
>   Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac)
> Could not write header for output file #0 (incorrect codec parameters ?):
> Operation not permitted
>
>
> Can somebody tell me what I'm doing wrong?
>

I've run into this while trying to stream to Wowza with some* aac audio
libraries (to Twitch.tv or Justin.tv) -- but if I use mp3 for audio,
it's all good.

Maybe try with a different audio codec?

 -Scott

p.s. * "some" being a placeholder for "the ones I tried so long ago that
I no longer remember".



More information about the ffmpeg-user mailing list