Javicle - a JSON Video Composition Language
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
682 B

  1. #!/bin/bash
  2. #
  3. # Add a silent audio track to a video asset
  4. #
  5. # Usage:
  6. #
  7. # jaddsilence in-file out-file
  8. #
  9. # in-file : input video file
  10. # out-file : write output file here
  11. #
  12. SCRIPT="${0}"
  13. SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
  14. . "${SCRIPT_DIR}"/jvcl_common
  15. IN_FILE="${1?no video-file provided}"
  16. OUT_FILE="${2?no out-file provided}"
  17. echo "
  18. {
  19. \"assets\": [
  20. { \"name\": \"input\", \"path\": \"${IN_FILE}\" }
  21. ],
  22. \"operations\": [
  23. {
  24. \"operation\": \"add-silence\",
  25. \"creates\": {
  26. \"name\": \"with_silence\",
  27. \"dest\": \"${OUT_FILE}\"
  28. },
  29. \"source\": \"input\"
  30. }
  31. ]
  32. }
  33. " | "${SCRIPT_DIR}"/jvcl ${JVCL_OPTIONS}