FFMPEG: Outputting multiple videos with watermark












0














Thank you for checking out my post, I'm new to ffmpeg but I'm interested in seeing what I can do with it but I'm facing the following problem:



ffmpeg -f gdigrab -s 1360x768 -i desktop 
-f dshow -i audio="audio-input-device"
-i watermark.png
-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2;[0:v]yadif,split=2[out0][out1]"
-map "[out0]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output0.mp4
-map "[out1]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output1.flv


Expected output: Two videos with watermark on the bottom right with audio.



Actual output: Two videos, one of them doesn't have watermark and the other does and both don't have an audio.










share|improve this question




















  • 1




    Hi Sano, that sounds like an interesting question. However, your code has plenty of options that would take quite some time to get through. Could you create a Minimal, Complete and Verifieble example? That would greatly help us isolate the problem and possible provide a solution.
    – Saaru Lindestøkke
    Dec 9 at 14:47
















0














Thank you for checking out my post, I'm new to ffmpeg but I'm interested in seeing what I can do with it but I'm facing the following problem:



ffmpeg -f gdigrab -s 1360x768 -i desktop 
-f dshow -i audio="audio-input-device"
-i watermark.png
-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2;[0:v]yadif,split=2[out0][out1]"
-map "[out0]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output0.mp4
-map "[out1]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output1.flv


Expected output: Two videos with watermark on the bottom right with audio.



Actual output: Two videos, one of them doesn't have watermark and the other does and both don't have an audio.










share|improve this question




















  • 1




    Hi Sano, that sounds like an interesting question. However, your code has plenty of options that would take quite some time to get through. Could you create a Minimal, Complete and Verifieble example? That would greatly help us isolate the problem and possible provide a solution.
    – Saaru Lindestøkke
    Dec 9 at 14:47














0












0








0







Thank you for checking out my post, I'm new to ffmpeg but I'm interested in seeing what I can do with it but I'm facing the following problem:



ffmpeg -f gdigrab -s 1360x768 -i desktop 
-f dshow -i audio="audio-input-device"
-i watermark.png
-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2;[0:v]yadif,split=2[out0][out1]"
-map "[out0]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output0.mp4
-map "[out1]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output1.flv


Expected output: Two videos with watermark on the bottom right with audio.



Actual output: Two videos, one of them doesn't have watermark and the other does and both don't have an audio.










share|improve this question















Thank you for checking out my post, I'm new to ffmpeg but I'm interested in seeing what I can do with it but I'm facing the following problem:



ffmpeg -f gdigrab -s 1360x768 -i desktop 
-f dshow -i audio="audio-input-device"
-i watermark.png
-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2;[0:v]yadif,split=2[out0][out1]"
-map "[out0]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output0.mp4
-map "[out1]" -c:a aac -c:v libx264 -b:v 2M -preset ultrafast -s 1280x720 -f mp4 output1.flv


Expected output: Two videos with watermark on the bottom right with audio.



Actual output: Two videos, one of them doesn't have watermark and the other does and both don't have an audio.







ffmpeg watermark






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 9 at 15:02

























asked Dec 9 at 14:40









Sano

73




73








  • 1




    Hi Sano, that sounds like an interesting question. However, your code has plenty of options that would take quite some time to get through. Could you create a Minimal, Complete and Verifieble example? That would greatly help us isolate the problem and possible provide a solution.
    – Saaru Lindestøkke
    Dec 9 at 14:47














  • 1




    Hi Sano, that sounds like an interesting question. However, your code has plenty of options that would take quite some time to get through. Could you create a Minimal, Complete and Verifieble example? That would greatly help us isolate the problem and possible provide a solution.
    – Saaru Lindestøkke
    Dec 9 at 14:47








1




1




Hi Sano, that sounds like an interesting question. However, your code has plenty of options that would take quite some time to get through. Could you create a Minimal, Complete and Verifieble example? That would greatly help us isolate the problem and possible provide a solution.
– Saaru Lindestøkke
Dec 9 at 14:47




Hi Sano, that sounds like an interesting question. However, your code has plenty of options that would take quite some time to get through. Could you create a Minimal, Complete and Verifieble example? That would greatly help us isolate the problem and possible provide a solution.
– Saaru Lindestøkke
Dec 9 at 14:47










1 Answer
1






active

oldest

votes


















0














You're deinterlacing and splitting the original video, not the overlaid one.



It should be,



-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,yadif,split=2[out0][out1]" 


Also, it is recommended to deinterlace beforehand, so



-filter_complex "yadif[v];[v][2]overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,split=2[out0][out1]" 





share|improve this answer





















  • Thank you so much, It worked but if I may ask, how can I add audio to both of them?
    – Sano
    Dec 10 at 10:17












  • Add -map 1:a to each of the output options.
    – Gyan
    Dec 10 at 10:41











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382099%2fffmpeg-outputting-multiple-videos-with-watermark%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You're deinterlacing and splitting the original video, not the overlaid one.



It should be,



-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,yadif,split=2[out0][out1]" 


Also, it is recommended to deinterlace beforehand, so



-filter_complex "yadif[v];[v][2]overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,split=2[out0][out1]" 





share|improve this answer





















  • Thank you so much, It worked but if I may ask, how can I add audio to both of them?
    – Sano
    Dec 10 at 10:17












  • Add -map 1:a to each of the output options.
    – Gyan
    Dec 10 at 10:41
















0














You're deinterlacing and splitting the original video, not the overlaid one.



It should be,



-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,yadif,split=2[out0][out1]" 


Also, it is recommended to deinterlace beforehand, so



-filter_complex "yadif[v];[v][2]overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,split=2[out0][out1]" 





share|improve this answer





















  • Thank you so much, It worked but if I may ask, how can I add audio to both of them?
    – Sano
    Dec 10 at 10:17












  • Add -map 1:a to each of the output options.
    – Gyan
    Dec 10 at 10:41














0












0








0






You're deinterlacing and splitting the original video, not the overlaid one.



It should be,



-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,yadif,split=2[out0][out1]" 


Also, it is recommended to deinterlace beforehand, so



-filter_complex "yadif[v];[v][2]overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,split=2[out0][out1]" 





share|improve this answer












You're deinterlacing and splitting the original video, not the overlaid one.



It should be,



-filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,yadif,split=2[out0][out1]" 


Also, it is recommended to deinterlace beforehand, so



-filter_complex "yadif[v];[v][2]overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2,split=2[out0][out1]" 






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 9 at 15:05









Gyan

14.4k21643




14.4k21643












  • Thank you so much, It worked but if I may ask, how can I add audio to both of them?
    – Sano
    Dec 10 at 10:17












  • Add -map 1:a to each of the output options.
    – Gyan
    Dec 10 at 10:41


















  • Thank you so much, It worked but if I may ask, how can I add audio to both of them?
    – Sano
    Dec 10 at 10:17












  • Add -map 1:a to each of the output options.
    – Gyan
    Dec 10 at 10:41
















Thank you so much, It worked but if I may ask, how can I add audio to both of them?
– Sano
Dec 10 at 10:17






Thank you so much, It worked but if I may ask, how can I add audio to both of them?
– Sano
Dec 10 at 10:17














Add -map 1:a to each of the output options.
– Gyan
Dec 10 at 10:41




Add -map 1:a to each of the output options.
– Gyan
Dec 10 at 10:41


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382099%2fffmpeg-outputting-multiple-videos-with-watermark%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕