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.
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.
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
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
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 Iain
2012-12-07, 12:01 AM
imilne Wrote: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.
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
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
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
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
2012-12-08, 02:39 AM
Typically yes, but Apple uses m4v for their own proprietary container that contains H.264/AAC.
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. |
|