8000 Display possible vspipe errors when ffmpeg pipe is present by redzic · Pull Request #519 · rust-av/Av1an · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Display possible vspipe errors when ffmpeg pipe is present #519

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

Merged
merged 2 commits into from
Jan 7, 2022

Conversation

redzic
Copy link
Collaborator
@redzic redzic commented Jan 7, 2022

This makes better error messages in the case of an ffmpeg pipe, where it would otherwise only display pipe:: invalid data found when processing input and the error from the encoder.

Here is an error message with this PR, showing the error from all 3 places:

ERROR [av1an_core::broker] [chunk 0] encoder crashed: exit status: 1
stdout:

stderr:
        Fatal: Specify stream dimensions with --width (-w)  and --height (-h)


source pipe stderr:
        Deprecated option --y4m specified, use -c y4m instead
        Error: can only apply y4m headers to YUV and Gray format clips without alpha
        Output 150 frames in 68280.21 seconds (0.00 fps)

ffmpeg pipe stderr:
        pipe:: Invalid data found when processing input

@redzic redzic changed the title Display possible errors vspipe when ffmpeg pipe is present Display possible vspipe errors when ffmpeg pipe is present Jan 7, 2022
Copy link
Member
@shssoichiro shssoichiro left a comment

Choose a reason for hiding this comment

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

🏆

@shssoichiro
Copy link
Member

Oh wait. Clippy is mad.

@redzic
Copy link
Collaborator Author
redzic commented Jan 7, 2022

Ah, I was getting an insane amount of borrow checker errors when implementing this, so I switched to manually doing Option::map but it may not be necessary anymore. I'll see if I can fix it.

@shssoichiro
Copy link
Member

Ping on Discord if you need help 👍

@redzic
Copy link
Collaborator Author
redzic commented Jan 7, 2022

Should be fixed now, the real fix was to use Option::take for certain things. Sometimes clippy does suggest things that the borrow checker does not like though.

@shssoichiro
Copy link
Member

Particularly since we have pedantic and nursery lints enabled, which tend to be buggier and have more false positives... which is another discussion. 🙂

@mergify mergify bot merged commit 38c1db6 into rust-av:master Jan 7, 2022
mergify bot pushed a commit that referenced this pull request Jan 7, 2022
* Display possible errors vspipe when ffmpeg pipe is present

* Fix clippy warnings

(cherry picked from commit 38c1db6)
@redzic redzic deleted the vspipe-error branch January 7, 2022 23:09
mergify bot pushed a commit that referenced this pull request Jan 7, 2022
* Display possible errors vspipe when ffmpeg pipe is present

* Fix clippy warnings

(cherry picked from commit 38c1db6)
redzic added a commit that referenced this pull request Jan 17, 2022
* Fixed a typo [enocoder => encoder] (#517)

* new av1an preview

* Update preview screenshot, again

* Display possible vspipe errors when ffmpeg pipe is present (#519)

* Display possible errors vspipe when ffmpeg pipe is present

* Fix clippy warnings

* Fixed mkvmerge on windows by allowing for commands over 32767 characters to be executed. (#521)

* Fixed mkvmerge on windows by allowing for commands over 32767 characters to be executed.

* Fix formatting

* Fix errors

* Fix clippy warnings

Co-authored-by: Kesava Viswanadha <kviswanadha@berkeley.edu>
Co-authored-by: Redzic <yusufredzic@gmail.com>

* Fix mkvmerge concat (#523)

* Call fix_path for mkvmerge concat (#533)

* Call fix_path for mkvmerge concat

* Fix formatting

* Encoder mode/rate check (#532)

* Encoder mode/rate check

* Tweak

Co-authored-by: Redzic <yusufredzic@gmail.com>

* Re-add concat info to --help (#537)

* Update version to 0.3.1 (#541)

Co-authored-by: nusu-github <29514220+nusu-github@users.noreply.github.com>
Co-authored-by: Zen <46526140+master-of-zen@users.noreply.github.com>
Co-authored-by: redzic <48274562+redzic@users.noreply.github.com>
Co-authored-by: KesavaViswanadha <79319318+KesavaViswanadha@users.noreply.github.com>
Co-authored-by: Kesava Viswanadha <kviswanadha@berkeley.edu>
Co-authored-by: Redzic <yusufredzic@gmail.com>
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
0