I am taking the input and transcoding it to H264 and AAC and then duplicating the output to create both a HLS stream for apple devices and a FLV (F4V?) stream for all other platforms. Both work great for a while, but after about an hour I get an error from the x264 encoder and vlc hangs. I broke it up into the two different outputs to get a better look at the errors.
HLS (HTTP Live Streaming)
Code: Select all
cvlc -v -I dummy decklink:// --decklink-card-index=0 --decklink-mode="ntsc" --decklink-video-connection="sdi" --decklink-audio-connection="embedded" --decklink-audio-channels=2 --decklink-audio-rate=48000 --sout-mono-downmix --sout='#transcode{threads=6,vcodec=h264,vb=336,width=512,height=288,fps=29.97,acodec=mp4a,ab=48,channels=1,samplerate=44100,audio-sync,venc=x264{profile=baseline,level=31},aenc=ffmpeg{aac-profile='low'}}:std{access=livehttp{seglen=5,delsegs=true,numsegs=10,index=/home/streaming/www/stream/stream.m3u8,index-url=http://xx.xx.xx.xx/stream/stream-########.ts},mux=ts{use-key-frames},dst=/home/streaming/www/stream/stream-########.ts}'
Code: Select all
x264 [error]: Input picture width (256) is greater than stride (0)
Code: Select all
cvlc -v -I dummy decklink:// --decklink-card-index=0 --decklink-mode="ntsc" --decklink-video-connection="sdi" --decklink-audio-connection="embedded" --decklink-audio-channels=2 --decklink-audio-rate=48000 --sout-mono-downmix --sout='#transcode{threads=6,vcodec=h264,vb=336,width=512,height=288,fps=29.97,acodec=mp4a,ab=48,channels=1,samplerate=44100,audio-sync,venc=x264{profile=baseline,level=31},aenc=ffmpeg{aac-profile='low'}}:std{access=http{mime=video/mp4},mux=ffmpeg{mux=flv},dst=:8080/stream.flv,caching=10000}'
Code: Select all
[flv @ 0x7fa2784e6a80] Codec for stream 0 does not use global headers but container format requires global headers
[flv @ 0x7fa2784e6a80] Codec for stream 1 does not use global headers but container format requires global headers
[0x7f8a9800efb8] main mux warning: late buffer for mux input (1373747)
Code: Select all
x264 [error]: Input picture width (256) is greater than stride (0)
[0x7fd7684f06e8] main decoder warning: decoder/packetizer fifo full (data not consumed quickly enough), resetting fifo!