sugatam
Posts: 19
Joined: Sat Sep 01, 2012 7:06 pm

1080i deinterlacing

Sat Sep 22, 2012 1:22 pm

Is there a possibility of adding this to the GPU? Doesn't have to be fancy, even bob would do.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Sat Sep 22, 2012 1:35 pm

sugatam wrote:Is there a possibility of adding this to the GPU? Doesn't have to be fancy, even bob would do.
Something simple (like bob) is possible. Could you provide a sample file that would benefit from this?

sugatam
Posts: 19
Joined: Sat Sep 01, 2012 7:06 pm

Re: 1080i deinterlacing

Mon Sep 24, 2012 1:02 am

Here is a clip from NBC captured using my hdhomerun. It is 1080i mpeg2 with ac3 audio, and the pi plays it perfectly other than the jaggies.

https://docs.google.com/open?id=0B6kbH3 ... mZJRG8yMWc

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Mon Sep 24, 2012 10:16 am

sugatam wrote:Here is a clip from NBC captured using my hdhomerun. It is 1080i mpeg2 with ac3 audio, and the pi plays it perfectly other than the jaggies.

https://docs.google.com/open?id=0B6kbH3 ... mZJRG8yMWc
Thanks.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Tue Sep 25, 2012 12:09 am

sugatam wrote:Here is a clip from NBC captured using my hdhomerun. It is 1080i mpeg2 with ac3 audio, and the pi plays it perfectly other than the jaggies.

https://docs.google.com/open?id=0B6kbH3 ... mZJRG8yMWc
I've added a simple "bob" deinterlace to GPU that seems to work akay at 1080i.

Currently omxplayer and xbmc don't allow deinterlace to be enabled when the resolution is too high, so I've requested that check is removed.

Should be supported in a build soon...

sugatam
Posts: 19
Joined: Sat Sep 01, 2012 7:06 pm

Re: 1080i deinterlacing

Tue Sep 25, 2012 2:22 am

Wow, that was fast! Thanks dom!! I compile my own omxplayer, so I can remove the check easily enough myself. Do I need a new firmware?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Tue Sep 25, 2012 9:18 am

sugatam wrote:Wow, that was fast! Thanks dom!! I compile my own omxplayer, so I can remove the check easily enough myself. Do I need a new firmware?
Yes, rpi-update or grab start.elf from GitHub.

sugatam
Posts: 19
Joined: Sat Sep 01, 2012 7:06 pm

Re: 1080i deinterlacing

Wed Sep 26, 2012 12:50 am

Just tested it - works great! Thanks a lot!! Hopefully one of days you'll have the time to code something a more sophisticated deinterlacing algorithm, but this is great in the meantime.

BTW, is there any harm to calling omxplayer with -d even when the source is progressive? Hopefully the GPU does not do anything if it is dealing with progressive content?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Wed Sep 26, 2012 9:32 am

sugatam wrote:Just tested it - works great! Thanks a lot!! Hopefully one of days you'll have the time to code something a more sophisticated deinterlacing algorithm, but this is great in the meantime.

BTW, is there any harm to calling omxplayer with -d even when the source is progressive? Hopefully the GPU does not do anything if it is dealing with progressive content?
You don't want to do that. It will apply the algorithm and degrade the quality of progressive content.
The metadata in files doesn't always signal correctly interlaced content, so GPU can't be sure whether it was interlaced.

sugatam
Posts: 19
Joined: Sat Sep 01, 2012 7:06 pm

Re: 1080i deinterlacing

Wed Sep 26, 2012 12:22 pm

Makes sense. So the selective application of deinterlacing based on the source has to be done at the player level. Looking at the code, OMXPlayer doesn't do it currently. In reality, things are a bit more complicated - the source could be true progressive, it could have 3:2 pulldown, or true interlaced. The first two cases should bypass the GPU deinterlacing, provided that in the pulldown case, the player can apply the proper 2:3 reverse pulldown.

chris178
Posts: 3
Joined: Sun Sep 30, 2012 11:22 pm

Re: 1080i deinterlacing

Mon Oct 01, 2012 1:59 pm

Hi All,

Can anyone confirm any successful testing with de-interlacing on 1080i (or HD in general) content on latest version of firmware and omxplayer (or some xbmc builds) ?

Best regards,

Chris

sugatam
Posts: 19
Joined: Sat Sep 01, 2012 7:06 pm

Re: 1080i deinterlacing

Mon Oct 01, 2012 4:19 pm

Yes, I have tested 1080i deinterlacing with omxplayer and it works well

sorrowuk
Posts: 25
Joined: Sat Oct 13, 2012 10:14 pm

Re: 1080i deinterlacing

Sat Oct 13, 2012 10:18 pm

If I update to this latest gpu firmware and also use the latest nightly xbmc build can I deinterlace 1080i using bob.

Do I just select the deinterlace option in xbmc and will it work ? Can I expect it to run at 50fps with no drop frames ?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Sun Oct 14, 2012 11:09 am

sorrowuk wrote:If I update to this latest gpu firmware and also use the latest nightly xbmc build can I deinterlace 1080i using bob.

Do I just select the deinterlace option in xbmc and will it work ? Can I expect it to run at 50fps with no drop frames ?
I believe this will work with a recent xbmc build.

sorrowuk
Posts: 25
Joined: Sat Oct 13, 2012 10:14 pm

Re: 1080i deinterlacing

Thu Oct 18, 2012 11:05 pm

Is bob the best deinterlacing the pi can do ?

Is everything else too too powerful for the processor/gpu ?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Thu Oct 18, 2012 11:41 pm

sorrowuk wrote:Is bob the best deinterlacing the pi can do ?

Is everything else too too powerful for the processor/gpu ?
We can do weave...

sorrowuk
Posts: 25
Joined: Sat Oct 13, 2012 10:14 pm

Re: 1080i deinterlacing

Fri Oct 19, 2012 2:02 am

So could we do bob + weave deinterlacing together ?

Huffster
Posts: 9
Joined: Wed Oct 31, 2012 9:11 am

Re: 1080i deinterlacing

Wed Oct 31, 2012 9:32 am

dom wrote:I've added a simple "bob" deinterlace to GPU that seems to work akay at 1080i.

Should be supported in a build soon...
I just downloaded the latest Raspian SD card image (end of October 2012) after waiting all month and am disappointed this 1080i bob deinterlacing feature is not included in omxplayer. I guess an older version of omxplayer is still included with official Raspian release?

I don't know how to compile my own omxplayer, but I may have to learn, as I also need the "audio boost while downmixing" off, because is overdrives and distorts my music concert blu-ray rips.

I tried to install different and newer binary versions of omxplayer that others built, but the screen just goes black when trying to use the -d option on 1080i material. The concert rips sound MUCH better with these different versions though.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: 1080i deinterlacing

Wed Oct 31, 2012 11:32 am

Huffster wrote:I tried to install different and newer binary versions of omxplayer that others built, but the screen just goes black when trying to use the -d option on 1080i material. The concert rips sound MUCH better with these different versions though.
What memory split are you on? Can you try with 128M on GPU?
Does the -r option make any difference?
Does overclocking help?

Huffster
Posts: 9
Joined: Wed Oct 31, 2012 9:11 am

Re: 1080i deinterlacing

Wed Oct 31, 2012 8:34 pm

Thank you for the help. I set GPU memory to 128, tried -r, tried -d, tried both together, and its behaving exactly like the last official Raspian build. I get a picture but its still interlaced. I'm currently testing with the American Football clip posted earlier in this thread. I think the omxplayer in the new Raspian SD card image is still an older version.

I will try later to install the newer builds of omxplayer, that I was testing with yesterday, and see if the 128 GPU split makes a diff:

http://omxplayer.sconde.net/

Also, I will test with this experimental version designed to run lower GPU mem and get subtitles working:

https://github.com/downloads/torarin/om ... _armhf.deb

As a side: I'm impressed with the video playback quality of the RPi / omxplayer when it's working. Once we have DTS_MA and Dolby True HD passing through, a more advanced de-interlacer working, and a nice light-weight GUI interface frontend, I will create a NAS collection of HD disc rips and no longer need my stand alone blu-ray player. Ahhh, technical progress. Messed around with Raspxbmc, but it has a long way to go.

andrego
Posts: 3
Joined: Tue Oct 23, 2012 7:18 pm

Re: 1080i deinterlacing

Thu Nov 01, 2012 6:47 am

You could also try running a nightly image of OpenELEC if you have a spare sdcard. It's a very light-weight build specialized for running XBMC only (so may not suit your needs if you want to do anything other than XBMC) but it tends to include changes to XBMC every day so it's a great way to test new features or see if a bug is fixed.

Daily RPi builds can be had here: http://openelec.thestateofme.com/

Huffster
Posts: 9
Joined: Wed Oct 31, 2012 9:11 am

Re: 1080i deinterlacing

Thu Nov 01, 2012 7:23 pm

@dom
Your expertise and knowledge comes through again. After setting GPU to 128M and installing a newer build of omxplayer, than is included with the official Raspian image, I was able to get 1080i deinterlacing to work with the -d switch. I did have significant audio/video sync issues though. But, once I overclocked the RPi to medium setting, with the raspi-config utility, everything seems to be working.

@andrego
Thank you for the openelec links. I've been wanting to try it, but did not know where to get a disk image. I'll give it a whirl.

Return to “Media centres”