Re: [Mjpeg-users] bugs in mjpegtools-1.9.0rc2

2007-05-09 Thread Steven M. Schultz

On Wed, 9 May 2007, Petr Cerny wrote:

> > missing #include 
> 
> If you don't like malloc.h, probably posix_memalign() could be of use.

If you look more closely at the code you will see that the 
reference to memalign() (for which malloc.h is needed) is in the
posix_memalign() error handling.  If posix_memalign() fails (or is
one of the broken implemtations) then memalign() is used.

Changes have been made to check for malloc.h and conditionally
include malloc.h if it exists (it does not exist on all systems).

> if( qtchroma == QUICKTIME_YUV420 ){...}
> 
> Iit might be better to use:
> if(strcmp(qtchroma,QUICKTIME_YUV420)==0){...}

That will work since earlier usage of 'qtchroma' was 

qtchroma = QUICKTIME_YUV420; 

> (although under some conditions it will have the desired effect).

True.  Usually that is a bug - makes sense to change it.

Steven Schultz


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Reply to "lavrec records blank"

2007-05-09 Thread Stefan M. Fendt
Erm, just a tip. If you must use a BTTV-card for capturing (you really
should look for some other solution if you do captures on a regular
basis...) you must be aware of an intensional(!) bug inside the driver:

YUV 4:2:0 is broken with BTTV-cards. YUV 4:2:0 doesn't retain correct
interlacing on BTTV-cards. For progressive material (as movies in
PAL-land generaly seem to be) this is no problem. But if it is
interlaced or telecined (very rare in PAL-countries but not impossible!)
then the chroma channels are completly messed up!

*You do not want to record 4:2:0 with these cards.*

You do want 4:2:2 recordings and as far as I know lacrec can not record
4:2:2 with these cards. (A long time ago when I must use such a card, I
always used mencoder for recordings doing them 4:2:2 and then scaling
them to 4:2:0).

cu
Stefan


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Standards converter?

2007-05-09 Thread Stefan M. Fendt
Am Mittwoch, den 09.05.2007, 16:08 +1000 schrieb Mark Heath:

> By the way, which frame rate converter is considered the *best* at  
> the moment?

Motion compensated is the only one which makes sense:

These are the needed steps (and they allready can be done with the
mjpeg-tools...)

1. deinterlace to native frame-rate (PAL:50 Hz/NTSC 59.9xxHz)
   (with yuvdeinterlace or "mplayer -vf tfields=1:1" if you do not need
   too much quality but speed...)
2. change framerate (with yuvmotionfps or yuvfps)
3. scale (with yuvscaler or y4mscaler)
4. reinterlace (with y4minterlace)

OK, here an example which gives very fluent motion (could probably be
better if using yuvmotionfps...):

lav2yuv some_PAL.dv |\
yuvdeinterlace -d |\
yuvfps -s 50:1 -r 60:1001 |\
yuvscaler -O SIZE_640x480 |\
y4minterlace -i b |\
your_favorite_encoder...

This can be done from NTSC to PAL, too (But at least I do not like to do
so, as NTSC material generaly looks bad.) You only need to change the
frame-size and -rates...

cu
Stefan


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Reply to "lavrec records blank"

2007-05-09 Thread Bernhard Praschinger
Hallo

> Thank you for your help. I tried your suggestion of -i n:0 but same
> result, blank record without error. You asked what input on the bt8x8 card
> I'm capturing from - the answer is composite. xawtv picks up image or
> video played on the camera OK indicating use of composite1, overlay mode.
The bttv card can only deliver the signal to xawtv or lavrec. So it is 
normal that you don't see anything when you record with lavrec.
Have you also tried the -i input:norm version ?
-i 2:pal would be the second input and the norm would be pal.
You also use the --software-encoding option ?

> A new problem - maybe subject to a new posting? Problem with glav audio.
> As I stated in my original posting, my first tests were with no audio. I
> recorded a test video with streamer in mjpeg mono8 format. It plays well
> with mplayer or on a windoz machine. However, glav complains about audio
> buffer: Error initializing Audio: Audio task died. Reason: Error mapping
> audio buffer - Input/output error. 
Please add for testing once -a:0, that playes it back without audio.
Also use once the -U/--use-write option, is seem that your sound card 
cannot play back in mmap mode.

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] bugs in mjpegtools-1.9.0rc2

2007-05-09 Thread Petr Cerny
Bernhard Praschinger wrote:
> Hallo
> 
> I have got a bug report from Petr, he found in the mjpegtools RC2.
> 
> The patches look ok for me
> 
> Here is his mail:
> I tried to compile the RC2 and encountered the following problems:
> 
> 2) mjpegtools-1.9.0rc2/utils/cpu_accel.c:364,368:
> implicit declaration of 'memalign'
> 
> missing #include 

If you don't like malloc.h, probably posix_memalign() could be of use.

There is another possible bug in y4mutils/y4mtoqt.c:277
if( qtchroma == QUICKTIME_YUV420 ){...}

Iit might be better to use:
if(strcmp(qtchroma,QUICKTIME_YUV420)==0){...}

as the first one compares address of qtchroma with that of string
literal QUICKTIME_YUV420 which is probably not what was intended
(although under some conditions it will have the desired effect).

Petr
--- y4mutils/y4mtoqt.c.old	2007-05-09 12:18:37.413678750 +0200
+++ y4mutils/y4mtoqt.c	2007-05-09 12:20:17.743949000 +0200
@@ -274,7 +274,7 @@
  * compressed formats it seems.
 */
 
-		if	(qtchroma == QUICKTIME_YUV420)
+		if	(strcmp(qtchroma,QUICKTIME_YUV420)==0)
 			{
 			if	(allow_wrong_yv12 == 0)
 {
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users