[FFserver-user] Try to publish an mxg stream to ffserver

David Siegel david at siegel.com
Sat Jul 7 21:41:24 CEST 2012


I'm pretty new to this, and would appreciate some getting started help.
The command I issue is as follows:

 ffmpeg/ffmpeg -f mxg -i "http://cam/control/faststream.jpg?stream=MxPeg"
http://localhost:8090/feed1.ffm

The error I receive is this:

ffmpeg version N-42296-g5997285 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jul  6 2012 21:49:31 with gcc 4.4.1 20090725 (Red Hat 4.4.1-2)
  configuration: --prefix=/opt
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.100 / 54. 15.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
[mxg @ 0x3034160] max_analyze_duration 5000000 reached at 5500000
[mxg @ 0x3034160] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, mxg, from 'http://camcpe1/control/faststream.jpg?stream=MxPeg':
  Duration: N/A, start: 1341689615.513311, bitrate: 64 kb/s
    Stream #0:0: Video: mxpeg, yuvj420p, 1024x768, 1.67 tbr, 1000k tbn,
1000k tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[tcp @ 0x3053a00] TCP connection to localhost:8090 failed: Connection
refused
[tcp @ 0x3053980] TCP connection to localhost:8090 failed: Connection
refused
[graph 0 input from stream 0:1 @ 0x30312c0] tb:1/8000 samplefmt:s16
samplerate:8000 chlayout:0x4
[auto-inserted resampler 0 @ 0x3051920] chl:mono fmt:s16 r:8000Hz ->
chl:mono fmt:s16 r:44100Hz
[graph 1 input from stream 0:0 @ 0x304fe40] w:1024 h:768 pixfmt:yuvj420p
tb:1/1000000 fr:5/3 sar:0/1 sws_param:flags=2
[output stream 0:1 @ 0x304a0a0] No opaque field provided
[scaler for output stream 0:1 @ 0x3050b60] w:1024 h:768 fmt:yuvj420p
sar:0/1 -> w:160 h:128 fmt:yuv420p sar:0/1 flags:0x4
[graph 2 input from stream 0:1 @ 0x320e440] tb:1/8000 samplefmt:s16
samplerate:8000 chlayout:0x4
[auto-inserted resampler 0 @ 0x321a3c0] chl:mono fmt:s16 r:8000Hz ->
chl:mono fmt:s16 r:22050Hz
[graph 3 input from stream 0:0 @ 0x3219100] w:1024 h:768 pixfmt:yuvj420p
tb:1/1000000 fr:5/3 sar:0/1 sws_param:flags=2
[output stream 0:3 @ 0x3225560] No opaque field provided
[scaler for output stream 0:3 @ 0x321a120] w:1024 h:768 fmt:yuvj420p
sar:0/1 -> w:352 h:240 fmt:yuv420p sar:0/1 flags:0x4
[mpeg1video @ 0x302fb60] MPEG1/2 does not support 5/1 fps
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
    Stream #0:0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s
    Stream #0:1: Video: mpeg1video, yuv420p, 160x128, q=2-31, 64 kb/s,
1000k tbn, 5 tbc
    Stream #0:2: Audio: wmav2, 22050 Hz, mono, s16, 64 kb/s
    Stream #0:3: Video: msmpeg4, yuv420p, 352x240, q=2-31, 256 kb/s, 1000k
tbn, 1.67 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_alaw -> mp2)
  Stream #0:0 -> #0:1 (mxpeg -> mpeg1video)
  Stream #0:1 -> #0:2 (pcm_alaw -> wmav2)
  Stream #0:0 -> #0:3 (mxpeg -> msmpeg4)
Error while opening encoder for output stream #0:1 - maybe incorrect
parameters such as bit_rate, rate, width or height
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/ffserver-user/attachments/20120707/f083a751/attachment.html>


More information about the ffserver-user mailing list