Bojan
Posts: 17
Joined: Sun Nov 08, 2015 6:55 am
Location: Slovenia
Contact: Website

Mencoder and screen

Wed Dec 30, 2015 5:22 pm

Hi,
I'm trying to do some timelapse and I folowing this tutorial and I can't install mencoder and screen.

I did research and found this:
viewtopic.php?f=66&t=123442

but now I don't know how to proceed and what to do.
Pls help :), thx.

Navyscourge
Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: Mencoder and screen

Wed Dec 30, 2015 7:08 pm

Ah, yes - out of date tutorials :(

Install screen with

Code: Select all

sudo apt-get install screen
This installs a utility that creates a virtual console which you can disconnect from, log off the Pi, then reconnect when you later log on again. It is only useful for this exercise if you will be logging off the Pi, as you will be keeping it switched on to take the photos. I would ignore it for now and play with it later.

Use mpv instead of mencoder; install with

Code: Select all

sudo apt-get install mpv
I am not sure of the proper command for mpv, but a large manual is available here: https://mpv.io/manual/

Bojan
Posts: 17
Joined: Sun Nov 08, 2015 6:55 am
Location: Slovenia
Contact: Website

Re: Mencoder and screen

Wed Dec 30, 2015 7:25 pm

Thank you.
Can you tell me what it will bi a command in mpv
if in mencoder was this: (copy/paste from tutorial)

Code: Select all

mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -o timelapse.avi -mf type=jpeg:fps=24 mf://@stills.txt
Just one example...

Navyscourge
Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: Mencoder and screen

Wed Dec 30, 2015 10:03 pm

I had a poke around on Google. It seems that avconv is a replacement for ffmpeg, which was an alternative for mencoder (so confusing!)

One suggestion for creating a video out of still pictures is

Code: Select all

avconv -f image2 -pattern_type glob -i "*.tif" -r 24 outputvideo.mkv
although I am not too sure what this means. The stills are named (something).tif and the movie produced is outputvideo.mkv

Install avconv with

Code: Select all

sudo apt-get install libav-tools
I don't have any stills on my Pi to try it with

Bojan
Posts: 17
Joined: Sun Nov 08, 2015 6:55 am
Location: Slovenia
Contact: Website

Re: Mencoder and screen

Thu Dec 31, 2015 3:58 pm

Thx for help, I got some error in red and orange colors... :)

I will stack images together in video file on Mint.

Thank you again.

Return to “Beginners”