at 21.11-pre 919 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: 2let 3 # Download Big Buck Bunny example, licensed under CC Attribution 3.0. 4 testMkv = pkgs.fetchurl { 5 url = "https://github.com/Matroska-Org/matroska-test-files/blob/cf0792be144ac470c4b8052cfe19bb691993e3a2/test_files/test1.mkv?raw=true"; 6 sha256 = "1hfxbbgxwfkzv85pvpvx55a72qsd0hxjbm9hkl5r3590zw4s75h9"; 7 }; 8in { 9 name = "handbrake"; 10 11 meta = { 12 maintainers = with pkgs.lib.maintainers; [ danieldk ]; 13 }; 14 15 machine = { pkgs, ... }: { 16 environment.systemPackages = with pkgs; [ handbrake ]; 17 }; 18 19 testScript = '' 20 # Test MP4 and MKV transcoding. Since this is a short clip, transcoding typically 21 # only takes a few seconds. 22 start_all() 23 24 machine.succeed( 25 "HandBrakeCLI -i ${testMkv} -o test.mp4 -e x264 -q 20 -B 160" 26 ) 27 machine.succeed( 28 "HandBrakeCLI -i ${testMkv} -o test.mkv -e x264 -q 20 -B 160" 29 ) 30 ''; 31})