ffmpeg -i ghosts_s03e01.mkv -itsoffset 0.3 -i ghosts_s03e01.mkv -c copy -map 1:v -map 0:a output.mkv This shifts the second input’s audio relative to the first input’s video. Need a still of the moment when Sam first sees the owl? Extract a frame at 00:12:34:
Let’s explore how FFmpeg interacts with a typical video file for Ghosts S03E01 , focusing on real-world commands and their forensic output. Before altering the file, you need its codec DNA. The command: ghosts s03e01 ffmpeg
ffmpeg -i ghosts_s03e01.mkv -c:v libx264 -crf 23 -preset fast -vf "scale=1280:720" -c:a aac -b:a 128k ghosts_s03e01_720p.mp4 If your copy of S03E01 came from an over-the-air recording, the audio might drift after the commercial breaks. FFmpeg can shift audio without re-encoding video: ffmpeg -i ghosts_s03e01
You have ghosts_s03e01.mkv (with H.264 video + AAC audio + SRT subtitles) but your smart TV only plays MP4. Before altering the file, you need its codec DNA
ffmpeg -i ghosts_s03e01.ts -c copy -af "adelay=250|250" ghosts_s03e01_fixed.ts (The |250 applies delay to both stereo channels.)
ffmpeg -i ghosts_s03e01.mkv -vf "fps=1/60,scale=160:90,tile=4x5" -frames:v 1 preview.jpg This takes one frame every 60 seconds, scales them, and arranges 20 (4x5) on one image. If the episode crashes halfway through playback, FFmpeg can scan for errors: