Notice
Recent Posts
Recent Comments
Link
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Archives
Today
Total
03-29 00:09
관리 메뉴

zyint's blog

QuickTime for Java 본문

예전글들

QuickTime for Java

진트­ 2009. 9. 23. 09:42

 

 

 

 

 

2003년 10월, QuickTime for Java(QTJ) 6.4을 발표한 이후, QuickTime 7에서는 더 이상 QTJ를 같이 발표하지 않고 있습니다.

따라서 QuickTime 7의 새로운 API들(예: metadata, frame-rendering codecs)은 QTJ에서 사용할 수 없습니다.

 

QTJ는 APple에서 더이상 지원하지 않는 native API들에 의존적입니다.

 

 

 

 

 

 

 

기능#

  • Playback
  • Editing
  • Capture
  • Graphic import and export
  • Moive import and export
  • Sample-level access

 

 

 

QuickTime 지원 포맷#

아래 지원 포맷은 QuickTime  플레이어의 지원 포맷으로 QuickTime for Java에서 지원되는지 여부는 확인되지 않았습니다.

 

 

 

지원하는 오디오/비디오 포맷#

Supported Video Formats

Supported Audio Formats
  • Animation
  • Apple BMP
  • Apple Pixlet (Mac OS X v10.3 only)
  • Apple Video
  • Cinepak
  • Component video
  • DV and DVC Pro NTSC
  • DV PAL
  • DVC Pro PAL
  • Graphics
  • H.261
  • H.263
  • H.264
  • JPEG 2000
  • Microsoft OLE (decode only)
  • Microsoft Video 1 (decode only)
  • Motion JPEG A
  • Motion JPEG B
  • MPEG-4 (Part 2)
  • Photo JPEG
  • Planar RGB
  • PNG
  • Sorenson Video 2
  • Sorenson Video 3
  • TGA
  • TIFF
  • 24-bit integer
  • 32-bit floating point
  • 32-bit integer
  • 64-bit floating point
  • AAC (MPEG-4 Audio)
  • ALaw 2:1
  • AMR Narrowband
  • Apple Lossless Encoder
  • IMA 4:1
  • MACE 3:1
  • MACE 6:1
  • MS ADPCM (decode only)
  • QDesign Music 2
  • Qualcomm PureVoice (QCELP)
  • ULaw 2:1

 

 

이미지 파일 제공

  • TIFF
  • FlashPix
  • Photoshop files

 

 

 

 

 

 

 

지원 파일 포맷#

 

  • 3DMF (Mac OS 9 & Windows)
  • 3GPP
  • 3GPP2
  • AIFF
  • AMC
  • AMR
  • Animated GIF
  • AU
  • Audio CD Data (Mac OS 9)
  • AVI
  • BMP
  • CAF (Mac OS X)
  • Cubic VR
  • DLS
  • DV
  • FLC
  • GIF
  • GSM
  • JPEG/JFIF
  • Karaoke
  • MacPaint
  • MIDI
  • MPEG-1
  • MP3 (MPEG-1, Layer 3)
  • M3U (MP3 Playlist files)
  • MPEG-2**
  • MPEG-4
  • MQV
  • M4A, M4B, M4P (iTunes 4 audio), M4V (iTunes video)
  • PDF (Mac OS X)
  • Photoshop*
  • PICS
  • PICT
  • PLS
  • PNG
  • Quartz Composer Composition (Mac OS X)
  • QCP (Mac OS 9 & Windows)
  • QuickTime Image File
  • QuickTime Movie
  • SD2 (Mac OS 9 & Windows)
  • SDP
  • SDV
  • SF2 (SoundFont 2)
  • SGI
  • SMIL
  • Targa
  • Text
  • TIFF*
  • TIFF Fax
  • VDU (Sony Video Disk Unit)
  • Virtual Reality (VR)
  • Wave

 

 

 

 

Code Example#

import java.io.File;
import java.awt.*;
 
import quicktime.*;
import quicktime.std.movies.Movie;
import quicktime.app.view.QTFactory;
import quicktime.io.*;
 
public class TrivialQTJPlayer extends Frame {
 
    public static void main (String[] args) {
        try {
            QTSession.open();
            Frame f = new TrivialQTJPlayer();
            f.pack();
            f.setVisible (true);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    public TrivialQTJPlayer()
        throws QTException {
        FileDialog fd = new FileDialog
            (this, "TrivialJMFPlayer", FileDialog.LOAD);
        fd.setVisible(true);
        File f = new File (fd.getDirectory(), fd.getFile());
        OpenMovieFile omf = OpenMovieFile.asRead (new QTFile (f));
        Movie m = Movie.fromFile (omf);
        Component c = QTFactory.makeQTComponent(m).asComponent();
        add (c);
        m.start();
    }
}

 

 

 

요구사항#

  • QuickTime 설치 필요: QuickTime for Java는 QuickTime을 자바로 구현한 것이 아닌, QuickTime을 단순히 자바로 호출할 수 있도록 한 프로그램입니다. 따라서, 시스템에 QuickTime Library가 설치되어 있어야 합니다.

 

 

 

참고자료#

QuickTime for Java, Wikipedia

http://www.apple.com/quicktime/player/specs.html

 

 

이 글은 스프링노트에서 작성되었습니다.

Comments