Skip to content

Instantly share code, notes, and snippets.

View justlaputa's full-sized avatar
:octocat:
coding 🐾🐾

Han Xiao justlaputa

:octocat:
coding 🐾🐾
  • PayPay
  • Tokyo, Japan
View GitHub Profile
@justlaputa
justlaputa / hello.rb
Created October 9, 2012 15:30
test pom file to use jruby-maven-plugin
require 'rubygems'
require 'zip/zip'
puts "hello from ruby "*20
@justlaputa
justlaputa / LiveStreamer.java
Created March 10, 2012 04:23
LiveStreamer API
package com.mmg.mlive.media;
import android.view.SurfaceHolder;
public class StreamerDemo {
public void setVideoFormat(int width, int height, int frameRate) {
}
/**
@justlaputa
justlaputa / CameraUtil.java
Created March 10, 2012 04:16
Camera interface
package com.mmg.mlive.media;
import android.hardware.Camera;
import android.view.SurfaceHolder;
public class CameraUtil {
public CameraUtil getInstance() {
return null;
}
@justlaputa
justlaputa / StreamerDemo.java
Created March 10, 2012 04:03
LiveStreamer API demo
package com.mmg.mlive.media;
import java.io.IOException;
import com.mmg.mlive.activity.R;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
@justlaputa
justlaputa / configure option
Created January 18, 2012 09:30
Configuration options for installing some software form source code
FFmpeg:
Requirement:
yasm faad2-devel faac-devel lame-devel opencore-amr-devel openjpeg-devel libtheora-devel libvpx-devel libvorbis-devel xvidcore-devel
Configure:
Medium configuration:
$ ./configure --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-x11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
With debug:
$ --enable-debug=gdb3 --disable-stripping