Opened 12 years ago

Closed 5 years ago

Last modified 5 years ago

#1336 closed enhancement (fixed)

support image2pipe input without parser

Reported by: Carl Eugen Hoyos Owned by:
Priority: wish Component: undetermined
Version: git-master Keywords: roundup
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

(issue 2683)

image2pipe fails for codecs that do not have a parser.

$ ./ffmpeg -i tests/lena.pnm out.bmp

...

$ cat out.bmp |./ffmpeg -f image2pipe -vcodec bmp -i -
ffmpeg version N-40924-g349c624 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 21 2012 07:59:42 with gcc 4.3.2
  configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.101 / 54.  5.101
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 75.100 /  2. 75.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[bmp @ 0x8f1ac20] not enough data (4096 < 196662), trying to decode anyway
[bmp @ 0x8f1ac20] not enough data (4042 < 196608)
[image2pipe @ 0x8f0c4a0] Estimating duration from bitrate, this may be inaccurate
Input #0, image2pipe, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: bmp, bgr24, 256x256, 25 fps, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Change History (5)

comment:1 by Michael Niedermayer, 12 years ago

Status: newopen
Summary: image2pipe fails for some codecssupport image2pipe input without parser
Type: defectenhancement

comment:2 by Carl Eugen Hoyos, 11 years ago

Keywords: roundup added

The bmp parser was implemented by Paul B Mahol.

comment:3 by Carl Eugen Hoyos, 11 years ago

Parsers are still missing for at least dpx, jpegls, gif, pcx, sgi, sunrast, targa and tiff.

comment:4 by Elon Musk, 5 years ago

Resolution: invalid
Status: openclosed

One can not use image2pipe without parsers. And all other parsers you mentioned (except dxp and gif) can not be written due their format limitation.

in reply to:  4 comment:5 by Carl Eugen Hoyos, 5 years ago

Priority: normalwish
Resolution: invalidfixed

Replying to richardpl:

One can not use image2pipe without parsers.

Works with frame_size for formats like sgi and targa.

You implemented parsers for (among others) dpx and gif, I fixed (lol) jpegls, so I consider this fixed.

Note: See TracTickets for help on using tickets.