0

Is there any compressor/encoder, that encodes video exactly in same format as youtube does?

All I wanted to achieve, is that my video (converted to exactly same format as Youtube video (mp4/AVC 10/MPEG 4) with my typical converter software) to merge seamlessly with youtube-video (without re-encoding, without NON-LINEAR EDITORS, like MKVTOOLBOX)...

Although formats are same, yt video is only seems natively merge-able with another yt-videos, not the videos from my pc.

T.Todua
  • 53,146
  • 19
  • 236
  • 237

1 Answers1

1

I think you mean that you want to concatenate the video files.

There are some excellent posts on concatenating with ffmpeg as I am sure you are aware, for example:

And there is also good ffmpeg documentation on concatenation explain when you need to encode and when you don't, again as I am guessing you have already seen:

For your case, because you want to avoid any encoding or decoding, you are limited in the types of video you can concatenate. For example, from the ffmpeg documentation:

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.

The problem you are going to face is that there is no single format for YouTube videos when you get to this level of detail - for example even a single video that you view on YouTube will generally these days be available in different bit rates to match your current network conditions.

Similarly, different videos may have different frame rates, etc.

If you really have to avoid encoding at the concatenation stage you may find yourself having to interrogate the YouTube video you want to merge with, and then adjusting your video file to match it on a case by case basis (which may involved encoding anyway).

Community
  • 1
  • 1
Mick
  • 24,231
  • 1
  • 54
  • 120
  • I like the last sentence much, but please explain: how to adjust my video file to match it on a case by case? – T.Todua Mar 09 '17 at 14:09
  • Actually, you probably won't like it when I explain it better! The 'adjusting' part may require encoding depending on the video. If you look at the ffmpeg link and some of your videos you may get a feel. For example if you want to use demux you may need to change the bitrate of your video. Unfortunately, working with videos is often processing expensive. – Mick Mar 09 '17 at 14:22