Opened 4 years ago

Last modified 3 years ago

#1347 open enhancement

gif parser

Reported by: pisto Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: gif image2 image2pipe
Cc: onemda@gmail.com Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

with the test image attached image2 works:

    ffmpeg -f image2 -vcodec gif -i test.gif -f null -

whereas image2pipe doesn't:

[pisto@pcpcpcpc Desktop]$ ffmpeg -f image2 -vcodec gif -i test.gif -f null -
ffmpeg version N-33891-g0e82d31 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 15:17:38 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
  configuration: --enable-gpl --enable-pic --arch=amd64 --cpu=native --enable-libvpx --enable-libx264 --enable-libv4l2 --enable-libtheora --enable-libspeex --enable-libschroedinger --enable-libpulse --enable-libmp3lame --enable-libfaac --enable-nonfree
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.102 /  2. 74.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'test.gif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: gif, pal8, 640x480, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x2a05d80] w:640 h:480 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0x2a06260] No opaque field provided
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.5.100
    Stream #0:0: Video: rawvideo, pal8, 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (gif -> rawvideo)
Press [q] to stop, [?] for help
[null @ 0x2a04e40] Encoder did not produce proper pts, making some up.
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/s    
video:0kB audio:0kB global headers:0kB muxing overhead -nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
[pisto@pcpcpcpc Desktop]$ cat test.gif | ffmpeg -f image2pipe -vcodec gif -i - -f null -
ffmpeg version N-33891-g0e82d31 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 15:17:38 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
  configuration: --enable-gpl --enable-pic --arch=amd64 --cpu=native --enable-libvpx --enable-libx264 --enable-libv4l2 --enable-libtheora --enable-libspeex --enable-libschroedinger --enable-libpulse --enable-libmp3lame --enable-libfaac --enable-nonfree
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.102 /  2. 74.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
lzw overread
    Last message repeated 352 times
[image2pipe @ 0x2ef0240] Estimating duration from bitrate, this may be inaccurate
Input #0, image2pipe, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: gif, pal8, 640x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x2f06020] w:640 h:480 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0x2f064e0] No opaque field provided
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.5.100
    Stream #0:0: Video: rawvideo, pal8, 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (gif -> rawvideo)
lzw overread
    Last message repeated 352 times
[null @ 0x2f04f60] Encoder did not produce proper pts, making some up.
Error while decoding stream #0:0
    Last message repeated 3 times
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/s    
video:0kB audio:0kB global headers:0kB muxing overhead -nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

Attachments (1)

test.gif (16.2 KB) - added by pisto 4 years ago.
test image. created by gnuplot.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by pisto

test image. created by gnuplot.

comment:1 Changed 4 years ago by michael

  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

image2pipe needs a AVParser for the used format. In this case here a gif AVParser would need to be written.

comment:2 Changed 4 years ago by richardpl

  • Analyzed by developer set
  • Cc onemda@gmail.com added
  • Component changed from undetermined to avcodec
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open

comment:3 Changed 3 years ago by richardpl

  • Summary changed from image2pipe is broken with gif to gif parser
Note: See TracTickets for help on using tickets.