<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<br><div><div><br></div><div>22.11.2012, в 3:46, 이석우 написал(а):</div><br class="Apple-interchange-newline"><blockquote type="cite"><!--espresso editor content start--><div id="espresso_editor_view" style="font-family:굴림;font-size:10pt;"><p>Hi everyone.</p><p>I’m beginner in ffmpeg</p><div> <br class="webkit-block-placeholder"></div><p>I can capture from webcam in my c code.</p><div> <br class="webkit-block-placeholder"></div><p>const char deviceName[] = "video=Sirius USB2.0 Camera";</p><p>avformat_open_input(&avFormatContext, deviceName, avInputFomat, NULL);</p><div> <br class="webkit-block-placeholder"></div><p>now I want to capture sound from my microphone.</p><div> <br class="webkit-block-placeholder"></div><p>const char deviceName[] = "audio=헤드셋 마이크(2- Microsoft LifeChat L";</p><p>avformat_open_input(&avFormatContext, deviceName, avInputFomat, NULL);</p><div> <br class="webkit-block-placeholder"></div><p>but this code is fail. Return -5.</p><div> <br class="webkit-block-placeholder"></div><p>what is wrong?</p><p>this is unicode problem?</p><p>my microphone is ok and connected to my computer.</p><div> <br class="webkit-block-placeholder"></div><p>and i want to know capture video and audio in same time.</p><div> <br class="webkit-block-placeholder"></div><p>I'll really appreciate your help.</p>
</div><!--espresso editor content end--><img src="https://mail3.nate.com/app/msg/confirm/?usn=2868747&email=stonerain@lycos.co.kr&key=216d243b593632ae357956a9781ed78c$3492f55c@mail3.nate.com" height="1" width="1">_______________________________________________<br>Libav-user mailing list<br><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>http://ffmpeg.org/mailman/listinfo/libav-user<br></blockquote></div><br></body></html>