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

--match-filter does not work if output to stdout #24991

Closed
CodingVoid opened this issue Apr 25, 2020 · 2 comments
Closed

--match-filter does not work if output to stdout #24991

CodingVoid opened this issue Apr 25, 2020 · 2 comments
Labels

Comments

@CodingVoid
Copy link

@CodingVoid CodingVoid commented Apr 25, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.03.24
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

youtube-dl -o "-" --match-filter "acodec = opus" "https://www.youtube.com/watch?v=6TWJaFD6R2s"
[youtube] 6TWJaFD6R2s: Downloading webpage
[download] #Stereo: Left and Right Stereo Sound Test does not pass filter acodec = opus, skipping ..

The same without output to stdout:

youtube-dl -o "test.webm" --match-filter "acodec = opus" "https://www.youtube.com/watch?v=6TWJaFD6R2s"
[youtube] 6TWJaFD6R2s: Downloading webpage
[download] Destination: test.f313.webm
[download] 100% of 81.01MiB in 00:07
[download] Destination: test.f251.webm
[download] 100% of 1.72MiB in 00:00
[ffmpeg] Merging formats into "test.webm"
Deleting original file test.f313.webm (pass -k to keep)
Deleting original file test.f251.webm (pass -k to keep)

Description

If I output to stdout, then --match-filter does not seem to work.
But if I do the same with output to a file like shown in the second command it works as expected.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 25, 2020

There is no single file file media matching this filter.

@dstftw dstftw closed this Apr 25, 2020
@dstftw dstftw added the invalid label Apr 25, 2020
@CodingVoid
Copy link
Author

@CodingVoid CodingVoid commented Apr 25, 2020

I really don't see how you come to this conclusion, but anyway I did what I could to report this bug (if it is even a bug, maybe it is wanted behaviour, who knows...).

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.