Jump to content

javaguy

Members
  • Posts

    370
  • Joined

  • Last visited

Posts posted by javaguy

  1. Like the title says. Sorry if this is a newbie question.

     

    ffmpeg -f x11grab -r 30 -s 1280x1024 -i :0.0 -f alsa -i hw:1,1 -ac 2 screenrecord.avi

     

    This records screenrecord.avi, and it looks good, but there's no sound.

     

    I tried hw:0,0 (that was the first way I tried it) and got an error message.

     

    aplay -l

    gives me this:

     

    **** List of PLAYBACK Hardware Devices ****
    card 0: ICE1724 [iCEnsemble ICE1724], device 0: ICE1724 [iCE1724]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
    card 0: ICE1724 [iCEnsemble ICE1724], device 1: ICE1724 IEC958 [iCE1724 IEC958]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital]
     Subdevices: 1/1
     Subdevice #0: subdevice #0

     

    What I'd really like is to be able to do a screencast that captures all the application sounds and mic input, but just the app sounds would be awesome.

     

    Any suggestions?

     

    Thanks!

  2. I've Googled this but not found anything clear to a layman. Is there a binary rpm somewhere that can be installed in a straightforward way? (Failing that I'll bite the bullet and build one with MAKE if I can find a mandy-friendly source distribution of the editor.) My kids really want to make their own Supertux levels. :)

  3. Got a question for any mencoder/mplayer gurus. I'm ripping an mpeg using this script.

     

    mencoder dvd://$1 -aid 128 -oac lavc -ovc frameno -o frameno.avi 
    mencoder dvd://$1 -oac copy -alang en -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=629:vpass=1 -o $2.mpeg
    mencoder dvd://$1 -oac copy -alang en -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=629:vpass=2 -o $2.mpeg

     

     

    The resulting mpeg looks okay but has Spanish subtitles in it. Anybody have any idea what I'm doing wrong?

     

    [moved from Software by spinynorman]

  4. It's been a while since I tried this, and I wonder if anybody else has had any success since then.

     

    I gave it a whirl this morning. I can pair my headset, and it connects and shows as a connected bluetooth device. It doesn't show up as an audio device, though, and I'm wondering what I need to do to get it working. I've Googled this to death and only found various articles saying that bluetooth "works" in Pulseaudio under Mandriva 2010.1, whatever that means.

  5. I've been trying to install Cooker on a spare partition using these instructions. I'm using the chroot method, which seems the easiest. When I get to the part that say "Copy vmlinuz and its initrd from /chroot/boot/ to /boot," however, I find the vmlinuz in /chroot/boot, but no initrd. I throught that initrd got installed along with the vmlinuz, but apparently not.

     

    Does anybody know how to create this?

  6. Need some advice from anybody here who might be a networking/Java guru.

     

    I'm working on a Java app that uses Apache/Tomcat and to which the users sometimes upload files. I know that Apache can be configured with a maximum file upload size, but this application needs to allow some users to upload certain file sizes and others a different size.

     

    The request header contains a content-length attribute that can be used to check the request size. The problem is that by the time the servlet is processing the request and can look at this information, the entire file has been uploaded. So a user might upload a huge file and then, after waiting, be told that his file is too big and has been discarded. What I'd really like is to peek at the request header as the request first starts coming in and close the connection if the file is too big.

     

    I considered writing a custom Valve for Tomcat, but it looks to me like a Valve also does not process a request until the entire request has been received.

     

    My next thought is to customize some kind of proxy between Apache and Tomcat. Is there any way that a Java component can be put in the pipeline to sniff out request headers and parse the content-length? (I'm assuming that Apache pipes requests through to Tomcat as they come in, rather than waiting for the entire request body and then passing it on. I think that's a reasonable assumption but really don't know.)

  7. Once upon a time I could record movies of my desktop using XVidCap. Since installing Mandriva 2009.1 I can't do that any more. When I go to the preferences screen, it shows an option to capture a single frame or multi-frame, just like it always did, except that the multi-frame option is greyed out. Any suggestions?

     

    Thanks!

    Sam

  8. In 2009.1, Cedega still works fine for some games, but for some it complains that it wants Python version 2.3 - 2.5, then exits. Mandriva 2009.1 comes with 2.6.1 by default.

     

    Does anybody know if there's an easy workaround for this? I'd rather use the rpms than do a manual build of an earlier version, not to mention there is a slew of packages that seem to depend on python.

  9. Like the title says. I'm using 2009 Spring, and sound worked fine for a long time.

     

    About half an hour ago I tried to fire up my WoW client and got silence.

     

    Relog. Silence.

     

    Reboot even! Silence.

     

    Okay, so I went into the MCC and picked hardware->sound. Everything looks okay to me. Under troubleshooting it lists the "classic" sound troubleshooting commands, from which I got these results:

     

    [root@localhost javaguy]# lspcidrake -v | fgrep -i AUDIO

    bt878 : Brooktree Corporation|Bt878 Audio Capture [MULTIMEDIA_OTHER] (vendor:109e device:0878 subv:0070 subd:13eb)

    snd_ice1724 : VIA Technologies Inc.|VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller [MULTIMEDIA_AUDIO] (vendor:1412 device:1724 subv:14c3 subd:1705)

    snd_hda_intel : nVidia Corporation|MCP61 High Definition Audio (vendor:10de device:03f0 subv:1043 subd:8234)

     

     

     

    grep sound-slot /etc/modprobe.conf

    alias sound-slot-0 snd_ice1724

    alias sound-slot-1 snd_hda_intel

     

     

     

     

     

     

     

     

    [root@localhost javaguy]# /sbin/lsmod

    Module Size Used by

    nls_utf8 1504 1

    isofs 31300 1

    ipt_IFWLOG 2624 2

    ipt_psd 43624 1

    xt_time 2524 0

    xt_connlimit 3684 0

    xt_realm 1276 0

    iptable_raw 1820 0

    xt_comment 1276 18

    xt_policy 2748 0

    ipt_ULOG 9220 0

    ipt_TTL 1724 0

    ipt_ttl 1372 0

    ipt_REJECT 2812 2

    ipt_REDIRECT 2332 0

    ipt_NETMAP 2268 0

    ipt_MASQUERADE 3324 0

    ipt_LOG 5888 6

    ipt_ECN 2204 0

    ipt_ecn 1756 0

    ipt_CLUSTERIP 7520 0

    ipt_ah 1436 0

    ipt_addrtype 2204 4

    nf_nat_tftp 1308 0

    nf_nat_snmp_basic 8452 0

    nf_nat_sip 6428 0

    nf_nat_pptp 5340 0

    nf_nat_proto_gre 3424 1 nf_nat_pptp

    nf_nat_irc 2332 0

    nf_nat_h323 8668 0

    nf_nat_ftp 3388 0

    nf_nat_amanda 1628 0

    ts_kmp 2044 5

    nf_conntrack_amanda 3612 1 nf_nat_amanda

    nf_conntrack_sane 5592 0

    nf_conntrack_tftp 5104 1 nf_nat_tftp

    nf_conntrack_sip 18576 1 nf_nat_sip

    nf_conntrack_proto_sctp 13220 0

    nf_conntrack_pptp 12544 1 nf_nat_pptp

    nf_conntrack_proto_gre 7584 1 nf_conntrack_pptp

    nf_conntrack_netlink 16892 0

    nf_conntrack_netbios_ns 2204 0

    nf_conntrack_irc 6112 1 nf_nat_irc

    nf_conntrack_h323 60584 1 nf_nat_h323

    nf_conntrack_ftp 12704 1 nf_nat_ftp

    ipt_set 1788 2

    ipt_SET 1980 0

    ip_set_nethash 8132 0

    ip_set_iptreemap 9524 0

    ip_set_iptree 5956 2

    ip_set_ipporthash 7236 0

    ip_set_portmap 3716 0

    ip_set_macipmap 3588 0

    ip_set_ipmap 3492 0

    ip_set_iphash 6628 0

    ip_set 19608 18 ipt_set,ipt_SET,ip_set_nethash,ip_set_iptreemap,ip_set_iptree,ip_set_ipporthash,

    ip_set_portmap,ip_set_macipmap,ip_set_ipmap,ip_set_iphash

    xt_tcpmss 1788 0

    xt_recent 9824 0

    xt_pkttype 1404 0

    xt_physdev 2156 0

    xt_owner 2332 0

    xt_NFQUEUE 1532 0

    xt_NFLOG 1468 0

    nfnetlink_log 8548 1 xt_NFLOG

    xt_multiport 2940 4

    xt_MARK 1884 0

    xt_mark 1500 0

    xt_mac 1372 0

    xt_limit 1888 0

    xt_length 1500 0

    xt_iprange 3388 0

    xt_helper 1788 0

    xt_hashlimit 9484 0

    xt_DSCP 2908 0

    xt_dscp 2140 0

    xt_dccp 2692 0

    xt_conntrack 3388 0

    xt_CONNMARK 2620 0

    xt_connmark 1980 0

    xt_CLASSIFY 1308 0

    xt_tcpudp 2684 11

    xt_state 1820 9

    iptable_nat 6172 0

    nf_nat 20848 12 ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat

    _proto_gre,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,iptable_nat

    nf_conntrack_ipv4 15432 12 iptable_nat,nf_nat

    nf_defrag_ipv4 1692 1 nf_conntrack_ipv4

    nf_conntrack 74564 31 xt_connlimit,ipt_MASQUERADE,ipt_CLUSTERIP,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_s

    ip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_conntrack_amand

    a,nf_conntrack_sane,nf_conntrack_tftp,nf_conntrack_sip,nf_conntrack_proto_sctp,nf

    _conntrack_pptp,nf_conntrack_proto_gre,nf_conntrack_netlink,nf_conntrack_netbios_

    ns,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,xt_helper,xt_conntrack,xt_

    CONNMARK,xt_connmark,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4

    iptable_mangle 2396 1

    nfnetlink 4276 2 nf_conntrack_netlink,nfnetlink_log

    iptable_filter 2364 1

    ip_tables 11500 4 iptable_raw,iptable_nat,iptable_mangle,iptable_filter

    x_tables 15424 49 ipt_IFWLOG,ipt_psd,xt_time,xt_connlimit,xt_realm,xt_comment,xt_policy,ipt_ULOG,i

    pt_TTL,ipt_ttl,ipt_REJECT,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,ipt_LOG,ipt_ECN,

    ipt_ecn,ipt_CLUSTERIP,ipt_ah,ipt_addrtype,ipt_set,ipt_SET,xt_tcpmss,xt_recent,xt_

    pkttype,xt_physdev,xt_owner,xt_NFQUEUE,xt_NFLOG,xt_multiport,xt_MARK,xt_mark,xt_m

    ac,xt_limit,xt_length,xt_iprange,xt_helper,xt_hashlimit,xt_DSCP,xt_dscp,xt_dccp,x

    t_conntrack,xt_CONNMARK,xt_connmark,xt_CLASSIFY,xt_tcpudp,xt_state,iptable_nat,ip

    _tables

    af_packet 17468 2

    nvidia 7227868 36

    agpgart 33992 1 nvidia

    ipv6 269264 18

    binfmt_misc 8036 1

    loop 14440 0

    dm_mod 54920 0

    cpufreq_ondemand 6728 1

    cpufreq_conservative 6052 0

    cpufreq_powersave 1308 0

    powernow_k8 13312 0

    freq_table 4380 2 cpufreq_ondemand,powernow_k8

    bt878 9720 0

    gspca_spca561 10748 0

    gspca_main 22108 1 gspca_spca561

    snd_hda_codec_analog 58844 1

    usb_storage 106340 1

    ppdev 7232 0

    snd_ice1724 90972 2

    snd_rawmidi 21152 1 snd_ice1724

    snd_ice17xx_ak4xxx 3292 1 snd_ice1724

    snd_bt87x 12036 0

    tuner_simple 14224 1

    tuner_types 14044 1 tuner_simple

    snd_ac97_codec 103808 1 snd_ice1724

    ac97_bus 1532 1 snd_ac97_codec

    snd_ak4xxx_adda 8028 2 snd_ice1724,snd_ice17xx_ak4xxx

    snd_ak4114 8572 1 snd_ice1724

    snd_pt2258 3516 1 snd_ice1724

    snd_i2c 4860 2 snd_ice1724,snd_pt2258

    evdev 9376 7

    tuner 27588 0

    snd_hda_intel 25064 0

    snd_hda_codec 68828 2 snd_hda_codec_analog,snd_hda_intel

    snd_hwdep 6880 1 snd_hda_codec

    tvaudio 26524 0

    snd_seq_dummy 2464 0

    sr_mod 14788 1

    sg 28240 0

    forcedeth 53996 0

    k8temp 4188 0

    pcspkr 2268 0

    snd_seq_oss 29536 0

    snd_seq_midi_event 6812 1 snd_seq_oss

    snd_seq 48976 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event

    snd_seq_device 6728 4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq

    snd_pcm_oss 37632 0

    snd_pcm 74432 8 snd_ice1724,snd_bt87x,snd_ac97_codec,snd_ak4114,snd_hda_intel,snd_hda_codec,snd_

    pcm_oss

    snd_timer 20900 3 snd_seq,snd_pcm

    snd_mixer_oss 14460 1 snd_pcm_oss

    snd 56516 21 snd_hda_codec_analog,snd_ice1724,snd_rawmidi,snd_bt87x,snd_ac97_codec,snd_ak4xxx

    _adda,snd_ak4114,snd_pt2258,snd_i2c,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq

    _oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss

    bttv 193076 1 bt878

    ir_common 45504 1 bttv

    i2c_algo_bit 5696 1 bttv

    snd_page_alloc 8708 3 snd_bt87x,snd_hda_intel,snd_pcm

    v4l2_common 16220 3 tuner,tvaudio,bttv

    videodev 40352 5 gspca_main,tuner,tvaudio,bttv,v4l2_common

    v4l1_compat 13440 1 videodev

    videobuf_dma_sg 12160 1 bttv

    videobuf_core 17920 2 bttv,videobuf_dma_sg

    btcx_risc 4740 1 bttv

    tveeprom 11872 1 bttv

    soundcore 6976 1 snd

    ehci_hcd 48456 0

    ohci_hcd 32364 0

    i2c_nforce2 7520 0

    i2c_core 30992 9 nvidia,tuner_simple,tuner,tvaudio,bttv,i2c_algo_bit,v4l2_common,tveeprom,i2c_nfo

    rce2

    rtc_cmos 12044 0

    parport_pc 35812 0

    parport 33900 2 ppdev,parport_pc

    thermal 15192 0

    button 5836 0

    processor 39976 2 powernow_k8,thermal

    usbcore 179376 6 gspca_spca561,gspca_main,usb_storage,ehci_hcd,ohci_hcd

    ide_generic 2336 0 [permanent]

    pata_amd 10656 5

    ata_generic 4576 0

    ide_pci_generic 3552 0

    ide_gd_mod 23328 0

    ide_core 106924 3 ide_generic,ide_pci_generic,ide_gd_mod

    pata_acpi 3868 0

    sata_nv 22276 4

    libata 172780 4 pata_amd,ata_generic,pata_acpi,sata_nv

    sd_mod 33944 13

    scsi_mod 150932 5 usb_storage,sr_mod,sg,libata,sd_mod

    crc_t10dif 1628 1 sd_mod

    ext3 125732 6

    jbd 46768 1 ext3

     

     

     

     

    [root@localhost javaguy]# /sbin/chkconfig --list sound

    sound 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:off

     

     

    [root@localhost javaguy]# /sbin/chkconfig --list alsa

    alsa 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:off

     

     

     

     

     

     

    [root@localhost javaguy]# aumix -q

    vol 77, 77, P

    pcm 77, 77

    speaker 20, 20

    line 77, 77, P

    mic 0, 0, R

    cd 77, 77, P

    pcm2 77, 77

    igain 80, 80

    line1 77, 77, P

    dig1 0, 0

    phin 77, 77, P

    phout 77, 77, P

    video 77, 77, P

     

     

     

    [root@localhost javaguy]# /sbin/fuser -v /dev/dsp

    [root@localhost javaguy]#

     

     

    What I understand of this looks fine to me, but I'm far from being a guru.

     

    Again, it worked before. :(

     

    Any ideas?

  10. Ctl-tab does nothing for me.

     

    I'm curious--did you guys do anything special when you installed?

     

    All I did was boot the One disc, click the Install icon on the desktop and install it to a blank partition. It runs beautifully--there are all kinds of things I like about it. I just miss my hotkey to switch desktops.

  11. Can I ask another stupid question? In a previous incarnation of KDE I could ctl-tab to switch between virtual desktops. I can't seem to do that any more and can't for the life of me figure out how to set up a hotkey to do it. Where did this go, and how do I get it back?

  12. Can I ask a stupid question?

     

    I used to use xscreensaver, which had a whole bunch of screensavers from which to choose. I recently did a new installation of Mandriva 2009 spring, and now xscreensaver has only one screensaver listed. What do I need to do to make the others appear?

     

     

    [moved from Software by spinynorman]

  13. This used to work before I upgraded to 2009.

     

    ffmpeg -i file.flv -r 24 -s qvga -vcodec mpeg4 -b 12.2k -ab 12.2k -ar 8000 -ac 1 file.3g2

     

     

    As I recall I banged my head against the wall for a few days before I figured this out the first time.

     

    Now I get Unsupported codec for output stream #0.1. :(

     

    Any ideas?

  14. Under control center there is an icon for Accessibility and another icon for Regional & Language.

     

    Input Actions is under Advanced, and I completely removed the printscreen action from the preset actions. I thought that would do it, and when it didn't I removed the ksnapshot package entirely, but now it opens Mozilla when I hit printscreen and says it can't find a site called ksnapshot.

     

    I tried recreating the preset action for the printscreen button and checking the Disable box for it, but that doesn't work either.

     

    I am using Mandriva 2009.0 but running the KDE 3.5 desktop because I didn't care for KDE4.

     

    Thanks again,

    Sam

  15. I went into kde control panel and removed printscrn from the keyboard actions, but even after logging out and back in, it still happens. I removed the ksnapshot package from my system completely, and now when I hit printscrn it opens up Mozilla and says that it couldn't find a web site called ksnapshot. What am I missing?

     

     

    Thanks!

  16. Update: I can get it to work with Cheese (the application, not the dairy product). The picture is really dark, but I suspect that has more to do with it being one of the cheaper Logitech cameras. Unfortunately what I really wanted it for was Skype, and neither Skype nor Ekiga seem to grab a picture from it.

×
×
  • Create New...