HN user

stevens37

11 karma
Posts0
Comments10
View on HN
No posts found.
FFmpeg 4.4 5 years ago

slow down by 10x (gopro 240fps to 24fps)

ffmpeg -i ${1} -sn -an -c:v libx264 -r 24 -filter:v "setpts=10PTS" -crf 19 ${1}-10x.mkv

reverse video

ffmpeg -i $IFILE -s 3840x2160 -f image2 -q:v 1 -vf format=yuvj420p $tmpdir/p%8d.jpg cat $(ls -t $tmpdir/p.jpg) | ffmpeg -f image2pipe -c:v mjpeg -r 30 -i - -c:v libx264 -crf 18 -vf format=yuv420p -preset slow -f mp4 $OFILE

loop a video: loopcount=$1

ffmpeg -stream_loop $1 -i $2 -c copy $3.mkv

Once (~10-15y ago) I was thinking about a OTP based "2 component glue file sharing solution". You take a piece of data (audio,video), generate a real random one time pad then make an XOR delete the original and share the 2 random files using any media or network. Then share also the info that this and that files are the 2 component glue.