nixers
Workflow Compilation [finished] - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Desktop Customization, Efficiency, and Aesthetics (https://nixers.net/forumdisplay.php?fid=45)
+--- Forum: Desktop Customization & Workflow (https://nixers.net/forumdisplay.php?fid=15)
+--- Thread: Workflow Compilation [finished] (/showthread.php?tid=1606)
Pages: 1 2 3 4 5 6


Workflow Compilation [finished] - z3bra - 04-02-2015

Dear nixers,

This is gonna be the official thread for the "Workflow Compilation".

What is it ?
This is a video compiling a bunch of screencast from the nixers members, all performing the same task, but using their personnal setup.
this would result in a compilation showing the personnal workflow of each participant, and setting a comparison point between them.

Can I participate ?
Sure ! The more videos we get, the better. Just post your submission and we'll add it !

What are the rules ?
1. Nixers will have to perform the tasks in the exact order they are listed (see below).
2. Nixers must use a single monitor for the screencast
3. Nixers' screen resolution should be above 1280x720
4. Nixers submissions should be in webm format
5. Nixers should submit their compilation before 2015-02-14 at midnight (UTC).

How can I record the video ?
The command to use is the following (adjust the resolution to fit your actual setup):

Code:
RESOLUTION=1440x900
ffmpeg -f x11grab -s $RESOLUTION -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y workflow-compil-${USER}.webm

For those running OSX:

Code:
RESOLUTION=1440x900
ffmpeg -f avfoundation -s $RESOLUTION -an -r 16 -loglevel quiet -i 0:none -b:v 5M -y workflow-compil-${USER}.webm

To end the video, press `q`.

What is the task list ?
  • Put on some music
  • Write some random text to a file in /tmp
  • Install "toilet" or "figlet", and try it in a funny way !
  • Send an email (bitchplease@null.net if you have no idea)
  • Browse the forum (post something on this thread)
  • Connect to #nixers at irc.nixers.net to say "Hi !"
  • Arrange windows to take a pretty screenshot (show off)
  • Close all the windows and end the video.

Happy hacking !

Submissions:

FINAL CUT!! (z3bra.org)
For future references, the scripts used to create the compilation:
Resize all videos to the same size
Code:
#!/bin/sh
#
# resvid - 2015 (c) wtfpl
# resize a bunch of videos to the same size

# fuck you, ffmpeg banner
exec 2>/dev/null

# where to put the resulting videos
OUTDIR=$PWD/resized

# size of the final videos
SIZE=1440:900

# create the directory for edited videos
test ! -d $OUTDIR && mkdir -p $OUTDIR

for IN in $@; do
    printf "%s ... " "$(getname $IN)"
    ffmpeg -i $IN -vf "scale=$SIZE" -b:v 5M -y $OUTDIR/$IN
    printf "OK\n"
done

Add fading effects and text to the videos
Code:
#!/bin/sh
#
# fadevid - 2015 (c) wtfpl
# add fading effect, and an overlay text to each video given as parameter

# fuck you, ffmpeg banner
exec 2>/dev/null

# where to put the resulting videos
OUTDIR=$PWD/faded

# Number of frames to use for fading effect
FADELEN=30

# the font to use to draw text
FONTPARAM="font=BitMicro01:shadowx=4:shadowy=4:fontcolor=white:fontsize=28:x=w-tw-28:y=h-th-28"

# output the name of the vid, without extension (and all lowercase)
getname() {
    echo $1 | sed 's/\(.*\)\.[^.]*/\L\1/'
}

# get the number of frames of the video (used for fade out effect)
getframes() {
    ffprobe -count_frames -show_entries stream=nb_read_frames $IN|cut -sd= -f2
}

# create the directory for edited videos
test ! -d $OUTDIR && mkdir -p $OUTDIR

# add fading effect + hover text to all videos, and put them in a subdir
for IN in $@; do
    printf "%s ... " "$(getname $IN)"
    NBFRAME=$(getframes)
    VFILTER="fade=in:0:$FADELEN"
    VFILTER="$VFILTER,fade=out:$((NBFRAME - FADELEN)):$FADELEN"
    VFILTER="$VFILTER,drawtext=$FONTPARAM:text=$(getname $IN)"
    # 5Mib bitrate looks like a sane default
    ffmpeg -i $IN -vf "$VFILTER" -b:v 5M -y $OUTDIR/$IN
    printf "OK\n"
done

Concatenate the video
Code:
#!/bin/sh
#
# usage: concatvid *.webm > final.webm
cat $@

Damn... I wish... Real script below
Code:
#!/bin/sh
#
# catvid - 2015 (c) wtfpl
# concatenate videos in an arbitrary order
# run the script in a directory containing all the videos

INTRO=${INTRO:-intro.webm}

test -z "$1" && echo "I can't do that." >&2 && exit 1

# fuck you, ffmpeg banner
exec 2>/dev/null

# create a list compatible with the "concat" demuxer of ffmpeg
# don't forget to put the intro at the top
ls -1 | grep -v $INTRO > list.txt
sed -i "s/^.*$/file '&'/" list.txt
sed -i "0 ifile '$INTRO'" list.txt

# concatenate to $1
ffmpeg -f concat -i list.txt $1



RE: Workflow Compilation - dcat - 04-02-2015

http://vps.iotek.org/~dcat/workflow-compil-dcat.webm


RE: Workflow Compilation - xero - 04-02-2015

http://lab.xero.nu/workflow-xero.webm


RE: Workflow Compilation - z3bra - 04-02-2015

My personnal contribution : http://raw.z3bra.org/vid/linux/workflow-z3bra.webm


RE: Workflow Compilation - LIESard - 04-02-2015

Here's mine: https://u.teknik.io/HUGaHw.webm
I'm actually quite proud of this


RE: Workflow Compilation - vypr - 04-02-2015

http://vps.iotek.org/~vypr/workflow.webm

fuck off


RE: Workflow Compilation - z3bra - 05-02-2015

vypr, after watching your cast again, I realise that you neither install toilet, nor send any email. Also, you barely browser the forum, so it doesn't show much about how you handle these tasks. I would also be nice to fire up an editor to actually WRITE some text to a file, instead of just using `dd`. Could you please record the video again ?


RE: Workflow Compilation - vypr - 05-02-2015

(05-02-2015, 04:46 AM)z3bra Wrote: vypr, after watching your cast again, I realise that you neither install toilet, nor send any email. Also, you barely browser the forum, so it doesn't show much about how you handle these tasks. I would also be nice to fire up an editor to actually WRITE some text to a file, instead of just using `dd`. Could you please record the video again ?

ur a meanie

http://vps.iotek.org/~vypr/workflow-redo.webm


RE: Workflow Compilation - eye - 05-02-2015

http://vps.iotek.org/~eye/workflow-compil-eye.webm


RE: Workflow Compilation - venam - 05-02-2015

Here's mine, https://paste.xinu.at/KaSNr/.