Click here to Skip to main content
13,452,917 members (51,105 online)
Rate this:
Please Sign up or sign in to vote.
See more:
well i want to stream extended ram file from the internet so i did this code
AxWindowsMediaPlayer1.URL = ""

this code is for example..any way the AxWindowsMediaPlayer1 start to connect tot he file and buffering then nothing i wonder dos it need spesific codec or ther's another tool to run and stream ram extended files
Posted 23-Jul-12 7:30am
Updated 23-Jul-12 8:01am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

.ram is a Real Audio file, which Media Player does not know how to handle. As far as I know, there is no codec for it to make it work with Media Player.
newcoder1 23-Jul-12 14:31pm
so what can i do??i want to make program that can run Real Audio there any way to do that
Sergey Alexandrovich Kryukov 23-Jul-12 16:39pm
There are some codecs, of course. You can use K-lite codecs or ffmpeg to transcode your files. Please see my answer.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can use K-Lite Code Pack for this and many similar formats. Please see:[^],[^].

Another way is using ffmpeg to transcode your media files into something you can work with. Please see:[^] (please see the list of the supported format here, some Real formats you may need are supported),[^].

I'm using the version of May 13, 2012 right now and your format is Real media (RealAudio or RealVideo); the codec list for this versions shows:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...S.. = Supports draw_horiz_band
....D. = Supports direct rendering method 1
.....T = Supports weird frame truncation

D A D  ralf RealAudio Lossless
DEA D  real_144 RealAudio 1.0 (14.4K)
D A D  real_288 RealAudio 2.0 (28.8K)
DEV D  rv10 RealVideo 1.0
DEV D  rv20 RealVideo 2.0
D V D  rv30 RealVideo 3.0
D V D  rv40 RealVideo 4.0
D A D  sipr  RealAudio SIPR / ACELP.NET

Of course, both tools are free to use.

Good luck,
newcoder1 23-Jul-12 16:44pm
can you tell me how can i import it to my program? i'm using as i said erlier
and which one to download
Download bzip2 tarball or Download gzip tarball
lewax00 23-Jul-12 17:56pm
It doesn't matter if you download the bzip2 or gzip as long as you have a program to decompress them (if not, get 7-Zip), both should contain the same files.
Sergey Alexandrovich Kryukov 23-Jul-12 19:56pm
What do you mean "import"? This is not how things work. Those are either applications and codecs. Well, you can look at the source code of ffmpeg and just borrow some code from it. As the codec pack, the codecs are just codecs, most players will use them if you install them in the system.
newcoder1 23-Jul-12 18:40pm
can you tell me how can i import it to my program? i'm using
Sergey Alexandrovich Kryukov 23-Jul-12 19:57pm
There is no such thing -- please see above.
newcoder1 23-Jul-12 20:49pm
but i'm beginner in programing how can i find the right code and use it in can you help me
Sergey Alexandrovich Kryukov 27-Jul-12 18:47pm
If you try to "find" code instead of writing it, you risk not finding anything. You need to write it. If you are a beginner, do begin, otherwise you are not. I explained you what to do. If you have further questions, just ask them, bit "can you help me" is not informative. Yes I can, if you explain your further concern. I told you: install the codecs and the media player will be able to play the formats/containers which were not available before.
newcoder1 27-Jul-12 18:52pm
well i'm using and the it over me media player to run media files and with codecs like k-light codec media player still can't run real audio how to let me program run real audio files
Sergey Alexandrovich Kryukov 27-Jul-12 19:44pm
Can you play them with some existing player, like a Windows Media Player application? Media player classic? How about ffplay (part of FFMpeg)?
Can you play your files with anything at all? May be they are invalid... you could send me one sample if you want me to test it. But first, use FFProbe to test your file.
newcoder1 28-Jul-12 10:58am
i can run those files with jetaudio..Windows Media Player application and Media player classic can't run those files..what sample you want..the real audio file or my code??
my code is so simple i just import wmplip and do the code of running the file...axwindowmediaplaer.url="my file path.filename.ram"
Sergey Alexandrovich Kryukov 28-Jul-12 23:50pm
That's why I suspect something could be wrong with your RealAudio files, because I easily played and converted them using the said codec pack or ffmpeg. By the way, the format is proprietary, so it's the best to convert the file into something else anyway.
newcoder1 29-Jul-12 5:42am
well the majore pourpose of my program to stream those files online so converting them is not an option
Sergey Alexandrovich Kryukov 29-Jul-12 15:42pm
Why not an option? You need to convert them before translation. To me, real audio is not an option, it is proprietary, and in this sense, "illegal". Stream formats should be standard.
newcoder1 29-Jul-12 18:49pm
well i'm beginner so i dont know how to convert before trasnlation
Sergey Alexandrovich Kryukov 29-Jul-12 21:29pm
Just think at your question. What is supposed to mean?
Didn't you get it? I mean before or not before, what's the difference? I do not mean convert on the fly, or to write a program for it, why?

You can convert using ffmpeg.exe. Did you use it yet? I advised this program. Use it, read its help before asking further questions.

newcoder1 30-Jul-12 4:54am
Sergey Alexandrovich Kryukov i want a way to let my media player application run Real audio suggest thing that i have no idea how to make it can you show me how to make it happen
I already answered, but you did not report back what's going on:
1) does it run on any player after installation of the K-lite code pack?
2) play it with ffplay.exe. What happens?
3) execute ffProbe with your files. What happens?
4) can you play your files anywhere at all? how do you know they are correct?
I tell you, I can play it. So, determine what do you miss.

Now, face it: if you serve up these file on your site, your customer will have the same problem. You will have to instruct everyone in how to play them, but how many will stay with you. Do you need it?

Do you need to provide the files for downloading or for streaming (this way, a user will be able to listen online, but downloading will become different)? What protocol do you want? Any? Why do you need these file type? Why not converting them to something more standard (mp3) and serving converted files.

(You can convert most formats using ffmpeg.exe.)

newcoder1 30-Jul-12 11:02am
1) yes on jetaudio
2) i dont have ffplay.exe
3) how to execute ffprobe with my files?
4) it's not my files .it's files from website that i want to make application to stream them
Sergey Alexandrovich Kryukov 30-Jul-12 11:37am
2-3: I gave you the link -- this is a part of ffmpeg.
3: so what? Is the site yours or the one you are working at? Is so, you can transcode the files. If not, I do not know what you are doing. You should have explained it, as this would not be a usual streaming.

You see, I cannot understand your concerns. I could be mistaken, but right now, it looks to me that you are not qualified enough to continue this discussion. Please don't get it as offense -- this is perfectly OK to be not qualified, but you have to do something about it. (Or, again, I can be mistaken.) In particular, you do not keep focus on each of your difficulties. Perhaps you do not know what streaming generally does -- this is not so trivial topic.

Also, if you have some application like ffProbe or ffPlay, you should not ask how to execute it with your files. I would not remember myself until I read the documentation. The whole idea of the "knowledge" of all the command-line parameters and other stuff is wrong. If I can read documentation, you can, too. And if, by some reason, you cannot -- then, you know...


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01-2016 | 2.8.180318.3 | Last Updated 23 Jul 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100