# Basic file info echo "--- FILE INFO ---" ffprobe -v error -show_entries format=filename,duration,size,bit_rate -of default=noprint_wrappers=1 "$INPUT" echo ""
echo "Features extracted to $OUTPUT_PREFIX_features.txt and $OUTPUT_PREFIX_ffprobe.json" young sheldon s01e07 ffmpeg
# Video stream details echo "--- VIDEO STREAM ---" ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,width,height,r_frame_rate,avg_frame_rate,bit_rate,pix_fmt -of default=noprint_wrappers=1 "$INPUT" echo "" # Basic file info echo "--- FILE INFO
# Calculate actual framerate FRAME_RATE=$(ffprobe -v error -select_streams v:0 -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 "$INPUT" > "$OUTPUT_PREFIX_features.txt" young sheldon s01e07 ffmpeg
This will give you complete technical specifications including resolution, bitrate, codec, framerate, audio channels, and scene change data for the episode.
# Extract one frame every 10 seconds ffmpeg -i "Young.Sheldon.S01E07.mkv" -vf "fps=1/10" -frames:v 10 "young_sheldon_s01e07_frame_%03d.jpg" ffmpeg -i "Young.Sheldon.S01E07.mkv" -filter_complex "showwavespic=s=1280x720" -frames:v 1 "young_sheldon_s01e07_waveform.png"
#!/bin/bash INPUT="Young.Sheldon.S01E07.mkv" OUTPUT_PREFIX="young_sheldon_s01e07" ffprobe -v quiet -print_format json -show_format -show_streams "$INPUT" > "$OUTPUT_PREFIX_ffprobe.json" Extract key features to readable text file echo "=== YOUNG SHELDON S01E07 - VIDEO FEATURES ===" echo ""