[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#374626: marked as done (streamer: exits when recording oss audio)



Your message dated Sun, 29 Jul 2007 17:47:15 +0000
with message-id <E1IFCrL-0007Xa-JV@ries.debian.org>
and subject line Bug#374626: fixed in xawtv 3.95.dfsg.1-4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xawtv-plugins
Version: 3.94-1
Severity: important
Tags: patch

When trying to record, streamer stops with the following output:

$ streamer -o capture---30712.avi -f rgb24 -s 320x240 -r 24 -t 99:59:59 -F mono16 -R 32000
avi / video: 24 bit TrueColor (LE: bgr) / audio: 16bit mono (LE)
oss: read: Resource temporarily unavailable
$

(full debug output below)

I could track this down to this section of libng/plugins/snd-oss.c

        rc = read(fd,buffer+count,blocksize-count);
        if (rc < 0) {
           if (EINTR == errno)
                continue;
            perror("oss: read");
            exit(1);

with strace indicating that read returns not EINTR, but EAGAIN.

In this case the code should not fail, but retry reading.
So I suggest the following patch, which made streamer usable for me:

--- orig/xawtv-3.94/libng/plugins/snd-oss.c     2003-02-14 15:14:05.000000000 +0100
+++ work/xawtv-3.94/libng/plugins/snd-oss.c     2006-06-02 17:34:12.000000000 +0200
@@ -441,8 +441,8 @@
     for (;;) {
        rc = read(fd,buffer+count,blocksize-count);
        if (rc < 0) {
-           if (EINTR == errno)
+           if ( (EINTR == errno) || (EAGAIN == errno) )
                continue;
            perror("oss: read");
            exit(1);


Now for completeness, the full debug output:

$ streamer -d -o capture---30712.avi -f rgb24 -s 320x240 -r 24
 -t 99:59:59 -F mono16 -R 32000
checking writer files [multiple image files] ...
  video name=ppm ext=ppm: ext mismatch [need avi]
  video name=pgm ext=pgm: ext mismatch [need avi]
  video name=jpeg ext=jpeg: ext mismatch [need avi]
checking writer raw [single file, raw video data] ...
  video name=rgb ext=raw: ext mismatch [need avi]
  video name=gray ext=raw: ext mismatch [need avi]
  video name=422 ext=raw: ext mismatch [need avi]
  video name=422p ext=raw: ext mismatch [need avi]
  video name=4mpeg ext=yuv: ext mismatch [need avi]
  video name=4mpeg-o ext=yuv: ext mismatch [need avi]
checking writer avi [Microsoft AVI (RIFF) format] ...
  video name=rgb15 ext=avi: name mismatch [need rgb24]
  video name=rgb24 ext=avi: OK
  audio name=mono8 ext=avi: name mismatch [need mono16]
  audio name=mono16 ext=avi: OK
avi / video: 24 bit TrueColor (LE: bgr) / audio: 16bit mono (LE)
vid-open: trying: v4l2-old... 
vid-open: failed: v4l2-old
vid-open: trying: v4l2... 
v4l2: open
v4l2: device info:
  bttv 0.9.15 / BT878 video (Leadtek WinFast 20 @ PCI:0000:00:12.0
vid-open: ok: v4l2
movie_init_writer start
dsp-open: trying: oss... 
oss: bs=8192 rate=32000 channels=1 bits=16 (16bit mono (LE))
dsp-open: ok: oss
writer_audio_thread start [pid=989]
v4l2: new capture params (320x240, BGR3, 230400 byte)
setformat: 24 bit TrueColor (LE: bgr) (320x240): ok
v4l2: new capture params (320x240, BGR3, 230400 byte)
writer_video_thread start [pid=989]
movie_init_writer end (h=0x806a6b0)
movie_writer_start
oss: startrec
oss: clearbuf rc=-1 errno=Resource temporarily unavailable
v4l2: buf 0: video-cap 0x0+233472, used 0
v4l2: buf 1: video-cap 0x39000+233472, used 0
v4l2: buf 2: video-cap 0x72000+233472, used 0
v4l2: buf 3: video-cap 0xab000+233472, used 0
v4l2: buf 4: video-cap 0xe4000+233472, used 0
v4l2: buf 5: video-cap 0x11d000+233472, used 0
v4l2: buf 6: video-cap 0x156000+233472, used 0
v4l2: buf 7: video-cap 0x18f000+233472, used 0
v4l2: buf 8: video-cap 0x1c8000+233472, used 0
v4l2: buf 9: video-cap 0x201000+233472, used 0
v4l2: buf 10: video-cap 0x23a000+233472, used 0
v4l2: buf 11: video-cap 0x273000+233472, used 0
v4l2: buf 12: video-cap 0x2ac000+233472, used 0
v4l2: buf 13: video-cap 0x2e5000+233472, used 0
v4l2: buf 14: video-cap 0x31e000+233472, used 0
v4l2: buf 15: video-cap 0x357000+233472, used 0
record_audio_thread start [pid=989]
oss: read: Resource temporarily unavailable
$

-- System Information:
Debian Release: 3.1
Architecture: i386 (i586)
Kernel: Linux 2.6.8-3-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xawtv-plugins depends on:
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
ii  libdv4                0.103-2            software library for DV format dig

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: xawtv
Source-Version: 3.95.dfsg.1-4

We believe that the bug you reported is fixed in the latest version of
xawtv, which is due to be installed in the Debian FTP archive:

alevtd_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/alevtd_3.95.dfsg.1-4_ia64.deb
fbtv_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/fbtv_3.95.dfsg.1-4_ia64.deb
pia_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/pia_3.95.dfsg.1-4_ia64.deb
radio_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/radio_3.95.dfsg.1-4_ia64.deb
scantv_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/scantv_3.95.dfsg.1-4_ia64.deb
streamer_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/streamer_3.95.dfsg.1-4_ia64.deb
ttv_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/ttv_3.95.dfsg.1-4_ia64.deb
v4l-conf_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/v4l-conf_3.95.dfsg.1-4_ia64.deb
webcam_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/webcam_3.95.dfsg.1-4_ia64.deb
xawtv-plugins_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/xawtv-plugins_3.95.dfsg.1-4_ia64.deb
xawtv-tools_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/xawtv-tools_3.95.dfsg.1-4_ia64.deb
xawtv_3.95.dfsg.1-4.diff.gz
  to pool/main/x/xawtv/xawtv_3.95.dfsg.1-4.diff.gz
xawtv_3.95.dfsg.1-4.dsc
  to pool/main/x/xawtv/xawtv_3.95.dfsg.1-4.dsc
xawtv_3.95.dfsg.1-4_ia64.deb
  to pool/main/x/xawtv/xawtv_3.95.dfsg.1-4_ia64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 374626@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Krzysztof Burghardt <krzysztof@burghardt.pl> (supplier of updated xawtv package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 29 Jul 2007 15:00:06 +0200
Source: xawtv
Binary: xawtv-plugins fbtv radio ttv webcam pia xawtv xawtv-tools scantv streamer alevtd v4l-conf
Architecture: source ia64
Version: 3.95.dfsg.1-4
Distribution: unstable
Urgency: low
Maintainer: Krzysztof Burghardt <krzysztof@burghardt.pl>
Changed-By: Krzysztof Burghardt <krzysztof@burghardt.pl>
Description: 
 alevtd     - http daemon for videotext pages
 fbtv       - linux console (fbcon) TV application
 pia        - movie player
 radio      - ncurses-based radio application
 scantv     - scan TV channels for stations
 streamer   - capture tool (images / movies)
 ttv        - tty TV application
 v4l-conf   - tool to configure video4linux drivers
 webcam     - capture and upload images
 xawtv      - X11 TV application
 xawtv-plugins - plugins for xawtv and motv
 xawtv-tools - Miscellaneous tools distributed with xawtv
Closes: 199570 202133 369803 374626 379251 383194
Changes: 
 xawtv (3.95.dfsg.1-4) unstable; urgency=low
 .
   * Applied Kristof Koehler's patch for problems with recording
     oss audio using streamer (Closes: #374626)
   * Applied Romain FRANCOISE's patch for unmute sound on xavtv
     exit (Closes: #199570)
   * Applied Steven Barker's patches for radio application.
     This fixes multiple issues listed in bug report (Closes: #202133)
   * Applied Bjoern Erik Nilsen's patch that fixes some memory leaks
     in the v4l plugins (Closes: #369803)
   * Applied Petr Vandrovec's patch that fixes 4 problems with fbtv
     observed with radeonfb. Fixes to support 15bpp depth in v4l-conf,
     reload palette when switching terminals, clear only visible area
     of videoram instead of clearing 256MB and problem with FBIOGETCMAP.
     (Closes: #383194)
   * Changed ${Source-Version} substvar to ${binary:Version}
   * Adjust debconf-templates.
   * New maintainer (Closes: #379251)
Files: 
 858bef506510e9816b7d9e8334ead80e 1101 graphics extra xawtv_3.95.dfsg.1-4.dsc
 dda43cd87d7dd96162db7efe36ff82c5 29315 graphics extra xawtv_3.95.dfsg.1-4.diff.gz
 b89a6dcd854f62ea7c96578b5497211d 341586 x11 extra xawtv_3.95.dfsg.1-4_ia64.deb
 e38286c2f4a9f68479a4a2ece1649b84 52606 x11 extra pia_3.95.dfsg.1-4_ia64.deb
 79fcadc72afc6d2b3442739a0deb0623 100944 graphics extra fbtv_3.95.dfsg.1-4_ia64.deb
 c62409f318e55c6b55a2bde66736738d 76064 graphics extra ttv_3.95.dfsg.1-4_ia64.deb
 cdb8d4e2fb856eced307974bc984d153 83878 graphics extra scantv_3.95.dfsg.1-4_ia64.deb
 d8973dc18c43e1028ea862eb1516f1b9 77516 graphics extra streamer_3.95.dfsg.1-4_ia64.deb
 189f5e160947dcf946df77c49bb2eae6 21954 sound extra radio_3.95.dfsg.1-4_ia64.deb
 5578c5c8a33d1b68bc502705b8f18ae6 31396 graphics extra v4l-conf_3.95.dfsg.1-4_ia64.deb
 b41779abf049aa47103ef0488015405f 39776 graphics extra xawtv-tools_3.95.dfsg.1-4_ia64.deb
 3d06485775776cc141dade8d06c8ff54 124500 graphics extra xawtv-plugins_3.95.dfsg.1-4_ia64.deb
 5db26edd3e295ab9990dd2ef3538ad47 50168 net extra webcam_3.95.dfsg.1-4_ia64.deb
 ab12c9e0c538b067b24fdf2af221df57 42030 net extra alevtd_3.95.dfsg.1-4_ia64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGrNFumdOZoew2oYURAn4dAKC3uBfKTM7HXfb/bGprxvsVPDYC2QCfWSWO
4HSwxmYp26epyBb+sYBFgX4=
=Akqp
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: