{"_id":"@action-mp4-convert/action-mp4-convert","_rev":"1-e99e0c8296ae542e2bcd7916dd8dd139","name":"@action-mp4-convert/action-mp4-convert","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@action-mp4-convert/action-mp4-convert","version":"1.0.0","description":"For nexrender","publishConfig":{"access":"public"},"dependencies":{"ffmpeg-static":"^2.7.0"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/pekubu/action-mp4-convert.git"},"author":{"name":"pekubu"},"license":"ISC","bugs":{"url":"https://github.com/pekubu/action-mp4-convert/issues"},"homepage":"https://github.com/pekubu/action-mp4-convert#readme","_id":"@action-mp4-convert/action-mp4-convert@1.0.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-zcX81a+Tl8kjrh/hhKH9j+2DeJ3Cikcb9mQBJxrQcuGMCt1DWBaFDpFvshx78GkI9BLwDy0ihUVCcSh1KvyICw==","shasum":"033299bd9be5448c927227a7494d256844134a1c","tarball":"https://registry.npmjs.org/@action-mp4-convert/action-mp4-convert/-/action-mp4-convert-1.0.0.tgz","fileCount":7,"unpackedSize":9133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM6HiCRA9TVsSAnZWagAAdnQP/30cNhQvURWniTE5ZRsY\nbu9VYpyOWDntZQ4np0o2ULr/Ef5wk7fI6laeHrDcSsp7+7IWmUqq3OOstV/3\nSO9hqia32lzZ3tc9bSKo1UnUffICBqJczbxjjHDXj2XqhbP38yEI0H77ViDA\n3bs5hlZlOlZHLAWzAcW9QJOEVOy0knHgnXPE82lDfRMX10Qw+yW2TT3WDPGG\nSUrWiaRtOaawZzrB9vtXsD/X2UimCMzZJf4omeqQGDQbumJ6b7b1kc0wMeop\nCOkorw4BhjzhiZm4e2UkCuOgsa4zLvsNA6TuA+zRyHnx4jLgjQGE/zvdhyHN\n5E9PPKr/or5psPSFcgtPujiUuBHd+BVU8+q+KzhFXU32TIVBwZ3a60Y1DTgQ\nyuUOO3u1mB77WT6ZB3kztNfS9Y8jpSCZhNchUsezXGbE0Nq00IIz1z0qma0R\nT/lpGYfKVcmN3UsCCLx4rx3ibpqAAfMIYj1ylDYGIaVe/wsReqcMblZmi/Sv\nKsXCu0hw+5k6WoQ3WolSkCyLB2+7QsSjNyFMRUcQDA6hJtpHy+MAY6qrDJei\nASU2AwsL0zJahCKWqLknrMX3hQJ5QY96ZanOQJQyfr2W991lDUoPxvsdj3Hc\nslH88hWelGgCKMNXLm6nYOW7zzcs3kz0AlDmhLG0DsQGcdzNc/2N3MjQnwQS\nEB+4\r\n=/VrW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDf+tZJLrikp0jDi93Bpuw3eGTeTVPOZyzxWjTLufCQdAiEA+yue/hFZJqH5R3tOQBr9xj2E688vp3JAE/5suyJMSBg="}]},"maintainers":[{"name":"pekubu","email":"pekubu@gmail.com"}],"_npmUser":{"name":"pekubu","email":"pekubu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-mp4-convert_1.0.0_1580442081714_0.22035342546000947"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-31T03:41:21.479Z","1.0.0":"2020-01-31T03:41:21.871Z","modified":"2022-04-04T11:17:13.118Z"},"maintainers":[{"name":"pekubu","email":"pekubu@gmail.com"}],"description":"For nexrender","homepage":"https://github.com/pekubu/action-mp4-convert#readme","repository":{"type":"git","url":"git+https://github.com/pekubu/action-mp4-convert.git"},"author":{"name":"pekubu"},"bugs":{"url":"https://github.com/pekubu/action-mp4-convert/issues"},"license":"ISC","readme":"# Action: Encode\r\n\r\nEncode your video to a specified format using built-in ffmpeg utility. You don't need to have ffmpeg installed on your system.\r\n\r\n## Installation\r\n\r\nIf you are using [binary](https://github.com/inlife/nexrender/releases) version of the nexrender,\r\nthere is no need to install the module, it is **included** in the binary build.\r\n\r\n```\r\nnpm i @nexrender/action-encode -g\r\n```\r\n\r\n## Usage\r\n\r\nWhen creating your render job provide this module as one of the `postrender` actions:\r\n\r\n```json\r\n// job.json\r\n{\r\n    \"actions\": {\r\n        \"postrender\": [\r\n            {\r\n                \"module\": \"@nexrender/action-encode\",\r\n                \"output\": \"foobar.mp4\",\r\n                \"preset\": \"mp4\",\r\n                \"params\": {\"-vcodec\": \"libx264\", \"-r\": 25}\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\n## Information\r\n\r\n* `output` is a path on your system where result will be saved to, can be either relative or absulte path.\r\n* `input` optional argument, path of the file you want to encode, can be either relative or absulte path. Defaults to current job output video file.\r\n* `preset` optional argument, if provided will be used as a preset for the renderer, if not, will take input directly from params\r\n* `params` optional argument, object containing additional params that will be provided to the ffmpeg binary\r\n\r\n## Presets\r\n\r\nThere are a couple of default presets included with the build. You can provide `params` field to override any of the values there.\r\n\r\n### mp4\r\n\r\n```js\r\n{\r\n    '-acodec': 'aac',\r\n    '-ab': '128k',\r\n    '-ar': '44100',\r\n    '-vcodec': 'libx264',\r\n    '-r': '25',\r\n}\r\n```\r\n\r\n### ogg\r\n\r\n```js\r\n{\r\n    '-acodec': 'libvorbis',\r\n    '-ab': '128k',\r\n    '-ar': '44100',\r\n    '-vcodec': 'libtheora',\r\n    '-r': '25',\r\n}\r\n```\r\n\r\n### webm\r\n\r\n```js\r\n{\r\n    '-acodec': 'libvorbis',\r\n    '-ab': '128k',\r\n    '-ar': '44100',\r\n    '-vcodec': 'libvpx',\r\n    '-b': '614400',\r\n    '-aspect': '16:9',\r\n}\r\n```\r\n\r\n### mp3\r\n\r\n```js\r\n{\r\n    '-acodec': 'libmp3lame',\r\n    '-ab': '128k',\r\n    '-ar': '44100',\r\n\r\n}\r\n```\r\n\r\n### m4a\r\n\r\n```js\r\n{\r\n    '-acodec': 'aac',\r\n    '-ab': '64k',\r\n    '-ar': '44100',\r\n    '-strict': '-2',\r\n}\r\n```\r\n","readmeFilename":"readme.md"}