ffmpeg -aspect 4:3 -vframes 330 -r 15 -i images/%04d.jpg -i
I'm not exactly sure if there's a proper term for what I'm trying to do, I hope so because it's driving me nuts... 1) I have two directories. 2) Directory 1 has 286 jpg images with a WAV (main clip) 3) Directory 2 has 44 jpg images with a WAV (post-roll) The sample above is real, however, the values are hardcoded. The total of frames for the main clip and the post-roll clip are variables. For the moment I'm simply trying to get the images from both directories into a single mp4 using the following: postroll/%04d.jpg output.mp It runs fine but it completely ignores the images from the second directory. In the command line I set the vframes to the total of both directories but the output from ffmpeg clearly says 286:
frame= 286 fps=237 q=7.4 Lsize= 994kB time=19.07 bitrate= 426.9kbits/s
If someone would be so kind as to let me know where I'm going wrong I'd really appreciate it. :P
On date Sunday 2008-08-31 21:39:30 -0400, Simon Lord encoded:
I'm not exactly sure if there's a proper term for what I'm trying to do, I hope so because it's driving me nuts...
1) I have two directories. 2) Directory 1 has 286 jpg images with a WAV (main clip) 3) Directory 2 has 44 jpg images with a WAV (post-roll)
The sample above is real, however, the values are hardcoded. The total of frames for the main clip and the post-roll clip are variables.
For the moment I'm simply trying to get the images from both directories into a single mp4 using the following:
ffmpeg -aspect 4:3 -vframes 330 -r 15 -i images/%04d.jpg -i postroll/%04d.jpg output.mp
It runs fine but it completely ignores the images from the second directory. In the command line I set the vframes to the total of both directories but the output from ffmpeg clearly says 286:
frame= 286 fps=237 q=7.4 Lsize= 994kB time=19.07 bitrate= 426.9kbits/s
If someone would be so kind as to let me know where I'm going wrong I'd really appreciate it. :P
Yes this is because the second -i command tells to create another stream in parallel, which then isn't added to final output because it only contains just one video stream. You could use -newvideo, but that's not what you want to do, since you want to *concatentate* the two streams, which is something you *cannot* do directly with ffmpeg. Check the FAQs to see how to address the concatenation problem. Regards. -- ffmpeg-user random tip #7 If you're asking about problems with an ffmpeg tool, *always* post the command you're using and the complete output.
participants (2)
-
simon.lord@xtranormal.com -
stefano.sabatini-lala@poste.it