Launch a random trailer before movie | Page 7

Discussion in 'Moving Pictures' started by WhyMe, September 7, 2009.

  1. WhyMe

    WhyMe Portal Member

    Joined:
    July 26, 2008
    Messages:
    718
    Likes Received:
    6
    Occupation:
    Développeur .Net
    Ratings:
    +7 / 0
    Home Country:
    France France
    Re : Launch a random trailer before movie

    My modified MovingPictures version do that : play random trailer before movie ;)


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. VincAlastor

    VincAlastor Portal Member

    Joined:
    May 5, 2011
    Messages:
    5
    Likes Received:
    0
    Ratings:
    +0 / 0
    AW: Re : Launch a random trailer before movie

    Your right, this would be very nice. is there a movingpicture developer which we could ask for that feature?

    and would you publish your modified version, please?


    :oops: intro trailers don't run with MPC-HC as external player... i think movingpictures has to write a temporary playlist file which include the intro trailers and the movie
     
  4. WhyMe

    WhyMe Portal Member

    Joined:
    July 26, 2008
    Messages:
    718
    Likes Received:
    6
    Occupation:
    Développeur .Net
    Ratings:
    +7 / 0
    Home Country:
    France France
    Re : AW: Re : Launch a random trailer before movie

    No, not on the forum.
    I do it in past, not in the rules, because it's just a modified version for my usage, not a version for publish.
    ( it requires versionning different from original MovingPictures, different name and publish source code )

    I can send it via PM, but use it at your own risk, no support will be done ;)
     
  5. fforde

    fforde Community Plugin Dev

    Joined:
    June 7, 2007
    Messages:
    2,666
    Likes Received:
    1,690
    Occupation:
    Software Engineer
    Location:
    Texas
    Ratings:
    +1,696 / 0
    Home Country:
    United States of America United States of America
    So I have done a little bit of work on custom intro videos for Moving Pictures 1.3 (and still plan to do a bit more). The idea is to allow wildcards in your path for your custom intro, so for example you could use "c:\intros\${audiocodec}.avi" and it would play a different intro video based on the audio codec of the video. Additionally if you point it to a directory instead of a file it will play a random video from that directory. So you could use "c:\trailers\" to play a random trailer before your movie. You can see some partial documentation already written up on our wiki.

    One thing I am struggling with though is genre. A logical combination of the wildcards enhancement and the directory enhancement would be something like "c:\trailers\${genre}\". The problem is a single movie can be tagged with several genres. I am not really sure how to handle this beyond just using the first genre. Any ideas?

    If anyone would like to chat real time jump on our IRC channel.
     
    • Like Like x 1
  6. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,182
    Likes Received:
    1,304
    Ratings:
    +1,683 / 2
    Using first genre should work in most cases, however IMDb tends to alphabetize genres, meaning that a Thriller with some Action will be listed as "|Action|Thriller|".

    I've actually noticed that the MPAA rating section at imdb.com sometimes allows for clarification on the main genre, so it could be possible to add scraper support for this.

    Example:

    The Matrix (1999)
    Genres = Action | Adventure | Sci-Fi
    MPAA = "Rated R for sci-fi violence and brief language."

    Could use the 'sci-fi' reference from MPAA to import this as "|Sci-Fi|Action|Adventure|" with some scraper adjustments, so that first genre selection is correct. Would need to go through a much larger sample set to see if this is reliable on more then a few movies that I tried it on.

    Another option would be to just take the contents of all the matches of "c:\trailers\${genre}\" on multiple genres (if that is possible), toss them in an array and pick a random one from that.
     
  7. fforde

    fforde Community Plugin Dev

    Joined:
    June 7, 2007
    Messages:
    2,666
    Likes Received:
    1,690
    Occupation:
    Software Engineer
    Location:
    Texas
    Ratings:
    +1,696 / 0
    Home Country:
    United States of America United States of America
    I am not interested in a solution that would require changes to scraper scripts. I think the idea of a "primary genre" field is good, but I think few sites would be able to provide this information. And as far as custom intros go I would really like to find a solution that works now and for everyone.

    Randomizing based on all the possible values makes sense though I think. This would complicate the wildcard code but it would probably be doable. I think this is probably the best option unless we brought the filtering system into play which I really don't want to do.
     
  8. VincAlastor

    VincAlastor Portal Member

    Joined:
    May 5, 2011
    Messages:
    5
    Likes Received:
    0
    Ratings:
    +0 / 0
    Could you make it possible to use intro trailers with external player like mpc-hc, please? :)
     
  9. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    AW: Launch a random trailer before movie

    Is there also planned that you can chose a specific trailer for a specific movie? Something similar to Backdrop path <-> Trailer path? For each movie..
     
  10. Jocker_Boy

    Jocker_Boy Portal Pro

    Joined:
    December 9, 2008
    Messages:
    196
    Likes Received:
    3
    Location:
    Lisbon
    Ratings:
    +3 / 0
    Home Country:
    Portugal Portugal
    Re: AW: Launch a random trailer before movie

    I agree.
    If detected the word "trailer" in movie folder, it plays the trailer, if not then or play a random trailer or look for online.
     
  11. fforde

    fforde Community Plugin Dev

    Joined:
    June 7, 2007
    Messages:
    2,666
    Likes Received:
    1,690
    Occupation:
    Software Engineer
    Location:
    Texas
    Ratings:
    +1,696 / 0
    Home Country:
    United States of America United States of America
    Re: AW: Launch a random trailer before movie

    With the latest version of online videos you can search for a trailer strait from the Moving Pictures movie details page. It works very very well and it is easy to use. Because of this it is unlikely we will add support for locally stored trailers any time soon. It's a feature we would like to have but it would not be a good use of our time to implement an alternative to an existing feature.

    But please lets not derail this thread.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!