[FFmpeg-trac] #8211(avformat:new): ffplay does'nt play mjpeg stream

FFmpeg trac at avcodec.org
Tue Mar 23 00:28:52 EET 2021


#8211: ffplay does'nt play mjpeg stream
-------------------------------------+------------------------------------
             Reporter:  anhsoft      |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  rtsp mjpeg   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  1            |
-------------------------------------+------------------------------------

Comment (by cehoyos):

 If anybody has access to such a camera, please provide the console output
 with the following patch:
 {{{
 diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
 index b32d074136..2ebe341236 100644
 --- a/libavformat/rtpdec_jpeg.c
 +++ b/libavformat/rtpdec_jpeg.c
 @@ -242,6 +242,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx,
 PayloadContext *jpeg,
              return AVERROR_INVALIDDATA;
          }
          dri = AV_RB16(buf);
 +        av_log(ctx, AV_LOG_ERROR, "dri: %x F/L/Restart Count: %x \n",
 dri, AV_RB16(buf + 2));
          buf += 4;
          len -= 4;
          type &= ~0x40;
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8211#comment:19>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list