Never stops when input is stdin
Created by: rbultje
$ SvtAv1EncApp -i Aerial.ffv1.mkv.y4m -b Aerial.ffv1.mkv.ivf -intra-period 120 -lp 4 -tile-rows 0 -tile-columns 0 -enc-mode 8 -q 20
-------------------------------------------
SVT-AV1 Encoder
SVT [version]: SVT-AV1 Encoder Lib v0.5.0
SVT [build] : GCC 7.3.1 20180303 (Red Hat 7.3.1-5) 64 bit
LIB Build date: Jun 10 2019 21:35:15
-------------------------------------------
Number of logical cores available: 4
Number of PPCS 72
-------------------------------------------
SVT [config]: Main Profile Tier (auto) Level (auto)
SVT [config]: EncoderMode : 8
SVT [config]: EncoderBitDepth / EncoderColorFormat / CompressedTenBitFormat : 8 / 1 / 0
SVT [config]: SourceWidth / SourceHeight : 1920 / 1080
SVT [config]: Fps_Numerator / Fps_Denominator / Gop Size / IntraRefreshType : 30 / 1 / 121 / 1
SVT [config]: HierarchicalLevels / BaseLayerSwitchMode / PredStructure : 4 / 0 / 2
SVT [config]: BRC Mode / QP / LookaheadDistance / SceneChange : CQP / 20 / 33 / 0
-------------------------------------------
Encoding 601
SUMMARY --------------------------------- Channel 1 --------------------------------
Total Frames Frame Rate Byte Count Bitrate
601 30.00 fps 42855031 17113.49 kbps
Channel 1
Average Speed: 1.476 fps
Total Encoding Time: 407208 ms
Total Execution Time: 409775 ms
Average Latency: 48113 ms
Max Latency: 66177 ms
Encoder finished
Great, right? Note in particular how the sequence is 600 frames. Now check this:
$ cat Aerial.ffv1.mkv.y4m | SvtAv1EncApp -i stdin -b Aerial.ffv1.mkv.ivf -intra-period 120 -lp 4 -tile-rows 0 -tile-columns 0 -enc-mode 8 -q 20
-------------------------------------------
SVT-AV1 Encoder
SVT [version]: SVT-AV1 Encoder Lib v0.5.0
SVT [build] : GCC 7.3.1 20180303 (Red Hat 7.3.1-5) 64 bit
LIB Build date: Jun 10 2019 21:35:15
-------------------------------------------
Number of logical cores available: 4
Number of PPCS 72
-------------------------------------------
SVT [config]: Main Profile Tier (auto) Level (auto)
SVT [config]: EncoderMode : 8
SVT [config]: EncoderBitDepth / EncoderColorFormat / CompressedTenBitFormat : 8 / 1 / 0
SVT [config]: SourceWidth / SourceHeight : 1920 / 1080
SVT [config]: Fps_Numerator / Fps_Denominator / Gop Size / IntraRefreshType : 30 / 1 / 121 / 1
SVT [config]: HierarchicalLevels / BaseLayerSwitchMode / PredStructure : 4 / 0 / 2
SVT [config]: BRC Mode / QP / LookaheadDistance / SceneChange : CQP / 20 / 33 / 0
-------------------------------------------
Encoding 759^C
I had to abort it here, but it will happily encode forever. Can it stop when it reaches end-of-file?
Revision: 6fd56461