88 Comments
- wwwdot1jesdotus, on 10/11/2007, -4/+124Step 1. Copy
Step 2. Paste - gr3yn3t, on 10/11/2007, -2/+81and in other news...
$29.99 shareware versions of media players storm download.com. - Jonny0stars, on 10/11/2007, -2/+691. Make Video Player
2. Offer fullscreen support in "pro"
3. Profit! - HunterTV, on 10/11/2007, -3/+5310 OPEN video_stream FROM video.avi
20 READ packet FROM video_stream INTO frame
30 IF frame NOT COMPLETE GOTO 20
40 DO SOMETHING WITH frame
50 GOTO 20
I'm impressed! - inactive, on 10/11/2007, -28/+72gxc...you are he only one then. Even the Apple Fanboys that make up the Digg userbase know what a flaming pile of dog ***** Quicktime is.
- ThrobbingBrain, on 10/11/2007, -2/+34LOUD NOISES!!!!!!!!!!!!!!!
- MadNuke, on 10/11/2007, -1/+25How to write 'a video player' in ONE line of code:
print "a video player";
I'm not funny =/ - Phil246, on 10/11/2007, -2/+24Is it really < 1000 lines of code if you use external libraries?
Sure you didnt write the libraries yourself but they do a lot of the work for you.
its like saying you can write a vb application that can play video in < 100 lines by embedding a wmp object in the form.
You can do it and claim that you didnt write many lines of code if you wanted, and you would be right but it is still dishonest to suggest that its all your own work - c0re1337, on 10/11/2007, -2/+23What the ***** are you babbling about?
- TheReport, on 10/11/2007, -0/+20"Quicktime is an advertisement for quicktime pro
Quicktime pro is a fairly nice media player (though for $something in the twenties its bang/buck is debatable)
Bliss is only a serial number away..."
Yeah and the serial number for Quicktime Pro is probably the easiest number to get from any app on the Mac Platform. In fact its as easy as going to Google and typing in Quickti......*falls over and dies by posionous dart to the neck* - rdoger6424, on 10/11/2007, -3/+22Quicktime is an advertisement for quicktime pro
Quicktime pro is a fairly nice media player (though for $something in the twenties its bang/buck is debatable)
Bliss is only a serial number away... - macgyber, on 10/11/2007, -2/+21More intergrated? You install it and play your movies, how could it be more intergrated?
VLC player is fantastic on all platforms and espcially on os x with its full screen controls. I wonder why that is the only platform to have that intergrated actually... - ricksite, on 10/11/2007, -0/+18I remember writing a program like that to watch video on my Commodore VIC20.
- sporb, on 10/11/2007, -4/+21quicktime alternative!
- 15charmaxwtf, on 10/11/2007, -6/+22Well if its so ***** high quality they could have given it a nice UI to complement it and not made people download timewasting plugins.
- macgyber, on 10/11/2007, -1/+14If you actually used your brain, you'd realize that there was some simple nostalgia in his comment and you have no sense of it. (in this context at least :P)
- 15charmaxwtf, on 10/11/2007, -1/+13Lighten up Rossimo :P
- ricksite, on 10/11/2007, -0/+9thebru, he probably did copy and paste but I like to think he typed it in manually, old school style.
- inactive, on 10/11/2007, -5/+12Do you even read the frontpage? The user comments in any Microsoft or Apple story? Are you ***** blind?
- thefezman, on 10/11/2007, -1/+8At some point you have to use external libraries... I mean are you going to do the codec decompression manually? Anyways if you truly want to be 1337 it should be done in 100% ASM :D
/At least the guy didn't use directshow. I HATE directshow (yet I deal with it every damn day at work). - illuminatedwax, on 10/11/2007, -0/+6Because it's a tutorial. It's not there to teach you proper error handling, it's there to teach you how to use the API.
- macgyber, on 10/11/2007, -0/+6He must work in a loud environment. You know, when you're in a loud room and you find yourself shouting over the phone so the other person can hear.
- krinn, on 10/11/2007, -1/+7That's already happened...
http://www.jbkempf.com/blog/post/2007/03/29/Yet-another-time-copyrights-GPL-infringements-and-phishing
Coming soon... The 100% free video player with spyware! Download now!!! - antechinus, on 10/11/2007, -0/+5It is not what I would call blog spam.
It is a very well written article, which puts it way past the comprehension level most DiggMorons/Apple Fanbois normally need in order to understand the "10 Ways to unbox your new iTurd" type blog spam articles that are usually designed for their demographic. - cyberpope, on 10/11/2007, -0/+5@darkhero
Obviously this is a move on Apple's part to get people to stop using Vista. - Solstice, on 10/11/2007, -0/+5You can do it way easier on the Mac using InterfaceBuilder and QTKit. Just create a controller class with a QTMovieView ivar, call setControllerVisible:YES, add a couple of lines to handle the open dialog. Then, create a window in IB, add a custom view of type QTMovieView to the window. Wire the QTMovieView to controller class's ivar. There, you've got a video player in probably less than 50 lines of code.
- rac3r5, on 10/11/2007, -0/+4Does anyone here know a good tutorial on how to write a codec (video and audio)? What is involved in writing a codec etc..
I have a background in Digital Communication techniques (matched filtering, DFT, etc) from school and can program in C. I even took a multimedia course in uni, but unfortunately that was all theoretical. - thebru, on 10/11/2007, -1/+5He did read the article, then copy and paste from it!
- blamar, on 10/11/2007, -0/+4Am I the only one who looked at the first page of this tutorial and saw how horrible the code is? I mean, common...
------------
// Open video file
if(av_open_input_file(&pFormatCtx, argv[1], NULL, 0, NULL)!=0)
return -1; // Couldn't open file
------------
av_open_input_file RETURNS A VALUE FOR A REASON. Why on earth would you want to always return -1 when a non-zero response is gotten. Is it that hard to declare a temp variable and return the actual error? - airmann90, on 10/11/2007, -2/+61.5) ????
- antechinus, on 10/11/2007, -0/+4Fer *****'s sake man. What is 'horrible' about returning a blanket failure code in a programming tutorial? There is nothing bad about the coding style, it is pretty typical C idiom.
You have probably heard the old saying... "Those who can, do. Those who can't become critics or teach". - illuminatedwax, on 10/11/2007, -1/+4Yeah, but you haven't learned a damned thing about what you're doing.
- scuba7183, on 10/11/2007, -1/+4VLC ftw
- rdoger6424, on 10/11/2007, -0/+3@reply button
Ah, but you're not making yourself known to eugene2x - Narwaffle, on 10/11/2007, -0/+3// I did it in 9 (including spaces). *Sniggers*
#include
int main()
{
printf("A video player");
scanf("*");
return 0;
}
// Digg apparently hates C++, which explains the lack of cstdio. - illuminatedwax, on 10/11/2007, -0/+2The point is that you can deal with video files transparently, without mucking about with codecs etc.
- idonthack, on 10/11/2007, -0/+2All libraries do is simplify interactions with the operating system. The OS won't be able to use libraries until it gets into a state where the libraries can call its functions, and by then you're done.
- Dotcommer, on 10/11/2007, -0/+2H.264 Compression is so much ***** better than any other compression format there is just no comparison, and you ***** need to learn about it. It figures the average user doesn't know anything about this because they dont work in film and video as a career and thus have no knowledge of anything like this. They just know what "mainstream" blurbs out from retards.
- darkhero, on 10/11/2007, -1/+3Quicktime crashes my Vista all the time. Only thing i use it for is the online podcasts.
- crazybrit, on 10/11/2007, -3/+5I don't mind MP4 videos, which is what I think most Quicktime videos are, but I hate the content that ONLY works if you use Quicktime... like Apple's movie trailers.
- PhireN, on 10/11/2007, -0/+2@HsoKinees
It was C#, I got half way through it before giving up.
However it is enought to impress bill gates. - MrSunshine, on 10/11/2007, -0/+2And then there's Moopeg, which isn't bigger than 64kb:
http://www.glop.org/moopeg/ - brundlefly76, on 10/11/2007, -0/+1there is no relevance to numbers of lines of code when you are using libraries.
If you want, they could release a library or object which when called implements an entire video player in one call - who cares? - unikuser, on 10/11/2007, -0/+1mediacoder
- illuminatedwax, on 10/11/2007, -0/+1The title is more of a tongue-in-cheek joke about the rampant "Make * in less than * lines of *!!"
Also given the number of codecs and containers out there, to deal with them transparently like this is a big win. - brundlefly76, on 10/11/2007, -0/+1Actually in Visual Basic you could write a video player without writing a single line of code by just dragging a media player object onto a form and pressing 'run'. You would have a hell of a lot more codec support out of the box too.
- wwwdot1jesdotus, on 10/11/2007, -1/+2Maybe he already knows what he's doing but wants to save time.
- canuck11716, on 10/11/2007, -0/+1'tell application "QuickTime Player" to present front movie scale screen'
Stick this AppleScript snippet into your scripts menu folder; full screen support for non-pro Quicktime (on OS X anyway) - daeken, on 10/11/2007, -0/+1Do you want to implement an existing codec or design one from scratch? They're really two entirely different bodies of work.
- scheper, on 10/11/2007, -0/+1mencoder (mplayer)
-
Show 51 - 88 of 88 discussions



What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official