[Libav-user] How can i capture audio from microphone.

Oleg mybrokenbeat at gmail.com
Thu Nov 22 14:35:32 CET 2012


I'm not sure, but char* is only for ASCII characters. Your audio device name is in UTF-8 (?) . Probably, this is where a problem.

22.11.2012, в 3:46, 이석우 написал(а):

> Hi everyone.
> 
> I’m beginner in ffmpeg
> 
>  
> I can capture from webcam in my c code.
> 
>  
> const char deviceName[] = "video=Sirius USB2.0 Camera";
> 
> avformat_open_input(&avFormatContext, deviceName, avInputFomat, NULL);
> 
>  
> now I want to capture sound from my microphone.
> 
>  
> const char deviceName[] = "audio=헤드셋 마이크(2- Microsoft LifeChat L";
> 
> avformat_open_input(&avFormatContext, deviceName, avInputFomat, NULL);
> 
>  
> but this code is fail. Return -5.
> 
>  
> what is wrong?
> 
> this is unicode problem?
> 
> my microphone is ok and connected to my computer.
> 
>  
> and i want to know capture video and audio in same time.
> 
>  
> I'll really appreciate your help.
> 
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121122/c755c6e6/attachment.html>


More information about the Libav-user mailing list