Prepare the videos by converting them with ffmpeg
ffmpeg -i 'some input file.mp4' -target [pal-dvd or ntsc-dvd] output.mpg
<?php | |
/* | |
Plugin Name: Remove bit.ly links | |
Description: Plugin to remove all bit.ly links from post content, keeping the anchor text. | |
Version: 1.0 | |
Author: Matthias Kretschmann | |
Author URI: http://mkretschmann.com | |
*/ | |
// Filter the_content |
If we have the following structure in our application:
And we fill our index.php
with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.
/* MediaDecoder | |
Author: Andrew Stubbs (based on some examples from the docs) | |
This class opens a file, reads the first audio channel it finds, and returns raw audio data. | |
Usage: | |
MediaDecoder decoder = new MediaDecoder("myfile.m4a"); | |
short[] data; | |
while ((data = decoder.readShortData()) != null) { |
import android.annotation.SuppressLint; | |
import android.media.MediaCodec; | |
import android.media.MediaExtractor; | |
import android.media.MediaFormat; | |
import android.media.MediaMetadataRetriever; | |
import android.media.MediaMuxer; | |
import android.util.Log; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; |
import android.annotation.SuppressLint | |
import android.content.ContentUris | |
import android.content.Context | |
import android.content.CursorLoader | |
import android.database.Cursor | |
import android.net.Uri | |
import android.os.Build | |
import android.os.Environment | |
import android.provider.DocumentsContract | |
import android.provider.MediaStore |
public class PathUtils { | |
/** | |
* To get URI from Path | |
* | |
* @param context context | |
* @param file file | |
* @return Uri | |
*/ | |
public static Uri getUriFromPath(Context context, File file) { | |
String filePath = file.getAbsolutePath(); |