ffmpeg - 如何将任何 mp4 转换为 adv8dvbt23.ts 文件?

标签 ffmpeg mpeg mpeg2-ts dvb-t

我可以下载http://www.w6rz.net/adv8dvbt23.ts .dvbt sample ts files 的样本很多.

但是,我想转换我的 视频文件 TS文件对于dvbt。
首先,我查了谷歌,但我找不到任何答案。
我认为,这没有意义,或者,思维方式可能是错误的。

FFmpeg 可以用于这个吗?
但是,传输模式、QAM/64QAB、保护间隔没有任何参数。

最佳答案

FFmpeg can used for this? but, there is no any parmameter for Transmit mode, QAM / 64QAB, guard interval.



正如我所解释的 already :

ffmpeg doesn't know anything about RF things like Constellation type; it is just a tool to transcode between different video formats. .ts is for "transport stream", and it's the video container format that DVB uses. The GNU Radio transmit flowgraphs on the other hand know nothing about video things – all they do is take the bits from a file. So that file needs to be in a format that the receiver would understand, and that's why I instructed you to use FFMPEG with the parameters you need. Since I don't know which bitrate you're planning on transmitting, I can't help you with how to use ffmpeg



因此,您需要生成您的 DVB-T 接收器可以理解的视频数据,但更重要的是,您需要将它们放入确保恒定比特率的容器中。

正如您在 ham.stackexchange.com 关于该主题的问题的不同评论中指出的那样,您的主要示例来源将是 GNU Radio 自己的 gr-dtv 模块;当您查看 gnuradio/gr-dtv/examples/README.dvbt ,您将找到指向 https://github.com/drmpeg/dtv-utils 的链接, W6RZ 自己的工具:)

在那里,您将找到计算 MPEG 传输流所需的确切流比特率所需的工具。请记住,DVB-T 发射器必须以每秒恒定比特率进行传输,因此您的视频容器必须是恒定比特率的。这就是为什么传输流填充视频数据以实现恒定速率的原因。

然后,您将使用 ffmpeg 对视频进行转码并放入传输流容器中:
 ffmpeg -re -i inputvideo.mpeg \
        -vcodec mpeg2video \
        -s 720x576          #resolution; this is a good choice, since most TVs will deal with it \
        -r 25               #frames per second, use 25\
        -flags cgop+ilme -sc_threshold 1000000000 #MPEG codec options\
        -b:v 2M             #Video *codec data* bit rate (defines video quality). Must be lower than stream bit rate, so < muxrate-(audio bitrate)\
        -minrate:v 2M -maxrate:v 2M #enforce constant video bit rate\
        -acodec mp2 -ac 2 -b:a 192k #audio codec, quality and bitrate\
        -muxrate ${RATE FROM TOOL}
        -f mpegts #specify you want a MPEG Transport Stream container as output\
        outputfile.ts

关于ffmpeg - 如何将任何 mp4 转换为 adv8dvbt23.ts 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54843472/

相关文章:

java - 我如何获得适用于 Windows XP 的 Xuggler jar?

audio - MP3 存储库距离引用它的帧最远是多少?

c++ - 如何从 YUV 图像流生成 VBR 视频?

ffmpeg - 通过 FFmpeg 转码。设置起始 pcr 值

ios - HTML5 和 MP4 与 M2TS 容器

android - ffmpeg根据传感器数据旋转视频

c - Adobe alchemy 编译器问题 - 它生成 .l.bc 文件,如何将它们转换为 swc 文件?

ffmpeg - 如何使用 libavformat 连接 2 个具有相同编解码器的视频文件(重新混合)?

html - 为什么我的智能手机不能播放视频?

ffmpeg - 任何熟悉 ffmpeg 如何处理在 UDP 上接收到的乱序 MPEGTS 数据包的人