NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 148 149 150 151 152 … 1231 Next »
Removing Black Borders (Another FFmpeg XviD Trick)

 
  • 0 Vote(s) - 0 Average
Removing Black Borders (Another FFmpeg XviD Trick)
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#1
2009-03-08, 06:50 PM (This post was last modified: 2009-03-21, 08:41 PM by BTJustice.)
Here is another FFmpeg trick when using XviD encoding. You can remove those black borders from over-scanning by using a command such as this...

Code:
[b]<Conversion name="XviD Cropped" cmd="-y -i {SOURCE_FILE} -ab 128k -ac 2 -acodec mp3 -ar 44100 -cropbottom 6 -cropleft 26 -cropright 46 -croptop 6 -deinterlace -f avi -qmin 3 -qmax 5 -threads auto -vcodec xvid -vtag XVID {DEST_FILE}" targetExtension=".avi" />[/b]

The secret is the crop values. The values are in pixels. You will have to experiment with these. Remember the values used have to be divisible by 2.

The easiest way I could find to figure out the values for my setup was to take a screen shot of a 4:3 frame, open it with a picture editing program (I use Paint.NET), and carefully use the selection tool to select the borders for bottom, left, right, and top in order to get an idea of what I needed to shave off. Originally, my videos were saved at 720 x 480. Now they are 648 x 468.

Now my videos look really nice. I am not really concerned with 16:9 as everything is broadcast at 4:3 with my set up and GBPVR can remove letterbox borders.
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#2
2009-03-29, 09:11 AM (This post was last modified: 2009-03-29, 09:45 AM by BTJustice.)
Here's an example of what you will get...

http://www.youtube.com/watch?v=VRVGsK9qmTs

Remember, the black borders you will see on the left and right on the video above are just where there is no video. The command above just removes the black borders from over-scanning.
4zm4r3d02
Offline

Senior Member

USA
Posts: 356
Threads: 90
Joined: May 2005
#3
2009-03-30, 10:55 PM
You can use VirtualDubMod to determine the cropping values. Open the mpeg file, then go to "Video > Filters" in the menu. Press the "Add" button, select the first one in the list, then press "OK" to get back to the Filters window, where the "Cropping" button will now become active. In the cropping window, there is a slider, so you can search through the video to find a frame with a lot of white at the edges, to make it easy to see the black bars. Once you pick the best values, copy them down, exit VirtualDubMod, and put the values in your ffmpeg command line.
BTJustice Wrote:Remember the values used have to be divisible by 2.
I thought they had to be evenly divisible by 16?
Intel Core i7-4790 / 32GB RAM / Windows 10 Pro 64 bit / HDHomeRun CONNECT DUO Model: HDHR5-2US
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#4
2009-03-31, 08:38 AM
4zm4r3d02 Wrote:I thought they had to be evenly divisible by 16?

Nope. Just 2 in FFmpeg.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black screen when playing back recordings gonzo90017 1 1,656 2011-01-19, 06:12 PM
Last Post: gonzo90017
  My HD recordings are black snowy picture with noise, but no sound dewchugr 14 5,203 2010-10-26, 01:45 AM
Last Post: dewchugr
  Removing A Chaneel skycyclepilot 3 1,860 2010-10-02, 11:34 PM
Last Post: ga_mueller
  Getting black screen when I play recordings dalokgawd 11 3,862 2010-09-29, 01:22 AM
Last Post: dalokgawd
  Unexpected error removing recording from conversion queue pvrproblems 1 1,547 2010-09-03, 03:51 AM
Last Post: sub
  black screen when viewing Live TV, new install, winxp hauppauge 250/350 darktrooper 10 3,857 2010-06-02, 08:55 PM
Last Post: sub
  Removing Tuner temporarily morser 4 1,693 2010-05-11, 02:26 PM
Last Post: pBS
  newbie with an AVerTV Volar Black HD; live tv works only after runing avertv 6 app laberinto 1 1,388 2010-05-02, 03:58 AM
Last Post: laberinto
  No Live TV - Just black screen jdconnel 8 2,567 2010-04-24, 03:53 PM
Last Post: BigJx
  How do I activate ffmpeg to automaticaliy convert MPG video to AVI format in GbPVR HYBRiD.BLiNG 0 1,204 2010-04-18, 01:52 AM
Last Post: HYBRiD.BLiNG

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode