[FFmpeg-trac] #5921(undetermined:new): Can not read mjpeg from IP camera
FFmpeg
trac at avcodec.org
Wed Nov 2 10:15:52 EET 2016
#5921: Can not read mjpeg from IP camera
-------------------------------------+-------------------------------------
Reporter: qqqzhouhk | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by qqqzhouhk):
Replying to [comment:6 llogan]:
> Replying to [comment:5 qqqzhouhk]:
> > {{{
> > $ ffmpeg -i http://192.168.10.123:7060 -qscale 2 -vcodec mpeg4 out.mov
> > -bash: ffmpeg: command not found
> > }}}
>
> You need to have a `ffmpeg` binary to run `ffmpeg`. So far you haven't
provided any method for us to duplicate the issue, and we have no idea how
FFmpeg is involved here. Are you using the FFmpeg libraries, or are you
somehow using the `ffmpeg` cli tool (although if you are it appears not to
be in your `PATH`)?
>
this is what I got when executing the above command line:
{{{
Last login: Wed Nov 2 15:56:47 on ttys000
huaikaideMacBook-Pro:~ apple$ ffmpeg -i http://192.168.10.123:7060 -qscale
2 -vcodec mpeg4 out.mov
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-
pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-
decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis
--enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab
--enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mpjpeg, from 'http://192.168.10.123:7060':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown),
640x480, 25 tbr, 25 tbn, 25 tbc
Please use -q:a or -q:v, -qscale is ambiguous
[swscaler @ 0x7f8fa201be00] deprecated pixel format used, make sure you
did set range correctly
[mov @ 0x7f8fa1011e00] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
Output #0, mov, to 'out.mov':
Metadata:
encoder : Lavf57.41.100
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 640x480,
q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.48.101 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
[mpjpeg @ 0x7f8fa1006200] Expected boundary '--' not found, instead found
a line of 5 bytes
http://192.168.10.123:7060: Invalid data found when processing input
frame= 1 fps=0.0 q=2.0 Lsize= 18kB time=00:00:00.00
bitrate=1928923.1kbits/s speed=0.0102x
video:18kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 4.512364%
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5921#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list