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 > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
