NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 8 9 10 11 12 … 93 Next »
Streaming media

 
  • 0 Vote(s) - 0 Average
Streaming media
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#11
2012-11-29, 05:29 AM
I haven't forgotten about this. I'm just working on generalizing the code because it was pretty specific to my YouTube plugin.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#12
2012-11-29, 01:46 PM
Thanks. As I said though, there's no rush. My time is now taken up with trying to resolve a problem even sub can't solve - builders working on our roof have just broken the sat dish...

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#13
2012-12-01, 05:55 PM
I made some nice progress with this today. It's the first real programming I've managed at home in months. I guess the little one being ill and just wanting to sleep all day helps with that.

[ATTACH=CONFIG]35085[/ATTACH] [ATTACH=CONFIG]35084[/ATTACH]

I've got all the trailer data itself downloading, caching, displaying, sorting, etc; with some stolen skin-work from Videos+ (that continues to sit in limbo). Next up will be making it all happen in threads so the interface doesn't hang while grabbing everything.

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#14
2012-12-06, 07:43 PM
It looks as if (at some point) the user-agent stuff was added to ffmpeg. The following will download from apple:

Code:
ffmpeg -user-agent QuickTime -i [url]http://trailers.apple.com/movies/wb/thehobbit1/hobbit-tlr1-3mm4_a720p.m4v[/url] -vcodec copy -acodec copy test.m4v

NPVR won't play this growing file though.

If you convert to .ts, then it will, but you end up with a blocky mpeg1 picture that looks like arse.

Code:
...a720p.m4v test.ts

If you try to maintain video/audio quality (which needs this weird extra option), then NPVR fails to play it again, growing or complete:

Code:
...a720p.m4v -vcodec copy -acodec copy -vbsf h264_mp4toannexb test.ts

I'm sure there's a combination of options will help maintain the original AVC/AAC, convert to .ts, and allow playback while it downloads, I just haven't found them yet Rolleyes

Iain
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#15
2012-12-07, 12:01 AM
imilne Wrote:
Code:
...a720p.m4v -vcodec copy -acodec copy -vbsf h264_mp4toannexb test.ts
This is exactly what I use for YouTube but there is an issue with it in the version of ffmpeg included with NextPVR. I had to use a newer version. I'll need to dig through the YouTube thread to find when the issue was fixed.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#16
2012-12-07, 12:06 AM
Actually, it looks like you are missing "-f mpegts":

Code:
ffmpeg -user-agent QuickTime -i ...a720p.mv4 -f mpegts -vcodec copy -acodec copy -vbsf h264_mp4toannexb test.ts

Info and link to newer ffmpeg in this post: http://forums.nextpvr.com/showthread.php...post430262
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#17
2012-12-07, 04:14 PM
Thanks, Bill. I'll give it a shot later if I get the chance. I'll also need to have a good read through the youtube thread as well.

Are there any reasons why sub couldn't move the ffmpeg that comes with NPVR to a newer version? I don't know when the user-agent stuff was added, but it certainly wasn't in the bundled one.

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#18
2012-12-07, 06:24 PM
Still no luck :confused:

Here's an original m4v file: https://skydrive.live.com/redir?resid=B8...uOoTfgJfQg
And here's the same file after running through ffmpeg: https://skydrive.live.com/redir?resid=B8...oTxJ2klkus

Code:
ffmpeg -i laststand-tlr1_a720p.m4v -c copy -f mpegts -bsf h264_mp4toannexb laststand-tlr1_a720p.ts

At no point, either during creation or completion of the .ts file will it play in NPVR for me. Kicking off playback blacks out the screen for several seconds, sometimes there's a glimpse of a frame or three, and then it just dumps itself back to the menu. The graph built in the log looks fine, but playback just doesn't happen. The original file plays fine.

I've tried with both ffmpeg doing the conversion from the original http stream, and also doing the conversion from a unc network drive (wifi; to make it slow enough to have a chance to play it while converting).

Perhaps the only hint is this message from ffmpeg: Encoder did not produce proper pts, making some up.

None of this would blimming matter if Apple would just allow direct access to the content :mad:

Iain
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#19
2012-12-07, 10:37 PM
Isn't a m4v file just video? Without an audio track I wouldn't expect NextPVR could play it.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#20
2012-12-08, 02:39 AM
Typically yes, but Apple uses m4v for their own proprietary container that contains H.264/AAC. Rolleyes

imilne: I was able to get the video to play if I specify a framerate for the output file (note that it has to be placed AFTER the -i [file]):

Code:
ffmpeg -i laststand-tlr1_a720p.m4v -c copy [B][color=#FF0000]-r 23.98[/color][/B] -f mpegts -bsf h264_mp4toannexb laststand-tlr1_a720p.ts

It doesn't seem to matter what framerate you use (even "-r 1" works) but the original was 23.98 so I used that. There is one caveat however: the opening "This preview is approved..." message doesn't show (single static frame maybe?) so there is a blank screen for about 5-6 seconds but then the actual trailer plays.

I'm trying to play around with other options to get that frame to display but no luck so far.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 1,929 2021-10-22, 06:58 PM
Last Post: sub
  Looking for C# UPnP Media Server code bgowland 5 7,738 2016-12-16, 08:25 PM
Last Post: mvallevand
  Media Browser Integration lukemb3 557 157,891 2015-11-29, 05:27 PM
Last Post: UncleJohnsBand
  Media\Show Directory mvallevand 12 6,106 2014-07-02, 10:58 AM
Last Post: sub
  Advice on which streaming method to use fred250 17 6,461 2013-09-14, 11:14 AM
Last Post: fred250
  Media\Shows Metadata mvallevand 2 1,924 2013-05-22, 04:09 AM
Last Post: mvallevand
  On-the-fly transcoding for streaming recordings / videos bgowland 6 4,114 2012-06-03, 03:10 AM
Last Post: bgowland
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,939 2012-02-05, 10:29 AM
Last Post: bgowland
  NPVR HTTP streaming bug? tmrt 3 1,922 2010-12-28, 11:48 PM
Last Post: tmrt
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,746 2009-09-29, 03:47 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