This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # extract kframes | |
| `ffmpeg -skip_frame nokey -i $filename -vsync 0 -r 30 -f image2 $output_dir-%02d.jpeg` | |
| # get frames \ timestamps | |
| `ls -1 image-*.jpeg > images.txt` | |
| `ffprobe -f lavfi -i "movie=input.mp4,fps=fps=25[out0]" -show_frames -show_entries frame=pkt_pts_time -of csv=p=0 > frames.txt` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const possal = (req, res, next) => { | |
| res.set('Ya-Possal', '*'); | |
| return next(); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i <input file> -c:v libx264 -c:a aac -strict experimental -b:a 128k -f dash -min_seg_duration 4 <manifest name>.mpd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -loop 1 -i <IMAGE> -i <AUDIO> -c:v libx264 -tune stillimage -strict -2 -c:a aac -b:a 192k -pix_fmt yuv420p -shortest <OUTPUT>.mp4 | |
| # > playlist.txt | |
| # file 'out1.mp4' | |
| # file 'out2.mp4' | |
| # file 'out3.mp4' | |
| ffmpeg -f concat -safe 0 -i <PLAYLIST> -c copy <OUTPUT>.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "ffmpeg -i "videoplayback.mp4" -af silencedetect=noise=-30dB:d=0.5 -f null - 2> vol.txt" | |
| const si = [ | |
| ["1.0466" , "254.221"], | |
| ["256.942" , "470.262"], | |
| ["472.004" , "806.045"], | |
| ["808.412" , "1096.53"], | |
| ["1098.64" , "1322.09"], | |
| ["1327.67" , "1641.81"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { exec } = require('child_process'); | |
| const resp = (error, stdout, stderr) => { | |
| console.log(stdout); | |
| if (error) console.error(error); | |
| if (stderr) console.error(stderr); | |
| } | |
| class PrePostPlugin { |