2009-04-26

Make a slideshow photo CD/DVD on Ubuntu 8.04

1. Using images2mpg plus DeVeDe;
images2mpg -t 10 -f DVD -n NTSC -d 5 -M /usr/bin/ -o newfile.mpg -i *.JPG
-t is the fading of the pictures in and out.
-f is for format, DVD, SVCD etc.
-n PAL(format of video used in the China) or NTSC.
-d is for delay in seconds
-M is necessary to tell it where to find the imagemagick and another
program it needs.
-o is the output file
-i is the input file, probably easiest to run this right in the
directory where the pictures are.

And then generate ISO file via DeVeDe.

2. Using dvd-slideshow
2.1.Install dvd-slideshow;
$sudo apt-get install dvd-slideshow

2.2.Generate Complete_example.txt
$dir2slideshow -n 'Complete example' -t 5 <target folder>

2.3.Generate vob and xml files.We can verify it by using mplayer
$dvd-slideshow -n 'test complete' -f Complete_example.txt

But I got a error:
[dvd-slideshow] No audio files passed. Using 0:21:41.301 silence.
[dvd-slideshow] Working on track 1 audio file 0
[dvd-slideshow] silence
[dvd-slideshow] Creating silence audio file for 0:21:41.301
sox soxio: Failed reading `/dev/zero': unknown file type `raw'
[dvd-slideshow] This audio plays in slideshow from 0:0:0.000 to 0:21:41.301
[dvd-slideshow] ###############
[dvd-slideshow] Concatenating all audio files...
cat: /home/xxx/dvd-slideshow_temp_7263/audio1_????.raw: No such file or
directory
sox soxio: Failed reading `-': unknown file type `raw'
[dvd-slideshow] Creating ac3 audio...
[dvd-slideshow] ERROR during ffmpeg execution!
[dvd-slideshow] see /home/xxx/dvd-slideshow.log for details
[dvd-slideshow] cleanup...

Becasue missing libsox-fmt-all package.
$sudo apt-get install sox libsox-fmt-all

And try again:
$dvd-slideshow -n 'test complete' -f Complete_example.txt

[dvd-slideshow] No audio files passed. Using 0:21:41.301 silence.
[dvd-slideshow] Working on track 1 audio file 0
[dvd-slideshow] silence
[dvd-slideshow] Creating silence audio file for 0:21:41.301
[dvd-slideshow] This audio plays in slideshow from 0:0:0.000 to 0:21:41.301
[dvd-slideshow] ###############
[dvd-slideshow] Concatenating all audio files...
[dvd-slideshow] Creating ac3 audio...
[dvd-slideshow]############################################################
[dvd-slideshow] Multiplexing audio and video...
[dvd-slideshow]############################################################
[dvd-slideshow] No subtitles... removing .spumux file
[dvd-slideshow] total chapters=259
[dvd-slideshow] reduced total chapter markers to 64
[dvd-slideshow] chapter markers at
0,0:0:23.023,0:0:43.043,0:1:3.063,0:1:23.083,0:1:43.103,0:2:3.123,0:2:23.143,0:2:43.163,0:3:3.183,0:3:23.203,0:3:43.223,0:4:3.243,0:4:23.263,0:4:43.283,0:5:3.303,0:5:23.323,0:5:43.343,0:6:3.363,0:6:23.383,0:6:43.403,0:7:3.423,0:7:23.443,0:7:43.463,0:8:3.483,0:8:23.503,0:8:43.523,0:9:3.543,0:9:23.563,0:9:43.583,0:10:3.603,0:10:23.623,0:10:43.643,0:11:3.663,0:11:23.683,0:11:43.703,0:12:3.723,0:12:23.743,0:12:43.763,0:13:3.783,0:13:23.803,0:13:43.823,0:14:3.843,0:14:23.863,0:14:43.883,0:15:3.903,0:15:23.923,0:15:43.943,0:16:3.963,0:16:23.983,0:16:44.004,0:17:4.024,0:17:24.044,0:17:44.064,0:18:4.084,0:18:24.104,0:18:44.124,0:19:4.144,0:19:24.164,0:19:44.184,0:20:4.204,0:20:24.224,0:20:44.244,0:21:4.264,0:21:24.284
[dvd-slideshow]############################################################
[dvd-slideshow] cleanup...
[dvd-slideshow] More extensive logfile output is at:
[dvd-slideshow] /home/xxx/dvd-slideshow.log
[dvd-slideshow] Done!

Verify it by using mplayer:
$mplayer test_complete.vob

2.4.Create dvd navigation menu
$dvd-menu -t '<Button name>' -f slideshow_dvd.xml -n 'DVD Title' -p -mp2
-p means use PAL format instead of NTSC
-mp2 means use MP2 audio by default.

2.5.Create a dvd-compatible UDF filesystem that we can burn to a real dvd
mkisofs -dvd-video -udf -o dvd.iso dvd_fs

NOTE:See http://dvd-slideshow.sourceforge.net/wiki/Complete_Example
<http://dvd-slideshow.sourceforge.net/wiki/Complete_Example> for details

No comments: