QVidium QVENC Encoder v17 User Manual
Page 51

User’s Manual v.17
QVidium
®
H.264 HD Video Codecs
™
Copyright 2011-2015 QVidium
®
Technologies, Inc.
Page 51 of 73
The input source can be SDI/HD-SDI/3G-SDI or HDMI
”. The encoder automatically detects the
input video resolution, whether it is PAL, or NTSC and whether the input is High-Definition (HD) or
Standard Definition (SD) video. For example, to encode an SDI input to an MPEG2-TS output file
called “test.ts” type:
/qvidium/qvplayer -I sdi -O file -o test.ts
The output video can be saved either as an MPEG 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 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.
10.2.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.