Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stdout and stderr logging for AV2. #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add stdout and stderr logging for AV2. #104

wants to merge 2 commits into from

Conversation

tdaede
Copy link
Collaborator

@tdaede tdaede commented Apr 9, 2021

No description provided.

@tdaede tdaede requested review from negge and smarter April 9, 2021 14:37
@@ -250,7 +250,7 @@ av2 | av2-ai | av2-ra | av2-ra-st | av2-ld | av2-as)
echo "#!/bin/bash" > /tmp/enc$$.sh
echo "TIMER='time -v --output='enctime$$-\$1.out" >> /tmp/enc$$.sh
echo "RUN='$AOMENC --codec=av1 --cq-level=$x --test-decode=fatal $CTC_PROFILE_OPTS -o $BASENAME-'\$1'.obu $EXTRA_OPTIONS --limit=130 --'\$1'=65 $FILE'" >> /tmp/enc$$.sh
echo "\$(\$TIMER \$RUN > $BASENAME$$-stdout.txt)" >> /tmp/enc$$.sh
echo "\$(\$TIMER \$RUN > $BASENAME$$-stdout.txt 2> $BASENAME$$-stderr.txt)" >> /tmp/enc$$.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't $BASENAME$$-stderr.txt contain the PID of the executing process (for use with GOP parallelism)?

It looks like the files are copied back, but they will still contain the PID and not easily linkable from the AWCY frontend. Are these merged somewhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they shouldn't contain the PID? However, they don't actually get merged properly. Both of those should probably be >> for mt.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The $$ in those file names is the PID. I don't think you want to use >> as that would interleave the output. Instead, after both have completed, you should merge these into a single file before copying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants