|
【技术讨论】
ffmedia不能正常运行python demo
发表于 2024-5-11 15:14:12
浏览:1358
|
回复: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不能正常打开相机
- Firefly FFMedia: v2.2.4
- input source is a rtsp url
- INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
- INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
- INFO: 16ModuleRtspClient: init: rtsp para w h: 1280 720, ws hs: 1280 720, format: H264
- wait...INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
- INFO: 10MppDecoder: getTimeoutSample: 0x2d66dd80 frame info changed 1 error 0 discard 0
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 12ModuleMppDec: work: wait for productor ModuleRtspClient timeout
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- INFO: 10RTSPClient: teardownMediaSession: teardown session success
- INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
- INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
- INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 12ModuleMppDec: work: wait for productor ModuleRtspClient timeout
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- INFO: 10RTSPClient: teardownMediaSession: teardown session success
- INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
- INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
- INFO: ff_media: parseRTSPMessage: RTSP message was fragmented
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 12ModuleMppDec: work: wait for productor ModuleRtspClient timeout
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- ERROR: 10RTSPClient: getOutputDataTimeOut: wait for session to get buffer time out
- INFO: 10RTSPClient: teardownMediaSession: teardown session success
- INFO: ff_media: connectToServer: connected to server 192.168.0.131:554
- INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
- 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
能正常打开相机
|
|