Javicle - a JSON Video Composition Language
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Running JVC
  2. ## The `jvc` Script
  3. The `jvc` script (in the `bin` directory) is the primary way to transform video
  4. assets with JVC.
  5. ## Operation-specific scripts
  6. There are other scripts in [`bin`](../bin) that perform a single operation using
  7. command-line arguments. If you need to do a quick operation and don't want to write
  8. a JVC spec, use one of [these tools](../bin).
  9. For example, to extract the first 5 seconds of a video:
  10. ```shell script
  11. jtrim /tmp/input-file.mp4 /tmp/output-5s.mp4 0 5
  12. ```
  13. ## Help
  14. All commands accept a `-h` / `--help` option, this will print information about
  15. how to use the command, and what arguments it takes.
  16. To view a help for a command, just run the command with `-h` or `--help` as the
  17. first option:
  18. ```shell script
  19. jvc -h
  20. jscale -h
  21. jtrim -h
  22. ...
  23. ```
  24. ## JVC Spec Files
  25. A JVC spec is just a regular JSON file that happens to contain a single JSON object,
  26. whose properties are `assets` and `operations`.
  27. When you run `jvc` on a spec file, it will load the `assets`, then perform the `operations` in order.
  28. Learn more about [Assets and Operations](concepts.md)
  29. Unlike most JSON, comments *are* allowed in JVC spec files:
  30. * A line comment starts with `//` and continue to the end of the line
  31. * A multi-line block starts with `/*` and ends with `*/`
  32. ## Writing a JVC Spec
  33. The easiest way to write a spec is to copy one of the
  34. [test specs](../src/test/resources/tests) and edit it.
  35. There examples for every JVC operation.
  36. ## Executing a JVC Spec
  37. To execute a spec stored in the file `my-spec.json`, you would run:
  38. ```shell script
  39. jvc my-spec.jvc
  40. ```
  41. or use stdin:
  42. ```shell script
  43. cat my-spec.jvc | jvc
  44. ```
  45. ## Command Line Options
  46. #### Scratch Directory
  47. Output assets will be placed in the scratch directory, unless otherwise specified
  48. in the spec file. By default, JVC will create a new temporary directory to use as the scratch
  49. directory. You can set the scratch directory explicitly using the `-t` or `--temp-dir` option:
  50. ```shell script
  51. jvc -t /some/tempdir my-spec.json
  52. ```
  53. When using the other tools in `bin`, you can set the scratch directory via the
  54. `JVC_SCRATCH_DIR` environment variable. If the `JVC_SCRATCH_DIR` references a
  55. directory that does not exist, it will be created.
  56. #### Dry Run
  57. Use the `-n` or `--no-exec` option to print out the commands that would have been run,
  58. but do not actually run anything.
  59. ```shell script
  60. jvc -n my-spec.json # will not run any ffmpeg commands
  61. ```
  62. Note that this breaks JVC operations that require information from any assets created by
  63. previous operations: since the command did not actually run, the intermediate asset was
  64. never created.
  65. When using the other tools in `bin`, you can set the "no exec" flag via the
  66. `JVC_NO_EXEC` environment variable. If the `JVC_NO_EXEC` is non-empty, then
  67. the script will pass the `-n` flag when it calls `jvc` and commands will
  68. be printed out instead of actually being run.
  69. #### Help
  70. To view a list of all `jvc` command-line options, run `jvc -h` or `jvc --help`
  71. # What's Next?
  72. Learn about [Assets and Operations](concepts.md), the core concepts of JVC.