Page 1 of 1
DVBS codec subtitles
Posted: 28 Aug 2006 18:01
by Gujs
Hello,
when i am streaming subtitles with dvbs codec, the subtitles doesn't position right. How can i get them positioned in the bottom of the movie and centered.
Thanks
Posted: 28 Aug 2006 18:53
by DJ
The easiest way is to reset preferences as this is the default.
Posted: 28 Aug 2006 19:19
by Gujs
I tried that, but i always get them on the top left corner on client side VLC. I know that i can change position with options Encoding X coordinate and Encoding Y coordinate. But then i can't get them always in the botom center of the screen. I use VLC 0.8.5.
And can you tell me what format of subtitles works with dvbs codec. For now i foud just sub/idx format to work.
Thanks
Posted: 28 Aug 2006 21:41
by DJ
DVB subs is a format and the only supported source during transcode within VLC is DVD subs. VOBSub (.idx .sub) is supported by VLC and to the best of my knowledge is the only supported format in which VLC supports positional information. This is not DVB subs. In VOBSub the positional information can not be changed and is the same as the original. This must be changed at the source or with an editor.
Correction: VLC also supports positional information for Advanced Sub Station Alpha (.ssa .ass).
Posted: 28 Aug 2006 22:00
by Gujs
If I play the movie with this subtitles, they appear in the bottom centered. But if i stream them with dvbs codec i get them in the upper left corner. Maybe dvbs codec doesn't read position information corectly.
Thanks
Posted: 28 Aug 2006 22:11
by DJ
I suppose this is possible. Have you tried adjusting the client's preferences for DVB subs?
You could also try doing a local transcode and playback to see if there are issues. Remember that DVB subs are only going to be applicable in the MPEG TS container.
Posted: 28 Aug 2006 22:53
by Gujs
If i set subpicture position in dvbsub preferences it does nothing for position of subtitles which are in mpeg ts stream. If I change coordinates it works, but then they are not perfectly centered because of different size of lines in subtitles.
Cooordinate works for both, client and server,
Posted: 29 Aug 2006 00:27
by DJ
Another method that can work is to embed the sub into the video during transcode to stream. If the source is not a MPEG PS or TS file the FPS=<framerate> option must be used along with "Subtitles overlay". This method does NOT stream the sub, but instead embeds the sub into the video. Subs must also be one language only.
This method will also make a MP4 compatible transcode for QT that will not normally do subs. But keep in mind that MKV used as a source currently does not work for compatibility but will play in VLC.
Posted: 29 Aug 2006 13:08
by Gujs
I know that i can get subtitles on the video, but then if i transcode movie, and change his default size, subtitles get realy ugly. I don't have a problem like that with dvbs subtitles.
I found compromise for now, that i position subtitles with otions sout-dvbsub-x=160 and sout-dvbsub-y=450. It isn't perfect, but they are positioned on the bottom of the movie.
It would be fine if there would be an optio sout-dvbsub-position, just like dvbsub-position.
dvbsub-position shoud position subtitles on viewing the movie, but it doesn't work at all. I can set it to whatever i wan't, but it doesn't change dvbs position.
Posted: 29 Aug 2006 19:38
by DJ
Perhaps one of the Developers will see this and shed some light on the issue.
I have tried to offer all that I know on this topic and have not run across any problematic subs to try moving them.
Posted: 29 Aug 2006 19:46
by Gujs
Thaks for your help and i hope that there will be some solution in the future.
DVB Subtitle Positioning
Posted: 28 Sep 2006 16:14
by dmcgahon
I can confirm that DVB subtitle positioning is broken with 0.8.6 SVN.
Posted: 09 Oct 2006 22:45
by Gujs
i now got some dvd to try and stream subtitles. And original subtitles from dvd does position centered.
I was always try to stream subtitles along with xvid file which was transcoded to mpeg2 ts stream with size 720x576. This way didn't work. Does somebody know how could i solve problem just for that way of streaming subtitles in dvbs codec.
Posted: 16 Apr 2007 19:06
by Gujs
Now I tested this and it seems that it was fixed with this commit in trunk
[url]
http://trac.videolan.org/vlc/changeset/19150[/url
If I want to set just vertical or horizontal position separately of subtitles it doesn't work. Vlc positions it by default:
Code: Select all
new film vod mux mp2t
setup film output #transcode{venc=ffmpeg{keyint=25,bframes=3},vcodec=mp2v,vb=8000,fps=25,acodec=mpga,ab=256,channels=2,width=720,canvas-height=576,scodec=dvbs}
setup film input "/home/gregor/Share/Home/D/Filmi/Final Destination III/Final.Destination.3.DVDRip.XviD-DiAMOND.avi"
setup film option start-time=300
setup film option sout-dvbsub-y=450
setup film enabled
This option desn't position subs where I specified, but if I add
Code: Select all
setup film option sout-dvbsub-x=100
option, vlc positions subtitles, But then I lose centering of subtitles in the middle of the screen.
Is it necessary to specify both options or I missed something else?