-
Notifications
You must be signed in to change notification settings - Fork 3k
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
test/libmpv_test: add default track selection testing #14393
base: master
Are you sure you want to change the base?
test/libmpv_test: add default track selection testing #14393
Conversation
d9d5e5c
to
cad0996
Compare
Download the artifacts for this pull request: |
Edit: dated. |
ci/generate-test-media.sh
Outdated
|
||
# Create core video, audio, and subtitle streams to construct files out of. | ||
ffmpeg -y -f lavfi -i testsrc=duration=2:size=1280x720 video.mkv | ||
ffmpeg -y -f lavfi -i sine=frequency=1000:duration=2 audio.flac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be better to do it with mpv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would personally prefer avoiding mpv's encoding mode.
435b1c8
to
0a8dda2
Compare
9feae32
to
7e70efe
Compare
a9abe5d
to
9a560fd
Compare
I reworked this so the edit: openbsd fails the test for some reason. Will take a look later. |
d8d8768
to
53536d8
Compare
Fixed now. It's because openbsd had the old ffmpeg version (4.4) in its path and that version has a bug when setting forced tracks causing the test to fail. I don't believe there is a way for |
53536d8
to
652763b
Compare
0d912e4
to
e9a99c3
Compare
07a1ed0
to
c95dc47
Compare
9da5616
to
3416af5
Compare
I think we should ensure that at least on linux ci the ffmpeg is there. |
It just needs to thrown on the tumbleweed container. cc @llyyr. |
The big libmpv test file is really actually three different tests shoved together into one. They do all use fairly similar underlying structures, so put the shared stuff into an inline header. There's a little bit of duplication with regards to the main function, but it's cleaner to separate out the tests.
3416af5
to
10c6870
Compare
The amount of options we have that are related track selection is insane and touching any of this stuff is scary. Add some track selection testing to the CI to hopefully make it slightly less scary to touch any of that. Since trying to work in media files from some outside source would be a pain and need to live in some repo somewhere, it's nicer to just generate dummy files on the fly with ffmpeg during the ci runs and use that. Obviously, the actual tests themselves could be even more thorough (external tracks were not even considered), but this is more than a good enough start for now.
10c6870
to
ad51b84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok.
The amount of options we have that are related track selection is insane and touching any of this stuff is scary. Add some track selection testing to the CI to hopefully make it slightly less scary to touch any of that. Since trying to work in media files from some outside source would be a pain and need to live in some repo somewhere, it's nicer to just generate dummy files on the fly with ffmpeg during the ci runs and use that. Obviously, the actual tests themselves could be even more thorough (external tracks were not even considered), but this is more than a good enough start for now.
Read this before you submit this pull request:
https://github.com/mpv-player/mpv/blob/master/DOCS/contribute.md
Reading this link and following the rules will get your pull request reviewed
and merged faster. Nobody wants lazy pull requests.