Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#4317 closed defect (duplicate)

bug in encoding mjpeg in RTP

Reported by: Martun Runge Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mjpeg rtp
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
sending mjpeg stream from webcam results in broken jpeg frames at receiver.

I record video from webcam like this:

% ffmpeg -loglevel debug  -f v4l2 -input_format mjpeg  -framerate 25 -video_size 640x480  -i /dev/video0 -vcodec copy -f rtp "rtp://127.0.0.1:5004"
ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers
  built on Feb 15 2015 11:58:53 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-debug=2 --disable-optimizations --disable-stripping --prefix=/home/martin/locallibs/ --enable-gpl --enable-libx264 --enable-shared
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'mjpeg'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '25'.
Reading option '-video_size' ... matched as AVOption 'video_size' with argument '640x480'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
Reading option 'rtp://127.0.0.1:5004' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument v4l2.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x122e1c0] fd:3 capabilities:84000001
[video4linux2,v4l2 @ 0x122e1c0] Current input_channel: 0, input_name: Camera 1, input_std: 0
[video4linux2,v4l2 @ 0x122e1c0] Setting time per frame to 1/25
[video4linux2,v4l2 @ 0x122e1c0] The driver changed the time per frame from 1/25 to 1/30
[mjpeg @ 0x122eb60] marker=d8 avail_size_in_buf=91523
[mjpeg @ 0x122eb60] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x122eb60] marker=e0 avail_size_in_buf=91521
[mjpeg @ 0x122eb60] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x122eb60] marker=db avail_size_in_buf=91503
[mjpeg @ 0x122eb60] index=0
[mjpeg @ 0x122eb60] qscale[0]: 2
[mjpeg @ 0x122eb60] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x122eb60] marker=db avail_size_in_buf=91434
[mjpeg @ 0x122eb60] index=1
[mjpeg @ 0x122eb60] qscale[1]: 2
[mjpeg @ 0x122eb60] marker parser used 67 bytes (536 bits)                                                                                         
[mjpeg @ 0x122eb60] marker=c4 avail_size_in_buf=91365                                                                                              
[mjpeg @ 0x122eb60] class=0 index=0 nb_codes=12                                                                                                    
[mjpeg @ 0x122eb60] marker parser used 31 bytes (248 bits)                                                                                         
[mjpeg @ 0x122eb60] marker=c4 avail_size_in_buf=91332                                                                                              
[mjpeg @ 0x122eb60] class=1 index=0 nb_codes=251                                                                                                   
[mjpeg @ 0x122eb60] marker parser used 181 bytes (1448 bits)                                                                                       
[mjpeg @ 0x122eb60] marker=c4 avail_size_in_buf=91149                                                                                              
[mjpeg @ 0x122eb60] class=0 index=1 nb_codes=12                                                                                                    
[mjpeg @ 0x122eb60] marker parser used 31 bytes (248 bits)                                                                                         
[mjpeg @ 0x122eb60] marker=c4 avail_size_in_buf=91116                                                                                              
[mjpeg @ 0x122eb60] class=1 index=1 nb_codes=251                                                                                                   
[mjpeg @ 0x122eb60] marker parser used 181 bytes (1448 bits)                                                                                       
[mjpeg @ 0x122eb60] marker=dd avail_size_in_buf=90933                                                                                              
[mjpeg @ 0x122eb60] restart interval: 40                                                                                                           
[mjpeg @ 0x122eb60] marker parser used 4 bytes (32 bits)                                                                                           
[mjpeg @ 0x122eb60] marker=c0 avail_size_in_buf=90927                                                                                              
[mjpeg @ 0x122eb60] sof0: picture: 640x480                                                                                                         
[mjpeg @ 0x122eb60] component 0 2:1 id: 0 quant:0                                                                                                  
[mjpeg @ 0x122eb60] component 1 1:1 id: 1 quant:1                                                                                                  
[mjpeg @ 0x122eb60] component 2 1:1 id: 2 quant:1                                                                                                  
[mjpeg @ 0x122eb60] pix fmt id 21111100                                                                                                            
[mjpeg @ 0x122eb60] marker parser used 17 bytes (136 bits)                                                                                         
[mjpeg @ 0x122eb60] escaping removed 390 bytes                                                                                                     
[mjpeg @ 0x122eb60] marker=da avail_size_in_buf=90908                                                                                              
[mjpeg @ 0x122eb60] component: 0                                                                                                                   
[mjpeg @ 0x122eb60] component: 1                                                                                                                   
[mjpeg @ 0x122eb60] component: 2                                                                                                                   
[mjpeg @ 0x122eb60] marker parser used 90517 bytes (724134 bits)                                                                                   
[mjpeg @ 0x122eb60] marker=d9 avail_size_in_buf=0                                                                                                  
[mjpeg @ 0x122eb60] decode frame unused 0 bytes                                                                                                    
[video4linux2,v4l2 @ 0x122e1c0] All info found
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 63929.186648, bitrate: N/A
    Stream #0:0, 1, 1/1000000: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown, center), 640x480 [SAR 96:96 DAR 4:3], 1/1000000, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output file rtp://127.0.0.1:5004.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
Applying option f (force format) with argument rtp.
Successfully parsed a group of options.
Opening an output file: rtp://127.0.0.1:5004.
Successfully opened the file.
Output #0, rtp, to 'rtp://127.0.0.1:5004':
  Metadata:
    encoder         : Lavf56.15.102
    Stream #0:0, 0, 1/90000: Video: mjpeg, yuvj422p(center), 640x480 (0x0) [SAR 96:96 DAR 4:3], 1/1000000, q=2-31, -5 kb/s, 30 fps, 90k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 56.15.102
m=video 5004 RTP/AVP 26
b=AS:-5

Press [q] to stop, [?] for help
[rtp @ 0x1230620] Only 8-bit precision is supported.
    Last message repeated 3 times
[rtp @ 0x1230620] Only 8-bit precision is supported.0:00.29 bitrate=10183.9kbits/s    
    Last message repeated 3 times
[rtp @ 0x1230620] Only 8-bit precision is supported.0:00.81 bitrate=7229.0kbits/s    
    Last message repeated 1 times

Playback with:

% ffplay -loglevel debug rtp://127.0.0.1:5004
ffplay version 2.5.4 Copyright (c) 2003-2015 the FFmpeg developers
  built on Feb 15 2015 11:58:53 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-debug=2 --disable-optimizations --disable-stripping --prefix=/home/martin/locallibs/ --enable-gpl --enable-libx264 --enable-shared
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[udp @ 0x7fea60005d80] end receive buffer size reported is 131072   
[udp @ 0x7fea60005e00] end receive buffer size reported is 131072
[rtp @ 0x7fea600008c0] Guessing on RTP content - if not received properly you need an SDP file describing it
[rtp @ 0x7fea600008c0] SDP:
v=0
c=IN IP4 127.0.0.1
m=video 5004 RTP/AVP 26

[udp @ 0x7fea60004e40] end receive buffer size reported is 131072
[udp @ 0x7fea60004f00] end receive buffer size reported is 131072
[rtp @ 0x7fea600008c0] Received packet without a start chunk; dropping frame.
    Last message repeated 34 times
[mjpeg @ 0x7fea600049e0] marker=d8 avail_size_in_buf=96495B f=0/0   
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=e0 avail_size_in_buf=96493
[mjpeg @ 0x7fea600049e0] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x7fea600049e0] marker=db avail_size_in_buf=96475
[mjpeg @ 0x7fea600049e0] index=0
[mjpeg @ 0x7fea600049e0] qscale[0]: 2
[mjpeg @ 0x7fea600049e0] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7fea600049e0] marker=c4 avail_size_in_buf=96406
[mjpeg @ 0x7fea600049e0] class=0 index=0 nb_codes=12
[mjpeg @ 0x7fea600049e0] class=0 index=1 nb_codes=12
[mjpeg @ 0x7fea600049e0] class=1 index=0 nb_codes=251
[mjpeg @ 0x7fea600049e0] class=1 index=1 nb_codes=251
[mjpeg @ 0x7fea600049e0] marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x7fea600049e0] marker=c0 avail_size_in_buf=95986
[mjpeg @ 0x7fea600049e0] sof0: picture: 640x480
[mjpeg @ 0x7fea600049e0] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x7fea600049e0] component 1 1:1 id: 1 quant:0
[mjpeg @ 0x7fea600049e0] component 2 1:1 id: 2 quant:0
[mjpeg @ 0x7fea600049e0] pix fmt id 21111100
[mjpeg @ 0x7fea600049e0] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x7fea600049e0] escaping removed 431 bytes
[mjpeg @ 0x7fea600049e0] marker=da avail_size_in_buf=95967
[mjpeg @ 0x7fea600049e0] component: 0
[mjpeg @ 0x7fea600049e0] component: 1
[mjpeg @ 0x7fea600049e0] component: 2
[mjpeg @ 0x7fea600049e0] mjpeg_decode_dc: bad vlc: 0:0 (0x7fea600090c0)
[mjpeg @ 0x7fea600049e0] error dc
[mjpeg @ 0x7fea600049e0] error y=1 x=0
[mjpeg @ 0x7fea600049e0] marker parser used 1322 bytes (10571 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=94639
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=93355
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=92052
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=90779
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=89471
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=88168
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=86891
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=85629
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=84335
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=83045
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=81771
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=80472
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=79183
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=77923
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=76673
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=75424
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=74187
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=72942
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=71662
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=70379
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=69091
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=67810
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=66481
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=65214
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=63872
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=62338
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=60611
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=58732
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=56727
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=55163
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=53637
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=52296
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=50915
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=49546
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=47909
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=46168
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=44494
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=42925
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=41276
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=39592
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=37686
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=35937
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=34299
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=32519
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=30622
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=28355
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=26057
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=23857
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=21742
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=19630
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=17576
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=15622
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=13401
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=11229
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=9359
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=7441
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=5429
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=3650
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=1837
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x7fea600049e0] decode frame unused 0 bytes
[mjpeg @ 0x7fea600049e0] RTP: missed 5 packets0KB sq=    0B f=0/0   
[rtp @ 0x7fea600008c0] All info foundB vq=    0KB sq=    0B f=0/0   
rfps: 7.416667 0.014103
rfps: 7.500000 0.002863
    Last message repeated 1 times
rfps: 7.583333 0.000143
    Last message repeated 1 times
rfps: 7.666667 0.005944
    Last message repeated 1 times
rfps: 15.000000 0.011450
    Last message repeated 1 times
rfps: 15.083333 0.001750
    Last message repeated 1 times
rfps: 15.166667 0.000572
    Last message repeated 1 times
rfps: 15.250000 0.007913
rfps: 22.583333 0.009083
rfps: 22.666667 0.000924
rfps: 22.750000 0.001286
    Last message repeated 1 times
rfps: 22.833333 0.010168
    Last message repeated 1 times
rfps: 14.985015 0.014098
Input #0, rtp, from 'rtp://127.0.0.1:5004':
  Duration: N/A, start: 0.026922, bitrate: N/A
    Stream #0:0, 21, 1/90000: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown, center), 640x480 [SAR 1:1 DAR 4:3], 1/90000, 7.58 tbr, 90k tbn, 90k tbc
[mjpeg @ 0x7fea600049e0] marker=d8 avail_size_in_buf=96495
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=e0 avail_size_in_buf=96493
[mjpeg @ 0x7fea600049e0] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x7fea600049e0] marker=db avail_size_in_buf=96475
[mjpeg @ 0x7fea600049e0] index=0
[mjpeg @ 0x7fea600049e0] qscale[0]: 2
[mjpeg @ 0x7fea600049e0] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7fea600049e0] marker=c4 avail_size_in_buf=96406
[mjpeg @ 0x7fea600049e0] class=0 index=0 nb_codes=12
[mjpeg @ 0x7fea600049e0] class=0 index=1 nb_codes=12
[mjpeg @ 0x7fea600049e0] class=1 index=0 nb_codes=251
[mjpeg @ 0x7fea600049e0] class=1 index=1 nb_codes=251
[mjpeg @ 0x7fea600049e0] marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x7fea600049e0] marker=c0 avail_size_in_buf=95986
[mjpeg @ 0x7fea600049e0] sof0: picture: 640x480
[mjpeg @ 0x7fea600049e0] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x7fea600049e0] component 1 1:1 id: 1 quant:0
[mjpeg @ 0x7fea600049e0] component 2 1:1 id: 2 quant:0
[mjpeg @ 0x7fea600049e0] pix fmt id 21111100
[mjpeg @ 0x7fea600049e0] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x7fea600049e0] escaping removed 431 bytes
[mjpeg @ 0x7fea600049e0] marker=da avail_size_in_buf=95967
[mjpeg @ 0x7fea600049e0] component: 0
[mjpeg @ 0x7fea600049e0] component: 1
[mjpeg @ 0x7fea600049e0] component: 2
[mjpeg @ 0x7fea600049e0] mjpeg_decode_dc: bad vlc: 0:0 (0x7fea600312c0)
[mjpeg @ 0x7fea600049e0] error dc
[mjpeg @ 0x7fea600049e0] error y=1 x=0
[mjpeg @ 0x7fea600049e0] marker parser used 1322 bytes (10571 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=94639
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=93355
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=92052
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=90779
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=89471
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=88168
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=86891
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=85629
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=84335
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=83045
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=81771
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=80472
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=79183
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=77923
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=76673
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=75424
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=74187
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=72942
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=71662
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=70379
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=69091
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=67810
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=66481
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=65214
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=63872
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=62338
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=60611
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=58732
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=56727
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=55163
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=53637
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=52296
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=50915
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=49546
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=47909
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=46168
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=44494
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=42925
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=41276
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=39592
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=37686
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=35937
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=34299
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=32519
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=30622
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=28355
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=26057
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=23857
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=21742
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=19630
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=17576
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d3 avail_size_in_buf=15622
[mjpeg @ 0x7fea600049e0] restart marker: 3
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d4 avail_size_in_buf=13401
[mjpeg @ 0x7fea600049e0] restart marker: 4
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d5 avail_size_in_buf=11229
[mjpeg @ 0x7fea600049e0] restart marker: 5
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d6 avail_size_in_buf=9359
[mjpeg @ 0x7fea600049e0] restart marker: 6
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d7 avail_size_in_buf=7441
[mjpeg @ 0x7fea600049e0] restart marker: 7
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=5429
[mjpeg @ 0x7fea600049e0] restart marker: 0
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d1 avail_size_in_buf=3650
[mjpeg @ 0x7fea600049e0] restart marker: 1
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d2 avail_size_in_buf=1837
[mjpeg @ 0x7fea600049e0] restart marker: 2
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x7fea600049e0] decode frame unused 0 bytes
Video frame changed from size:0x0 format:none serial:-1 to size:640x480 format:yuvj422p serial:1
detected 4 logical cores
[ffplay_buffer @ 0x7fea58020000] Setting 'video_size' to value '640x480'
[ffplay_buffer @ 0x7fea58020000] Setting 'pix_fmt' to value '13'
[ffplay_buffer @ 0x7fea58020000] Setting 'time_base' to value '1/90000'
[ffplay_buffer @ 0x7fea58020000] Setting 'pixel_aspect' to value '1/1'
[ffplay_buffer @ 0x7fea58020000] Setting 'frame_rate' to value '91/12'
[ffplay_buffer @ 0x7fea58020000] w:640 h:480 pixfmt:yuvj422p tb:1/90000 fr:91/12 sar:1/1 sws_param:
[ffplay_crop @ 0x7fea580b79e0] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 0x7fea580b79e0] Setting 'out_h' to value 'floor(in_h/2)*2'
[auto-inserted scaler 0 @ 0x7fea5801b7e0] Setting 'flags' to value '4'
[auto-inserted scaler 0 @ 0x7fea5801b7e0] w:iw h:ih flags:'4' interl:0
[ffplay_crop @ 0x7fea580b79e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'ffplay_buffer' and the filter 'ffplay_crop'
[AVFilterGraph @ 0x7fea5801cea0] query_formats: 3 queried, 1 merged, 1 already done, 0 delayed
[swscaler @ 0x7fea580b8620] deprecated pixel format used, make sure you did set range correctly
[auto-inserted scaler 0 @ 0x7fea5801b7e0] w:640 h:480 fmt:yuvj422p sar:1/1 -> w:640 h:480 fmt:yuv420p sar:1/1 flags:0x4
[ffplay_crop @ 0x7fea580b79e0] w:640 h:480 sar:1/1 -> w:640 h:480 sar:1/1
[mjpeg @ 0x7fea600049e0] marker=d8 avail_size_in_buf=96395B f=0/0   
[mjpeg @ 0x7fea600049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7fea600049e0] marker=e0 avail_size_in_buf=96393
[mjpeg @ 0x7fea600049e0] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x7fea600049e0] marker=db avail_size_in_buf=96375
[mjpeg @ 0x7fea600049e0] index=0
[mjpeg @ 0x7fea600049e0] qscale[0]: 2
[mjpeg @ 0x7fea600049e0] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7fea600049e0] marker=c4 avail_size_in_buf=96306
[mjpeg @ 0x7fea600049e0] class=0 index=0 nb_codes=12
[mjpeg @ 0x7fea600049e0] class=0 index=1 nb_codes=12
[mjpeg @ 0x7fea600049e0] class=1 index=0 nb_codes=251
[mjpeg @ 0x7fea600049e0] class=1 index=1 nb_codes=251
[mjpeg @ 0x7fea600049e0] marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x7fea600049e0] marker=c0 avail_size_in_buf=95886
[mjpeg @ 0x7fea600049e0] sof0: picture: 640x480
[mjpeg @ 0x7fea600049e0] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x7fea600049e0] component 1 1:1 id: 1 quant:0
[mjpeg @ 0x7fea600049e0] component 2 1:1 id: 2 quant:0
[mjpeg @ 0x7fea600049e0] pix fmt id 21111100
[mjpeg @ 0x7fea600049e0] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x7fea600049e0] escaping removed 432 bytes
[mjpeg @ 0x7fea600049e0] marker=da avail_size_in_buf=95867
[mjpeg @ 0x7fea600049e0] component: 0
[mjpeg @ 0x7fea600049e0] component: 1
[mjpeg @ 0x7fea600049e0] component: 2
[mjpeg @ 0x7fea600049e0] mjpeg_decode_dc: bad vlc: 0:0 (0x7fea600312c0)
[mjpeg @ 0x7fea600049e0] error dc
[mjpeg @ 0x7fea600049e0] error y=1 x=0
[mjpeg @ 0x7fea600049e0] marker parser used 1341 bytes (10726 bits)
[mjpeg @ 0x7fea600049e0] marker=d0 avail_size_in_buf=94515
[mjpeg @ 0x7fea600049e0] restart marker: 0
...

ffplay displays an image with just about the top two lines. I also have this problem in a C program using libavformat with a Qt GUI displaying the frames. I can successfully display the frames before they are encoded in RTP packets (recording from the webcam works fine), but after reception, the frames are broken. Same visible output when displaying the RTP stream with vlc.

Attachments (1)

samplevideo.mjpeg (2.0 MB ) - added by Martun Runge 10 years ago.
video recorded from the webcam

Download all attachments as: .zip

Change History (5)

by Martun Runge, 10 years ago

Attachment: samplevideo.mjpeg added

video recorded from the webcam

comment:1 by Martun Runge, 10 years ago

The effect can be reproduced by streaming the attached video file like this:

% ffmpeg -i samplevideo.mjpeg -r 30  -vcodec copy -f rtp "rtp://127.0.0.1:5004"
ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers
  built on Feb 15 2015 11:58:53 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-debug=2 --disable-optimizations --disable-stripping --prefix=/home/martin/locallibs/ --enable-gpl --enable-libx264 --enable-shared
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 'samplevideo.mjpeg'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
Reading option 'rtp://127.0.0.1:5004' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file samplevideo.mjpeg.
Successfully parsed a group of options.
Opening an input file: samplevideo.mjpeg.
[mjpeg @ 0x8500e0] Format mjpeg detected only with low score of 25, misdetection possible!
[mjpeg @ 0x8500e0] Before avformat_find_stream_info() pos: 0 bytes read:1048576 seeks:0
[mjpeg @ 0x850a80] marker=d8 avail_size_in_buf=82118
[mjpeg @ 0x850a80] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x850a80] marker=e0 avail_size_in_buf=82116
[mjpeg @ 0x850a80] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x850a80] marker=db avail_size_in_buf=82098
[mjpeg @ 0x850a80] index=0
[mjpeg @ 0x850a80] qscale[0]: 2
[mjpeg @ 0x850a80] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x850a80] marker=db avail_size_in_buf=82029
[mjpeg @ 0x850a80] index=1
[mjpeg @ 0x850a80] qscale[1]: 2
[mjpeg @ 0x850a80] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x850a80] marker=c4 avail_size_in_buf=81960
[mjpeg @ 0x850a80] class=0 index=0 nb_codes=12
[mjpeg @ 0x850a80] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x850a80] marker=c4 avail_size_in_buf=81927
[mjpeg @ 0x850a80] class=1 index=0 nb_codes=251
[mjpeg @ 0x850a80] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x850a80] marker=c4 avail_size_in_buf=81744                                                                                               
[mjpeg @ 0x850a80] class=0 index=1 nb_codes=12                                                                                                     
[mjpeg @ 0x850a80] marker parser used 31 bytes (248 bits)                                                                                          
[mjpeg @ 0x850a80] marker=c4 avail_size_in_buf=81711                                                                                               
[mjpeg @ 0x850a80] class=1 index=1 nb_codes=251                                                                                                    
[mjpeg @ 0x850a80] marker parser used 181 bytes (1448 bits)                                                                                        
[mjpeg @ 0x850a80] marker=dd avail_size_in_buf=81528                                                                                               
[mjpeg @ 0x850a80] restart interval: 40                                                                                                            
[mjpeg @ 0x850a80] marker parser used 4 bytes (32 bits)                                                                                            
[mjpeg @ 0x850a80] marker=c0 avail_size_in_buf=81522                                                                                               
[mjpeg @ 0x850a80] sof0: picture: 640x480                                                                                                          
[mjpeg @ 0x850a80] component 0 2:1 id: 0 quant:0                                                                                                   
[mjpeg @ 0x850a80] component 1 1:1 id: 1 quant:1                                                                                                   
[mjpeg @ 0x850a80] component 2 1:1 id: 2 quant:1                                                                                                   
[mjpeg @ 0x850a80] pix fmt id 21111100                                                                                                             
[mjpeg @ 0x850a80] marker parser used 17 bytes (136 bits)                                                                                          
[mjpeg @ 0x850a80] escaping removed 338 bytes                                                                                                      
[mjpeg @ 0x850a80] marker=da avail_size_in_buf=81503                                                                                               
[mjpeg @ 0x850a80] component: 0                                                                                                                    
[mjpeg @ 0x850a80] component: 1                                                                                                                    
[mjpeg @ 0x850a80] component: 2                                                                                                                    
[mjpeg @ 0x850a80] marker parser used 81164 bytes (649310 bits)
[mjpeg @ 0x850a80] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x850a80] decode frame unused 0 bytes
[mjpeg @ 0x8500e0] All info found
[mjpeg @ 0x8500e0] After avformat_find_stream_info() pos: 82944 bytes read:1048576 seeks:0 frames:1
Input #0, mjpeg, from 'samplevideo.mjpeg':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 1, 1/1200000: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown, center), 640x480 [SAR 96:96 DAR 4:3], 1/25, 25 tbr, 1200k tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file rtp://127.0.0.1:5004.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
Applying option f (force format) with argument rtp.
Successfully parsed a group of options.
Opening an output file: rtp://127.0.0.1:5004.
Successfully opened the file.
Output #0, rtp, to 'rtp://127.0.0.1:5004':
  Metadata:
    encoder         : Lavf56.15.102
    Stream #0:0, 0, 1/90000: Video: mjpeg, yuvj422p(center), 640x480 (0x0) [SAR 96:96 DAR 4:3], 1/30, q=2-31, 90k tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 56.15.102
m=video 5004 RTP/AVP 26

Press [q] to stop, [?] for help
[rtp @ 0x851320] Only 8-bit precision is supported.
    Last message repeated 76 times
No more output streams to write to, finishing.
frame=   77 fps=0.0 q=-1.0 Lsize=    6634kB time=00:00:03.07 bitrate=17681.9kbits/s    
video:6585kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.737604%
Input file #0 (samplevideo.mjpeg):
  Input stream #0:0 (video): 77 packets read (6743049 bytes); 
  Total: 77 packets (6743049 bytes) demuxed
Output file #0 (rtp://127.0.0.1:5004):
  Output stream #0:0 (video): 77 packets muxed (6743049 bytes); 
  Total: 77 packets (6743049 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x8531a0] Statistics: 0 seeks, 4654 writeouts
[AVIOContext @ 0x84f6a0] Statistics: 6743049 bytes read, 0 seeks

playback:

% ffplay -loglevel debug rtp://127.0.0.1:5004
ffplay version 2.5.4 Copyright (c) 2003-2015 the FFmpeg developers
  built on Feb 15 2015 11:58:53 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-debug=2 --disable-optimizations --disable-stripping --prefix=/home/martin/locallibs/ --enable-gpl --enable-libx264 --enable-shared
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[udp @ 0x7f86ac005d80] end receive buffer size reported is 131072   
[udp @ 0x7f86ac005e00] end receive buffer size reported is 131072
[rtp @ 0x7f86ac0008c0] Guessing on RTP content - if not received properly you need an SDP file describing it
[rtp @ 0x7f86ac0008c0] SDP:
v=0
c=IN IP4 127.0.0.1
m=video 5004 RTP/AVP 26

[udp @ 0x7f86ac004e40] end receive buffer size reported is 131072
[udp @ 0x7f86ac004f00] end receive buffer size reported is 131072
[rtp @ 0x7f86ac0008c0] Received packet without a start chunk; dropping frame.
    Last message repeated 21 times
[mjpeg @ 0x7f86ac0049e0] marker=d8 avail_size_in_buf=82480
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=e0 avail_size_in_buf=82478
[mjpeg @ 0x7f86ac0049e0] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x7f86ac0049e0] marker=db avail_size_in_buf=82460
[mjpeg @ 0x7f86ac0049e0] index=0
[mjpeg @ 0x7f86ac0049e0] qscale[0]: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7f86ac0049e0] marker=c4 avail_size_in_buf=82391
[mjpeg @ 0x7f86ac0049e0] class=0 index=0 nb_codes=12
[mjpeg @ 0x7f86ac0049e0] class=0 index=1 nb_codes=12
[mjpeg @ 0x7f86ac0049e0] class=1 index=0 nb_codes=251
[mjpeg @ 0x7f86ac0049e0] class=1 index=1 nb_codes=251
[mjpeg @ 0x7f86ac0049e0] marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x7f86ac0049e0] marker=c0 avail_size_in_buf=81971
[mjpeg @ 0x7f86ac0049e0] sof0: picture: 640x480
[mjpeg @ 0x7f86ac0049e0] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x7f86ac0049e0] component 1 1:1 id: 1 quant:0
[mjpeg @ 0x7f86ac0049e0] component 2 1:1 id: 2 quant:0
[mjpeg @ 0x7f86ac0049e0] pix fmt id 21111100
[mjpeg @ 0x7f86ac0049e0] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x7f86ac0049e0] escaping removed 324 bytes
[mjpeg @ 0x7f86ac0049e0] marker=da avail_size_in_buf=81952
[mjpeg @ 0x7f86ac0049e0] component: 0
[mjpeg @ 0x7f86ac0049e0] component: 1
[mjpeg @ 0x7f86ac0049e0] component: 2
[mjpeg @ 0x7f86ac0049e0] mjpeg_decode_dc: bad vlc: 0:0 (0x7f86ac0090c0)
[mjpeg @ 0x7f86ac0049e0] error dc
[mjpeg @ 0x7f86ac0049e0] error y=1 x=0
[mjpeg @ 0x7f86ac0049e0] marker parser used 1118 bytes (8940 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=80831
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=79735
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=78636
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=77498
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=76444
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=75441
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=74422
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=73431
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=72442
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=71478
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=70521
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=69592
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=68691
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=67801
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=66939
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=66075
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=65225
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=64366
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=63496
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=62677
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=61813
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=60944
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=60045
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=59183
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=58273
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=57056
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=55765
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=54210
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=52610
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=51222
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=49829
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=48584
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=47261
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=45953
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=44325
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=42547
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=40892
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=39193
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=37388
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=35690
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=33957
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=32334
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=30682
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=29032
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=27399
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=25618
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=23690
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=21676
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=19813
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=17924
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=16154
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d3 avail_size_in_buf=14456
[mjpeg @ 0x7f86ac0049e0] restart marker: 3
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d4 avail_size_in_buf=12576
[mjpeg @ 0x7f86ac0049e0] restart marker: 4
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d5 avail_size_in_buf=10666
[mjpeg @ 0x7f86ac0049e0] restart marker: 5
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d6 avail_size_in_buf=9016
[mjpeg @ 0x7f86ac0049e0] restart marker: 6
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d7 avail_size_in_buf=7346
[mjpeg @ 0x7f86ac0049e0] restart marker: 7
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=5644
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=3898
[mjpeg @ 0x7f86ac0049e0] restart marker: 1
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d2 avail_size_in_buf=2073
[mjpeg @ 0x7f86ac0049e0] restart marker: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x7f86ac0049e0] decode frame unused 0 bytes
[mjpeg @ 0x7f86ac0049e0] RTP: missed 432 packets
[mjpeg @ 0x7f86ac0049e0] RTP: missed 2 packets
[rtp @ 0x7f86ac0008c0] Missing packets; dropping frame.
[mjpeg @ 0x7f86ac0049e0] RTP: missed 1 packets
[rtp @ 0x7f86ac0008c0] All info foundB vq=    0KB sq=    0B f=0/0   
Input #0, rtp, from 'rtp://127.0.0.1:5004':
  Duration: N/A, start: 0.040000, bitrate: N/A
    Stream #0:0, 21, 1/90000: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown, center), 640x480 [SAR 1:1 DAR 4:3], 1/90000, 25 tbr, 90k tbn, 90k tbc
[mjpeg @ 0x7f86ac0049e0] marker=d8 avail_size_in_buf=82480
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=e0 avail_size_in_buf=82478
[mjpeg @ 0x7f86ac0049e0] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x7f86ac0049e0] marker=db avail_size_in_buf=82460
[mjpeg @ 0x7f86ac0049e0] index=0
[mjpeg @ 0x7f86ac0049e0] qscale[0]: 2
[mjpeg @ 0x7f86ac0049e0] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7f86ac0049e0] marker=c4 avail_size_in_buf=82391
[mjpeg @ 0x7f86ac0049e0] class=0 index=0 nb_codes=12
[mjpeg @ 0x7f86ac0049e0] class=0 index=1 nb_codes=12
[mjpeg @ 0x7f86ac0049e0] class=1 index=0 nb_codes=251
[mjpeg @ 0x7f86ac0049e0] class=1 index=1 nb_codes=251
[mjpeg @ 0x7f86ac0049e0] marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x7f86ac0049e0] marker=c0 avail_size_in_buf=81971
[mjpeg @ 0x7f86ac0049e0] sof0: picture: 640x480
[mjpeg @ 0x7f86ac0049e0] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x7f86ac0049e0] component 1 1:1 id: 1 quant:0
[mjpeg @ 0x7f86ac0049e0] component 2 1:1 id: 2 quant:0
[mjpeg @ 0x7f86ac0049e0] pix fmt id 21111100
[mjpeg @ 0x7f86ac0049e0] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x7f86ac0049e0] escaping removed 324 bytes
[mjpeg @ 0x7f86ac0049e0] marker=da avail_size_in_buf=81952
[mjpeg @ 0x7f86ac0049e0] component: 0
[mjpeg @ 0x7f86ac0049e0] component: 1
[mjpeg @ 0x7f86ac0049e0] component: 2
[mjpeg @ 0x7f86ac0049e0] mjpeg_decode_dc: bad vlc: 0:0 (0x7f86ac0312c0)
[mjpeg @ 0x7f86ac0049e0] error dc
[mjpeg @ 0x7f86ac0049e0] error y=1 x=0
[mjpeg @ 0x7f86ac0049e0] marker parser used 1118 bytes (8940 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d0 avail_size_in_buf=80831
[mjpeg @ 0x7f86ac0049e0] restart marker: 0
[mjpeg @ 0x7f86ac0049e0] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f86ac0049e0] marker=d1 avail_size_in_buf=79735
[mjpeg @ 0x7f86ac0049e0] restart marker: 1

comment:2 by thovo, 9 years ago

@runge_mar: I wanted to work on this bug - but I am not able to play the original file with ffplay. How have you recorded this samplevideo.mjpeg​? (which tool and parameters?)

comment:3 by Carl Eugen Hoyos, 9 years ago

Resolution: duplicate
Status: newclosed

I believe this is a duplicate of ticket #3823, only yuvj420p is supported.

comment:4 by Martun Runge, 9 years ago

@thovo: oh, that was five moths ago. I think I just saved the webcam's mjpeg stream to a file like this:

ffmpeg -f v4l2 -input_format mjpeg -framerate 25 -video_size 640x480 -i /dev/video0 -vcodec copy samplevideo.mjpeg

ffmpeg does not seem to support yuvj422p, but some webcams produce it in hardware.

Note: See TracTickets for help on using tickets.