Playing VideoTS files?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Playing VideoTS files?

Post by peter.s » Sat Oct 18, 2008 11:28 am

I want to play a Video_TS file from a button on my stack. I've tried a few scripts with no success - so now I'm wondering if it is in fact possible?

Ideally, I want to include a full DVD quality video on a presentation disc. I want the video to be activated by a button on a stack - opening in the native DVD program.

I know I can run programs and open files/folders, but a Video-TS file is different.

Does anyone know how to do this?

Peter

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Post by peter.s » Thu Oct 23, 2008 3:57 am

I am beginning to wonder if my first message didn't make any sense. Maybe a Video_TS file is not well known?

Here is a little clarification in the hope it may get some suggestions from forum readers...

If you open a Video DVD in your computer, you will be presented with a Audio_TS folder and a Video_TS folder. Usually (and especially if you produce your own movies like I do) the Audio_TS folder is empty - so the only folder of importance is the Video_TS.

Inside the Video_TS folder is a collection of files which make up the movie watching experience - menus, subtitles, video and so on. The DVD playing software and the standalone DVD player hooked up to your T.V knows what to do with these files.

What I want to do is have a button on my stack open the default DVD player and play the movie of a designated Video_TS folder (complete with menu, subtitles and so on). If possible, I would also want the movie to be playable on a standalone DVD playing machine.

Any suggestions?

Peter

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Thu Oct 23, 2008 5:21 am

Hi Peter

Bit of a guess:

Code: Select all

launch document "Video_TS folder" with "DVD Player"
Or perhaps you have to launch "DVD Player" first...

It's around that sort of territory, I reckon.

:)

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Post by peter.s » Thu Oct 23, 2008 7:41 am

Hi Gyroscope,

Thanks for your thoughts. I agree, I think it is somewhere in that territory - however, I think the trouble with launching "DVD Player" first is, how then does one get Player to open the VTS folder? Also, specifying a Player would run into cross-platform issues.

Another idea is this:
When one puts a Video DVD into a machine it automatically launched the default DVD Player - regardless of OS. I am wondering where this command is (maybe it's part of the disc identification?) and how I can exploit it. If it is some kind of "autorun" file or a disc ID, perhaps I can replicate it and call it from my stack?

Might be possible... of course, I haven't a clue of how to do it.

Any thoughts?

Peter

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Oct 23, 2008 9:33 am

Hi Peter,
peter.s wrote:...Another idea is this:
When one puts a Video DVD into a machine it automatically launched the default DVD Player - regardless of OS...
please be aware that the user can turn this "feature" off!


Best

Klaus

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Post by peter.s » Sun Oct 26, 2008 9:34 am

Hmmm... that's a good point Klaus.

Does anyone know how this "feature" works?

P

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Mon Oct 27, 2008 6:34 pm

Hi Peter,

this is some OS setting.

On Windows this is in the "registry", but no idea about Mac OS, probably in some PLIST file.

But please do also remember that it is VERY BAD style to change these user settings without leaving the user a choice to cancel! ;-)

Post Reply