Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #210196 > unrolled thread
| Started by | Michael Lange <klappnase@freenet.de> |
|---|---|
| First post | 2019-06-21 17:30 +0200 |
| Last post | 2019-06-21 23:50 +0200 |
| Articles | 20 on this page of 22 — 6 participants |
Back to article view | Back to linux.debian.user
Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 17:30 +0200
Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-21 17:40 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 17:50 +0200
Re: Converting text subtitles to vobsub Teemu Likonen <tlikonen@iki.fi> - 2019-06-21 19:10 +0200
Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-21 19:50 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 23:50 +0200
Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-22 13:00 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-22 13:30 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 19:50 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-22 00:30 +0200
Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-22 13:00 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-22 13:50 +0200
[solved]Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-23 16:40 +0200
Re: [solved]Re: Converting text subtitles to vobsub mick crane <mick.crane@gmail.com> - 2019-06-24 10:30 +0200
Re: [solved]Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-24 12:40 +0200
Re: [solved]Re: Converting text subtitles to vobsub mick crane <mick.crane@gmail.com> - 2019-06-24 15:20 +0200
Re: [solved]Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-24 20:20 +0200
Re: [solved]Re: Converting text subtitles to vobsub Stefan Monnier <monnier@iro.umontreal.ca> - 2019-06-24 15:10 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-25 00:50 +0200
Re: Converting text subtitles to vobsub Reco <recoverym4n@enotuniq.net> - 2019-06-21 20:20 +0200
Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-21 20:30 +0200
Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 23:50 +0200
Page 1 of 2 [1] 2 Next page →
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-21 17:30 +0200 |
| Subject | Converting text subtitles to vobsub |
| Message-ID | <ybtEd-6pK-1@gated-at.bofh.it> |
Hi,
is there a program (command line preferred) that is able to convert text
subtitles (.srt or .ass etc.) into vobsub "image" subtitles?
I think there must be something, since dvd authoring programs obviously
can do it, but find it surprisingly hard to find.
ffmpeg apparently fails at this; there is a program called spumux, but so
far as I can see it's not exactly what I am looking for (or maybe I just
don't get how to use it).
Does anyone have another suggestion?
Thanks in advance,
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
Oblivion together does not frighten me, beloved.
-- Thalassa (in Anne Mulhall's body), "Return to
Tomorrow", stardate 4770.3.
[toc] | [next] | [standalone]
| From | Nicolas George <george@nsup.org> |
|---|---|
| Date | 2019-06-21 17:40 +0200 |
| Message-ID | <ybtNU-6sT-3@gated-at.bofh.it> |
| In reply to | #210196 |
[Multipart message — attachments visible in raw view] — view raw
Michael Lange (12019-06-21): > is there a program (command line preferred) that is able to convert text > subtitles (.srt or .ass etc.) into vobsub "image" subtitles? Can you explain why exactly you want to do that? Often, when people ask for a very unusual task, or a task that looks useless, they actually have a mistaken assumption earlier in their reasoning. There are a few good reasons to want to do that task nowadays, and a lot of bad ones. > ffmpeg apparently fails at this; IIRC, FFmpeg does not have anything (yet) to produce bitmap subtitles except by decoding existing bitmap subtitles. > there is a program called spumux, but so > far as I can see it's not exactly what I am looking for (or maybe I just > don't get how to use it). spumux can do that, and is indeed the only took I know that can. Regards, -- Nicolas George
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-21 17:50 +0200 |
| Message-ID | <ybtXA-6wv-5@gated-at.bofh.it> |
| In reply to | #210198 |
Hi, On Fri, 21 Jun 2019 17:30:13 +0200 Nicolas George <george@nsup.org> wrote: > Michael Lange (12019-06-21): > > is there a program (command line preferred) that is able to convert > > text subtitles (.srt or .ass etc.) into vobsub "image" subtitles? > > Can you explain why exactly you want to do that? sure, because I want to be able to control the subtitle's appearance. The player in question displays text subtitles, however with a tiny, almost unreadable font and doesn't have any option to change this. > spumux can do that, and is indeed the only took I know that can. Ok, great; then I'll have to check out how to use it. When I look at the man page this doesn't really look trivial. Maybe you can point me to some resources where the usage is explained in more detail for dummies like me? :) Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Four thousand throats may be cut in one night by a running man. -- Klingon Soldier, "Day of the Dove", stardate unknown
[toc] | [prev] | [next] | [standalone]
| From | Teemu Likonen <tlikonen@iki.fi> |
|---|---|
| Date | 2019-06-21 19:10 +0200 |
| Message-ID | <ybvcZ-7r7-3@gated-at.bofh.it> |
| In reply to | #210199 |
[Multipart message — attachments visible in raw view] — view raw
Michael Lange [2019-06-21 17:44:08+02:00] wrote:
> sure, because I want to be able to control the subtitle's appearance. The
> player in question displays text subtitles, however with a tiny, almost
> unreadable font and doesn't have any option to change this.
The "ass" subtitle format contains data about text's appearance, for
example:
Style: Default,Arial,16,&Hffffff,&Hffffff, [...]
So you can at least suggest a font and font size as well as colours.
Maybe your player can read such subtitles.
Or if not, you can "burn" your subtitles to the moving picture with
ffmpeg's "subtitles" video filter. Edit a subtitle file like
"subtitles.ass" so that it has "Style" line (see above) with your
preferred font, font size, maybe location coordinates etc. Then
something like this:
ffmpeg -i original.mp4 -map 0:v:0 -map 0:a:0 \
-vf subtitles=filename=subtitles.ass \
-c:v libx264 -crf 22 -c:a copy output.mp4
--
/// Teemu Likonen <https://github.com/tlikonen> //
// PGP: 4E1055DC84E9DFF613D78557719D69D324539450 ///
[toc] | [prev] | [next] | [standalone]
| From | Nicolas George <george@nsup.org> |
|---|---|
| Date | 2019-06-21 19:50 +0200 |
| Message-ID | <ybvPH-7E3-3@gated-at.bofh.it> |
| In reply to | #210200 |
[Multipart message — attachments visible in raw view] — view raw
Michael Lange (12019-06-21): > sure, that's what I tried first. The player ignores the .ass style options > happily. Are you sure the player will be able to use the vobsubs? > > ffmpeg -i original.mp4 -map 0:v:0 -map 0:a:0 \ > > -vf subtitles=filename=subtitles.ass \ > > -c:v libx264 -crf 22 -c:a copy output.mp4 > > I know, but this seems to take like forever (or at least several hours for > a 120 min. 1080p video here :) Then set -preset ultrafast. > Plus, as I understand it, you have to recode the whole video which might > do nothing good to video quality unless you watch what you are doing. With crf 22 at 1080p, you will not be able to see any difference. Regards, -- Nicolas George
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-21 23:50 +0200 |
| Message-ID | <ybzzX-1uT-3@gated-at.bofh.it> |
| In reply to | #210202 |
Hi, On Fri, 21 Jun 2019 19:47:46 +0200 Nicolas George <george@nsup.org> wrote: > Michael Lange (12019-06-21): > > sure, that's what I tried first. The player ignores the .ass style > > options happily. > > Are you sure the player will be able to use the vobsubs? Yes. > > > > ffmpeg -i original.mp4 -map 0:v:0 -map 0:a:0 \ > > > -vf subtitles=filename=subtitles.ass \ > > > -c:v libx264 -crf 22 -c:a copy output.mp4 > > > > I know, but this seems to take like forever (or at least several > > hours for a 120 min. 1080p video here :) > > Then set -preset ultrafast. > > > Plus, as I understand it, you have to recode the whole video which > > might do nothing good to video quality unless you watch what you are > > doing. > > With crf 22 at 1080p, you will not be able to see any difference. Well, maybe I will not and maybe I would be able to cut down the computing time to three quarters of an hour. Still not an entirely convincing solution if one has to recode the video only to convert the subtitles. Now, for today I gave up and downloaded some Windows tool called "AVIAddXSub"; works well under under wine and did a decent job in less than two minutes. That movie I could finally watch was excellent, by the way :-) Best regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Sometimes a feeling is all we humans have to go on. -- Kirk, "A Taste of Armageddon", stardate 3193.9
[toc] | [prev] | [next] | [standalone]
| From | Nicolas George <george@nsup.org> |
|---|---|
| Date | 2019-06-22 13:00 +0200 |
| Message-ID | <ybLUu-ET-5@gated-at.bofh.it> |
| In reply to | #210209 |
[Multipart message — attachments visible in raw view] — view raw
Michael Lange (12019-06-21): > Well, maybe I will not and maybe I would be able to cut down the > computing time to three quarters of an hour. Still not an entirely > convincing solution if one has to recode the video only to convert the > subtitles. On the other hand, that means you can enjoy the full power of the software on your computer instead of being stuck with a mediocre proprietary embedded player. FFmpeg will respect the ASS style, can use colors, do transparency effects, shadows, etc. Encoding in vobsub results in very limited possibilities. Regards, -- Nicolas George
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-22 13:30 +0200 |
| Message-ID | <ybMnw-149-5@gated-at.bofh.it> |
| In reply to | #210235 |
Hi, On Sat, 22 Jun 2019 12:51:51 +0200 Nicolas George <george@nsup.org> wrote: > Michael Lange (12019-06-21): > > Well, maybe I will not and maybe I would be able to cut down the > > computing time to three quarters of an hour. Still not an entirely > > convincing solution if one has to recode the video only to convert the > > subtitles. > > On the other hand, that means you can enjoy the full power of the > software on your computer instead of being stuck with a mediocre > proprietary embedded player. well, to be fair, it seems like apart from the subtitles the player works quite well. Maybe I should send them a bug report ;) > > FFmpeg will respect the ASS style, can use colors, do transparency > effects, shadows, etc. Encoding in vobsub results in very limited > possibilities. True, the "burned in" subtitles look better. Colormaps appear to be rather tricky with vobsub. Personally I don't care about shadows and transparency, but a black outline around the font would be nice. Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Too much of anything, even love, isn't necessarily a good thing. -- Kirk, "The Trouble with Tribbles", stardate 4525.6
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-21 19:50 +0200 |
| Message-ID | <ybvPH-7E3-5@gated-at.bofh.it> |
| In reply to | #210200 |
Hi, On Fri, 21 Jun 2019 20:08:16 +0300 Teemu Likonen <tlikonen@iki.fi> wrote: > Michael Lange [2019-06-21 17:44:08+02:00] wrote: > > > sure, because I want to be able to control the subtitle's appearance. > > The player in question displays text subtitles, however with a tiny, > > almost unreadable font and doesn't have any option to change this. > > The "ass" subtitle format contains data about text's appearance, for > example: > > Style: Default,Arial,16,&Hffffff,&Hffffff, [...] > > So you can at least suggest a font and font size as well as colours. > Maybe your player can read such subtitles. sure, that's what I tried first. The player ignores the .ass style options happily. > > Or if not, you can "burn" your subtitles to the moving picture with > ffmpeg's "subtitles" video filter. Edit a subtitle file like > "subtitles.ass" so that it has "Style" line (see above) with your > preferred font, font size, maybe location coordinates etc. Then > something like this: > > ffmpeg -i original.mp4 -map 0:v:0 -map 0:a:0 \ > -vf subtitles=filename=subtitles.ass \ > -c:v libx264 -crf 22 -c:a copy output.mp4 I know, but this seems to take like forever (or at least several hours for a 120 min. 1080p video here :) Plus, as I understand it, you have to recode the whole video which might do nothing good to video quality unless you watch what you are doing. Best regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. "It's hard to believe that something which is neither seen nor felt can do so much harm." "That's true. But an idea can't be seen or felt. And that's what kept the Troglytes in the mines all these centuries. A mistaken idea." -- Vanna and Kirk, "The Cloud Minders", stardate 5819.0
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-22 00:30 +0200 |
| Message-ID | <ybAcF-22r-3@gated-at.bofh.it> |
| In reply to | #210198 |
Hi, On Fri, 21 Jun 2019 17:30:13 +0200 Nicolas George <george@nsup.org> wrote: > Michael Lange (12019-06-21): > > is there a program (command line preferred) that is able to convert > > text subtitles (.srt or .ass etc.) into vobsub "image" subtitles? (...) > spumux can do that, and is indeed the only took I know that can. I did investigate some more, now as far as I can see this is actually not true. spumux only creates a .sub file but the .idx file is missing. This seems to be no good except with DVDs. Besides, there seems only to be the choice between 25.0 and 29,97 fps framerates (PAL/NTSC) which is too bad if the video is 23.976 fps :( Anyway, thanks for the feedback, Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Spock: The odds of surviving another attack are 13562190123 to 1, Captain.
[toc] | [prev] | [next] | [standalone]
| From | Nicolas George <george@nsup.org> |
|---|---|
| Date | 2019-06-22 13:00 +0200 |
| Message-ID | <ybLUu-ET-7@gated-at.bofh.it> |
| In reply to | #210211 |
[Multipart message — attachments visible in raw view] — view raw
Michael Lange (12019-06-22): > I did investigate some more, now as far as I can see this is actually not > true. spumux only creates a .sub file but the .idx file is missing. This > seems to be no good except with DVDs. Besides, there seems only to be the > choice between 25.0 and 29,97 fps framerates (PAL/NTSC) which is too bad > if the video is 23.976 fps :( Indeed, because vobsub is a bastard format built on top of a crappy format. You need spumux to produce spu packets and mux them into a MPEG-PS stream, and then you need a DVD ripping tool to butcher the MPEG-PS stream and chop the pair of final files. Regards, -- Nicolas George
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-22 13:50 +0200 |
| Message-ID | <ybMGS-1aL-1@gated-at.bofh.it> |
| In reply to | #210236 |
Hi, On Sat, 22 Jun 2019 12:54:30 +0200 Nicolas George <george@nsup.org> wrote: > Michael Lange (12019-06-22): > > I did investigate some more, now as far as I can see this is actually > > not true. spumux only creates a .sub file but the .idx file is > > missing. This seems to be no good except with DVDs. Besides, there > > seems only to be the choice between 25.0 and 29,97 fps framerates > > (PAL/NTSC) which is too bad if the video is 23.976 fps :( > > Indeed, because vobsub is a bastard format built on top of a crappy > format. You need spumux to produce spu packets and mux them into a > MPEG-PS stream, and then you need a DVD ripping tool to butcher the > MPEG-PS stream and chop the pair of final files. ok, this might be possible. And before doing so one would have to do some tricky things to the subtitle's frame rate to trick spumux into creating pseudo 23.976 fps subs :) Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. War isn't a good life, but it's life. -- Kirk, "A Private Little War", stardate 4211.8
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-23 16:40 +0200 |
| Subject | [solved]Re: Converting text subtitles to vobsub |
| Message-ID | <ycbOV-7Nv-1@gated-at.bofh.it> |
| In reply to | #210236 |
Hi, On Sat, 22 Jun 2019 12:54:30 +0200 Nicolas George <george@nsup.org> wrote: > Michael Lange (12019-06-22): > > I did investigate some more, now as far as I can see this is actually > > not true. spumux only creates a .sub file but the .idx file is > > missing. This seems to be no good except with DVDs. Besides, there > > seems only to be the choice between 25.0 and 29,97 fps framerates > > (PAL/NTSC) which is too bad if the video is 23.976 fps :( > > Indeed, because vobsub is a bastard format built on top of a crappy > format. You need spumux to produce spu packets and mux them into a > MPEG-PS stream, and then you need a DVD ripping tool to butcher the > MPEG-PS stream and chop the pair of final files. I was finally able to find an app which does what I want (https://www.nikse.dk/subtitleedit/) It's a windows program, too, but it is GPL and can be run on debian with mono (the latest version 359 did not work perfectly here with Stretch for some reason, maybe Stretch's mono is too old or maybe it's something else; so I followed someone's suggestion and tried an older version (343) which seems to work well here). The feature set this app offers looks rather impressive, obviously it's far superior to similar programs that come with debian. And it can create good looking vobsub subtitles in less than one minute. Just in case someone comes here looking for help: you can download the zip file with the portable version, unpack it and then run # mono SubtitleEdit.exe which should launch the application window. To create vobsub files you can (once the original subtitles are opened) go to File -> Export -> VobSub (sub/idx)... which should open a dialog box where the properties of the vobsub file can be configured and finally press the "Export all lines..." button which will start the procedure. Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Men will always be men -- no matter where they are. -- Harry Mudd, "Mudd's Women", stardate 1329.8
[toc] | [prev] | [next] | [standalone]
| From | mick crane <mick.crane@gmail.com> |
|---|---|
| Date | 2019-06-24 10:30 +0200 |
| Subject | Re: [solved]Re: Converting text subtitles to vobsub |
| Message-ID | <ycswp-15B-3@gated-at.bofh.it> |
| In reply to | #210301 |
On 2019-06-23 15:31, Michael Lange wrote: > Hi, > > On Sat, 22 Jun 2019 12:54:30 +0200 > Nicolas George <george@nsup.org> wrote: > >> Michael Lange (12019-06-22): >> > I did investigate some more, now as far as I can see this is actually >> > not true. spumux only creates a .sub file but the .idx file is >> > missing. This seems to be no good except with DVDs. Besides, there >> > seems only to be the choice between 25.0 and 29,97 fps framerates >> > (PAL/NTSC) which is too bad if the video is 23.976 fps :( >> >> Indeed, because vobsub is a bastard format built on top of a crappy >> format. You need spumux to produce spu packets and mux them into a >> MPEG-PS stream, and then you need a DVD ripping tool to butcher the >> MPEG-PS stream and chop the pair of final files. > > I was finally able to find an app which does what I want > (https://www.nikse.dk/subtitleedit/) > > It's a windows program, too, but it is GPL and can be run on debian > with > mono (the latest version 359 did not work perfectly here with Stretch > for some reason, maybe Stretch's mono is too old or maybe it's > something > else; so I followed someone's suggestion and tried an older version > (343) > which seems to work well here). > The feature set this app offers looks rather impressive, obviously it's > far superior to similar programs that come with debian. And it can > create > good looking vobsub subtitles in less than one minute. > > Just in case someone comes here looking for help: > you can download the zip file with the portable version, unpack it and > then run > # mono SubtitleEdit.exe > which should launch the application window. > To create vobsub files you can (once the original subtitles are opened) > go to File -> Export -> VobSub (sub/idx)... which should open a dialog > box > where the properties of the vobsub file can be configured and finally > press the "Export all lines..." button which will start the procedure. > > Regards > > Michael That seems quick. Any idea what this software does to "burn" text over video ? extracting frames then combining with text for duration in .srt file and putting them back would take ages I would imagine. mick -- Key ID 4BFEBB31
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-24 12:40 +0200 |
| Subject | Re: [solved]Re: Converting text subtitles to vobsub |
| Message-ID | <ycuyd-2gJ-1@gated-at.bofh.it> |
| In reply to | #210328 |
Hi, On Mon, 24 Jun 2019 09:23:15 +0100 mick crane <mick.crane@gmail.com> wrote: (...) > > which seems to work well here). > > The feature set this app offers looks rather impressive, obviously > > it's far superior to similar programs that come with debian. And it > > can create > > good looking vobsub subtitles in less than one minute. (...) > > That seems quick. > Any idea what this software does to "burn" text over video ? > extracting frames then combining with text for duration in .srt file > and putting them back would take ages I would imagine. it does not "burn" them, but creates separate vobsub subtitles (a .sub plus an .idx file), that's the point :) I can add these to an .mkv file along with an .srt or .ass subtitle track, so I can pick which one to use depending on the player. Or I can even turn them off. Seems like there is no (or at least no easy) way to do this with debian tools. This program renders these subtitles so that they look good, similar to the optional subtitle streams that are sometimes used by TV stations, other windows programs I tried produced only more or less ugly ones. Plus it is open source :) Regards Michael P.S.: for the archives, in case someone looks here: I tried other versions of SubtitleEdit, v. 353 seems to be the latest one that works properly with Stretch. When exporting to vobsub, on linux for some reason the "Simple rendering" option in the dialog box needs to be checked (seems to be the case with any version). .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. "That unit is a woman." "A mass of conflicting impulses." -- Spock and Nomad, "The Changeling", stardate 3541.9
[toc] | [prev] | [next] | [standalone]
| From | mick crane <mick.crane@gmail.com> |
|---|---|
| Date | 2019-06-24 15:20 +0200 |
| Subject | Re: [solved]Re: Converting text subtitles to vobsub |
| Message-ID | <ycx33-3RB-1@gated-at.bofh.it> |
| In reply to | #210330 |
On 2019-06-24 11:32, Michael Lange wrote: > Hi, > > On Mon, 24 Jun 2019 09:23:15 +0100 > mick crane <mick.crane@gmail.com> wrote: > > (...) >> > which seems to work well here). >> > The feature set this app offers looks rather impressive, obviously >> > it's far superior to similar programs that come with debian. And it >> > can create >> > good looking vobsub subtitles in less than one minute. > (...) >> >> That seems quick. >> Any idea what this software does to "burn" text over video ? >> extracting frames then combining with text for duration in .srt file >> and putting them back would take ages I would imagine. > > it does not "burn" them, but creates separate vobsub subtitles (a .sub > plus an .idx file), that's the point :) > I can add these to an .mkv file along with an .srt or .ass subtitle > track, so I can pick which one to use depending on the player. Or I can > even turn them off. > So it sort of merges the streams. I thought you were supposed never to cross the streams. > Regards > > Michael > > P.S.: > for the archives, in case someone looks here: > I tried other versions of SubtitleEdit, v. 353 seems to be the latest > one > that works properly with Stretch. > When exporting to vobsub, on linux for some reason the "Simple > rendering" > option in the dialog box needs to be checked (seems to be the case with > any version). > > > .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . > .-. > > "That unit is a woman." > "A mass of conflicting impulses." > -- Spock and Nomad, "The Changeling", stardate 3541.9 -- Key ID 4BFEBB31
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-24 20:20 +0200 |
| Subject | Re: [solved]Re: Converting text subtitles to vobsub |
| Message-ID | <ycBJo-6Ol-11@gated-at.bofh.it> |
| In reply to | #210333 |
Hi, On Mon, 24 Jun 2019 14:10:49 +0100 mick crane <mick.crane@gmail.com> wrote: > On 2019-06-24 11:32, Michael Lange wrote: > > Hi, > > > > On Mon, 24 Jun 2019 09:23:15 +0100 > > mick crane <mick.crane@gmail.com> wrote: > > > > (...) > >> > which seems to work well here). > >> > The feature set this app offers looks rather impressive, obviously > >> > it's far superior to similar programs that come with debian. And it > >> > can create > >> > good looking vobsub subtitles in less than one minute. > > (...) > >> > >> That seems quick. > >> Any idea what this software does to "burn" text over video ? > >> extracting frames then combining with text for duration in .srt file > >> and putting them back would take ages I would imagine. > > > > it does not "burn" them, but creates separate vobsub subtitles (a .sub > > plus an .idx file), that's the point :) > > I can add these to an .mkv file along with an .srt or .ass subtitle > > track, so I can pick which one to use depending on the player. Or I > > can even turn them off. > > > > So it sort of merges the streams. > I thought you were supposed never to cross the streams. no, SubtitleEdit actually does not know about the video stream. You can just open the .srt or .ass or whatever subtitle file and then convert it to the vobsub .sub/.idx pair, just like you can convert an .srt file to .ass with gnome-subtitles or other similar programs. These can be added as optional subtitle stream in an .mkv container or just stored separately next to the video, just like .srt or other text subtitles. Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. [War] is instinctive. But the instinct can be fought. We're human beings with the blood of a million savage years on our hands! But we can stop it. We can admit that we're killers ... but we're not going to kill today. That's all it takes! Knowing that we're not going to kill today! -- Kirk, "A Taste of Armageddon", stardate 3193.0
[toc] | [prev] | [next] | [standalone]
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Date | 2019-06-24 15:10 +0200 |
| Subject | Re: [solved]Re: Converting text subtitles to vobsub |
| Message-ID | <ycwTn-3Nr-1@gated-at.bofh.it> |
| In reply to | #210301 |
> I was finally able to find an app which does what I want
> (https://www.nikse.dk/subtitleedit/)
Any chance this can be packaged for Debian?
Stefan
[toc] | [prev] | [next] | [standalone]
| From | Michael Lange <klappnase@freenet.de> |
|---|---|
| Date | 2019-06-25 00:50 +0200 |
| Message-ID | <ycFWF-NS-1@gated-at.bofh.it> |
| In reply to | #210236 |
Hi,
On Sat, 22 Jun 2019 12:54:30 +0200
Nicolas George <george@nsup.org> wrote:
> Michael Lange (12019-06-22):
> > I did investigate some more, now as far as I can see this is actually
> > not true. spumux only creates a .sub file but the .idx file is
> > missing. This seems to be no good except with DVDs. Besides, there
> > seems only to be the choice between 25.0 and 29,97 fps framerates
> > (PAL/NTSC) which is too bad if the video is 23.976 fps :(
>
> Indeed, because vobsub is a bastard format built on top of a crappy
> format. You need spumux to produce spu packets and mux them into a
> MPEG-PS stream, and then you need a DVD ripping tool to butcher the
> MPEG-PS stream and chop the pair of final files.
I found a script that does exactly this at:
https://code.google.com/archive/p/srt2vob/
It works, but two problems with spumux make it hardly usable, at least
for any video with a resolution greater than DVD statndard:
First (not so important) colormaps are tricky again with spumux; for
example when requesting white fonts with a black outline I actually get
something like "light-pink" with a maroon-like outline.
And second (really bad) when increasing the font size to something
suitable for 1080p content spumux stops with an error saying
"ERR: Encoded row takes more than 1440 bits. Please simplify subtitle."
Apparently spumux was made for DVDs and insists on some ancient standard
which appears to make it unusable with HD content.
Looks like the srt2vob developer noticed that too, because they added
another script with a totally different approach they called "2dsub".
This one uses PIL to create the subtitle images and bdsup2sub to convert
these into vobsub. That script clearly requires a bit of work to become
really usable, but as far as I can see now the idea is brilliant, it
takes less than three minutes here to create subtitles that look quite
beautiful.
Finally something to work with :-)
Regards
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
Women are more easily and more deeply terrified ... generating more
sheer horror than the male of the species.
-- Spock, "Wolf in the Fold", stardate 3615.4
[toc] | [prev] | [next] | [standalone]
| From | Reco <recoverym4n@enotuniq.net> |
|---|---|
| Date | 2019-06-21 20:20 +0200 |
| Message-ID | <ybwiJ-83f-1@gated-at.bofh.it> |
| In reply to | #210196 |
Hi. On Fri, Jun 21, 2019 at 05:23:32PM +0200, Michael Lange wrote: > is there a program (command line preferred) that is able to convert text > subtitles (.srt or .ass etc.) into vobsub "image" subtitles? You need something like this: ffmpeg -i input.mp4 -i /tmp/input.srt -c:v copy -c:a copy \ -c:s mov_text output.mp4 Or this: ffmpeg -i input.mp4 -i /tmp/input.srt -c:v copy -c:a copy \ -c:s dvd_subtitle output.mp4 Reco
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | linux.debian.user
csiph-web