> Date: Fri, 9 Jan 2004 22:28:32 -0800 (PST)
> From: "Steven M. Schultz" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [Mjpeg-users] Re: Encoding large DV to MPEG-2
>
>
> On Fri, 9 Jan 2004, George Kola wrote:
>
> > That was a problem. I found that smil-utils-0.1.3
> was released. I
> > tried that and had problem with reading after 62% of the
> DV file. I picked
>
> Interesting. What was the nature of the problem? Did smil2yuv
> coredump or declare the file to be somehow broken?
It was saying avi file read error.
> > smil2yuv -i 2 ../test.avi 2>smil.err | yuvdenoise -S 0 -l1
> 2>yuv.err |
> > y4mscaler -O chromass=420_MPEG2 2>y4m.err |mpeg2enc -f 8
> -M 2 -E -10 -2 1 -q
> > 6 -K kvcd -o test.m2v >mpeg2.out 2>mpeg2.err
>
> Good choice of parameters. If the filesize is not too
> large you
> can use the TMPGEnc tables ("-K tmpgenc") for slightly higher
> quality.
Actually, I copieed all these from your previous email and read
the man pages to understand what they meant.
> > I find that, the final mpeg2 generated contains only 16.39
> minutes of video.
>
> I'm curious - how was the playing time measured - with
> 'mplayer'?
I transferred the mpeg file to windows and played it with
windows media player.
>
> it is also possible to do both the video and audio at
> the same time -
> just add the "-a test.wav" to the command:
>
> smil2yuv -a test.wav -i 2 ...
Actually, that is what I do. I generate the audio .wav when
I generate the mpeg-1 file. I convert it to 44.1 Khz 224 kbit/sec mp2 and
the use the same from mpeg-1 and mpeg-2.
>
> What happens if you do something like this with the 52GB file:
>
> mpeg2enc -f 8 -M 2 -E -10 -2 1 -q 6 -K kvcd -o testing.m2v <
> BIGFILE.y4m
>
> Is the resulting file still only ~16 minutes?
>
Yes, it is.
> > I have tried just passing output of smil2yuv to
> mpeg2enc and got the
> > file with the same size.
>
> And that size is? ;)
>
It is ~765MB.
I found that the yuv generated is fine. I was able to
sucessfully generate MPEG-2 with full 1 hour video with the following
sequence
smil2yuv ../test.avi 2>smil.err | mpeg2enc -f 3 -4 1 -2 1 -q6 -b 7500 -V
300 -P -g 6 -G 18 -I 1 -o test.m2v >mpeg2.out 2>mpeg2.err
> > For the successful VCD, I used
> >
> > smil2yuv test.avi | yuvscaler -O VCD | mpeg2enc -f 1 -o test.m1v
>
> Another method would be "y4mscaler -S option=sinc:4 -O
> present=VCD", the
> sinc scaling kernel can give better looking output.
Thanks for mentioning it. I would do that.
>
> Out of curiosity what system are you doing this on?
I did the current round on a dual xeon 2.4 Ghz box 1 GB RAM
running RedHat 9.
Steven, your suggestions have been extremely helpful and I
have been able to perform the conversion because of your help.
I have some final questions
I'll give a little bit of context here to help you understand
what I am trying to do.
The videos are for archival purpose. The researchers using
them would be playing it only with a software player on a computer. The OS
could be windows, linux or Mac OS. For preference reasons, we want MPEG-1,
MPEG-2 and two bitrates of MPEG-4. MPEG-2 is the best quality here and
MPEG-4 is at two broadband rates. I would like to know what is the best
flags to pass for MPEG-1 and MPEG-2 and MPEG-4 encoding (I use mencoder). I
am not that concerned about the computation time. We want the best quality
at reasonable size. We would like to keep the MPEG-1 at around 650 MB and
MPEG-2 at less than 2 GB. The orginal video is 1 hour in duration.
Thanks a lot,
George
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users