chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 580 forks source link

Support for random seek in VODs? #465

Open insuevi opened 10 years ago

insuevi commented 10 years ago

When viewing VODs (ex., Twitch, Crunchyroll) there doesn't seem to be a way to seek forward or rewind in the stream using VLC. Is this possible?

chrippa commented 10 years ago

Not possible for Twitch, but you can do it with Crunchyroll and other plugins that use a stream protocol that your player supports, see --player-passthrough.

For example Crunchyroll uses HLS so you use --player-passthrough hls to let the player do the actual streaming. I know at least mpv and VLC supports seeking in HLS streams.

insuevi commented 10 years ago

Alright, that makes a lot of sense, I just hadn't thought about using that option. Is it possible with Twitch? I know their VODs are a little weird, being broken up into 30-minute chunks and all.

CrappyUser commented 10 years ago

As for Twitch VoDs, you can skip to a certain point if you put "?t=XhYmZs" at the end of the Video ID on Livestreamer commands; For example: "livestreamer http://www.twitch.tv/shaboozey/c/2783914?t=2m05s best .." will play the VoD from minute 2 and 5 seconds.

hadeutscher commented 9 years ago

Just want to mention that --player-passthrough hls does work in twitch.tv (don't know if that's a recent change or not), since this issue is the number 1 google result for "livestreamer seeking" and what most people (including me) will come across.

garoto commented 9 years ago

Not sure if redundant, but I'm using mpv (mpv.io) to play Twitch VODs for about a year now and seeking works seamlessly via clicking the progress bar or keyboard shortcuts. It uses youtube-dl to fetch the VOD, so you'll need that somewhere in your path. I'm on Windows7.

mjsmith707 commented 8 years ago

Just wanted to say that --player-passthrough hls seems to work just fine for twitch vods. I can seek in VLC although I can't actually see the times but it's not really an issue.

LEChaney commented 8 years ago

Haven't implemented HLS seek support yet but I have gotten HTTP Progressive streams to support seek when using an HTTP player transport mode (--player-http or --player-http-continuous). I tested with VLC. Haven't tested with other players yet. Here is the pull request #1311