<p>Do not use ts, use mp4. MPEG-TS (.ts) and mkv default to VFR, while mp4 defaults to cfr. <a href="https://trac.ffmpeg.org/wiki/ChangingFrameRate" rel="nofollow noreferrer">https://trac.ffmpeg.org/wiki/ChangingFrameRate</a></p>
<p>That is this bug. <a href="https://trac.ffmpeg.org/ticket/4768" rel="nofollow noreferrer">https://trac.ffmpeg.org/ticket/4768</a></p>

CC BY-SA 4.0
2021-08-15T12:47:16.627Z
2021-08-15T12:47:16.627Z
Валерий Заподовников
<p>I've been trying to do this conversion for a couple of days reading through forums</p>
<p><em><strong>ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf &quot;fps=25&quot;-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1.ts</strong></em></p>
<p>I've tried the below flags found in other forums
-r 25
-vf fps=25
-filter:v fps=25
-filter:v fps=fps=25</p>
<p>I then read the file using mediainfo and keep getting the same result;
Frame rate mode                          : VFR
Frame rate mode                          : Variable
Frame rate                               : 46.875
Frame rate                               : 46.875 FPS (1024 SPF)</p>

CC BY-SA 4.0
2021-03-02T22:00:21.247Z
what is the `.ts` video format, and how does it compare to `.mts`?
user610620
CC BY-SA 4.0
2021-03-03T08:20:55.763Z
@user610620 Please don't start a side-topic discussion in the comments. The difference between ts and mts is irrelevant here.
Matt
CC BY-SA 4.0
2023-05-12T15:24:57.967Z
Seems like an XY problem. That is, you have problem X, but you erroneously think solution Y works well. The error here is likely that you probably don't want a .ts file.
user3643
<ffmpeg><mp4><transcoding><libx264><25fps>
I want to convert .mp4 to .ts using H264 at constant framerate 25fps
losing_my_marbles
# I want to convert .mp4 to .ts using H264 at constant framerate 25fps

(Asked by: username_0 on 2021-03-02)

I've been trying to do this conversion for a couple of days reading through forums

***ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf "fps=25"-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1.ts***

I've tried the below flags found in other forums
-r 25
-vf fps=25
-filter:v fps=25
-filter:v fps=fps=25

I then read the file using mediainfo and keep getting the same result;
Frame rate mode : VFR
Frame rate mode : Variable
Frame rate : 46.875
Frame rate : 46.875 FPS (1024 SPF)

**Tags:** ffmpeg, mp4, transcoding, libx264, 25fps

> **Comments:**
> **username_1**: what is the `.ts` video format, and how does it compare to `.mts`?  
> **username_2**: @username_1 Please don't start a side-topic discussion in the comments. The difference between ts and mts is irrelevant here.  
> **username_3**: Seems like an XY problem. That is, you have problem X, but you erroneously think solution Y works well. The error here is likely that you probably don't want a .ts file.  

---

## 1 answers

### Answer by username_4 on 2021-08-15. Score: 1

Do not use ts, use mp4. MPEG-TS (.ts) and mkv default to VFR, while mp4 defaults to cfr. <https://trac.ffmpeg.org/wiki/ChangingFrameRate>

That is this bug. <https://trac.ffmpeg.org/ticket/4768>


---

