[FFmpeg-user] R: Cannot generate a UDP stream of JPEG frames because there's no way to specify JPEG output if the output is not a file?

EZNESS m.antonucci at ezness.it
Mon Jun 11 23:35:46 CEST 2012


> Does it work with -f mjpeg ?

Sure but in that case it sends a mjpeg stream, not a sequence of jpeg
images. See the scrren dump.

===

D:\EZness\RLT\Progetti\E0901 - DITSEF\WIP\Test Support
Tools\ffmpeg-20120608-git
-718607b-win32-static\bin>ffmpeg -f dshow -i video="HD Webcam C525" -r 1 -s
640x
480 -f mjpeg udp://10.3.1.1:5502
ffmpeg version N-41416-g718607b Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jun  8 2012 12:46:19 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex
--enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-
libvorbis --enable-libvpx --ena  libavutil      51. 56.100 / 51. 56.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 78.101 /  2. 78.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[dshow @ 01f3c3e0] Estimating duration from bitrate, this may be inaccurate
Input #0, dshow, from 'video=HD Webcam C525':
  Duration: N/A, start: 3845.052000, bitrate: N/A
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 30
tbr,
10000k tbn, 30 tbc
[buffer @ 03e73360] w:640 h:480 pixfmt:yuyv422 tb:1/10000000 sar:0/1
sws_param:f
lags=2
[ffmpeg_buffersink @ 03e73680] No opaque field provided
[scale @ 03e738c0] w:640 h:480 fmt:yuyv422 sar:0/1 -> w:640 h:480
fmt:yuvj422p s
ar:0/1 flags:0x4
Output #0, mjpeg, to 'udp://10.3.1.1:5502':
  Metadata:
    encoder         : Lavf54.6.101
    Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=2-31, 200 kb/s, 90k tbn,
1 t
bc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mjpeg)
Press [q] to stop, [?] for help
[dshow @ 01f3c3e0] real-time buffer 80% full! frame dropped!
    Last message repeated 1 times
[dshow @ 01f3c3e0] real-time buffer 101% full! frame dropped!
frame=    3 fps=0.0 q=1.8 size=     122kB time=00:00:03.00 bitrate=
333.9kbits/s
real-time buffer 80% full! frame dropped!
frame=    4 fps=3.4 q=1.6 Lsize=     189kB time=00:00:04.00 bitrate=
386.3kbits/
s dup=0 drop=11
video:189kB audio:0kB global headers:0kB muxing overhead 0.000000%
Received signal 2: terminating.

=====

It looks just a problem of 'how to tell the image2 encoder that I want JPEG
format when there's no file extension I can use".

Cheers,
Marcello





More information about the ffmpeg-user mailing list