Hi,
I'm working with RTSP/RTP player for the MJPEG RTP stream from remote
NVR. Sniffer show that incoming network flow is a valid RTP stream with
RFC 2435 JPEG data. But have a problem:
leon@leon-R519:~/Downloads/libraries/libav$ avplay -i
rtsp://user:[email protected]/some_video
avplay version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2003-2012
the Libav developers
built on Jun 12 2012 16:52:09 with gcc 4.6.3
[mjpeg @ 0x7fac00008c60] Found EOI before any SOF, ignoring
Last message repeated 2 times
[mjpeg @ 0x7fac00008c60] No JPEG data found in image
[mjpeg @ 0x7fac00008c60] Found EOI before any SOF, ignoring
Last message repeated 2 times
[mjpeg @ 0x7fac00008c60] No JPEG data found in image
[mjpeg @ 0x7fac00008c60] Found EOI before any SOF, ignoring
[mjpeg @ 0x7fac00008c60] No JPEG data found in image
[mjpeg @ 0x7fac00008c60] Found EOI before any SOF, ignoring
[mjpeg @ 0x7fac00008c60] No JPEG data found in image
[rtsp @ 0x7fac000008c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, rtsp, from 'rtsp://user:[email protected]/some_video':
Metadata:
title : XXXX_YYYY
Duration: N/A, start: 0.850033, bitrate: N/A
Stream #0.0: Video: mjpeg, 90k tbr, 90k tbn, 90k tbc
[avsink @ 0x7fabf8001020] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'src' and the filter 'out'
Impossible to convert between the formats supported by the filter 'src'
and the filter 'auto-inserted scaler 0'
^C1343216503.67 A-V: 0.000 s:0.0 aq= 0KB vq= 7KB sq= 0B f=0/0
leon@leon-R519:~/Downloads/libraries/libav$
Analysing code of libav (libavcodec/mjpecdec.c, ff_mjpeg_decode_frame(),
1434) I found that decoder try to search SOI marker for JPEG data but
not found it and not recognized whole JPEG data.
Question: whether has the current libav library support for the MJPEG
via RTP (RFC 2435) or not?
--
Best regards,
Leonid Egorov.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel