You are not logged in.
I've done a lot of work over the past three days on trying to record the output from flash plugin and save it to a file. It works! I swear to god, it does. But only sometimes. It will literally work one instance, and then ten seconds later in another instance with the exact same environment, it won't work. Needless to say, this is incredibly frustrating.
The command I am using, precisely, is as such (and yes, I DO have a Logitech USB headset plugged in):
ffmpeg -f alsa -i pulse_monitor derp.mp3
My .asoundrc is:
pcm.pulse_monitor {
type pulse
device alsa_output.usb-Logitech_Logitech_USB_Headset-00-Headset.analog-stereo.monitor
}ctl.pulse_monitor {
type pulse
device alsa_output.usb-Logitech_Logitech_USB_Headset-00-Headset.analog-stereo.monitor
}
(Yeah, I know... alsa, watching pulse, watching alsa...)
When I start a flash plugin-based thing like a Youtube video, then use the above ffmpeg command, the command hangs just before it gets to the bit where it guesses my channel layout. When I close the process that spawned the flash plugin, it starts recording.
When I start ffmpeg first, and it begins recording before the plugin loads, when the plugin DOES load, it either produces no sound or refuses to work at all, showing a black box.
I have also tried this, and this is the one which has occasionally worked:
ffmpeg -f pulse -i "alsa_output.usb-Logitech_Logitech_USB_Headset-00-Headset.analog-stereo.monitor" derp.mp3
I know that the device names are right because they correctly record other applications, like teamspeak3. Notably, teamspeak3 and java show up in the "Playback" tab of pavucontrol, but flashplugin and chromium do not.
I know Ubuntu users seem to have problems with flashplugin sharing audio: http://ubuntuforums.org/archive/index.p … 18171.html
Anybody have some insight to share with me? I don't have to get it working - I just want to know why it works sometimes and not always.
Last edited by Thisguy_ (2014-02-04 20:20:02)
Offline