Slashdot Mirror


Mplayer Adds Sorenson v3 To the Linux Roster

prmths writes "mplayer now plays sorenson V3! This is the last major format that was unplayable under linux and it has now been conquered! They also added the 2xsai algorithm for video scaling. This will let you increase the resolution of non-photo-like videos (anime/cartoons) by 2 times -- it's not a blurring algorithm -- 2xsai actually guesses edges and fills in the pixels."

56 of 259 comments (clear)

  1. Let the slogans begin... by kafka93 · · Score: 4, Funny

    "I'm 2xSaI for my shorts"?

    Doh!

  2. Well it can *almost* play sorenson! by Ed_Moyse · · Score: 5, Informative
    From the page:
    Oops... We did it again :) So you can play your favourite brand-new quicktime movie trailers with mplayer! Oops... you cannot yet... at least the code is working, and was uploaded to CVS, but it needs some hacking to get it work... (not so bad, you need some DLLs from QT5 player and sdk, and libwine from wine-20020310 and some config.h editing) - okay, we'll work on getting this more user-friendly... :) so be patient, it'll be available in next (pre)release for sure!
    1. Re:Well it can *almost* play sorenson! by grub · · Score: 4, Funny


      Someone at mplayerhq must have pissed off a /. high-up pretty bad to garner a double slashdotting. This one for the announcement, a future one for the release.

      --
      Trolling is a art,
    2. Re:Well it can *almost* play sorenson! by Anonymous Coward · · Score: 3, Funny

      Nonsense. Slashdot is a professional online news site, so everything posted here has been fact-checked. Next you'll be telling us that Stephen King isn't dead.

    3. Re:Well it can *almost* play sorenson! by jmo_jon · · Score: 3, Funny

      we'll work on getting this more user-friendly.

      user-friendly? That ought to be quick for them, just another RTFM remark in the FAQ and a short line the the manual and it'll be done. Or has the attitude changed since i last checked?

    4. Re:Well it can *almost* play sorenson! by mastropiero · · Score: 3, Funny

      At least we can see cool development going on. It probably wont be long before it is usable, anyway.

      On the other hand I would have preferred having a little less misleading story, I almost got up and danced in front of my friends while singing "there u go b*tches, linux is l337!".

      But of course, this is /.

    5. Re:Well it can *almost* play sorenson! by Jugalator · · Score: 4, Funny

      From the style of that quote, it looked like it came from someone having got waaay too much coffee...

      --
      Beware: In C++, your friends can see your privates!
    6. Re:Well it can *almost* play sorenson! by 13Echo · · Score: 5, Informative

      Extract the codec pack to the specified directory. I think that it is something like "/usr/lib/Win32" or something like that.

      Download the MPlayer source from the MPlayer homepage.

      ./configure --enable-gui (optional)
      make
      make install (as root)

      Is that different than any other program that you compile yourself? It has a makefile, and it works perfectly. The only thing that you need to know is your video output, which is usually XV for nVidia and other cards like PowerVR Kyro products.

      Executing MPlayer is pretty simple

      mplayer -vo xv -ao sdl *filename*

      You can also add the -vo and -ao formats to the config file, so you never have to enter them. This is all that the documentation really covers. It is the difficult part. The video output method varies depending on your videocard, but XV is the most common.

    7. Re:Well it can *almost* play sorenson! by jandrese · · Score: 3, Informative

      Usually (in my experiance), Mplayer will automatically select the best audio and video out when it's started for the first time (usually Xv and oss (but I'm running FreeBSD). I've never had to specify the vo and ao manually.

      --

      I read the internet for the articles.
  3. w00t! by 0xdeadbeef · · Score: 5, Funny

    But mommy, why do they hurt Tux like that?

    1. Re:w00t! by RAMMS+EIN · · Score: 3, Funny

      That's because they use win32 codecs. Obviously, it hurts Tux to have to run M$ code.

      --
      Please correct me if I got my facts wrong.
    2. Re:w00t! by pc486 · · Score: 5, Informative

      That's an insider joke by the MPlayer developers. One time a developer messed up the CVS and the punishment was to drink ten liters of coke :-). You'll see this all over the mailing lists and the CVS logs as 10l coke or sometimes 1000l coke.

  4. Advancemame by kafka93 · · Score: 5, Informative

    Advancemame, linked from this story for the Scale2x description, is a fine piece of software, and currently employed in my MAME cabinet. It's ironic, though: for my money, the scale effect really ruins the look of many arcade games, and particularly of things like pacman. While so many gamers are obsessed with getting the most out of their video cards, those interested in emulation often want the very opposite...

    It's still cool voodoo, of course.

    1. Re:Advancemame by gl4ss · · Score: 4, Interesting

      the different guessing/blurring algo's are quite well represented in many emu's.

      some games look crap on some algos, while others look great.. depending on games style, and lots of other things, like what it looked on the arcade machine. those old monitors have a feel and look to the picture too..

      btw, is sai2x basically 'eagle'?

      --
      world was created 5 seconds before this post as it is.
  5. times two! by Alsee · · Score: 4, Funny

    2xsai actually guesses edges and fills in the pixels

    and an MP3 player that doubles the number of notes in a song by guessing and filling them in! :)

    -

    --
    - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    1. Re:times two! by Sycraft-fu · · Score: 3, Insightful

      Actually similar types of things are done for audio resampling. You use different algorithms to guess at what the new samples should be. It sounds much better than just duplicating the old data.

      Actually it's much more akin to the texture anti-aliasing done by graphics cards, but still.

  6. Re:Does this mean .mov? by tjansen · · Score: 4, Informative

    No, it means those .movs encoded with Sorenson v3. Including all newer trailers on Apple.com.

  7. Sweet! I was waiting for this! by 13Echo · · Score: 5, Informative

    This rocks! Now I can play those Harry Potter 2 trailers for my girlfriend. The interesting thing is that I just downloaded Pre-10 last night, hoping that this codec was complete. Unfortunately, it wasn't. But the guys at MPlayer cracked the code. You rock! Thanks for making the best video player for UNIX/Linux. No thanks to Apple for being a royal pain in the butt when it comes to their video format.

    Speaking of MPlayer, has anyone tried this? It is a plugin for Mozilla that uses XV overlays and MPlayer to show movies in Mozilla. I'd imagine that it works with plugin compatible apps like Opera also. I haven't tried it yet. Can anyone offer their opinions? I am looking forward to a time when I can finally play those annoying streaming WMV videos in my browser, without having to fight with some ASX file that redirects.

  8. Whats NOT supported now? by iamsure · · Score: 4, Interesting

    Okay, its not clear from the site, what file formats remain unsupported/unplayable?

  9. "Needs some DLL's from QT5"? by Second_Derivative · · Score: 3, Interesting

    Clearly not a codec implementation then, or not a full one. Besides, Sorenson will sue them into oblivion when/if they do get it working.

    1. Re:"Needs some DLL's from QT5"? by IamTheRealMike · · Score: 3, Interesting
      Clearly not a codec implementation then, or not a full one

      I have no idea whether it is or isn't, but one possibility is that's a codec implementation but requires some data tables which cannot legally be copied. The codecs for older sorensen versions had this problem, to decode them you needed large tables of numbers which were of course copyrighted.

      Besides, Sorenson will sue them into oblivion when/if they do get it working.

      Nah. Why should they? Have you actually used MPlayer? It's a command line client, with famously dodgy internals (ie the code probably can't be easily reused). It doesn't pose them any threat. Anyway, who would they sue? It's not like you can just pick a random developer and send them a letter from your lawyers.

    2. Re:"Needs some DLL's from QT5"? by J.+Random+Software · · Score: 3, Informative

      IANAL but I'm not this poorly informed. Copyrights and patents can indeed be enforced selectively. Generally estoppel and laches prevent you from suing over infringements long past, but as soon as you tell an infringer to stop, they're liable for damages over any infringement from that point forward. (Before the Berne Convention you could lose a copyright by acquiescing to publicatation without a copyright notice, but that was decades ago.)

      Trademarks, however, can be lost by nonenforcement. I'm not sure why; maybe because they can be renewed forever (though it looks like copyrights will be too) or were considered a larger imposition on the rest of the market.

      Reverse engineering isn't affected by copyright unless you create a derived work in the process (rather than learning the algorithm, which can't be copyrighted, and then implementing it yourself). The (hopefully unconstitutional) DMCA prohibits offering circumvention tools, but in that case it doesn't matter whether you created the tool by reverse engineering.

  10. The *real* 2xSaI site by Mitchell+Mebane · · Score: 4, Informative

    The *real* homepage of the 2xSaI algorithm is:

    Kreed's Homepage: 2xSaI : The advanced 2x Scale and Interpolation engine

    It is totally different for Scale2x, which is the link that was given. 2xSaI was orignally developed by Kreed (a.k.a. Derek Liauw) for the SNES9x Super Nintendo emulator. Oh, and technically, it IS a blurring algorithm, just a smart one.

    You can find lots of info here and here.

    --

    The roots of education are bitter, but the fruit is sweet.
    --Aristotle
    1. Re:The *real* 2xSaI site by Mitchell+Mebane · · Score: 5, Informative

      Huh? For some reason my first link messed up... anyways:

      Kreed's Homepage: 2xSaI : The advanced 2x Scale and Interpolation engine

      --

      The roots of education are bitter, but the fruit is sweet.
      --Aristotle
  11. Re:browser plugins? by 13Echo · · Score: 3, Informative

    http://www.webfreetv.com/linux/

    I haven't tried this plugin yet, but I noticed it last night. Perhaps someone here can tell us about their experiences with it?

  12. Re:Sweet! I was waiting for this! by momobaxter · · Score: 3, Informative

    Actually apple doesn't own the Sorenson(spelling) codec. That's from the company named the exact same as the codec. Apple owns quicktime which is just a container.

    --
    "Full sources for linux currently runs to about 200kB compressed" --Linus Torvalds 31-Jan-1992
  13. There isn't much. by 13Echo · · Score: 5, Informative

    As far as I can tell, this was the last major codec that didn't work. Well, it kinda worked before, but sound was unplayable. As of yet though, I've not come across any other file that didn't play.

    Here is a codec status page: http://www.mplayerhq.hu/DOCS/codecs-status.html. It is updated frequently.

    If you get MPlayer, the codec pack, and configure it for XV video output and SDL audio output on a properly accellerated system, the playback produces virtually no CPU load. It is an incredible program. I really like the fact that the GUI is completely optional, and you can just use keypresses to manipulate movie playback.

  14. Some subtle corrections by benploni · · Score: 4, Interesting

    The scaling is 2x in each dimension, so it makes it 4x bigger. Oh, and 2xsai works best on images with clearly defined edges, like arcade games and anime. PLain old movies wont get as much benefit, and some will get worsened artifacting.

  15. Re:browser plugins? by Covener · · Score: 3, Informative

    Plugger is mplayer aware.

  16. Re:browser plugins? by Anonymous Coward · · Score: 3, Informative

    Works fine with plugger, just edit it into /etc/pluggerrc and it plays just fine.

  17. Except that the Qt5 GUI sucks ass... by brunes69 · · Score: 4, Informative

    ..and is horribly slow under WINE. Not to mention mplayer works in console as well as X, and anything that works with mplayer also works in mencoder.. so guess what, Sorenson -> DivX is now very simple and straightforward.

  18. Re:Sweet! I was waiting for this! by spotter · · Score: 5, Informative
    But the guys at MPlayer cracked the code

    Not really (at least IMHO) they figured out how to make use of the original DLLs. You will still need the DLL's from a QuickTime 5 installation (as well as wine acc. to the description). This is not reverse engineering the codec, just figuring out how spit encoded frames to the dll and understand the decoded frames it spits back. What was done with the previous sorenson codecs (of actually figuring out how to decode) was much more impressive (at least to me).

    They already use the "use dlls" methods for real codecs, except in that case they have the real linux .so's to use.

  19. Thanks for the info. by 13Echo · · Score: 5, Informative

    I didn't know that it existed. Here's a link that I found

    http://fredrik.hubbe.net/plugger.html

    Says that it works with Opera, so it has my attention. Does it work with streaming of WMV files?

  20. Crossover by Shade,+The · · Score: 3, Interesting

    Crossover does a lot more than just play Quicktime stuff. Flash, Realplayer, Trillian and all sorts of other plugins are included too.

  21. Improving Scale2x? by mr3038 · · Score: 4, Interesting
    The screenshots of Scale2x look really promising. Looking at two last examples makes me wonder if the same algorithm could be used for pretty much any texture map to get higher quality output from games. Because algorithm needs only a few neighbor pixels to decide correct value for the output pixel it could be implemented in the rendering hardware pretty easily. Using this method with compressed textures should allow pretty nice texturing without using that much memory.

    Also, by looking the algorithm on the page it seems to me that this algorithm decides which pixel value to use from left and right only. Running the result through a sligthly modified algorithm could perhaps provide 4x scaling with pretty nice image quality. Simple rotate the table with letters from A to I 90 degrees clock-wise and you should get an algorithm which selects best pixel value from above or below. It might be possible to join those algorithms for a single pass one but I'm afraid the result needs that many conditional jumps that it isn't usable for real time processing. Plus you usually don't need 4x scaling for video.

    Scaling animated movie 4x with this algorithm and outputting it through hardware scaler to reduce pixel boundaries should provide pretty nice video quality...

    --
    _________________________
    Spelling and grammar mistakes left as an exercise for the reader.
  22. How I install mplayer by brunes69 · · Score: 5, Informative


    echo "http://mplayer.nmeos.net/ unstable main" >> /etc/apt/sources.list

    apt-get install mplayer-686
    apt-get install mencoder-686

    1. Re:How I install mplayer by ivan256 · · Score: 5, Informative

      Just so you don't confuse the newbies, I'm sure what you meant to say was

      echo "deb http://mplayer.nmeos.net/ unstable main" >> /etc/apt/sources.list"

      apt-get update
      apt-get install mplayer-686
      apt-get install mencoder-686

      At least that's what you say if you wanted it to work...

  23. 2xsai vs. Eagle by yerricde · · Score: 3, Informative

    is sai2x basically 'eagle'?

    Eagle and Kreed's 2xSaI are based on different algorithms. The "Super Eagle" and "Super 2xSaI" filters by Kreed are combinations of the techniques of Eagle and 2xSaI.

    --
    Will I retire or break 10K?
    1. Re:2xsai vs. Eagle by Mitchell+Mebane · · Score: 3, Informative

      We had a very lengthy discussion on various smoothing engines over at the zSNES board a while back, you can read that thread here.

      --

      The roots of education are bitter, but the fruit is sweet.
      --Aristotle
  24. Weak - it's closed source by pyite69 · · Score: 3, Flamebait


    This will never be an acceptable solution until
    distributions can support it out of the box.
    That will require actually figuring out the
    file format instead of just hacking in some
    DLL's.

    You are probably violating Apple's license by
    doing this anyway.

    1. Re:Weak - it's closed source by Anonymous Coward · · Score: 5, Informative

      Why? We're doing the same as every windows app supporting the quicktime format/codecs. We're using their plugins, via their SDK. Teh only difference is that the app is native linux app, while teh DLL's are windows one, and we're using libwine to connect them. It doesn't chaneg the legal status,imho.

      A'rpi

    2. Re:Weak - it's closed source by Nevyn · · Score: 3, Informative
      This will never be an acceptable solution until distributions can support it out of the box.

      I agree with this, but due to the patenting of QT5 even if someone reverse engineered the format and wrote a decoder in C it wouldn't be supportable by US based Linux distributions anytime this decade.

      So, in a very real way this is as good as it's going to get anytime soon.

      --
      ustr: Managed string API with ave. 44% overhead over strdup(), for 0-20B
  25. Re:Soon... by IamTheRealMike · · Score: 3, Informative
    Still, what does this mean for the folks who made the Crossover plugin program?

    Not much really. CrossOver plugin is useful for stuff other than the QuickTime plugin, although i'd guess that's what drives sales as most other plugins of any popularity have Linux versions available (glares at apple). Plugin is an interesting side line they have, but the real product is CX Office, which as a general wine distro is very popular.

  26. Re:What IP? Re:How I install mplayer by Karrots · · Score: 4, Informative

    Here is where his packages are now.

    http://marillat.free.fr/

  27. Not the first... by Fluffy+the+Cat · · Score: 5, Insightful

    This is the last major format that was unplayable under linux and it has now been conquered!

    Codeweavers have been willing to sell you a product that allows Quicktime playback for ages. The only real advantages the new mplayer code offers are it being integrated into a more generic media player, and it being free as in beer. You're still stuffed on non-x86 platforms.

  28. Not how copyright works by TrentC · · Score: 5, Informative

    Well. If you don't defend your copyright. You loose it. If someone gets to reverse engineer your code and you let them. Everyone can.

    I never thought I'd be the one to complain about "crack-smoking moderators" but the above statement is completely untrue.

    It is true that you have to vigorously defend your trademark lest it fall into common usage (see "Q-Tip" vs. "cotton swab", "Xerox" vs. "photocopy", et al.) but the same does not apply to copyrights. (To be fair,

    And reverse-engineering has nothing to do with copyrights, that's a patent issue. Barring any patent infringements, I am perfectly within my rights to create source code that produces an identical effect or product as yours, so long as I don't actually use any of your code in my proejct.

    You can attempt to distribute copyright source code under a license that says "you shalll not attempt to reverse-engineer this software" but that's a whole 'nother ball of wax...

    Jay (=

  29. Not truly compatible. by vegetablespork · · Score: 5, Funny
    When I play a Sorenson video with mplayer, it fails to present me with a dialog admonishing me to "Get Quicktime Pro Now!"

    Will this bug be fixed in a later release?

    --

    Call (206) 338-5780 COLLECT for information about a genuine BA, BS, MA, MS, MBA, or Ph.D.

  30. Hmmm... You know, you have a good point. by 13Echo · · Score: 4, Interesting

    This means that those trailers can be played full-screen now. Never thought about that one. I always hated how you had to upgrade Quicktime to get that feature. Is it still the case? If so, not on Linux. ;)

  31. Re:What IP? Re:How I install mplayer by F.O.Dobbs · · Score: 4, Informative

    Don't you mean

    echo "deb http://mplayer.nmeos.net/ unstable main" >> /etc/apt/sources.list

    but since that doesn't seem to work anymore, try

    echo "deb http://marillat.free.fr/ unstable main" >> /etc/apt/sources.list

    F.O.Dobbs

  32. Re:Sweet! I was waiting for this! by Anonymous Coward · · Score: 3, Informative

    Of couse we like rev,. engineered codecs more...
    BUT:
    - it's way too much work
    - legal problems (it's illegal to crack the dll, but it isn't illegal to use them as-is)
    - you have to rev.eng. every single codecs, and there are so many... so it's even more work.
    + rev.eng'd codecs can eb optimized to hell (so can be faster than DLL)
    + rev.eng'd codecs run on non-x86 platforms too

    so, if you did it for any codecs, feel free to send me or to the ffmpeg team the source and we'll include it in the next mplayer release.

    sorry, we have no time to crack the 600kB DLL containing the svq3 decoder, and the 4MB DLL containing qdmc/qdm2 audio and all the others...
    (anyway it will be done sooner or later, as happened to cinepak, svq1, divx3/msmpeg4/wmv1, wma and to all the others)

    A'rpi

  33. Re:AA by Per+Wigren · · Score: 3, Informative

    No..

    AA is for making a smooth bitmap from an outline.
    2xSai is more like making an outline from a bitmap.

    Original:


    #
    #
    #


    Scaled:

    ##
    ##
    ##
    ##
    ##
    ##


    2xSai:


    ##
    ##
    ##
    ##
    ##

    --
    My other account has a 3-digit UID.
  34. 2x is a start by dh003i · · Score: 3, Informative

    Well, its a start, recognizing he edges in simple images.

    Yes, this only works well for relatively simple images -- you won't be able to zoom in on complex images with edge-retention.

    But at least its a start. The way to go about these things is to try to figure out how people can look at a wallet-sized picture and turn it into a poster without introducing blurs or pixelation. Yes, our eyes can see at a very high level of resolution, but we're not capable of consciously discerning the entirity of that resolution in a conscious manner.

    We are, in short, capable of recognizing (in a portrait) where the person's head ends, what lines define their eyes, nose, ears, hair, etc. We're also able to recognize what gradiated things (such as the increasing darkness as you approach the side of the face) should remain smooth and continuous. The idea is to allow computers to also recognize that, thus expand a wallet-sized picture into something the size of the entire screen.

    Obviously, you can't add detail where it wasn't present before. If the picture is too small to make out the freckles on the girl's face, they won't show up in the magnification. But you can at least have a realistic blow-up function.

  35. Re:why is that informative? by blakestah · · Score: 3, Interesting

    It is informative b/c it provides a non-standard archive for a rapidly changing package, mplayer.

    However, I prefer
    deb http://marillat.free.fr/ unstable main
    for mplayer et al (MANY MANY multimedia packages there).

    You will learn, if you ever use Debian, that it rocks in a way other distros do not, and that you should start by wiping RedHat, SuSE, Mandrake, or whatever off your boxen and keep it real. Install Debian across the net with a single floppy. Any aggros trolling of people using other distros is purely intentional.

  36. Re:browser plugins? by Fluffy+the+Cat · · Score: 3, Informative

    What is the big deal with plugins ?

    Displaying the file within the browser. Plugins allow various types of media to be embedded within a page, rather than having a separate window for each file.

  37. Actual 2xsai link by mdw2 · · Score: 3, Informative

    the link to 2xsai is here at http://elektron.its.tudelft.nl/~dalikifa/. the link provided in the article is to Scale2x. The page even says at the top "Instead, this effect is pretty different from the SuperEagle, 2xSaI, Super2xSaI effects "

    --
    This sig intentionally left blank.
  38. ROCK by Chris+Johnson · · Score: 4, Interesting
    This is great. Not so much the Sorenson (though it does make me wonder- does that mean I could use the (older) Sorenson I have available, as an output format? I had more or less given up on ever using it seriously because I figured it was only Mac and some Windows and not accessible under Linux.)

    What I mean is, the 2Xsai stuff (under whatever name) is great. I looked at two different pages of screenshots and was blown away- it was literally like redrafting the images to make them more appealing. That's very exciting.

    Not only that- I've been flirting with the idea of doing some animations- not computer, but line art animations. I have only a simple 640x480 webcam for shooting the results, which would then be roughly NTSC resolution... LINE ART. See where I'm going with this? ANYTHING I could do with line art or even shading/crosshatching would be perfectly suited to being scaled with 2Xsai/Scale2X.

    Which is GPLed under either name, so the exact name and source isn't that important. This one is OURS. And I find that incredibly exciting. I do the same thing- I've written digital audio wordlength reduction routines that are the best in the world by some yardsticks and among the best in the world by any standard, and I made them GPLed as well. The tools are falling into place- one person doesn't have to do it all by themselves, we can help each other, and it's getting to the point where in one area after another, the hottest tricks are covered under the GPL and available.

    This is the way to do it. It's exciting to see it happening. And you bet I'm going to be coding up some sort of hack to try 2Xsai on scanned/cammed line-art. The coolest thing is that it will work just as well on any color depth, so long as you want to bring out cel-shadey effects and line edges. This is great, great stuff :)

    High fives to ALL the people who've originated, inspired, and worked on this family of scaling algorithms- and BIG THANKS from someone who will be using it to do neat stuff that maybe you hadn't even anticipated. Because you might not have known there was somebody interested in drawing line art, shooting it with a limited-res camera and scaling it up while preserving the line-artiness of it. But you've just made it possible for anyone filming hand-drawn cels at 640x480 to upscale their footage to 1280x960... which, after just a bit of letterboxing, becomes HDTV standard 1280x720. Hell, digital cinema is only 1280x1024...

    See why this is very exciting? You have a webcam-to-Feature-Film scaling algorithm there. In the event that you had such great cels that you really needed to get professional color density rather than crappy webcam color density, you can STILL do this through a simple webcam by taking multiple shots (say, 10 if you're anal) and AVERAGING them together. That completely deals with the color density problem- introduce slight lighting shifts if you want to get fancy with it. At that point it's only resolution- except, surprise! If you're working with line-art or cels, it's not! Bam, instant film/HDTV resolution output for ANYBODY.

    Sorry for getting so relentlessly technical, but this is VERY exciting and has huge, huge implications AND it's all happening under the GPL. Excuse me for suggesting that we are kicking ass. Rock on :)