[libav-tools] Transcoding an MJPEG source to an RTSP stream

Dr. Joshua Jackson josh at nside.io
Thu Apr 23 21:43:58 CEST 2015

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.

Here is my streaming command and the resulting output:
#avconv -f mjpeg -i http://sics.com:9001/mjpeg.cgi -vcodec copy -f rtsp -muxdelay 0.1 -metadata streamName=mjpStream rtsp:// <rtsp://>
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://':
    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 ?)

Joshua Jackson, PhD
Senior ResearchEngineer
 (800) 604-1822 Ext. 5109 <tel:8006041822,5109>   (256) 648-5109 <tel:2566485109>
 josh at nside.io <mailto:josh at nside.io>   www.nSide.io
 <http://www.nside.io/> 4031 Parkway Dr, Suite B, Florence, AL 35630
  <http://www.linkedin.com/company/nside/>  <http://twitter.com/nSide__Out>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20150423/96abcd29/attachment.html>

More information about the libav-tools mailing list