View Full Version : mp2 audio and Divx
andal
12th June 2002, 11:44
Is there any way to mux AVI-Files with MPEG 1 Level 2 Audio ???
:confused:
jdle
12th June 2002, 17:39
I used QDesign MPEG Layer 2 encoder. It has a option to save encoded mp2(mpeg 1 layer 2 audio file) as a wave file.
I think that's the only software capable of doing that..I don't see any software on the net that's able to add a wave-header to mp2 file..
multiplex the waved "mp2" file with a video inside virtual dub.It works .I tried it before.
mp2@ 224 kbits sound excellent ,if you using a bitrate below that, use mp3, its much better..
avih
12th June 2002, 21:06
Originally posted by jdle
I used QDesign MPEG Layer 2 encoder. It has a option to save encoded mp2(mpeg 1 layer 2 audio file) as a wave file.
I think that's the only software capable of doing that..I don't see any software on the net that's able to add a wave-header to mp2 file..
multiplex the waved "mp2" file with a video inside virtual dub.It works .I tried it before.
mp2@ 224 kbits sound excellent ,if you using a bitrate below that, use mp3, its much better..
yup. i use this acm codec for capture with xvid. it has really low cpu usage. i use 80kbps mono and the quality is enough for me. all my tv caps are xvid +mp2
andal
12th June 2002, 22:13
@jdle
As I am not so experienced with Audio Headers as DSPguru is. Could you please upload the first 2k of the original MP2-File too. (just for comparison)
Maybe it is as easy as putting a riff-header in front.
Thanks a lot for the fast answers,
andal
You could try loading the mp2 file in graphedit:
MP2 File (Async Source)->Wav Dest->File Writer
That should do it...Also certain versions of my WMA2WAV could add wave headers to most things...I cant remember which versions did or didnt (such a long time ago now :) )
-Nic
andal
12th June 2002, 23:05
@Nic
Graphedit tells me that the input and output is incompatible....
But maybe I am missing a filter.
@jdle
Where can I get the QDesign MPEG Layer 2 encoder ?
Chibi Jasmin
13th June 2002, 08:32
Originally posted by jdle
I don't see any software on the net that's able to add a wave-header to mp2 file..
- Start GraphEdt
- Insert the 'File Source (Async.)' filter and select your .mp2 file (let's assume it's toto.mp2)
- Insert the 'MPEG-I Stream Splitter' (and connect its input to the output of the previous one)
- Insert the 'WAV Dest' filter (and connect its input to the output of the previous one)
- Insert the 'File writer' and choose a target filename (I suggest toto.mp2.wav so that you don't confuse with uncompressed waves)
- Hit the play button
Now, you have a WAV file on your disk that you can use in VirtualDub (or Nandub of course), just like you can use WAV-encapsulated CBR mp3 files.
(I wasn't sure if it needed the stream splitter, so I didnt mention it, but it should have forced/put it in if needed.....stupid DShow (& me :) ))
-Nic
Chibi Jasmin
13th June 2002, 14:11
Originally posted by Nic
(I wasn't sure if it needed the stream splitter, so I didnt mention it, but it should have forced/put it in if needed.....stupid DShow (& me :) ))
-Nic
Funny thing is, I have already pasted this very same text into this forum several times...and the text isn't even written by me...it itself is a copy from some thread in this forum... :D Search function is not everyone's friend it seems...
andal
13th June 2002, 18:02
Thanks Chibi Jasmin,
I did the search you are talking about half a year ago (or something like that). I did not know graph edit (what it does) at all (until now). I think I always tried to avoid complicated things. I did the search again and I bow my head in disgrace ... because I hate people who do not use the search function :rolleyes:
Now to nag you all again and again. Can I automate the whole thing ?
Because it is quite tiring to create the same graph again and again.
Thanks all over again,
andal
Chibi Jasmin
14th June 2002, 10:48
Guess what? I don't know, as I never had the need to automate Graphedit stuff :D
AFAIK, you can save the Graphs in Graphedit, but I think it will include the files you have chosen, so no universal solution, I guess...I have no clue...maybe someone will write a tool for this, there are already tools for wav-header to cbr-mp3 and ac3...
Can't really help you on this, sorry...or maybe the save graph option is somehow usable? I have no clue...
ppera2
14th June 2002, 15:56
I just wanted to post similar thread.
Discovered that when V Dub works with Mpeg1 with MP2 audio, and set direct stream copy for audio it saves it as uncompressed PCM.
It stays for AVI and for separated audio WAV saving too.
ppera2
6th July 2002, 23:23
Originally posted by Chibi Jasmin
- Start GraphEdt
- ..............
- Insert the 'WAV Dest' filter (and connect its input to the output -of the previous one)
-................
I don't have this filter in Graphedit (Private - build 011008). Can you give me where I can download version of Graphedit what you use ?
Chibi Jasmin
7th July 2002, 00:09
Originally posted by ppera2
I don't have this filter in Graphedit (Private - build 011008). Can you give me where I can download version of Graphedit what you use ?
The one on Doom9's software page includes the filter, for example...
ppera2
7th July 2002, 10:41
Damn Window$ screwed up filters again....
I should think on it.
robUx4
8th July 2002, 15:37
I'm currently trying to use my mpa2wav program (currently add a WAV header to MP3 files) to put a WAV header in front of MP2.
The format does exist and is a bit documented. But I'd like to know if any of you know of an MPEG1 (as it's what the structure is named) (any layer or at least 2) ACM codec ?
I guess it should be supported by DirectShow without much problem (I'll check what happens with graphedit ASAP) but an ACM (at least decoding) would be better to test for compatibility...
(also sent on Hydrogen Audio)
robUx4
8th July 2002, 15:48
Originally posted by DSPguru
@jdle
could you cut the first 2k of that wavmp2 file and upload it someplace?
I'd be very interrested to have the first 200 bytes too ;)
Or if you can tell us where to find that codec you use.
I'm making a mpa2wav program and would like it to work with mp2 (and mp1) . It currently works with MP3 (nearly the same way as what Nandub produces).
robUx4
8th July 2002, 15:50
never mind, check this thread :
http://forum.doom9.org/showthread.php?s=&threadid=27113
damjang
10th July 2002, 08:17
I attached a little mp2 with wave header. Maybe someone can do an utility to add wave header to mp2 audio files. Maybe this utility can do more: add a wave header to all other audio format (mp3, ac3 ...)
@dspguru: also this can be good for besweet ;)
robUx4
10th July 2002, 10:12
Originally posted by damjang
I attached a little mp2 with wave header. Maybe someone can do an utility to add wave header to mp2 audio files. Maybe this utility can do more: add a wave header to all other audio format (mp3, ac3 ...)
@dspguru: also this can be good for besweet ;)
Done :)
http://mukoli.free.fr/mpa2wav.v0.2.1.zip
Works with MPEG I/II/II.5, Layer 1/2/3 CBR and VBR.
I might do the same thing soon for AC3 :)
damjang
10th July 2002, 11:03
Originally posted by robUx4
Done :)
http://mukoli.free.fr/mpa2wav.v0.2.1.zip
Works with MPEG I/II/II.5, Layer 1/2/3 CBR and VBR.
I might do the same thing soon for AC3 :)
Oh.. very well. I try mpa2wav!
Thanks to robUx4 :D
damjang
MrDarcy
2nd April 2003, 23:03
Hi,
a simple question: is it possibile to make a Divx with (original) mp2 audio ?
(sorry if I posted in the wrong forum)
Bye !
ChristianHJW
3rd April 2003, 01:14
Yes, this would maybe have been better placed in the New A/V formats section, as it is more video/muxing related then audio .. to answer your question, yes, the alpha matroska tools allow this already ... you just have to wait some more time until we can finally release them, everybody is waiting for a working DShow parser :( ....
arty
3rd April 2003, 07:25
...and it works well with AVI too...
MrDarcy
3rd April 2003, 08:31
Thank you for answering, I'll monitor the Matroska development...
(I thought new New A/V formats wasn't the right forum because mp2 is a quite old format :) )
Bye !
alexnoe
3rd April 2003, 16:51
Plain AVI format allows MP2 CBR, but the stream headers are differently than for MP3 (format tag is eg. 0x50, not 0x55), so the muxing software must support it
MrDarcy
3rd April 2003, 20:54
Originally posted by alexnoe
Plain AVI format allows MP2 CBR, but the stream headers are differently than for MP3 (format tag is eg. 0x50, not 0x55), so the muxing software must support it
....and isn't there any muxing software supporting this?
I just tried with your nice AVI-mux GUI but it muxes my mp2 file as mp3, and of course the playback doesn't work.
Bye and thanks !
alexnoe
3rd April 2003, 20:59
AVI-Mux GUI parses the internal structure of MPEG Layer 1/2/3 correctly, but it always writes MP3 headers, that's why it doesn't play.
I would have to additionally support MP2. This is going to be added, but before, I rework the crappy language system (the next version will use plain text files as language files) and add support for SSA subtitles.
MrDarcy
4th April 2003, 15:45
I tried mpa2wav and it worked fine.
Playback works on the PC, but not on the Kiss player that seems not to be able to decode mp2 audio :angry:
Bye !
ppera2
4th April 2003, 17:58
Originally posted by alexnoe
AVI-Mux GUI parses the internal structure of MPEG Layer 1/2/3 correctly, but it always writes MP3 headers, that's why it doesn't play.
I would have to additionally support MP2. This is going to be added, but before, I rework the crappy language system (the next version will use plain text files as language files) and add support for SSA subtitles.
Yes! Yes! We can't wait.... :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.