Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Could I Run a TV Station on Linux? 321

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?"
This discussion has been archived. No new comments can be posted.

Could I Run a TV Station on Linux?

Comments Filter:
  • Internet TV!!! (Score:3, Interesting)

    by KallosEsq ( 1009785 ) on Thursday October 05, 2006 @03:03PM (#16325891) Homepage
    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 [albany.edu] 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 [albany.edu]

    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.
  • FOSS Signal (Score:1, Interesting)

    by Anonymous Coward on Thursday October 05, 2006 @03:13PM (#16326051)
    Agreed. That's why I asked if it using FOSS+Hardware+Labour was really going to be economically viable compared to proprietary solutions. I like FOSS as much as the next geek. But when talking about vertical applications like running a TV station (even an LPTV). FOSS comes up short. Maybe in the future, but not now.
  • by eno2001 ( 527078 ) on Thursday October 05, 2006 @03:16PM (#16326103) Homepage Journal
    ...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)
  • Re:Yes (Score:3, Interesting)

    by Rohan427 ( 521859 ) on Thursday October 05, 2006 @03:21PM (#16326211)
    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
  • by general scruff ( 938598 ) on Thursday October 05, 2006 @03:33PM (#16326397) Journal
    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!
  • Re:Video Lan Project (Score:5, Interesting)

    by aonaran ( 15651 ) on Thursday October 05, 2006 @03:34PM (#16326405) Homepage
    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)

  • by tgatliff ( 311583 ) on Thursday October 05, 2006 @03:38PM (#16326463)
    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...

  • Re:Just a thought... (Score:4, Interesting)

    by HTH NE1 ( 675604 ) on Thursday October 05, 2006 @03:54PM (#16326683)
    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.
  • by tttonyyy ( 726776 ) on Thursday October 05, 2006 @04:36PM (#16327363) Homepage Journal
    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. :)
  • Re:Of course you can (Score:2, Interesting)

    by IWannaBeAnAC ( 653701 ) on Thursday October 05, 2006 @04:43PM (#16327463)
    Was it a typo? That is the $64 million question...
  • by jd ( 1658 ) <imipak@yahoGINSBERGo.com minus poet> on Thursday October 05, 2006 @05:41PM (#16328405) Homepage Journal
    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?

  • by Frank T. Lofaro Jr. ( 142215 ) on Thursday October 05, 2006 @08:32PM (#16330551) Homepage
    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. :)

If you want to put yourself on the map, publish your own map.

Working...