[MEncoder-users] Loss of MPEG2 index(?) upon re-multiplex?
Justin Piszcz
jpiszcz at lucidpixels.com
Tue Jan 15 13:00:08 CET 2008
On Tue, 15 Jan 2008, Justin Piszcz wrote:
> Problem: Audio is too low in an mpeg2 file.
> Solution: Extract video, audio, fix audio, put back together.
>
> For MPEG-2:
> 1. mencoder input.mpg -of mpeg -nosound -ovc copy -o output.mpg
> 2. mplayer input.mpg -vo null -vc dummy -ao pcm ; mv audiodump.wav output.wav
> 3. sox output.wav output2.wav vol +12 dB ; mv output2.wav output.wav
> 4. mplayer -frames 0 input.mpg 2>&1 | grep ^AUDIO
> -> AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
> 5. lame -m j -q 0 -b 224 output.wav output.mp3
> 6. mencoder output.mpg -ovc copy -oac copy -audiofile output.mp3 -o
> finish.mpg
>
> --
>
> When I do this though, it loses the index of the mpeg?
> When I scroll using the arrow keys through the normal (input.mpg) it scrolls
> normally.
>
> When I scroll using the arrow keys through the finish.mpg (if i hit anything
> that moves forward, it goes DIRECTLY) to the end of the video and closes.
>
> Any idea why this is?
>
> Thanks,
>
> Justin.
>
Was missing -of mpeg.
That fixed it.
Justin.
More information about the MEncoder-users
mailing list