mp4(H.265编码)转为本地RTSP流

目标:获得H265码流,要么通过在线网址,要么获得H265文件自己产生码流

  1. 在以下任意网址中下载得到H265编码的MP4文件
URL 复制代码
http://www.elecard.com/en/download/videos.html
http://ultravideo.cs.tut.fi/#testsequences
http://4k.cablelabs.com/](http://4k.cablelabs.com/
  1. 使用ffmpeg,把H265编码的mp4文件转码成RTSP流
FFMpeg 复制代码
//第一步:打开ffmpeg配套的meidamtx.exe

//第二步:使用ffmpeg命令进行本地推流
ffmpeg -re -stream_loop -1 -i H265.mp4 -c copy -f rtsp rtsp://127.0.0.1:8554/video
  1. 使用VLC查看视频是否正常。从结果来看,视频播放正常
VLC 复制代码
播放本地码流地址:rtsp://127.0.0.1:8554/video


相关推荐
CHB8 小时前
uni-app x 蒸汽模式 性能测试基准报告 Benchmark
uni-app·harmonyos
chenyingjian4 天前
鸿蒙|性能优化-概述与工具使用
harmonyos
二流小码农4 天前
鸿蒙开发:路由组件升级,支持页面一键创建
android·ios·harmonyos
TT_Close4 天前
【Flutter×鸿蒙】debug 包也要签名,这点和 Android 差远了
android·flutter·harmonyos
TT_Close4 天前
【Flutter×鸿蒙】FVM 不认鸿蒙 SDK?4步手动塞进去
flutter·swift·harmonyos
hqk4 天前
鸿蒙项目实战:手把手带你实现 WanAndroid 布局与交互
android·前端·harmonyos
TT_Close4 天前
【Flutter×鸿蒙】一个"插队"技巧,解决90%的 command not found
flutter·harmonyos
Hcourage6 天前
鸿蒙工程获取C/C++代码覆盖
harmonyos
二流小码农6 天前
鸿蒙开发:上传一张参考图片便可实现页面功能
android·ios·harmonyos
万少6 天前
HarmonyOS 开发必会 5 种 Builder 详解
前端·harmonyos