Hello Steven,
YeeeeHaaa!
I have an music audio slide show working on BOTH of my dvd players
now!
The script I used for the video sequence is below. I think the key
elements was the -E-20 and -G12. I know I do not understand why
though. The -G12 forces 12 frames per group of pictures. But it
would also force more "I" frames to be generated. The -E-20 has
something to do with the compression algorithm on frames that do
not carry very much information. In my production it could also
mean "little change" and so the frames were being skipped. I do
know that final production here is 133% larger than all the
previous. It went from 3 GBytes to 4 GBytes in size for the same
3.5 hours. So the -G12 may not have had any real change effect on
my problem directly.
#!/bin/bash
catrep() {
i=0
while ( [ $i != $2 ])
do
cat $1
let i=i+1
done
return 0
}
# build the basic sequence of the video stream
# in a single file 90 frames for NTSC is 3 seconds each
# total of 30 seconds for the overall sequence
echo building sequence . . .
echo photo00.ppm
catrep photo00.ppm 90 > /spare2/seq.ppm
echo photo01.ppm
catrep photo01.ppm 90 >> /spare2/seq.ppm
echo photo02.ppm
catrep photo02.ppm 90 >> /spare2/seq.ppm
echo photo03.ppm
catrep photo03.ppm 90 >> /spare2/seq.ppm
echo photo04.ppm
catrep photo04.ppm 90 >> /spare2/seq.ppm
echo photo05.ppm
catrep photo05.ppm 90 >> /spare2/seq.ppm
echo photo06.ppm
catrep photo06.ppm 90 >> /spare2/seq.ppm
echo photo07.ppm
catrep photo07.ppm 90 >> /spare2/seq.ppm
echo photo08.ppm
catrep photo08.ppm 90 >> /spare2/seq.ppm
echo photo09.ppm
catrep photo09.ppm 90 >> /spare2/seq.ppm
echo start encoding the sequence for 60 minutes. . .
# 120 repititions of a 30 second sequence is 60 minutes
( catrep /spare2/seq.ppm 120 ) | \
ppmtoy4m -v0 -F30000:1001 -S420_mpeg2 -A10:11 -Ip | \
mpeg2enc -f8 -I0 -E-20 -G12 -q4 -42 -21 -nn -o/spare2/video-60.m2v
This script required 1.5 hours on my machine to run (P4-2.4GHz).
The output file was 1 GByte in size. I then finished it with mplex
and dvdauthor as it has been on the prior attempts. But this has
no audio drop outs at all. And even my older DVD player actually
plays it better now than my newer unit does. The older unit
displays the time correctly on every second and fast forwards a lot
smoother. The newer unit still skips every two to five seconds on
the display.
Just wanted to let you know the end result and thank you once again
for all your effort. Maybe someday I will understand this video
stuff as well as you do. Perhaps others can benefit from the
script as well. I know I saw a post on sourceforge for dvdauthor
from last month of another user having an identical problem. But
the thread had no real conclusion on the matter.
James
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users