Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2 3 4  Previous   Next
adding movie trailers
Author Message
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Hey guys, I have two plugins that might help you out:

(1) LoadDVD - will play any kind of media file associated with the profile. You can put the path to the file in the Notes field, in the disc Description (define a "disc" for each trailer), or in the Location field (limited to 32 bytes). Then you get a toolbar with an icon for each disc. Click on the icon and the movie plays (also ISOs, etc).

(2) DVDProfileLoop - if you want to make your own custom HTML pages, using a simple script with data from the profiles, you could export XML, CSV, or you can just insert your script into a "profile loop" and my plugin will call your script and pass it whatever data you select from a checklist, by tags, by flags, or filtered.

I hope you find these tools useful.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited RegistrantVTETAZ
Registered: October 4, 2007
Posts: 21
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
I tried all you wrote:

I wrote:

- "file" into "location field"
- "nothing" into "slot field"
- [filepath]H:\Média\Vidéos\Comedie\Bande annonce de American dreamz.mkv[/filepath] into "notes field"

and the trailer doesn't start but this error message appears "please check file path and file association and retry"
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
I can get the plugin to work using the same set-up.
Are your file associations correct? What happens when you double-click on the .mkv file directly in Windows?
DVD Profiler Unlimited RegistrantVTETAZ
Registered: October 4, 2007
Posts: 21
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting northbloke:
Quote:
I can get the plugin to work using the same set-up.
Are your file associations correct? What happens when you double-click on the .mkv file directly in Windows?


I don't know why it's works by you and by me not
when I click on the file in windows the trailer starts in full screen
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
Quoting VTETAZ:
Quote:

- "nothing" into "slot field"


Looking at this quote, are you actually writing "nothing" in the slot field or are you leaving it blank? Because you're supposed to leave it blank.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting northbloke:
Quote:
Quoting VTETAZ:
Quote:

- "nothing" into "slot field"


Looking at this quote, are you actually writing "nothing" in the slot field or are you leaving it blank? Because you're supposed to leave it blank.
Sorry you are having troubles. I believe that northbloke's prior comment about file associations may be on point. Not remembering the code totally, but I think the plugin doesn't look at slot when either "file" or "play" are specified alone in the Location field. I assume you are using LoadDVD 1.0. I did make a change that usually has a beneficial effect when trying to use file associations for media files. Make sure you uninstall 0.7 first.

If all else fails, you can use "play" instead of file, and code PlayFromDiisk.bat as

@echo off
%6

or

@echo off
cmd /C %6


If double-click on the file works, one of those should work.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Unlimited RegistrantVTETAZ
Registered: October 4, 2007
Posts: 21
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Hi mediadogg

I do what you said:

- Sure I let slot field blank
- I never install the 0.7 version
- I tried to use "play" instead "file"

But I don't understand what I must do with:

"code PlayFromDiisk.bat as

@echo off
%6

or

@echo off
cmd /C %6"

Sorry, I don't want to disturb you
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
VTETAZ, your politeness is refreshing. I'm delighted to help you. But out of respect for this thread, could you please move this discussion to the LoadDVD thread of the Plugins forum? Actually, your exact issue, with examples and solutions, is discussed there already.

And after you do that, if you still have troubles, go ahead an post there and I will work with you until you get it going. Then after that, you will introduce me to the twins from your avatar  ... 
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Unlimited RegistrantVTETAZ
Registered: October 4, 2007
Posts: 21
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
oki doki
thanks a lot
DVD Profiler Unlimited RegistrantErikStraker
Registered: January 9, 2008
Posts: 3
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting northbloke:
Quote:
OK, I've done some fiddling. Turns out the OBJECT value didn't like having the script in the middle, but it works if the whole thing is inside the script.
Try this:

<HTML>
<HEAD>

<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
</SCRIPT>

</HEAD>
<BODY>
<SCRIPT>
document.write('<OBJECT id="VIDEO" style="position:absolute; left:0;top:0;" width="640" height="480" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">')
document.write('<PARAM NAME="URL" VALUE="D:/Movie Trailers (Divx)/' + DP_Title + '.divx"><PARAM NAME="AutoStart" VALUE="False">')
document.write('<PARAM name="uiMode" value="mini"><PARAM name="PlayCount" value="1"></OBJECT>')
</SCRIPT>
</BODY>
</HTML>


Please note there is no error checking in this script, it assumes that there will always be a trailer there.


First, just wanna say you guys do an incredible job of helping us figure this stuff out on here.

This code works fine for me, but was wondering what I would need to change if I wanted the trailer to reference the upc number and not the title. Mostly just aesthetic reasons, don't wanna change every title just because the naming for a divx file won't let me include colons and I don't wanna use dashes. Any help would be GREATLY appreciated! Thanks in advance.
DVD Profiler Desktop and Mobile RegistrantStar ContributorPantheon
Registered: March 14, 2007
Reputation: High Rating
United Kingdom Posts: 1,819
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quote:

Try this:

<HTML>
<HEAD>

<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
</SCRIPT>

</HEAD>
<BODY>
<SCRIPT>
document.write('<OBJECT id="VIDEO" style="position:absolute; left:0;top:0;" width="640" height="480" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">')
document.write('<PARAM NAME="URL" VALUE="D:/Movie Trailers (Divx)/' + DP_Title + '.divx"><PARAM NAME="AutoStart" VALUE="False">')
document.write('<PARAM name="uiMode" value="mini"><PARAM name="PlayCount" value="1"></OBJECT>')
</SCRIPT>
</BODY>
</HTML>


Hi all

I've decided to jump on board with this particular feature and I am having some problems.
Firstly I know NOTHING about writing code so all and any help will be much appreciated.

I can't seem to get it to work if there is a colon in the film title.

How can I resolve this?
 Last edited: by Pantheon
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
I'm at work now, but if no one else gets the chance, I'll take a look at both your problems tonight.
@ caineblack,
do you want the locality number included at the end of the UPC or not?
@Pantheon,
I never realised that colons would cause an issue, that could be quite nasty to fix. The only way I can think of off-hand is to find some way of replacing the colon with an underscore, or removing it completely.
DVD Profiler Unlimited RegistrantFredLooks
phpDVDProfilerDude D5/7/2
Registered: March 13, 2007
Canada Posts: 350
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I believe that the variable DP_UPC can be used to supply the UPC value (including locality), however I am not near a windows computer to check.

I think that replacing DP_Title with DP_Title.replace(/:/g,'_') will give you a filename which has underscores in place of colons (note that there are other characters which are illegal in filenames, specifically
/ \ : * ? " < > |

so i guess that you could use DP_Title.replace(/[\/\\:\*\?"<>|]/g,'') to just remove the illegal characters from the filename.)

Sorry that's pretty hard to read ...
-fred
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting FredLooks:
Quote:
I believe that the variable DP_UPC can be used to supply the UPC value (including locality), however I am not near a windows computer to check.
Confirmed - yes.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
Thanks guys,
Pantheon, use this script - as Fredlook describes it, it simply removes illegal characters from the filename.
Quote:
<HTML>
<HEAD>

<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
</SCRIPT>

</HEAD>
<BODY>
<DP NAME="UPC" Formatted="false">
<SCRIPT>
document.write('<OBJECT id="VIDEO" style="position:absolute; left:0;top:0;" width="640" height="480" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">')
document.write('<PARAM NAME="URL" VALUE="D:/Movie Trailers (Divx)/' + DP_Title.replace(/[\/\\:\*\?"<>|]/g,'') + '.divx"><PARAM NAME="AutoStart" VALUE="False">')
document.write('<PARAM name="uiMode" value="mini"><PARAM name="PlayCount" value="1"></OBJECT>')
</SCRIPT>
</BODY>
</HTML>

So, "Buffy the Vampire Slayer: Season One" becomes "Buffy the Vampire Slayer Season One"

Caineblack, simply replace the line
Quote:
document.write('<PARAM NAME="URL" VALUE="D:/Movie Trailers (Divx)/' + DP_Title.replace(/[\/\\:\*\?"<>|]/g,'') + '.divx"><PARAM NAME="AutoStart" VALUE="False">')

with
Quote:
document.write('<PARAM NAME="URL" VALUE="D:/Movie Trailers (Divx)/' + DP_UPC + '.divx"><PARAM NAME="AutoStart" VALUE="False">')

Please note, this will include the locality code so, for example, most of my UPC codes include the ".4" at the end.
 Last edited: by northbloke
DVD Profiler Desktop and Mobile RegistrantStar ContributorPantheon
Registered: March 14, 2007
Reputation: High Rating
United Kingdom Posts: 1,819
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
All working.

Many thanks

Help much appreciated.
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2 3 4  Previous   Next