Opened 5 years ago

Closed 5 years ago

#2225 closed defect (fixed)

negate filter is broken on big-endian

Reported by: ami_stuff Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: negate lut
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

works ok with "-vf hflip,negate"

http://samples.ffmpeg.org/image-samples/iff-rgbx/1.rgb8

ffplay -vf negate,hflip 1.rgb8
ffplay version 1.1.git-05340be Copyright (c) 2003-2013 the FFmpeg developers
  built on Jan 22 2013 04:21:12 with gcc 4.5.0 (GCC)
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.102 / 54. 61.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[iff @ 0x117131e0] Estimating duration from bitrate, this may be inaccurate
Input #0, iff, from '1.rgb8':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: iff_ilbm (RGB8 / 0x38424752), argb, 1024x768, SAR 22:22 DAR 4:3, 90k tbr, 90k tbn, 90k tbc
Frame changed from size:0x0 to size:1024x768aq=    0KB vq=    0KB sq=    0B f=0/0   
   0.63 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   =    0B f=0/0   

Change History (4)

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avfilter
  • Keywords negate lut added
  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from iff rgb8: negate does not work correctly with hflip on big-endian to negate filter is broken on big-endian
  • Version changed from unspecified to git-master

comment:2 Changed 5 years ago by cehoyos

out.mov is broken

$ ffmpeg -i tests/lena.pnm -vf format=argb,negate -vcodec qtrle out.mov
ffmpeg version N-49546-g0e9b9a6 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  2 2013 21:05:09 with gcc 4.2.1 (GCC) (Apple Inc. build 5577)
  configuration: --cc=gcc-4.2
  libavutil      52. 17.100 / 52. 17.100
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.100 /  3. 35.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
Input #0, image2, from 'tests/lena.pnm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
Output #0, mov, to 'out.mov':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: qtrle (rle  / 0x20656C72), argb, 256x256, q=2-31, 200 kb/s, 12800 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (ppm -> qtrle)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=     258kB time=00:00:00.04 bitrate=52753.0kbits/s
video:257kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.276005%

comment:3 Changed 5 years ago by richardpl

This actually happens for any input video?
If yes than also lutrgb or lutyuv filter is broken?

comment:4 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.