<p>FFmpeg is simply telling you the starting timestamp as parsed from the input. MPEG-TS is a transport stream format, used to convey television broadcasts..etc, having no global header, and can be sliced at ~arbitrary points. There are timestamp packets (PCR) at regular intervals, and ffmpeg is showing you the timestamp of the earliest packet.</p>

<p>If you want your TS to have a start time of 0, you'll have to remux it.</p>

<pre><code>ffmpeg -i myRecordedFile.ts -map 0 -c copy -muxpreload 0 -muxdelay 0 newFile.ts
</code></pre>

<p>..but this is unnecessary.</p>

CC BY-SA 4.0
2020-10-08T20:30:23.197Z
I think `ffmpeg` will make the starting timestamp 0 even without `-map` and the mux* options, at least for single audio streams, unless you use `-copyts`.
jarno
CC BY-SA 4.0
2019-04-01T12:29:14.877Z
2019-04-01T12:29:14.877Z
Gyan
<p>I am recording a live stream to .ts file. But when I run this file through ffmpeg using</p>

<pre><code>ffmpeg -i myRecordedFile.ts
</code></pre>

<p>it gives me wrong start time which is way out of the range. For example, my file's duration is 45 minutes but ffmpeg returns start 18910.272911</p>

<p><a href="https://i.sstatic.net/0TAHN.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0TAHN.png" alt="enter image description here"></a></p>

<p>Is there a way to change the start value of a video file? </p>

<ffmpeg><video-recording>
How to change start time using ffmpeg?
SZT
# How to change start time using ffmpeg?

(Asked by: username_0 on 2019-04-01)

I am recording a live stream to .ts file. But when I run this file through ffmpeg using
ffmpeg -i myRecordedFile.ts

it gives me wrong start time which is way out of the range. For example, my file's duration is 45 minutes but ffmpeg returns start 18910.272911

Is there a way to change the start value of a video file?

**Tags:** ffmpeg, video-recording


---

## 1 answers

### Answer by username_1 on 2019-04-01. Score: 2

FFmpeg is simply telling you the starting timestamp as parsed from the input. MPEG-TS is a transport stream format, used to convey television broadcasts..etc, having no global header, and can be sliced at ~arbitrary points. There are timestamp packets (PCR) at regular intervals, and ffmpeg is showing you the timestamp of the earliest packet.
If you want your TS to have a start time of 0, you'll have to remux it.
ffmpeg -i myRecordedFile.ts -map 0 -c copy -muxpreload 0 -muxdelay 0 newFile.ts

..but this is unnecessary.

> **Comments:**
> **username_2**: I think `ffmpeg` will make the starting timestamp 0 even without `-map` and the mux* options, at least for single audio streams, unless you use `-copyts`.  

---

