Slashdot Mirror


Could I Run a TV Station on Linux?

JesusQuintana asks: "I'm working with a low-power television station to update their playback system. Currently they're using tape and I've been tasked to move them to computerized playback (MPEG-2, etc.) There are proprietary solutions (very expensive) and there are companies that bundle software with Windows and standard x86 hardware. Overall, they are generally unimpressive and won't sell the software without bundling it with their own hardware. (They won't let us buy our own storage.) We have the expertise to build our own infrastructure (NAS, redundancy, etc.), but really just need the equivalent of iTunes for high quality video. There are lots of other pieces needed to complete the work-flow (such as encoding the media), which could be accomplished on Mac or Windows or even Linux. But what about playback? We need something that will play back these files at their scheduled times (perhaps scheduling cron jobs to change playlists) to broadcast quality hardware (SDI or YUV video). Could we run a TV station on Linux?"

64 of 321 comments (clear)

  1. answer by Anonymous Coward · · Score: 4, Funny

    yes

    1. Re:answer by kfg · · Score: 5, Funny

      But implimentation is left as an exercise for the student.

      KFG

    2. Re:answer by CharlieG · · Score: 2, Informative

      To go one step further - of course you can - If your in the industery, you've probably heard of Avid. Guess what platform their servers run on (at least their iNews platform - not sure of their editing suite)

      No love of their backtimer (understatement), and they have a very limited api that they are willing to publish

      for those lurking:

      Your BIG issues are going to be "Hard Hits" (particularly if you are an affliate)

      Hard Hits are the timing of commercials /ends of shows/ starts of feeds that have to run at a particular time - and I mean NOW (you might get away with a couple of frames of black/over, but it is sub second, the commercial systems will time to the frame, or even 1/2 frame)

      Other issues will be things like getting video cards that support sync pulse (assuming NTSC signals)

      Really comes down to - how good a signal do you want to put on the air, and how fancy does your low power station need to be? Let's face it, if your one of the big 3 networks and your worried about "broadcast quality" and "HD quality", down to the frame accurate level, with data going out in the VBI, your playing a different game than a small stand alone station

      You pay your money, you take your choice...

      (and yeah, I've worked on near broadcast quality encoding systems - but not playback, and have written code to interface with 2 different "newsroom systems")

      --
      -- 73 de KG2V For the Children - RKBA! "You are what you do when it counts" - the Masso
  2. Of course you can by Anonymous Coward · · Score: 5, Funny

    With Linux, all you have to do is concatenate 6 strings on the command line and edit 3 configuration files and you can accomplish anything!

    1. Re:Of course you can by Anonymous Coward · · Score: 3, Insightful

      Ahahaha, broadcast TV scheduling with cron. Haha. Hoho.

      Seriously, how much could the proprietary vendor's storage cost that you think it will be cheaper in the long run to string together dozens of programs not meant for the job so as to let you build your own IDE NAS. How much is the constant redevelopment going to cost when you find piece after piece not quite right for the task? How much is support and downtime going to cost?

      If the options are rolling your own software system from scratch and buying a proprietary system that they can't afford, it's very likely they can't afford (in many ways) your homebrewed approach either. Stick with tape and what they know.

    2. Re:Of course you can by DittoBox · · Score: 2, Funny

      I'm sure their's also some obscure emacs function for it too, if you're brave.

      --
      Good. Cheap. Fast. Pick Two.
    3. Re:Of course you can by IWannaBeAnAC · · Score: 3, Insightful

      Heh, that post could serve as the poster child for the decline in slashdot. There was a time when the majority of slashdot users had a clue!

    4. Re:Of course you can by IWannaBeAnAC · · Score: 2, Interesting

      Was it a typo? That is the $64 million question...

  3. HowTo by Crazy+Man+on+Fire · · Score: 5, Funny

    There some pretty good information about TV station automation here

    1. Re:HowTo by Rob+T+Firefly · · Score: 4, Funny

      This is why progress sucks. With everything on MPEG and no more tapes, what will the h4x0r3d robot claws fight over?

    2. Re:HowTo by MBCook · · Score: 3, Funny

      I think this one might have more information.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
  4. Mplayer by chikanamakalaka · · Score: 3, Informative

    Mplayer should be able to do the job.

    1. Re:Mplayer by nologin · · Score: 3, Informative

      Actually, you can address a lot of those types of problems (like playlist management, etc.) with one of the many mplayer frontends on their related projects page. All you need to do is choose whichever one you prefer and mplayer is your best friend for video playback.

    2. Re:Mplayer by rs79 · · Score: 2, Informative

      "Not trying to troll, but even WMP has better playlist functionality"

      Is it frame accurate? If something is to go to air at "midnight" you have to hit it within 1/30th of a second. You cant afford one frame-time error. Ever.

      People have mentioned failover. Probbaly overkill as it's really really expensive to get right and the premise is you have a human in the booth than can cut to a "we're experiencing technical difficulties" page, err screen.

      Disclaimer: I used to work at Sony and developed the CBC's dubreel compilation system.

      --
      Need Mercedes parts ?
    3. Re:Mplayer by dfjunior · · Score: 2, Informative

      As far as frame-accuracy goes, that should be taken care of by a hardware MPEG decoder with an external TBC, no?

      Your playback systems would basically need to pretend they are VTRs, and the master program controller would have a PCI (AES/EBU/SMPTE?) timecode card. The cue timing would still rely on an input from the station's master clock. You'd most likely want to have proper "bars & black" preroll on all of your program MPEGs for calibration, testing the MPEG stream, etc. This way, you've still got a ~30 sec window to flip over to the "we're experiencing technical difficulties" screen as you mentioned should something get f'd up...

      Sounds like a fun project.

  5. Video Lan Project by JSBiff · · Score: 4, Informative

    I think you are Looking for the Video Lan project, specifically the VLC player:

    VLC

    1. Re:Video Lan Project by JSBiff · · Score: 4, Informative

      Just realized I should give some more details about *why* you might want to use VLC.

      VLC has the ability to be controlled from multiple different types of clients/interfaces. There is a command line client (perfect for cron jobs), GUI client, and several network interfaces that would allow you to control it over the network (so you could, for example, roll your own easy-to-use scheduling program, and have the scheduling program control VLC over the network).

      However, I'm not entirely sure about VLC being able to playback to special broadcast hardware, but it wouldn't surprise me if there is a way to get it to work.

    2. Re:Video Lan Project by betterunixthanunix · · Score: 4, Informative

      With the latest kernel, it shouldn't be too hard (more than 200 lines of code) to just write up a quick driver, assuming the specs on that hardware are available. Really, it is just a question of converting from one bit stream format to another -- and my hunch is that this is unnecessary, since there are standard formats that have probably been implemented already (PAL, NTSC, etc.). Analog TV, thankfully, hasn't become a mess of proprietary formats (the way digital movies and music have).

      --
      Palm trees and 8
    3. Re:Video Lan Project by aonaran · · Score: 4, Interesting

      Speaking of VLC, I know a guy at the cable co where I used to work who uses VLC running on $800 Dell servers with capture cards to digitize analog channels to a format that the digital boxes can read. He saved the company $9000/channel for each of the channels they didn't have already piped to them in digital format (the lowest cost purpose built digitizer was $10,000)

    4. Re:Video Lan Project by dgatwood · · Score: 5, Informative

      I wrote a long response to this, but screwed up and hit command-Q. I won't retype all of that, but here's a much more concise version.

      The things you need are a scheduler (to determine which commercials air when), a program format spec file (to tell where in a program file the actual video begins and ends so you don't end up unnecessarily airing several seconds of black as you might if you just paused the playback of a TV show), and a mechanism for crossfading the audio between spots to handle the case where people run it right up to the wire. You need a switcher for the video---the ability to quickly change from one foreground full-screen video window to another without any glitching. This is a lot harder than it sounds. Finally, you need a player that can start pretty much instantaneously and without glitch in the middle of a program. I haven't found that to be true of VLC at all in my experience, but maybe it has improved a lot in the last few months....

      For a possible controller UI, you might check out SongCue on SourceForge. I designed it for radio automation, but combine that UI with a preview pane above each controller and show a still frame from 5 seconds into a segment, and you have a UI that would work pretty well for what you're doing, too. Maybe even show live video in the preview panes during playback. (I wouldn't recommend the code from SongCue, though, as it's pretty much raw Xlib, not for the faint of heart.)

      If I were writing such a thing, I'd start with a Mac OS X (10.4 Server) box. Xsan provides a supported mechanism for handling your storage needs. QTKit can do your playback, and Quartz Composer should make switching the foreground full screen movie pretty easy. The only potential snag I can think of would be that if you aren't careful, you could mouse over onto the live output signal, but all things considered, it's probably the easiest way to build an app that does what you want, IMHO.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    5. Re:Video Lan Project by swillden · · Score: 2, Informative

      You need a switcher for the video---the ability to quickly change from one foreground full-screen video window to another without any glitching. This is a lot harder than it sounds.

      Yes, it's hard -- but I don't think it's really necessary.

      As long as all of your video streams are digital, you just need to make sure that you're feeding a single, continuous stream of video to the playback engine, and then change the stream you're feeding in, stopping the previous stream after the completion of a frame, then starting the new one.

      The reason switching video is hard is because it's normally done at the analog level, where you have to pay careful attention to exactly when in the scanning process you switch. Basically, you need to switch only during vertical retraces, which gets particularly hard when you're dealing with multiple input sources ("gazintas", in the technical terminology used when I worked on this stuff) whose frames are not synchronized with each other or with the output sinks ("gazoutas", we called them).

      I think VLC can handle this quite nicely, and I'm sure that gstreamer can.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  6. Yes by Yonder+Way · · Score: 5, Informative

    It wouldn't even be all that complex.

    MySQL database that indexes all content.

    Also have a table for the schedule.

    Batch job queues up content. As one piece of content finishes, next piece is queued up and plays.

    All of this can be made fairly redundant without too much effort. Setting up your schedule can be point & click.

    The real work will be if you want to make it fancier to give the advertising department more direct control over what ads run when, as opposed to having the programming manager schedule all of that.

    All of this can pretty easily give you a very detailed automated log of what content played when, when you gave your station ID's, what ads played, etc.

    Pick one good well known scripting language, learn it well, and use it. I'm not going to enter the holy war of telling you which one to use.

    MySQL can be replaced with PostgreSQL if you prefer. Doesn't matter which. You're not keeping your content in the database, just an index of where to find the content on the filesystem plus the broadcast schedule.

    The REAL work in all of this is making it resilient so you don't hit dead air. Redundant systems with automated failover, etc. And the cost of entry may be high, but I can't recommend highly enough that your content be stored on a redundant SAN or NAS infrastructure. Most of my long nights repairing things have dealt with failed hard disks. A decent SAN or NAS will allow you to rest easily at night.

    Additionally a system like this will allow you to have a much more intelligent content-rich web site.

    And I'm also sure there are people at Google who would love to talk to you about your ad delivery system if you put something like this in place. You would like to increase your ad revenue, wouldn't you? Google is working on breaking into this space in a big way. It would be worth making a few calls.

    1. Re:Yes by Rohan427 · · Score: 3, Interesting

      Just to backup what Yonder Way said, Yes. I worked on a project for a little while that was to provide scheduled playback for Internet audio and optional video streaming. It used a MySQL database for tracking artists, program schedules, playlists for the programs, supported e-Commerce, traked where the actual audio and video streams were, etc. For playback, there are many different applications (free) that can do the job depending upon the format you wish to provide. The hardest part (not including the time for development, which is not hard, just time consuming) is selecting the various components from all the choices available.

      For the inventive and those that need a solution that doesn't exist, the various video formats and protocols are published and applications can be written to provide the solution needed (which is something I had to do in part for Akamai when I worked there).

      As a final note, a Linux based solution would work far better and be far more reliable than a Windows based solution (it would also provide a far better ROI and a lower TCO).

      PGA

  7. Dear Slashdot by brkello · · Score: 4, Funny

    Teach me how to do my job.

    Thanks!

    (I kid! I kid!)

    --
    Support a great indie game: http://www.abaddon360.com
    1. Re:Dear Slashdot by rizole · · Score: 2, Funny

      So to summerise; The questions are fucking stipid. Actualy they are good but on the other hand they are crap.

  8. run linux...? by xiao_haozi · · Score: 2

    tv station!..yes...but does it run linux.... oh wait..that's the question.

  9. Given that... by also-rr · · Score: 4, Insightful

    The BBC runs a lot of their system (including the weather graphics) on Linux I'd say that the answer is yes. The more important question is how hard is it for me to do it.

  10. little software available for linux. by flaming-opus · · Score: 2, Informative

    Most all of the compositing, editing, and formatting software is for windows. For some very limited sorts of things, you could probably roll your own, but it would take a lot of development time, and probably be hard to use.

    However, you should check out Apple's final cut pro. I've seen it used for small-medium sized TV stations, and it's not too hard to use. I like it.
    http://www.apple.com/finalcutstudio/
    http://www.apple.com/uk/pro/profiles/tourdefrance/

    1. Re:little software available for linux. by Anonymous Coward · · Score: 5, Funny

      I know you didn't ask for any composting, editing, or formatting software. And I know you plainly asked for Linux. But you should really check out Final Cut Pro. It doesn't do what you want and doesn't run on the platform you suggested, but I used it once and it was great.

      Mod me up informative!

  11. Do they really need it? by gstoddart · · Score: 5, Insightful

    Not to be a technology nay-sayer, but does this low-power TV station need all of this high-faluting stuff?

    Sometimes I have visions of throwing a load of technology at a problem, and then leaving someone with a solution they can't run, maintain, or understand. And then they've leaped back even further in technology when it all becomes inoperative.

    The thing you have to ask yourself, is do they really need it, and can they be updated to it without damaging them in the long run?

    [ No, I'm not a complete luddite, I just wonder if this is a step they might actually be ready to take ]

    Cheers

    --
    Lost at C:>. Found at C.
    1. Re:Do they really need it? by gstoddart · · Score: 3, Insightful
      Then you'll be on TV in no-time, and with a little word-of-mouth, your ratings should surpass those of the CW network by the end of your first broadcast month.

      Actually, I took the submission to indicate that a low-power TV station which was already broadcasting was trying to modernize their infrastructure, not build one from scratch.

      I was just questioning if COTS components running Linux were what an already-running TV station actually needs. At a minimum, you need to guarantee they can go back to the old system of switching tapes manually. On the other end, you could leave them absolutely dead in the water if things go awry.

      A TV station is presumably more complex than setting up a myth TV machine.

      Cheers
      --
      Lost at C:>. Found at C.
    2. Re:Do they really need it? by general+scruff · · Score: 2, Interesting

      I second that.

      In working for a doctors office, I was all ready to set them up with a better switch (they are running netgear now) and a couple other high tech solutions... Until I thought about it a bit more, and realized that they are fine.

      What might be a better idea is to leave them where they are, and pick away at a new solution that might involve MPEG and CRON and linux stuff, but only for the day that all of the stuff they are using now is broke.

      Taking your time might also mean some other solutions present themselves while you wait (Like used equipment from a slightly higher powered station upgrading all its tech bits).

      Heck! Why not have a show devoted to developing a new setup for the station. Get the fans of the station involved. Now thats using Open Source!

      --
      As a rule, I never trust dark brown ketchup.
  12. Re:Just a thought... by Nos. · · Score: 2, Informative

    NO, MythTV is way overkill for something like this. He just needs a video player, possibly with a dynamic playlist.

  13. NTSC Signal by AKAImBatman · · Score: 5, Insightful

    Everyone seems to be forgetting the little part about translating the MPEG compressed video into a broadcast quality NTSC signal, preferrably without noticable artifacting and color problems. Depending on the equipment, a simple TV-OUT port could be used, but would that really give the results a television station needs?

    Also, let's not forget that he needs to future-proof his solution for digital transmissions. While there's tons of NTSC equipment on the market, what does one use to broadcast in digital? Presumably, he'll need encoders that are well suited to broadcast technology and an advanced digital to analog signal coverter at a minimum. He'll also need to understand whether he will have to support SDTV broadcasts, HDTV broadcasts, or both. If it's both, does his software support anamorphic encoding? If not, what is the hit from multi-encoding?

    I'm barely even scratching the surface of the problems he's going to have. Right now, Linux has media software intended for home use. Setting things up for a professional television station is a whole other ball of wax that probably hasn't been considered yet.

    1. Re:NTSC Signal by CosmeticLobotamy · · Score: 2, Funny

      Depending on the equipment, a simple TV-OUT port could be used, but would that really give the results a television station needs?

      He said "low-power tv station," so as long as he can either tell that the local used car dealer is still bald or make out the nipple on the feed from the camera he put in his hot neighbor's bookcase, he's probably good.

    2. Re:NTSC Signal by Lumpy · · Score: 2, Informative

      hollywood+ mpeg playback card.

      Bingo... NTSC broadcast quality.

      dont believe me? most of the weather channel boxes and TV guide boxed in CATV headends as well as the locall access channels used to use them and many still do.

      linux compatable and works great. problem is that you haveto begin and end EVERY video clip with 1 frame of black or you get wierd artifacting.

      using mplayer with it and you can do even more.

      Hardest part is to generate a system to insert ad's and do the verification of playback for billing affidavits.. There is a reason that most TV and catv stations use seachange gear+ software for ad insertion.

      --
      Do not look at laser with remaining good eye.
  14. Re:In for a penny, out for a pound. by Anonymous Coward · · Score: 2, Insightful

    By "very expensive", the author means incredibly expensive. The hardware is decent, but the software and the interfaces to modern broadcast automation is ugly -- still stuck back in the mentality of text-based programs at best (which makes any GUI app as hard, if not harder, to use). For non-traditional media, like a LPTV (Where frame-accurate automation is not required, where the content can controlled (minimal legacy support, a small number of possible inputs, etc), a full, commercial solution is also overkill. All you would need is a database, a machine (or 2) dedicated to output (for quality and redundancy more than anything), and a controller that queues schedules from the database and sends commands to the output servers as needed. So, yes, Linux will save you not only a bundle of money, as long as you have the ability to program some decent interfaces, but also some frustration.

  15. Internet TV!!! by KallosEsq · · Score: 3, Interesting

    Yes, this can be implemented on a linux box very easily.
    Long story short I implemented this in 2002 at the University at Albany, SUNY with a friend.
    It requires a dedicated server and a dedicated encoder.
    What will make the process easier is going all digital on your content development.

    It currently has a barebones site: Albany Student Television

    You can use any number of devices to keep the content automated and going from cron to java scripts to shell scripts and what have you. The challenge is figuring out what you want to do and how you want it managed?
    Since 2002 there is a lot more technology out there. Our solution at the time was to use windows explorer with embedded media playing. Two draw backs were an occasional refresh logo in the top, and IE's tendency to be unstable.

  16. Why not? by www.sorehands.com · · Score: 4, Informative

    I worked on a high-def digital cinema preshow playback system based on Linux. It is currently running in over 400 cinemas. Of course it would take work to find and glue them together. You would also need TV compatible video output with Linux drivers.

  17. The other challenge by sterno · · Score: 3, Insightful

    Making it redundant is important, but the other challenge is making sure that it's usable by programming people who don't have significant technical expertise (at least not of this sort). Intutive ways to queue up programs, ads, etc. You can have a system with all of the bells and whistles in terms of redundancy, storage, etc, but if nobody knows how to use it effectively, it doesn't matter.

    --
    This sig has been temporarily disconnected or is no longer in service
    1. Re:The other challenge by chuck · · Score: 4, Funny

      Intutive ways to queue up programs, ads, etc.


      They can set it up in google calendar and the scripts can read the ical feed.
  18. Program in APL by krell · · Score: 5, Funny

    You can even write the entire program to run the station itself in a mere 11 characters of APL code.

    --
    Where were you when the voynix came?
  19. Based on What I See of BBC America... by eno2001 · · Score: 4, Interesting

    ...it appears to me that BBC America is probably run by two people and an automated system. My reasoning for this? The glitches I see from time to time. Sometimes the schedule on their web site will say they are showing a certain program, when they are showing something else. Sometimes I've even seen things like a program go to commercial break and when the break is over, you're in the middle of a different program. I suspect these are automation glitches. My second reason for saying this is that I have a series of BBC America station IDs I've edited out of the regular program streams and I have an automated playlist system that can simulate a live BBC America feed just with the programs I've recorded and commercials I've produced myself. So the answer is: yes you can. The real question is, how much of your time do you want to dedicate to doing it and are you up to the challenge. I did it purely for the fun of running a virtual TV station. Would I trust it to work for a low-power TV station? Sure. But I think you'd definitely want better hardware than what I've got. Just make sure it's supported in Linux, or else it's a show stopper. (No pun intended)

    --
    -"...bad old ideas look confusingly fresh when they are packaged as technology" - Jaron Lanier (Digital Maoism on Edge.o
    1. Re:Based on What I See of BBC America... by chuck · · Score: 2, Funny

      Some of us wouldn't call it luck...

  20. Short answer: Yes. Long answer... by jd · · Score: 5, Informative
    Yes, but it will require a little tweaking. You'll definitely want hard real-time, or you'll skew the frame updates. Check to see what RTC clocks Linux supports and see if it would be viable to go in that direction. If not, the machine for playing must absolutely not run anything other than the player, then using the scheduler tools to set the program to run in the FIFO queue. (ie: make it totally non-interruptable).


    If you're running off remote disks, then the NAS MUST be capable of greater output than is required to transmit, as you absolutely must allow for dropped packets and other glitches that force a retransmit. If there's not enough time to fix the problem, then you're going to transmit a picture with noise.


    ALWAYS work ahead and cache pre-processed frames. There should be enough processed frames (encoded, digested and all ready to blast to the mast) that in the event of a failover (you DO have failover, don't you? :), you can be transmitting without interruption until the machine on standby is up and running. That way, you can almost (but not entirely) eliminate all possibility of downtime. Downtime is a VERY good thing to eliminate.


    Your NAS should use a striped RAID array (although each stripe may also be mirrored). Striping is essential in keeping the data flowing fast, and your hardware should be geared to maximizing that throughput. Let the realtime handle the scheduling.


    Don't bother using cron, or some other such userland service to start things. Exploit the FIFO queue. It won't run the next thing in the queue until the previous thing is finished. So long as you guarantee the stop time, you implicitly guarantee the next start time. You can then use cron to kill programs that overrun.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Short answer: Yes. Long answer... by jd · · Score: 2, Interesting
      Sure, when all is going well. My point is that things usually don't go well, particularly when you want guaranteed time on a free-for-all multitasking OS. And that's true of any such OS. When you absolutely must have a frame done within a thirtieth of a second, that absolutely cannot be an average interval, that must be a guaranteed interval. Which is not an easy thing to guarantee, when there are a bazillion signals, housekeeping operations and other diversions the kernel can get into. You only need an unexpected interrupt to throw your end-of-frame time off by a small amount before you distort the image noticeably. That's one reason why MPEG players on computers generally suck. even when the computer is easily powerful enough, allowing unexpected events to screw up the timings WILL make a huge difference. It absolutely must not be permitted.


      Realtime doesn't make things faster. Putting things in the FIFO queue won't make them noticeably faster. But each of these techniques WILL reduce the possibilities of the unexpected wrecking havoc.


      The drives and the network are another matter. They will ALWAYS be much slower than the computer and there is absolutely no way to prevent unexpected events on either. In consequence, you have to estimate the worst likely case and have both be capable of being fast enough to compensate. The buffering is for the same reason. It's pure compensation - mostly for the inherent variations in timing from mechanical devices and best-effort networking, but also for machine failure. It takes 5 seconds to reboot a machine that is running LinuxBIOS, so you require an absolute minimum of 5 seconds worth of processed data to make the failover totally invisible to the audience.


      I'll also point out that most TV stations have glitchy images and outage, although it's usually infrequent and relatively minor. What I'm talking about, therefore, is a system that is SUPERIOR to typical commercial-grade television, although I would personally consider inferiority by design to be a deep insult to those who use the service. The system I'm proposing would be quite capable of providing a level of service that users should reasonably be able to expect from an organization with a decent budget. What I'm saying is that you can provide that level of service on a shoestring and have cash left over.


      For that matter, many TV stations use horrifically bad compression ratios, creating lines around all of the cells in the MPEG-compressed images and other artifacts that are horrible to look at. If you want quality compression and decent colour dynamics, though, your deadlines are much tighter and you have far fewer opportunities to recover from errors. On the other hand, who wants to watch a movie that looks like it was run through xv's oil-painting filter?

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  21. Depends by Ironsides · · Score: 5, Informative

    In a way you are asking two different questions here, due to the technical difficulties involved with a TV station playback. So, lets put it this way then:

    Do you require Frame Accurate playback? The reason that the profesional solutions you briefly mentioned are expensive and require their own storage are that they Garuntee frame accurate playback, no droped frames and everything else needed to playback everything flawlessly. One thing to remember about that, though. So long as you only keep the current days video on the server, you can stick with a video server with under 1/4 terrabyte of storage space (12Mbps vid+aud=~128GB) and have a seperate NAS for the next days video that just gets moved onto the video server throughout the day as what has already been played gets deleted.

    The main problem with most consumer video playback I have seen is that it is not frame accurate. Even on a decent computer, most video programs don't run at exactly the framerate of the video using consumer playback programs. Also, unlike the profesional hardware, the consumer programs don't pre-buffer the next file for playback so that there is a delay between the end of one file and the beginning of the next.

    We're also going to need to know what kind of outputs you want. Analog? What kind? SDI? HD-SDI What does your video router handle? Theoretically you could use a VGA/DVI output to a VGA/DVI-SDI adapter, if that's what you use. You'd also need to run it through a frame sync, but that's pretty standard for most stations anyway. Most likely you will not want to use the video card ouput of a PC, VGA/DVI/S-Video due to the need for then having a consumer program play it out.

    For proffesional level playout you're going to want a card with hardware playback. SkyMicro and ViewCast make some playback cards that will run under linux that it looks like you could use. I'm just listing them as an example that showed up after a quick googling. These capture/playback cards are essentially going to become the heart of your system if you want something resembling a cheap profesional system.

    So, as I said. It depends on how high end a system you want. However, it looks like it is possible to get a decent one going. One thing to remember, and I state it as habit, trial test whatever cards you are looking at before buying. Some of these cards can run to $2000 a piece and you're probably going to want redundancy.

    --
    Fly me to the moon Let me sing among those stars Let me see what spring is like On jupiter and mars
  22. Re:Easy as.. by Anonymous Coward · · Score: 2, Funny

    These are Linux commands, remember? To start the tv station program would be something like "tsain"

  23. Real broadcast software for Linux by Ziff · · Score: 5, Informative

    If you want to do it for real, take a look at the MLT project: http://mlt.sourceforge.net/
    That has support for for example the Bluefish444 SDI cards, and do playout of real broadcast formats, such as DVCPRO, but also regular MPEG formats.

    It also provides ShotCut, a really competent Non-linear editor, that can send edited clips directly to playout.

    I know it is in use in one of Indias largest broadcasters, and they transmit to millions of viewers. So it would definitely be good enough for a small station like the one you are talking about.

    1. Re:Real broadcast software for Linux by sunya · · Score: 5, Informative

      I was the project manager for MLT. I know for a fact that there are 35 playout boxes running MLT on Bluefish444 SDI hardware, and capable of handling DV, DVCPRO, MPEG-2 among other formats. Visit the http://mlt.sf.net/ site and contact us (preferably via the SF mailing list) and we can help you out. MLT was built for the express purpose of broadcast playout (I should know, I wrote the spec :) . So, to answer your question : Yes, you can. Oh, it is opensource under GPL, and it runs on Ubuntu (recommended). And it provides a complete framework to write your own media apps. I can (if I dig around for a bit) share some code for playlist management as well...

      --
      MLT - simple and robust open source multimedia framework for Linux
  24. You've got this all wrong! by giafly · · Score: 2, Funny

    You're stuck in the mindset of proprietary programming. Just publish a couple of videos under the GPL, then everyone who wants to can modify them into their own ideal TV Shows.

    --
    Reduce, reuse, cycle
  25. I designed something similar.... by tgatliff · · Score: 3, Interesting

    I designed something similar to this for their CNN Headline news division in Atlanta. The long and short of it is yes you can do it, but rollout approach is very important. For HL, the issue was the shear amount of requirment responsabilities. Everything from "if a plane crashes, do not show American Airlines commercials", to "In this special case, do this" type of thing.... It performs flawlessly, but you really need a good senior developer to pull it off...

  26. ... and its OSS..... by EmbeddedJanitor · · Score: 4, Funny
    so if some existing software does not do exactly what you want, then you can just add the functionality yourself FOR FREE!

    For instance, you could start with, say GNU/make. Now that is a pretty handy chunk of software but it sadly lacks video playing facilities. You can freely download the source code, spend a few evenings writing the video playback code you need and you're done. And it won't cost you a cent!

    --
    Engineering is the art of compromise.
  27. Re:answer Yes it been done by Anonymous Coward · · Score: 2, Informative

    See http://www.princetonservergroup.com/ Princeton Server Group

  28. Re:Just a thought... by HTH+NE1 · · Score: 3, Interesting

    Seriously, I've thought about what I'd do with a MythTV box. I've wanted it set it up to play my DVD collection according to a schedule, inserting promos for other upcoming shows between chapters and trailers for the next episode (some DVDs like The X-Files put the 10 and 30 second ads all on the last disk). Then some lower-third overlays for inserting severe weather information, caller-ID, and signaling of when someone's at the door. If I had a family, I'd get the kids involved with a camera to produce periodic news updates.

    Basically turning it into what TiVo had once advertised: controlling my own TV network.

    Unfortunately I've been happily employed on other coding tasks and haven't had the time even to put together a system for basic recording tasks let alone learn the source tree of MythTV to gauge how feasible it would be to adapt it for 24-hour scripted network control.

    --
    Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
  29. Sure you can w/ a scan converter by rhombic · · Score: 2, Informative

    Or just buy one of these. He can do his MPEG decoding in linux, output to either DVI or VGA, and use a broadcast quality scan converter like the Magni to pump out a clean NTSC signal. In YUV if he wants.

    --
    1984 was supposed to be a warning, not an instruction manual.
    1. Re:Sure you can w/ a scan converter by AKAImBatman · · Score: 4, Informative

      *sigh*

      Trans. coding. Problems.

      Just because you can sample an NTSC signal off of VGA, doesn't mean that it will produce the results you want. The equipment you linked to is designed to take a *clean* computer graphics signal, and then resample that for NTSC broadcast. Which makes it useful for stuff like the Superbowl helmets colliding, or digitally filmed/transferred television programs.

      This fellow needs to take an interlaced signal from an old tape, encode that to MPEG-2 in an interlaced format (preferrably with no detectable quality loss), then reencode the signal as an interlaced NTSC signal for broadcast. The best way to do that is to keep the signal cohesive at all three steps. If you start transcoding the signal into progressive, then back into interlaced, you're going to get a significant drop in quality.

  30. My issue wouldn't be stability by ancientt · · Score: 5, Insightful
    Shouldn't the parent have been modded funny?

    Well, I've never run Linux for "years" but I'll share my experiences.

    • I just had a server running AIX Unix up for 305 days (rebooted two days ago.)
    • I had a friend who forgot about a box running FreeBSD that stayed up for over five years. (It was in a closet, had a battery backup and just did its job as a server until people stopped needing it. Eventually it ran out of log space and didn't die but started paging somebody incessently that it needed help.)
    • I currently have two Linux servers up 248 and 337 days. Desktops with Linux usually run for about six months without a reboot. Most of those reboots aren't really necessary, just easy and to make sure that nothing has been changed that would keep it from coming up with the desired services.
    • I've never managed to really hose an ext3 filesystem.
    • I have hosed NTFS, FAT32, and UFS, but none very often and always as a result of doing something I knew was risky. (Reiser is an exception and the only one that has spontaneously fubar'd on me. I don't use it anymore, so couldn't really attest to whether that was a fluke or not.)
    • To be fair, my Windows servers usually stay up for similar periods.

    I think in the end it is about setting up any computer system to do the job it is designed for in a way that will continue until hardware wears out or power dies. Kernel patches and Security Updates are the exceptions. Windows has more critical patches but probably doesn't affect me as much as a lot of people, since I pair down my servers to not run software they don't need. For stability I usually use an enterprise system with security updates enabled which translates to almost never needing to reboot for security updates. Almost every security update is about software, not kernels in Windows, Unix, xBSD and Linux as long as you start out with a stable kernel.

    Cliff probably would be well served by whatever OS he chooses as long as it supports the choice of software well. The trick will be finding software that serves the purpose well. My approach is to see first if there is OSS that meets the need well and then to look at commercial options if not or if they offer something that offers enough service or time savers to offset the cost. I think that the question that Cliff needs to be asking isn't about the OS but rather about what OSS software is out there for specific tasks and how it compares to propritary offerings.

    --
    B) Eliminate all the stupid users. This is frowned upon by society.
  31. How about part linux? by digitalgimpus · · Score: 2, Insightful

    I'm going to be honest here...

    I'd stop looking at 1 platform solutions.

    Why not consider perhaps Linux for part of the solution? Perhaps Linux based storage system, and maybe Mac / Windows workstations.

    When you go 1 platform, no matter which, your limited. When you use standards between the platforms you gain a lot more. That's why you go with SMB over AppleShare for example.

    Don't limit yourself to a platform. Just use things that work well together. There aren't many companies that go 100% 1 platform. Especially in media.

  32. Re:In for a penny, out for a pound. by tttonyyy · · Score: 3, Interesting

    This is utterly rubbish. Many modern broadcast systems have very sophisticated and very easy to manage front ends for handling staggering numbers of encoders/muxes/routing/modulating equipment. Of course the expense comes from redundancy, so that the broadcaster has minimal off-air time if a mux or encoder fails by having software managed backups (IE spare muxes and encoders). Advertisers will get very upset if their content isn't aired correctly. So in modern systems, switching from failed equipment can be detected and done so quickly that the consumer in most cases will not notice that the switch and associated re-routing has occurred. Equipment which can do this cleanly does not come cheap.

    Anyway, back to the original question. It's not stated whether the output is analog or digital. If digital, then the transport mux and program tables and all the other DVB mandatory content has to be correctly generated. Encoding high quality complient MPEG-2 on the fly requires some pretty serious hardware support in the professional encoders, so there is no way this could be done with a PC - sure you can encode crappy quality MPEG at low resolutions, but trying to produce professional quality video that makes the most out of your bitrate really isn't going to happen (good motion compensation is non-trivial, in a "You may think it's a long way down the road to the chemist, but that's just peanuts to quality motion compensation!" kind of way).

    Of course, you can encode offline and store the transport streams on disk, but then when you mux the output with all the other DVB content, you've got to have consistent GOP structures, PCRs (Program Clock References), presentation time stamps, time codes etc, which is immensely difficult to achieve, especially if you're planning on splicing in adverts and other content (hint - this is one reason why satellite and cable broadcasters encode live from SDI inputs).

    If you're trying to replace a tape archive (rather than "Run a TV Station on Linux" - which is a whole lot more, as discussed above), then perhaps you can MPEG encode the videos offline with a good quality software encoder and play it back raw (SDI/YUV) to the head-end bits that do the final encoding/modulating, but even then, getting it all synchronised correctly is likely to be non-trivial (you can't just produce your SDI frames willy-nilly you know - it's got to be synced to the rest of the station, just like the original tape system must have been - possibly off a "black and burst" generator).

    Really, I think you're in for a very tough time trying to do this with Linux and OSS, unless you're willing to accept very low quality results that might not integrate with a professional broadcast system.

    But, good luck nonetheless. :)

    --
    biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
  33. Mmm... not really what you want to do. by Ayanami+Rei · · Score: 2, Informative

    The whole "accidentally switching over with your mouse" thing is a real problem that needs to be directly addressed.

    This is what you need:

    *) At least one seperate video card monitor output per video channel (Matrox Gxxx, NVidia MVS 440)
    *) A decent scan-line converter to convert and interlace the VGA into NTSC (one per sim. channel)
    *) Ideally, a programmable, matrixed video switch.

    With a decent 3U server you can stuff in a few PCI or PCIe cards and handle 4-7 channels simultaneously on one box without framedrops.

    You're going to need to fiddle with your X configuration until you (at least) have a seperate screen per monitor. Disable your core pointer and input handling on the non-console X servers. Make sure to set the vertical frequency to 59.94 Hz so that you don't get flicker or tearing. Set the backdrop of each screen using xsri/xsetroot to an image to the effect of "Technical Difficulties, Please Wait" in case a playback program crashes or fails to launch.

    Then what you do is manually launch fullscreen versions of (mplayer, vlc, whatever) in response to program events on an 'open' screen. Then you switch the matrix so that the VGA channel you just started a new video stream on, and send that to the scan-converter (and the rest of the broadcast stack).

    You could (automatically, manually) script of all of this. I could imagine a cron job that wakes up at 15 second intervals to parse a configuration file that sort of encodes the days schedule -- starttimes, running times, intro padding time, which output channel to direct the matrix switch to, filenames or pointers to directories containing ad segments of various lengths, whatever.
    You purposefully allow playback overlap, at which point the script would just allocate a new video channel to run the new video in, and issue a matrix switch so the video looks like it just cuts from one segment to the next at the appropriate time. When the running time is reached (or the player exits at the end of playback), it "reclaims" the channel so new videos can be run there.
    You can manually assign input and output channel numbers instead of worrying about having the script keep track (or get the schedule entry app to do it for you).

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  34. DTV, HD radio, forced tech adoption and choice by Frank+T.+Lofaro+Jr. · · Score: 2, Interesting

    Yup the FCC forcing technologies down the public's throat. DTV takes TV from the poor. (No) Thanks, Michael Powell.

    And HD radio, gets you more quality (signal quality, not content quality alas, the current signals sound fine, except the music is sorry), but if they hadn't approved it, and allowed more stations, we'd have more choice.

    Tuners couldn't handle stations less that 3 slots apart. If 97.1 is a station, 97.3 and 97.5 couldn't be and 97.7 would be the next open one. Then it was down to 2 slots. 97.1 and 97.5 are both stations serving Vegas (97.5's transmitter is in Mesquite, but it obviously targets the Vegas market - their callsign is KVEG - you'd only know they are in Mesquite by the full station IDs on the hour). We could get it down to every slot and have a 97.3 FM. But with HD radio using the bandwidth, that'll never happen.

    I'd rather have double the stations than double the bandwidth. As would most everyone except hard-core audiophiles who probably still have tube radios. :)

    --
    Just because it CAN be done, doesn't mean it should!
  35. Re:Just a thought... YOU CAN DO IT! (well, kinda) by tonsofpcs · · Score: 2, Insightful

    Actually, what if you use two copies of VLC, have one set up in web interface mode just to feed a stream to another that plays it out to video. This allows you to change the playlist on the fly and do rudimentary switching.

    Note that you should have some sort of live switcher for master control upstream of the server, with a camera pointed at a logo (and possibly a live set) for backup.