Playing video from a file – QVidium QVSD User Manual
Page 35

User‟s Manual v.3
QVidium
®
QVSD H.264 SD Video
Codec™
Copyright 2011 QVidium
®
Technologies, Inc.Page 35 of 53
/qvidium/qvplayer -I composite -O file -o test.ts
The output video can be saved either as an MPEG-2 Transport Stream (TS), which is the default,
or as an MP4 (Apple Quicktime®) output format. For MP4 format, add an
„–m mp4‟ option to the
example above. Simply leaving off the
–m parameter will use the default MPEG-2 TS format. This
command example uses the default parameters of 8Mb/s for the H264 video bitrate
and 128Mb/sec for the audio bitrate, encoding the audio using MPEG4 AAC with a 48KHz audio
sampling rate. To encode using a different video bitrate or to set other encoding parameters, use
the
–h option as described above to first find the options you are interested in, and then add them
to the command line using the above command line as an example to start with.
By default, starting qvplayer from the command line runs it in the foreground. From this
foreground mode, you can interactively set certain parameters, such as changing the video
encoding bitrate. Typing help gives you a list of the interactive commands. Type quit to stop the
encoding.
9.3
Playing Video From a File
To decode and play out a stored file, cd to the external media directory (such as cd
/media/sda1) and type:
/qvidium/qvplayer –I file –O video –f
Where
USB Flash stick is called test.mp4, then use test.mp4 as the filename:
/qvidium/qvplayer –I file –O video –f test.ts
The decoder knows to automatically set the format type, the resolution, the bitrate, and all other
relevant encoding parameters.