[vlc-devel] [PATCH] Fixed two issues that conspired to make transcoding MPEG-TS streams with DVB-subtitles using soverlay impossible (seems to be broken since 0.8.6a)

Helge Jensen hej at actua.dk
Sun Jan 3 23:18:47 CET 2010


I can confirm that the patch from Peter Bak Nielsen indeed does make
soverlay work where it did not before.

Additionally, embedding DVB subtitles in a separate stream in a TS mux now
also works (it didn't before).

This means i can start transcoding my 600Gb of recorded TV (wife needs
subtitles).

For example, on http://www.badsted.dk/dvb/Threshold.ts (referenced from
http://www.networkedmediatank.com/showthread.php?tid=5576) I can finally
(trying since 2006) use:

hej at hej-dell:~/Download$ cvlc Threshold.ts --sout-x264-crf 25
--sout-x264-interlaced --sout
'#transcode{venc=x264,vcodec=h264,vb=3000,height=576,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=dvbs}:standard{access=file,mux=ts,dst=foo.ts}'
--sub-track 1 vlc://quit

to produce a transcoded foo.ts with a DVB-subtitle stream. Thank you!

I have to explicitly select --sub-track 1, as --sub-language dan doesn't
work. that may be because 2 subtitle-tracks are included in the input stream
for "dan" language? VLC has never been able to select subtitles on the
Threshold.ts example using --sub-language, not even for display.

For the record, here is a record of what i did. On ubuntu 9.10-x64, i
produced patched VLC packages using the procedure below:

hej at hej-dell:~/Download/vlc$ sudo apt-get build-dep vlc
hej at hej-dell:~/Download/vlc$ apt-get source vlc
hej at hej-dell:~/Download/vlc$ cat > vlc-dvbsub-fix.diff
[PASTE OF
http://mailman.videolan.org/pipermail/vlc-devel/2010-January/070772.html]
hej at hej-dell:~/Download/vlc$ cd vlc-1.0.2/
hej at hej-dell:~/Download/vlc/vlc-1.0.2$ patch -p1 <../vlc-dvbsub-fix.diff
hej at hej-dell:~/Download/vlc/vlc-1.0.2$ dpkg-buildpackage -rfakeroot -us -uc
hej at hej-dell:~/Download/vlc/vlc-1.0.2$ cd ..
hej at hej-dell:~/Download/vlc$ ls *.deb
libvlc2_1.0.2-1ubuntu2_amd64.deb
libvlccore2_1.0.2-1ubuntu2_amd64.deb
libvlccore-dev_1.0.2-1ubuntu2_amd64.deb
libvlc-dev_1.0.2-1ubuntu2_amd64.deb
mozilla-plugin-vlc_1.0.2-1ubuntu2_amd64.deb
vlc_1.0.2-1ubuntu2_amd64.deb
vlc-data_1.0.2-1ubuntu2_all.deb
vlc-dbg_1.0.2-1ubuntu2_amd64.deb
vlc-nox_1.0.2-1ubuntu2_amd64.deb
vlc-plugin-ggi_1.0.2-1ubuntu2_amd64.deb
vlc-plugin-jack_1.0.2-1ubuntu2_amd64.deb
vlc-plugin-pulse_1.0.2-1ubuntu2_amd64.deb
vlc-plugin-sdl_1.0.2-1ubuntu2_amd64.deb
vlc-plugin-svgalib_1.0.2-1ubuntu2_amd64.deb
hej at hej-dell:~/Download/vlc$ sudo dpkg -i *.deb

-- 
Helge Jensen
Partner & Senior Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100103/c214273b/attachment.html>


More information about the vlc-devel mailing list