Your search did not match any results.
We suggest you try the following to help find what you’re looking for:
Given an input URL, the object is to transcode the input media to different track formats and generate a resulting file with the transcoded data. The output file could also be of a different content type from the original input.
A sample application is written. It accepts an input URL where the original data comes from; an output URL where the transcoded data will be saved; and a list of track formats of which the input data will be transcoded to. The actual algorithm to transcode the data is rather straight forward:
Some error checking is handled as an example.
|Platform:||JDK 1.1.6 or later|
|JMF API:||2.0 or later|
|Implementation:||AJ, WPP, SPP *|
* AJ = All Java, WPP = Windows Performance Pack, SPP = Solaris Performance Pack
How to run this sample
java Transcode -o <output URL> -a <audio format> -v <video format> <input URL>
<audio format> is of the form:
[encoding]/[rate]/[sizeInBits]/[channels]/[big|little]/[signed|unsigned] <video format>: is of the form: [encoding]
java Transcode -o file:/c:/temp/foo.mov -a linear/8000 file:/c:/movies/amovie.avi
will transcode the input AVI movie to a QuickTime movie with 8KHz linear audio.