Linux: wrote small program to make .srt subtitle files from DVB teletext subtitles.

Discussion in 'Amateur Video Production' started by Jan Panteltje, Mar 26, 2005.

  1. wget http:/panteltje.com/panteltje/subtitles/dvbtextsubssrt-0.3.tgz
    or
    http:/panteltje.com/panteltje/subtitles/

    This is actually a rework from dvbtextsubs from Dave Chapman, that
    program only has xml output.
    I added .srt output.

    So now you can grab for example BBC subtitles and end up with a .srt file.

    This is how I use it for mplayer to make subs:

    # Tune BBC2 on Astra2 with xdipo, use pids 2320 2321 2322
    # You can also use dvbtextsubssrt to tune, if you have no positioner
    # like I do of cause
    cat /dev/dvb/adapter0/dvr0 > q2.ts

    # record
    cat q2.ts | dvbtextsubssrt -r 2321 888 > q2.srt

    # demux and re-multiplex so mplayer time start at zero.
    cat q2.ts | ts2pes 2320 2322 > q2.pes
    es_demux q2.pes q2.mp2 q2.mpv
    tcmplex-panteltje -o q2.mpg -i q2.mpv -0 q2.mp2

    # play
    mplayer q2.mpg

    mplayer will now use the q2.srt file for subs.

    You can also use transcode or mencoder to encode to DivX,
    and use the .srt file in a standalone player.
     
    Jan Panteltje, Mar 26, 2005
    #1
    1. Advertisements

  2. Jan Panteltje

    nap Guest

    that should be very helpful for the one other linux user in the world.
     
    nap, Mar 27, 2005
    #2
    1. Advertisements

  3. If you have nothing to contribute do not contribute it!
    And that also goes for the last MS windows user, idiot.
     
    Jan Panteltje, Mar 27, 2005
    #3
  4. Jan Panteltje

    nap Guest

    aw.. don't take it personally.. it was a joke. I'll refrain from calling you
    any names..

    happy easter!
     
    nap, Mar 27, 2005
    #4
  5. OK, maybe I was a bit harsh, I asked myself, 'will there be a last MS windows
    user?'
    Yes, there will be.
    And Unix will be there still, it was there long before too.
    As for Easter, well, a day like any other day, may every day be a happy one.
     
    Jan Panteltje, Mar 27, 2005
    #5
  6. Jan Panteltje

    nap Guest

    I don't celebrate Easter. I still can't figure out what the rabbit had to do
    with the resurrection. But I wish others a happy day.

    Unix, Windows.. whatever.. As long as there are apps to run ...

    I think Linux users lose sight of the fact that there are a hundreds of
    millions of Windows systems working at every possible job every day. I find
    the entire discussion about operating systems boring. UNIX is
    incomprehensible for the casual user. mostly because it is too flexible and
    in order to compomise it enough for the common user.. it would end up like
    Windows.

    in the 80's when I was working at a large VFX facility we ushered in the
    first SGI (Iris) machines and it would have been unthinkable that any
    Windows machines could contribute to the CGI workflow in anyway. Now you
    will find a vast number of CGI houses using only windows machines. Of course
    there are plenty with Linux / Windows systems but with respect to your 'last
    Windows user' .. I think the trend is moving away from that possibility. If
    there were ever a flood of apps for Linux I think it would have a good
    chance. I really do not enjoy developing Windows apps with the API approach
    of MS. But it's gotta be done!
     
    nap, Mar 27, 2005
    #6
  7. On a sunny day (Sun, 27 Mar 2005 22:39:29 GMT) it happened "nap"
    <BCG1e.2253$>:

    I think the issue Linux versus MS windows is becoming more important everyday.
    Not a subject for this group perhaps, but now a political hot item too.
    Because of US imperialism, and aggression, more of the still free world will
    want to use a NSA free OS.
    You must be joking? For almost any subject there are more free applications
    for Unix / Linux.
    The point is, for any user with 100$ to spare, he can get everything in Linux,
    and buy only a few apps in MS world.
    And often the Unix stuff is university level state of the art, the windows
    stuff deliberately designed broken or limited so you have to buy an upgrade.
     
    Jan Panteltje, Mar 28, 2005
    #7
  8. Jan Panteltje

    nap Guest


    dude.. you are a sad case. US Imperialism.. uh-huh..


    Without support, and zero guaranteed functionality. . If you are telling me
    the quality and quantity of apps in Linux is equivalent.. you are wrong.
    Not only that but these apps are nowhere near as complete as the Win apps ..
    nor do they run on as many hardware variants.


    If you only need one or two apps then sure.. 100 imperialist US dollars will
    get you there.


    Univeristy level 'state of the art'? That's funny as hell. Yes.. that's
    how it works.. You become a student and you think you know everything. And
    those apps are complete, never need upgrades, never fail and run everywhere.
    ok.
     
    nap, Mar 28, 2005
    #8
  9. (I'm setting myself up, but I know that going in)

    Nap, if you truely feel, as you stated a couple of posts ago, that you don't
    want to argue *nix vs. MS then don't talk to a *nix user. All talk
    eventually boils down to this same premise. They are physically incapable
    of talking about anything else.

    I have a friend of mine that's been waiting for *nix to overtake MS for 15
    years now. I've almost had to break off the friendship.

    Oh, and the rabbits (and eggs for that matter) are pagan symbols of
    fertility. But don't tell the die-hard christians that. You'll end up with
    another argument that never ends.

    Tom P.
     
    Henry Padilla, Mar 28, 2005
    #9
  10. Jan Panteltje

    nap Guest


    I have a linux system here.. got it in case I was asked to do development
    but hasn;t happened yet. So far its Windows and embedded stuff.. Even the
    OSX development has slowed to a standstill. I was trying to have a rational
    discussion with him but the US Imperialism .. is a problem for him ..

    For me.. Windows is like the prisnoer in the next cell. You HAVE to like him
    for the duration but you really hope he keeps his hands off you.

    So.. Rabbits = Linux!

    n
     
    nap, Mar 28, 2005
    #10
  11. Jan Panteltje

    nap Guest

    all the yak aside..

    I think Jan is obviously a very smart guy.
    Certainly not an ' idiot'
     
    nap, Mar 28, 2005
    #11
  12. It is clear (and I hereby also reply to your other stupid post), that you
    have neither a clue of MS soft AND Unix.
    Since you program for MS soft (you say) you hereby confirm not only to be a
    US imperialist agressive slave, but also that MS windows app are written by
    morons.
    It may interest you to know that I have used Visual C studio for my work,
    and know it pretty well. I'v stopped using it some years ago as there
    obviously is no future for that crap MS OS, and it was a very limiting piece
    of little windows annoying colored crap anyways.
    And it did cost money too.
    In Linux we have for example X windows, and a wide choice of GUI systems.
    Say KDE, Gnome, Xforms, etc etc etc.
    So, as you (and your silly ass kissing friend poster) could not get even one
    of those to run, you show how good you really are.
    I was using Unix way back in 1979 already.
    It is designed for real omputers.
    There was no Billy The Gates in those days.
    And there wil be no more Billy The Gates when Unix is still alive and well.
    Sooner then you think.
    We just wait for the Andreas fault now.
    Tick tick tick.
    So much for US imperialism agression.
    Because you are not really making any sense you are hereby ignored.
     
    Jan Panteltje, Mar 28, 2005
    #12
  13. (YES, I know I'm falling for the trap but I'm just too fed up with these
    guys to care)

    Since YOU brought it up: I've been programming since I was 8 years old. I
    started out on the Amiga and *nix and moved to the MS platform out of
    necessity. I.e. there were no jobs for *nix programmers.
    I object to being called a moron. I know three verbal languages and 14
    code-based ones. How many do you know?
    Agreed, I can't stand the thing.
    This is not why I can't stand it. I have actual issues with the framework.
    I don't base my likes and dislikes on the expense incurred. Things in the
    real world cost money, face that fact and you'll go a long way toward having
    a rational argument that doesn't deterierate into name-calling.
    I've got two boxes running RH 3.0 and SuSE 8.0 at my house. It's been
    installed and uninstalled several times (I've lost count) and are on the
    network with my other Windows machines. Both can get to the internet and
    neither has been used for almost a year since I have no reason to use them.

    What makes you think I can't get an install to run?

    I was using it in '76, so what?

    Yes, there was. Look up the patents.
    I'M not making sense?
    1) I predicted you would respond this way.
    2) I have never attacked you or your views.
    3) I have never called you names.
    4) I have recognised any salient points you have brought up.
    5) I have agreed with points you have made when it's warrented.

    Is this how you respond to contrary viewpoint? Name-calling and insults?
    You have yet to reasonably explain to us WHY Microsoft will die and Unix
    will not. As a matter of fact, I think you are wrong in the opposite way.
    Unix is in dire jepordy due to SCO and some of the trademark and patent
    holders. I think *nix (Linux, BDE, etc.) are going to take it from here.

    One thing most *nix evagelists forget is that Bill Gates ain't in it for the
    recognition. He ain't in it for the pride of ownership. He ain't even in
    it to "win". He's in it for the money!!! And if he sees that he can make
    money by doing something different he'll whip that company around on a dime
    and start doing it that way. He's already proven that with his approach to
    the Internet. He was poised to go one way: had money sunk into investments
    and everything. Then he heard about this "Internet" thing and WHIP around
    comes the MS guns and he starts clearing the chaff.

    If you think Bill Gaets is going to watch his company loose money because he
    doesn't want to help *nix you are sadly mistaken.

    Tom P.
     
    Henry Padilla, Mar 28, 2005
    #13
  14. For what it's worth: Bill Gates and Microsoft are headquartered in Seattle,
    Washington. Approximately 400 miles from the San Andreas fault. That fault
    will do nothing to them.
     
    Henry Padilla, Mar 28, 2005
    #14
  15. Jan Panteltje

    nap Guest

    Jan

    how do you spell 'relax' in your language?
     
    nap, Mar 28, 2005
    #15
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.