Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Cheley ryancheley

View GitHub Profile
@ryancheley
ryancheley / compile_h264_using_MP4Box
Created Feb 17, 2018
My first really complicated Bash Script
View compile_h264_using_MP4Box
(echo '#!/bin/sh'; echo -n "MP4Box"; array=($(ls *.h264)); for index in ${!array[@]}; do if [ "$index" -eq 1 ]; then echo -n " -add ${array[index]}"; else echo -n " -cat ${array[index]}"; fi; done; echo -n " hummingbird.mp4") > com.txt | chmod +x com.txt | ./com.txt
@ryancheley
ryancheley / create_script_01.sh
Created May 3, 2018
Step 1 of creating an mp4
View create_script_01.sh
(echo '#!/bin/sh'; echo -n "MP4Box"; ) >> /home/pi/Documents/python_projects/create_mp4.sh
@ryancheley
ryancheley / create_script_03.sh
Created May 3, 2018
Step 1 of creating an mp4
View create_script_03.sh
(echo -n " /home/pi/Documents/python_projects/hummingbird.mp4") >> /home/pi/Documents/python_projects/create_mp4.sh
@ryancheley
ryancheley / create_script_02.sh
Last active May 3, 2018
Step 2 of creating an mp4
View create_script_02.sh
#!/bin/bash
(array=($(ls /home/pi/Documents/python_projects/*.h264)); for index in ${!array[@]}; do if [ "$index" -eq 0 ]; then echo -n " -add ${array[index]}"; else echo -n " -cat ${array[index]}"; fi; done;)
You can’t perform that action at this time.