ffmpeg - how to specify different audio device

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

ffmpeg - how to specify different audio device

Postby permitivity » Fri Dec 27, 2013 3:47 am

Hi,
I'd like to use two USB audio adapters on a single Pogoplug. One of them is being used for playing music. I want the other one to play a multicast audio. Right now, this is the command used to play the multicast audio, but I don't know how to make it use the second USB sound adapter instead of the default one.

$this->bbcode_second_pass_quote('', 'f')fmpeg -i rtp://224.1.1.1:1111 -f alsa default



This is the output of lsusb:

$this->bbcode_second_pass_quote('', 'B')us 001 Device 005: ID 0d8c:0008 C-Media Electronics, Inc.
Bus 001 Device 004: ID 0d8c:0139 C-Media Electronics, Inc.
Bus 001 Device 003: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Thanks for any help.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: ffmpeg - how to specify different audio device

Postby WarheadsSE » Fri Dec 27, 2013 3:55 am

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ffmpeg - how to specify different audio device

Postby permitivity » Fri Dec 27, 2013 5:01 am

I have it working now with this:

$this->bbcode_second_pass_quote('', 'f')fmpeg -i rtp://224.1.1.1:1111 -f alsa plughw:1


plughw:0 should be the first usb sound adapter. plughw:1 is the second. You can use alsamixer to set volumes on each separately too.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 7 guests

cron