Re: [Mjpeg-users] Problems running lavrec

2007-12-26 Thread Bernhard Praschinger
Hallo

>>  From my guess you use a bttv based card ?
>> If you use a bttv based card, you need to use a command like that:
>> lavrec -f a -i p -g 352x288 -q 80 -R l --software-encoding test.avi
> lavrec -f a  -g 720x576 -s -q 80 -U -r 44100 -R l --software-encoding raw.avi
> Works, but with stuttering audio.  Audio is fine if I either drop the 
> resolution, go mono or reduce the sampling rate to 22000.
Have you tried lowering the resoution ?
For example to 480x576. But with full audio datarate ? If that works the 
problem is the "slow" CPU.

>> streamer can also create mjpeg encoded AVI's.
> Yes, but I am having trouble with that - it seems to use more cpu than lavrec 
> and just give up at some point.  Think I also had audio sync problems - just 
> having another go to confirm.
>  streamer -t 180:00 -r 25 -s 720x576 -o raw.avi -f mjpeg -F stereo
Haven't used streamer for a long time. so I can't tell.

> CPU usage it a little high at around 85% - on a 2.5GHz athalon.
That load is something about the expected. I think I had a similair 
level of load when I used it on my Athlon 2,13Ghz Athlon.

> Either solution would work well for me if I can caputure to something that 
> uses a bit less disk space than raw.  I can capute raw fine - its just that 
> the file sizes are a bit too large for comfort.
> 
> I'm wondering if I got something like this:
> 
> http://www.scan.co.uk/Products/ProductInfo.asp?WebProductID=318489
> 
> whether I could use the built in hardware encoder.  My existing card is 
> saa7134 based.  Not sure if hardware encoding can be done with that card.
No Idea. From the description you would get a MPEG2 Video. And that 
won't work with lavrec.

Many people use a a Analog -> FireWire box. Maybe the most common box is 
the  Canopus ADVC110. You would record DV using Kino: http://www.kinodv.org/

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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Problems running lavrec

2007-12-23 Thread Peter Chant
On Saturday 22 December 2007, Bernhard Praschinger wrote:

>  From my guess you use a bttv based card ?
> If you use a bttv based card, you need to use a command like that:
> lavrec -f a -i p -g 352x288 -q 80 -R l --software-encoding test.avi
>

lavrec -f a  -g 720x576 -s -q 80 -U -r 44100 -R l --software-encoding raw.avi

Works, but with stuttering audio.  Audio is fine if I either drop the 
resolution, go mono or reduce the sampling rate to 22000.

> streamer can also create mjpeg encoded AVI's.
>

Yes, but I am having trouble with that - it seems to use more cpu than lavrec 
and just give up at some point.  Think I also had audio sync problems - just 
having another go to confirm.

 streamer -t 180:00 -r 25 -s 720x576 -o raw.avi -f mjpeg -F stereo

CPU usage it a little high at around 85% - on a 2.5GHz athalon.

Either solution would work well for me if I can caputure to something that 
uses a bit less disk space than raw.  I can capute raw fine - its just that 
the file sizes are a bit too large for comfort.

I'm wondering if I got something like this:

http://www.scan.co.uk/Products/ProductInfo.asp?WebProductID=318489

whether I could use the built in hardware encoder.  My existing card is 
saa7134 based.  Not sure if hardware encoding can be done with that card.

Pete




> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Mjpeg-users mailing list
> Mjpeg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-- 
Peter Chant
http://www.petezilla.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Problems running lavrec

2007-12-22 Thread Peter Chant
On Saturday 22 December 2007, Bernhard Praschinger wrote:

>  From my guess you use a bttv based card ?
> If you use a bttv based card, you need to use a command like that:
> lavrec -f a -i p -g 352x288 -q 80 -R l --software-encoding test.avi
>

Worked a treat.  Tried it with 720x576 as well - worked fine except audio lost 
sync.  Will try running it as root - as it complained about not being able to 
set a negative nice level.

> The important things for a bttv card are the -g and --software-encoding
> options. You might encounter problems with the audio, for testing
> purposes you can disable it with -a 0.
> The -i option works different on a bttv based card. -i p means the 1st
> Bt8x8 input. Take a look at the lavrec for more info.
>
> streamer can also create mjpeg encoded AVI's.
>

Yes, it had problems keeping up though.  I used v4lctl to set the input, I had 
trouble with the -i options.

> 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: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Mjpeg-users mailing list
> Mjpeg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-- 
Peter Chant
http://www.petezilla.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Problems running lavrec

2007-12-22 Thread Bernhard Praschinger
Hallo
> I'm having trouble running lavrec, copy of the script I am using is below:

> lavrec --format=a --input=p --quality=80 --decimation=2 raw.avi
> 
> Unfortunately it does not work - the output I get is:
> 
> ++ WARN: [lavrec] Unable to set negative priority for audio thread.
> ++ WARN: [lavrec] Pthread Real-time scheduling for audio thread could not be 
> enabled.
> **ERROR: [lavrec] Error getting video parameters: Invalid argument
> **ERROR: [lavrec] Something went wrong while setting up the card
> 
> Any ideas?  Just to note for reference, streamer from xawtv seems to work, so 
> I would not think it was a v4l issue.  Albeit I'm having issues that it uses 
> far too much disk space when saving to raw video and I'm having issues when 
> it saves to a compressed format with it maxing the CPU and eventually 
> failing.
 From my guess you use a bttv based card ?
If you use a bttv based card, you need to use a command like that:
lavrec -f a -i p -g 352x288 -q 80 -R l --software-encoding test.avi

The important things for a bttv card are the -g and --software-encoding 
options. You might encounter problems with the audio, for testing 
purposes you can disable it with -a 0.
The -i option works different on a bttv based card. -i p means the 1st 
Bt8x8 input. Take a look at the lavrec for more info.

streamer can also create mjpeg encoded AVI's.

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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[Mjpeg-users] Problems running lavrec

2007-12-22 Thread Peter Chant
Dear All,

I'm having trouble running lavrec, copy of the script I am using is below:

#!/bin/sh

v4lctl setinput Composite2
v4lctl contrast 50
v4lctl bright 100
#
export LAV_VIDEO_DEV="/dev/v4l/video0"
export LAV_AUDIO_DEV="/dev/sound/dsp"
export LAV_MIXER_DEV="/dev/sound/mixer"

#lavrec -f a -g 720x576  --stereo -R m raw.avi

lavrec --format=a --input=p --quality=80 --decimation=2 raw.avi

Unfortunately it does not work - the output I get is:

++ WARN: [lavrec] Unable to set negative priority for audio thread.
++ WARN: [lavrec] Pthread Real-time scheduling for audio thread could not be 
enabled.
**ERROR: [lavrec] Error getting video parameters: Invalid argument
**ERROR: [lavrec] Something went wrong while setting up the card

Any ideas?  Just to note for reference, streamer from xawtv seems to work, so 
I would not think it was a v4l issue.  Albeit I'm having issues that it uses 
far too much disk space when saving to raw video and I'm having issues when 
it saves to a compressed format with it maxing the CPU and eventually 
failing.

Suggestions appreciated.

Pete

-- 
Peter Chant
http://www.petezilla.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users