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 … 564 565 566 567 568 … 1231 Next »
Transcoded 16:9 files stretched into 4:3

 
  • 0 Vote(s) - 0 Average
Transcoded 16:9 files stretched into 4:3
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#1
2007-04-06, 08:05 PM
Whenever I transcode files recorded in 16:9 aspect the resulting file is distorted into 4:3. I don't mean blank bars are added at the top and bottom of the picture, I mean the 16:9 image is stretched upwards if you like to 4:3. This never used to happen, it's a sudden thing. I've tried unistalling GBPVR, removing any files left, and starting afresh but the same thing happens.

Can I configure the FFMPEG or are there settings within GBPVR which will keep the aspect ratio?
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#2
2007-04-07, 07:04 AM (This post was last modified: 2008-03-24, 11:03 PM by Amused.)
After further investigation it turns out that the files are file, Gsport shows them as 720*567 which is 16:9 alright yet when opened, each and every files distorts to something that looks like 4:3. I've attached a screen cap to illistrate the problem. This distortion happens will any media player i've tried and makes me think that the problem is still with the file. Presumably it's encoded correctly but the pixed size isn't set to square pixels or something. Any idea on how to correct this, or transcode files which result in the correct ratio?
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#3
2007-04-07, 10:06 AM
Amused Wrote:Gsport shows them as 720*567 which is 16:9 alright

What does gspot say for DAR (Display Aspect Ratio)? I'm not sure but I think hauppauge cards maybe always record 4:3.
What are you transcoding to?
It might be simple to add a 16:9 transcoding line to config.xml.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#4
2007-04-07, 10:27 AM
Gsport give the DAR of both the transcoded avi and original MPEG stream as 1.778 (16:9). The original MPEG recording plays perfect in 16:9 which (being DTV) is what it was broadcast in. The transcoded file however is distorted in both thumbnail icon view and in playing the actual thing, despite seeming to be 720 x 576.

I'm thinking now that it might be my computer that screwing up distorting the aspect and that he avi file is encoded correctly. Trouble is I've no way to tell if I'm right, or how to fix it if I am! That said I've just finished using Dr DivX to trascode a file and although audio is about 2 seconds out of sync (!) the aspect ratio is perfect so maybe it does need a tweak in the config.xml, what would it be?
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#5
2007-04-07, 12:11 PM
You could try xvid, see if that helps. I think some players don't recognise the AR-flag right for some codecs, maybe that's the problem.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#6
2007-04-07, 01:07 PM
Transcodeing with other codecs doesn't help, Xvid and WMV files both have the aspect ratio problem. In certain programs, like DivX Player, I can manually select a forced 16:9 ratio but this won't happen as default and DivX Player is the only prog I've found with this option, Media Centre, Media Player, GBPVR etc. still stretch to 4:3.

Sub, can I add a line into the ffmpeg command that will force the aspect ratio to 16:9, or force square pixels or something?
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#7
2007-04-07, 01:56 PM
Amused Wrote:Sub, can I add a line into the ffmpeg command that will force the aspect ratio to 16:9, or force square pixels or something?

As Gspot is stating the DAR = 16:9, I guess the AR-flag is already set.
You could try adding "-aspect 16:9" to the commandline in config.xml.
I guess you'd best add an extra line to config.xml under <CustomFFmpegConversions>

like this:

Code:
<Conversion name="DivX -16:9" cmd="-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b 1000k [FONT=Courier New][FONT=Verdana]-aspect 16:9[/FONT] [/FONT]-vtag DIVX {DEST_FILE}" targetExtension="divx.avi" />

Backup config.xml first.Smile

Of course you can always use F7 in gbpvr to change the DAR of a show that is playing.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#8
2007-04-07, 02:44 PM
Cool, didn't know about F7, thanks.

I added the aspect command to config.xml and transcoded but no joy. However looking through the logs prior to adding in the -aspect 16:9 command, I have found the following entries:

- S:\Videos\Recorded TV\House\House_20070322_21002200.avi
getSetting(SaveGraphFiles)
setSourceAspectRatio() using autoAspectRatio
video resolution is 720 x 576
unknown source aspect ratio...showing full frame
setSourceAspectRatio() using autoAspectRatio
video resolution is 720 x 576
source has square pixels (AVI etc)

Now this seems to suggest that the pixels are square and that the resolution is 720x526 as GSport said. However the bit that intrigues me is the

unknown source aspect ratio...showing full frame

Now presumably aspect ratio has two parts to play, firstly making sure the frames are kept "in shape" during transcoding and secondly to tell the media app. "this video file is in 16:9" when you open it. Could this "full frame" indicate that the picture is encoded fine but the "master DAR" if you like, is set at full frame?

I've just tried comparing this log to the one from the aspect 16:9 attempt. The 16:9 attempt log stops at
DirectShowPlayerVMR9() initialising...
getSetting(OSDTransparency)
(line 19-20)
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#9
2007-04-07, 04:07 PM
I guess when it says 'source has square pixels' that's because it can't/won't read the AR-flag. So the DAR would be 5:4 then (720/576).
You could enter the wanted resolution in the commandline e.g 720x405 (ar=16:9)

Code:
<Conversion name="DivX -16:9" cmd="-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b 1000k -aspect 16:9 [B][COLOR=red]-s 720x405[/COLOR][/B] -vtag DIVX {DEST_FILE}" targetExtension="divx.avi" />

You can find the ffmpeg documentation here: http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#10
2007-04-07, 04:28 PM
It always treats an AVI as square pixels, so as HtV says, you'd need to have a resolution like 720x405 for it to be widescreen.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  0 sized files pjm460 4 2,092 2010-12-17, 05:15 PM
Last Post: sub
  Zero-size recording files rawlings471 1 1,690 2010-12-05, 04:12 PM
Last Post: sub
  original files not deleting David B 2 1,774 2010-11-28, 07:22 PM
Last Post: David B
  Attempts to play .dvd files in Video Library results in PVRX2 not responding Jwbrit 2 2,077 2010-11-04, 11:37 PM
Last Post: Jwbrit
  Missing Crossbar Files? David B 8 3,171 2010-11-02, 01:12 AM
Last Post: David B
  FLV files as recordings keith_leitch 10 3,971 2010-09-22, 09:12 PM
Last Post: keith_leitch
  Unable to process .ts files for recording on DVD Trevor_de_S 1 1,564 2010-08-18, 10:50 PM
Last Post: sub
  Auto Converting TS Files To MPEG2 Not Working skycyclepilot 2 2,012 2010-07-06, 10:35 AM
Last Post: skycyclepilot
  GBPVR log files zonko 10 3,621 2010-07-03, 04:31 PM
Last Post: sub
  1.4.7 and Hauppauge 250 getting 0Kb files hi218 0 1,241 2010-06-15, 05:57 PM
Last Post: hi218

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

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

Linear Mode
Threaded Mode