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

2005-07-26 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=7477alloc_id=16492op=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 Ronald S. Bultje
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=7477alloc_id=16492op=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 Ronald S. Bultje
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=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] jerky leaps on hardwareplayer

2005-07-26 Thread Bernhard Praschinger
Hallo

 I just tried for the fourth time to convert a analog video to dvd. But
 everytime I have the same problem. I'm not sure if it's a problem with
 streamer or mjpeg tools. So maybe some one can help.
 
 That's what I have done:
 1. streamer -t 67500 -s 720x576 -n pal -r 25 -o movie.yuv -f 4mpeg -F
stereo -O movie.wav -R 48000 -p 5 -b 64
Can you try once to record with streamer and generate a mjpeg encoded
Quicktime movie. The command lookes like that:
streamer -t 0:30 -s 352x240 -r 24 -o movie.mov -f mjpeg -F stereo

Do not use AVI because the mjpegtools ca only handle AVI up to 2GB. 

And use the lav2yuv and lav2wav to generate th audio and video.
 
 2. yuvdenoise -t2 -b 3,1,710,570  movie.yuv |mpeg2enc -q4 -f8 -b9000
-np -F3 -I1 -21 -41 -r16 -N1.0 -Khi-res -D10 -s -c -P -o movie.m2v
 
The third test with -b8000 doesn't change anything. The end result
was the same.
Try to drop every option excep the -f 8, 
 
 3. mp2enc -r 48000 -o movie.mpa  movie.wav
That one should work well.

 4. mplex -S 0 -f 8 -V movie.mpa movie.m2v -o movie.mpg
 5. dvdauthor -o /temp/dvdwork/dvd/ movie.mpg
 6. dvdauthor -T -o /temp/dvdwork/dvd/
 
 Viewing the result in /temp/dvdwork/dvd/ with mplayer or xine works
 perfectly, but when I burn the result on a dvd and try to view it with a
 hardware dvd player the video has jerky leaps after ~20 minutes. Tone
 is OK the whole time. The leaps are only in millisecond range, but they
 appear every few seconds. I don't have any clue what the problem could
 be.
If you mjpeg encoded MOV files you can cut the video with glav/lavplay,
and encode the part after the 20 minutes. Create a disk of that part of
the movie afterwards, to get a better feeling where the problem is. 

From your description that problem sounds like if the card would drop a
frame or so. 
 
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=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Some wishes for yuvplay

2005-07-26 Thread Richard Ellis
On Tue, Jul 26, 2005 at 10:07:47AM +0200, Dik Takken wrote:
 
 2: Allow yuvplay to be used in the middle of a processing chain,
 like this:
 
   ... | y4mscaler ... | yuvplay | mpeg2enc ...
 
 Now yuvplay can be used as a progress monitor anywhere in the
 processing chain. Possibly even multiple yuvplay instances in
 various places in the chain...

  mknod fifo p
  ... | y4mscaler ... | tee fifo | mpeg2enc 
  yuvplay  fifo

And it should work just fine as a progress monitor, with no changes
to yuvplay at all.



---
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=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[Mjpeg-users] how to encode an MPEG from an AVI?

2005-07-26 Thread Torsten Mohr
Hi,

i did not encode any MPEGs from an AVI for a longer time.

I used to use mp2enc for that, but it seems it is not in
the latest distribution i use any more.  I think there
were some license issues with this one, if i remember
correct?

What could i use best nowadays to encode an MPEG from an
AVI, e.g. for a SVCD or something similar?


Best regards,
Torsten.


---
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=7477alloc_id=16492op=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=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users