{"id":13419865,"url":"https://github.com/guardianproject/android-ffmpeg","last_synced_at":"2025-12-30T16:42:44.142Z","repository":{"id":41553747,"uuid":"2339074","full_name":"guardianproject/android-ffmpeg","owner":"guardianproject","description":"a system for building custom ffmpeg binaries for Android ","archived":true,"fork":false,"pushed_at":"2016-03-18T14:12:18.000Z","size":2071,"stargazers_count":972,"open_issues_count":4,"forks_count":345,"subscribers_count":120,"default_branch":"master","last_synced_at":"2024-10-13T08:45:07.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dev.guardianproject.info/projects/android-ffmpeg-java","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guardianproject.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"liberapay":"GuardianProject","patreon":"guardianproject","github":["eighthave"]}},"created_at":"2011-09-07T02:58:33.000Z","updated_at":"2024-09-06T03:08:47.000Z","dependencies_parsed_at":"2022-08-26T08:31:15.618Z","dependency_job_id":null,"html_url":"https://github.com/guardianproject/android-ffmpeg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guardianproject%2Fandroid-ffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guardianproject%2Fandroid-ffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guardianproject%2Fandroid-ffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guardianproject%2Fandroid-ffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guardianproject","download_url":"https://codeload.github.com/guardianproject/android-ffmpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221548124,"owners_count":16840972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:22.091Z","updated_at":"2025-12-17T03:11:16.880Z","avatar_url":"https://github.com/guardianproject.png","language":"Shell","readme":"\nThis is a new android-ffmpeg project since it seems there were so many\ndifferent ways of doing it, it was confusing.  So here is my clean, easily\nchangeable, static ffmpeg creator for Android.  The result is a single\n'ffmpeg' that is statically linked, so its the only file you need.\n\nsetup\n-----\n\n 1. Install the Android NDK r8 or newer\n 2. On Debian/Ubuntu, run: apt-get install yasm bash patch make gawk\n    (If you are on older releases of Debian/Ubuntu/Mint, like Debian/squeeze,\n    then you will need to get newer versions of the packages automake,\n    autotools-dev, and libtool.  You can download these from testing and\n    manually install them. These are needed to provide the newest version\n    of config.guess and config.sub, which only recently got Android support)\n\n\nbuilding\n--------\n\ncd android-ffmpeg\ngit submodule init\ngit submodule update\nNDK_BASE=/path/to/android-ndk \n./configure_make_everything.sh\n\nThat should give you command line binary ffmpeg/ffmpeg, which is the only file\nyou should need.\n\n\nNote: the 'make' build is setup to work with the Android NDK r8e. If you are\nusing an older version, or you are using the 32-bit NDK on a 64-bit system,\nthen you might need to set some variables manually as part of the command\nline.  For example, using the 32-bit NDK on a 64-bit system:\n\n    NDK_PROCESSOR=x86 ./configure_make_everything.sh\n\n Or using an older compiler version:\n\n    NDK_COMPILER_VERSION=4.4.3 ./configure_make_everything.sh\n\n\ncustomizing\n-----------\n\nIf you want to change which coders, decoders, muxers, filters, etc that are\nincluded, edit configure_ffmpeg.sh and add/substract what you want.\n\n\nsources of inspiration\n----------------------\n\nhttps://github.com/mconf/android-ffmpeg\nhttps://github.com/halfninja/android-ffmpeg-x264\nhttps://github.com/guardianproject/SSCVideoProto\nhttp://wiki.multimedia.cx/index.php?title=FFmpeg_filter_howto\n\n\ntesting\n-------\n\n# embedding metadata into a matroska video\n/data/local/ffmpeg -y -i test.mp4 \\\n    -attach attach.txt -metadata:s:2 mimetype=text/plain \\\n    -acodec copy -vcodec copy testattach.mkv\n\n# video redact only\n./ffmpeg/ffmpeg -y -i test.mp4 \\\n    -filter:v redact=redact_unsort.txt \\\n    -acodec copy \\\n    output-test-vf_redact.mp4\n\n# audio redact only\n/data/local/ffmpeg -i test.mp4 -t 10 \\\n    -filter:a aredact=aredact_unsort.txt \\\n    -acodec aac  -b:a 32k -strict experimental \\\n    -y output-test-af_aredact.mp4\n\n# redact audio and video\n/data/local/ffmpeg -i test.mp4 \\\n    -af aredact=aredact_unsort.txt \\\n    -vf redact=redact_unsort.txt \\\n    -acodec aac  -b:a 32k -strict experimental \\\n    -vcodec libx264 \\\n    -y output-test-redact.mp4\n\n# tweaking h264 output settings\n./ffmpeg \\\n    -i sscvideoproto_nexuss_high_quality_2_3_3.mp4 \\\n    -acodec copy \\\n    -vcodec libx264 -b:v 1000k -an -f mp4 \\\n    -y /tmp/output.mp4\n\n# drawtext test\n./ffmpeg \\\n    -i test.mp4 \\\n    -fflags +genpts -t 600 -r 8 -s 640x480 \\\n    -vf drawtext=\"fontfile=DejaVuSans.ttf:x=70:y=455: \\\ntext='\\%H\\:\\%M\\:\\%S | \\%a \\%d/\\%b/\\%Y | S500ATV | camera 0': \\\nfontcolor=0xFFFFFFFF:fontsize=18: \\\nshadowcolor=0x000000EE:shadowx=1:shadowy=1\" \\\n    -b:v 1500000 -r 8 \\\n    -acodec copy \\\n    -y video_file.mp4\n","funding_links":["https://liberapay.com/GuardianProject","https://patreon.com/guardianproject","https://github.com/sponsors/eighthave"],"categories":["Shell","etc","Libs","Media"],"sub_categories":["\u003cA NAME=\"Media\"\u003e\u003c/A\u003eMedia"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguardianproject%2Fandroid-ffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguardianproject%2Fandroid-ffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguardianproject%2Fandroid-ffmpeg/lists"}