qt4l_positioning.html

来自「这个库实现了录象功能」· HTML 代码 · 共 35 行

HTML
35
字号
<TITLE>Positioning</TITLE><H1>Positioning yourself in a file</H1>The library stores a seperate position identifier for each video trackand each audio track in a file.  The position identifiers areindependant of each other and advance independantly when you readdata.  Video tracks advance independantly, but audio tracks aretricky.  When you read audio data, the channel positions are notindependant.  Since all the channels are on track 0, reading audio dataadvances all the channel positions.  You need to manually set the audioposition every time you want to read a different audio channel.<P>There is no positioning support while writing because this is write-only.<P>The positioning routines are as follows:<P><CODE>int quicktime_seek_end(quicktime_t *file);<BR>int quicktime_seek_start(quicktime_t *file);<BR>int quicktime_set_audio_position(quicktime_t *file, long sample, int track);<BR>int quicktime_set_video_position(quicktime_t *file, long frame, int track);<BR></CODE><P>The seek_end and seek_start seek all tracks to their ends or starts. The set_position commands seek one track to the desired position.  Thetrack parameter for audio is always going to be 0.<P>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?