Apr 12, 2016 - Tip and Trick for ffmpeg

Creating a Time Lapse with Jpeg Photo

ffmpeg -i '%*.JPG' -r 30 -q:v 2 timelapse.mp4

For iMovie

ffmpeg -i '%*.JPG' -r 30 -q:v 2 -pix_fmt yuv420p  timelapse.mp4

Merge videos into one

cat list.txt

file 'GOPR4922.MP4'
file 'GP014922.MP4'
file 'GP024922.MP4'

ffmpeg -f concat -i list.txt -c copy merged.mp4

Speedup video by X4

ffmpeg -i input.mp4 -strict -2 -vf "setpts=0.25*PTS" outputX4.mp4

Select a section from a video (minutes 26-32:10)

ffmpeg -i merged.mp4 -ss 00:26:00 -to 00:32:10 -c:v copy -c:a copy part2.mp4

Merge MTS files from a video camera

ffmpeg -i "concat:00000.MTS|00001.MTS|00002.MTS|00003.MTS|00004.MTS|00005.MTS|00006.MTS" output.mp4

Mar 19, 2016 - Plex Media Server

Plex with Samba Samba Install

Use apt-get to pull the samba packages:

$ sudo apt-get update
$ sudo apt-get install samba

Lets create a samba user:

$ useradd USER
$ passwd USER
$ smbpasswd -a USER

Now edit the config file:

$ sudo vim /etc/samba/smb.conf

Insert the following lines:

#this allows everyone to view the network share
[SMABA UNSECURE]
comment=PLEX-SAMBA
path= /location/to/the/folder/you/want/to/share
browsable=yes
writable=yes
guest ok=yes
admin users= adminuser

#this only allows the smbuser to access the directory
[SAMBA PASSWORD PROMPT]
path = /location/to/the/folder/you/want/to/share
valid users = smbuser
browseable = yes
writeable = yes
read only = no
guest ok = yes

Run ‘testparm’ to verify the config works:

$ testparm

Restart samba

$ sudo service smbd restart

Plex Install

$ wget https://downloads.plex.tv/plex-media-server/0.9.14.6.1620-e0b7243/plexmediaserver_0.9.14.6.1620-e0b7243_amd64.deb
$ sudo dpkg -i plexmediaserver_0.9.14.6.1620-e0b7243_amd64.deb