On Monday 24 November 2003 06:06, Florin Andrei wrote: > Can someone explain to me how's mplex -O supposed to work? > > I'm using the current (sunday nov 23, in the evening) mjpegtools CVS > tree. > > I'm doing this: > > mplex -f 8 -S 150 -O 500 ${proj}.m2v ${proj}.ac3 -o 1.vob > > mplex -f 8 -S 150 -O -500 ${proj}.m2v ${proj}.ac3 -o 2.vob > > Then i compare the sync info on the two VOBs like this:
... Looks like either: - whatever you're running it is *not* actually a build based on the current CVS contents (sticky tags set? Local changes?) - There is some kind of tricky Compiler-dependent bug at work Binary built from a fresh checkout of the main branch from CVS. mplex -f 8 -O 500 test.m2v test.ac3 -o test.mpg Pack [0x800] scr = 146:85 mux = 25200 - (1260000 bytes/second) stuffing = 0 Packet [0x80e] stream_id = 0xe0 (video_stream) ... PTS = 61773 <------------------------------ DTS = 58019 extension_data - private_data_flag = 0 ... Pack [0x1000] scr = 292:171 mux = 25200 - (1260000 bytes/second) stuffing = 0 Packet [0x100e] stream_id = 0xbd (private_stream_1) ... pes_header_data_length = 8 PTS = 16773 <--------------- Exactly 500mS earlier extension_data - .... DVD AC3 audio substream = 80 frames = 2 1st frame start = 1 AC3 frame syncword CRC frequency = 48000 Hz bit rate = 0320 bps bitstream version id (bsid) = 8 bitstream mode 0x0 (main, complete) acmode = 2 mplex -f 8 -O -500 test.m2v test.ac3 -o test.mpg Pack [0x800] scr = 146:85 mux = 25200 - (1260000 bytes/second) stuffing = 0 Packet [0x80e] stream_id = 0xe0 (video_stream) ... PTS = 16773 <---------------- DTS = 13019 ... Pack [0x61800] scr = 28525:214 mux = 25200 - (1260000 bytes/second) stuffing = 0 Packet [0x6180e] stream_id = 0xbd (private_stream_1) .... PTS = 61773 <-------------- Exactly 500 mSec later... extension_data - private_data_flag = 0 pack_header_field_flag = 0 program_packet_sequence_counter_flag = 0 P-STD_buffer_flag = 1 PES_extension_flag_2 = 0 P-STD_buffer_scale = 1 P-STD_buffer_size = 16 P-STD_actual_buffer_size = 16384 DVD AC3 audio substream = 80 frames = 2 ... Playback with xine has the expect very-noticeable effect on video/audio sync. Andrew ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users