audiostream icon indicating copy to clipboard operation
audiostream copied to clipboard

Seek

Open daslicht opened this issue 11 years ago • 2 comments

Hello, is it possible to seek in audio files , or return the audio from a specific point of time in the file ?

daslicht avatar Jul 02 '13 14:07 daslicht

Recently I changed the architecture when a transcode was needed to start streaming as soon as possible. Before it used to wait until the entire file was transcoded before serving, which could take a long time in the case of FLAC. I'm just using the native html audio element, which has many cross browser inconsistencies. When a transcode in not necessary, you can seek forward and back no problem. When a transcode is needed, and a stream is set up, you can only seek backwards. I'd have to investigate if it's possible to tell FFMPEG to start transcoding from a certain point (forward) in the file, but that would have the issue then if someone were to seek forward then back, that you have to restart the transcode.

So it might be worthwhile if you can pass ffmpeg a time to start transcoding from.

nickdesaulniers avatar Jul 02 '13 16:07 nickdesaulniers

Thank you !

daslicht avatar Jul 03 '13 04:07 daslicht