Opened 7 years ago

Closed 7 years ago

#6590 closed defect (fixed)

weave filter produces video with incorrect field order

Reported by: alexz Owned by:
Priority: normal Component: avfilter
Version: 3.2.4 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

weave filter produces interlaced video with an incorrect field order

How to reproduce:

  1. Create sample video (horizontally moving box) with a double frame rate (50)
    ffmpeg -f lavfi -i "color=color=blue:size=352x288:rate=50:duration=3" \
        -vf "color=white@1:size=50x50:rate=50:duration=3 [box]; [in][box] overlay=n*hsub:10" \
        -codec:v ffv1 -level 3 output-50p.mkv
  1. Make an interlaced video with the first field top using weave filter
    ffmpeg -i output-50p.mkv -aspect 4/3 \
        -vf "weave=first_field=t" \
        -codec:v ffv1 -level 3 output-25i.mkv

Despite mediainfo correctly identifies the resulting video (output-25i.mkv) as interlaced with the top field first, video playes "jerky". This is points to an incorrect field order.

Also the incorrect field order is visible in the frame's pictures, extracted with

ffmpeg -i output-25i.mkv %03d.png

Attached patch fixes the issue.

Attachments (1)

patch-libavfilter__vf_weave.c (849 bytes ) - added by alexz 7 years ago.
weave filter patch

Download all attachments as: .zip

Change History (3)

by alexz, 7 years ago

weave filter patch

comment:1 by alexz, 7 years ago

Cc: added
Component: undeterminedavfilter

comment:2 by Elon Musk, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.