Discussion:
[FFmpeg-user] How to filter VHS cassette artifacts
Ulf Zibis
2018-12-07 19:33:40 UTC
Permalink
Hi,

I have a VOB-file, originally recorded from a VHS-Kassette.

On the upper edge I see a black line from left to the middle.

Approximately 5 lines from bottom I see 2..3 other horizontally shifted
flickering lines.

Filter kerndeint removes the upper one, but not the lowers. But it does
not remove comb-like artifacts from vertical edges which bwdif perfectly
does.

Do one have an idea for a filter which is restricted to only alter those
small lined areas?

Mach thanks,

Ulf
--
Von meinem Seibert gesendet

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with s
Carl Eugen Hoyos
2018-12-08 10:34:19 UTC
Permalink
Post by Ulf Zibis
Hi,
I have a VOB-file, originally recorded from a VHS-Kassette.
On the upper edge I see a black line from left to the middle.
Approximately 5 lines from bottom I see 2..3 other horizontally shifted
flickering lines.
Filter kerndeint removes the upper one, but not the lowers. But it does
not remove comb-like artifacts from vertical edges which bwdif perfectly
does.
Do one have an idea for a filter which is restricted to only alter those
small lined areas?
Shouldn't you just crop them?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@f
Bouke / VideoToolShed
2018-12-08 15:09:33 UTC
Permalink
Post by Carl Eugen Hoyos
Post by Ulf Zibis
Hi,
I have a VOB-file, originally recorded from a VHS-Kassette.
On the upper edge I see a black line from left to the middle.
Approximately 5 lines from bottom I see 2..3 other horizontally shifted
flickering lines.
Filter kerndeint removes the upper one, but not the lowers. But it does
not remove comb-like artifacts from vertical edges which bwdif perfectly
does.
Do one have an idea for a filter which is restricted to only alter those
small lined areas?
Shouldn't you just crop them?
He should as it is intended for computer display or blowing up to HD, as SD is an overscanned format, so about 10% (to tast it seems) should be cropped off.
(Hence you see so many mics dipping in the image, these are NOT mistakes, but good practice to get the mic as close as the proper framing allows.)

Bouke (who is feeling quite old now.)
Post by Carl Eugen Hoyos
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request
Ulf Zibis
2018-12-08 20:48:24 UTC
Permalink
Hi again,
Post by Carl Eugen Hoyos
Shouldn't you just crop them?
I don't want to crop them.

In the attached sample you can see the partly broken 1st line (missing
content at always same position) and 2 broken lines (irregularly
horizontally shifted), 5..8 lines from bottom.

How would it be possible, to consolidate them by copy/average from
adjacent lines?

With the extracted sample you can also see a bug in ffmpeg. The videos
SAR is 12:11, so the JPEGs x/y dpi should be 11/12 instead 12/11.

- Ulf

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ff
Ulf Zibis
2018-12-08 20:50:16 UTC
Permalink
Hi again,
Post by Carl Eugen Hoyos
Shouldn't you just crop them?
I don't want to crop them.

In the attached sample you can see the partly broken 1st line (missing
content at always same position) and 2 broken lines (irregularly
horizontally shifted), 5..8 lines from bottom.

How would it be possible, to consolidate them by copy/average from
adjacent lines?

With the extracted sample you can also see a bug in ffmpeg. The videos
SAR is 12:11, so the JPEGs x/y dpi should be 11/12 instead 12/11.

- Ulf
Paul B Mahol
2018-12-08 20:54:32 UTC
Permalink
Post by Ulf Zibis
Hi again,
Post by Carl Eugen Hoyos
Shouldn't you just crop them?
I don't want to crop them.
In the attached sample you can see the partly broken 1st line (missing
content at always same position) and 2 broken lines (irregularly
horizontally shifted), 5..8 lines from bottom.
How would it be possible, to consolidate them by copy/average from
adjacent lines?
With the extracted sample you can also see a bug in ffmpeg. The videos
SAR is 12:11, so the JPEGs x/y dpi should be 11/12 instead 12/11.
- Ulf
You can use fillborders filter, but you can not guess correct missing pixels.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org w
Ulf Zibis
2018-12-08 21:39:53 UTC
Permalink
Hi,
Post by Paul B Mahol
You can use fillborders filter,
Thanks for your hint, but I also don't want to fill the border with
black or what ever.
Post by Paul B Mahol
but you can not guess correct missing pixels.
It doesn't matter, if the pixels are not 100 % correct.

-Ulf

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subje
Paul B Mahol
2018-12-08 21:59:14 UTC
Permalink
Post by Ulf Zibis
Hi,
Post by Paul B Mahol
You can use fillborders filter,
Thanks for your hint, but I also don't want to fill the border with
black or what ever.
Post by Paul B Mahol
but you can not guess correct missing pixels.
It doesn't matter, if the pixels are not 100 % correct.
Than you need to crop relevant part you want to do special filtering,
and than combine it back with rest of video.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subj
Ulf Zibis
2018-12-08 23:15:56 UTC
Permalink
Hi,
Post by Paul B Mahol
Than you need to crop relevant part you want to do special filtering,
and than combine it back with rest of video.
Exactly ... and if I would know a ffmpeg command line for this I would
not ask for in this list.
Thanks for getting what I want.

Is there anybody who can give me some hints?

-Ulf

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org wi
Lou Logan
2018-12-09 21:26:16 UTC
Permalink
Post by Ulf Zibis
Hi,
I have a VOB-file, originally recorded from a VHS-Kassette.
On the upper edge I see a black line from left to the middle.
Approximately 5 lines from bottom I see 2..3 other horizontally shifted
flickering lines.
The band of garbage on the bottom looks like head switching noise.

https://bavc.github.io/avaa/artifacts/head_switching_noise.html
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@f
Jason Coleman
2018-12-11 00:05:05 UTC
Permalink
I agree with Lou, it looks like switching noise. I've historically always cropped it out of every VHS capture I ever did. I suspect you might think there's something salvagable there, and maybe there would be in the original, if you had special VCRs with the original tape, and re-did the capture. But at this point, it's already part of your video, and probably too garbled to effectively cleaned. I think most VCRs filtered it out on playback, so you really probably do have all of the usable image you probably ever had, and should just crop it.

I'd be curious if I'm way wrong here, but I'm guessing the reason no one has given you a simple way to 'fix' it besides cropping, is that at this point it's a non-trivial thing to fix. There's no simple set some switches and it'll clean it up for you. Digital captures often showed you more of the picture then you would see on playback on VCRs of the era. It was always there, they just cropped it out because they knew it was there, anmd people would assume something was wrong if they saw it. You really aren't losing anything by cropping, you probably only ever saw the clean part of the signal in what you have now..


-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Lou Logan
Sent: Sunday, December 9, 2018 4:26 PM
To: ffmpeg-***@ffmpeg.org
Subject: Re: [FFmpeg-user] How to filter VHS cassette artifacts
Post by Ulf Zibis
Hi,
I have a VOB-file, originally recorded from a VHS-Kassette.
On the upper edge I see a black line from left to the middle.
Approximately 5 lines from bottom I see 2..3 other horizontally
shifted flickering lines.
The band of garbage on the bottom looks like head switching noise.

https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbavc.github.io%2Favaa%2Fartifacts%2Fhead_switching_noise.html&amp;data=02%7C01%7C%7C459e23486ea0482e56a308d65e1cfcb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636799875916584760&amp;sdata=ao44JID%2F0L8fO9FWmvsrFXYrRela7Vk7r%2FJ%2BGAFhKAc%3D&amp;reserved=0
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-user&amp;data=02%7C01%7C%7C459e23486ea0482e56a308d65e1cfcb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636799875916584760&amp;sdata=Lm8CPo2zvi%2BxFtQgpy2nM0gW8vQvDpAHKO2LkdJPEIE%3D&amp;reserved=0

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subjec

Loading...