UDP stream in Server 2.2

server
streaming

#1

Hi,

i’m trying to test streaming in server 2.2 with
ADD 1 STREAM udp://127.0.0.1:5001 -codec:v libx264 -f mpegts -crf:v 18

but getting error:

[error] [ffmpeg] [NULL @ 00000000160776C0] Unable to find a suitable output format for ‘udp://127.0.0.1:5001’

kindly help me to test streaming with correct params of ffmpeg for server 2.2

error log

[2018-09-28 22:19:23.227] [info] Received message from Console: ADD 1 STREAM udp://127.0.0.1:5001 -codec:v libx264 -f mpegts -crf:v 18\r\n
#202 ADD OK
[2018-09-28 22:19:23.228] [info] ffmpeg[udp://127.0.0.1:5001] Initialized.
[2018-09-28 22:19:23.228] [error] [ffmpeg] [NULL @ 00000000160776C0] Unable to find a suitable output format for ‘udp://127.0.0.1:5001’
[2018-09-28 22:19:23.228] [error]
[2018-09-28 22:19:23.228] [error] [ffmpeg] [NULL @ 00000000160776C0] Unable to find a suitable output format for ‘udp://127.0.0.1:5001’
[2018-09-28 22:19:23.228] [error]
[2018-09-28 22:19:23.251] [error] Exception: C:\Program Files (x86)\Jenkins\workspace\casparcg-server-dep\master\src\modules\ffmpeg\consumer\ffmpeg_consumer.cpp(553): Throw in function auto _cdecl caspar::ffmpeg::ffmpeg_consumer::initialize::<lambda_e201b6f5f8931444e6d9c1015de83729>::operator ()(
void) const
[2018-09-28 22:19:23.251] [error] Dynamic exception type: class boost::exception_detail::clone_impl
[2018-09-28 22:19:23.251] [error] [struct boost::errinfo_api_function * ptr64] = avformat_alloc_output_context2( &oc, nullptr, !format.empty() ? format.c_str() : nullptr, path.c_str())
[2018-09-28 22:19:23.251] [error] [struct boost::errinfo_errno * __ptr64] = 22, “Invalid argument”
[2018-09-28 22:19:23.251] [error] [struct caspar::tag_stacktrace_info * __ptr64] = 0# 0x000000013F5B980E in casparcg
[2018-09-28 22:19:23.251] [error] 1# 0x000000013F5E8BB0 in casparcg
[2018-09-28 22:19:23.251] [error] 2# 0x000000013F78FCA0 in casparcg
[2018-09-28 22:19:23.251] [error] 3# 0x000000013F792460 in casparcg
[2018-09-28 22:19:23.251] [error] 4# 0x000000013F5B4529 in casparcg
[2018-09-28 22:19:23.251] [error] 5# crt_atexit in ucrtbase
[2018-09-28 22:19:23.251] [error] 6# BaseThreadInitThunk in kernel32
[2018-09-28 22:19:23.251] [error] 7# RtlUserThreadStart in ntdll
[2018-09-28 22:19:23.251] [error]
[2018-09-28 22:19:23.251] [error]
[2018-09-28 22:19:23.251] [error] 0# 0x000000013F5B980E in casparcg
[2018-09-28 22:19:23.251] [error] 1# 0x000000013F5B913F in casparcg
[2018-09-28 22:19:23.251] [error] 2# 0x000000013FA8B3B7 in casparcg
[2018-09-28 22:19:23.251] [error] 3# _C_specific_handler in VCRUNTIME140
[2018-09-28 22:19:23.251] [error] 4# _FrameUnwindFilter in VCRUNTIME140
[2018-09-28 22:19:23.251] [error] 5# RtlRestoreContext in ntdll
[2018-09-28 22:19:23.251] [error] 6# 0x000000013F6A69BA in casparcg
[2018-09-28 22:19:23.251] [error] 7# 0x000000013F6A73F5 in casparcg
[2018-09-28 22:19:23.251] [error] 8# 0x000000013F68266B in casparcg
[2018-09-28 22:19:23.251] [error] 9# 0x000000013F685860 in casparcg
[2018-09-28 22:19:23.251] [error] 10# 0x000000013F5B4529 in casparcg
[2018-09-28 22:19:23.251] [error] 11# crt_atexit in ucrtbase
[2018-09-28 22:19:23.251] [error] 12# BaseThreadInitThunk in kernel32
[2018-09-28 22:19:23.251] [error] 13# RtlUserThreadStart in ntdll
[2018-09-28 22:19:23.251] [error]
[2018-09-28 22:19:23.289] [info] ffmpeg[udp://127.0.0.1:5001] Uninitialized.


#2

I believe the format flag needs to be behind the output destination, but I can’t say with 100% certainty. Also, I think 2.2 will ignore the -f flag and look for a -format flag.


#3

I think 2.2 will ignore the -f flag and look for a -format flag.

ahh i was using -f flag. after using -format streaming working fine thanks balte :slight_smile:

have you tried hevc streaming ? with -codec:v libx265?