Opened 13 years ago

Closed 13 years ago

#1058 closed defect (fixed)

yuva444p in nut muxed or demuxed as rgb555le

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

Description

./ffmpeg_g -vcodec pgmyuv -i tests/vsynth1/00.pgm -vcodec rawvideo -pix_fmt yuva444p -y yuva444p.nut

ffmpeg version N-38746-g4fe5448 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 12 2012 20:43:26 with gcc 4.6.3
  configuration: --enable-gpl
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 10.100 / 54. 10.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 64.101 /  2. 64.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'tests/vsynth1/00.pgm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: pgmyuv, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x31201c0] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x3118640] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x3118ee0] w:352 h:288 fmt:yuv420p -> w:352 h:288 fmt:yuva444p flags:0x4
Output #0, nut, to 'yuva444p.nut':
  Metadata:
    encoder         : Lavf54.2.100
    Stream #0:0: Video: rawvideo (RGB[15] / 0xF424752), yuva444p, 352x288, q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (pgmyuv -> rawvideo)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=     396kB time=00:00:00.04 bitrate=81141.2kbits/s    
video:396kB audio:0kB global headers:0kB muxing overhead 0.049815%

./ffmpeg_g -i yuva444p.nut

ffmpeg version N-38746-g4fe5448 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 12 2012 20:43:26 with gcc 4.6.3
  configuration: --enable-gpl
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 10.100 / 54. 10.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 64.101 /  2. 64.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[nut @ 0x1e8c3a0] no index at the end
[nut @ 0x1e8c3a0] Estimating duration from bitrate, this may be inaccurate
Input #0, nut, from 'yuva444p.nut':
  Metadata:
    encoder         : Lavf54.2.100
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[15] / 0xF424752), rgb555le, 352x288, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Notice how yuva444p was asked and rgb555le was detected. I do not know whether the bug is in the muxer or the demuxer.

Change History (3)

comment:1 by Carl Eugen Hoyos, 13 years ago

Component: avformatundetermined
Keywords: rgb555le removed
Reproduced by developer: set
Status: newopen

yuva444p is new, you have to write a patch similar to edf34c and add the new definition to the nut specification, see http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/140979 and http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/140976

comment:2 by Cigaes, 13 years ago

I see. Thanks. It's a bit odd for the encoder to invent a tag from outer space rather than failing.

comment:3 by Carl Eugen Hoyos, 13 years ago

Resolution: fixed
Status: openclosed

Should be fixed (the nut documentation was already sufficient imo).

Note: See TracTickets for help on using tickets.