如何像 youtube 那样编码(压缩)视频?

How to encode(compress) video like youtube does?

是否有 compressor/encoder 以与 youtube 完全相同的格式对视频进行编码?

我想要实现的是,我的视频(使用我的典型转换器软件转换为与 Youtube 视频 (mp4/AVC 10/MPEG 4) 完全相同的格式)与 youtube-video 无缝合并(没有重新编码,无需非线性编辑器,如 MKVTOOLBOX)...

虽然格式相同,但 yt 视频似乎只能与其他 yt 视频本地合并,而不是来自我电脑的视频。

我想你的意思是你想连接视频文件。

有一些关于使用 ffmpeg 连接的优秀帖子,我相信您已经知道,例如:

还有关于连接的很好的 ffmpeg 文档解释了何时需要编码以及何时不需要,正如我猜您已经看到的那样:

对于您的情况,因为您想避免任何编码或解码,所以您可以连接的视频类型受到限制。例如,来自 ffmpeg 文档:

There are two methods within ffmpeg that can be used to concatenate files of the same type: the concat ''demuxer'' and the concat ''protocol''. The demuxer is more flexible - it requires the same codecs, but different container formats can be used; and it can be used with any container formats, while the protocol only works with a select few containers. However, the concat protocol is available in older versions of ffmpeg, where the demuxer isn't. The demuxer also requires that the inputs have a consistent bitrate setting, the concat protocol is more flexible in this regard.

您将面临的问题是,当您达到这种详细程度时,YouTube 视频没有单一格式 - 例如,即使您在 YouTube 上观看的单个视频现在通常也会以不同的格式提供比特率以匹配您当前的网络条件。

同样,不同的视频可能有不同的帧率等

如果您真的必须避免在串联阶段进行编码,您可能会发现自己不得不询问要合并的 YouTube 视频,然后根据具体情况调整视频文件以匹配它(这可能无论如何都涉及编码)。