This file contains 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
//THE ONE-LINER-COMBO-MAGIC (updated 20230807) | |
for FILENM in *; do ffmpeg -i $FILENM -vn -an -codec:s srt ${FILENM/.m4v/}.srt; ffmpeg -i $FILENM -c copy ${FILENM/.m4v/}.mp4; done; | |
//convert all the videos to a low bandwidth version and place alongside the original video. | |
//source: https://addpipe.com/blog/flv-to-mp4/ | |
for FILENM in *; do ffmpeg -i $FILENM -crf 45 -movflags faststart -profile:v baseline -level 3.1 ${FILENM/.mp4/}_3play.mp4; done; | |
//*** make sure the original video doesn't have spaces in the file name. | |
//MACOS UNIX | |
//Extract all the .srt files |
This file contains 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
//source: https://lists.ffmpeg.org/pipermail/ffmpeg-user/2011-July/001746.html | |
//source: http://ffmpeg.org/ffmpeg-filters.html#pad | |
//works | |
ffmpeg -i PAN_17-1_Final.m4v -filter:v 'pad=max(iw\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2' -aspect 16:9 PAN_17-1_Final_auto1.m4v | |
//works but calculates manually (pad=<width output>:<height output>:<x upper-left-corner>:<y upper-left-corner> | |
ffmpeg -i PAN_17-1_Final.m4v -filter:v 'pad=939:528:22:0' PAN_17-1_Final_PADTEST2.m4v |
This file contains 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
///NEW (2020-12-23) | |
1. Create a new repo on github. Make sure to not create a readme, licence, or git ignore. New repo MUST BE EMPTY!!!! | |
2. If you added NOTHING you will see the "Quick Setup" screen. | |
3. In your local repo (the folder you want to create the project from) run these commands in order: | |
LG3-MBP:ADSR lg3$ git init | |
LG3-MBP:ADSR lg3$ git add . | |
LG3-MBP:ADSR lg3$ git commit -m "enter a comment. What are you committing" | |
LG3-MBP:ADSR lg3$ git branch -M main | |
-- REF: https://docs.github.com/en/free-pro-team@latest/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line |
This file contains 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
//bind parmams cannot have "1" at the start of the var name. | |
//good: <param name="boxSize" type="float" default="0.4" /> | |
//bad : <param name="1boxSize" type="float" default="0.4" /> |
This file contains 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
//how-to-create-a-split-zipped-archive-from-mac-os-x-terminal | |
//source: | |
//https://www.addictivetips.com/mac-os/how-to-create-a-split-zipped-archive-from-mac-os-x-terminal/ | |
//zip -r -s MaximumSize ArchiveName.zip FolderName/ | |
zip -r -s 1g usheproduction-pearsoned-com usheproduction.pearsoned.com/ | |
//Added Bonus: Get directory size and sort |
This file contains 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
//one line combo magic. all the .mov p422 files in a directory | |
for FILENM in *; do ffmpeg -i $FILENM -c:v libx264 -c:a aac -vf format=yuv420p -crf 1 -movflags +faststart ${FILENM%.*}.mp4; done; | |
//To convert the .h264 (.mov) output, keeping the same codec,bitrate, etc. | |
//DIRECT OUT OF AVRECORDR (60fps,h.264) | |
//with faststart | |
ffmpeg -i 20200611-480x-h264.mov -c copy -movflags +faststart output2.mp4 | |
//no faststart |
This file contains 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
//Use FFprobe to get data. | |
//source (and other things to query.) | |
https://trac.ffmpeg.org/wiki/FFprobeTips | |
//get the bitrate on a list of files. | |
for FILENM in *.flv; do ffprobe -v error -show_entries format=bit_rate -of csv $FILENM; done; | |
//result | |
format,509845 | |
format,519899 | |
format,504639 |
This file contains 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
//Convert all videos in a directory FLV > M4V (don't care bout quality) | |
for FILENM in *; do ffmpeg -y -i $FILENM ${FILENM%.*}.m4v; done; | |
//Converts all legacy .mov files in a directory to .mp4 | |
//"-max_muxing_queue_size" source: https://trac.ffmpeg.org/ticket/6375 | |
for FILENM in *;do ffmpeg -y -i $FILENM -crf 5 -max_muxing_queue_size 400 ${FILENM%.*}.mp4;done; |
This file contains 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
Unix command: | |
curl -s 'http://media.pearsoncmg.com/ph/hss/hss_manza_sociologyproject_1/applyingvideos/applying01.html' | grep -o 'script src="[^"]*"' | |
Result: | |
script src="http://mediaplayer.pearsoncmg.com/_ph_ssa3_cc_img_set.autoplay.false___set.width.768___set.height.432___embed.mytarget/ph/streaming/ssa/mysoclab/social_imagination/01_applying.m4v" |
This file contains 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
#maya.py [maya 2014] | |
#midi to animation script | |
import sys | |
import math | |
#sys.path.append('/Users/lg3bass/BW_MCP/BW_PROJECTS/BW_3D/MAYA_projects/MIDI_PY/midi/Up1_LR.mid') | |
#put the midiparser.py file in X:/Program Files/Autodesk/Maya2011/Python/lib so you don't need to specify the path explicitly | |
import midiparser | |
import pymel.core as pm | |
start_note="C,1" |
NewerOlder