Opened 12 years ago

Closed 11 years ago

#1218 closed defect (fixed)

zerocodec: decodes upside-down

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

Description

decodec correctly with original codec

C:\>ffmpeg -i zerocodec.avi out.avi
ffmpeg version N-39824-g7432bcf Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 15 2012 02:20:32 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 70.100 /  2. 70.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from 'zerocodec.avi':
  Duration: 00:00:02.00, start: 0.000000, bitrate: 1535 kb/s
    Stream #0:0: Video: zerocodec (ZECO / 0x4F43455A), uyvy422, 320x240, 25 tbr,
 25 tbn, 25 tbc
Incompatible pixel format 'uyvy422' for codec 'mpeg4', auto-selecting format 'yu
v420p'
[buffer @ 0x1dc1240] w:320 h:240 pixfmt:uyvy422 tb:1/1000000 sar:0/1 sws_param:f
lags=2
[buffersink @ 0x1dc1540] auto-inserting filter 'auto-inserted scale 0' between t
he filter 'src' and the filter 'out'
[scale @ 0x1dc1ee0] w:320 h:240 fmt:uyvy422 sar:0/1 -> w:320 h:240 fmt:yuv420p s
ar:0/1 flags:0x4
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf54.3.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200
 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (zerocodec -> mpeg4)
Press [q] to stop, [?] for help
frame=   50 fps=0.0 q=2.0 Lsize=     161kB time=00:00:02.00 bitrate= 657.8kbits/
s
video:154kB audio:0kB global headers:0kB muxing overhead 4.396790%

Attachments (1)

zerocodec.avi (374.8 KB ) - added by ami_stuff 12 years ago.

Download all attachments as: .zip

Change History (7)

by ami_stuff, 12 years ago

Attachment: zerocodec.avi added

comment:1 by Carl Eugen Hoyos, 12 years ago

Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master
Last edited 12 years ago by Carl Eugen Hoyos (previous) (diff)

comment:2 by Carl Eugen Hoyos, 12 years ago

Keywords: zeco added

comment:3 by ami_stuff, 12 years ago

this one plays correctly, so no need to fix anything. mine should be encoded as rgb24 (at least I selected such color depth for output in virtualdub), but i'm not sure which pixel formats are really supported by zerocodec

in reply to:  3 comment:4 by ami_stuff, 12 years ago

Replying to ami_stuff:

this one plays correctly, so no need to fix anything. mine should be encoded as rgb24 (at least I selected such color depth for output in virtualdub), but i'm not sure which pixel formats are really supported by zerocodec

I messed up something, here is a correction:

ffplay:

sample-zeco.avi - ok
zerocodec.avi - upside-down

wmp + zerocodec or virtualdub + zerocodec:

sample-zeco.avi - upside-down
zerocodec.avi - ok

Last edited 12 years ago by ami_stuff (previous) (diff)

comment:5 by ami_stuff, 12 years ago

remove ffzerocodec and add this to codecs.conf for test with mplayer:

videocodec zerocodec
  info "ZeroCodec"
  status working
  fourcc ZECO
  driver vfw
  dll "zerocodec.dll"
  out BGR24

http://xrowcc.blog.shinobi.jp/Entry/388/
http://file.xrowcc.blog.shinobi.jp/zerocodec201.zip

comment:6 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: openclosed

Should be fixed, thank you for reporting and testing!

Note: See TracTickets for help on using tickets.