Page 1 of 1

Need help to generate .mp4 from set of png files using x264

Posted: 21 Nov 2019 05:29
by Amit_al
Hello,

I am looking for some method to generate a mp4 video out of some set of png files using X264 only.

I am newbie, and I am not sure if X264 supports png formats or not.

Please help me with the command, if it possible with x264 to generate png-->Mp4.

Thanks in advance.

Re: Need help to generate .mp4 from set of png files using x264

Posted: 25 Nov 2019 05:57
by Amit_al
Can anyone please provide any details.. I am really stuck. :( :(

Re: Need help to generate .mp4 from set of png files using x264

Posted: 25 Nov 2019 14:50
by mederi
I do not know how to do it in VLC. VLC can easily export images from video files (Scene video filter). You could use Avidemux: drag&drop batch of png files, select and configure x264 encoder, apply filters (Change FPS, Resample FPS), select MP4 Muxer, save video.

Re: Need help to generate .mp4 from set of png files using x264

Posted: 26 Nov 2019 04:46
by Amit_al
Thanks @mederi for replying.

Actually, I am looking for some X264 command line statement, which can take input as set of some PNG files(started from 0) and provide output as .mp4 file.

For example, in case of bmp input files, below command in working fine -
x264 --crf 10 -o "<directory path>test.mp4" "<Directory path>%04d.bmp" --fps 30 --vf crop:0,0,1,0"

Similarly, I want to create .mp4 with PNG instead of bmp files, something like below -
x264 --crf 10 -o "<directory path>test.mp4" "<Directory path>%04d.png" --fps 30 --vf crop:0,0,1,0" --> this is not working

I am not implementing the library of X264. I am just creating a process and invoking X264 command line statement, in my code.

Hope you got my query.

Please help with any of the suggestions..I am even not sure, if it is possible or not.

Thanks in advance.

Re: Need help to generate .mp4 from set of png files using x264

Posted: 19 Apr 2020 08:05
by EmbodyWisdomToday
Have you had any luck, @Amit_al?

From what I can gather, the file output format is what's causing the issue: bmp = ok, png = fail.

Is my understanding correct? If it's just a matter of file format, could you convert the images into bmp or jpg or gif?