DeckLink --> ffmpeg --> Wowza

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
ffmpeg version git-2013-08-13-8a7295b Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug 13 2013 15:08:47 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/suser/ffmpeg_build --extra-cflags=-I/home/suser/ffmpeg_build/include --e                      xtra-ldflags=-L/home/suser/ffmpeg_build/lib --bindir=/home/suser/bin --extra-libs=-ldl --enable-gpl --en                      able-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorb                      is --enable-libvpx --enable-libx264 --enable-libfaac --enable-nonfree --enable-encoder=libfaac
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 27.100 / 55. 27.100
  libavformat    55. 13.102 / 55. 13.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, nut, from 'pipe:':
  Metadata:
    encoder         : Lavf54.20.3
  Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1280x720, 59.94 tbr, 59.94 tbn, 59.94 tbc
    Stream #0:1: Audio: pcm_s16le (PSD[16] / 0x10445350), 48000 Hz, stereo, s16, 1536 kb/s
[libx264 @ 0x21f5f00] using SAR=80/81
[libx264 @ 0x21f5f00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x21f5f00] profile Constrained Baseline, level 3.1
[libx264 @ 0x21f5f00] 264 - core 135 r2 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://w                      ww.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1                       psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=                      1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 blura                      y_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0                       rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x21f59a0] muxer does not support non seekable output
Output #0, mp4, to 'rtmp://192.168.7.2:1935/live/kcfstream.mp4':
  Metadata:
    encoder         : Lavf55.13.102
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x200 [SAR 80:81 DAR 16:9],                       q=-1--1, 90k tbn, 30 tbc
    Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 64 kb/s
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?

Above I see the output of your command but what is the actual ffmpeg command you are attempting?

incorrect codec parameters ?

Leads me to believe the command is incorrect and/or codec is not valid.