Gentoo Archives: gentoo-user

From: Zac Medico <zmedico@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] transcode convertion
Date: Sun, 24 Jul 2005 15:14:00
Message-Id: 42E3AF13.8050602@gmail.com
In Reply to: [gentoo-user] transcode convertion by Luigi Pinna
1 Luigi Pinna wrote:
2 > Hello!
3 > I have a problem to convert a video.
4 > I need to use it in a DVD.
5 > I create an animation with GIMP and exported as .fli file and after with
6 > mencoder as a mpeg file but it was no right for dvdauthor.
7 > Now I tried to convert it with transcode (that has a DVD option -F 8)
8 > but it doesn't find the plug-in.
9 > This is the output:
10 >
11 > transcode -F 8 -y mpeg -i intro.mpeg -o prova
12 > transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T.
13 > Bitterberg
14 > [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
15 > [transcode] auto-probing source intro.mpeg (ok)
16 > [transcode] V: import format | MPEG-2 (V=vob|A=vob)
17 > [transcode] V: AV demux/sync | (1) sync AV at initial MPEG sequence
18 > [transcode] V: import frame | 720x576 1.25:1 encoded @ 4:3
19 > [transcode] V: bits/pixel | 0.174
20 > [transcode] V: decoding fps,frc | 25.000,3
21 > [transcode] V: Y'CbCr | YV12/I420
22 > [transcode] A: import format | 0x50 MPEG layer-2 [44100,16,2] 128
23 > kbps
24 > [transcode] A: export format | 0x50 MPEG layer-2 [44100,16,2] 128
25 > kbps
26 > [transcode] V: encoding fps,frc | 25.000,3
27 > [transcode] A: bytes per frame | 7056 (7056.000000)
28 > [transcode] A: adjustment | 0@1000
29 > tc_memcpy: using libc for memcpy
30 > [transcode] V: video buffer | 10 @ 720x576
31 > [import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio)
32 > MPEG/AC3/PCM | (subtitle)
33 > [transcode] warning : /usr/lib64/transcode/export_mpeg.so: cannot open
34 > shared object file: No such file or directory
35 > [transcode] warning : (dl_loader.c) loading
36 > "/usr/lib64/transcode/export_mpeg.so" failed
37 > [transcode] warning : (encoder.c) loading audio export module failed
38 > [transcode] warning : failed to init export modules
39 > [transcode] critical: plug-in initialization failed
40 >
41 > This is the transcode's FLAGS:
42 > [ebuild R ] media-video/transcode-0.6.14-r2 (-3dnow) +X +a52
43 > (-altivec) +avi (-divx4linux) +dv +dvdread +encode +fame +gtk
44 > +imagemagick +jpeg +lzo +mjpeg (-mmx) +mpeg -network +ogg (-pvm)
45 > +quicktime +sdl (-sse) (-sse2) +theora +truetype +v4l +vorbis +xml2
46 > +xvid
47 > What can I do?
48 > Or what can I do to export from GIMP in the format?
49 > Thanks,
50 > Luigi
51 >
52
53 I'm not sure about that specific library problem you're having but I may have a solution for you. I've noticed that dvdauthor is quite picky about the format of the mpeg files that you give it. In my case, I used ffmpeg to convert an avi to mpg but then dvdauthor did not like it. I found a workaround though. I used tccat and tcextract to demux the mpg into separate audio/video files and then I remuxed them with mplex.
54
55 Here is the relevant section from my script:
56
57 set -x -e
58 ffmpeg -i "${INPUT_AVI_FILE}" -vcodec mpeg2video -b 1500 -r ntsc -s 352x240 -aspect 4:3 -acodec mp2 -ar 48000 -ac 1 "${TEMP_VOB_FILE}"
59 tccat -i "${TEMP_VOB_FILE}" | tcextract -x mpeg2 -t vob -a video_track > "${TEMP_M2V_FILE}"
60 tccat -i "${TEMP_VOB_FILE}" | tcextract -x mp2 -t vob -a audio_track > "${TEMP_MPA_FILE}"
61 rm -f "${TEMP_VOB_FILE}"
62 mplex -f 8 -o "${OUTPUT_MPG_FILE}" "${TEMP_M2V_FILE}" "${TEM ffmpeg -i "${INPUT_AVI_FILE}" -vcodec mpeg2video -b 1500 -r ntsc -s 352x240 -aspect 4:3 -acodec mp2 -ar 48000 -ac 1 "${TEMP_VOB_FILE}"
63 tccat -i "${TEMP_VOB_FILE}" | tcextract -x mpeg2 -t vob -a video_track > "${TEMP_M2V_FILE}"
64 tccat -i "${TEMP_VOB_FILE}" | tcextract -x mp2 -t vob -a audio_track > "${TEMP_MPA_FILE}"
65 rm "${TEMP_VOB_FILE}"
66 mplex -f 8 -o "${OUTPUT_MPG_FILE}" "${TEMP_M2V_FILE}" "${TEMP_MPA_FILE}"
67
68 It's not really elegant but it worked. Note that I used mp2 because I ran into some troubles with some avi files and the ac3 encoder. However, ac3 worked fine with most files.
69
70 Zac
71 --
72 gentoo-user@g.o mailing list