What should I do if my uvc camera streams jpeg without huffman tables?

sonntex sonntex at gmail.com
Wed Mar 16 16:21:49 UTC 2016


I use rpi and uvc camera that streams jpeg without huffman tables.
This jpeg files do not supported by some viewers. So, what should I do
to save jpeg files correctly? I tried jpegparse to fix this problem,
but it does not make any good effect.

rpi grabber # rm -rf video-*
rpi grabber # gst-launch-1.0 -e v4l2src device=/dev/video0
do-timestamp=true ! image/jpeg,width=640,height=480,framerate=30/1 !
videorate ! multifilesink location=video-%d.jpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...
Got EOS from element "pipeline0".
EOS received - stopping pipeline...
Execution ended after 0:00:06.504037000
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
rpi grabber # hexdump -C -n 1024 video-0.jpeg
00000000  ff d8 ff e0 00 21 41 56  49 31 00 01 01 01 00 78  |.....!AVI1.....x|
00000010  00 78 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |.x..............|
00000020  00 00 00 00 00 ff db 00  43 00 04 02 03 03 03 02  |........C.......|
00000030  04 03 03 03 04 04 04 04  06 0a 06 06 05 05 06 0c  |................|
00000040  08 09 07 0a 0e 0c 0f 0f  0e 0c 0e 0f 10 12 17 13  |................|
00000050  10 11 15 11 0d 0e 14 1a  14 15 17 18 19 1a 19 0f  |................|
00000060  13 1c 1e 1c 19 1e 17 19  19 18 ff db 00 43 01 04  |.............C..|
00000070  04 04 06 05 06 0b 06 06  0b 18 10 0e 10 18 18 18  |................|
00000080  18 18 18 18 18 18 18 18  18 18 18 18 18 18 18 18  |................|
*
000000a0  18 18 18 18 18 18 18 18  18 18 18 18 18 18 18 ff  |................|
000000b0  dd 00 04 00 0a ff e0 00  04 00 00 ff c0 00 11 08  |................|
000000c0  01 e0 02 80 03 01 21 00  02 11 01 03 11 01 ff da  |......!.........|
000000d0  00 0c 03 01 00 02 11 03  11 00 3f 00 f8 a9 63 6c  |..........?...cl|
000000e0  72 6a 75 dc 70 49 38 03  00 56 28 d1 0f 55 cd 28  |rju.pI8..V(..U.(|
000000f0  52 c0 73 f8 d3 60 9d 81  93 1d 4f 14 cc 71 c7 7a  |R.s..`....O..q.z|
00000100  34 02 07 4f 9f 8c f1 4d  75 eb c6 28 1a 19 2a 7f  |4..O...Mu..(..*.|
00000110  91 50 91 81 c8 a1 05 c8  c8 a8 9c 7a 53 24 61 f5  |.P.........zS$a.|
00000120  a6 1a 61 d4 69 1c 52 1e  05 20 10 fd 28 a0 4e e2  |..a.i.R.. ..(.N.|
00000130  51 8a 69 d8 96 cf ff d0  f8 32 83 40 09 45 00 14  |Q.i......2. at .E..|
00000140  50 01 45 00 14 50 01 45  00 02 8a 00 28 a0 02 8a  |P.E..P.E....(...|
00000150  00 28 a0 0f ff d1 f8 2e  8a 00 05 14 00 51 40 05  |.(...........Q at .|
00000160  14 00 51 40 05 14 00 51  40 05 14 00 51 40 05 15  |..Q at ...Q@...Q at ..|
00000170  0d dc 0f ff d2 f8 2e 8a  49 80 51 4c 02 8a 00 28  |........I.QL...(|
00000180  a0 02 81 40 08 29 68 00  a2 80 0e d4 50 01 45 00  |... at .)h.....P.E.|
00000190  14 52 b8 1f ff d3 f8 c4  47 c0 e6 a4 55 39 03 15  |.R......G...U9..|
000001a0  91 ad 87 85 20 f0 78 a7  05 e2 84 16 5b 83 28 2b  |.... .x.....[.(+|
000001b0  92 69 8c bc 0a 5b 0a c3  19 0e 39 14 c7 8c e2 8b  |.i...[....9.....|
000001c0  8d 24 36 68 f2 a0 0e d5  52 45 e0 fa 8a 10 99 13  |.$6h....RE......|
000001d0  2f 15 13 2d 52 02 32 2a  32 28 10 84 66 9a 46 0d  |/..-R.2*2(..f.F.|
000001e0  01 70 34 dc 50 02 52 d0  41 ff d4 f8 32 83 50 9d  |.p4.P.R.A...2.P.|
000001f0  80 0e 29 2a c0 28 a0 02  8a 00 28 a0 02 8a 00 28  |..)*.(....(....(|
00000200  a0 02 8a 00 28 a0 02 81  40 1f ff d5 f8 33 14 94  |....(... at ....3..|
00000210  00 a3 a5 18 e6 80 03 d2  92 80 0a 28 00 fc 28 a0  |...........(..(.|
00000220  02 8a 00 28 a0 02 8a 00  0f 4a 2a 1b 00 a2 90 1f  |...(.....J*.....|
00000230  ff d6 f8 2e 8a cc 02 8a  b4 c0 28 a6 01 45 00 14  |..........(..E..|
00000240  50 01 45 00 14 50 01 45  00 14 52 6c 02 8a 80 3f  |P.E..P.E..Rl...?|
00000250  ff d7 f8 d4 2d 4a 8a 71  9c e3 eb 59 5e c6 96 1e  |....-J.q...Y^...|
00000260  b1 e7 ad 38 2f 18 a4 16  18 50 90 72 31 48 aa 70  |...8/....P.r1H.p|
00000270  78 e9 46 e3 68 51 19 3c  91 8f 6a 46 4e d4 6c 2b  |x.F.hQ.<..jFN.l+|
00000280  11 3a 63 ad 53 b8 8f 93  8e 45 17 0b 15 dd 70 3a  |.:c.S....E....p:|
00000290  d4 4c 30 29 a6 04 4e 2a  32 29 88 69 1c 03 41 e4  |.L0)..N*2).i..A.|
000002a0  50 16 1a 45 34 8a 00 43  45 04 f2 9f ff d0 f8 30  |P..E4..CE......0|
000002b0  d1 59 80 73 40 a6 9d 80  0d 25 58 0a 05 25 00 14  |.Y.s at ....%X..%..|
000002c0  50 01 45 00 14 50 01 45  00 14 50 01 45 00 7f ff  |P.E..P.E..P.E...|
000002d0  d1 f8 2e 97 14 00 80 50  68 01 48 38 06 8e f4 93  |.......Ph.H8....|
000002e0  00 3d 68 e2 98 00 cd 25  00 14 50 01 45 00 14 54  |.=h....%..P.E..T|
000002f0  36 01 45 20 03 45 00 7f  ff d2 f8 2e 8a cc 02 8a  |6.E .E..........|
00000300  00 28 ab 4c 02 8a 60 14  50 00 28 a0 02 8a 00 3b  |.(.L..`.P.(....;|
00000310  51 49 b0 0a 2a 00 28 a0  0f ff d3 f8 e4 2e 46 47  |QI..*.(.......FG|
00000320  19 a9 23 07 af 51 58 a3  42 41 d7 9a 70 a3 71 a1  |..#..QX.BA..p.q.|
00000330  a7 ae 3b 52 6d c9 eb 43  56 06 c7 85 04 73 48 cb  |..;Rm..CV....sH.|
00000340  8e 4f 5a 57 11 0c ab c6  45 56 91 46 08 c0 cf 5a  |.OZW....EV.F...Z|
00000350  77 19 4e 64 2a 7a 54 0e  3d 68 42 4e c4 4c b5 1b  |w.Nd*zT.=hBN.L..|
00000360  03 9a a0 18 47 34 83 3d  a9 88 42 29 a4 73 40 0d  |....G4.=..B).s at .|
00000370  20 e2 92 90 1f ff d4 f8  37 8a 4a cc 03 14 1a 00  | .......7.J.....|
00000380  4a 29 a6 01 45 58 05 14  00 51 40 05 14 00 51 40  |J)..EX...Q at ...Q@|
00000390  05 14 00 51 40 1f ff d5  f8 2c d2 f6 a0 03 8c 52  |...Q at ....,.....R|
000003a0  54 36 02 e4 50 29 00 51  8e 2a d3 00 a3 de 98 09  |T6..P).Q.*......|
000003b0  45 00 14 76 a8 6c 02 8a  40 14 50 01 45 00 7f ff  |E..v.l.. at .P.E...|
000003c0  d6 f8 2e 8a cc 02 8a 00  28 a0 02 8a b4 c0 28 a6  |........(.....(.|
000003d0  01 45 00 14 0a 4d 80 0a  2a 00 28 a0 02 8a 00 ff  |.E...M..*.(.....|
000003e0  00 ff d7 f8 ed 47 18 cf  02 a4 43 db b5 63 63 42  |.....G....C..ccB|
000003f0  45 03 b1 a7 20 f5 34 87  a8 8c 3e 6c 0a 40 0e ed  |E... .4...>l. at ..|
00000400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160316/7b8d8c87/attachment.html>


More information about the gstreamer-devel mailing list