Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread Nicolas
On Thu, Apr 21, 2005 at 05:07:59PM -0700, Steven M. Schultz wrote:
> On Fri, 22 Apr 2005, Nicolas wrote:
> 
> > I don't use the MJPEG stream directly in Cinelerra, because here's what
> > it gives:
> > http://www.europephoto.com/studios_conti/image_extract_cinelerra.jpg
> 
>   That, to put it politely, is terrible.  It's dropping a field it 
>   seems and using all 0 (the bright green very often means that Y'CbCr
>   of 0,0,0 was used).
> 
>   mencoder understands mjpeg - so you could, if you wanted, use to go
>   directly from mjpeg to divx.  Since you have square pixels to start,
>   and you're targeting computer playback and mp4 deals with square
>   pixels all you'd need to do is crop out a 4/3 section of the image,
>   deinterlace (if desired and mencoder has quite a few filter options
>   to do that) and encode to mpeg4/xvid/whatever.
> 
>   Have you reported the bug to the author of Cinelerra?  That's 
>   really obnoxious behavior for a "video editor"...
> 
>   Cheers,
>   Steven Schultz

Steven,

I'm posting a message about that problem on the cinelerra mailing-list.
I hope there's a solution...

Cheers,
Nicolas, Paris.

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread Steven M. Schultz

On Fri, 22 Apr 2005, Nicolas wrote:

> I don't use the MJPEG stream directly in Cinelerra, because here's what
> it gives:
> http://www.europephoto.com/studios_conti/image_extract_cinelerra.jpg

That, to put it politely, is terrible.  It's dropping a field it 
seems and using all 0 (the bright green very often means that Y'CbCr
of 0,0,0 was used).

mencoder understands mjpeg - so you could, if you wanted, use to go
directly from mjpeg to divx.  Since you have square pixels to start,
and you're targeting computer playback and mp4 deals with square
pixels all you'd need to do is crop out a 4/3 section of the image,
deinterlace (if desired and mencoder has quite a few filter options
to do that) and encode to mpeg4/xvid/whatever.

Have you reported the bug to the author of Cinelerra?  That's 
really obnoxious behavior for a "video editor"...

Cheers,
Steven Schultz



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread Nicolas
Steven,

I don't use the MJPEG stream directly in Cinelerra, because here's what
it gives:
http://www.europephoto.com/studios_conti/image_extract_cinelerra.jpg

=(

Nicolas, Paris.

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread Steven M. Schultz

On Fri, 22 Apr 2005, Nicolas wrote:

> However, I'm worrying about the output size. There's no black border,
> and that's what I want. But the format is quite "special". It's 640x560
> pixels. I'm trying to use those videos in Cinelerra.

You can't have it both ways ;)

Either you have a standard frame size with black borders _or_ you
use a non-standard ("special") frame size and no black borders - there
really are no other choices.

> As regards to not deinterlacing the video, are you sure that's the best

I think it is not a good idea simply because it is a 1 way conversion
(it can not be exactly reversed if you change your mind).  The other
reason is that eventually the data might end up on a DVD or viewed
on a regular TV which is an interlaced display. 

> solution? Those videos will be loaded in Cinelerra. Then, the output
> format is Quicktime, which I transcode to .raw and encode with mencoder.

Then why bother encoding to MPEG-2 in the first place?  It would
be better to use the input MJPEG .avi file in Cinelerra from the
very beginning.

After all that trans/recoding it won't make any difference if the
data is deinterlaced or not ;(

Is there a reason you haven't used the MJPEG file with Cinelerra
in the first place?  I'm fairly certain that Cin* knows how to 
deal with MJPEG files.

> The final output is intended to be distributed to my friends over the
> internet. They're using Window$, Mac and Linux... Mplayer won't be used
> on lot of computers... :(

MPlayer runs quite well on my Macs ;)  Even windoze players have 
deinterlacing capability, don't they?  

If MPEG-2 is not going to be the distribution format then it is 
a waste of time (I think) to first encode to MPEG-2, then import
into another program which will decode the MPEG-2 , export to another
format, and then have mencoder do an encoding to MPEG-4/divx/whatever.


Good Luck!

Cheers,
Steven Schultz




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread Nicolas
Thanks to both of you, guys!

The result is now fr better!
Here's what I use now:

nice -19 lav2yuv record_01_01.avi | y4munsharp | y4mshift -n -2 | \
y4mscaler -I sar=1:1 -I active=704x576+12+2TL -O sar=59:54 \
-O size=640x560 -S option=sinc:6 | yuvmedianfilter -T 3 -t 0 | \
yuvdeinterlace -f | mpeg2enc -f 3 -b 7500 -g 6 -G 9 -V 500 \
-c -D 10 -E -10 -q 2 -K tmpgenc -o record_01_01.m2v

However, I'm worrying about the output size. There's no black border,
and that's what I want. But the format is quite "special". It's 640x560
pixels. I'm trying to use those videos in Cinelerra.

As regards to not deinterlacing the video, are you sure that's the best
solution? Those videos will be loaded in Cinelerra. Then, the output
format is Quicktime, which I transcode to .raw and encode with mencoder.

The final output is intended to be distributed to my friends over the
internet. They're using Window$, Mac and Linux... Mplayer won't be used
on lot of computers... :(

Nicolas, Paris.

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread Steven M. Schultz

On Fri, 22 Apr 2005, E.Chalaron wrote:

> Nicolas
> 
> Drop the deinterlace your computer will do it for you ...

Yes, it can be done at playback time (I know both 'vlc' and
'MPlayer' can deinterlace during the playing of the movie).

> Add  -g 6 -G 9 to maintain fair values of q on P frame, use -R 0 to get rid 
> of B frames.

For the 1.6.2 version it is necessary to use "-R 0", that is true.
If you're using the CVS version then '-R 0' is the default (but it
does not harm anything to state the obvious ;)).

Also, I saw mention that the image was not as clear/sharp as
the original.  That is because 'yuvmedianfilter -T 3' was being
used I think.  Add a "-t 0" to avoid filtering the luma.  If that
is not sufficient then there is the 'y4munsharp' utility in the
CVS version of mjpegtools (the default settings are usually 
sufficient).

Cheers,
Steven Schultz



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] New command line used (no black border)

2005-04-21 Thread E.Chalaron
Nicolas

Drop the deinterlace your computer will do it for you ...
For the black border if you are really missing it :
y4mshift -b 12,12,696,552 (for PAL)

Mind -q 2 for -b 7500, it may be too much q asking for the b value 
Add  -g 6 -G 9 to maintain fair values of q on P frame, use -R 0 to get rid 
of B frames.

E
NZ

> nice -19 lav2yuv record_01_01.avi | y4mshift -n -2 | y4mscaler -I
> sar=1:1 -I active=704x576+12+2TL -O sar=59:54 -O size=640x560 -S
> option=sinc:6 | yuvmedianfilter -T 3 | yuvdeinterlace -f | mpeg2enc -f 3
> -b 7500 -V 500 -c -D 10 -E -10 -q 2 -K tmpgenc -o record_01_01.m2v
>
> It outputs an m2v with no black border around the picture.
> However the picture is far less crisp than the original .avi which I
> watched using glav... :?
>
> The output format is 640x560. Is that a problem for display on a
> computer monitor?
>
> Thanks!
>
> Nicolas, Paris.


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users