23 is the standard balance. Lower numbers (like 18) are higher quality; higher numbers (like 28) result in smaller files.
# Input video input_video = 'path/to/The_Rookie_S04E21.mp4'
If you find that your file is stuttering during playback, it may have a bitrate that is too high for your hardware. You can use the H.264 codec to re-encode the episode into a more "friendly" version while maintaining visual fidelity.
Sometimes the dialogue in The Rookie is so sharp you might want to listen to it like a radio play. To extract the audio as an MP3:
If you have a specific task in mind (like cutting a scene, converting to a different format, etc.), provide more details for a tailored FFmpeg command.
ffmpeg -i The_Rookie_S04E21.mkv -codec copy The_Rookie_S04E21.mp4 2. Trimming Specific Scenes
Optionally, add background music to the highlight reel. This could involve another ffmpeg command to overlay an audio file.
ffmpeg -i The_Rookie_S04E21.mkv -vcodec libx264 -crf 23 -preset medium -acodec ac3 S04E21_Optimized.mp4