1. Resize video in current folder via decrease it into two times in width x height
#!/usr/bin/env bash# apt-get install ffmpeg
for f in `ls -1 *.mp4 | grep -v ^small_*`; do cmd="ffmpeg -i ${f} -vf scale=iw/2:-1 small_${f}" echo "============================================" echo "CMDLINE: $cmd" echo "============================================" $cmddone
Some examples of command lines: http://forasoft.github.io/understanding-ffmpeg/
2. Show targets in GNU makefile
#!/usr/bin/env bash make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /); for(i in A)print A[i]}'
3. Cleanup folder from temprary files (based on stuff that CMake and VS generates on Windows)
#!/usr/bin/env pythonimport os, shutil, glob for d in ["CMakeFiles", "apps", "x64"]: if os.path.exists(d): shutil.rmtree(d)if os.path.exists("CMakeCache.txt"): os.remove("CMakeCache.txt")for f in glob.glob('*.suo'): os.remove(f)for f in glob.glob('*.sdf'): os.remove(f)for f in glob.glob('*.sln'): os.remove(f)for f in glob.glob('*.vc*proj'): os.remove(f)for f in glob.glob('*.filters'): os.remove(f)print "Clean completed..."
3. Download video stream via VLC
Media -> Convert/Save Network tab, enter mms:url, press Convert/Save Enter file name for local file Press the little tool button next toe the Settings/Profile. Select ASF/WMV as the Encapsulation Go to the Video Codec tab and select Keep Original Video Track Go to the Audio Codec tab and select Keep Oringal Audio Track Press Save Press Start
4. Download video from web-site with video-straming
1. Install fiddler to capture traffic 2. Open web-browser and its' plugins will definetely go to web 3. Download media file which is used by plugin 4. If it is media-file we're done 5. If it is video-stream we're not done 6. open in VLC and look info about codec. 7. Use ffmpeg to download video: ffmpeg -i protocol://path out.mp4
5. Look into the quality of wifi signal for Windows OS
FOR /L %N IN () DO netsh wlan show interfaces | grep Signal
6. Extract Video codec information
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 video.mp4
7. Extract Audio from video file
(https://stackoverflow.com/questions/9913032/ffmpeg-to-extract-audio-from-video)
ffmpeg -i sample_in.avi -q:a 0 -map a sample_out.mp3