Firefly开源社区

标题: ffmedia不能正常运行python demo [打印本页]

作者: oranger    时间: 2024-5-11 15:14
标题: ffmedia不能正常运行python demo
本帖最后由 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
能正常打开相机


tchip_askquestions

ffmedia.txt

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

ffmedia.zip

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






欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1