Hi, 0n 06/11/[EMAIL PROTECTED]:58 Otto J. Makela told me:
> I've on occasion needed to re-encode the audio stream on a video file, for > example when I've received DVB files which have incorrectly encoded audio > (maybe just an audio glitch on a DVB transmission, different languages on > right-left instead of on different tracks etc.) > > Back in pre-history I used to do video/audio stream demux, then > % transcode -i stream.mp2 -x null,mp3 -n0x50 -y mp2enc -o stream-reencoded > and then remux the video/audio stream back together. > > I came to think that it should be doable just with transcode (input whole mpeg > file, write the raw video stream to new a file, re-encode the audio stream) > and > then mplex the separated video/audio streams back together. However, I don't > seem to be able to get the right combination of input/output "raw" filters > because I keep getting a huge YUV RIFF file as the video. > > When I just want to copy the mpeg video stream through unmolested, what's > wrong > with the following command line? > > % transcode -i stream.mpg -x mpeg2,mp3 -y raw,mp2enc -ext .m2v,.mp2 -o > stream-reencoded Manpage says raw(video)==RGB YUV YUV420 Never tried, but probably adding -P 1 to your command line will work. If all fail, I would use: #!/bin/sh transcode -i stream.mpg -x null,mp3 -y null,mp2enc -o /dev/null \ -m /tmp/audio.new mplayer -dumpvideo -dumpfile /tmp/video.m2v stream.mpg mplex -f 8 -o ./new_stream.mpg /tmp/audio.new /tmp/video.m2v rm /tmp/audio.new /tmp/video.m2v stream.mpg However, if you are short of HD, it won't help :(. > Also, wasn't there a mechanism to call a multiplexer directly from transcode > with the video/audio streams on named pipes, I couldn't locate info on the > Wiki? Dunno about such option either. -- bye maik
pgpMDK55xA3Nr.pgp
Description: PGP signature