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

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?

-- 
   /* * * Otto J. Makela <[EMAIL PROTECTED]> * * * * * * * * * * * * * * * */
  /* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
 /* Mail: Mechelininkatu  26 B 27,  FI-00100  Helsinki,  FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */

Reply via email to