Log in

View Full Version : how to cut a mpeg2 avi with lpcm sound?


loki03
9th April 2004, 18:26
this drives me crazy.. i have an external mpeg2 capture device (adaptec av2310) that delivers avi´s through windrv: mpeg2 with lpcm 48khz sound.

i want to cut a 500mb piece out of a 7gig video, but its way too complicated- i need to do that, because for a future dvd to author i need to save disk-space and i only need that 500mb piece of that clip.
and i need the audio+video as an avi, as my authoring program (sonic my dvd doesnt accept anything else)

i used tmpeg author, cut that clip to the needed size, authored a dvd, demuxed the video and the audio out of the vob using "moonlight xmuxer" (the only program i konw that demuxes audio AND video).->the demuxed video file is ok, the audio file too. re-muxing the resulting files to an avi doesnt work with xmuxer, so i converted the lpcm file to mpeg2 using besweet and then muxed the audio and video together to an avi using xmuxer...
the resulting file doesnt play (mplayer, zoomplayer..) and is unusable in my authoring programs.
i cant use projectx: doesnt support lpcm
mpeg2schnitt dislikes my demuxed-video. does it support lpcm? anyway it doesnt accept the video-only file.


what can i do?

Thanks!

bb
9th April 2004, 18:41
Strange: you have MPEG-2 in an AVI file :confused:

Well, if you could demux video and audio, and provided that is truly MPEG-2, you could use BeSweet to encode the LPCM file to MP2. Make sure the video and audio files have the same filename (except the extension), and try again with MPEG2Schnitt. After cutting, it makes sense to mux to an MPEG-2 program stream, or to author a DVD.

bb

loki03
9th April 2004, 18:44
sorry, mistake, its a "*.mpeg" file consistign of mpeg2-video and lpcm audio. i want to cut that thing and need to end up with one program stream again, cause my authoring app cant mux and the only app that can cut a my kind of program stream was tmpeg-author. thanx for the filename hint! i just loaded the video stream and the audio stream into mpeg2schnitt, but i freezed when i moved the slider.

bb
9th April 2004, 18:55
I'd really like to help you, but it seems I still don't get it. What's the structure of your captured file?

1. Is it AVI file format?
2. Does it contain an MPEG-2 video stream?
3. You said already that it contains an LPCM audio stream.
4. After demuxing, did you get an MPEG-2 elementary stream and an LPCM WAV file, or what?

bb

loki03
9th April 2004, 18:57
1.no, its mpeg program stream
2. yes
3.-
4.mpeg2 elementary and lpcm wav (that i converted to mpeg2-audio with besweet (mpeg1layer2 or whatever that thing is named like)

i am a bit stressed, as i´m trying for hours now...

loki03
9th April 2004, 19:07
oh oh, mpeg2 schnitt works with the mpv and the m2v files! now i only need a mux program that outputs a program stream.

bb
9th April 2004, 19:12
Ah, ok, not an AVI (I wondered where you got an MPEG-2 VfW codec...).

You should try the current ProjectX 0.81.7, which supports LPCM 48kHz and 96kHz, up to 8-ch, according to the release notes (didn't try, though). It's been in the news today.

So demux and correct your source file via the new ProjectX, then use MPEG2Schnitt - and report back, if you succeeded ;)

bb

loki03
9th April 2004, 19:15
thanx! will try that. now for a break.. mpeg2schnitt saves the cutted video but not the audio, maybe i am doing something wrong. can projectx mux the cutted files in the end?

hartford
10th April 2004, 02:21
avi2mpg2 will mux streams. Usage is not intuitive.

bb
10th April 2004, 09:44
Originally posted by loki03
thanx! will try that. now for a break.. mpeg2schnitt saves the cutted video but not the audio, maybe i am doing something wrong. can projectx mux the cutted files in the end?
Do you have the same filenames for both, video and audio (except the extension, of course)? E.g. my_film.mpv and my_film.mp2. I never tried MPEG2Schnitt with LPCM audio; maybe you need to covert it to MP2 first.

ProjectX does not mux as far as I know.

bb

loki03
10th April 2004, 11:59
thanx,new project x can demux and cut my files, i now end up with a cutted lpcm and a cutted video file, use besweet to convert to mpeg1l2-audio and then mux with mplex(pctv). only thing i lack now is a muxer that works with lpcm.