<p>I have a video-only stream that I removed the audio from without re-encoding. The video information is as follows.</p>
<p><code>hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608</code></p>
<p>Frame information is as such:
<code>23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)</code>.</p>
<p>I understand that this is already in a compressed format, so my goal is to prevent any further generational loss/not re-encoding in this process. I am trying to cut the video stream into clips, between <strong>actual</strong> video frames, to get frame-accurate clips.</p>
<p><em>I am only used to working with video sequences as lossless frames stored inside of directories</em>, I am not used to working with actual streams or containers or anything of the sort. This concept of multiple types of frames and all the inter-frame-trickery that the containers/compression applies is 100% lost on me and I absolutely do not understand it at all.</p>
<p>I don't understand how I can use <code>s</code> to go forward one frame in ffplay, but I can't specify or work in frames directly to FFMPEG? How does it know what &quot;forward one frame&quot; is if the output of ffplay can't even give me discrete frames to reference for trimming? That's literally all I'm trying to do.</p>
<p>What I read so far about this just says stuff along the lines of &quot;divide the framerate by the time, then trim with that converted non-integer&quot; -- in which <strong>every single thread that advocated for this</strong> ultimately turned back to the nature of my question, or is answered with &quot;what do you mean by frame?&quot; -- I don't know, <em>what does FFMPEG mean</em> by <code>NUMBER_OF_FRAMES-eng: 19295</code>? -- That's the grid I want to work with.. the fully-quantized one made up of tangible frames.. and do so without re-encoding or incurring generational losses.</p>
<p>Any clarifying information is greatly appreciated.</p>

CC BY-SA 4.0
2022-03-26T17:45:59.957Z
See https://stackoverflow.com/a/43563520/
Gyan
CC BY-SA 4.0
2022-03-26T18:11:16.553Z
Thank you, that helps somewhat. I also found this reddit post which may help me do what I'm trying to do. I'll use the ffplay overlays to get the right time codes. Do you happen to know if using the "s" shortcut in ffplay jumps to a proper keyframe? 

https://www.reddit.com/r/ffmpeg/comments/juiu8v/split_an_mp4_along_keyframes_without_reencoding/
user69136
<ffmpeg><video><video-editor><encoding><framerate>
FFMPEG: Why can't I work in frames instead of HH:MM:SS?
user69136
# FFMPEG: Why can't I work in frames instead of HH:MM:SS?

(Asked by: username_0 on 2022-03-26)

I have a video-only stream that I removed the audio from without re-encoding. The video information is as follows.

`hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608`

Frame information is as such:
`23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)`.

I understand that this is already in a compressed format, so my goal is to prevent any further generational loss/not re-encoding in this process. I am trying to cut the video stream into clips, between **actual** video frames, to get frame-accurate clips.

*I am only used to working with video sequences as lossless frames stored inside of directories*, I am not used to working with actual streams or containers or anything of the sort. This concept of multiple types of frames and all the inter-frame-trickery that the containers/compression applies is 100% lost on me and I absolutely do not understand it at all.

I don't understand how I can use `s` to go forward one frame in ffplay, but I can't specify or work in frames directly to FFMPEG? How does it know what "forward one frame" is if the output of ffplay can't even give me discrete frames to reference for trimming? That's literally all I'm trying to do.

What I read so far about this just says stuff along the lines of "divide the framerate by the time, then trim with that converted non-integer" -- in which **every single thread that advocated for this** ultimately turned back to the nature of my question, or is answered with "what do you mean by frame?" -- I don't know, *what does FFMPEG mean* by `NUMBER_OF_FRAMES-eng: 19295`? -- That's the grid I want to work with.. the fully-quantized one made up of tangible frames.. and do so without re-encoding or incurring generational losses.

Any clarifying information is greatly appreciated.

**Tags:** ffmpeg, video, video-editor, encoding, framerate

> **Comments:**
> **username_1**: See https://stackoverflow.com/a/43563520/  
> **username_0**: Thank you, that helps somewhat. I also found this reddit post which may help me do what I'm trying to do. I'll use the ffplay overlays to get the right time codes. Do you happen to know if using the "s" shortcut in ffplay jumps to a proper keyframe?   https://www.reddit.com/r/ffmpeg/comments/juiu8v/split_an_mp4_along_keyframes_without_reencoding/  

---

## 0 answers

