Skip to content

Instantly share code, notes, and snippets.

View vittee's full-sized avatar

Wittawas Nakkasem vittee

  • LINE BK
  • Bangkok, Thailand
  • 05:25 (UTC +07:00)
View GitHub Profile
@vittee
vittee / @FFMpeg
Last active December 8, 2022 18:45 — forked from keiya/README.md
How to broadcast to Icecast2 by using ffmpeg (FLAC,Opus,Vorbis,AAC,MP3/Windows, Mac)
FFMpeg to Icecast2 Streaming Samples
====================================
Examples usage of various codecs with FFMpeg.
## Samples
- flac.sh : An Icecast Source Client
- for Windows (Cygwin is required)
- and macOS (`brew install ffmpeg`)
- another_examples.sh : Samples
- FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3
@vittee
vittee / svnserve.sh
Last active December 11, 2015 19:28 — forked from dexterbt1/svnserve.sh
svnserve, wrapper for svn daemon, tested with CentOS 6.3 edited to support custom installation prefix (default: /usr/local)
#!/bin/bash
#
# /etc/init.d/subversion
#
# Starts the Subversion Daemon
#
# chkconfig: 2345 90 10
# description: Subversion Daemon
public class Test {
public static void main(String[] args) {
A a = new A(5);
System.out.println(a.a);
test(a);
System.out.println(a.a);
}
public static void test(A a) {
a.a = 3 ;