Rick And Morty S02e05 Ffmpeg — __link__
# Get episode info ffmpeg -i "Rick_and_Morty_S02E05.mkv" 2>&1 | grep -E "(Duration|Video|Audio)"
# Extract, resize, compress, and add caption in one go ffmpeg -i "Rick_and_Morty_S02E05.mkv" -ss 00:11:00 -t 3 \ -vf "scale=720:-2,drawtext=text='I LIKE WHAT YOU GOT':fontsize=36: \ x=(w-text_w)/2:y=h-text_h-20:fontcolor=yellow:box=1" \ -c:v libx264 -crf 23 -preset fast -c:a copy meme_ready.mp4 rick and morty s02e05 ffmpeg
Before we dive into processing, let's cover a basic example of downloading a video using FFmpeg. You can use FFmpeg to download videos from URLs, but be aware that this should only be done from sources that you have the right to access. # Get episode info ffmpeg -i "Rick_and_Morty_S02E05
Pull the "Get Schwifty" or "Head Bent Over" tracks directly from the episode file. # Create filter complex with multiple segments ffmpeg
# Create filter complex with multiple segments ffmpeg -i "Rick_and_Morty_S02E05.mkv" \ -filter_complex \ "[0:v]trim=00:10:30:00:12:45,setpts=PTS-STARTPTS[v1]; \ [0:a]atrim=00:10:30:00:12:45,asetpts=PTS-STARTPTS[a1]; \ [0:v]trim=00:15:20:00:17:10,setpts=PTS-STARTPTS+135[v2]; \ [0:a]atrim=00:15:20:00:17:10,asetpts=PTS-STARTPTS+135[a2]; \ [v1][a1][v2][a2]concat=n=2:v=1:a=1" \ -c:v libx264 -c:a aac best_moments.mp4
To clip the iconic performance (roughly between 01:30 and 02:00 in many versions) without losing quality, use the stream copy method :
ffprobe -i "Rick_and_Morty_S02E05.mkv" -show_frames -select_streams v | grep "pkt_pts_time"