Steven M. Schultz wrote:
On Sat, 5 Nov 2005, [UTF-8] Bernhard Frühmesser wrote:
...deteriorated and is in need of color correction...
Yep, definitely. Which color correction tool are you using (yuvcorrect? :-) )
No, it's not yuvcorrect. Care to make another guess? :) [Hint: it
is often abbreviated FCP]
Hmm, i think that one is a bit to expensive for me :-) And i am not sure
if it would run on my Apple iBook G4, so far i think there is no version
for Linux, where i do all video stuff.
So i think yuvcorrect -Y will have to do it... :-)
With your version below it works, but i have still used y4mscaler too as
only with y4mshift this will result in a big big black border on the
right and on the top.
Well, it's your video so if you want to distort the picture that's
your right. What you're doing is scaling from 564 up to 576 or
1.021 (576/564) so the image is distorted about 2% vertically.
What I do is try to center the active image area inside the frame
(with ~8pixels black borders on the left and right). Then crop to
704xN (where N is 480 for me, but 576 for "PAL"). 704x480 (576) is
a valid DVD framesize and that will remove most of the side borders.
y4mscaler -O size=720x576 -I active=720x564+0+12
Should have had "-O sar=src" added to prevent scaling 564 -> 576
In general I've found that upscaling interlaced material is NOT
a good thing to do - degrades the picture quality.
Well, in the sourcevideo there is a black border on the left and bottom.
If the final output is for "DVD" (and viewing on a TV) there are a
couple things to keep in mind: 1) TVs overscan so if you center the
active picture area in the frame you will NOT see ~8pixel black borders
and 2) most TVs are interlaced
The final output should be for DVD (to store) and also for PC, as i need
to show the video using a "video-beamer" where i want to play the video
from a Laptop.
This is the result of following command(s):
y4mdenoise -t 3 -z 3 | y4munsharp | mpeg2enc -f 8 -4 1 -2 1 -q 6 -b 4500
-K tmpgenc -E -10 -o videotest24.liste
Is there a reason for such a low bitrate and quality setting? -q 5
and a bitrate of 6000 (or even the default of 7500) would look
better I think.
No, no reason. Just testing...
Well, it was interlaced input and no 'yuvdeinterlace' program was run
so it is not surprising that the output is interlaced.
:)
Remember #2 above - video (TVs) are interlaced but computer monitors
are progressive. Yes, there are progressive scan TV sets but they
are not as common as interlaced TVs. Play the DVD on a TV and the
video will look fine (slightly off on the aspect ratio - round objects
will appear slightly wrong).
Ok.
If you're only going to play on a computer then you are not
constrained to 720x576 - you can pick any size that is divisible
by 16 and encode as "generic MPEG-2" (-f 3).
and to improve quality a bit more? ... there might be not much i can do...
I have a few suggestions ;)
Use an S-Video cable from the VCR to the capture card (probably need
a better VCR with S-Video output). OR use a analog->digital conversion
unit with very good 3D Y/C filters (Canopus ADVC300 for example, some
TBCs can also perform this function).
Use a higher bitrate - I think "-b 7500 -q 5" is a good starting point.
Crop to 704xN - that will save ~2% on the encoding time and save a
few bits (which can be used for the image rather than the borders).
704? I thought DVD-PAL is 720?
For all commercial DVD i own i get 720x576 when i watch them via mplayer
or xine. Is 704 the NTSC variant?
Preprocess the data with FCP - I've found the filters and plugins for
very effective (especially the color correction and level adjustments).
Unfortunately there doesn´t seem to be a version for Linux...
For encoding try something like this:
(shift/center as needed ) |
y4mscaler -v0 -O sar=src -O size=704x576 |
yuvmedianfilter -f -t 0 -R 1 |
yuvdenoise -s 4,5,5 -g 64,255,255 -t 3,3,3 |
y4munsharp | \
mpeg2enc -f 8 -D 10 -E -10 -q 5 -K tmpgenc -4 1 -2 1 -o output.m2v
I'm sure others have methods that work well, maybe they'll share ;)
Hmm, so far that looks a bit better, but there are still some errors,
pay attention at the orange flag in the bottom of the image as well as
on ppl wearing orange t-shirts.
http://vi06n235.members.eunet.at/test2.jpg
Is there a method to get rid of these small lines?
I have already played around with the different filter settings, but i
always the the same "errors" (lines).
Thanks,
BF.
Cheers,
Steven Schultz
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users