I have an MJPEG test source (local business has publicly available source) that I’m trying to transcode to an RTSP stream for consumption by Evostream.
I have tried with and without the -vcodec copy parameter, but I cannot seem to get it to stream properly.
Here is my streaming command:
#avconv -f mjpeg -i http://sics.com:9001/mjpeg.cgi -vcodec copy -f rtsp -muxdelay 0.1 -metadata streamName=mjpStream rtsp://127.0.0.1:5544/
And the resulting output:
avconv version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
built on Mar 16 2015 13:26:50 with gcc 4.6.3
[mjpeg @ 0x20ae9e0] max_analyze_duration reached
[mjpeg @ 0x20ae9e0] Estimating duration from bitrate, this may be inaccurate
Input #0, mjpeg, from 'http://sics.com:9001/mjpeg.cgi':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
Output #0, rtsp, to 'rtsp://127.0.0.1:5544/':
Metadata:
streamName : mjpStream
encoder : Lavf53.21.1
Stream #0.0: Video: mjpeg, yuvj422p, 320x240, q=2-31, 90k tbn, 1200k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)