These are chat archives for WritingMinds/ffmpeg-android-java

22nd
Oct 2016
Suresh Kumar Sivasankaran
@Sureshkumars
Oct 22 2016 13:14
Hello Guys

The below first ffmpeg command is not working with absolute path with spaces but if I replace the the absolute path with %20 it's not working. How can I execute it with absolute path wiith spaces.

Error :

Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /storage/emulated/0/WhatsApp/Media/WhatsApp%20Video/VID-20161015-WA0001.mp4

Failure command:
ffmpeg -ss 00:00:00 -y -i /sdcard/WhatsApp/Media/WhatsApp%20Video/VID-20161015-WA0001.mp4 -strict experimental -t 00:06:19 -s 320x240 -r 15 -vcodec mpeg4 -b 2097152 -an -ab 48000 -ac 2 -b 2097152 -ar 22050 /storage/emulated/0/sdcard/videokit/abcde.mp4

Working command:
ffmpeg -ss 00:00:00 -y -i /storage/emulated/0/videokit/in.mp4 -strict experimental -t 00:06:19 -s 320x240 -r 15 -vcodec mpeg4 -b 2097152 -an -ab 48000 -ac 2 -b 2097152 -ar 22050 /sdcard/videokit/abcde.mp4

I can
I can't execute commands with file paths that ahs spaces
has*
anyone help me asap pls
addy
@pjjaddy_twitter
Oct 22 2016 14:19
Jst replace space with /t.
I am really not so sure what slash will come try with both...
And let me know if it works
Dhiraj Gupta
@dhiraj
Oct 22 2016 14:35
The correct way to split up the parameters seems to be use a String[] array. The project automatically adds spaces.
Suresh Kumar Sivasankaran
@Sureshkumars
Oct 22 2016 16:09
@dhiraj Even if I split I will have the spaces in the paths
How will it work?
Suresh Kumar Sivasankaran
@Sureshkumars
Oct 22 2016 17:14
@pjjaddy_twitter It
@pjjaddy_twitter It's not working
Suresh Kumar Sivasankaran
@Sureshkumars
Oct 22 2016 17:21
@dhiraj can you please elaborate more on this?