上云api推送的RTMP直播流可以转成flv吗? 或者只推送rtmp流

Completed

Comments

6 comments

  • L

    还有为什么明明 ws mqtt可以连接成功但是ws模块加载失败 ws模块的加载到底指的是6789端口的(前端)还是mqtt的ws

    0
    Comment actions Permalink
  • L
    可以收到 一些osd消息但是报错Please remount the payload, or restart the drone. Otherwise the data of the payload will not be received.
    是什么原因呢?是ws连接失败导致的吗?
    0
    Comment actions Permalink
  • L

    2023-08-31 12:18:28.703 DEBUG 16012 --- [pool-1-thread-9] c.d.s.c.m.handler.InboundMessageRouter   : received topic :thing/product/1ZNBL2800C01ED/osd      payload :{"bid":"00000000-0000-0000-0000-000000000000","data":{"50-65535-0":{"gimbal_pitch":0,"gimbal_roll":0,"gimbal_yaw":174.500000,"payload_index":"50-65535-0","version":1,"zoom_factor":0.828076},"attitude_head":72.900000,"attitude_pitch":0.800000,"attitude_roll":-0.200000,"battery":{"batteries":[{"capacity_percent":90,"firmware_version":"01.02.05.44","index":0,"loop_times":41,"sn":"1Z6PJAFFA200FN","sub_type":0,"temperature":38.100000,"type":0,"voltage":50712},{"capacity_percent":90,"firmware_version":"01.02.05.44","index":1,"loop_times":42,"sn":"1Z6PJ8RFA200NA","sub_type":0,"temperature":36.300000,"type":0,"voltage":50748}],"capacity_percent":90,"landing_power":5,"remain_flight_time":0,"return_home_power":14},"elevation":0,"firmware_version":"05.01.0100","gear":1,"height":-0.100479,"home_distance":60.041122,"horizontal_speed":0,"latitude":22.542893,"longitude":113.958324,"mode_code":0,"position_state":{"gps_number":15,"is_fixed":0,"quality":5,"rtk_number":0},"storage":{"total":0,"used":0},"total_flight_distance":0,"total_flight_time":0,"track_id":"","vertical_speed":0,"wind_direction":0,"wind_speed":0},"tid":"00000000-0000-0000-0000-000000000000","timestamp":1693484308606,"gateway":"1ZMBJA700301EB"}
    2023-08-31 12:18:28.702 DEBUG 16012 --- [pool-1-thread-4] c.d.s.c.m.handler.InboundMessageRouter   : received topic :thing/product/1ZNBL2800C01ED/events      payload :{"bid":"00000000-0000-0000-0000-000000000000","data":{"event":"hms","method":"hms","output":{"codes":[{"component_index":0,"id":440536003,"level":2,"sensor_index":0},{"component_index":0,"id":440536130,"level":2,"sensor_index":0},{"component_index":0,"id":469763076,"level":2,"sensor_index":0},{"component_index":0,"id":469765379,"level":1,"sensor_index":0}]}},"tid":"00000000-0000-0000-0000-000000000000","timestamp":1693484308606,"gateway":"1ZMBJA700301EB"}
    hererererererererererererer
    hererererererererererererer1
    OsdSubDeviceReceiver(attitudeHead=72.9, attitudePitch=0.8, attitudeRoll=-0.2, elevation=0.0, battery=BatteryReceiver(batteries=[BatteryStateReceiver(firmwareVersion=01.02.05.44, index=0, loopTimes=41, capacityPercent=90, sn=1Z6PJAFFA200FN, subType=0, temperature=38.1, type=0, voltage=50712), BatteryStateReceiver(firmwareVersion=01.02.05.44, index=1, loopTimes=42, capacityPercent=90, sn=1Z6PJ8RFA200NA, subType=0, temperature=36.3, type=0, voltage=50748)], capacityPercent=90, landingPower=5, remainFlightTime=0, returnHomePower=14), firmwareVersion=05.01.0100, gear=1, height=-0.100479, homeDistance=60.041122, horizontalSpeed=0.0, latitude=22.542893, longitude=113.958324, modeCode=IDLE, totalFlightDistance=0.0, totalFlightTime=0.0, verticalSpeed=0.0, windDirection=0.0, windSpeed=0.0, positionState=PositionStateReceiver(isCalibration=null, gpsNumber=15, isFixed=0, quality=5, rtkNumber=0), payloads=null, storage=StorageReceiver(total=0, used=0), nightLightsState=null, heightLimit=null, distanceLimitStatus=null, obstacleAvoidance=null, activationTime=null, cameras=null, rcLostAction=null, rthAltitude=null, totalFlightSorties=null, exitWaylineWhenRcLost=null)
    hererererererererererererer2
    2023-08-31 12:18:28.706  WARN 16012 --- [pool-1-thread-5] c.d.s.m.s.impl.DeviceOSDServiceImpl      : Please remount the payload, or restart the drone. Otherwise the data of the payload will not be received.

    0
    Comment actions Permalink
  • DJI Developer Support
    上云API中开启直播,需要调用开启直播指令,在下发直播指令时会将直播参数传递给设备端。设备收到参数后,会往指定的流媒体服务器中推送直播流。如果是以rtmp协议开启直播,则设备端会以rtmp协议将直播流推送给rtmp流媒体服务器。 推送的是rtmp协议的直播流。开发者可以解析rtmp视频流获得flv数据。 时间戳是示例代码的处理,开发者可以修改。
    0
    Comment actions Permalink
  • L

    可是好像后端代码会吧rtmp替换成webrtc 这个需要更改吗?上云api是会往服务器推rtmp流吗?我用vlc直接读rtmp流读不到

    0
    Comment actions Permalink
  • DJI Developer Support
    前端无法播放rtmp视频流,demo的流媒体服务器进行了处理,会将rtmp流转换为rtc流。开发者如果有业务需求们可以进行更改。 通过上云API以rtmp协议开启直播,设备会往rtmp流媒体服务器中推送rtmp流。请检查直播开启是成功的。在state主题,设备也会上报直播状态信息live_status,检查是否有报错。
    0
    Comment actions Permalink

Please sign in to leave a comment.