ffmpeg not working with filename have whitespace












1















My file name is a folder with image series (image_0001.png,image_0002.png...)



 /storage/emulated/0/My Image/image_%04d.png


I tried with quote ""



-i "/storage/emulated/0/My Image/image_%04d.png"


and %20



-i /storage/emulated/0/My%20Image/image_%04d.png


But it not working. How can i do this ?



My command



 -f image2 -i /storage/emulated/0/background.png -i /data/user/0/My Image/image_%04d.png -filter_complex [1:v]scale=200.0:200.0[scale];[0:v][scale]overlay=0.0:0.0 /storage/emulated/0/output.mp4


Error



: /data/user/0/My: No such file or directory









share|improve this question

























  • How do you execute this command on your android phone? Through java code? adb shell? a terminal emulator?

    – oguzismail
    Nov 20 '18 at 10:04











  • @oguzismail i use lib FFmpegAndroid-0.3.2

    – Young King
    Nov 20 '18 at 10:11






  • 1





    I found my issue solution in Here

    – Young King
    Nov 21 '18 at 4:35
















1















My file name is a folder with image series (image_0001.png,image_0002.png...)



 /storage/emulated/0/My Image/image_%04d.png


I tried with quote ""



-i "/storage/emulated/0/My Image/image_%04d.png"


and %20



-i /storage/emulated/0/My%20Image/image_%04d.png


But it not working. How can i do this ?



My command



 -f image2 -i /storage/emulated/0/background.png -i /data/user/0/My Image/image_%04d.png -filter_complex [1:v]scale=200.0:200.0[scale];[0:v][scale]overlay=0.0:0.0 /storage/emulated/0/output.mp4


Error



: /data/user/0/My: No such file or directory









share|improve this question

























  • How do you execute this command on your android phone? Through java code? adb shell? a terminal emulator?

    – oguzismail
    Nov 20 '18 at 10:04











  • @oguzismail i use lib FFmpegAndroid-0.3.2

    – Young King
    Nov 20 '18 at 10:11






  • 1





    I found my issue solution in Here

    – Young King
    Nov 21 '18 at 4:35














1












1








1








My file name is a folder with image series (image_0001.png,image_0002.png...)



 /storage/emulated/0/My Image/image_%04d.png


I tried with quote ""



-i "/storage/emulated/0/My Image/image_%04d.png"


and %20



-i /storage/emulated/0/My%20Image/image_%04d.png


But it not working. How can i do this ?



My command



 -f image2 -i /storage/emulated/0/background.png -i /data/user/0/My Image/image_%04d.png -filter_complex [1:v]scale=200.0:200.0[scale];[0:v][scale]overlay=0.0:0.0 /storage/emulated/0/output.mp4


Error



: /data/user/0/My: No such file or directory









share|improve this question
















My file name is a folder with image series (image_0001.png,image_0002.png...)



 /storage/emulated/0/My Image/image_%04d.png


I tried with quote ""



-i "/storage/emulated/0/My Image/image_%04d.png"


and %20



-i /storage/emulated/0/My%20Image/image_%04d.png


But it not working. How can i do this ?



My command



 -f image2 -i /storage/emulated/0/background.png -i /data/user/0/My Image/image_%04d.png -filter_complex [1:v]scale=200.0:200.0[scale];[0:v][scale]overlay=0.0:0.0 /storage/emulated/0/output.mp4


Error



: /data/user/0/My: No such file or directory






java android ffmpeg whitespace






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 9:35







Young King

















asked Nov 20 '18 at 8:42









Young KingYoung King

308




308













  • How do you execute this command on your android phone? Through java code? adb shell? a terminal emulator?

    – oguzismail
    Nov 20 '18 at 10:04











  • @oguzismail i use lib FFmpegAndroid-0.3.2

    – Young King
    Nov 20 '18 at 10:11






  • 1





    I found my issue solution in Here

    – Young King
    Nov 21 '18 at 4:35



















  • How do you execute this command on your android phone? Through java code? adb shell? a terminal emulator?

    – oguzismail
    Nov 20 '18 at 10:04











  • @oguzismail i use lib FFmpegAndroid-0.3.2

    – Young King
    Nov 20 '18 at 10:11






  • 1





    I found my issue solution in Here

    – Young King
    Nov 21 '18 at 4:35

















How do you execute this command on your android phone? Through java code? adb shell? a terminal emulator?

– oguzismail
Nov 20 '18 at 10:04





How do you execute this command on your android phone? Through java code? adb shell? a terminal emulator?

– oguzismail
Nov 20 '18 at 10:04













@oguzismail i use lib FFmpegAndroid-0.3.2

– Young King
Nov 20 '18 at 10:11





@oguzismail i use lib FFmpegAndroid-0.3.2

– Young King
Nov 20 '18 at 10:11




1




1





I found my issue solution in Here

– Young King
Nov 21 '18 at 4:35





I found my issue solution in Here

– Young King
Nov 21 '18 at 4:35












1 Answer
1






active

oldest

votes


















0














ffmpeg has special rules for quoting and escaping. Found here on their website.



So using quotes (' ') should work for you.






share|improve this answer


























  • I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

    – Young King
    Nov 20 '18 at 9:13













  • can you please edit your question and add the piece of code you are using?

    – dermaschder
    Nov 20 '18 at 9:29











  • i added my command

    – Young King
    Nov 20 '18 at 9:37











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f53389138%2fffmpeg-not-working-with-filename-have-whitespace%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














ffmpeg has special rules for quoting and escaping. Found here on their website.



So using quotes (' ') should work for you.






share|improve this answer


























  • I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

    – Young King
    Nov 20 '18 at 9:13













  • can you please edit your question and add the piece of code you are using?

    – dermaschder
    Nov 20 '18 at 9:29











  • i added my command

    – Young King
    Nov 20 '18 at 9:37
















0














ffmpeg has special rules for quoting and escaping. Found here on their website.



So using quotes (' ') should work for you.






share|improve this answer


























  • I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

    – Young King
    Nov 20 '18 at 9:13













  • can you please edit your question and add the piece of code you are using?

    – dermaschder
    Nov 20 '18 at 9:29











  • i added my command

    – Young King
    Nov 20 '18 at 9:37














0












0








0







ffmpeg has special rules for quoting and escaping. Found here on their website.



So using quotes (' ') should work for you.






share|improve this answer















ffmpeg has special rules for quoting and escaping. Found here on their website.



So using quotes (' ') should work for you.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 20 '18 at 9:58

























answered Nov 20 '18 at 9:04









dermaschderdermaschder

438




438













  • I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

    – Young King
    Nov 20 '18 at 9:13













  • can you please edit your question and add the piece of code you are using?

    – dermaschder
    Nov 20 '18 at 9:29











  • i added my command

    – Young King
    Nov 20 '18 at 9:37



















  • I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

    – Young King
    Nov 20 '18 at 9:13













  • can you please edit your question and add the piece of code you are using?

    – dermaschder
    Nov 20 '18 at 9:29











  • i added my command

    – Young King
    Nov 20 '18 at 9:37

















I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

– Young King
Nov 20 '18 at 9:13







I tried but it not working . ffmpeg still get whitespace /storage/emulated/0/My: No such file or directory

– Young King
Nov 20 '18 at 9:13















can you please edit your question and add the piece of code you are using?

– dermaschder
Nov 20 '18 at 9:29





can you please edit your question and add the piece of code you are using?

– dermaschder
Nov 20 '18 at 9:29













i added my command

– Young King
Nov 20 '18 at 9:37





i added my command

– Young King
Nov 20 '18 at 9:37




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f53389138%2fffmpeg-not-working-with-filename-have-whitespace%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







這個網誌中的熱門文章

Hercules Kyvelos

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud