Re: [Mjpeg-users] Problem with mpeg2enc

2003-11-01 Thread Bernhard Praschinger
Andrew Robinson wrote:
> 
> I'm trying to create an mpeg movie from a sequence of jpegs shot with my
> digital camera. Using section 4 of the Mjpeg How-To as a guide, I first
> tried this command:
> 
> convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -o result.m1v
> 
> I got this result:
> 
> INFO: [ppmtoy4m] Command-line Parameters:
[...]
> INFO: [mpeg2enc] Frame end 0 I quant=3.83 total act=   236.5
> Segmentation fault
It would be interrresting to see which programm is failing. 

> If I prod mpeg2enc for verbosity like this:
> 
>  mpeg2enc -v -o result.m1v
> 
> I get this result:
> 
> INFO: [ppmtoy4m] Command-line Parameters:
> INFO: [ppmtoy4m]  framerate:  3:1001
> INFO: [ppmtoy4m] pixel aspect ratio:  1:1
> INFO: [ppmtoy4m]  interlace:  none/progressive
> INFO: [ppmtoy4m] starting frame:  0
> INFO: [ppmtoy4m]# of frames:  all, until input exhausted
> INFO: [ppmtoy4m] chroma subsampling:  4:2:0, JPEG/MPEG-1,
> interstitial siting
> **ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic!
> 
> At this point I don't know if the problem is software related, data
> related, or user related. (A former colleague liked to say, "We've found
> the problem. It's between the keyboard and the chair.") If I stop after
> the ppmtoy4m command, yuvplay will successfully display the resulting file.
So you did something like: 
convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m >/dev/null

If you only have a few frames make a yuv file, and start than mpeg2enc
in a second step:
convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m >file.yuv
cat file.yuv | mpeg2enc -o test.m1v

So you should see which programm is failing. 

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: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Timer expired with latest 2.6 kernels

2003-11-01 Thread Bernhard Praschinger
Hallo

[...]
> > > Any suggestions?
> > lavrec worked on my machine with the 2.6.0-test 4 and 8 kernels well.
> > Wich mjpegtools version do you use (my CVS works, well so I guess the
> > 1.6.1.90 should work well)
> 
> I have a CVS version of the 23rd of august. I will try the latest.
> 
> > And which version of the zoran driver do you use ?
> 
> I use the one in the kernel, the zr36067 module. This one used to work
> up to kernel test4.
I just forgot to mention, in the test8 kernel I had to change in
zoran_driver.c 
the line 1267 from:
unsigned int minor = minor(inode->i_rdev);
to this:
unsigned int minor = iminor(inode);


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: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[Mjpeg-users] Problem with mpeg2enc

2003-11-01 Thread Andrew Robinson
I'm trying to create an mpeg movie from a sequence of jpegs shot with my 
digital camera. Using section 4 of the Mjpeg How-To as a guide, I first 
tried this command:

convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -o result.m1v

I got this result:

   INFO: [ppmtoy4m] Command-line Parameters:
   INFO: [ppmtoy4m]  framerate:  3:1001
   INFO: [ppmtoy4m] pixel aspect ratio:  1:1
   INFO: [ppmtoy4m]  interlace:  none/progressive
   INFO: [ppmtoy4m] starting frame:  0
   INFO: [ppmtoy4m]# of frames:  all, until input exhausted
   INFO: [ppmtoy4m] chroma subsampling:  4:2:0, JPEG/MPEG-1, 
interstitial siting
   INFO: [ppmtoy4m] Output Stream parameters:
   INFO: [ppmtoy4m] frame size:  160x120 pixels (28800 bytes)
   INFO: [ppmtoy4m] frame rate:  3/1001 fps (~29.970030)
   INFO: [ppmtoy4m]  interlace:  none/progressive
   INFO: [ppmtoy4m]   sample aspect ratio:  1:1
   INFO: [mpeg2enc] Selecting generic MPEG1 output profile
   INFO: [mpeg2enc] Assuming norm NTSC
   INFO: [mpeg2enc] Encoding MPEG-1 video to result.m1v
   INFO: [mpeg2enc] Horizontal size: 160 pel
   INFO: [mpeg2enc] Vertical size: 120 pel
   INFO: [mpeg2enc] Aspect ratio code: 1 = 1:1 (square pixels)
   INFO: [mpeg2enc] Frame rate code:   4 = 3.0/1001.0 (NTSC VIDEO)
   INFO: [mpeg2enc] Bitrate: 1151 KBit/s
   INFO: [mpeg2enc] Field order for input: none/progressive
   INFO: [mpeg2enc] Sequence unlimited length
   INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] GOP SIZE RANGE 12 TO 12
   INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
   INFO: [mpeg2enc] Progressive format frames = 1
   INFO: [mpeg2enc] mpeg1 - setting intra_dc_precision = 0
   INFO: [mpeg2enc] Using default unmodified quantization matrices
   INFO: [mpeg2enc] Buffering 33 frames
   INFO: [mpeg2enc] GOP start (12 frames)
   INFO: [mpeg2enc] Frame end 0 I quant=3.83 total act=   236.5
Segmentation fault

If I prod mpeg2enc for verbosity like this:

convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -v -o result.m1v

I get this result:

   INFO: [ppmtoy4m] Command-line Parameters:
   INFO: [ppmtoy4m]  framerate:  3:1001
   INFO: [ppmtoy4m] pixel aspect ratio:  1:1
   INFO: [ppmtoy4m]  interlace:  none/progressive
   INFO: [ppmtoy4m] starting frame:  0
   INFO: [ppmtoy4m]# of frames:  all, until input exhausted
   INFO: [ppmtoy4m] chroma subsampling:  4:2:0, JPEG/MPEG-1, 
interstitial siting
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic!

At this point I don't know if the problem is software related, data 
related, or user related. (A former colleague liked to say, "We've found 
the problem. It's between the keyboard and the chair.") If I stop after 
the ppmtoy4m command, yuvplay will successfully display the resulting file.

I am hoping someone can give me clues on how to fix this problem or at 
least suggestions on how to diagnose it.

Thanks!

Andrew Robinson



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Timer expired with latest 2.6 kernels

2003-11-01 Thread Ronald Bultje
Hi Bert,

On Sat, 2003-11-01 at 14:24, Bert van Oort wrote:
> Since the latest 2.6 test kernels (test5..test9) I cannot record with
> lavrec anymore, while it used to work with 2.6.0-test4. The error
> message I get is:

2.6.0-test5 is the first to contain the new driver...

> **ERROR: [lavrec] Error syncing on a buffer: Timer expired
[..]
> The commandline used is:
> lavrec --format a --input p --decimation 1 --quality 20 --stereo
> --audio-bitsize 16 --audio-bitrate 48000 --file-flush 10 --wait
> "$1_%02d.avi"

Why the low Q? Anyway, Q 10 in the new driver is the same as Q 20 in the
old driver, so you might want to try --quality 10 instead of 20.

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>
Linux Video/Multimedia developer



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Timer expired with latest 2.6 kernels

2003-11-01 Thread Bert van Oort
Op za 01-11-2003, om 15:56 schreef Bernhard Praschinger:
> Hallo
> 
> > Since the latest 2.6 test kernels (test5..test9) I cannot record with
> > lavrec anymore, while it used to work with 2.6.0-test4. The error
> > message I get is:
> > 
> > Press enter to start recording>
> > Press enter to pause recording
> > ++ WARN: [lavrec] Closing file(s) and exiting - output file(s) my not be
> > readable due to error
> > **ERROR: [lavrec] Error syncing on a buffer: Timer expired
> > **ERROR: [lavrec] Error writing to output file Test_01.avi: Internal:
> > broken JPEG format
> > ++ WARN: [lavrec] Closing file(s) and exiting - output file(s) my not be
> > readable due to error
> > **ERROR: [lavrec] Error resetting buffer-queue: Invalid argument0.000
> > 
> > Recording time  :  0.00.00:00
> > Lost frames : 000
> > A/V sync ins/del: 000/000
> > Audio errors: 000
> > 
> > As you see, it doesn't record anything. I get the same when I don't
> > record sound, so it cannot be the sound driver.
> > 
> > The commandline used is:
> > lavrec --format a --input p --decimation 1 --quality 20 --stereo
> > --audio-bitsize 16 --audio-bitrate 48000 --file-flush 10 --wait
> > "$1_%02d.avi"
> > 
> > Any suggestions?
> lavrec worked on my machine with the 2.6.0-test 4 and 8 kernels well.
> Wich mjpegtools version do you use (my CVS works, well so I guess the
> 1.6.1.90 should work well)

I have a CVS version of the 23rd of august. I will try the latest.

> And which version of the zoran driver do you use ?

I use the one in the kernel, the zr36067 module. This one used to work
up to kernel test4.

Kind regards,

Bert




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[Mjpeg-users] Timer expired with latest 2.6 kernels

2003-11-01 Thread Bert van Oort
Hi,

Since the latest 2.6 test kernels (test5..test9) I cannot record with
lavrec anymore, while it used to work with 2.6.0-test4. The error
message I get is:

Press enter to start recording>
Press enter to pause recording
++ WARN: [lavrec] Closing file(s) and exiting - output file(s) my not be
readable due to error
**ERROR: [lavrec] Error syncing on a buffer: Timer expired
**ERROR: [lavrec] Error writing to output file Test_01.avi: Internal:
broken JPEG format
++ WARN: [lavrec] Closing file(s) and exiting - output file(s) my not be
readable due to error
**ERROR: [lavrec] Error resetting buffer-queue: Invalid argument0.000

Recording time  :  0.00.00:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors: 000

As you see, it doesn't record anything. I get the same when I don't
record sound, so it cannot be the sound driver.

The commandline used is:
lavrec --format a --input p --decimation 1 --quality 20 --stereo
--audio-bitsize 16 --audio-bitrate 48000 --file-flush 10 --wait
"$1_%02d.avi"


Any suggestions?

Kind regards,

Bert

-- 
Bert van Oort <[EMAIL PROTECTED]>



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] DVD plus or minus?

2003-11-01 Thread Andrew Stevens
Hi Florin,

> It difficult to tell which way the market will go.
> However, the vast majority of the newer DVD players will happily play
> both formats, even when they only advertise one of them. Strange, isn't?

Not really.  Almost all DVD Players now use standard ATAPI drives plus one of 
a few Chipsets with (usually) nothing more than power-on-logo and menus 
tweaked from reference Firmware delivered by the Chipset vendor.

Whether the or a 'manufacturer' (who really only designs the case, or even 
just makets) 'supports' a standard is mainly a matter of which industry 
grouping they're supposedly part of. I'd like to say it is a question of 
which standards they validate but nowadays that seems to be the customers 
job.

I say: 'hurray for China and Taiwan'. Those guys don't give a flying cuss 
about the lame politics of the big brands they just care about price (often a 
bit too much about this) and delivering maximum functionality to put on the 
side of the Box.  Hence region-free DVD's that play anything under the Sun 
(and then some).  Competition, when it really exists, is a wondeful thing...



cheers,
Andrew



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users