Skip to content

Instantly share code, notes, and snippets.

View nikunjparadva's full-sized avatar
🤓
Building Gradle

Nikunj paradva nikunjparadva

🤓
Building Gradle
View GitHub Profile
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
06-17 18:00:54.945 E: onProgress: ffmpeg version n4.0-39-gda39990 Copyright (c) 2000-2018 the FFmpeg developers
06-17 18:00:54.945 E: onProgress: built with gcc 4.9.x (GCC) 20150123 (prerelease)
06-17 18:00:54.946 E: onProgress: configuration: --target-os=linux --cross-prefix=/root/bravobit/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/root/bravobit/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-ffprobe --enable-libopus --enable-libvorbis --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-libvpx --enable-libass --enable-yasm --enable-pthreads --disable-debug --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-linux-perf --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-nonfree --enable-network --enable-avresample --enable-avformat --enable-avcodec --enable-indev=lavfi --enable-hwaccels
package paradva.nikss.test;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import java.util.List;
import retrofit2.Call;
@nikunjparadva
nikunjparadva / ffmpeg.md
Created April 30, 2019 11:26 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

package org.cheat.search;
import android.content.Intent;
import android.content.Context;
import android.net.Uri;
import android.widget.TextView;
import android.widget.ListView;
import android.provider.MediaStore.Audio;
public class OpenLinksListener implements ListView.OnItemClickListener {
@nikunjparadva
nikunjparadva / List music files
Created July 27, 2018 20:50 — forked from novoda/List music files
Android: List all music files
//Retrieve a list of Music files currently listed in the Media store DB via URI.
//Some audio may be explicitly marked as not being music
String selection = MediaStore.Audio.Media.IS_MUSIC + " != 0";
String[] projection = {
MediaStore.Audio.Media._ID,
MediaStore.Audio.Media.ARTIST,
MediaStore.Audio.Media.TITLE,
MediaStore.Audio.Media.DATA,
@nikunjparadva
nikunjparadva / SimpleOrientationListener.java
Last active March 13, 2018 17:09
SimpleOrientationListener For Get Orientation in Android
public abstract class SimpleOrientationListener extends OrientationEventListener {
public static final int CONFIGURATION_ORIENTATION_UNDEFINED = Configuration.ORIENTATION_UNDEFINED;
private volatile int defaultScreenOrientation = CONFIGURATION_ORIENTATION_UNDEFINED;
public int prevOrientation = OrientationEventListener.ORIENTATION_UNKNOWN;
private Context ctx;
private ReentrantLock lock = new ReentrantLock(true);
public SimpleOrientationListener(Context context) {
super(context);
{"wallpapers":[{"id":"58","orig_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/58_PhotoFramesPolaroid.png","thumb_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/58_PhotoFramesPolaroid.png","downloads":"app.abcreation.polaroidframe","fav":"0"},{"id":"57","orig_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/57_TypographyPhotoFrames.png","thumb_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/57_TypographyPhotoFrames.png","downloads":"app.abcreation.typographyframe","fav":"0"},{"id":"56","orig_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/56_BokehPhotoFrames.png","thumb_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/56_BokehPhotoFrames.png","downloads":"app.abcreation.bokehframe","fav":"0"},{"id":"55","orig_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Image/55_AgeCalculator.png","thumb_url":"http://aanibrother.com/Android_Pramosion/Sanjay/Abcreation/Im