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: Plugins Page: 1 2 3 4 5  Previous   Next
phpDVDProfiler
Author Message
DVD Profiler Unlimited RegistrantLowpro
Registered: March 14, 2007
Reputation: Great Rating
United States Posts: 299
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Looks like the "Video Formats\Dynamic Range" options (HDR10, Dolby Vision) have yet to be added.  Will try my hand at adding those tomorrow.  If I'm successful I'll chime back in.
My DVD/Blu-ray Collection
 Last edited: by Lowpro
DVD Profiler Unlimited RegistrantLowpro
Registered: March 14, 2007
Reputation: Great Rating
United States Posts: 299
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting Lowpro:
Quote:
Looks like the "Video Formats\Dynamic Range" options (HDR10, Dolby Vision) have yet to be added.  Will try my hand at adding those tomorrow.  If I'm successful I'll chime back in.

I updated my website today adding the "Dynamic Range" options.  End result shown below.

Dynamic Range: N/A


Dynamic Range: HDR10


Dynamic Range: Dolby Vision


Dynamic Range: HDR10/Dolby Vision


The required changes outlined below, the line items in bold.  Of course you can customize the "index.php" to your liking.  I decided on the formatting shown above, i.e. "Color Format (Dynamic Range)".  And click here to download a text file of the below as the single quotes without spacing shown below don't appear correctly.  Enjoy!

Quote:
schema.sql

formatdualsided tinyint unsigned default NULL,
formatduallayered tinyint unsigned default NULL,
drhdr10 tinyint unsigned default NULL,
drdolbyvision tinyint unsigned default NULL,
dim2d tinyint unsigned default NULL,
dim3danaglyph tinyint unsigned default NULL,

Quote:
incupdate.php

$f .= ',formatdualsided'; $v .= ','  . TrueFalse($dvd_info['FORMAT'][0]['FORMATDUALSIDED'][0]['VALUE']);
$f .= ',formatduallayered'; $v .= ','  . TrueFalse($dvd_info['FORMAT'][0]['FORMATDUALLAYERED'][0]['VALUE']);

$f .= ',drhdr10'; $v .= ','  . @TrueFalse($dvd_info['FORMAT'][0]['DYNAMICRANGE'][0]['DRHDR10'][0]['VALUE']);
$f .= ',drdolbyvision'; $v .= ','  . @TrueFalse($dvd_info['FORMAT'][0]['DYNAMICRANGE'][0]['DRDOLBYVISION'][0]['VALUE']);

$f .= ',dim2d'; $v .= ','  . @TrueFalse($dvd_info['FORMAT'][0]['DIMENSIONS'][0]['DIM2D'][0]['VALUE']);
$f .= ',dim3danaglyph'; $v .= ','  . @TrueFalse($dvd_info['FORMAT'][0]['DIMENSIONS'][0]['DIM3DANAGLYPH'][0]['VALUE']);

Quote:
lang_en.php

$lang['COLORIZED'] = "Colorized";
$lang['COLORUNSET'] = "[Color status unset]";
$lang['HDR10'] = "HDR10";
$lang['DOLBYVISION'] = "Dolby Vision";

Quote:
index.php

$dvd['format'] .= ' ' . $colours;

if ($dvd['format'] != '')
$dvd['format'] .= '';
$dr = ''
. (($dvd['drhdr10']==1)     ? "($lang[HDR10])": '')
. (($dvd['drdolbyvision']==1) ? "($lang[DOLBYVISION])": '');

if ($dvd['drhdr10']==1 && $dvd['drdolbyvision']==1)
$dr = "($lang[HDR10], $lang[DOLBYVISION])";

if ($dr == '') { $dvd['format'] .= '' . $dr; }
else { $dvd['format'] .= ' ' . $dr; }

if ($dvd['format'] != '')
$dvd['format'] .= ',';
My DVD/Blu-ray Collection
 Last edited: by Lowpro
DVD Profiler Unlimited RegistrantStar Contributorzeiram
Registered: April 16, 2007
Reputation: High Rating
Switzerland Posts: 30
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting Lowpro:
Quote:
Quoting Lowpro:
Quote:
Looks like the "Video Formats\Dynamic Range" options (HDR10, Dolby Vision) have yet to be added.  Will try my hand at adding those tomorrow.  If I'm successful I'll chime back in.

I updated my website today adding the "Dynamic Range" options.  End result shown below.

Thanks a lot! I have to admit that I don't own any kind of 4K/UHD movies, so I'm having trouble to see what kind of features are pertinent to be added or not. 

I'll update the github repository with your proposed changes soonish.
DVD Profiler Unlimited RegistrantLowpro
Registered: March 14, 2007
Reputation: Great Rating
United States Posts: 299
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting zeiram:
Quote:
Quoting Lowpro:
Quote:
Quoting Lowpro:
Quote:
Looks like the "Video Formats\Dynamic Range" options (HDR10, Dolby Vision) have yet to be added.  Will try my hand at adding those tomorrow.  If I'm successful I'll chime back in.

I updated my website today adding the "Dynamic Range" options.  End result shown below.

Thanks a lot! I have to admit that I don't own any kind of 4K/UHD movies, so I'm having trouble to see what kind of features are pertinent to be added or not. 

I'll update the github repository with your proposed changes soonish.

Sounds good.  You'll want to copy and paste from the text file I linked to as the single quotes without spacing don't appear correctly within the forum post.  And yeah, I'm sort of in the same boat.  I only own 6 UHD Blu-ray releases and most of them were purchased due to the included Blu-ray having an improved transfer over the given stand-alone Blu-ray release. (All my equipment at home is limited to 1080p.) Hadn't even been using the UHD media type prior to now.  Just incorporated that.  Figured I'd add the "Dynamic Range" options as well, since they weren't already included.  Cheers.
My DVD/Blu-ray Collection
 Last edited: by Lowpro
DVD Profiler Unlimited RegistrantStar Contributorzeiram
Registered: April 16, 2007
Reputation: High Rating
Switzerland Posts: 30
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
By the way, if you want to "profit" from the automatic schema updates when updating the collection, you need to also increase the value for "db_schema_version" in the schema.sql file, and the value of "$code_schema_version" in the global.php file...
DVD Profiler Unlimited RegistrantLowpro
Registered: March 14, 2007
Reputation: Great Rating
United States Posts: 299
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting zeiram:
Quote:
By the way, if you want to "profit" from the automatic schema updates when updating the collection, you need to also increase the value for "db_schema_version" in the schema.sql file, and the value of "$code_schema_version" in the global.php file...

Sounds like a plan.  Thanks for the tip!
My DVD/Blu-ray Collection
 Last edited: by Lowpro
DVD Profiler Desktop and Mobile Registrantspecise_8472
It wasn't me...
Registered: January 27, 2009
New Zealand Posts: 180
Posted:
PM this userDirect link to this postReply with quote
Thanks for running with this and updating.
As an aside works perfectly on Server 2019 and IIS.
DVD Profiler Unlimited RegistrantStar Contributorzeiram
Registered: April 16, 2007
Reputation: High Rating
Switzerland Posts: 30
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Still trying to polish a few things, so here's a new release of phpDVDProfiler. The change list:
  • add the display of dynamic range information (thanks Lowpro)

  • add 4K/UHD profiles and new features support to Pick-a-Flick

  • fix the Pick-a-Flick feature

  • fix the charset encoding in gallery and specific skins

  • remove support of MySQL 4.0


  • If you still need support of MySQL 4.0 because your host doesn't provide you with a newer version, change host! MySQL 4.0's end of support was in December 2008, it really should be left in peace now...

    As in the previous days, you can get the new release either from GitHub or my website.
    DVD Profiler Desktop and Mobile RegistrantStar ContributorAiAustria
    Profiling since 2004
    Registered: May 19, 2007
    Reputation: Highest Rating
    Austria Posts: 5,715
    Posted:
    PM this userDirect link to this postReply with quote
    Newbee question: Is there any tutorial or quick start guide for someone, who has no experience with PHP at all?

    I found the phpdvdprofiler-install.txt file. But this seems to be very basic information and some of the prerequisites seem to be outdated...

    Any suggestions?
    Complete list of Common Names  •  A good point for starting with Headshots (and v11.1)
     Last edited: by AiAustria
    DVD Profiler Desktop and Mobile RegistrantJMM
    Registered: May 18, 2007
    Bermuda Posts: 13
    Posted:
    PM this userEmail this userVisit this user's homepageDirect link to this postReply with quote
    I'm by no means an expert, but if you want to PM me, I'll see if I can help.
    DVD Profiler Desktop and Mobile RegistrantJMM
    Registered: May 18, 2007
    Bermuda Posts: 13
    Posted:
    PM this userEmail this userVisit this user's homepageDirect link to this postReply with quote
    Hi folks,

    I don't want to hi-jack this thread, as it's intended to get phpDVDProfiler up to date & working with more-recent versions of MySQL & PHP.

    Can anyone suggest a site or forum that I can post my help request for phpDVDProfiler?  I could create a new thread on these forums, but I think that might be frowned upon, as these are DVDProfiler forums .

    I need some help with my index.php file to get phpDVDProfiler to recognize & use dates prior to 31 December 1969.  I know why it does it (Unix timestamp), but I have other scripts that use MySQL & PHP that display dates correctly prior to then, most going back centuries (my genealogy database).  I know... there were no DVDs prior to 1970, you say .  The thing is, I use phpDVDProfiler slightly differently, in that instead of using the DVD release dates, I instead use that field for the dates that the movies were first released.

    The other thing that I need help with, is the section in index.php that extracts the IMDB numbers.  I've been trying for many months to get it to recognize, in addition to numbers, also alphabetical characters & symbols.  I can go into more detail once I find a proper place (site, forums, etc.) where you suggest I can post my questions.

    Thanks in advance, and be safe during these stressful times.

    Regards,
    John
    DVD Profiler Unlimited RegistrantStar Contributorzeiram
    Registered: April 16, 2007
    Reputation: High Rating
    Switzerland Posts: 30
    Posted:
    PM this userView this user's DVD collectionDirect link to this postReply with quote
    Quoting JMM:
    Quote:

    I need some help with my index.php file to get phpDVDProfiler to recognize & use dates prior to 31 December 1969.  I know why it does it (Unix timestamp), but I have other scripts that use MySQL & PHP that display dates correctly prior to then, most going back centuries (my genealogy database).  I know... there were no DVDs prior to 1970, you say .  The thing is, I use phpDVDProfiler slightly differently, in that instead of using the DVD release dates, I instead use that field for the dates that the movies were first released.

    This isn't as straight-forward as it should be, due to the way phpDVDProfiler stores the dates (as unsigned ints) in the database...

    Everything I describe here is untested, so proceed at your own risk!

    Spoiler:  (Select to view)

    First, you'll need to change the type of the column:
    ALTER TABLE dvdprofiler_dvd MODIFY released bigint signed default null;
    ALTER TABLE dvdprofiler_dvd MODIFY lastedited bigint signed default null;

    (In my personal export, the lastedited field had often a value of 1899-12-30... don't know why, but due to this fact the column also needs to be modified.)

    Then you'll have to modify the function my_mktime in the file functions.php. The line 535 should be changed from:
    if ($ret === false || $ret < 0) $ret = 0;

    to:
    if ($ret === false) $ret = 0;

    You should then be able to use dates prior to 1970 in the released field.

    Side note: this will NOT work with PHP 5.1 under Windows, as there's no support for negative timestamps there.
     Last edited: by zeiram
    DVD Profiler Desktop and Mobile RegistrantJMM
    Registered: May 18, 2007
    Bermuda Posts: 13
    Posted:
    PM this userEmail this userVisit this user's homepageDirect link to this postReply with quote
    Hi, Zeiram,

    Thank you for getting back to me with your 2 suggestions.

    I went ahead & took the risk, and made the change in functions for your 2nd suggestion.

    However, which file do I make the 1st suggestion changes in, for altering that table?

    Thanks in advance & have a great day.

    Regards & be safe,
    John
    DVD Profiler Unlimited RegistrantStar Contributorzeiram
    Registered: April 16, 2007
    Reputation: High Rating
    Switzerland Posts: 30
    Posted:
    PM this userView this user's DVD collectionDirect link to this postReply with quote
    Quoting JMM:
    Quote:
    However, which file do I make the 1st suggestion changes in, for altering that table?

    You need to execute them directly on the database, using a tool like phpMyAdmin for example. Please note that this action might well break the database auto-update feature from future releases.

    If you'd prefer a more easier and turn-key solution, you can open an issue here, and I'll see if I can devote some time for a proper solution. But I can't promise you anything (either regarding the time frame, or if it'll indeed end up in the code base...)
    DVD Profiler Unlimited RegistrantLowpro
    Registered: March 14, 2007
    Reputation: Great Rating
    United States Posts: 299
    Posted:
    PM this userVisit this user's homepageDirect link to this postReply with quote
    My "collection.xml" file currently weighs in at 248 MB.  The same file zipped weighs in at 23.5 MB.  As such, I've been uploading the zip file to my web space.  Once uploaded I've been logging in to my Network Solutions account and unzipping the file using one of the web based tools they offer called "File Manager".  That tool is currently unavailable, so I decided to see how else I could unzip a file residing on my FTP.  Ended up finding a much better solution.

    There's a PHP file available on Github here.  You upload the file to the target directory on your FTP, the directory containing the zip file you'd like to extract.  You then go to the URL for the PHP file.  Said page displays a list of the available ZIP files residing in the same directory as the PHP file.  You select the given ZIP file from the drop-down list, then press the "Unzip Archive" button.  Works great!  Needless to say, I won't be using the Network Solutions web based tool anymore.  This method is much faster.
    My DVD/Blu-ray Collection
     Last edited: by Lowpro
    DVD Profiler Unlimited RegistrantStar Contributorzeiram
    Registered: April 16, 2007
    Reputation: High Rating
    Switzerland Posts: 30
    Posted:
    PM this userView this user's DVD collectionDirect link to this postReply with quote
    And if you want it to be even faster and easier: you don't even have to uncompress the file! The incremental update of phpDVDProfiler should support out of the box compressed files (either with LZ compression, gzip compression, bzip2 compression, or zip compression). You just have to upload the "collection.zip" (or "collection.xml.gz", or ...) file as you normally would and run the update. I use it personally with gzip compression, so I can attest that this one at least works.

    Please note: given the size of your collection, you might encounter memory consumption problems, so test carefully. But in the worst case, you still have the possibility to manually unzip the file and run the update like you do it now.
        Invelos Forums->DVD Profiler: Plugins Page: 1 2 3 4 5  Previous   Next