Help needed for merge two audio source

Steam recording with RTMPDump or FFmpeg.
Post Reply
trippalippa
Posts: 2
Joined: Tue Jan 14, 2014 4:54 pm

Help needed for merge two audio source

Post by trippalippa » Tue Jan 14, 2014 5:04 pm

Hello,

I need your help: I want to record microphone, speakers and video in a unique mp4 file. I already "installed screen-capture-recorder-to-video-windows-free", and actually I can record only 1 audio input and video.

Using, for example, this command, It correctly record microphone and video:

Code: Select all

ffmpeg -f dshow -i video="screen-capture-recorder" -f dshow -i audio="Gruppo microfoni (IDT High Defi" -c:v libx264 -profile baseline -pix_fmt yuv420p -threads 2 -preset veryfast -crf 25 -acodec libvo_aacenc -ar 44100 -ab 128k -g 40 -r 10 -y -f mp4 yo.mp4
But if i try to add speakers audio, with this command:

Code: Select all

ffmpeg -f dshow -i video="screen-capture-recorder" -f dshow -i audio="virtual-audio-capturer" -f dshow -i audio="Gruppo microfoni (IDT High Defi" -c:v libx264 -profile baseline -pix_fmt yuv420p -threads 2 -preset veryfast -crf 25 -acodec libvo_aacenc -ar 44100 -ab 128k -g 40 -r 10 -y -f mp4 yo.mp4
It record only video and speakers.

Is there a way to record all the three streams ?

Thanks a lot

Regards,
trippalippa

Ajaja
Posts: 69
Joined: Fri Mar 08, 2013 2:00 pm

Re: Help needed for merge two audio source

Post by Ajaja » Wed Jan 15, 2014 7:57 am


trippalippa
Posts: 2
Joined: Tue Jan 14, 2014 4:54 pm

Re: Help needed for merge two audio source

Post by trippalippa » Wed Jan 15, 2014 1:40 pm

I tried, but it gave me this error:

Code: Select all

Input #0, dshow, from 'video=screen-capture-recorder':
  Duration: N/A, start: 181403.757000, bitrate: N/A
    Stream #0:0: Video: rawvideo, bgra, 1366x768, 30 tbr, 10000k tbn, 30 tbc
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, dshow, from 'audio=virtual-audio-capturer':
  Duration: N/A, start: 181403.819000, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[dshow @ 0470f3c0] real-time buffer 275% full! frame dropped!
    Last message repeated 15 times
Guessed Channel Layout for  Input Stream #2.0 : stereo
Input #2, dshow, from 'audio=Gruppo microfoni (IDT High Defi':
  Duration: N/A, start: 181403.836000, bitrate: 1411 kb/s
    Stream #2:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Cannot find a matching stream for unlabeled input pad 2 on filter Parsed_amix_0
The same happens if i remove video recording...

Any suggestions?

Ajaja
Posts: 69
Joined: Fri Mar 08, 2013 2:00 pm

Re: Help needed for merge two audio source

Post by Ajaja » Wed Jan 15, 2014 8:25 pm

What is your command? This works fine, for example:

Code: Select all

ffmpeg -f dshow -i "audio=Microphone (High Definition Aud" -f dshow -i "audio=virtual-audio-capturer" -f dshow -i "video=UScreenCapture" -filter_complex amix -y test.mkv

Post Reply