[Mjpeg-users] Strange error -- lavrec saying Not ready for capture

2005-07-23 Thread Vincent Yau


Hi:

I am a newbie to lavrec so not sure if I am doing anything wrong.
I am on Linux version 2.6.9.  And have a bt878 capture card:


00:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video 
Capture (rev 02)
00:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture 
(rev 02)


I tried to use lavrec to record shows and played with different options but 
it just give me

a one line "Not ready" message:

lavrec --software-encoding --format=a -in --quality=80  
--geometry=720x480+0+0 --audio-bitsize=0 --time=60  ./test.avi

++ WARN: [lavrec] Not ready for capture (state = 0)!
Press enter to start recording>
Recording time  :  0.00.00:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors: 000



Am I doing anything wrong?  I am not sure why it says something is not 
ready.  What is

not ready?

thanks for any tips.

--Vincent




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for capture

2005-07-24 Thread Vincent Yau


Ok, I got more info. And it looks like it is my sound card.  But not sure 
how I should

fix it.   (FYI, I am using mythtv to record and everything works fine
so I know my capture card + sound card can record.   I would like to try
lavrec since I want a record in  mpeg setting).


  INFO: [lavrec] Recording parameters:
  INFO: [lavrec] Output format:  AVI
  INFO: [lavrec] Input Source:   Auto detect
  INFO: [lavrec] Decimation: 4
  INFO: [lavrec] Quality:80
  INFO: [lavrec] Recording time: 60 sec
  INFO: [lavrec]
  INFO: [lavrec] MJPEG buffer size:  256 KB
  INFO: [lavrec] # of MJPEG buffers: 64
  INFO: [lavrec] Audio disabled
--DEBUG: [lavrec] Maximum size per file will be 1739 MB
  INFO: [lavrec] Auto detecting input and norm ...
--DEBUG: [lavrec] Using current input signal settings for non-MJPEG card
  INFO: [lavrec] Unmuting tuner audio...
  INFO: [lavrec] Error setting tuner audio params: Invalid argument
++ WARN: [lavrec] Not ready for capture (state = 0)!


My capture card has no TV tuner.  And I am using my sound card (line-in) to 
record.


--Vincent




From: "Ronald S. Bultje" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: mjpeg-users@lists.sourceforge.net
Subject: Re: [Mjpeg-users] Strange error -- lavrec saying Not ready 
for	capture

Date: Sun, 24 Jul 2005 10:44:32 +0200

On Sun, 2005-07-24 at 07:06, Vincent Yau wrote:
> lavrec --software-encoding --format=a -in --quality=80
> --geometry=720x480+0+0 --audio-bitsize=0 --time=60  ./test.avi
> ++ WARN: [lavrec] Not ready for capture (state = 0)!

This almost certainly means that you've hit some limitation that we
haven't seen before, since the 'not ready for capture' is basically an
internal assertion. Looking at the code, this implies that lavrec_main()
most likely failed (the return value isn't being checked in
lavrec.c:main()). Can you run with -v2 so we can see all messages and
see how far it goes?

Cheers,
Ronald

--
Ronald S. Bultje <[EMAIL PROTECTED]>






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for capture

2005-07-24 Thread Vincent Yau



Hi Bernhard:

I have checked and nothing else is running or using up any
relevant port (/dev/dsp 0-4   or   /dev/audio)

Just for testing, I even purposedly played an mp3 music
and then ran fuser and it did detect a process taking up
/dev/dsp.

Any other suggestion?

Again the output I am getting is:

lavrec --software-encoding -in -q 100 --time=60 -s -Rl -m --audio-volume=-1  
-v2 ./test.avi

  INFO: [lavrec] Recording parameters:
  INFO: [lavrec] Output format:  AVI
  INFO: [lavrec] Input Source:   BT8x8 1st input NTSC

  INFO: [lavrec] Decimation: 4
  INFO: [lavrec] Quality:100
  INFO: [lavrec] Recording time: 60 sec
  INFO: [lavrec]
  INFO: [lavrec] MJPEG buffer size:  256 KB
  INFO: [lavrec] # of MJPEG buffers: 64
  INFO: [lavrec] Audio parameters:
  INFO: [lavrec] Audio sample size:   16 bit
  INFO: [lavrec] Audio sampling rate: 44100 Hz
  INFO: [lavrec] Audio is STEREO
  INFO: [lavrec] Audio input recording level: Use mixer setting
  INFO: [lavrec] Level of correction for Audio/Video synchronization:
  INFO: [lavrec] Lost frame compensation and frame drop/insert
--DEBUG: [lavrec] Maximum size per file will be 1739 MB
  INFO: [lavrec] Using mmap(2) system call for capture
  INFO: [lavrec] Auto detecting input and norm ...
  INFO: [lavrec] Unmuting tuner audio...
  INFO: [lavrec] Error setting tuner audio params: Invalid argument
++ WARN: [lavrec] Not ready for capture (state = 0)!

Press enter to start recording>Recording time  :  0.00.00:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors: 000




From: Bernhard Praschinger <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: mjpeg-users@lists.sourceforge.net
Subject: Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for 
capture

Date: Sun, 24 Jul 2005 17:58:17 +0200

Hallo

> Ok, I got more info. And it looks like it is my sound card.  But not 
sure

> how I should
> fix it.   (FYI, I am using mythtv to record and everything works fine
> so I know my capture card + sound card can record.   I would like to try
> lavrec since I want a record in  mpeg setting).
Do you have any sound deamon running ? Oder any other Programm that uses
the /dev/dsp device ?

You can check that with: fuser /dev/dsp (0-4)

Than check which programm uses the dsp and stop it befor starting
lavrec.

auf hoffentlich bald,

Berni the Chaos of Woodquarter

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for capture

2005-07-25 Thread Vincent Yau

I did try that.  Didn't work either.



From: Martin Samuelsson <[EMAIL PROTECTED]>
To: mjpeg-users@lists.sourceforge.net
Subject: Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for 
capture

Date: Mon, 25 Jul 2005 12:16:41 +0200

On Mon, 25 Jul 2005 11:55:07 +0200
Martin Samuelsson <[EMAIL PROTECTED]> wrote:

> > Any other suggestion?
>
> Some sound cards doesn't like using 44100 Hz sampling rate. One I have 
accept it, but distort the captured sound. Does -r 48000 give better 
results?

>
> It does work with -a 0, right?

And I forgot about -U. I imagine such an error message could be produced if 
the sound driver doesn't support mmap.


/Sam


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for capture

2005-07-25 Thread Vincent Yau


I am using mjpegtools 1.6.3 rc1.
Will give your suggestion a try.

thanks



From: "Ronald S. Bultje" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: mjpeg-users@lists.sourceforge.net
Subject: Re: [Mjpeg-users] Strange error -- lavrec saying Not ready 
for	capture

Date: Tue, 26 Jul 2005 07:48:58 +0200

On Sun, 2005-07-24 at 17:29, Vincent Yau wrote:
>INFO: [lavrec] Unmuting tuner audio...
>INFO: [lavrec] Error setting tuner audio params: Invalid argument
> ++ WARN: [lavrec] Not ready for capture (state = 0)!
[..]
> My capture card has no TV tuner.

If you're not scared of editing source files, simply remove the 'return
0;' on line 2538 of lavtools/liblavrec.c, and it'll work fine.

However, the code looks good over there in CVS (i.e. for you, that code
should never be reached), so it appears you're using some older version
of lavrec. Therefore, instead, you may want to use CVS if you're using
some older version (e.g. one of our outdated releases :) ).

Ronald

--
Ronald S. Bultje <[EMAIL PROTECTED]>






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for capture

2005-07-26 Thread Vincent Yau


Hi Ronald:

I did this but compiler complains that struct vau has member name index:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -I../utils 
-DLAVPLAY_VERSION=\"1.6.3-rc1\" -march=athlon-4 -mno-sse2 -mcpu=athlon-4 -g 
-O2 -pthread -Wall -Wunused -MT liblavrec_la-liblavrec.lo -MD -MP -MF 
.deps/liblavrec_la-liblavrec.Tpo -c liblavrec.c  -fPIC -DPIC -o 
.libs/liblavrec_la-liblavrec.o

liblavrec.c: In function `lavrec_init':
liblavrec.c:1502: error: structure has no member named `index'
liblavrec.c:1515: error: structure has no member named `index'
liblavrec.c: In function `lavrec_capture_thread':
liblavrec.c:2261: error: structure has no member named `index'
make[2]: *** [liblavrec_la-liblavrec.lo] Error 1
make[2]: Leaving directory `/usr/local/mjpegtools-1.6.3-rc1/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mjpegtools-1.6.3-rc1'
make: *** [all] Error 2





From: "Ronald S. Bultje" <[EMAIL PROTECTED]>
To: Vincent Yau <[EMAIL PROTECTED]>
CC: mjpeg-users@lists.sourceforge.net
Subject: Re: [Mjpeg-users] Strange error -- lavrec saying Not ready for 
capture

Date: Tue, 26 Jul 2005 09:43:35 +0200 (CEST)

Hi Vincent,

On Mon, 25 Jul 2005, Vincent Yau wrote:
> I am using mjpegtools 1.6.3 rc1.
[..]
> > > My capture card has no TV tuner.
[..]
> >However, the code looks good over there in CVS (i.e. for you, that code
> >should never be reached), so it appears you're using some older version
> >of lavrec. Therefore, instead, you may want to use CVS if you're using
> >some older version (e.g. one of our outdated releases :) ).

That code was definitely in 1.6.3-rc1. So this should be OK. Another thing
we don't do, I now notice, is setting vau.index = 0;. Can you add that to
all instances of VIDIOCGAUDIO and VIDIOCSAUDIO (there should be two code
blocks doing something with the audio chip on your card) and see if that
improves it?

If that doesn't help, then it'd help if you could tell us what driver you
use and what insmod options you're using in combination with it.

Cheers,
Ronald





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users