Opened 13 years ago

Last modified 13 years ago

#1945 new enhancement

support nv12 raw fourcc

Reported by: compn Owned by: reimar
Priority: if idle Component: vd
Version: HEAD Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

sample: 4_2_0 YCbCr (NV12).avi
https://ffmpeg.org/trac/ffmpeg/ticket/307
https://trac.videolan.org/vlc/ticket/4985:
sample url: http://www.multiupload.com/4DEFAPIZNL

plays diagonally shifted with rawnv12 codec and this entry to codecs.conf:

videocodec ffrawnv12

info "RAW NV12"
status working
format 0x0
format 0x20776172
fourcc nv12,NV12
driver ffmpeg
dll rawvideo
out NV12

Attachments (1)

patchrawnv12.diff (698 bytes ) - added by cehoyos 13 years ago.
odd nv12 rawvideo patch for FFmpeg

Download all attachments as: .zip

Change History (3)

comment:1 by reimar, 13 years ago

The video is 350x230 but is stored as 352x230 (multiple of 4 width).
Without knowing why that is so (is that always the case for NV12, is it only because it is in AVI or was the program that generated the AVI file broken?) it's not really possible to fix.

by cehoyos, 13 years ago

Attachment: patchrawnv12.diff added

odd nv12 rawvideo patch for FFmpeg

comment:2 by cehoyos, 13 years ago

Attached fixes "diagonally shifted", but chroma is still moved ~half width.

Note: See TracTickets for help on using tickets.