Hi to all,
I am trying at the moment to get a dshow webcam shown in casparcg but have no success. Maybe someone has an idea. Tried the same directly in ffmpeg creates a mp4 file with content as expected:
ffmpeg -f dshow -i video=“Integrated Webcam” out.mp4
CasparCG:
CasparCG 2.1.0.12d1299
I checked with ffmpeg the directshow name:
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[dshow @ 00000233eac69340] DirectShow video devices (some may be both video and audio devices)
[dshow @ 00000233eac69340] "Integrated Webcam"
[dshow @ 00000233eac69340] Alternative name "@device_pnp_\\?\usb#vid_0c45&pid_64ac&mi_00#7&36797a9&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 00000233eac69340] DirectShow audio devices
[dshow @ 00000233eac69340] "Microphone (Realtek High Definition Audio)"
[dshow @ 00000233eac69340] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{C70553EB-A809-46EF-BCD9-A4F73B88D5D0}"
So i tried this command:
PLAY 1-1 “dshow://video=Integrated Webcam”
But I only get an error msg:
[2020-02-25 18:21:01.883] [3252] [info] Received message from 127.0.0.1: PLAY 1-1 "dshow://video=Integrated Webcam"\r\n
[2020-02-25 18:21:02.754] [9636] [debug] C:\Program Files (x86)\Jenkins\jobs\CasparCG_Server_2.1.0\workspace\core\producer\frame_producer.cpp(403): Throw in function class caspar::spl::shared_ptr<class caspar::core::frame_producer> __cdecl caspar::core::frame_producer_registry::create_producer(const struct caspar::core::frame_producer_dependencies &,const class std::vector<class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class std::allocator<class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > > > &) const
Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::file_not_found>
[struct caspar::tag_arg_value_info * __ptr64] = dshow://video=Integrated Webcam
[struct caspar::tag_call_stack_info * __ptr64] = c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\core\producer\frame_producer.cpp (403): caspar::core::frame_producer_registry::create_producer
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\protocol\amcp\amcpcommandsimpl.cpp (381): caspar::protocol::amcp::loadbg_command
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\protocol\amcp\amcpcommandsimpl.cpp (441): caspar::protocol::amcp::play_command
c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits (1408): std::_Invoker_functor::_Call<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > (__cdecl*& __ptr64)(caspar::protocol::amcp::command_context & __ptr64),caspar::protocol::amcp::command_context & __ptr64>
c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits (1476): std::invoke<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > (__cdecl*& __ptr64)(caspar::protocol::amcp::command_context & __ptr64),caspar::protocol::amcp::command_context & __ptr64>
c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits (1501): std::_Invoke_ret<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > (__cdecl*& __ptr64)(caspar::protocol::amcp::command_context & __ptr64),caspar::protocol::amcp::command_context & __ptr64>
c:\program files (x86)\microsoft visual studio 14.0\vc\include\functional (209): std::_Func_impl<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > (__cdecl*)(caspar::protocol::amcp::command_context & __ptr64),std::allocator<int>,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,caspar::protocol::amcp::command_context & __ptr64>::_Do_call
c:\program files (x86)\microsoft visual studio 14.0\vc\include\functional (275): std::_Func_class<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,caspar::protocol::amcp::command_context & __ptr64>::operator()
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\protocol\amcp\amcpcommand.h (111): caspar::protocol::amcp::AMCPCommand::Execute
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\protocol\amcp\amcpcommandqueue.cpp (106): <lambda_414f5f7719274d6cea7e40f7a5b7dab9>::operator()
c:\program files (x86)\microsoft visual studio 14.0\vc\include\functional (209): std::_Func_impl<<lambda_cc88b79aa2fe3c2694b7c844d7ba0aa8>,std::allocator<int>,void>::_Do_call
c:\program files (x86)\microsoft visual studio 14.0\vc\include\future (750): std::_Packaged_state<void __cdecl(void)>::_Call_immediate
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\common\executor.h (235): <lambda_360b1f84e829e481f1800ad38f6af21e>::operator()
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\common\executor.h (267): caspar::executor::run
00007FF660B604D3 (casparcg): (filename not available): boost::detail::shared_count::swap
00007FF828340E72 (ucrtbase): (filename not available): beginthreadex
00007FF8292A7BD4 (KERNEL32): (filename not available): BaseThreadInitThunk
00007FF82AC4CED1 (ntdll): (filename not available): RtlUserThreadStart
[struct caspar::tag_msg_info * __ptr64] = No match found for supplied commands. Check syntax.
Caught at (AMCPCommandQueue Channel 1 for TCP Port 5250):
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\protocol\amcp\amcpcommandqueue.cpp (113): `<lambda_414f5f7719274d6cea7e40f7a5b7dab9>::operator()'::`1'::catch$1
00007FF81D011030 (VCRUNTIME140): (filename not available): (function-name not available)
00007FF81D0132F8 (VCRUNTIME140): (filename not available): is_exception_typeof
00007FF82AC80646 (ntdll): (filename not available): RtlCaptureContext
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\protocol\amcp\amcpcommandqueue.cpp (106): <lambda_414f5f7719274d6cea7e40f7a5b7dab9>::operator()
c:\program files (x86)\microsoft visual studio 14.0\vc\include\functional (209): std::_Func_impl<<lambda_cc88b79aa2fe3c2694b7c844d7ba0aa8>,std::allocator<int>,void>::_Do_call
c:\program files (x86)\microsoft visual studio 14.0\vc\include\future (750): std::_Packaged_state<void __cdecl(void)>::_Call_immediate
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\common\executor.h (235): <lambda_360b1f84e829e481f1800ad38f6af21e>::operator()
c:\program files (x86)\jenkins\jobs\casparcg_server_2.1.0\workspace\common\executor.h (267): caspar::executor::run
00007FF660B604D3 (casparcg): (filename not available): boost::detail::shared_count::swap
00007FF828340E72 (ucrtbase): (filename not available): beginthreadex
00007FF8292A7BD4 (KERNEL32): (filename not available): BaseThreadInitThunk
00007FF82AC4CED1 (ntdll): (filename not available): RtlUserThreadStart
[2020-02-25 18:21:02.755] [9636] [error] File not found. No match found for parameters. Check syntax. Turn on log level debug for stacktrace.