Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd February 2014, 04:59   #1  |  Link
Wowfunhappy
Registered User
 
Join Date: Sep 2013
Posts: 22
"Panoramic" video filter in ffmpeg?

Hi! I hope I posted this in the right section; I wasn't sure, since it's related to ffmpeg in general rather than any particular codec. I ultimately chose to post here, since I'm working with ffmpeg via the Unix command line in OS X.

Apple's QuickTime player in OS X has a setting called "panoramic mode," that lets you play 4:3 videos on a 16:9 display without them looking too strange. It achieves this by stretching the sides of the video moreso than the center. I've seen this technique in other players and even built into some televisions, but everyone seems to call it something different.

Not all players support this though, so I'd like to use this technique to actually encode some of my 4:3 videos in wide screen. Does ffmpeg have any settings that will let you do this? A video filter, perhaps?

Thanks so much!

Last edited by Wowfunhappy; 24th February 2014 at 06:04.
Wowfunhappy is offline   Reply With Quote
Old 23rd February 2014, 12:58   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Quote:
Does ffmpeg have any settings that will let you do this?
no
Sounds a bit like 'seam carving'
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 23rd February 2014, 18:13   #3  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Can you link to an image showing the effect you are after?
I search for 'Quicktime panoramic' and I get results for 'Quicktime VR'. Is that what you mean?
raffriff42 is offline   Reply With Quote
Old 23rd February 2014, 23:53   #4  |  Link
Wowfunhappy
Registered User
 
Join Date: Sep 2013
Posts: 22
Quote:
Originally Posted by raffriff42 View Post
I search for 'Quicktime panoramic' and I get results for 'Quicktime VR'. Is that what you mean?
No, that's completely different.

Quote:
Can you link to an image showing the effect you are after?
Sure! Here are two screenshots of the same frame:
Without:
With:

Are you able to see what it's doing? The center of the screen isn't stretched at all, but the sides of the screen are.

It's very similar to what would happen if you set the field of view in a video game really low.

Last edited by Wowfunhappy; 24th February 2014 at 00:04.
Wowfunhappy is offline   Reply With Quote
Old 24th February 2014, 00:33   #5  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Ah, I see, and now I see Quicktime Player (even in Windows!) has three fullscreen viewing modes:
Fit, Zoom and Panoramic. It's a neat effect.

Last edited by raffriff42; 24th February 2014 at 01:31.
raffriff42 is offline   Reply With Quote
Old 24th February 2014, 01:32   #6  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
It looks like intentional barrel distortion (here's a cobbled-up test pattern viewed on QT Player)


There are a number of ways to emulate this effect - none that I could find in FFmpeg. But there's probably one out there.
How about this Avisynth script
How about a VirtualDub plugin

Last edited by raffriff42; 18th March 2017 at 01:06. Reason: (fixed image link)
raffriff42 is offline   Reply With Quote
Old 24th February 2014, 06:02   #7  |  Link
Wowfunhappy
Registered User
 
Join Date: Sep 2013
Posts: 22
Aha! Thanks, I'll check those scripts out. I'm also very happy to have the proper name for the effect!
Wowfunhappy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.