Opened 9 years ago

Closed 7 years ago

#5522 closed defect (fixed)

cfhd: interlaced output may be wrong

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

Description

ffmpeg's output is not as smooth as what original codec outputs (mismatch in fields?) - see attached files

C:\>d:\ffmpeg -i D:\cfhd_interlaced.avi d:\out.bmp
ffmpeg version N-79690-g78baa45 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enabl
e-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable
-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
-lzma --enable-decklink --enable-zlib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, avi, from 'D:\cfhd_interlaced.avi':
  Metadata:
    date            : 2016-05-08T00:39:19+02:00
    encoder         : Adobe Premiere Pro CC 2015 (Windows)
  Duration: 00:00:01.00, start: 0.000000, bitrate: 3475 kb/s
    Stream #0:0: Video: cfhd (CFHD / 0x44484643), yuv422p10le, 720x480, 1 fps, 1
 tbr, 1 tbn
[image2 @ 00000000025b0540] Using AVStream.codec to pass codec parameters to mux
ers is deprecated, use AVStream.codecpar instead.
Output #0, image2, to 'd:\out.bmp':
  Metadata:
    date            : 2016-05-08T00:39:19+02:00
    encoder         : Lavf57.34.103
    Stream #0:0: Video: bmp, bgr24, 720x480, q=2-31, 200 kb/s, 1 fps, 1 tbn
    Metadata:
      encoder         : Lavc57.38.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (cfhd (native) -> bmp (native))
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=25.6x

video:1013kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: unknown

Attachments (6)

cfhd_interlaced.avi (424.2 KB ) - added by ami_stuff 9 years ago.
output_from_original_codec.avi (541.8 KB ) - added by ami_stuff 9 years ago.
filmscan2q_prog.avi (309.9 KB ) - added by ami_stuff 9 years ago.
filmscan2q_int.avi (327.5 KB ) - added by ami_stuff 9 years ago.
progressive_q_mediumhd.avi (1.7 MB ) - added by ami_stuff 8 years ago.
interlaced_q_mediumhd.avi (1.7 MB ) - added by ami_stuff 8 years ago.

Change History (13)

by ami_stuff, 9 years ago

Attachment: cfhd_interlaced.avi added

by ami_stuff, 9 years ago

by ami_stuff, 9 years ago

Attachment: filmscan2q_prog.avi added

by ami_stuff, 9 years ago

Attachment: filmscan2q_int.avi added

comment:1 by ami_stuff, 9 years ago

so yes, decoding interlaced video is buggy

comment:2 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedavcodec
Keywords: cfhd added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:3 by Elon Musk, 8 years ago

Could you find more interlaced samples as this is not enough to locate tag responsible for marking interlaced frame?

comment:4 by ami_stuff, 8 years ago

Here is one more sample:

https://files.fm/u/4qc3e934

by ami_stuff, 8 years ago

Attachment: progressive_q_mediumhd.avi added

by ami_stuff, 8 years ago

Attachment: interlaced_q_mediumhd.avi added

comment:5 by ami_stuff, 8 years ago

attached another one

comment:6 by Kieran Kunhya, 7 years ago

9cefb9e7ec508900ba147e6977590f03456aa15c seems to fix things, I'm not sure if filmscan2q_int.avi is meant to look like this.

comment:7 by Carl Eugen Hoyos, 7 years ago

Resolution: fixed
Status: openclosed

PSNR has improved nearly three times for filmscan2q.

Note: See TracTickets for help on using tickets.