Log in

View Full Version : Muxing RM files


elwood
4th December 2004, 15:35
This is a program to mux RealMedia files.
It can for example combine audio from one file and video from other.
It can also extract audio or video from the file.
Also avaible is a beta version that can extract streams from SureStream files.

It accepts only RM and RMVB files, but you can try converting other formats into RM using dtdrive. I converted OGG into RM and then successfuly muxed it into RMVB.

The archive also contain a comand line version.

The program is currently awaible to download at
http://elwood.webz.cz/RMMuxer.zip

The SureStream beta
http://elwood.webz.cz/SureStreamBeta.zip

Dark-Cracker
4th December 2004, 16:54
if u want to publish it i think the best solution is the following :
find someone to host your archive, edit your thread with the description of your tool and eventually a sample on how to use your tool, and send a PM to Sirber to ask him to add your thread in the realvideo tool topic. i think some people will be happy to made some tests on your tool and report eventually some bugs.

PS: for the tool name i think a joinner or a merger is more correct than a muxer (who sound like the possibility to mux and audio and video stream).

Good luck :)
Bye.

elwood
4th December 2004, 17:04
Thanks, I fill look for some host.
And this tool does take audio from one file, video from other and put them in one file, so muxer is maybe the right name.

Dark-Cracker
4th December 2004, 17:47
about the tool name i am sorry i have misunderstand on of your sentenses it's for that :)

PS : for the host if you are interested i can host your archive if u are interested, you can send it at : darkcracker#caramail.com

i will send you the direct link in PM.

Bye.

karl_lillevold
4th December 2004, 18:42
elwood: awesome! I am looking forward to try your muxer.

Sirber
5th December 2004, 19:46
@elwood

Great tool! :D I would need something similar but in cmdline mode to merge 1 rmvb (video) with 1 rm (audio). Do you think it would be possible to build one?

Thanks! :D

elwood
5th December 2004, 21:20
I think it would be possible. The muxer core is separated from the GUI. I can build some cmdline version(It will take some time).
I can also publish the C++ code for use in other programs if someone is interested.

Sirber
5th December 2004, 21:24
Could be cool :D RealAnime is currently in Delphi, I think it can be converted easily from C++ source.

elwood
5th December 2004, 21:47
I don't know. I have only seen old Pascal(Basic syntax should be similar to Delphi) and rewriting all the for,if,type definitions,dereferencing...
It could take quite a long time.

Sirber
5th December 2004, 21:52
lol

what I ment was if you release the source, I can easily convert it to delphi :). But IMO, a cmdline merger would be best for most people (in addition to the GUI) instead of my convert in delphi...

rmvbmerge.exe -i video.rmvb -i audio.rm -o test.rmvb

:D

damrod
5th December 2004, 23:18
can be cool...can add this feature to reve... :)

Sirber
5th December 2004, 23:39
Yep. can be a great addition to many tools :)

elwood
6th December 2004, 22:39
I have completed the comand line version.
It can be downloaded at http://elwood.webz.cz/RMMuxer.zip

I thank Dark-Cracker who helped me started and hosted the first version.

damrod
6th December 2004, 22:42
great!!!!

i think i will add a tab-panel in reve ;-)

karl_lillevold
7th December 2004, 01:25
So I tried both the GUI and the cmd line tool. In my little test, the cmd line tool worked great! However, when I pressed the Merge button on the GUI, it silently died, and produced a 0 byte output file. Any ideas?

Sirber
7th December 2004, 01:49
Woot woot!

May I add it to RealAnime? :D

elwood
7th December 2004, 15:28
Originally posted by Sirber
Woot woot!

May I add it to RealAnime? :D

Yes,you can add the tool to any software.

Originally posted by karl_lillevold
So I tried both the GUI and the cmd line tool. In my little test, the cmd line tool worked great! However, when I pressed the Merge button on the GUI, it silently died, and produced a 0 byte output file. Any ideas?

Not now. When the Merge button is pressed, the save file dialog and then a progress bar should appear and when the muxing is done, quit. The core is almost the same in GUI and cmdline versions (I only symplified parameters passing in the cmdversion).
The core runs in it's own thread and the main program should not quit before the muxing is complete.
I will check if my version works(Microsoft Visual C++ sometimes behave very oddly).
If the test files are not too big and if I can download them somewhere, I can do some test with them.

Sirber
7th December 2004, 15:34
For the reference in RealAnime, do I use your real name or your d9 nickname? PM me for it :)

Thanks!

Nic
7th December 2004, 17:11
I can also publish the C++ code for use in other programs if someone is interested.

We're always interested :) So yes, please post the source if you can :)

-Nic

Sirber
8th December 2004, 01:20
Strange... with the cmdline, I get 100% CPU usage and about 100 KB/s from a 17 sec sample.

C:\Projets\RealAnime\output>rmvbmux.exe -i "C:\Projets\RealAnime\output\temp\int
_video.rmvb" -i "C:\Projets\RealAnime\output\temp\int_audio.rm" -o "Y:\Anime\tes
t.rmvb"
Muxing
******...................

after 1 minute...

:confused:

HW:

C: is local disk
Y: is samba share on linux 2.6.9 via gigabyte link

elwood
8th December 2004, 11:29
Oh, sorry. Microsoft Visual C++ sometimes just seems to ignore build setings.
I did try to mux a 300MB file and the program did stuck. I forced the C++ to recompile it. The program now mux the 300MB file corectly. The new version can be downloaded from the same link.

Next time I will have to do more testing.

Sirber
8th December 2004, 13:03
The file was 6 MB... :(

elwood
8th December 2004, 13:55
I know it was my fault. Please try the new version. If that fails, I will do extensive testing on moust of my RM files.

Sirber
8th December 2004, 22:40
I will try tonight. Thanks.

Sirber
9th December 2004, 02:59
Just tryed. Now it's 5KB/s for the same files. Want my sources?

http://www.detritus.qc.ca/mkvmux.jpg

elwood
9th December 2004, 09:26
Just tried on WIN2000. Both GUI and cmdline worked well. I will try later on WIN XP.
If I can have your sources, I will try them.

elwood
9th December 2004, 15:15
Just tried on WIN XP. The GUI worked well, but the cmdline version was very slow. Just why it works normaly on WIN98, WIN2000 and slow on
WIN XP (While the GUI works) I don't understand. I don't have access to WIN XP machine with Visual C++ so this will take a while to solve.

Sirber
9th December 2004, 15:22
:(

Encoding audio: 10 sec
Encoding video: 60 sec (CQ65, EHQ50)
Muxing: 900 sec

Why would GUI be fast and CMD not? :confused:

elwood
9th December 2004, 15:42
I don't know. The same test files, the same .exe files, WIN98,WIN2000 done in 5 sec. WIN XP about 1 minute.
Maybe using some obsolete Windows API function. I will try to change the code a bit, but it will take time because I don't have WIN XP.
The GUI have same speed on all mentioned systems.

Sirber
9th December 2004, 15:47
Yeah, but the sad thing is I need the cmdline version for realanime :). I hope you can fix this! Good luck :D

damrod
9th December 2004, 19:46
maybe a problem with xp sp2 which "block" cmd.exe execution...krosoft think it can protect people if it disappear :p

you can use cmdline executable but execution in dos window is "protected"...slower in fact? ;)

Sirber
9th December 2004, 19:54
I have XP SP1 :)

Sirber
15th December 2004, 03:31
Could you post the source so other developer may get a look at it and help you fix that problem? :)

elwood
15th December 2004, 12:05
I'm waiting for Thursday to get to the same XP machine for testing a new version.
I will have to comment the source code a bit and check that everything is in english and than I will release it.

Sirber
15th December 2004, 13:11
Thanks! Looking forward to get the new version :)

Sirber
15th December 2004, 19:55
With a 25 min file:

Audio: 12 minutes
Video: 1h30
Mux: 3h10

On XP SP1 :(

elwood
16th December 2004, 14:33
Just tried a new single thread version on the same machine as last week and the speed seams to be all right(5s instead of 2min). I will release the new version as soon as I get home(About 4 hours)

Sirber
16th December 2004, 15:05
woot woot!

thanks for your great work ^_^

elwood
16th December 2004, 18:44
The new version is now available for download at the same link.
I hope this version will work on all operating systems.

Sirber
16th December 2004, 19:10
gonna try tonight, thanks :D
[edit]

Works #1, thanks :D Great work! :D

Sirber
3rd January 2005, 17:30
Is there "exitCode" other than 0 in case of error?

elwood
4th January 2005, 00:43
The cmdline version should print warning message and return 1 if:
-No output is specified
-No input is specified
-The input files were not found or not recognized
-If there is not at least 2 recognized streams in the files

Errors during muxing are not reported at this time.

Sirber
4th January 2005, 02:44
ok. some exitcode could be cool :) Thanks!! :D

elwood
8th March 2005, 14:59
The is a new beta version capable of extracting streams from SureStream files.
It can be downloaded from
http://elwood.webz.cz/SureStreamBeta.zip

karl_lillevold
8th March 2005, 18:45
Nice! Worked fine for my little test file, I was just a little confused as to the button funtionality... "Merge" actually extracted the stream I selected... Perhaps you need to change "Merge" to "Process" and rename your app to RM(De)Muxer or RMMux/Extract :D

mgh
8th March 2005, 19:23
Works perfectly for surestream:) :D

Bh4i
25th September 2006, 11:40
Can someone plz mirror this file?

I dont know why the last message is >1 yr old. Isnt this tool useful anymore??

smok3
30th November 2007, 13:43
crashes here on extraction time, what are the requirements?

nestul
26th June 2009, 06:06
Hi,

SureStream Beta closes itself unexpectedly after pressing merge button. The tests files were recorded from here http://web.mit.edu/hml/ncfmf.html using RealPlayer v11.1.2. Is there any alternative utility for demuxing/muxing rm streams?
:thanks: