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 === Downloads ===
15
16 If your browser sucks at HTML5, you can directly download the video files, available in several formats:
17
18 || **Filename**                                                         || **Resolution**|| **Birate** ||**Video**||**Audio**||**Size**||
19 || [[pictures/julia4D/julia4D.ogv | julia4D.ogv (Ogg)]]                 || 1280x720 || 6000Kbit/s || Theora || Vorbis   || 60MB ||
20 || [[pictures/julia4D/julia4D-640x360.ogv | julia4D-640x360.ogv (Ogg)]] ||  640x320 || 1200Kbit/s || Theora || Vorbis   || 13MB ||
21 || [[pictures/julia4D/julia4D.avi | julia4D .avi]]                      || 1280x720 || 6000Kbit/s || H.264  || -        || 60MB ||
22 || [[pictures/julia4D/julia4D-640x360.avi | julia4D-640x360.avi]]       ||  640x360 || 1200kbit/s || H.264  || -        || 12MB ||
23
24 === Video encoding notes ===
25
26 The files were encoded from a sequence of PNG frames generated by POV-Ray,
27 using **ffmpeg** and **mencoder**:
28
29 {{{
30 # hires mpeg4
31 please mencoder 'mf://julia4D????.png' -mf fps=25 \
32         -ovc x264 -x264encopts bitrate=6000:pass=1:threads=2 -o julia4D.avi 
33
34 # lores mpeg4
35 please mencoder 'mf://julia4D????.png' -mf fps=25 -vf scale=640:360 \
36         -ovc x264 -x264encopts bitrate=1200:pass=1:threads=2 -o julia4D-640x360.avi 
37
38 # hires theora
39 please ffmpeg -f image2 -i julia4D%04d.png \
40         -threads 2 -vb 6000k -vcodec libtheora -acodec libvorbis -f ogg julia4D.ogv \
41         -i UranChrome-fx-short.wav -acodec libvorbis -ab 96k -newaudio
42
43 # lores theora
44 please ffmpeg -f image2 -i julia4D%04d.png \
45         -threads 2 -s 640x360 -vb 1200k -vcodec libtheora -f ogg julia4D-640x360.ogv \
46         -i UranChrome-fx-short.wav -acodec libvorbis -ab 96k -newaudio
47 }}}
48
49 This is the software I have used:
50
51 {{{
52 MEncoder SVN-r29800-4.4.2 (C) 2000-2009 MPlayer Team
53 FFmpeg version SVN-r20372, Copyright (c) 2000-2009 Fabrice Bellard, et al.
54 libtheora-1.1.0
55 libvorbis-1.2.0
56 x264-libs-0.26.20091026
57 }}}
58
59 The quality of the low-res Theora stream is noticeably lower than the corresponding low-res H.264. I don't know why.