[LAU] Recording a video with High quality audio

Jannis Achstetter jannis_achstetter at web.de
Tue Apr 21 04:50:50 UTC 2015


Am 20.04.2015 um 21:25 schrieb Ivan K:
> Thank you for your help; this is a lot to take in, though I am not
> adverse to working on the command line, and many times I prefer it.

Good to hear that :)

> In your first example, it seems I need to  substitute something
> for "jackaudiosrc".  What might I put there?

Right, I was assuming you are using the JACK audio server. If not you
can use "alsasrc" or "pulsesrc", depending on your setup. You can always
get a list of available elements using "gst-inspect-1.0".

> Also, I am surprised to see the use of the "!" character as
> opposed to the pipe "|".  Is the "!" particular to bash?

The "!"s are not specific to bash but to gstreamer. It's not several
processes that are started and piped together by bash but it's several
gstreamer elements that are piped together by gstreamer. Hence, the "|"
doesn't work here.

> I am taking a look at the documentation.  Thanks again.

You're welcome.

Best regards,
	Jannis


> Jannis Achstetter <jannis_achstetter at web.de> wrote:
>>
>> Am 20.04.2015 um 05:46 schrieb Ivan K:
>>> [...]
>>> Is there any application that can record video
>>> from a webcam but use an audio input other than
>>> the built-in mic on the cam?
>>
>> This can be done very easily using gstreamer. You can construct
>> pipelines from single elements. Here's an example that might
>> work for your application:
>>
>>
>> gst-launch-1.0 v4l2src ! video/x-raw,width=640,height=360,framerate=30/1
>> ! vp8enc deadline=30000 threads=4 ! queue ! matroskamux name=mux !
>> filesink location=test.mkv jackaudiosrc ! audio/x-raw,channels=2 !
>> audioconvert ! opusenc ! queue ! mux.
>>
>> This will grab raw video from your cam, encode it, mux it and
>> save it to a file. Furthermore, audio will be grabbed from
>> jack, encoded and also muxed to the same file.
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-user
> 



More information about the Linux-audio-user mailing list