Mythtv - Page 12 - Canadian TV, Computing and Home Theatre Forums
Reply
 
LinkBack Thread Tools Search this Thread Display Modes

post #166 of 398 (permalink) Old 2010-05-03, 12:29 PM
Veteran
 
Join Date: Apr 2006
Location: Ottawa (Stittsville), ON, OTA (DB4e & VHF-HI folded dipole, AP-2870 pre-amp in Attic), MythTV HTPC
Posts: 6,254
Not sure what PHPmyadmin is, but I looked on MythWeb and couldn't find it there either, but I only just started playing with it.
roger1818 is offline  
Sponsored Links
Advertisement
 
post #167 of 398 (permalink) Old 2010-05-03, 12:34 PM
OTA Forum Moderator
 
Join Date: Jan 2005
Posts: 24,878
PHPmyadmin allows you to manipulate MySQL databases in real time via a web browser:

http://www.phpmyadmin.net/home_page/index.php

I've had to do some SQL stuff in the past to tweak MythTV's mythconverg database, but I doubt most people would need to.



stampeder is offline  
post #168 of 398 (permalink) Old 2010-05-04, 10:13 AM
Veteran
 
Join Date: Apr 2006
Location: Ottawa (Stittsville), ON, OTA (DB4e & VHF-HI folded dipole, AP-2870 pre-amp in Attic), MythTV HTPC
Posts: 6,254
Quote:
Originally Posted by roger1818 View Post
II can't seem to assing function keys (F1 - F12) to MythTV functions. Is there a special trick to it? Most other keys seem to work.
I discovered it is a bug that was fixed in Ticket #7359. My best bet is probably to upgrade to 0.23, but I want to co-ordinate that with a hardware upgrade, but I haven't finalized what I am getting yet.
roger1818 is offline  
 
post #169 of 398 (permalink) Old 2010-05-06, 01:33 AM
Rookie
 
Join Date: May 2010
Posts: 8
Thanks again MLORD,

The battle still goes on. Here is my 950Q update ...

I have video totally functional with livetv and recording, but have
never got the audio to work yet. Read on if you dare.

The video new functionality started after a complete reinstall and
purge of mythtv. Though I was still getting only a black screen but
proper video was being recorded size-wise (700MiB/10 minutes), and no
audio. Then after, and get this!, opening tvtime, (while Mythtv was
recording, and I was viewing it's black screen), of course and happily
it said the device was busy ... I closed it ... no change ...then
closed the terminal I had opened tvtime with, and BAMMM! the video
starts to work for the first time in months!, repeated 3 times, just
to be sure. And since a reboot now it plays without a hitch
...awesome! but
still NO audio.
I will get back to the audio issue in a bit, but I should mention for
the sake of others that I also:
1/ updated the V4l-dvb, and
2/ added the no_poweroff command, and
3/ let mythtv keep it's username and password as mythtv:mythtv

Now back to audio, can someone please help direct me in
troubleshooting this? I am almost certain it is a MythTV or Ubuntu
setting oversight. I can see in Ubuntu's Sound Preferences under
Input, that the meter is pulsing when the 950Q device is selected, and
when I am watching the recording I hear static like it is from my
headset mic. How do I go from seeing it Input, seeing it in
Recording, to Hearing it in MythTV?

and double thanks to MLORD for his help
ack0329 is offline  
post #170 of 398 (permalink) Old 2010-05-06, 08:15 AM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Oh, good job discovering the no_poweroff flag -- I had totally forgotten about that one, despite being the first person on the planet to figure out it was needed (before the flag was actually fully implemented in the driver).

The audio should be easy. In mythtv-setup, under Capture Cards: You have already selected /dev/video0 for the 950Q, so now you have to get the correct audio device to go with that on the line below. This will _never_ be /dev/dsp, and is most often /dev/dsp1.

Each /dev/dspX corresponds to a "sound card" device in your system. If all you have is the motherboard sound, and the 950Q, then it really should be /dev/dsp1.

-ml
mlord is offline  
post #171 of 398 (permalink) Old 2010-05-06, 08:17 AM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Quote:
Originally Posted by ack0329 View Post
3/ let mythtv keep it's username and password as mythtv:mythtv
It just has to match whatever is in /etc/mythtv/mysql.txt

But this is one area for distros (especially Mythbuntu) to clean up their act. Mythbuntu likes to generate incomprehensible random strings for the mysql password. Come on guys.. it's a PVR, not Fort Knox !!

Blah.
mlord is offline  
post #172 of 398 (permalink) Old 2010-05-07, 05:38 AM
Rookie
 
Join Date: May 2010
Posts: 8
Quote:
The audio should be easy. In mythtv-setup, under Capture Cards: ..... now you have to get the correct audio device to go with that on the line below. This will _never_ be /dev/dsp, and is most often /dev/dsp1.
That was it! It is finally working! 15 months trying with the hvr-1500q (still no luck with analog), tried the hvr-950Q in desperation, and a wrong model 72101, made that pointless. 7 weeks later and one of 10 or so forums found that problem, so a new card, 72001, and a flash of video, then nothing in the 3 weeks since. Correspondence with the driver developer, and finally no more responses from him, and a developer for the hvr1500q helping gave up on me too, and 5 other forums, and another 3 weeks, and you ...
in 2 days
actually listened to what I said and bloody well figured it out both the video and the audio!

and "The audio should be easy", nothing could seem less likely in this pursuit, but ...
mlord .... it WAS easy ... finally, and so easy once I know, why couldn't others be as awesome as you!

THANKS mlord! and I really mean THANKS!

Mark
p.s. and after re-reading your previous posts you had already mentioned the audio /dev/dsp1, and I had missed it; you sure were thorough!

Last edited by hugh; 2010-05-07 at 01:08 PM. Reason: removed foul language. Please review our rules regarding such language
ack0329 is offline  
post #173 of 398 (permalink) Old 2010-05-08, 11:08 PM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Quote:
Originally Posted by ack0329 View Post
mlord .... it WAS easy ... finally, and so easy once I know, why couldn't others be as awesome as you!

THANKS mlord! and I really mean THANKS!
Peachy. Now you know the difference between the average driver developer versus one of the original Linux kernel developers.

At any rate, your experience helped us here tonight: Greg & I did a fresh install of Mythbuntu-10.04 onto his new MythTV box, with PVR-150 and 950Q tuners, and all is working very well in it now.. in near-record time, too!

That's why I help others.. the experience and knowledge eventually spins 'round to help me.

Cheers
mlord is offline  
post #174 of 398 (permalink) Old 2010-05-09, 03:12 PM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Quote:
Originally Posted by mlord View Post
One down.
Code:
--- mythtv/programs/mythfrontend/playbackbox.cpp.orig   2009-11-14 04:31:45.000000000 -0500
+++ mythtv/programs/mythfrontend/playbackbox.cpp        2010-02-24 19:40:19.808047855 -0500
@@ -3484,6 +3484,8 @@

 bool PlaybackBox::keyPressEvent(QKeyEvent *event)
 {
+    extern int fix_arrow_keys; 
...

Three to go.
Today I spent two hours figuring out the arrow-key paths through mythvideo, so that I could use the LEFT and RIGHT arrows there in the original fashion to exit (left) the menu or to play (right) a video. This turns out to be a trivial source code patch.
Code:
--- mythtv/libs/libmythui/mythuibuttontree.cpp.orig     2010-04-13 11:27:27.865781760 -0400
+++ mythtv/libs/libmythui/mythuibuttontree.cpp  2010-05-09 13:28:35.344883555 -0400
@@ -408,6 +408,8 @@
         SetTreeState();
 }

+static bool wrapped;  /* shared here between SwitchList and keyPressEvent */
+
 /*!
  * \brief Move from list, or one level of the tree, to another
  *
@@ -417,6 +419,7 @@
 void MythUIButtonTree::SwitchList(bool right)
 {
     bool doUpdate = false;
+    wrapped = true;
     if (right)
     {
         if (m_activeListID < m_visibleLists-1)
@@ -441,6 +444,7 @@
         else
             return;
     }
+    wrapped = false;

     if (doUpdate)
         SetTreeState();
@@ -523,10 +527,12 @@
         if (action == "RIGHT")
         {
             SwitchList(true);
+            if (wrapped) return false;
         }
         else if (action == "LEFT")
         {
             SwitchList(false);
+            if (wrapped) return false;
         }
         else
             handled = false;
--- mythplugins/mythvideo/mythvideo/videodlg.cpp.orig   2010-04-13 11:25:10.732781883 -0400
+++ mythplugins/mythvideo/mythvideo/videodlg.cpp        2010-05-09 13:31:57.743873932 -0400
@@ -2631,7 +2631,9 @@
         QString action = actions[i];
         handled = true;

-        if (action == "INFO")
+        if (action == "LEFT")
+               Close();
+        else if (action == "INFO" || action == "RIGHT")
         {
             MythUIButtonListItem *item = GetItemCurrent();
             MythGenericTree *node = GetNodePtrFromButton(item);

That's another one down.

And then I tried to figure out why the UP/DOWN arrow keys don't wrap around inside mythvideo, but do wrap around inside the recordings menus. To my eye, the theme appears to tell mythui to wrap in both cases, but it's broken for some reason in mythvideo. So I patched that one as well.
Code:
--- mythtv/libs/libmythui/mythuibuttontree.cpp.orig     2010-04-13 11:27:27.865781760 -0400
+++ mythtv/libs/libmythui/mythuibuttontree.cpp  2010-05-09 14:21:55.545873861 -0400
@@ -72,6 +72,7 @@
         MythRect listArea = MythRect(x,0,width,height);
         list->SetArea(listArea);
         m_buttonlists.append(list);
+        if (list->m_wrapStyle == WrapNone) list->m_wrapStyle = WrapItems;  /* for mythvideo browser */
         i++;
     }

--- mythtv/libs/libmythui/mythuibuttonlist.h.orig       2010-04-13 11:27:27.859781822 -0400
+++ mythtv/libs/libmythui/mythuibuttonlist.h    2010-05-09 14:18:47.693873553 -0400
@@ -97,6 +97,8 @@
     friend class MythUIButtonList;
 };

+enum WrapStyle { WrapCaptive = -1, WrapNone = 0, WrapSelect, WrapItems };
+
 class MPUBLIC MythUIButtonList : public MythUIType
 {
     Q_OBJECT
@@ -154,6 +156,7 @@
     void RemoveItem(MythUIButtonListItem *item);

     void SetLCDTitles(const QString &title, const QString &columnList = "");
+    WrapStyle   m_wrapStyle;

   public slots:
     void Select();
@@ -167,7 +170,6 @@
     enum ScrollStyle  { ScrollFree, ScrollCenter, ScrollGroupCenter };
     enum LayoutType   { LayoutVertical, LayoutHorizontal, LayoutGrid };
     enum ArrangeType  { ArrangeFixed, ArrangeFill, ArrangeSpread, ArrangeStack };
-    enum WrapStyle    { WrapCaptive = -1, WrapNone = 0, WrapSelect, WrapItems };

     virtual void DrawSelf(MythPainter *p, int xoffset, int yoffset,
                           int alphaMod, QRect clipRect);
@@ -223,7 +225,6 @@
     LayoutType  m_layout;
     ArrangeType m_arrange;
     ScrollStyle m_scrollStyle;
-    WrapStyle   m_wrapStyle;
     int         m_alignment;

     MythRect m_contentsRect;

At this point, I think I've fixed all of my own complaints, and MythTV is working well enough now that I might even recommend it again to friends (as well as ememies).
mlord is offline  
post #175 of 398 (permalink) Old 2010-05-09, 04:23 PM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Heh.. I went back at it again for another half hour, and fixed the arrow-keys for just about everywhere under the "Manage Recordings" menus, too. This involved a pair of trivial patches, similar to those posted earlier, this time for the viewsheduled.cpp and proglist.cpp files. Very simple patches.

So now the left/right arrow keys/buttons behave consistently "as expected" again, nearly everywhere in the menu system. Just like they always did before MythTV-0.22 was released.

I'll have to post the full patchset somewhere for google to find it.

Cheers
mlord is offline  
post #176 of 398 (permalink) Old 2010-05-09, 04:42 PM
Veteran
 
Join Date: Apr 2006
Location: Ottawa (Stittsville), ON, OTA (DB4e & VHF-HI folded dipole, AP-2870 pre-amp in Attic), MythTV HTPC
Posts: 6,254
Great work mlord! Did you also fix the bug where when on a field that the right/left arrows change the value, it will go to the next field when you run out of options? This can be really anoying and cause you to destroy other fields.
roger1818 is offline  
post #177 of 398 (permalink) Old 2010-05-09, 05:32 PM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Quote:
Originally Posted by roger1818 View Post
Great work mlord! Did you also fix the bug where when on a field that the right/left arrows change the value, it will go to the next field when you run out of options?
No. I'm leaving the whole "Setup" heirarchy alone, and just fixing the everyday operational type of issues.

Though I might someday try to find/fix the "edit field black hole" problem in that code. This is the bug that is frequently hit when in the Input connections pages of mythtv-setup, and the bottom field on the screen refuses to release the "cursor".

I usually just hold down one of the arrows on auto-repeat until Myth finally lets go of the "cursor" there, but it is rather annoying and confusing.

Cheers
mlord is offline  
post #178 of 398 (permalink) Old 2010-05-09, 06:03 PM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Mmm.. missed one.

Manage_Recordings -> Schedule_Recordings -> Program_Finder .

I defy anyone here to make sense of that interface in 0.22 or 0.23. Then let your spouse attempt it, for good emphasis.

So I just now took another 10 minutes to fix it, in the same way as the others. This is getting really simple here, now that my earlier patches put the basic puzzle pieces in place.
mlord is offline  
post #179 of 398 (permalink) Old 2010-05-09, 07:08 PM
Veteran
 
Join Date: Nov 2006
Posts: 1,543
Quote:
Originally Posted by roger1818 View Post
Great work mlord! Did you also fix the bug where when on a field that the right/left arrows change the value, it will go to the next field when you run out of options? This can be really anoying and cause you to destroy other fields.
Oh.. Now I see what you mean. That happens in many of the fields when setting up a new recording rule. Doh!

Fortunately though, it'is all in the theme.

So.. assuming you are using the Mythbuntu theme, as I am here, then just modify the stock /usr/share/mythtv/themes/Mythbuntu/schedule-ui.xml file as follows:
Code:
--- myththemes/Mythbuntu/schedule-ui.xml.orig   2010-05-09 14:31:20.950852757 -0400
+++ myththemes/Mythbuntu/schedule-ui.xml        2010-05-09 18:59:58.705212490 -0400
@@ -467,6 +467,7 @@

         <buttonlist name="channel" from="basewideselector">
             <position>480,245</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <textarea name="datelabel" from="titlelabel">
@@ -476,6 +477,7 @@

         <buttonlist name="startdate" from="basewideselector">
             <position>480,305</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <textarea name="timelabel" from="titlelabel">
@@ -840,6 +842,7 @@

         <buttonlist name="rules" from="basewideselector">
             <position>540,100</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <textarea name="titlelabel" from="ruleslabel">
@@ -868,6 +871,7 @@

         <buttonlist name="clauses" from="basewideselector">
             <position>360,350</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <button name="add" from="basebutton">
@@ -994,10 +998,12 @@

         <buttonlist name="date_list" from="baseselector">
             <position>40,60</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <buttonlist name="time_list" from="baseselector">
             <position>330,60</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <button name="ok_button" from="basebutton">
@@ -1103,14 +1109,17 @@

         <buttonlist name="category_list" from="baseselector">
             <position>60,330</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <buttonlist name="genre_list" from="baseselector">
             <position>60,380</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <buttonlist name="channel_list" from="baseselector">
             <position>60,430</position>
+            <wrapstyle>items</wrapstyle>
         </buttonlist>

         <button name="ok_button" from="basebutton">
@@ -1826,6 +1835,7 @@

         <buttonlist name="input" from="basewideselector">
             <position>377,355</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

@@ -1847,11 +1857,13 @@

         <buttonlist name="dupmethod" from="basewideselector">
             <position>377,490</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

         <buttonlist name="dupscope" from="basewideselector">
             <position>377,535</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

@@ -1914,21 +1926,25 @@

         <buttonlist name="recprofile" from="basewideselector">
             <position>377,310</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

         <buttonlist name="recgroup" from="basewideselector">
             <position>377,355</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

         <buttonlist name="storagegroup" from="basewideselector">
             <position>377,400</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

         <buttonlist name="playgroup" from="basewideselector">
             <position>377,445</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

@@ -1941,6 +1957,7 @@

         <buttonlist name="maxnewest" from="basewideselector">
             <position>377,535</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

@@ -2022,6 +2039,7 @@

         <buttonlist name="transcodeprofile" from="basewideselector">
             <position>377,397</position>
+            <wrapstyle>items</wrapstyle>
             <helptext></helptext>
         </buttonlist>

If you can't figure out how to use the patch command to do it automatically, then just hand-edit the file, and insert all of the lines you see above that are prefixed with single plus (+) signs. Except don't include the plus signs.
mlord is offline  
post #180 of 398 (permalink) Old 2010-05-10, 09:48 AM
Veteran
 
Join Date: Apr 2006
Location: Ottawa (Stittsville), ON, OTA (DB4e & VHF-HI folded dipole, AP-2870 pre-amp in Attic), MythTV HTPC
Posts: 6,254
Quote:
Originally Posted by mlord View Post
Oh.. Now I see what you mean. That happens in many of the fields when setting up a new recording rule. Doh!

Fortunately though, it'is all in the theme.

So.. assuming you are using the Mythbuntu theme, as I am here, then just modify the stock /usr/share/mythtv/themes/Mythbuntu/schedule-ui.xml file as follows:
Thanks! I can't remember the name of the theme I am using, but it is the only one that has a 4:3 version, so it is probably slightly different from yours.


Quote:
If you can't figure out how to use the patch command to do it automatically, then just hand-edit the file, and insert all of the lines you see above that are prefixed with single plus (+) signs. Except don't include the plus signs.
i use SVN here at work so I am used to the patch command, but since I am probably using a slightly different theme, I will just edit it by hand. Looks like an easy enough change. Now just a matter of finding the time to do it.
roger1818 is offline  
Reply

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the Canadian TV, Computing and Home Theatre Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread:

Advanced Search
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may 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
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome