Opened 4 years ago

Last modified 3 years ago

#2604 reopened defect

flm files cannot be written without explicitly setting the pixel format for rawvideo

Reported by: str Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg.exe -i d:\videos
\simpsons_trailer05-de_xhigh.mov -vcodec rawvideo test.flm
ffmpeg version N-52523-g0fb64da Copyright (c) 2000-2013 the FFmpeg developers

built on Apr 28 2013 00:01:23 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av

isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrn
b --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libr
tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo
ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib

libavutil 52. 27.101 / 52. 27.101
libavcodec 55. 6.100 / 55. 6.100
libavformat 55. 3.100 / 55. 3.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 61.100 / 3. 61.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\videos\simpsons_trailer05-de_xhigh.m
ov':

Metadata:

major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2007-07-16 16:12:57
copyright : (c) 20th Century Fox of Germany
copyright-eng : (c) 20th Century Fox of Germany
title : The Simpsons Movie [20th Century Fox of Germany]
title-eng : The Simpsons Movie [20th Century Fox of Germany]
artist : Encoded by: S&L MediaNetworX GmbH
artist-eng : Encoded by: S&L MediaNetworX GmbH

Duration: 00:01:46.00, start: 0.000000, bitrate: 1357 kb/s

Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 480x196, 1227 k

b/s, 25 fps, 25 tbr, 600 tbn, 600 tbc

Metadata:

creation_time : 2007-07-16 16:12:57
handler_name : Apple Alias-Datensteuerung

Stream #0:1(eng): Audio: qdm2 (QDM2 / 0x324D4451), 44100 Hz, stereo, s16, 12

8 kb/s

Metadata:

creation_time : 2007-07-16 16:12:57
handler_name : Apple Alias-Datensteuerung

File 'test.flm' already exists. Overwrite ? [y/N] y
[filmstrip @ 003fe580] only AV_PIX_FMT_RGBA is supported
Output #0, filmstrip, to 'test.flm':

Metadata:

major_brand : qt
minor_version : 537199360
compatible_brands: qt
artist-eng : Encoded by: S&L MediaNetworX GmbH
copyright : (c) 20th Century Fox of Germany
copyright-eng : (c) 20th Century Fox of Germany
title : The Simpsons Movie [20th Century Fox of Germany]
title-eng : The Simpsons Movie [20th Century Fox of Germany]
artist : Encoded by: S&L MediaNetworX GmbH
encoder : Lavf55.3.100
Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuvj420p, 480x196, q=

2-31, 200 kb/s, 90k tbn, 25 tbc

Metadata:

creation_time : 2007-07-16 16:12:57
handler_name : Apple Alias-Datensteuerung

Stream mapping:

Stream #0:0 -> #0:0 (svq3 -> rawvideo)

Could not write header for output file #0 (incorrect codec parameters ?): Invali
d data found when processing input

d:\3rdParty\ffmpeg-20130428-git-0fb64da-win32-static\bin>

Change History (8)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from avformat to undetermined
  • Resolution set to invalid
  • Status changed from new to closed
[filmstrip @ 003fe580] only AV_PIX_FMT_RGBA is supported

This error message tries to tell you to use -pix_fmt rgba
Please understand that this is a bug tracker, not a support forum.

comment:2 Changed 4 years ago by str

I know that this is the bug tracker. And I think, that if the encoder does not contains such information, then this is a bug. Most other encoders provide that information in their pix_fmts field. But this field is 0 in the encoder. The check is performed anywehere in the code but is not visible to outside.

comment:3 Changed 4 years ago by cehoyos

The rawvideo encoder supports not only rgba all, but all colour spaces.
The filmstrip muxer avoids to write invalid files.

Version 0, edited 4 years ago by cehoyos (next)

comment:4 Changed 4 years ago by str

And there is no way to check this programmatically? I use the API, not ffmpeg as tool.

comment:5 Changed 4 years ago by cehoyos

How do you choose filmstrip?
What I mean is: If filmstrip is hard coded, you can also hard code rgba or do I misunderstand?

comment:6 Changed 4 years ago by str

In my app the user can select any muxers (by file extension). So I should have to hardcode each exceptional format or codec?

comment:7 Changed 4 years ago by cehoyos

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:8 Changed 3 years ago by michael

  • Summary changed from flm files cannot be written to flm files cannot be written without explicitly setting the pixel format for rawvideo
Note: See TracTickets for help on using tickets.