Closed jiangxizhanzhi closed 3 months ago
i find the reason。 there have the same error inssue #975
to enable ffmpeg rtsp_transport tcp, I modify ingest part "ffmpeg ./objs/ffmpeg/bin/ffmpeg " to "ffmpeg './objs/ffmpeg/bin/ffmpeg -rtsp_transport tcp' "
this cause the final ffmpeg command has grammer error。
Why i convert "ffmpeg ./objs/ffmpeg/bin/ffmpeg " to "ffmpeg './objs/ffmpeg/bin/ffmpeg -rtsp_transport tcp' "? Because when I only add "rtsp_transport tcp" in the ingest engine part, it doesn't work。 I see the final ffmpeg command don't contain "rtsp_transport tcp"。
the engine config like this (I get from the wiki):
engine {
# @see enabled of transcode engine.
# if disabled or vcodec/acodec not specified, use copy.
# default: off.
enabled false;
perfile {
rtsp_transport tcp;
}
# output stream. variables:
# [vhost] current vhost which start the ingest.
# [port] system RTMP stream port.
output rtmp://10.100.27.1:[port]/live?vhost=[vhost]/camera_1;
}
but if I modify to this:
engine {
# @see enabled of transcode engine.
# if disabled or vcodec/acodec not specified, use copy.
# default: off.
enabled on;
perfile {
rtsp_transport tcp;
}
vcodec copy;
acodec copy;
# output stream. variables:
# [vhost] current vhost which start the ingest.
# [port] system RTMP stream port.
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/fucktx;
}
the perfile config content worked。so I don't need modify "ffmpeg ./objs/ffmpeg/bin/ffmpeg " to "ffmpeg './objs/ffmpeg/bin/ffmpeg -rtsp_transport tcp' " and bypass the bug I describe upper.
the inssue #975 has the same problem, but was closed。
Seems no need to fix.
!!! Before submitting a new bug report, please ensure you have searched for any existing bugs and utilized the
Ask AI
feature at https://ossrs.io or https://ossrs.net (for users in China). Duplicate issues or questions that are overly simple or already addressed in the documentation will be removed without any response.Describe the bug A clear and concise description of what the bug is.
this is the log ffmpeg-ingest-defaultVhost-live-camera_1.log main content。
redirect error and normal output to the log file 。 but the cli grammar has wrong。there shouldn't has space between '1' and '>', '2' and '>'
this is my srs.conf。 I start the srs server by docker。
Version my srs server version is 5.0.210
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.