Menu

#623 Scanline corruption on FFmpeg videos

v2.4.x
closed-fixed
None
GTK
FFMPEG
2016-02-27
2015-03-08
No

I am using VICE 2.4.18, rev 29455M compiled with --enable-static-ffmpeg and --enable-gnomeui. This version of VICE can be used to record a video using the "Save media file…" command of the "Snapshot" menu.

The videos produced by this version of VICE often have their first and last few scanlines corrupted. That is, the first few and last few horizontal lines of the videos are replaced with garbage pixels. (Usual the pixels have random colours but sometimes they're all one colour.) The exact number of garbled scanlines seems to vary with the model of the emulated machine; for NTSC Commodore 64s, for example, VICE records videos at a resolution of 384×256, of which the top four and bottom six scanlines are always corrupted.

The problem doesn't seem to be specific to any one media container format or video codec; all the ones I tested had this problem.

Attached is a screenshot showing a recording of an NTSC C64.

1 Attachments

Discussion

  • gpz

    gpz - 2015-03-17

    this is probably expected when trying to encode a buffer whose dimensions are not a multiple of 8 (or 16?) - something for the ffmpeg expert(s) to fix :)

     
  • Andreas Matthies

    • status: open --> open-fixed
     
  • Andreas Matthies

    Fixed in rev 29512. Please comment if you prefer cutting (which is imlement now) or adding black border to get the %16 size.

     
  • Tristan Miller

    Tristan Miller - 2015-03-22

    I prefer cutting as long as it's done losslessly.

     
  • Querino

    Querino - 2015-03-22

    in windows, i get black only borders even without this fix.

     

    Last edit: Querino 2015-03-22
    • Andreas Matthies

      Picture buffer may sometimes be clean (filled with 0) at allocation time, sometimes not. I saw the garbaged pixels even in windows.

       
      • Querino

        Querino - 2015-03-23

        ok, i was just lucky then. :)

        it looks like it's "cutting" now. it works fine here.
        only very minor cosmetic issue: the status bar (if shown) in the SDL version gets partially cut too. doesn't worry me personally.

         
  • Tristan Miller

    Tristan Miller - 2015-03-26

    I retested this with VICE 2.4.18, rev 29533 and can confirm that the garbage pixels are gone, at least with x64. NTSC C64s now record at 384×240.

     
  • gpz

    gpz - 2015-06-16
    • status: open-fixed --> pending-fixed
     
  • Marco van den Heuvel

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.