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
| #!/usr/bin/python3 | |
| import sys, signal, traceback, serial, time | |
| def signal_handler(sig, frame): | |
| global ser | |
| print('Ctrl-C, quitting.') | |
| if ser: | |
| ser.close() |
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
| .png sequence to mp4 | |
| ffmpeg -r 30 -i Frame_%05d.png -pix_fmt yuv420p out.mp4 | |
| -intra flag useful for seekable mp4, but higher file size | |
| concatenate mp4s | |
| https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg | |
| :: Create File List | |
| echo file file1.mp4 > mylist.txt | |
| echo file file2.mp4 >> mylist.txt |
OlderNewer