Edit page blog/2009/11
[wiki.git] / blog / 2009 / 11
1 == Exploring Julia in 4 dimensions ==
2
3 The discovery of the [[http://www.skytopia.com/project/fractal/mandelbulb.html | Mandelbulb]] awekened my old
4 passion for fractals.
5
6 So I took the time to re-encode my old rendering of the [[http://en.wikipedia.org/wiki/Quaternion | Quaternion]]
7 [[http://en.wikipedia.org/wiki/Julia_set | Julia set]] done with POV-Ray. Behold:
8
9 {{pictures/julia4D/julia4D-640x360.ogv | Quaternion Julia 4D fractal (640x360 @ 1200Kbit/s, Ogg Theora encoded)}}
10
11 The sound track is [[http://lite.modarchive.org/index.php?request=view_by_moduleid&query=59288 | UranChrome]],
12 an old-skool Amiga SoundTracker module composed by TorbJ0rn in 1989.
13
14 If your browser sucks at HTML5, you can directly download the video files, available in several formats:
15
16 || **Filename**                                                         || **Resolution**|| **Birate** ||**Video**||**Audio**||**Size**||
17 || [[pictures/julia4D/julia4D.ogv | julia4D.ogv (Ogg)]]                 || 1280x720 || 6000Kbit/s || Theora || Vorbis   || 60MB ||
18 || [[pictures/julia4D/julia4D-640x360.ogv | julia4D-640x360.ogv (Ogg)]] ||  640x320 || 1200Kbit/s || Theora || Vorbis   || 13MB ||
19 || [[pictures/julia4D/julia4D.avi | julia4D .avi]]                      || 1280x720 || 6000Kbit/s || H.264  || -        || 60MB ||
20 || [[pictures/julia4D/julia4D-640x360.avi | julia4D-640x360.avi]]       ||  640x360 || 1200kbit/s || H.264  || -        || 12MB ||
21
22 === Video encoding notes ===
23
24 The files were encoded from a sequence of PNG frames generated by POV-Ray,
25 using **ffmpeg** and **mencoder**:
26
27 {{{
28 # hires mpeg4
29 please mencoder 'mf://julia4D????.png' -mf fps=25 \
30         -ovc x264 -x264encopts bitrate=6000:pass=1:threads=2 -o julia4D.avi 
31
32 # lores mpeg4
33 please mencoder 'mf://julia4D????.png' -mf fps=25 -vf scale=640:360 \
34         -ovc x264 -x264encopts bitrate=1200:pass=1:threads=2 -o julia4D-640x360.avi 
35
36 # hires theora
37 please ffmpeg -f image2 -i julia4D%04d.png \
38         -threads 2 -vb 6000k -vcodec libtheora -acodec libvorbis -f ogg julia4D.ogv \
39         -i UranChrome-fx-short.wav -acodec libvorbis -ab 96k -newaudio
40
41 # lores theora
42 please ffmpeg -f image2 -i julia4D%04d.png \
43         -threads 2 -s 640x360 -vb 1200k -vcodec libtheora -f ogg julia4D-640x360.ogv \
44         -i UranChrome-fx-short.wav -acodec libvorbis -ab 96k -newaudio
45 }}}
46
47 This is the software I have used:
48
49 {{{
50 MEncoder SVN-r29800-4.4.2 (C) 2000-2009 MPlayer Team
51 FFmpeg version SVN-r20372, Copyright (c) 2000-2009 Fabrice Bellard, et al.
52 libtheora-1.1.0
53 libvorbis-1.2.0
54 x264-libs-0.26.20091026
55 }}}
56
57 The quality of the low-res Theora stream is noticeably lower than the corresponding low-res H.264. I don't know why.