edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | #!/bin/bash |
| 2 | # lane-streamsink r1: same census as run_film.sh, but our decoder streams its |
| 3 | # frames into a FIFO (ec_av1::stream::decode_stream_with, one frame written the |
| 4 | # moment it completes) and cmp2.py reads one frame from that FIFO and one from |
| 5 | # ffmpeg's stdout at a time. Neither side ever holds more than a frame, so the |
| 6 | # segment length no longer bounds memory -- peak RSS of the decoder is ~0.44 GB |
| 7 | # on a 4K 10-bit window regardless of how long the window is. |
| 8 | # usage: run_film_fifo.sh <name> <film> <width> <height> <seg_seconds> [probe] |
| 9 | |
| 10 | S="" |
| 11 | NAME=""; FILM=""; W=""; H=""; SEG="" |
| 12 | PROBE="" |
| 13 | T=/.cache/fullfilm-fifo/ |
| 14 | ; |
| 15 | STATE=/state.json |
| 16 | DUR= |
| 17 | |
| 18 | T0= |
| 19 | s=0 |
| 20 | while [; do |
| 21 | seg=/seg.obu; fifo=/ours.fifo |
| 22 | |
| 23 | |
| 24 | if [; then ; s=; continue; fi |
| 25 | |
| 26 | base= |
| 27 | |
| 28 | |
| 29 | EC_PROBE_OUT16="" & |
| 30 | probe= |
| 31 | line= |
| 32 | |
| 33 | ; rc= |
| 34 | r= |
| 35 | [ && r="KILLED(rc=)" |
| 36 | [ && r="NO-MATCH-LINE(rc=)" |
| 37 | now=; el=; [ && el=1 |
| 38 | tot= |
| 39 | |
| 40 | |
| 41 | fpm= |
| 42 | |
| 43 | |
| 44 | s= |
| 45 | done |
| 46 | now=; el=; [ && el=1 |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 |