craiig / HOTDOGSEAGULL

Browse your locally stored media using a browser and push it up to a chromecast.
Apache License 2.0
62 stars 12 forks source link

Seeking while transcoding #17

Open njoyard opened 10 years ago

njoyard commented 10 years ago

You cannot enable seeking on live-transcoded media, this is just a limitation on how seeking works.

What you can do is fake it: add a seek parameter to your transcoding endpoints and pass "-ss seek" to ffmpeg. This implies loading a new media in the cast session every time you seek, but I haven't found a better solution yet.

craiig commented 10 years ago

Thanks for the tips. Just to be clear, you mean faking it by passing the timestamp to the transcode endpoint via a query string? This isn't too bad! I think I'll add it in!

C

On Mon, Mar 31, 2014 at 10:30 PM, Nicolas Joyard notifications@github.comwrote:

You cannot enable seeking on live-transcoded media, this is just a limitation on how seeking works.

What you can do is fake it: add a seek parameter to your transcoding endpoints and pass "-ss " to ffmpeg. This implies loading a new media in the cast session every time you seek, but I haven't found a better solution yet.

Reply to this email directly or view it on GitHubhttps://github.com/craiig/HOTDOGSEAGULL/issues/17 .

njoyard commented 10 years ago

Yup, that's what I meant. Seeking cannot be done except on pre-transcoded files, at least for formats supported by Chromecast (and HTML).

Also set an error handler on the ffmpeg command otherwise errors in the ffmpeg process will crash your server. Le 1 avr. 2014 07:39, "craiig" notifications@github.com a écrit :

Thanks for the tips. Just to be clear, you mean faking it by passing the timestamp to the transcode endpoint via a query string? This isn't too bad! I think I'll add it in!

C

On Mon, Mar 31, 2014 at 10:30 PM, Nicolas Joyard notifications@github.comwrote:

You cannot enable seeking on live-transcoded media, this is just a limitation on how seeking works.

What you can do is fake it: add a seek parameter to your transcoding endpoints and pass "-ss " to ffmpeg. This implies loading a new media in the cast session every time you seek, but I haven't found a better solution yet.

Reply to this email directly or view it on GitHub< https://github.com/craiig/HOTDOGSEAGULL/issues/17> .

— Reply to this email directly or view it on GitHubhttps://github.com/craiig/HOTDOGSEAGULL/issues/17#issuecomment-39172518 .

njoyard commented 10 years ago

... And don't use fluent ffmpeg callbacks, they are deprecated. Use events instead !