Skip to content

Instantly share code, notes, and snippets.

@lancewoo
lancewoo / ffmpeg_image_sequence.txt
Created October 15, 2021 14:41 — forked from kevinjbayer/ffmpeg_image_sequence.txt
Convert Image Sequence to H264 using ffmpeg
ffmpeg -framerate 30 -i DSC_%04d.JPG -c:v libx264 -crf 23 -pix_fmt yuv420p output.mp4
*glob pattern
ffmpeg -framerate 30 -pattern_type glob -i '*.JPG' -c:v libx264 -crf 23 -pix_fmt yuv420p output.mp4
http://trac.ffmpeg.org/wiki/Slideshow
http://stackoverflow.com/questions/13163106/ffmpeg-converting-image-sequence-to-video-results-in-blank-video
@lancewoo
lancewoo / merge_git_repo_as_subdir
Created July 14, 2021 05:57 — forked from smdabdoub/merge_git_repo_as_subdir
Merge one git repository into another repository as a sub-directory
# based on the following:
# http://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/
# http://blog.caplin.com/2013/09/18/merging-two-git-repositories/
git clone repo_main
git clone repo_sub
cd repo_main
git remote add repo_sub ../repo_sub
git fetch repo_sub
@lancewoo
lancewoo / maven-publish-helper-usage.gradle
Created July 7, 2021 09:32 — forked from Robyer/maven-publish-helper-usage.gradle
Gradle script for publishing Android library with sources and javadoc to Maven repository using maven-publish plugin.
// You can use maven-publish-helper.gradle script without changes and even share it between multiple
// modules. Just place the maven-publish-helper.gradle file in the root directory of your project,
// then apply it at the bottom of your module's build.gradle file like this:
// ...content of module's build.gradle file...
apply from: '../maven-publish-helper.gradle'
publishing {
publications {