13 //--------------------------
15 // audio stream skip/resync functions requires only for seeking.
16 // (they should be implemented in the audio codec layer)
17 void skip_audio_frame(sh_audio_t
*sh_audio
){
19 void resync_audio_stream(sh_audio_t
*sh_audio
){
22 int mp_input_check_interrupt(int time
){
23 if(time
) usleep(time
);
30 int verbose
=5; // must be global!
32 int stream_cache_size
=0;
36 int vo_osd_changed(int new_value
){return 0;}
41 int suboverlap_enabled
= 1;
46 extern stream_t
* open_stream(char* filename
,int vcd_track
,int* file_format
);
48 int main(int argc
,char* argv
[]){
50 stream_t
* stream
=NULL
;
51 demuxer_t
* demuxer
=NULL
;
52 int file_format
=DEMUXER_TYPE_UNKNOWN
;
54 mp_msg_init(verbose
+MSGL_STATUS
);
57 stream
=open_stream(argv
[1],0,&file_format
);
59 // stream=open_stream("/3d/divx/405divx_sm_v2[1].avi",0,&file_format);
60 stream
=open_stream("/dev/cdrom",2,&file_format
); // VCD track 2
63 printf("Cannot open file/device\n");
67 printf("success: format: %d data: 0x%X - 0x%X\n",file_format
, (int)(stream
->start_pos
),(int)(stream
->end_pos
));
70 stream_enable_cache(stream
,stream_cache_size
,0,0);
72 demuxer
=demux_open(stream
,file_format
,-1,-1,-1,NULL
);
74 printf("Cannot open demuxer\n");
78 if(demuxer
->video
->sh
)
79 video_read_properties(demuxer
->video
->sh
);