LinuxMCE Forums

General => Developers => Topic started by: Itsik on March 10, 2009, 09:00:59 pm

Title: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on March 10, 2009, 09:00:59 pm
After a lot of blood sweat and tears, you can insert a data CD/DVD and view/play it's content without the need to copy the files to your storage.
Once you eject the dvd, the content, that was added automatically to your DB gets removed.
There are some limitations that need to be addressed and as my coding abilities are pretty limited, I'm still struggling with them and any help would be greatly appreciated.
Instructions
1. On your core, stop the media director.
2. Copy the Disc_Drive (http://rapidshare.com/files/207657110/Disk_Drive) file to "/usr/pluto/bin" as root (Backup the original file first).
3. Copy the libDisc_Drive_Functions.so (http://rapidshare.com/files/207657926/libDisk_Drive_Functions.so) file to "/usr/pluto/lib", again as root (once again, backup your original file).
4. Restart your media director.

You can now insert any data disc into your core and after a few seconds it's content will apear on the appropriate media list (video/audio etc...) on the core as well as all your MD's. Clicking on it will play it with the appropriate player.

Limitations

1. This is a x86 ver. I don't have a 64 system to compile it on.
2. When you insert the disc on the core, you can view it on any MD in the house. It won't work if you try to put the disc on an MD.
3. The disc can only be ejected using the "manage drives" menu for now. Pressing the button will not release the disc.

Hopefully, these limitations will be fixed soon and this will become fully functional.

I hope you find this useful.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: colinjones on March 10, 2009, 09:43:00 pm
Applause for Itsik!
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: seth on March 12, 2009, 04:59:40 pm
 ???
Hmm. I wonder if this also works with USB pen drives. I should try this when I get home tonight.

I'll post back.

Great find Itsik!

Regards,

Seth
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: jondecker76 on March 12, 2009, 05:48:28 pm
Itsik - excellent work, we've been needing this!

You should put your source up, or at least a diff so that:
A) You could get some peer review and feedback
B) See why it only works on the core (with LMCE's internal structure, it should have worked everywhere, as the core and MD's all use the same packages)
C) Ensure it makes its way into 0810
D) Others with 64 bit architecture can try to compile and report their success
E) Remain in compliance with GNU

Again, excellent work, a lot of people have a need for this.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: colinjones on March 12, 2009, 07:47:27 pm
???
Hmm. I wonder if this also works with USB pen drives. I should try this when I get home tonight.

I'll post back.

Great find Itsik!

Regards,

Seth

Seth - LMCE already works with pen drives just fine! Plug it in, let LMCE pnp it as an internal drive, then say use LMCE structure. It will set up the folders. Then do a reload. From then on, whenever you plug that thumb drive into that MD it will recognise it and scan any media in the folders into the database and you can play it like any other media source. The issue here is media on a CD or DVD just as media files rather than a proper CD or DVD audio/video disk.... optical drives are managed by the Disk_Drive device, and it only expects proper audio/video disks...
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on March 13, 2009, 12:10:51 am
Thnx guys.  :)
As my internet connection is a bit shaky this week it's not vary easy to upload anything. I'll do my best upload the sources this week end.
I'll post here once it is uploaded.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/
Post by: Itsik on March 14, 2009, 08:26:54 am
I opened a trac ticket and attached the source files as well as a diff.
It is located at http://svn.linuxmce.org/trac.cgi/ticket/142 (http://svn.linuxmce.org/trac.cgi/ticket/142).

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: hari on March 16, 2009, 11:02:13 pm
way to go itsik!
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on March 23, 2009, 09:17:18 am
Thnx Hari  :)
Any one had a chance to test it/fix it ?
I'd love to recieve some feedback.

Thnx
Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/
Post by: hari on March 24, 2009, 01:13:53 am
i'm not at home till next weekend..
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/
Post by: purps on August 30, 2009, 01:34:26 am
I couldn't get this to work  :(

I followed the steps here. The CD I tried definitely works. At first I thought it might be because I don't usually run the MD on my core, but I tried it with the MD running as well. Movie just doesn't appear in my video list on my (separate) MD.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on August 30, 2009, 07:47:31 am
Did you insert the cd into your core or an MD ?
This feature currently works using the core/hybrid optical drive only (the content can be accessed from any where).
We're currently working on getting it to work on MD's as well.
 
Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: dlewis on August 30, 2009, 09:37:00 am
seriously nice work...
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: purps on September 01, 2009, 09:57:40 am
I inserted it in my core - I browsed to the CD in KDE desktop and played the movie just to make sure everything was working. I then did a proper reset and tried again - nothing.

Any ideas would be much appreciated - this is something that I have wanted to do for a very long time. I take it other people have had success?

To replace the 2 files, I browsed to them in dolphin, copied them to a backup folder, and then I did a "sudo dolphin", deleted the files, and then cut + paste the downloaded ones into the appropriate location - is there any crime in doing it like this?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on September 01, 2009, 12:53:15 pm
Basically, if everything is done correctly, when you insert the disc, you need to wait a few secs after which the files on your disc will apear in their appropriate media windows on every MD (mp3 under audio, avi under video etc.) from that point on, you treat them just like any other media file.

1. Did you stop your Media Director BEFORE copying the files (on the LinuxMCE launch manager there's a button to stop the MD) ?
2. Is your core 32bit or 64 ?

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: purps on September 01, 2009, 02:12:16 pm
Thanks for the reply.

Yes, the media director was stopped - it was never running in the first place as I don't use my core as a hybrid. The seperate media director was also off.

Now, regarding 32 and 64 bit, a similar thought occured to me. All of my hardware is 64 bit, but I have installed a 32 bit version of LMCE on my core - when installing MDs, do they default to whatever architecture is on the core (32 bit in this case), or will it default to whatever the hardware is? Or does the MD architecture not make a difference to any of this?!?

Either way, I will check later when I get home, and if the MD is set to 64 bit, I shall rebuild it to 32 bit and see if that gives me any joy.

Thanks again.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on September 01, 2009, 03:21:38 pm
no, the MD's can be 32/64, doesn't matter.
How ever, your core has to be 32bit and you MUST have the core's MD running as you need the Core's disk Drive to function.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: purps on September 02, 2009, 02:00:03 pm
Right, I enabled MD autostart on the core, reset, stopped the MD, and then re-copied the files again. I then restarted the MD, turned on my other MD, and it still didn't work  :(

After this, I also rebuilt the MD image as 32 bit just to make sure, but this made no difference.

When I insert a data disk into the core CD drive, should it appear in the core orbiter audio/video list by default i.e. without this fix? Because it's not......
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on September 02, 2009, 09:29:31 pm
when you insert a data cd into the drive without this fix, you won't see anything on your cores orbiter window.
with this fix you  should see the data on any orbiter window in your system
Maybe try to d/load the files again as they might be corrupted or something.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: purps on September 03, 2009, 12:25:08 am
I'll try this, cheers.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/
Post by: purps on September 05, 2009, 02:00:11 pm
I've tried re-downloading the files, and it just doesn't work :( I can't work this out. This is a feature that I have really needed from the word go, so this is very frustrating.

Any other ideas please?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on September 06, 2009, 09:40:26 am
Are you hanging on IRC ? if yes, when ?
If you catch me there, I'll try to guide you thru this.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/
Post by: purps on September 06, 2009, 01:03:46 pm
That's very kind of you to offer, but I don't use IRC - it's like a chat channel right?

There is an IRC thing on my ubuntu laptop - if it's easy to get on and chat, I would really appreciate a helping hand.

Thank you.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on September 06, 2009, 01:29:58 pm
just use "freenode.net" as the server and in the chat window type "/join #linuxmce" without the quoates

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Marie.O on September 11, 2009, 10:09:36 am
Itsik,

the trac ticket has been looked at and some notes have been added. Would you mind taking a look at the notes, and see if you can fix it. Also, does your patch affect any of the other media playing functionality?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on September 11, 2009, 11:50:28 pm
Posde,
the patch is almost finished and most likely will be ready for 0810. We have a few small issues left to resolve but we're almost there.
It does not effect any other media playing functionality.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Marie.O on September 13, 2009, 07:45:45 pm
Posde,
the patch is almost finished and most likely will be ready for 0810. We have a few small issues left to resolve but we're almost there.
It does not effect any other media playing functionality.

Thanks for the update. Did you have success in extending it to the MDs?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on December 02, 2009, 10:43:28 am
We've been testing this for some time now, and I can finally say that the patch has reached it's final beta stage.
A data disc inserted into the core or any of the MD's will be added to the system with it's content showing in the relevant media views.
The content can be played any where you like with all the regular functionality. The patch works for 0710 and 0810 both 32 & 64 bit.
The only thing that could not be resolved is the eject button functionality. You can eject the disc only using the "manage drives" menu.
I've uploaded the diff and the script to the svn http://svn.linuxmce.org/trac.cgi/ticket/142 (http://svn.linuxmce.org/trac.cgi/ticket/142)
Any one interested in testing this please PM me with your mail.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: purps on December 02, 2009, 02:38:46 pm
I would be interested in testing it out, but I only have 0710 up and running at the moment due to myth problems in 0810; are you wanting to get it tested in 0810 only?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on December 02, 2009, 03:36:46 pm
As mentioned in my post, this works on 0710 & 0810 both 32 & 64 bit.
Just pm you email to me and I'll send you the files.

Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: phenigma on December 06, 2009, 04:26:35 am
Works great!  I was able to play the same divx movie (on CD in the core) on 3 MDs simultaneously with no issues.  I don't have optical drives in any of my MDs yet. Great work!

J.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: MarcoZan on December 08, 2009, 09:09:18 pm
Received files, followed instructions, done.

I've tested only with avi files, but it works like a charm.
I will do some more testing with CD containing bunch of mp3 files ordered in several subdir, and will let you know.

Great job, thanks a lot
Marco
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on December 08, 2009, 09:24:15 pm
Good to hear it's working out for you guys :)

Enjoy
Itsik
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: stallione on December 18, 2009, 04:36:27 am
Thanks for the files. It works great on my core. But different story when it comes to my MDs. Can't play any DVDs on them after updating them. (unfortunately, I didn't backup the files on the MDs) One of them is 64 bit. Any ideas on troubleshooting?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: tkmedia on December 18, 2009, 07:12:51 am
No such thing as 64 in 0810..... even if it says amd64 .... in 0810 its just symlinked  to the i386 version of the tarball  and will install a i386 version.

If you want to question it, just type uname -r at a command prompt.





Tim
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: phenigma on December 18, 2009, 05:07:59 pm
Thanks for the files. It works great on my core. But different story when it comes to my MDs. Can't play any DVDs on them after updating them. (unfortunately, I didn't backup the files on the MDs) One of them is 64 bit. Any ideas on troubleshooting?

I believe the 12-12-2009 update replaced the pluto-disk-drive package which would, I think, overwrites a file supplied by Itsik.  So if you update your core or MDs it could prevent some of this functionality.

I havn't tested this since the 12-12-09 update so I'm only speculating.

J.
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: stallione on December 19, 2009, 07:59:13 pm
On one of my MDs, here is what I get (810)

/usr/pluto/bin/Disk_Drive: error while loading shared libraries: libDisk_Drive_Functions.so: cannot open shared object file: No such file or directory

I replaced the libDisk_Drive_Functions.so with two different variants but no luck. Which package has this file so that I can re-install the original?
Title: Re: Finally, you can play your AVI/MP3 file and view your pics directly from CD/DVD
Post by: Itsik on January 04, 2010, 12:57:01 pm
Sorry for the delay in the reply, but it took a little time to figure out what changes have been made to the relevant files, as none of the devs seemed to think it was necessery to add this patch into the code or even mention that there are changes that need to be made to the disc_drive files, thus rendering months of hard work practically useless.
Any way we are now in the final stages of testing a set of modified files for the current ver. 0810, which will be ready for beta testing in the next couple of days. If any one want's to help test them, please PM me.

Thnx
Itsik