ffmpeg可以读取视频流,但VLC可以读取它

发布于 2025-01-30 21:06:34 字数 1923 浏览 3 评论 0 原文

我有一个可以使用VLC访问的视频流,但无法使用FFMPEG访问。在我使用新计算机(但使用相同的相机)移动之前,这曾经工作过。

这是ffprobe命令(构成ip addr):

ffprobe -hide_banner -rtsp_transport tcp“ rtsp:// root: [email  prectioned] :80/axis-media/media.amp?event = on& eventtopic = onvif = onvif:videoSource/videoSource/videoSource/tiveoSource/motialityarm/return return return return return

returns

rtsp://root:[email protected]:80/axis-media/media.amp: Invalid data found when processing input

armararm/code>在这个问题上找不到太多的发现:

  • 我尝试将其关闭,然后再次
  • 浏览这个 github发行,但我知道它没有解决方案
  • 支持TCP,因为它与上次工作时的命令相同。

有什么想法我如何让FFMPEG阅读流?

编辑:下面的报告输出,恐怕不是很有帮助:

ffprobe started on 2022-05-21 at 06:27:54
Report written to "ffprobe-20220521-062754.log"
Log level: 48
Command line:
ffprobe -hide_banner -report -rtsp_transport tcp 
"rtsp://root:pass@IPADDR:80/axis-media/media.amp? 
event=on&eventtopic=onvif:VideoSource/MotionAlarm/."
[tcp @ 0000023967a2f8c0] No default whitelist set
[tcp @ 0000023967a2f8c0] Original list of addresses:
[tcp @ 0000023967a2f8c0] Address IPADDR port 80
[tcp @ 0000023967a2f8c0] Interleaved list of addresses:
[tcp @ 0000023967a2f8c0] Address IPADDR port 80
[tcp @ 0000023967a2f8c0] Starting connection attempt to IPADDR port 80
[tcp @ 0000023967a2f8c0] Successfully connected to IPADDR port 80
rtsp://root:pass@IPADDR:80/axis-media/media.amp?event=on&eventtopic=onvif:VideoSource/MotionAlarm/.: Invalid data found when processing input

I have a video stream that I can access using VLC, but can't access with ffmpeg. This used to work before I moved onto using a new computer (but with same camera).

This is the ffprobe command (made up IP addr):

ffprobe -hide_banner -rtsp_transport tcp "rtsp://root:[email protected]:80/axis-media/media.amp?event=on&eventtopic=onvif:VideoSource/MotionAlarm/."

It returns

rtsp://root:[email protected]:80/axis-media/media.amp: Invalid data found when processing input

I've not found very much on this problem:

  • I've tried turning it off and on again
  • I looked through this github issue but there were no solutions
  • I know it supports TCP since it's the same command as when it worked last time.

Any ideas how I can get ffmpeg to read the stream?

Edit: Output of -report below, I'm afraid it's not very helpful:

ffprobe started on 2022-05-21 at 06:27:54
Report written to "ffprobe-20220521-062754.log"
Log level: 48
Command line:
ffprobe -hide_banner -report -rtsp_transport tcp 
"rtsp://root:pass@IPADDR:80/axis-media/media.amp? 
event=on&eventtopic=onvif:VideoSource/MotionAlarm/."
[tcp @ 0000023967a2f8c0] No default whitelist set
[tcp @ 0000023967a2f8c0] Original list of addresses:
[tcp @ 0000023967a2f8c0] Address IPADDR port 80
[tcp @ 0000023967a2f8c0] Interleaved list of addresses:
[tcp @ 0000023967a2f8c0] Address IPADDR port 80
[tcp @ 0000023967a2f8c0] Starting connection attempt to IPADDR port 80
[tcp @ 0000023967a2f8c0] Successfully connected to IPADDR port 80
rtsp://root:pass@IPADDR:80/axis-media/media.amp?event=on&eventtopic=onvif:VideoSource/MotionAlarm/.: Invalid data found when processing input

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文