In the following command run:

% mplex -f 8 -V --sync-offset 6s ST.mp2 HP.m2v -o DVD/%d.mpg
   INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
   INFO: [mplex] File ST.mp2 looks like an MPEG Audio stream.
   INFO: [mplex] File HP.m2v looks like an MPEG Video stream.
   INFO: [mplex] Video stream 0: profile 8 selected - ignoring
non-standard options!
   INFO: [mplex] Found 1 audio streams and 1 video streams
   INFO: [mplex] Selecting dvdauthor DVD output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Audio stream c0 (ST.mp2)
   INFO: [mplex] MPEG AUDIO STREAM: c0
   INFO: [mplex] Audio version  : 1.0
   INFO: [mplex] Layer          :        2
   INFO: [mplex] CRC checksums  :       no
   INFO: [mplex] Bit rate       :    28672 bytes/sec (224 kbit/sec)
   INFO: [mplex] Frequency      :     44100 Hz
   INFO: [mplex] Mode           :        0 stereo
   INFO: [mplex] Mode extension :        0
   INFO: [mplex] Copyright bit  :        0 no copyright
   INFO: [mplex] Original/Copy  :        0 copy
   INFO: [mplex] Emphasis       :        0 none
   INFO: [mplex] Scanning for header info: Video stream e0 (HP.m2v) 
   INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width     : 720
   INFO: [mplex] Frame height    : 480
   INFO: [mplex] Aspect ratio    : 4:3 display
   INFO: [mplex] Picture rate    : 29.970 frames/sec
   INFO: [mplex] Bit rate        : 7500000 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF            : 0
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate    : 7889048
   INFO: [mplex] target data-rate specified               : 10080000
   INFO: [mplex] Setting specified specified data rate: 10080000
   INFO: [mplex] Run-in Sectors = 89 Video delay = 553019 Audio delay = 16022
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Audio c0: buf=   4096 frame=000000 sector=00000000
   INFO: [mplex] Video e0: buf= 237568 frame=000000 sector=00000000
++ WARN: [mplex] Stream c0: data will arrive too late sent(SCR)=467968
required(DTS)=16022
++ WARN: [mplex] Audio c0: buf=   2079 frame=000002 sector=00000001
++ WARN: [mplex] Video e0: buf= 235556 frame=000000 sector=00000001

I do not understand the final warnings. When I run this command there
is no sync-offset at all.

Alternatively, if I use mpgtx to add 6 seconds of silence to the mp2 file...

SYNC_SEC=6
perl silence.pl ${SYNC_SEC} silence-${SYNC_SEC}.wav
mp2enc -o silence-${SYNC_SEC}.mp2 silence-${SYNC_SEC}.wav
mpgtx -j silence-6.mp2 ST.mp2 -o ST-sync.mp2

And run mplex...

% mplex -f 8 -V ST-sync.mp2 HP.m2v -o DVD/%d.mpg   INFO: [mplex] mplex
version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
   INFO: [mplex] File ST-sync.mp2 looks like an MPEG Audio stream.
   INFO: [mplex] File HP.m2v looks like an MPEG Video stream.
   INFO: [mplex] Video stream 0: profile 8 selected - ignoring
non-standard options!
   INFO: [mplex] Found 1 audio streams and 1 video streams
   INFO: [mplex] Selecting dvdauthor DVD output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Audio stream c0 (ST-sync.mp2)
   INFO: [mplex] MPEG AUDIO STREAM: c0
   INFO: [mplex] Audio version  : 1.0
   INFO: [mplex] Layer          :        2
   INFO: [mplex] CRC checksums  :       no
   INFO: [mplex] Bit rate       :    28672 bytes/sec (224 kbit/sec)
   INFO: [mplex] Frequency      :     44100 Hz
   INFO: [mplex] Mode           :        0 stereo
   INFO: [mplex] Mode extension :        0
   INFO: [mplex] Copyright bit  :        0 no copyright
   INFO: [mplex] Original/Copy  :        0 copy
   INFO: [mplex] Emphasis       :        0 none
   INFO: [mplex] Scanning for header info: Video stream e0 (HP.m2v) 
   INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width     : 720
   INFO: [mplex] Frame height    : 480
   INFO: [mplex] Aspect ratio    : 4:3 display
   INFO: [mplex] Picture rate    : 29.970 frames/sec
   INFO: [mplex] Bit rate        : 7500000 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF            : 0
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate    : 7889048
   INFO: [mplex] target data-rate specified               : 10080000
   INFO: [mplex] Setting specified specified data rate: 10080000
   INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 16022
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Audio c0: buf=   4096 frame=000000 sector=00000000
   INFO: [mplex] Video e0: buf= 237568 frame=000000 sector=00000000
++ WARN: [mplex] Data follows end of last recogniseable MPEG audio
frame - bad stream?
   INFO: [mplex] STREAM c0 completed @ frame 230.

Despite mpginfo displaying that the file is full and VLC/mplayer/etc
being able to play it fine.

Recommendations for either method would be greatly appreciated.

Jay

-- 
Jay McCarthy <[EMAIL PROTECTED]>
http://jay.makeoutcity.com/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to