Skip to content

Instantly share code, notes, and snippets.

@colonelpanic8
Created April 15, 2024 00:27
Show Gist options
  • Save colonelpanic8/5bc2ea8af7f7bdf8f4527d21d299fade to your computer and use it in GitHub Desktop.
Save colonelpanic8/5bc2ea8af7f7bdf8f4527d21d299fade to your computer and use it in GitHub Desktop.
ffmpeg -i /var/tmp/dev_videos/dev/413/0.mp4 -vf "setpts=PTS-STARTPTS, showinfo" -f null - 2>&1 | awk '/pts/{print $NF}' > pts.txt
LD_LIBRARY_PATH="" nr gnuplot -e "plot 'pts.txt' with lines"
ffmpeg -f concat -safe 0 -i ~/temp/concat_filelist.txt -c copy output.mp4
ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,nb_frames,duration -of default=noprint_wrappers=1:nokey=1 ~/temp/output2.mp4
ffmpeg -i /var/tmp/dev_videos/dev/413/0.mp4 -c copy output2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment