Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg rtsp_transport tcp not working when running on same machine / remote causes local to work #303

Open
t3therdev opened this issue Mar 1, 2023 · 1 comment

Comments

@t3therdev
Copy link

t3therdev commented Mar 1, 2023

Describe the bug

Openwrt 22.03.3, v4l2rtspserver 2.3

Running v4l2rtspserver on an embedded devices. streaming, running no errors.

When running ffmpeg from the local device/console rtsp over tcp does not work properly. ffmpeg connects but never recieves any frames. However, when running from any other pc on the local network it does work. Local rtsp over udp works fine with ffmpeg. **Also, if a remote ffmpeg connects, the local one will start to connect as well.

Working: -- Running LOCAL and remote using the IP
ffmpeg -i rtsp://localhost:554/stream -acodec copy -vcodec copy /tmp/lala.mp4
ffmpeg -i rtsp://192.168.1.200:554/stream -acodec copy -vcodec copy /tmp/lala.mp4

Not Working LOCAL , but does work remote.
ffmpeg -rtsp_transport tcp -i rtsp://localhost:554/stream -acodec copy -vcodec copy /tmp/lala.mp4
ffmpeg -rtsp_transport tcp -i rtsp://192.168.1.200:554/stream -acodec copy -vcodec copy /tmp/lala.mp4

we also tried the -I setting to force the interface.
all firewall rules are disabled and allowed (hence why it works over the network)

To Reproduce
Run v4l2rtspserver with usb camera h264
Try to connect with ffmpeg using rtsp_transport tcp
Does not connect
remote tcp it works.

Expected behavior
Expected that it will work on the same machine using TCP.

@t3therdev t3therdev changed the title ffmpeg rtsp_transport tcp not working when running on same machine / remote does ffmpeg rtsp_transport tcp not working when running on same machine / remote causes local to work Mar 6, 2023
@mpromonet
Copy link
Owner

Hi,

You should get more information enabling ffmpeg logs, or using network tool like tcpdump or tshark.

Best Regards,
Michel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants