seekMicros
Seek the demuxer to micros, measured from the start of the content. Lands on the keyframe at or before that point, so the next decode flow resumes from there. Not allowed while a decode flow is collecting, since the demuxer cursor is shared.
Precision is the container's, not this library's. Indexless formats such as MPEG-TS resolve a seek by searching byte positions and can land slightly off. Decode a little and check FrameInfo.pts if you need to know exactly where you ended up; extractFrame and Transcoder.transcode's trim already do this for you.
Parameters
where to seek to, relative to the start of the content (see startTimeMicros)
Throws
when the seek fails
Seek the demuxer to micros, measured from the start of the content. Lands on the keyframe at or before that point, so the next decode flow resumes from there. Not allowed while a decode flow is collecting, since the demuxer cursor is shared.
Precision is the container's, not this library's. Indexless formats such as MPEG-TS resolve a seek by searching byte positions and can land slightly off. Decode a little and check FrameInfo.pts if you need to know exactly where you ended up; extractFrame and Transcoder.transcode's trim already do this for you.
Parameters
where to seek to, relative to the start of the content (see startTimeMicros)
Throws
when the seek fails
Seek the demuxer to micros, measured from the start of the content. Lands on the keyframe at or before that point, so the next decode flow resumes from there. Not allowed while a decode flow is collecting, since the demuxer cursor is shared.
Precision is the container's, not this library's. Indexless formats such as MPEG-TS resolve a seek by searching byte positions and can land slightly off. Decode a little and check FrameInfo.pts if you need to know exactly where you ended up; extractFrame and Transcoder.transcode's trim already do this for you.
Parameters
where to seek to, relative to the start of the content (see startTimeMicros)
Throws
when the seek fails
Seek the demuxer to micros, measured from the start of the content. Lands on the keyframe at or before that point, so the next decode flow resumes from there. Not allowed while a decode flow is collecting, since the demuxer cursor is shared.
Precision is the container's, not this library's. Indexless formats such as MPEG-TS resolve a seek by searching byte positions and can land slightly off. Decode a little and check FrameInfo.pts if you need to know exactly where you ended up; extractFrame and Transcoder.transcode's trim already do this for you.
Parameters
where to seek to, relative to the start of the content (see startTimeMicros)
Throws
when the seek fails
Seek the demuxer to micros, measured from the start of the content. Lands on the keyframe at or before that point, so the next decode flow resumes from there. Not allowed while a decode flow is collecting, since the demuxer cursor is shared.
Precision is the container's, not this library's. Indexless formats such as MPEG-TS resolve a seek by searching byte positions and can land slightly off. Decode a little and check FrameInfo.pts if you need to know exactly where you ended up; extractFrame and Transcoder.transcode's trim already do this for you.
Parameters
where to seek to, relative to the start of the content (see startTimeMicros)
Throws
when the seek fails