On Sun, Jan 04, 2004 at 02:51:18PM -0800, Steven M. Schultz wrote: > > On Sun, 4 Jan 2004 [EMAIL PROTECTED] wrote: [...] > > yuvscaler -v 0 -O SVCD -n n > > > > as a filter. What would be the scaling method whose resulting > > quality best aproximates to the yuvscaler call above? > > Hmmm, what does yuvscaler use by default? I thought it was a simple > box or resample filter and that you had to specify the better > 'bicubic' one with the -M BICUBIC option.
I have borrowed the yuvscaler command line (and other pieces too) from the mencvcd script that comes with mplayer. I have had no clue about specifying a scaling method. I will be doing so for now on. [...] > > $ mplayer -noframedrop -vo yuv4mpeg -nosound -v -osdlevel 0 \ > > the.two.towers.avi -sub the.two.towers.srt -subpos 78 \ > > -vf expand=:504 > > $ cat stream.yuv | > > y4mscaler -O preset=SVCD | > > mpeg2enc -v 0 -I 0 -s -f 5 -V 230 -S 800 -a 2 -F 1 -n n -4 2 -2 1 \ > > -b 2800 -B 284 -q 6 -K FILE=matrix.txt -R 0 -E -11 \ > > -o the.two.towers.m2v > > > > But y4mscaler gives the messages: > > > > INFO: [y4mscaler] Input Stream Header: > > INFO: [y4mscaler] <<< frame size: 672x504 pixels (508032 bytes) > > INFO: [y4mscaler] <<< frame rate: 239759/10000 fps (~23.975900) > > INFO: [y4mscaler] <<< interlace: none/progressive > > INFO: [y4mscaler] <<< sample aspect ratio: ?:? > > **ERROR: [y4mscaler] Unknown norm; cannot determine SVCD format. > > That's probably because the input frame size doesn't match one of > the NTSC sizes (Nx480). x504 is a very strange size, isn't it? > NTSC would be 640x480 or so wouldn't it? I am encoding from a 672x272 AVI movie. > Ah, I see the "-vf expand :504" in the mplayer command. Why is that > present? Perhaps if that was left out things would work better. It adds black borders at the top and bottom of the video, bringing the the frame size to 672x504, which gives an aspect ratio of 4:3. Omitting the expansion from mplayer does not help y4mscaler. mplayer also hard codes a subtitle stream into the video stream. It is being put at the bottom black border. > Is the data coming from a DVD? If so then do not have mplayer > expand/zoom the data - leave it as 720x480 and then y4mscaler will > see that it is a NTSC stream. Data is not coming from DVD, but from an AVI file. > mplayer's yuv4mpeg output does not seem to get the header fields > right. That's why the sample aspect shows up as unknown "?:?". > > Is the data really progressive? If so then the 'interlace: none' > is correct. Yes, it is progressive. > > Adding the option "-I norm=NTSC" to the y4mscaler command line does > > not help (the error message is the same from y4mscaler). > > That is a bit of a mystery Where can I ask about it? Regards. Romildo ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users