Proryanator / encoder-benchmark

A tool to benchmark your hardware's real-time video encoding capabilities.
GNU General Public License v3.0
66 stars 6 forks source link

Add Retry Logic for Encoder Quality Calculation #31

Closed e-dong closed 1 year ago

e-dong commented 1 year ago

I found your older reddit post, I wonder if I'm running into this issue? https://reddit.com/r/cloudygamer/s/ZfCkwPwNM5

The hanging is very intermittent. If I try rerunning the permutor-cli tool a few times, I can get through the entire run. Will post logs later and try running the ffmpeg command locally.

Output of failed:

Reading option '-' ... matched as output url.           Finished splitting the commandline.                     Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.                                                     Applying option report (generate a report) with argument 1.                                                     Applying option filter_complex (create a complex filtergraph) with argument libvmaf='n_threads=12:n_subsample=5'.                                                       Successfully parsed a group of options.
Parsing a group of options: input url tcp://localhost:2000?listen.                                              Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 120.                      Successfully parsed a group of options.                 Opening an input file: tcp://localhost:2000?listen.
[NULL @ 0x5599f933b980] Opening 'tcp://localhost:2000?listen' for reading                                       [tcp @ 0x5599f9301540] No default whitelist set         tcp://localhost:2000?listen: Immediate exit requested   Exiting normally, received signal 2.

The exit signal is due to me hitting Ctrl + c

Expected output:

...
[out#0/null @ 0x55d609d8d300] Terminating muxer thread  frame= 2383 fps= 62 q=-0.0 Lsize=N/A time=00:00:19.85 bitrate=N/A speed=0.52x                                   video:1117kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown               Input file #0 (tcp://localhost:2000?listen):
  Input stream #0:0 (video): 2383 packets read (100636779 bytes); 2383 frames decoded;                            Total: 2383 packets (100636779 bytes) demuxed         Input file #1 (1080-120.y4m):                             Input stream #1:0 (video): 2383 packets read (7412083200 bytes); 2383 frames decoded;                           Total: 2383 packets (7412083200 bytes) demuxed        Output file #0 (pipe:):                                   Output stream #0:0 (video): 2383 frames encoded; 2383 packets muxed (1143840 bytes);
  Total: 2383 packets (1143840 bytes) muxed
4766 frames successfully decoded, 0 decoding errors     [Parsed_libvmaf_0 @ 0x55d609ec5680] VMAF score: 95.399699
[AVIOContext @ 0x55d609d47b80] Statistics: 100636779 bytes read, 0 seeks                                        [AVIOContext @ 0x55d609eb96c0] Statistics: 7412097579 bytes read, 0 seeks
,

Originally posted by @e-dong in https://github.com/Proryanator/encoder-benchmark/discussions/27