NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 2 3 4 5 6 … 20 Next »
YouTube Plugin

 
  • 0 Vote(s) - 0 Average
YouTube Plugin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#241
2012-01-30, 05:18 PM
whurlston Wrote:
  1. I keep getting a "Connection closed unexpectedly" error from the servers.
  2. Only every other download works because the second gets the above error almost instantly.
  3. Video timelines are a bit messed up.

  1. Solved. I had a "while (...)" statement instead of "if (...)" that was causing the it to attempt to read the download stream after it had completed.
  2. Solved. The "every other download" was a red herring. I was not giving HD streams enough time to buffer before playback. Increasing the preplay buffer to 256KB seems to be enough to buffer even 1080 streams.
  3. Unsolved. Have to live with this one for now.

I need to try to get some things done before I have to pick up my son so I'll package it up later tonight.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#242
2012-01-30, 05:50 PM
whurlston Wrote:#3 Unsolved. Have to live with this one for now.

Excellent progress. For this one I suspect sub would need to now more about the expected duration or length so that he could approximate a work-in progress recording.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#243
2012-01-30, 05:56 PM
That's what I was thinking. I'll get him to take a look when he has a chance after I package it up.
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#244
2012-01-30, 08:31 PM
whurlston Wrote:I am remuxing the video and audio into an MPEGTS container on the fly (including AAC audio) so the NMT does not even drop out to Mono to play them.

This sounds brilliant! When I'm watching youtube I usually watch a lot of short videos. Not having to leave the npvr gui for mono would be great. Can't wait to try it out.

Chris
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#245
2012-01-30, 11:08 PM
Sheik Yerbouti Wrote:Not having to leave the npvr gui for mono would be great.

Because that is six seconds per file that you will never get back!

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#246
2012-01-31, 12:28 AM (This post was last modified: 2012-01-31, 01:06 AM by whurlston.)
I won't call this a release until I can implement the new settings in the settings screen, but if anyone wants to play with the new buffering technique, here it is.

You will need to open the plugin and exit (or save from the settings screen) for the new values to be written to youtube.xml.

This includes a new build of ffmpeg that is needed for the buffering to work. You only need the executable but I need to include the licenses with the download. Do not overwrite the existing ffmpeg in the NextPVR program folder. I don't know if the new build will affect anything with NextPVR or the web interface.

Code:
<General hqThumbs="true" [B][color=#FF0000]useBufferForNMT[/color][/B]="false" [B][color=#FF0000]useBufferForPC[/color][/B]="false" sticky="true">
    <[color=#FF0000][B]FFmpegPath[/B][/color]>C:\ffmpeg\ffmpeg.exe</[color=#FF0000][B]FFmpegPath[/B][/color]>
    <[B][color=#FF0000]FFmpegCommandLine[/color][/B]>-f mpegts -vcodec copy -acodec copy -vbsf h264_mp4toannexb</[B][color=#FF0000]FFmpegCommandLine[/color][/B]>
    <[B][color=#FF0000]BufferLocation[/color][/B]>D:\YouTube</[B][color=#FF0000]BufferLocation[/color][/B]>
    <[B][color=#FF0000]NMTBufferKB[/color][/B]>1024</[B][color=#FF0000]NMTBufferKB[/color][/B]>
    <[B][color=#FF0000]PCBufferKB[/color][/B]>256</[B][color=#FF0000]PCBufferKB[/color][/B]>

Explanation of new settings (you need to at least set the FFmpegPath):
  • useBufferForNMT/useBufferForPC: Download the video to the hard drive before playing. There is no cleanup yet on the downloaded files.
  • FFmpegPath: The location where the included build of ffmpeg is stored. You must include the executable name ("ffmpeg.exe").
  • FFmpegCommandLine: The commandline used for remuxing to mpegts. Play with it if you want but the output will be in a .ts file. If you mess it up, delete the line from youtube.xml and it will revert to the default. Do not include the input/output file options, they will be supplied automatically.
  • BufferLocation: Where the downloaded videos will be stored. By default, it is "[LiveTV]\YouTube" (I may change this to the recordings location.)
  • NMTBufferKB/PCBufferKB: Wait for the downloaded file to reach this size before asking NextPVR to play it. Note that this is in KB. The default value for the NMT is 1MB and the default value for the PC is 256KB.

If you set useBufferForPC to "true", it will always download an MP4 stream. These can easily be remuxed to mpegts and the NMT can play the same buffered file.

If a video has been downloaded already, the existing file will be played.

Download: http://www.oshinetworks.com/NPVR/youtube-ffmpeg.zip
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#247
2012-01-31, 12:53 AM
Thanks I am about to give it a try (I had to use .zip for the above URL)

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#248
2012-01-31, 01:06 AM
Right you are. Fixed.

No changes the the API by the way. I haven't tested but it should still function as normal.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#249
2012-01-31, 01:16 AM
whurlston Wrote:I won't call this a release until I can implement the new settings in the settings screen, but if anyone wants to play with the new buffering technique, here it is.

You will need to open the plugin and exit (or save from the settings screen) for the new values to be written to youtube.xml.

This includes a new build of ffmpeg that is needed for the buffering to work. You only need the executable but I need to include the licenses with the download. Do not overwrite the existing ffmpeg in the NextPVR program folder. I don't know if the new build will affect anything with NextPVR or the web interface.

Code:
<General hqThumbs="true" [B][color=#FF0000]useBufferForNMT[/color][/B]="false" [B][color=#FF0000]useBufferForPC[/color][/B]="false" sticky="true">
    <[color=#FF0000][B]FFmpegPath[/B][/color]>C:\ffmpeg\ffmpeg.exe</[color=#FF0000][B]FFmpegPath[/B][/color]>
    <[B][color=#FF0000]FFmpegCommandLine[/color][/B]>-f mpegts -vcodec copy -acodec copy -vbsf h264_mp4toannexb</[B][color=#FF0000]FFmpegCommandLine[/color][/B]>
    <[B][color=#FF0000]BufferLocation[/color][/B]>D:\YouTube</[B][color=#FF0000]BufferLocation[/color][/B]>
    <[B][color=#FF0000]NMTBufferKB[/color][/B]>1024</[B][color=#FF0000]NMTBufferKB[/color][/B]>
    <[B][color=#FF0000]PCBufferKB[/color][/B]>256</[B][color=#FF0000]PCBufferKB[/color][/B]>

Explanation of new settings (you need to at least set the FFmpegPath):
  • useBufferForNMT/useBufferForPC: Download the video to the hard drive before playing. There is no cleanup yet on the downloaded files.
  • FFmpegPath: The location where the included build of ffmpeg is stored. You must include the executable name ("ffmpeg.exe").
  • FFmpegCommandLine: The commandline used for remuxing to mpegts. Play with it if you want but the output will be in a .ts file. If you mess it up, delete the line from youtube.xml and it will revert to the default. Do not include the input/output file options, they will be supplied automatically.
  • BufferLocation: Where the downloaded videos will be stored. By default, it is "[LiveTV]\YouTube" (I may change this to the recordings location.)
  • NMTBufferKB/PCBufferKB: Wait for the downloaded file to reach this size before asking NextPVR to play it. Note that this is in KB. The default value for the NMT is 1MB and the default value for the PC is 256KB.

If you set useBufferForPC to "true", it will always download an MP4 stream. These can easily be remuxed to mpegts and the NMT can play the same buffered file.

If a video has been downloaded already, the existing file will be played.

Download: http://www.oshinetworks.com/NPVR/youtube-ffmpeg.zip

All excited....but I am at the in-laws......I am going to log on remote and set things up for when I get home..... :-)
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#250
2012-01-31, 01:35 AM
whurlston Wrote:No changes the the API by the way. I haven't tested but it should still function as normal.

It is superb whurlston, and the speed is great. I did have trouble after I got a callback error from SearchLite, I got several in a row, but it could be momentary connectivity. On other advantage over the NMT player is being able to display the OSD on top, definitely a cleaner interface.

If the intent is to keep them for later play, perhaps the name should be youtube-title-id.ts, just a thought.

Martin.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (65): « Previous 1 … 23 24 25 26 27 … 65 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using R5000-HD with Network Recorder Plugin checkbin99 255 51,492 2021-08-24, 07:50 PM
Last Post: checkbin99
  how to configure RemoteRecorder Plugin to use remote NextPVR instance? bm_00 5 3,120 2020-10-06, 12:32 PM
Last Post: mvallevand
  Connecting NVPR to Emby Plugin NVPR Geek 0 1,353 2018-06-10, 12:32 AM
Last Post: NVPR Geek
  Newb here: Can someone help with a Plex Plugin issue? wepham 1 3,224 2017-02-07, 07:10 AM
Last Post: petenshari
  System Plugin Confused by New NPVR Naming Scheme Lao Pan 1 2,736 2016-09-25, 08:26 AM
Last Post: imilne
  Movies2 Plugin Problem... Anyone using it? ga_mueller 5 4,476 2016-08-22, 07:02 PM
Last Post: ga_mueller
  Plex Plugin Nikkie300 4 6,192 2016-01-24, 05:59 PM
Last Post: Nikkie300
  NextPVR Plex plugin, no live TV ajmast 15 9,652 2015-10-29, 03:45 AM
Last Post: ajmast
  Cant restart record service using System plugin on 3.4.8 shaunpatrick77 3 2,835 2015-05-19, 02:20 PM
Last Post: imilne
  Files Plugin crashes when there is an ' in the file name. cbgifford 89 29,488 2015-01-28, 05:19 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode