nasflix for Roamio and mini

Discussion in 'Developers Corner' started by nasflix, Apr 9, 2015.

  1. moyekj

    moyekj Well-Known Member

    12,176
    827
    Jan 23, 2006
    Mission...

    Advertisements

    Great thanks. I changed to "medium" preset and crf=14 and the dvd transcodes looked a lot better.
     
  2. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    I made a small update to the server (v1.0.1) so that the movie.nfo and folder.jpg files are optional. If they do not exist, the name of the folder will be used to load the metadata and cover image. The optional files can be used to override the results when desired.
     
  3. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    There was a bug in the 1.0.1 version that was causing the metadata query value based on the folder name to not be encoded correctly. The 1.0.2 version fixes this so that metadata loads correctly.
     
  4. tlemmons

    tlemmons New Member

    2
    0
    Apr 14, 2015
    I am also trying nasflix and I like the probability. However a few problems I have ran into. The first is not really a problem but would be great if there were a way to fix. Most of my BDs and DVDs are in .iso. Anyway you could integrate with a iso reader to use them that way?

    The real problems are that I converted a BD to mkv and tried to play but it pauses about every five seconds like it is rebuffering. The BD is "army of darkness" and I used the default profile from makeMKV. That is on a mini2. On my romio it immediatly returns to the menu so wont play at all.

    Second problem is I downloaded your starwars video short and it will not play on my system. Just gives me a black screen although with a time bar if I hit select button.

    This looks real good if these problems can be fixed. I will help you any way I can, including coding if needed. Just let me know and thanks for the effort!!
     
  5. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015

    Advertisements

    The 1.0.3 version of the server includes the following changes:

    • Add iso to the list of default file extensions.
    • Add support for iso files to be located at the same level as the main title folders.
    • More testing needs to be done to ensure iso files play correctly. Initial testing has mixed results with blu ray iso files.
    • Turn scaling off by default. (This has better performance for DVDs)
    • Modify subtitle logic to be more forgiving. (This was the issue with the video sample)

    If video pauses or buffers during playback, this is usually due to the settings being too high for the PC the server is running on. You can play with the com.nasflix.transcode.rate and com.nasflix.transcode.preset settings to see if that helps at all.

    The Army of Darkness Blu ray is in the VC-1 format, so it must be transcoded for playback. Blu Rays in the h264 format are not transcoded and copied to the output.
     
    Last edited: Apr 24, 2015
  6. tlemmons

    tlemmons New Member

    2
    0
    Apr 14, 2015
    Thanks, I will try the new version this weekend.

    Do you have any suggestions for the settings in config file. I have no real idea what they should be.

    And so far I have not gotten any BD iso's to play, I have tried quiet a few of mine.
     
    Last edited: Apr 24, 2015
  7. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    Are your DVD iso files playing ok? I'll try out some more blu ray iso files later today or tomorrow to see what is going on.

    Also, if the iso files have menus and extras they will not play correctly. They should be the main movie only.

    If you just want to see what a blu ray can look like, you can pick one you know is h264 encoded. Check blu-ray.com if you are not sure and make sure the video codec is MPEG-4 AVC. You can use something like image burn to export the file structure from the iso.

    I have comments in the config file around the server settings. These are the two you want to look at. Maybe try setting the CRF value higher to something like 25. This will make the video look a lot worse but should make it play smoother assuming the PC is the issue. If you let me know your PC processor model and speed I can give you a better idea.

    ###########################
    # The ffmpeg transcode CRF
    # lower is more cpu but better quality
    #
    com.nasflix.transcode.rate=20
    ###########################
    # The ffmpeg transcode present
    # ultrafast, superfast, veryfast, faster, fast,
    # medium, slow, slower, veryslow
    #
    com.nasflix.transcode.preset=superfast
     
  8. isomerize

    isomerize New Member

    3
    0
    Feb 17, 2015
    All of my Mini's are v1, I just switched from WMC/Xbox extenders a few months ago and have been waiting patiently for Plex integration, but this is pretty close and probably just as convenient.

    Any plans for TV Shows? Just curious and I suspect I could try but the nested Show\Season\Episode.mkv file structure probably isn't supported.
     
  9. moyekj

    moyekj Well-Known Member

    12,176
    827
    Jan 23, 2006
    Mission...
    At this point I think the only thing preventing wider use of this tool is the specific folder format requirements. If the tool could be enhanced to use individual files and parse pyTivo metadata files to retrieve metadata, for example, many more TiVo users could make use of this.
     
  10. bradleys

    bradleys It'll be fine....

    4,157
    245
    Oct 31, 2007
    moyekj,

    I was thinking the exact same thing myself. A marriage between this tool and PyTiVo would be the optimum solution... Many of us already have PyTiVo shares - so it would be a seamless setup.
     
  11. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    I don't think this would be a problem, I can modify the com.nasflix.transcode.extensions setting default value to include the formats pyTivo supports.

    The metadata parsing should not be a problem either. I found the documentation for the format so I'll see if I can update the code tonight. I did not find how cover art is handled in pyTivo. Does it load a cover file the same way it loads the meta file?
     
  12. moyekj

    moyekj Well-Known Member

    12,176
    827
    Jan 23, 2006
    Mission...
    That would be great!

    The pyTivo web page doesn't document all the different elements since many don't affect pushes/pulls to TiVo anyway. However, the cover art is handled using the "image" tag, for example:
    image : Hell's Kitchen (US) - S10E20 - Winning Chef is Announced, The.mp4.jpg

    (I think the value can be a full file system compatible path or if no path provided then assume same folder as the metadata file itself).

    NOTE: As far as parsing metadata file, note that some people use white space between name:value and some don't, so parsing should account for either way.
     
  13. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    Thanks for the info. I have a 1.0.4 version available with some initial support. The following keys will be parsed from the pyTivo metadata file if it is found:
    • title
    • description
    • mpaaRating
    • movieYear
    • starRating
    • vActor
    • vDirector
    • vProgramGenre
    • image

    I only have support for movies at the moment. When I have more time, I will try to add support to TV shows and series.

    Let me know what works and what doesn't so I can make changes as needed.
     
  14. moyekj

    moyekj Well-Known Member

    12,176
    827
    Jan 23, 2006
    Mission...
    OK thanks. For a flat file structure it's working. However if there are any sub-folders it's not. It looks like the folder becomes the title and maybe the 1st video in the folder is played and there is no metadata displayed. i.e. So currently you would have to no hierarchy at top level of the share for things to work.
     
  15. bradleys

    bradleys It'll be fine....

    4,157
    245
    Oct 31, 2007
    A few years back I wrote a script to generate cover art in the mobile PyTiVo template at runtime. It used an api from the OMDb website and looks up the images using Title and Year. This eliminated the need to manually lookup and store the cover art images.


    Hmm, it looks like he has updated the functionality quite a bit since the last time I looked at it. The cover art is behind an API Key now, on the other-hand, the metadata lookup is very fast and works really well just from the movie name.

    Anyway, just thought I would point you to the options: http://www.omdbapi.com/)
     

    Attached Files:

    Last edited: Apr 30, 2015
  16. dalabera

    dalabera Member

    61
    0
    Jan 10, 2013
    Kudos for you for taking the time in creating something like this. Would you consider publishing the code in either sourceforge or google code?
    This way the community could jump in and help and of course you will be the owner of the code :D:D
     
  17. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    A 1.0.5 release is now available with the following updates:
    • Bump up default audio bitrate to 640k.
    • Add com.nasflix.title.depth setting that allows nested folders to be indexed. Default setting is a depth of 3. This logic only kicks in when the current directory has sub directories but no acceptable video files are found. If an acceptable video file is found in the directory, it is assumed that the directory is a "title". TV season and episode structures are not yet supported.
    • Update id value for titles. This is now a SHA-1 hash of the file path.
    • Cache the title list for 60 seconds by default to speed up cover art display.

    Thanks for the information bradleys. I currently use tmdb and should be able to do the same type of call based on the title and year. I'll try and get this into the next version.

    Once I have some time to clean up the code, I will publish it.
     
    Last edited: Apr 30, 2015
  18. moyekj

    moyekj Well-Known Member

    12,176
    827
    Jan 23, 2006
    Mission...
    Excellent, thanks for the quick turnaround! I have a little hierarchy below my top level folder and now it looks like all the video files are being picked up.

    Besides the cover art I guess the rest of metadata is not currently cached right? It seems to display with just under 2 second delay each time I change titles, even for titles I've already displayed before. Not a big deal but perhaps caching there could speed things up too.

    I would suggest perhaps add a link to your TCF signature to nasflix.com as I don't think it's obvious to new people looking at this thread where they can download server side software updates. (I have it bookmarked for myself now).

    I'm impressed how quickly video starts playing on the TiVo when initiating playback - faster then I remember Plex doing it or any other streaming method I've used on TiVos. Keep up the great work!
     
  19. nasflix

    nasflix New Member

    22
    0
    Apr 3, 2015
    Server version 1.0.6 is now available and includes two small changes.

    • Default audio codec to ac3 rather than aac.
    • Fix caching bug for cover art.
     
    Last edited: May 1, 2015
  20. dalabera

    dalabera Member

    61
    0
    Jan 10, 2013
    Just tested the app and did a proof of concept and it works great! Exactly what I needed!.
    Couple of questions:
    1- Had JRE 8, but it was not working... did a web search and find out that some apps indeed require the JDK in order to work due to some kind of java compilation. I end up downloading the JDK8 64bit. So it requires the Jdk?

    2- I have a WD My cloud. For my test I did a basic folder on my local drive. What is the best way or what I need to do you configure the path to my movies on my NAS. Normally they only way I access it is trough their desktop app.

    3- For me in order to fully embrace this app I was thinking of buying a "Raspberry Pi 2" with Raspbian. It comes with Java JDK 8 already and cost $57. It should do trans-coding fine for the movies I have.
    Now what are your thoughts to have your server running on this little equipment and use it as the "Server".

    http://www.newegg.com/Product/Product.aspx?Item=9SIA5YB2MP5661&cm_re=Raspberry_Pi_2-_-9SIA5YB2MP5661-_-Product
     

Share This Page

spam firewall

Advertisements