View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Modeline Question
PostPosted: Mon Jul 17, 2006 8:01 am 
Offline
Joined: Wed May 24, 2006 9:10 am
Posts: 107
Location: Minneapolis, MN
This is kinda a noob question, I have searched the forum and google for awhile now, and still have not found my answer, so here I go.

I am running the ASUS Extreme N6200TC256/TD with DVI-D cable to my projector. My projector supports many different resolutions and refresh rates. I would like to have my projector run different modelines at any given time. For example, I would like it to run at 48Hz for DVDs and 60Hz for TV. I would also like to have it run at 1080i, 720p, 480p and 480i depending on the source recording resolution. And in addition to all of that, I would like the ability to pixel-map when I choose to.

I have an infocus 4805 that has a native 854x480 display. I do realize that if I want pixel map, I will only get 480p. From my previous experience, I have noticed that when I send the projector a higher resolution signal, and let the projector scale it down, that I get a very nice picture.

So my question is this:

Is there any easy way to switch between modelines during normal use? I do not want to have to exit out of the mythtv application to make the switch. Just something quick and easy. Ideally it would be a remote button that is pressed repeatedly to scan through the available modelines. However if this is not possible, then I would be happy with being able to set mplayer and xine use a 480p pixel map at 48Hz, and having mythtv use a modline at 60 Hz. Any help would be great. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 4:22 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
If you want to change modelines from a shell you can use the command "xrandr" to select different modelines. So you could write a script that switches modelines using "xrandr" prior to invoking xine or mplayer.

Within the mythtv frontend you can select different modelines based on the resolution of the recording being played. In 0.18 (R5A30.2 and earlier) this is done in the utilities/setup->setup->appearance screens. If memory serves me correctly, it's the 3rd screen under appearances. YOu'll need to select "Separate video modes for GUI and TV playback." I've posted on this several times, so you should be able to find more info with a forum search, but it's pretty self explanatory once you are on that screen.

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 7:21 am 
Offline
Joined: Wed May 24, 2006 9:10 am
Posts: 107
Location: Minneapolis, MN
Thanks for the help. I will give xrandr a shot, athough I have heard it is really hard to use. I will report back to let you know if I have sucess.

I am sort of surprised that more people are not interested in changing modelines for xine/mplayer. I mean, it is very clear that DVD’s are set at 48 Hz, and TV is at 60 Hz. Why isn’t everyone using different modelines for their applications?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 9:27 am 
Offline
Joined: Wed May 24, 2006 9:10 am
Posts: 107
Location: Minneapolis, MN
marc.aronson wrote:
If you want to change modelines from a shell you can use the command "xrandr" to select different modelines. So you could write a script that switches modelines using "xrandr" prior to invoking xine or mplayer.


I found what you were talking about as far as changing resolutions in the "apperance" section. Thanks, very helpful. But after some more searching and trying, I realized that I have no clue on how to write a script to have xrandr change modelines prior to starting xine or mplayer.

Any help would be great. Maybe a link to script writting, and where to put the scripts to make this happen?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 11:24 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
I really don't understand the desire to move to a 48hz modeline for dvd's. do you really think you are using 48hz when you watch a dvd from a normal dvd player or any other device besides maybe a custom linux box? No everything goes 60hz to your tv, and most tv's will not accept anything but 60hz. This is why more people don't want to do what you are suggesting. And as for the separate modelines for different recordings it sounds nice, but is a pain to implement, and pretty much everything looks great if you can get a good solid 1080i modeline going.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 11:31 am 
Offline
Joined: Wed May 24, 2006 9:10 am
Posts: 107
Location: Minneapolis, MN
[quote="Xsecrets"]I really don't understand the desire to move to a 48hz modeline for dvd's. do you really think you are using 48hz when you watch a dvd from a normal dvd player or any other device besides maybe a custom linux box? No everything goes 60hz to your tv, and most tv's will not accept anything but 60hz. This is why more people don't want to do what you are suggesting.quote]

Hey X. I am using a DLP projector at 120" diagonal size It can accept 30-90Hz. I am kind of a videophile, and I can tell a difference in when a frame ends up getting dropped due to mismatched framerates. Being able to exactly match the framerate of dvd and TV was my main motivation for building a knoppmyth box. I have read a lot of your posts about xrandr stuff, and I think that I may give up if I cant figure this out in a day or two. I just thought it was worth a try.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 3:36 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
In “Utilities/setup->Setup->MediaSettings->Videos->FileTYpes, configure files with whatever suffix you are using (ie: ".mpg") to play back using the script "/usr/local/bin/play.sh"

Create a file with the following content in /usr/local/bin/play.sh
Code:
# /bin/bash
#
xrandr -s 1
mplayer "$1"
xrandr -s 0


Be sure to do a "chmod a+x /usr/local/bin/play.sh". Other notes:

1. Replace the number "1" in the first "xrandr" command with the index of the modeline you want to use for playback.

2. Replace the number "0" in the second "xrandr" command with the index of the modeline you use for your myth GUI.

3. Replace the call to "mplayer" with whatever player you use, and be sure to add whatever playback options you want. "$1" will automatically be replaced with the filename you selected from the myth video display.

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 7:22 am 
Offline
Joined: Wed May 24, 2006 9:10 am
Posts: 107
Location: Minneapolis, MN
Thanks! I will give it a try when I get home.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu