I have finally got round to attemting to transfer some old tapes to
CD/DVD with the mjpegtools.
This has all been made possible by the new release of the zoran driver -
version 0.9.1 - seems to work very
well with my setup. (Well done Ronald !) I also decided to use the v4l2
interface by applying Kraxels patch to my kernel (from
http://www.bytesex.org).
All appeared to be working OK - it allows me to have the Xawtv screen
displayed whilst I am doing the lavrec recording process.
Theres just one problem - after about 18 minutes of recording lavrec
falls over with an error saying that it is unable to sync on a buffer.
Exact messages
below :
root@localhost space2]# lavrec -w -fa -ip -d2 -q95 -l80 -Rl -a16 -r48000
-s -v1 fastep1%02d.avi
INFO: [lavrec] Recording parameters:
INFO: [lavrec] Output format: AVI
INFO: [lavrec] Input Source: Composite PAL
INFO: [lavrec] Decimation: 2
INFO: [lavrec] Quality: 95
INFO: [lavrec] Recording time: -1 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: 48000 Hz
INFO: [lavrec] Audio is STEREO
INFO: [lavrec] Audio input recording level: 80%
INFO: [lavrec] Don't mute audio output during recording
INFO: [lavrec] Recording source: l
INFO: [lavrec] Level of correction for Audio/Video synchronization:
INFO: [lavrec] Lost frame compensation and frame drop/insert
INFO: [lavrec] Using mmap(2) system call for capture
INFO: [lavrec] Auto detecting input and norm ...
INFO: [lavrec] Image size will be 384x288, 1 field(s) per buffer
INFO: [lavrec] Got 32 buffers of size 256 KB
INFO: [lavrec] Getting audio ...
Press enter to start recording>
Press enter to pause recording
INFO: [lavrec] Opening output file fastep101.avi
INFO: [lavrec] Max filesize reached, opening next output file0.0103
INFO: [lavrec] Opening output file fastep102.avi
++ 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
Recording time : 0.19.29:23
Lost frames : 000
A/V sync ins/del: 000/002
Audio errors : 000
var/log/messages :
Feb 2 17:52:53 localhost kernel: DC10plus[0]: zoran_open(lavrec,
pid=[1539]), users(-)=0
Feb 2 17:52:53 localhost kernel: DC10plus[0]: enable_jpg(IDLE)
Feb 2 17:52:53 localhost kernel: DC10plus[0]: mmap(MJPEG) of
0x412eb000-0x41aeb000 (size=8388608)
Feb 2 17:53:49 localhost kernel: DC10plus[0]: enable_jpg(MOTION_COMPRESS)
Feb 2 17:53:49 localhost kernel: DC10plus[0]: first frame ready:
state=0x48000000 odd_even=1 field_per_buff=1 delay=1
Feb 2 17:53:49 localhost kernel: DC10plus[0]: stat_com=1000
queue_state=0/0/2/32
Feb 2 17:53:49 localhost kernel: DC10plus[0]: seq=0 stat_com: 0302b0a1
1b035000 11f71000 11f71000
Feb 2 17:53:49 localhost kernel: DC10plus[0]: seq=0 stat_com: 0302b0a1
0402cd19 11f71000 11f71000
Feb 2 17:53:49 localhost kernel: DC10plus[0]: seq=4 stat_com: 1b1ad000
1b1ad000 0502c731 11f71000
Feb 2 17:53:49 localhost kernel: DC10plus[0]: seq=4 stat_com: 1b1ad000
1b1ad000 0502c731 0602cc09
Feb 2 17:53:49 localhost kernel: DC10plus[0]: seq=6 stat_com: 0702cd41
1b1ad000 1b58b000 1b58b000
Feb 2 17:53:49 localhost kernel: DC10plus[0]: seq=6 stat_com: 0702cd41
0802d031 1b58b000 1b58b000
Feb 2 18:13:30 localhost kernel: DC10plus[0]: jpg_sync() - timeout:
codec isr=0x00
Feb 2 18:13:30 localhost kernel: DC10plus[0]: enable_jpg(IDLE)
Feb 2 18:13:30 localhost kernel: DC10plus[0]: munmap(MJPEG)
Feb 2 18:13:30 localhost kernel: DC10plus[0]: zoran_close(lavrec,
pid=[1539])
Feb 2 18:13:30 localhost kernel: DC10plus[0]: enable_jpg(IDLE)
Feb 2 18:13:30 localhost kernel: DC10plus[0]: interrupts received:
GIRQ1:58493 JPEGRepIRQ:58500 JPEG delays: max=1 min=0
queue_state=29250/29250/29252/29280
The files produced are readable & playable using glav/lavplay but I
can't seem to make any progress with the problem.
I have tried fiddling with the buffer sizes in zoran & lavrec and also
adjusting the memory size accessible to my kernel using
append "mem=448M" but without success.
I have also noticed that whilst lavrec is running it does seem to use up
all of the memory rather fast (in about 2 minutes the free memory
- shown by the free command is down to about 4500 - after starting
somewhere in the region of 380000). Is this indicative of a problem with
my kernel or lavrec ? I see that I can adjust the percentage of memory
used for buffers by using sysctl but is this wise ?
I'm not totally sure that this 'memory leak' is causing the problem either.
If anyone can help with this it would be much appreciated.
Thanks
Chris B-W.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users
- Re: [Mjpeg-users] lavrec problems with v4l2. Chris BW
- Re: [Mjpeg-users] lavrec problems with v4l2. Bernhard Praschinger
- Re: [Mjpeg-users] lavrec problems with v4l2. Ronald Bultje
- Re: [Mjpeg-users] lavrec problems with v4l2. Chris BW
- Re: [Mjpeg-users] lavrec problems with v... Ronald Bultje
- Re: [Mjpeg-users] lavrec problems wi... Florin Andrei
- Re: [Mjpeg-users] lavrec proble... Alan Cox
- Re: [Mjpeg-users] lavrec pr... Ronald Bultje
- Re: [Mjpeg-users] lavrec problems with v4l2. Rett Walters
- Re: [Mjpeg-users] lavrec problems with v4l2. Ronald Bultje