net.sf.fmj.apps.transcode
Class FmjTranscode
java.lang.Object
net.sf.fmj.apps.transcode.FmjTranscode
public class FmjTranscode
- extends java.lang.Object
A command-line transcoder application.
Example args:
Transcode an audio file to another format:
file://samplemedia/gulp2.wav LINEAR:22050:8:1:?:S audio/basic file://out.au
Record live video into a video file:
civil:/0 JPEG multipart/x-mixed-replace file://out.mmr
Transmit an audio file via RTP:
file://samplemedia/gulp2.wav ULAW/RTP:8000:8:1 raw/rtp rtp://192.168.1.2:8000/audio/16
Transmit live audio via RTP:
javasound://0 ULAW/RTP:8000:8:1 raw/rtp rtp://192.168.1.2:8000/audio/16
javasound://0 ALAW/RTP:8000:8:1 raw/rtp rtp://192.168.1.2:8000/audio/16
Extract video track from a movie and re-encode into another video file:
file://samplemedia/Apollo_15_liftoff_from_inside_LM.ogg JPEG multipart/x-mixed-replace file://out.mmr
Extract audio track from a movie and re-encode into an audio file:
file://samplemedia/Apollo_15_liftoff_from_inside_LM.ogg LINEAR:44100:8:1 audio/basic file://out.au
Receive RTP audio and record to a file:
rtp://192.168.1.7:8000 LINEAR:8000:8:1 audio/basic file://out.au
Transmit live video via RTP:
civil:/0 JPEG/RTP:160x120 raw/rtp rtp://192.168.1.2:8000/video/16
Receive RTP video and record to a file:
rtp://192.168.1.1:8000 JPEG multipart/x-mixed-replace file://out.mmr
Render live audio in a specific format:
javasound://0 LINEAR:8000:16:1:B:S raw RENDER
javasound://0 ULAW:8000:8:1 raw RENDER
Record audio to a file:
TODO
TODO: incompletely specified formats
TODO: javasound://0 SPEEX/RTP:8000:8:1 raw/rtp rtp://192.168.1.2:8000/audio/16 - terrible filter graph
TODO: javasound://0 ILBC/RTP:8000:16:1 raw/rtp rtp://192.168.1.2:8000/audio/16 - choppy
TODO: javasound://0 LINEAR:8000:16:1:B:S audio/basic file://out.au
TODO: javasound://0 LINEAR:8000:16:1:B:S audio/x-wav file://out.wav
TODO: file://samplemedia/gulp2.wav LINEAR audio/basic file://out.au
TODO: file://samplemedia/Apollo_15_liftoff_from_inside_LM.ogg LINEAR:44100:16:1:B:S audio/basic file://out.au
TODO: file://samplemedia/Apollo_15_liftoff_from_inside_LM.ogg LINEAR:44100:8:2 audio/basic file://out.au
TODO: file://samplemedia/Apollo_15_liftoff_from_inside_LM.ogg LINEAR audio/basic file://out.au
TODO: content type is often redundant with output, since content type can usually be determined by output ext.
- Author:
- Ken Larson
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
run(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FmjTranscode
public FmjTranscode()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception