Firefly开源社区

打印 上一主题 下一主题

[技术讨论] ffmedia不能正常运行python demo

16

积分

0

威望

0

贡献

技术小白

积分
16

ffmedia不能正常运行python demo

发表于 2024-5-11 15:14:12      浏览:1355 | 回复:0        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 官方提供的固件
  • 固件文件名称: ROC-RK3588S-PC_Ubuntu20.04-Xfce-r3115_v1.3.0c_2401
  • 固件下载地址: 官方下载地址
  • Log日志: ffmedia.zip
问题描述及复现步骤:
本帖最后由 oranger 于 2024-5-11 15:38 编辑

我按照wifi的进行了编译,并且安装了python版本
git clone https://gitlab.com/firefly-linux/ffmedia_release# 安装所需环境apt install gcc g++ make cmakeapt install -y libasound2-dev libopencv-dev libdrm-dev libfdk-aac-dev# 如果需要编译python接口库,并系统默认python是3.8,则安装3.8的软件包apt install -y python3.8-dev python3.8-venv# 编译cd ff_mediamkdir build; cd buildcmake ../makepip3 install ff_pymedia-2.2.4-cp38-cp38-linux_aarch64.whl我将demo/demo_opencv.py中
arser.add_argument("-i", "--input_source", dest='input_source', type=st, help="input source")
修改为
arser.add_argument("-i", "--input_source", dest='input_source', type=str, default="rtsp://192.168.0.131:554/test", help="input source")
执行python3 demo_opencv.py不能正常打开相机

  1. Firefly FFMedia: v2.2.4
  2. input source is a rtsp url
  3. INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
  4. INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
  5. INFO: 16ModuleRtspClient: init: rtsp para w h: 1280 720, ws hs: 1280 720, format: H264
  6. wait...INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
  7. INFO: 10MppDecoder: getTimeoutSample: 0x2d66dd80 frame info changed 1 error 0 discard 0
  8. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  9. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  10. ERROR: 12ModuleMppDec: work: wait for productor ModuleRtspClient timeout
  11. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  12. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  13. INFO: 10RTSPClient: teardownMediaSession: teardown session success
  14. INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
  15. INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
  16. INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
  17. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  18. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  19. ERROR: 12ModuleMppDec: work: wait for productor ModuleRtspClient timeout
  20. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  21. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  22. INFO: 10RTSPClient: teardownMediaSession: teardown session success
  23. INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
  24. INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
  25. INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
  26. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  27. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  28. ERROR: 12ModuleMppDec: work: wait for productor ModuleRtspClient timeout
  29. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  30. ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
  31. INFO: 10RTSPClient: teardownMediaSession: teardown session success
  32. INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
  33. INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
  34. INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
复制代码
使用gst-launch-1.0 rtspsrc location=rtsp://192.168.0.131:554/test ! rtph264depay ! h264parse ! mppvideodec ! autovideosink sync=false
能正常打开相机


ffmedia.txt

2.42 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

ffmedia.zip

617 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表