GithubHelp home page GithubHelp logo

rtsprecorder's Introduction

RtspRecorder

适用于 IPTV 的 RTSP 录制命令行工具. 目前仅实现了MP2T/TCP传输.

RtspRecorder
  适用于 IPTV 的 RTSP 录制工具.

Usage:
  RtspRecorder [options]

Options:
  -i, --input <input> (REQUIRED)  设置输入rtsp://链接.
  -t, --duration <duration>       设置输出长度. [hh:mm:ss]
  -o, --output <output>           设置输出文件. (使用 - 以输出到stdout) [default: auto]
  --program <program>             设置流标题. (当--output为auto时生效) [default: Record]
  --detail                        设置是否输出详细交互信息 [default: False]
  --playback <playback>           设置回看, 格式yyyyMMddHHmmss[-<yyyyMMddHHmmss>]
  --version                       Show version information
  -?, -h, --help                  Show help and usage information

Output

Connecting...Connected.
Connecting...Connected.
Output... Record_2021-11-14_03-03-09-819.ts
Program 1
  Metadata:
    service_name    :  JIANGSU-HD
    service_provider:  JSBC
Receiving... [live] [00m31s] [52.09MB]

Examples

快速上手

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil"

程序开始录制TS流并在当前路径写入Record_yyyy-MM-dd_HH-mm-ss-fff.ts文件

设置输出路径

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil" -o D:\MyRecord\test.ts

程序开始录制TS流并写入D:\MyRecord\test.ts文件

设置流名称

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil" --program "HNTV卫星源码"

程序开始录制TS流并在当前路径写入HNTV卫星源码_yyyy-MM-dd_HH-mm-ss-fff.ts文件

录制20分钟后退出录制

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil" -t 20:00

从某个时间点开始录制

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil" --playback 20211111190000

(此特性可能不被支持) 程序修改RTSP链接以时移至2021年11月11日19点00分00秒并开始录制

录制指定时间段

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil" --playback 20211111190000-20211111203000

(此特性可能不被支持) 程序修改RTSP链接以录制2021年11月11日19点00分00秒2021年11月11日20点30分00秒的内容

管道输出

RtspRecorder -i "rtsp://127.0.0.1/PLTV/demo.smil" -o - | ffmpeg -i - -map 0 -c copy OUTPUT.mp4

录制并使用ffmpeg封装到mp4容器

rtsprecorder's People

Contributors

nilaoda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.