LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   No audio recorded in ffmpeg (https://www.linuxquestions.org/questions/slackware-14/no-audio-recorded-in-ffmpeg-4175478203/)

ryanpcmcquen 09-23-2013 09:03 AM

No audio recorded in ffmpeg
 
Hello all.

I am feeding the following to ffmpeg:
Code:

ffmpeg -f x11grab -r 30 -s 1366x768 -i :0 -f alsa -ac 2 -i hw:1,0 -vcodec libx264 -crf 0 -preset ultrafast -acodec libvorbis -ab 192k ryVideo1.mkv
The video is working very well! However, despite my efforts, I have been unable to record any audio. I have also tried 'plughw:1,0'. My guess is that maybe I am recording the desktop audio instead of the audio from my built-in microphone.

My laptop is an HP dv6-6135dx. Here is the spec page:
http://h10025.www1.hp.com/ewfrf/wc/d...roduct=5118737

I have checked all 'alsamixer' settings, and have put them at a variety of levels. Here is some pertinent output:

Code:

{root@slack64}:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: 92HD81B1X5 Analog [92HD81B1X5 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
{root@slack64}:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: 92HD81B1X5 Analog [92HD81B1X5 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I also put the following '.asoundrc' into the home and root folder:
Code:

pcm.!default {
  type hw
  card 1
}

ctl.!default {
  type hw
  card 1
}

Help! I'd really like to make some videos (with audio)!

;-)

WhiteWolf1776 09-23-2013 11:09 AM

Taking a bit of a shot in the dark, but there should be a device named 'CAPTURE' somewhere in alsamixer, or kmix, etc. On mine it's the second one from alsamixer on the f4 set. To enable it, you have to press space.

Not sure what else it could be really.

ryanpcmcquen 09-23-2013 02:08 PM

Quote:

Originally Posted by WhiteWolf1776 (Post 5033227)
Taking a bit of a shot in the dark, but there should be a device named 'CAPTURE' somewhere in alsamixer, or kmix, etc. On mine it's the second one from alsamixer on the f4 set. To enable it, you have to press space.

Not sure what else it could be really.

You, sir, are a genius! Can't believe I missed that!


Thank you, thank you, thank you!

1337_powerslacker 09-23-2013 07:42 PM

Quote:

Originally Posted by ryanpcmcquen (Post 5033313)
You, sir, are a genius! Can't believe I missed that!


Thank you, thank you, thank you!

Sometimes it's the simple things that we as geniuses miss. *wink*

abhijitnathwani 09-07-2018 07:31 AM

Hi @ryanpcmcquen
I am facing the same issue and didn't quite understand the solution. Can you please help me out how you got this working?

Thanks,
Abhijit

bassmadrigal 09-07-2018 10:21 AM

Quote:

Originally Posted by abhijitnathwani (Post 5900859)
Hi @ryanpcmcquen
I am facing the same issue and didn't quite understand the solution. Can you please help me out how you got this working?

Thanks,
Abhijit

This solution was for an older version of Slackware and might not apply to a newer version. Can you open up a new topic with your symptoms and what you've tried to do to fix it? Then we can try and help out with your current version of Slackware.


All times are GMT -5. The time now is 03:59 PM.