LinHES Forums http://forum.linhes.org/ |
|
Modeline Question http://forum.linhes.org/viewtopic.php?f=11&t=10865 |
Page 1 of 1 |
Author: | tama102 [ Mon Jul 17, 2006 8:01 am ] |
Post subject: | Modeline Question |
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. |
Author: | marc.aronson [ Wed Jul 19, 2006 4:22 am ] |
Post subject: | |
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 |
Author: | tama102 [ Wed Jul 19, 2006 7:21 am ] |
Post subject: | |
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? |
Author: | tama102 [ Wed Jul 19, 2006 9:27 am ] |
Post subject: | |
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? |
Author: | Xsecrets [ Wed Jul 19, 2006 11:24 am ] |
Post subject: | |
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. |
Author: | tama102 [ Wed Jul 19, 2006 11:31 am ] |
Post subject: | |
[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. |
Author: | marc.aronson [ Thu Jul 20, 2006 3:36 am ] |
Post subject: | |
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 |
Author: | tama102 [ Thu Jul 20, 2006 7:22 am ] |
Post subject: | |
Thanks! I will give it a try when I get home. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |