|
发表于 2024-3-4 11:33:26
只看该作者
26#
本帖最后由 wuyq 于 2024-3-4 11:35 编辑
按照要求测试结果:
~~结论~~
① rtsp mp4文件播放正常。
② 找了2段mp4本地文件,执行后 新的mp4文件均绿屏。
~~详细命令行~~
------20240304 11:20 out1.mp4【打开正常】
- root@firefly:/home/ap/cetccity/wuyiqi/ffmediaTest# python3 demo.py -i 'rtsp://admin:js123456@192.168.8.213:554/cam/realmonitor?channel=1&subtype=0' -e '0' -m 'out1.mp4'
- Firefly FFMedia: v2.2.3
- input source is a rtsp url
- INFO: ff_media: connectToServer: connected to server 192.168.8.213:554
- WARN: ff_media: sendOptionsCmd: cannot handle OPTIONS response: RTSP/1.0 401 Unauthorized
- INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
- INFO: ff_media: RTPSource: RTPSock current buffer size is(425984)
- INFO: 16ModuleRtspClient: init: rtsp para w h: 1920 1080, ws hs: 1920 1080, format: H265
- ==================Pipe===================
- ModuleRtspClient (H265 1920x1080)
- |--->ModuleMppDec (NV12 1920x1080)
- |--->ModuleMppEnc (H264 1920x1080)
- |--->ModuleFileWriter (Unknow V4L2 Format 0x0)
- wait...INFO: 10MppDecoder: getTimeoutSample: 0x5ea22a0 frame info changed 1 error 0 discard 0
- INFO: 10MppEncoder: putWithBuffers: Input frame para is changed, redo init
- q
- ==================Summary================
- ModuleRtspClient (In Full: 0, Out Empty: 479)
- |--->ModuleMppDec (In Full: 0, Out Empty: 458)
- |--->ModuleMppEnc (In Full: 0, Out Empty: 461)
- |--->ModuleFileWriter (In Full: 0, Out Empty: 0)
- INFO: 10RTSPClient: teardownMediaSession: teardown session success
复制代码
------20240304 11:22 out2.mp4【打开不正常】
- root@firefly:/home/ap/cetccity/wuyiqi/ffmediaTest# python3 demo.py -i 'yanhuo.mp4' -o '1280x720' -e '0' -m 'out2.mp4'
- Firefly FFMedia: v2.2.3
- input source is a regular file.
- INFO: 16ModuleFileReader: init: Get Video Resolution( 2560 x 1436 )
- rga_api version 1.3.0_[0] (RGA is compiling with meson base: $PRODUCT_BASE)
- ==================Pipe===================
- ModuleFileReader (H264 2560x1436)
- |--->ModuleMppDec (NV12 2560x1436)
- |--->ModuleRga (NV12 1280x720)
- |--->ModuleMppEnc (H264 1280x720)
- |--->ModuleFileWriter (Unknow V4L2 Format 0x0)
- wait...INFO: 10MppDecoder: getTimeoutSample: 0x8ba7d20 frame info changed 1 error 0 discard 0
- INFO: 16ModuleFileReader: work: Produce EOS
- ERROR: 16ModuleFileWriter: work: wait for productor ModuleMppEnc timeout
- q
- ==================Summary================
- ModuleFileReader (In Full: 0, Out Empty: 49)
- |--->ModuleMppDec (In Full: 1720, Out Empty: 8)
- |--->ModuleRga (In Full: 200, Out Empty: 508)
- |--->ModuleMppEnc (In Full: 14, Out Empty: 863)
- |--->ModuleFileWriter (In Full: 0, Out Empty: 0)
复制代码
------20240304 11:26 out3.mp4【打开不正常】
- root@firefly:/home/ap/cetccity/wuyiqi/ffmediaTest# python3 demo.py -i 'mj.mp4' -o '1280x720' -e '0' -m 'out3.mp4'
- Firefly FFMedia: v2.2.3
- input source is a regular file.
- INFO: 16ModuleFileReader: init: Get Video Resolution( 540 x 960 )
- rga_api version 1.3.0_[0] (RGA is compiling with meson base: $PRODUCT_BASE)
- ==================Pipe===================
- ModuleFileReader (H264 540x960)
- |--->ModuleMppDec (NV12 540x960)
- |--->ModuleRga (NV12 1280x720)
- |--->ModuleMppEnc (H264 1280x720)
- |--->ModuleFileWriter (Unknow V4L2 Format 0x0)
- wait...INFO: 10MppDecoder: getTimeoutSample: 0x4f998e0 frame info changed 1 error 0 discard 0
- INFO: 16ModuleFileReader: work: Produce EOS
- ERROR: 16ModuleFileWriter: work: wait for productor ModuleMppEnc timeout
- q
- ==================Summary================
- ModuleFileReader (In Full: 0, Out Empty: 434)
- |--->ModuleMppDec (In Full: 355, Out Empty: 7)
- |--->ModuleRga (In Full: 212, Out Empty: 7)
- |--->ModuleMppEnc (In Full: 339, Out Empty: 347)
- |--->ModuleFileWriter (In Full: 0, Out Empty: 0)
复制代码 |
|