147 lines
5.9 KiB
YAML
147 lines
5.9 KiB
YAML
steps:
|
|
|
|
2_sections_default_options:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50
|
|
- expect_duration "tests/input_1.mp4" 10
|
|
- expect_duration "tests/input_1.mp3" 10
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/input_1.*
|
|
|
|
2_sections_no_transcode:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50 --no-transcode
|
|
- expect_duration "tests/input_1.mp4" 10
|
|
- expect_duration "tests/input_1.mp3" 10
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/input_1.*
|
|
|
|
2_sections_nameprefix:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50 -o tests/output
|
|
- expect_duration "tests/output_1.mp4" 10
|
|
- expect_duration "tests/output_1.mp3" 10
|
|
- expect_audio_bitrate "tests/output_1.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/output_1.*
|
|
|
|
2_sections_nameprefix_ext:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50 -o tests/output.mkv
|
|
- expect_duration "tests/output_1.mkv" 10
|
|
- expect_duration "tests/output_1.mp3" 10
|
|
- expect_audio_bitrate "tests/output_1.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/output_1.*
|
|
|
|
2_sections_fullname_ext:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50 --output-files=tests/bob.mkv
|
|
- expect_duration "tests/bob.mkv" 10
|
|
- expect_duration "tests/bob.mp3" 10
|
|
- expect_audio_bitrate "tests/bob.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/bob.*
|
|
|
|
2_sections_noskip:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50 --no-skip
|
|
- expect_duration "tests/input_1.mp4" 50
|
|
- expect_duration "tests/input_1.mp3" 50
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_duration "tests/input_2.mp4" 10
|
|
- expect_duration "tests/input_2.mp3" 10
|
|
- expect_audio_bitrate "tests/input_2.mp3" 320000
|
|
- expect_file_count "./tests" 7 # only 4 extra files must have been generated
|
|
- rm -f tests/input_*
|
|
|
|
2_sections_noskip_fullname:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:50 --output-files="bob,cat's paw" --no-skip
|
|
- expect_duration "bob.mp4" 50
|
|
- expect_duration "bob.mp3" 50
|
|
- expect_audio_bitrate "bob.mp3" 320000
|
|
- expect_duration "cat's paw.mp4" 10
|
|
- expect_duration "cat's paw.mp3" 10
|
|
- expect_audio_bitrate "cat's paw.mp3" 320000
|
|
- rm -f "bob.mp4" "bob.mp3" "cat's paw.mp4" "cat's paw.mp3"
|
|
|
|
4_sections_default_options:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:10 -t 00:00:20 -t 00:00:55
|
|
- expect_duration "tests/input_1.mp4" 10
|
|
- expect_duration "tests/input_1.mp3" 10
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_duration "tests/input_2.mp4" 5
|
|
- expect_duration "tests/input_2.mp3" 5
|
|
- expect_audio_bitrate "tests/input_2.mp3" 320000
|
|
- expect_file_count "./tests" 7 # only 4 extra files must have been generated
|
|
- rm -f tests/input_*
|
|
|
|
4_sections_skips:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:10 -t 00:00:15 -t 00:00:25 --skip=1,4
|
|
- expect_duration "tests/input_1.mp4" 5
|
|
- expect_duration "tests/input_1.mp3" 5
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_duration "tests/input_2.mp4" 10
|
|
- expect_duration "tests/input_2.mp3" 10
|
|
- expect_audio_bitrate "tests/input_2.mp3" 320000
|
|
- expect_file_count "./tests" 7 # only 4 extra files must have been generated
|
|
- rm -f tests/input_*
|
|
|
|
4_sections_skips2:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:10 -t 00:00:15 -t 00:00:25 --skip=1,2,4
|
|
- expect_duration "tests/input_1.mp4" 10
|
|
- expect_duration "tests/input_1.mp3" 10
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/input_*
|
|
|
|
4_sections_skips_duplicate:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:10 -t 00:00:15 -t 00:00:25 --skip=1,4,2,4,1
|
|
- expect_duration "tests/input_1.mp4" 10
|
|
- expect_duration "tests/input_1.mp3" 10
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_file_count "./tests" 5 # only 2 extra files must have been generated
|
|
- rm -f tests/input_*
|
|
|
|
5_sections_default_options:
|
|
image: quay.io/meisam/ffmpeg:latest
|
|
commands:
|
|
- . ./tests/ci.sh
|
|
- ./jnk_cutter.sh -i tests/input.mp4 -t 00:00:10 -t 00:00:20 -t 00:00:50 -t 00:00:55
|
|
- expect_duration "tests/input_1.mp4" 10
|
|
- expect_duration "tests/input_1.mp3" 10
|
|
- expect_audio_bitrate "tests/input_1.mp3" 320000
|
|
- expect_duration "tests/input_2.mp4" 5
|
|
- expect_duration "tests/input_2.mp3" 5
|
|
- expect_audio_bitrate "tests/input_2.mp3" 320000
|
|
- expect_file_count "./tests" 7 # only 4 extra files must have been generated
|
|
- rm -f tests/input_* |