Input object reading images from a video file using Xine. If set up properly, Xine will support reading of various media. You will be able to read DVD, Video CD, DVB, V4L, DXR3, MMS, PNM, RTSP, HTTP, and ordinary files. Xine supports many container formats such as MPG/MPEG/MPEG-TS, OGG, AVI, ASF, MOV/MP4, MPV/M2V, CPK, ROQ, FLI, RM/RA/RAM, DV, YUV4MPEG2, MJPEG, and NSV. Xine also provides unpacking of various video codecs such as MPEG1, MPEG2, MPEG4, MS MPEG4, DivX 3/4/5, WMV7/WMV8/WMV9, MJPEG, Cinepak, DV, MSVC, MSRLE, SVQ1/SVQ3, CYUV, ROQ, QT RLE/SMC/RPZA, Theora, Indeo, On2, I263, Real Media. If you access a streaming server, note that the server may close the connection if your application does not accept the frames in real-time.
I recommend to install the w32codecs-package to be able to access proprietary video formats. You also need to install libdvdcss if you want to read encrypted DVDs. Note that there are still countries with laws restricting the free distribution of video decompression software for some codecs.

| XineInput | Input object reading images from a video file using Xine. |
| Constants | |
| Stream information constants. | Constants for requesting different types of information about the stream. |
| Properties | |
| pos | Read and write stream-position in milliseconds. |
| length | Get length of video in milliseconds. |
| width | Get width of video frames. |
| height | Get height of video frames. |
| Functions | |
| XineInput.new | Some possible values for the media resource location are |
| close | Close the video player. |
| inspect | Return string with information about this object. |
| read | Read an image. |
| status? | Indicates whether the video input is still ok. |
| stream_info | Request information about the video stream. |
| frame_duration. | Deprecated method. |
Constants for requesting different types of information about the stream.
def XineInput.new( mrl, framegrab = true )
Some possible values for the media resource location are
| ”dvd://1” | First track of DVD |
| ”vcd://” | Read VCD |
| ”file.mpg” | Open video file with filename “file.mpg” |
If framegrab is false, the video will play in real-time mode. I.e. the read method will wait or skip frames depending on the frame rate and the speed of this application.
| mrl | Media resource location |
| framegrab | Use Xine’s experimental framegrabbing interface |
Some possible values for the media resource location are
def XineInput.new( mrl, framegrab = true )
Close the video player.
def close
Return string with information about this object.
def inspect
Read an image.
def read
Indicates whether the video input is still ok.
def status?
Request information about the video stream.
def stream_info( info )