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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Amit_al
New Cone
New Cone
Posts: 5
Joined: 21 Nov 2019 05:16

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

Postby Amit_al » 21 Nov 2019 05:29

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.

Amit_al
New Cone
New Cone
Posts: 5
Joined: 21 Nov 2019 05:16

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

Postby Amit_al » 25 Nov 2019 05:57

Can anyone please provide any details.. I am really stuck. :( :(

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

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

Postby mederi » 25 Nov 2019 14:50

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.

Amit_al
New Cone
New Cone
Posts: 5
Joined: 21 Nov 2019 05:16

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

Postby Amit_al » 26 Nov 2019 04:46

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.

EmbodyWisdomToday
New Cone
New Cone
Posts: 2
Joined: 19 Apr 2020 07:56

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

Postby EmbodyWisdomToday » 19 Apr 2020 08:05

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?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests