<p>I found the following way, when trying to concatenate videostreams from the dashcam. Note: the streams had no random seek/random access</p>
<p>On Windows, perform the following,</p>
<pre><code>copy /b file1.264 + file2.264 + file3.264 result.264
</code></pre>
<p>The command would byte-merge the raw streams, which works out well. If no random seek/random access feature existed, then it won't appear; but upon the uploading to YouTube, the random seek/random access feature was re-added.</p>
<p>Inspired by <a href="https://superuser.com/a/1031182">this source</a></p>

CC BY-SA 4.0
2022-01-17T17:46:44.377Z
YT encodes, so the random seek wasn't "added" *per se*. The uploaded video was encoded into a new file with the feature. But that the file successfully uploads to YT is great!
user3643
CC BY-SA 4.0
2022-01-13T02:25:14.190Z
2022-01-13T02:25:14.190Z
TAbdiukov
<p>How does one go about concatenating several H.264 raw streams into one without reencoding or quality loss?</p>
<p>The streams lacked any advanced features and represented contuous recording. There is no random seek/random access feature, either.</p>

<h.264><concatenation><lossless>
Concatenate H.264 raw but basic streams without reencoding or quality loss
TAbdiukov
# Concatenate H.264 raw but basic streams without reencoding or quality loss

(Asked by: username_0 on 2022-01-13)

How does one go about concatenating several H.264 raw streams into one without reencoding or quality loss?

The streams lacked any advanced features and represented contuous recording. There is no random seek/random access feature, either.

**Tags:** h.264, concatenation, lossless


---

## 1 answers

### Answer by username_0 on 2022-01-13. Score: 2

I found the following way, when trying to concatenate videostreams from the dashcam. Note: the streams had no random seek/random access
On Windows, perform the following,
copy /b file1.264 + file2.264 + file3.264 result.264

The command would byte-merge the raw streams, which works out well. If no random seek/random access feature existed, then it won't appear; but upon the uploading to YouTube, the random seek/random access feature was re-added.
Inspired by this source

> **Comments:**
> **username_1**: YT encodes, so the random seek wasn't "added" *per se*. The uploaded video was encoded into a new file with the feature. But that the file successfully uploads to YT is great!  

---

