I try to create an mpeg file from my Hi8 camcorder using S-VHS. My goal is to obtain the best quality.
Here's the command lines I use (I also try to compile mjpegtools CVS to get more options): To rip the stream from my camcorder: nice -n -20 lavrec -f a -i P -l 100 -R m -d 1 -q 80 -b 512 \ record_%02d.avi To encode that file: nice -19 lav2yuv record_01.avi | y4mshift -n -2 | yuvscaler -I \ USE_744x560+12+8 -O DVD -M BICUBIC|yuvdenoise -F |yuvmedianfilter -t 0 \ mpeg2enc -f 8 -c -D 10 -E -10 -q 2 -K tmpgenc -o record_01.m2v Then I obtain a "record_01.m2v" file which contains only video. I extract the audio stream from record_01.avi: lav2wav record_01.m2v | mp2enc -o record_01.mp2 And I try to put the audio and the video stream together: mplex -V -r 1740 record_01.mp2 record_01.m2v -o record_01.mpg Unfortunately, I have some error messages about data which will arrive too late: INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $) INFO: [mplex] File record_01.mp2 looks like an MPEG Audio stream. INFO: [mplex] File record_01.m2v looks like an MPEG Video stream. INFO: [mplex] Found 1 audio streams and 1 video streams INFO: [mplex] Selecting generic MPEG1 output profile INFO: [mplex] Multiplexing video program stream! INFO: [mplex] Scanning for header info: Audio stream c0 (record_01.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 (record_01.m2v) INFO: [mplex] VIDEO STREAM: e0 INFO: [mplex] Frame width : 720 INFO: [mplex] Frame height : 576 INFO: [mplex] Aspect ratio : 1:0.6735 INFO: [mplex] Picture rate : 25.000 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 : 1740000 ++ WARN: [mplex] Target data rate lower than computed requirement! ++ WARN: [mplex] N.b. a 20% or so discrepancy in variable bit-rate ++ WARN: [mplex] streams is common and harmless provided no time-outs will occur INFO: [mplex] Run-in Sectors = 19 Video delay = 16101 Audio delay = 19701 INFO: [mplex] New sequence commences... INFO: [mplex] Audio c0: buf= 4096 frame=000000 sector=00000000 INFO: [mplex] Video e0: buf= 47104 frame=000000 sector=00000000 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=16101 required(DTS)=16101 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000000 sector=00000000 ++ WARN: [mplex] Video e0: buf= 8600 frame=000000 sector=00000019 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=736432 required(DTS)=736101 ++ WARN: [mplex] Audio c0: buf= 2627 frame=000307 sector=00000111 ++ WARN: [mplex] Video e0: buf= 31080 frame=000200 sector=00000300 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=990667 required(DTS)=797301 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000331 sector=00000120 ++ WARN: [mplex] Video e0: buf= 45075 frame=000217 sector=00000591 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=1244901 required(DTS)=869301 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000362 sector=00000131 ++ WARN: [mplex] Video e0: buf= 45075 frame=000237 sector=00000880 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=1499136 required(DTS)=930501 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000389 sector=00000141 ++ WARN: [mplex] Video e0: buf= 45075 frame=000254 sector=00001170 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=1753370 required(DTS)=988101 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000412 sector=00000149 ++ WARN: [mplex] Video e0: buf= 45075 frame=000270 sector=00001462 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=2007604 required(DTS)=1045701 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000437 sector=00000158 ++ WARN: [mplex] Video e0: buf= 45075 frame=000286 sector=00001753 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=2261839 required(DTS)=1103301 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000461 sector=00000167 ++ WARN: [mplex] Video e0: buf= 45075 frame=000302 sector=00002044 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=2516073 required(DTS)=1160901 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000486 sector=00000176 ++ WARN: [mplex] Video e0: buf= 45075 frame=000318 sector=00002335 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=2770308 required(DTS)=1218501 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000511 sector=00000185 ++ WARN: [mplex] Video e0: buf= 45075 frame=000334 sector=00002626 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=3024542 required(DTS)=1276101 ++ WARN: [mplex] Audio c0: buf= 4096 frame=000536 sector=00000194 ++ WARN: [mplex] Video e0: buf= 45075 frame=000350 sector=00002917 **ERROR: [mplex] Too many frame drops -exiting What can I do to put video and audio together? Thank you. Nicolas. -- --- OxStOnE -------------- O - Z750 & Linux ------- ._ /\_> --- Powered ---------- (x)> (x) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users