Permalink
Browse files

Update config files and usage. Addresses issue #32.

  • Loading branch information...
1 parent 1d74dac commit 7592499f9dc104665e22c01e017cd3c13815e0bb Thomas Davies committed Nov 27, 2015
View
@@ -14,7 +14,9 @@ Binaries will appear in the build/ directory.
## Usage
-encoder: Thorenc -cf config.txt
+encoder: Thorenc -cf config.txt -if in.yuv -of str.bit -rf out.yuv -qp N -width [width] -height [height] -f [framerate] -stat out.stat -qp [quant] -n [num frames]
-decoder: Thordec str.bit out.yuv
+A y4m file can be provided for input, and it will override width, height and framerate values given on the command-line.
+
+decoder: Thordec str.bit out.dec.yuv
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 15 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -45,4 +36,3 @@
-use_block_contexts 1 ; Use block contexts
-enable_bipred 1 ; Enable biprediction
-encoder_speed 0 ; Encoder complexity parameter (0: Slow, 1: Moderate: 2: Fast)
--max_delta_qp 1 ; Abs max delta qp
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 15 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 15 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 7 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -42,4 +33,3 @@
-use_block_contexts 1 ; Use block contexts
-enable_bipred 1 ; Enable biprediction
-encoder_speed 0 ; Encoder complexity parameter (0: Slow, 1: Moderate: 2: Fast)
--max_delta_qp 1 ; Abs max delta qp
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 7 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 7 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 12 ; Period of high quality frames
-mqpP 1.2 ; QP multiplier for low quality P frames
-dqpI -2 ; QP offset for intra frames
@@ -25,4 +16,3 @@
-use_block_contexts 1 ; Use block contexts
-enable_bipred 1 ; Enable biprediction
-encoder_speed 0 ; Encoder complexity parameter (0: Slow, 1: Moderate: 2: Fast)
--max_delta_qp 1 ; Abs max delta qp
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 12 ; Period of high quality frames
-mqpP 1.2 ; QP multiplier for low quality frames
-dqpI -2 ; QP offset for intra frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 12 ; Period of high quality frames
-mqpP 1.2 ; QP multiplier for low quality frames
-dqpI -2 ; QP offset for intra frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 15 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -47,4 +38,3 @@
-use_block_contexts 1 ; Use block contexts
-enable_bipred 1 ; Enable biprediction
-encoder_speed 0 ; Encoder complexity parameter (0: Slow, 1: Moderate: 2: Fast)
--max_delta_qp 1 ; Abs max delta qp
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 15 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 15 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 7 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -44,4 +35,3 @@
-use_block_contexts 1 ; Use block contexts
-enable_bipred 1 ; Enable biprediction
-encoder_speed 0 ; Encoder complexity parameter (0: Slow, 1: Moderate: 2: Fast)
--max_delta_qp 1 ; Abs max delta qp
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 7 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames
@@ -1,12 +1,3 @@
--if c:\video\Rover\TelePresence_1920x1080_60.yuv ; Input yuv sequence
--of str.bit ; Output bitstream
--rf rec.yuv ; Reconstructed yuv sequence
--stat stat.txt ; Statistics to file
--width 1920 ; Witdh of luminance
--height 1080 ; Height of luminance
--n 16 ; Number of frames to encode
--f 60 ; Frame rate in Hz
--qp 32 ; Quantization parameter
-HQperiod 1 ; Period of high quality frames
-num_reorder_pics 7 ; GOPsize - 1
-interp_ref 1 ; Use interpolated reference frames

0 comments on commit 7592499

Please sign in to comment.