Generating preview video fails when a list of frames is specified #104285

Closed
opened 2024-02-22 20:19:06 +01:00 by paperManu · 1 comment
Contributor

System Information
Operating System(s): Linux, Debian 11.7

Flamenco Version
Is Broken: 3.4
Worked OK: Don't know if it ever worked.

When specifying a list of frames to be rendered in the Blender addon, say 1, 4, 5, 12, 125, the preview-video task fails every time. See the attached image for another example.

To reproduce this issue:

  • set the Frames parameter to a list of frames
  • submit the job to Flamenco
  • wait for the frames to be rendered
  • the preview-video task should fail.

Here is the output from the flamenco-worker which tried running the ffmpeg command. It might be hard to read, so I added spaced between differents lines:

2024-02-22T12:08:12-05:00 INF obtained task task={"commands":[{"name":"frames-to-video","parameters":{"args":["-c:v","h264","-crf","20","-g","18","-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-pix_fmt","yuv420p","-r",24,"-y"],"exe":"ffmpeg","fps":24,"inputGlob":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg","outputFile":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4"}}],"job":"04907626-cf73-4ac3-92f1-5cced44159bb","job_priority":50,"job_type":"simple-blender-render","name":"preview-video","priority":50,"status":"active","task_type":"ffmpeg","uuid":"6666a528-c605-4282-a02b-52456ac19db6"}

2024-02-22T12:08:12-05:00 INF starting task job=04907626-cf73-4ac3-92f1-5cced44159bb task=6666a528-c605-4282-a02b-52456ac19db6 taskType=ffmpeg

2024-02-22T12:08:12-05:00 INF running Flamenco command command=frames-to-video parameters={"args":["-c:v","h264","-crf","20","-g","18","-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-pix_fmt","yuv420p","-r",24,"-y"],"exe":"ffmpeg","fps":24,"inputGlob":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg","outputFile":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4"} task=6666a528-c605-4282-a02b-52456ac19db6

2024-02-22T12:08:12-05:00 INF going to run: /media/nas-lab148/00_farm/flamenco/tools/ffmpeg-linux-amd64 -r 24 -pattern_type glob -i '/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg' -c:v h264 -crf 20 -g 18 -vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2' -pix_fmt yuv420p -r 24 -y -r 24 '/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4' command=frames-to-video task=6666a528-c605-4282-a02b-52456ac19db6

2024-02-22T12:08:13-05:00 ERR command exited abnormally command=frames-to-video exitCode=1 pid=485543 task=6666a528-c605-4282-a02b-52456ac19db6

2024-02-22T12:08:13-05:00 ERR command exited abnormally command=frames-to-video exitCode=1 pid=485543 task=6666a528-c605-4282-a02b-52456ac19db6

2024-02-22T12:08:13-05:00 ERR command exited abnormally error="command exited abnormally with code 1" command=frames-to-video exitCode=1 task=6666a528-c605-4282-a02b-52456ac19db6

2024-02-22T12:08:13-05:00 WRN error executing task error="command exited abnormally with code 1" task={"commands":[{"name":"frames-to-video","parameters":{"args":["-c:v","h264","-crf","20","-g","18","-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-pix_fmt","yuv420p","-r",24,"-y"],"exe":"ffmpeg","fps":24,"inputGlob":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg","outputFile":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4"}}],"job":"04907626-cf73-4ac3-92f1-5cced44159bb","job_priority":50,"job_type":"simple-blender-render","name":"preview-video","priority":50,"status":"active","task_type":"ffmpeg","uuid":"6666a528-c605-4282-a02b-52456ac19db6"}

**System Information** Operating System(s): Linux, Debian 11.7 **Flamenco Version** Is Broken: 3.4 Worked OK: Don't know if it ever worked. When specifying a list of frames to be rendered in the Blender addon, say `1, 4, 5, 12, 125`, the `preview-video` task fails every time. See the attached image for another example. To reproduce this issue: - set the `Frames` parameter to a list of frames - submit the job to Flamenco - wait for the frames to be rendered - the `preview-video` task should fail. Here is the output from the `flamenco-worker` which tried running the `ffmpeg` command. It might be hard to read, so I added spaced between differents lines: ``` 2024-02-22T12:08:12-05:00 INF obtained task task={"commands":[{"name":"frames-to-video","parameters":{"args":["-c:v","h264","-crf","20","-g","18","-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-pix_fmt","yuv420p","-r",24,"-y"],"exe":"ffmpeg","fps":24,"inputGlob":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg","outputFile":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4"}}],"job":"04907626-cf73-4ac3-92f1-5cced44159bb","job_priority":50,"job_type":"simple-blender-render","name":"preview-video","priority":50,"status":"active","task_type":"ffmpeg","uuid":"6666a528-c605-4282-a02b-52456ac19db6"} 2024-02-22T12:08:12-05:00 INF starting task job=04907626-cf73-4ac3-92f1-5cced44159bb task=6666a528-c605-4282-a02b-52456ac19db6 taskType=ffmpeg 2024-02-22T12:08:12-05:00 INF running Flamenco command command=frames-to-video parameters={"args":["-c:v","h264","-crf","20","-g","18","-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-pix_fmt","yuv420p","-r",24,"-y"],"exe":"ffmpeg","fps":24,"inputGlob":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg","outputFile":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4"} task=6666a528-c605-4282-a02b-52456ac19db6 2024-02-22T12:08:12-05:00 INF going to run: /media/nas-lab148/00_farm/flamenco/tools/ffmpeg-linux-amd64 -r 24 -pattern_type glob -i '/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg' -c:v h264 -crf 20 -g 18 -vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2' -pix_fmt yuv420p -r 24 -y -r 24 '/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4' command=frames-to-video task=6666a528-c605-4282-a02b-52456ac19db6 2024-02-22T12:08:13-05:00 ERR command exited abnormally command=frames-to-video exitCode=1 pid=485543 task=6666a528-c605-4282-a02b-52456ac19db6 2024-02-22T12:08:13-05:00 ERR command exited abnormally command=frames-to-video exitCode=1 pid=485543 task=6666a528-c605-4282-a02b-52456ac19db6 2024-02-22T12:08:13-05:00 ERR command exited abnormally error="command exited abnormally with code 1" command=frames-to-video exitCode=1 task=6666a528-c605-4282-a02b-52456ac19db6 2024-02-22T12:08:13-05:00 WRN error executing task error="command exited abnormally with code 1" task={"commands":[{"name":"frames-to-video","parameters":{"args":["-c:v","h264","-crf","20","-g","18","-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-pix_fmt","yuv420p","-r",24,"-y"],"exe":"ffmpeg","fps":24,"inputGlob":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/*.jpg","outputFile":"/media/nas-lab148/00_render/2024-02-17_Mountain_landscape_geometry_nodes/2024-02-22_111150/2024-02-17_Mountain_landscape_geometry_nodes-1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, 605, 609, 613, 617, 621, 625, 629, 633, 637, 641, 645, 649, 653, 657, 661, 665, 669, 673, 677, 681, 685, 689, 693, 697, 701, 705, 709, 713, 717, 721, 725, 729, 733, 737, 741, 745, 749, 753, 757, 761, 765, 769, 773, 777, 780.mp4"}}],"job":"04907626-cf73-4ac3-92f1-5cced44159bb","job_priority":50,"job_type":"simple-blender-render","name":"preview-video","priority":50,"status":"active","task_type":"ffmpeg","uuid":"6666a528-c605-4282-a02b-52456ac19db6"} ```

Fixed in #104286

Fixed in #104286
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/flamenco#104285
No description provided.