Trouble executing a command

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble executing a command

C Colutions
Hi,

Im trying to use ffmpeg library for android to concat a list of images into
a video. The command i am using is

[/data/user/0/com.photovideomaker.videoslideshowmaker.videoeditor/files/ffmpeg,
-y, -r, 22, -f, concat, -safe, 0, -i,
/storage/emulated/0/TestDirectory/TempImages/img%03d.jpg, -crf, 20, -c:v,
libx264, -preset, ultrafast, -pix_fmt, yuv420p, -ac, 2,
/storage/emulated/0/TestDirectory/outputVideo.mp4]

But im getting the following error (the images are there in the input
directory):

/storage/emulated/0/TestDirectory/TempImages/img%03d.jpg: No such file or
directory.

Thanks for the help.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Trouble executing a command

Kieran O Leary
On Fri, Mar 2, 2018 at 10:33 AM, C Colutions <[hidden email]> wrote:

> Hi,
>
> Im trying to use ffmpeg library for android to concat a list of images into
> a video. The command i am using is
>
> [/data/user/0/com.photovideomaker.videoslideshowmaker.videoeditor/files/ffmpeg,
> -y, -r, 22, -f, concat, -safe, 0, -i,
> /storage/emulated/0/TestDirectory/TempImages/img%03d.jpg, -crf, 20, -c:v,
> libx264, -preset, ultrafast, -pix_fmt, yuv420p, -ac, 2,
> /storage/emulated/0/TestDirectory/outputVideo.mp4]
>
> But im getting the following error (the images are there in the input
> directory):
>

Can you post the full, uncut terminal output?

> /storage/emulated/0/TestDirectory/TempImages/img%03d.jpg: No such file or
> directory.
>
Can you post the directory listing for this folder using `ls`?

What is the filename of the first file in the sequence?

I might be missing something here, but I don't see why you need to use
concat at all. Also the concat demuxer that you are invoking with -f
concat needs a textfile as input
(https://trac.ffmpeg.org/wiki/Concatenate) .You could just take out
the -f concat -safe 0 commands and i think you would still achieve
your goal of turning those image files into an mp4.

Best,

Kieran.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Trouble executing a command

C Colutions
Thanks. i remove the -f concat -safe 0 and its working.

On Fri, Mar 2, 2018 at 3:52 PM, Kieran O Leary <[hidden email]>
wrote:

> On Fri, Mar 2, 2018 at 10:33 AM, C Colutions <[hidden email]>
> wrote:
> > Hi,
> >
> > Im trying to use ffmpeg library for android to concat a list of images
> into
> > a video. The command i am using is
> >
> > [/data/user/0/com.photovideomaker.videoslideshowmaker.
> videoeditor/files/ffmpeg,
> > -y, -r, 22, -f, concat, -safe, 0, -i,
> > /storage/emulated/0/TestDirectory/TempImages/img%03d.jpg, -crf, 20,
> -c:v,
> > libx264, -preset, ultrafast, -pix_fmt, yuv420p, -ac, 2,
> > /storage/emulated/0/TestDirectory/outputVideo.mp4]
> >
> > But im getting the following error (the images are there in the input
> > directory):
> >
>
> Can you post the full, uncut terminal output?
>
> > /storage/emulated/0/TestDirectory/TempImages/img%03d.jpg: No such file
> or
> > directory.
> >
> Can you post the directory listing for this folder using `ls`?
>
> What is the filename of the first file in the sequence?
>
> I might be missing something here, but I don't see why you need to use
> concat at all. Also the concat demuxer that you are invoking with -f
> concat needs a textfile as input
> (https://trac.ffmpeg.org/wiki/Concatenate) .You could just take out
> the -f concat -safe 0 commands and i think you would still achieve
> your goal of turning those image files into an mp4.
>
> Best,
>
> Kieran.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Trouble executing a command

Carl Eugen Hoyos-2
In reply to this post by C Colutions
2018-03-02 11:33 GMT+01:00, C Colutions <[hidden email]>:

> ffmpeg, -y, -r, 22, -f, concat, -safe, 0, -i,
> /storage/emulated/0/TestDirectory/TempImages/img%03d.jpg

Complete, uncut console output missing.

Your usage of "%03d" implies you want to use the image2 demuxer
(the only demuxer that understands this syntax) which would be
used because of the ".jpg" suffix if you had not forced another
demuxer with the "-f" option.

I suspect both the concat and the image2 demuxer work for your
use-case, if you are happy with constant frame rate input and if
you can choose the names of the input images, the image2
demuxer is typically easier to use.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".