Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lon22

Pages: [1] 2
1
Developers / Media File Size/Duration
« on: April 05, 2008, 09:47:14 pm »
Does anyone know if there is a field somewhere in a LMCE table that has the duration of a related media file? Basiclly a field that says media X is xx:xx:xx in duration.

I didn't see ay field as such in pluto_media.

thanks

lon22

2
Developers / Play Media from command line
« on: March 25, 2008, 12:02:12 am »
I'm trying to mimic a command sequence that begins when I play a media file with my remote. My goal is to start a movie from the command line and be able to interface with it as if I started the movie in the orbiter. I ran TailDCERouter.sh to see the sequence of DCE commands once I play a file with my remote. I then took those commands and tried to mimic them the best I could.

When I run the script below, I get the movie to play, but it is hidden behind the screen saver. If I hit the back button on my remote, I can see the movie, but if I navigate anywhere from there I lose the video. I can still hear the movie playing in the background. Can someone point me in the right direction to fix my problem.

Device ID:      Description:
147               MCE Remote
20                 orbiter
22                 xine player
23                 xine plugin
10                 media plugin
28                 screen saver
19                 core/hybrid

thanks

lon22

Code: [Select]
/usr/pluto/bin/MessageSend localhost 147 20 1 37
/usr/pluto/bin/MessageSend localhost 20 10 1 43 2 "0" 13 "85803" 29 "5" 44 "0" 45 "1" 116 "0" 117 "0"
/usr/pluto/bin/MessageSend localhost 10 -1001 2 19 27 "1"
/usr/pluto/bin/MessageSend localhost 23 22 1 37 29 "5" 41 "1001" 42 "" 59 "/home/public/data/other/Windows Share: E [100]/test.avi"
/usr/pluto/bin/MessageSend localhost 22 28 1 193 97 "0"
/usr/pluto/bin/MessageSend localhost 23 22 1 920 10 "85803" 41 "1001"
/usr/pluto/bin/MessageSend localhost 10 19 1 192 97 "0" 98 ""
/usr/pluto/bin/MessageSend localhost 10 20 1 192 97 "0" 98 ""
/usr/pluto/bin/MessageSend localhost 10 22 1 192 97 "0" 98 ""
/usr/pluto/bin/MessageSend localhost 10 20 1 242 3 "70,4964,47,140,224,230" 5 "test.avi" 9 "" 29 "5" 41 "1001" 48 "0" 50 "pluto-xine-playback-window.pluto-xine-playback-window" 103 "22,22,15,,1,1,0" 120 "0"
/usr/pluto/bin/MessageSend localhost 20 28 1 193 97 "0"
/usr/pluto/bin/MessageSend localhost 10 20 1 741 10 "" 159 "140" 251 "0" 252 "1" 253 "0"
/usr/pluto/bin/MessageSend localhost 20 10 1 74 2 "" 3 "" 8 "1" 25 "" 39 "" 45 "1" 63 "" 159 "140"
/usr/pluto/bin/MessageSend localhost 20 147 1 687 48 "102"
/usr/pluto/bin/MessageSend localhost 10 20 1 242 3 "70,4964,47,140,224,230" 5 "test.avi" 9 "" 29 "5" 41 "1001" 48 "0" 50 "pluto-xine-playback-window.pluto-xine-playback-window" 103 "22,22,15,,1,1,0" 120 "0"
/usr/pluto/bin/MessageSend localhost 22 -1001 2 58 4 "/home/public/data/other/Windows Share: E [100]/test.avi" 9 "1001" 16 "" 27 "" 47 "pcm" 48 "25:19"
/usr/pluto/bin/MessageSend localhost 20 28 1 193 97 "0"

3
Users / Windows Orbiter
« on: March 19, 2008, 11:11:04 pm »
Does anyone know if you have to have Xine installed on a Windows machine in order to watch media within the Windows orbiter?

thanks

lon22

4
Users / Filename Filter
« on: March 10, 2008, 01:57:01 am »
I have my media organized in LinuxMCE under Windows Shares, but I don't use LMCE's directory structure. When I go to the admin website, my shares appear under the other directory.

When I'm in the orbiter and I select to filter by filename, nothing displays, all my media disappears.

Is there a way to use the filename filter even if you don't use LMCE's directory structure?

Thanks

lon22

5
Feature requests & roadmap / Remote scheduling of programming
« on: February 07, 2008, 05:41:46 pm »
I think a nice new feature for linuxmce would be to have some type of remote scheduling of media capability.

The general idea is to be able to schedule media to be played at a certain time. I envision the interface to look very much like MythWeb's inferface for scheduling recordings. The only real difference would be that there would be empty time slots and you would choose what media would played during those time slots.

I'm wondering how much effort it would take to complete a project like this.

lon22

6
Users / Empty Software Packages list
« on: January 25, 2008, 05:32:07 am »
Does anyone now why my software packages list is empty ever since install (0710b3). I know I can install dvdcss from the command line but I'm hoping that there is a way that I can force the software packages to be downloaded. Is there a script that I can run? Thanks.

7
Installation issues / Computing screen reloads router
« on: January 24, 2008, 05:30:17 am »
Every since I installed 0710b3 I can't enter the computing menu. After I click on the computing button, the orbiter freezes up and then the router gets reset. I will log this in mantis. Anyway to get around this?

8
Installation issues / ATI Radeon 9500 UI2 - ***SLOW 7.10 BOOT***
« on: January 24, 2008, 02:53:21 am »
I previously had an ati radeon running under 0704 UI2 with no problems. I installed 0710b3 and got the ati card to run under UI2, but with problems during boot up. When I boot up the hybrid, I see the post screen and when it comes time to display the kbunutu splash, my screen goes black. It then takes about 3 or 5mins for LMCE to start up after that. Has anyone else ran across a similar problem?


F.Y.I.  I followed http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide to get my ati card to work.

9
Developers / How to edit pluto-admin menu
« on: January 22, 2008, 04:47:13 pm »
Can someone point me in the right direction as to how to edit the menu on the admin site. I looked through the pluto-admin code and can't seem to find where the menu is being bullt. I was thinking that the menu might of been built with some special DHTML builder tool and that is why I can't find it in the scipts. Thanks.

10
Users / Batch (mass) assign cover art and attributes
« on: January 20, 2008, 07:37:02 pm »
I created a script that will allow you to batch assign cover art and attributes to files. In order to use the script follow these steps:

1. Copy the script to the /var/www directory on the core machine.
2. Go to pluto-admin and edit the media attributes for one file out of the group of files that you want to assign cover art for. Remember which file you assigned cover art to.
3. Type in 192.168.80.1/BatchAssign in your web browser.
4. Enter your user name and password that has access to the database.
5. Search for the group of files by either typing in a file name or the name of the folder that contains the files.
6. Click the radio button next to the file that you assigned cover art for in step 2.
7. Click the checkbox next to any files that you want to have the same cover art and attributes as the file in step 2.
8. Click the "Add Attributes to selected file" button.
9. Now all of those files should have cover art and attributes associated with them.

This is a rough copy of the script, but it works. I will improve on it and make it more efficient. Maybe once it is optimized it can be added to the pluto-admin website. The script is attached.

lon22

11
Developers / A little php development help
« on: January 19, 2008, 09:22:11 pm »
I'm trying to develop a php page that will allow you to batch set multiple media files with the same picture and attributes.  This could be useful for setting the media attributes for episodes for shows and tracks within CDs. I'm new to php and far from a web developer. I put together a page that kind of works but I'm having a problem with variables.

The problem is that after I submit a query to a DB I fill an array with some values. This works fine, but after I do another submit with a different button, the values in the array seem to disappear. Any help will be appreciated. I figured it might be some php gurus in the community.

Here is the code, bear in mind that this is a rough, kind of proof of concept. After I get it to work, I will try to incorporate it into plutoadmin:
Code: [Select]

<?php
/***************** Connect to database ******************/
mysql_connect("localhost""root""") or die(mysql_error());
mysql_select_db("pluto_media") or die(mysql_error());

/****************** Set Title ****************************/
Echo "<html>";
Echo 
"<title>HTML with PHP</title>";

/***************** Variables ****************************/
$i 0;
$querStr $_POST['querStr'];
$mediaSubTypeEnum = array (=> "TV Shows",=> "Movies",=> "Home Videos"=> "Sports Events"=> "Music Videos"=> "Alternative"=> "Popular Music"=> "Classical Music");
$fileFormatEnum = array (=> "Low Res",=> "DVD",=> "Standard Def"=> "HD 720"=> "HD 1080"=> "Low Quality"=> "MP3"=> "CD Quality"=> "High-def audio");


/******************* Create main body of html page **********************************************/
Echo  "
<body bgcolor='Green'>
<form action="
.$_SERVER['PHP_SELF']." method='post'>
Search For:<input name='querStr' type='text' size='10'/>
<input type='submit' name='submit' value='submit'>"
;



/**************** perform action after button is clicked ***************************************/
if(isset($_POST['submit'])) { //If the initial button displayed is clicked
$result mysql_query("SELECT * FROM File Where Filename LIKE '%".$querStr."%'");
Echo " <input type='submit' name='submit2' value='submit2'> // output results of query in html table - this works fine
<table border='1'>
<tr>
<th>Primary File</th>
<th>Update File</th>
<th>Filename</th>
<th>Path</th>
<th>MediaSubType</th>
<th>FileFormat</th>
<th>PK_File</th>
</tr>"
;     
while($row mysql_fetch_array($result)) {
echo "<tr>";
echo "<td><input type='radio' name='primary[]' value=$i/></td>";
echo "<td><input type='checkbox' name='CopyFile[]' value='$i'/></td>";
echo "<td>".$row['Filename']."</td>";
echo "<td>".$row['Path']."</td>";
echo "<td>".$mediaSubTypeEnum[$row['FK_MediaSubType']]."</td>";
echo "<td>".$fileFormatEnum[$row['FK_FileFormat']]."</td>";                               
$myArray[$i++] = $row['PK_File']; // this is the variable in question - it does get fill here, as expected
echo "<td>".$myArray[$i-1]." -".$i."</td>";
echo "</tr>";
}
echo "</table>";
}


/**************** perform action after second button is clicked ***************************************/
if(isset($_POST['submit2'])) {
foreach($_POST['primary'] as $value) { // determine which radio button is selected
$value $value 1;
echo "the primary is".$value."\n";
}
               
for ($i 0$i 10$i++) { 
/* simple test to see if anything is in myArray. the array appears to be empty. This is the problem area. Before the second button was clicked
the array had verified values in it.*/
echo $myArray[$i];  // the array seems to have lost all previous values
echo " in loop".$i;
}

$result mysql_query("SELECT * FROM Picture_File Where FK_File = '".$myArray[$value]."'"); // so the rest of the code won't work
$row mysql_fetch_array($result);
$FK_Picture $row['FK_Picture'];
$priVal $value;
echo "prival and fk_pic = ".$priVal" - ".$FK_Picture."\n";
foreach($_POST['CopyFile'] as $value) {
$value $value 1;
mysql_query("INSERT INTO `Picture_File` VALUES ($FK_Picture,$myArray[$value],NULL,NULL,NULL,0,NULL,NULL)");
mysql_query("UPDATE File SET mediaSubTypeEnum='.mediaSubTypeEnum[$priVal].' fileFormatEnum='.$fileFormatEnum[$priVal].' WHERE FK_File='.$myArray[$value].'");
}
}

Echo 
" </form>
   </body>
</html>"
;
?>



12
Users / Core/Media Director keeps crashing
« on: January 15, 2008, 06:03:48 am »
I have had a hybrid up and running for over two months. Now all of a sudden at any given time the hybrid (core) will crash, no error messages, just totally unresponsive. I can't ssh in to it. There is only one other computer on the network with the hybrid and it is running Win Xp. The hybrid has only one network connection.

The only change I made to the hybrid recently is that I installed php, so that I could view the pluto databases with phpMyAdmin. Has anyone else experience a problem like this, after installing php? I was thinking maybe it could also be that there is too much network traffic ruining thought the core and that I might need to install a second NIC.

Thanks

lon22


13
Developers / Database (Pluto_media) ERD
« on: January 12, 2008, 11:46:49 pm »
I would like to know if there are any diagrams of how the relational Pluto_Media database is structured.

My ultimate goal is to write a script that I can use to batch assigned attributes and cover art to multiple episodes of the same show. This shouldn't be to hard once I figure out the relationships amongst the tables in Pluto_Media.

thanks

lon22

14
Developers / Good DBMS to view mysql tables
« on: January 11, 2008, 05:58:35 am »
Can someone point me to a graphical front end (if one exist) to view and modify mysql tables? I know table contents can be view and modified from the command line, but I prefer a GUI front end. Thanks.

15
Users / Fax send/receive capability
« on: January 10, 2008, 05:32:35 pm »
Does anyone know if LMCE supports the sending and receiving of faxes. Is there some place where you can enable this functionality. I didn't see anything in the documentation on this, so I doubt it does. I think that it would be useful if LMCE could support faxes. As long as you have a scanner you can send a fax from a computer and a printer to print a received one.

Pages: [1] 2