Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-15T12:47:16.627Z
Answers.LastActivityDate: 2021-08-15T12:47:16.627Z
Answers.UserDisplayName: Валерий Заподовников
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-02T22:00:21.247Z
Comments.Text: what is the `.ts` video format, and how does it compare to `.mts`?
Comments.UserDisplayName: user610620
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-03T08:20:55.763Z
Comments.Text: @user610620 Please don't start a side-topic discussion in the comments. The difference between ts and mts is irrelevant here.
Comments.UserDisplayName: Matt
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-12T15:24:57.967Z
Comments.Text: 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.
Comments.UserDisplayName: user3643
Tags: <ffmpeg><mp4><transcoding><libx264><25fps>
Title: I want to convert .mp4 to .ts using H264 at constant framerate 25fps
UserDisplayName: losing_my_marbles
ThreadText: # 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>
  
  
  ---
  
  