Skip to content

Instantly share code, notes, and snippets.

On vacation

Steephan Selvaraj s-steephan

On vacation
  • Analog and Digital Labs
  • Coimbatore, TamilNadu, India.
Block or report user

Report or block s-steephan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

To apply mask to all images

# replace mask.png with your mask file name.

for i in *.png; do convert $i  mask.png -gravity center -composite $i; done 
s-steephan /
Last active Sep 6, 2018
important terminal comments

ffmpeg Convert Comments

for i in *.asf; do ffmpeg -i $i -bsf:v h264_mp4toannexb -c:v copy $i.mp4; done

ffmpeg -ss 00:00:00 -i NVR_ch1_main_20180712001236_20180712005603.dav.mp4 -t 00:21:00 -vcodec copy -acodec copy newfile.mp4

Partial mysql dump

mysqldump -u root -p violet --ignore-table=violet.challan --where='1 limit 100'> all.sql 
View config.json
"ways": [
"wayId": 1,
"intensityRatio": 100,
"upperLeft": [
"url": "/home/ravi/Programming/vehicle-detection/Samples/dav26/1.mp4",
You can’t perform that action at this time.