flat assembler
Message board for the users of flat assembler.

Index > Heap > any idea how to compile series of images to mpg or avi?

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
anyone could guide me on the above problem?

i was thinking letting uses to submit a few images,
then i compile them into movie file, (add some animation) and they could download then.
Post 07 Mar 2014, 11:16
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
windows movie maker
Post 07 Mar 2014, 13:09
View user's profile Send private message Visit poster's website Reply with quote
dancho



Joined: 06 Mar 2011
Posts: 74
dancho
Virtualdub ,
you can load image sequences and save it as avi

http://www.videohelp.com/tools/Virtualdub

btw
you will need some video codec for compresson ,
for avi files I use xvid usually...

http://www.videohelp.com/tools/XviD-Codec
Post 07 Mar 2014, 13:12
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 729
tthsqe
Oh, no. I definitely would not recommend Windows movie maker.
Use ffmpeg (http://www.ffmpeg.org/download.html) for image -> mpg process. I'll even share some of my settings:
Code:
"E:\WinFF\ffmpeg.exe" -f image2  -r 30 -i "E:\Data\New\image%05d.bmp" -crf 25.0 -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0 -r 30 "E:\Data\New\amovie1.mp4"
    
Post 07 Mar 2014, 17:43
View user's profile Send private message Reply with quote
sid123



Joined: 30 Jul 2013
Posts: 340
Location: Asia, Singapore
sid123
Why not use Windows Movie Maker, as edfed said?
If you're using Windows 7, You may need to download the Windows Live
Essentials Package from M$, which is free, and contains Movie Maker along with
some more artistic utilities.
Post 08 Mar 2014, 00:39
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
it got to be done using programming approach,
sleepsleep wrote:

i was thinking letting users to submit a few images,


could i use movie maker dll?
Post 08 Mar 2014, 04:54
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 693
Location: Adelaide
sinsi
Windows Movie Maker has an SDK.
Lots of horrible interface programming though.
Post 08 Mar 2014, 05:18
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
> any idea how to compile series of images to mpg or avi?

Method 0: download the Windaube Death Essentials F*ckage from M$ (not recommended)
Method 1: use FFMPEG (see above)
Method 2: use MENCODER (untested)
Method 3: use PNG2THEORA (didn't work for me when I tested last time)
Method 4: brew a trivial FASM program converting your series of images into a single YUV4MPEG file, then feed the latter into an encoder (FFMPEG, FFMPEG2THEORA, FFMPEG2DIRAC, ...) (preferred) Smile

http://wiki.multimedia.cx/index.php?title=YUV4MPEG2
Post 08 Mar 2014, 07:47
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 729
tthsqe
sleepsleep, what are the requirements of your 'programming approach'? It seems easiest to me to just put all of the pictures in a directory, giving them sequential names, and then calling ffmpeg as I have indicated. There is no need to install M$'s 'essential' bloatware. Do you have thousands of pictures? or just hundreds? (The -r option is the frame rate and lower crf values give more accurate encodings)
Post 08 Mar 2014, 08:33
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
thanks a lot for all the inputs,

tthsqe,
does ffmpeg provide image transition effect? (like those in movie maker?)
Post 08 Mar 2014, 12:26
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 729
tthsqe
If you want to do image transition effects, I think you will have to write a fasm program for that yourself (when you are writing the image sequence). Smile The only thing that that ffmpeg command does is encode a sequence of pictures. If you are making a slide show, you should probably set the rate 'r' to about 4 or something like that.
PS: here is an example of something I encoded with ffmpeg
https://www.youtube.com/watch?v=TXjVBU2ooCs
It is really easy to use, actually.
Post 08 Mar 2014, 16:49
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
> think you will have to write a fasm program for that yourself
> (when you are writing the image sequence

Splendid idea: FASM program: bunch of images -> YUV4MPEG with optional transition effects.
Post 08 Mar 2014, 18:39
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.