Damn, y4mscaler and mpeg2enc are driving me crazy... =(

Thanks for pointing me to yuvdeinterlace, Steven! I now use:

nice -19 lav2yuv record_01.avi | y4mshift -n -2 | y4mscaler
-I active=744x560+12+8TL -O size=744x560 -S option=sinc:6 |
yuvmedianfilter -T 3 | yuvdeinterlace -f | mpeg2enc -f 0 -V 500 -c -D 10
-E -10 -q 2 -K tmpgenc -o record_01_cvs.m2v

However, as you see, I had to use the -f 0 flag for mpeg2enc. If I use
the -f 8 flag as I did before, I have that error:
**ERROR: [mpeg2enc] Horizontal size is greater than permitted in
specified Level
INFO: [y4mscaler] Frame number 1
INFO: [yuvdeinterlace] Scene-Change or field-mismatch. Copying
field.
INFO: [y4mscaler] Frame number 2

And then it stops.

Anyway, my goal is to split my original "lavrec produced" .avi with
glav. Then, I encode each part with the lav2yuv... command, and I load
each video part in cinelerra.

I need:
- a good quality
- a cropped video, with no black borders

The picture quality using -f 0 with mpeg2enc is very bad. I mean
there're some very large green blocks on the right border of the
picture. Moreover, there're some parts of the image (with a lot of
details) which are "blocky"

How can I crop my pictures using y4mscaler? I tried, as given by Steven:
y4mscaler -O sar=src size=704x480

But that does not produced the expected result...

Thanks for the help
Nicolas, Paris.

On Wed, Apr 20, 2005 at 08:50:11AM -0700, Steven M. Schultz wrote:
> 
> On Wed, 20 Apr 2005, Nicolas wrote:
> 
> > I too don't think the problem comes from the tape. It's a good Sony
> > tape, and was new when I used it.
> 
>       That type of artifacting is usually the result of temporal
>       filtering.
> 
> > >   If you attach the camcorder to a TV and view the tape do you see
> > >   trails then?  If not that would say the problem is not in the
> > >   tape
> > >   or the camcorder.
> > 
> > I don't have a TV...
> 
>       Oh, wow - you're doing video work only on a computer?  If you're
>       producing content for viewing on a TV set you really really need
>       to
>       have at a TV set (better yet a production monitor but a regular
>       TV will be better than nothing).  The difference between a TV
>       and a 
>       computer monitor is substantial.
>       
> > I compiled the CVS version, but I can't get it to de-interlace my
> > videos...
> 
>       I think you overlooked 'yuvdeinterlace' ;)
> 
>       My preference is never to deinterlace at encoding time - it's a
>       lossy process that can introduce artifacts.  If you really want
>       deinterlacing it usally can be done in the playback software
>       (vlc,
>       mplayer, etc).
> 
> > nice -19 lav2yuv 200503_Courses_Magny_Cours_01.avi | y4mshift -n -2
> > |
> > y4mscaler -I active=744x560+12+8TL -O preset=DVD -S option=sinc:6 |
> > yuvmedianfilter -T 3 | yuvdenoise -F | mpeg2enc -f 8 -c -D 10 -E -10
> > -q
> > 2 -K tmpgenc -o 200503_Courses_Magny_Cours_01.m2v
> > 
> > Moreover, I can't crop the image as I did in the old 0.6.2
> > version... =(
> 
>       Sure you can.  y4mscaler will crop  very nicely.
> 
>       When creating DVDs I use the cropped D1 frame size (704x480)
>       instead
>       of the larger 720x480.  How do you get y4mscaler to do that?
>       Easy:
> 
>          y4mscaler -O sar=src -O size=704x480
> 
>       Can't get much easier than that.  Can you? ;)
> 
> > I would like to keep using a method similar to the one I use for the
> > moment...
> 
>       Ok - but when you're ready to step up to the next level of
>       quality
>       you're at least aware of the possibilities.
> 
>       Cheers,
>       Steven Schultz

-- 
--- conti / OxStOnE --------------  O
----- Z750 & Linux -----------  ._ /\_>
------- Powered --------------  (x)> (x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to