Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--frame-format error #108

Open
RoyZhDec opened this issue Jan 5, 2021 · 2 comments
Open

--frame-format error #108

RoyZhDec opened this issue Jan 5, 2021 · 2 comments

Comments

@RoyZhDec
Copy link

RoyZhDec commented Jan 5, 2021

It runs correctly when I use xvfb-run -s "-ac -screen 0 1280x1024x24" ffmpeg-concat -o all_in_one.mp4 -T trans_temp.json 1.mp4 2.mp4 3.mp4 4.mp4
However, in order to avoid large storage costs, I set -f jpg, I get errors like these:

xvfb-run -s "-ac -screen 0 1280x1024x24" ffmpeg-concat -o all_in_one.mp4 -f jpg -T trans_temp.json 1.mp4 2.mp4 3.mp4 4.mp4
{
cmd: 'ffmpeg -i 1.mp4 -y -loglevel info -pix_fmt rgba -start_number 0 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-0-%012d.jpg'
}
{
cmd: 'ffmpeg -i 2.mp4 -y -loglevel info -pix_fmt rgba -start_number 0 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-1-%012d.jpg'
}
{
cmd: 'ffmpeg -i 4.mp4 -y -loglevel info -pix_fmt rgba -start_number 0 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-3-%012d.jpg'
}
{
cmd: 'ffmpeg -i 3.mp4 -y -loglevel info -pix_fmt rgba -start_number 0 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-2-%012d.jpg'
}
{
cmd: 'ffmpeg -ss 0.25 -i 2.mp4 -y -acodec libmp3lame -vn -t 0.5 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-1.mp3'
}
{
cmd: 'ffmpeg -i 1.mp4 -y -acodec libmp3lame -vn -t 1.25 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-0.mp3'
}
{
cmd: 'ffmpeg -ss 0.25 -i 3.mp4 -y -acodec libmp3lame -vn -t 0.7 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-2.mp3'
}
{
cmd: 'ffmpeg -ss 0.25 -i 4.mp4 -y -acodec libmp3lame -vn -t 3.183 /tmp/aaf0c04dfb4bbce5a3cf54d2bfc22437/scene-3.mp3'
}
init-frames: 2.791s
render 0%
render 9%
ffmpeg-concat: 12.772s
concat error TypeError: this._relink is not a function
at Shader.proto.bind (/root/.npm-global/lib/node_modules/ffmpeg-concat/node_modules/gl-shader/index.js:31:10)
at Object.draw (/root/.npm-global/lib/node_modules/ffmpeg-concat/node_modules/gl-transition/lib/index.js:53:14)
at Object.draw (/root/.npm-global/lib/node_modules/ffmpeg-concat/lib/transition.js:58:18)
at async AsyncFunction.module.exports.renderFrame (/root/.npm-global/lib/node_modules/ffmpeg-concat/lib/render-frames.js:76:5)
(node:4175) UnhandledPromiseRejectionWarning: TypeError: this._relink is not a function
at Shader.proto.bind (/root/.npm-global/lib/node_modules/ffmpeg-concat/node_modules/gl-shader/index.js:31:10)
at Object.draw (/root/.npm-global/lib/node_modules/ffmpeg-concat/node_modules/gl-transition/lib/index.js:53:14)
at Object.draw (/root/.npm-global/lib/node_modules/ffmpeg-concat/lib/transition.js:58:18)
at async AsyncFunction.module.exports.renderFrame (/root/.npm-global/lib/node_modules/ffmpeg-concat/lib/render-frames.js:76:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:4175) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:4175) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@TejasBob
Copy link

did you find any solution for this? I'm also facing same problem for png frameFormat.

@712163
Copy link

712163 commented Aug 17, 2024

did you find any solution for this? I'm also facing same problem for png frameFormat.

Me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants