[MPlayer-users] -oac copy + -audiofile broken?

TJ tianjy at jippii.fi
Thu Nov 7 19:20:02 CET 2002


On Wed Nov 6 00:35:02 2002, D Richard Felker III wrote:

> Ah, I never tested wav files. Who on earth puts uncompressed audio
> into an avi file??

Me :) I was digitizing a 10-year-old home video to keep it safe,
and my Athlon 850 only handles real-time video compression to DivX5
but not mp3/ogg-compression of the sound at the same time. I edited
the audio track and I'm now trying to replace the current audio track
in the avi file with the edited wav.

> BTW, try with -audio-demuxer 17.

It works with that! (-audiofile audio.wav) Thanks, now the audio track
is better, although I noticed that the incorrect syncing is not corrected
by merely shortening the audio by 10 seconds (it's now correct in the
beginning and in the middle, but still not in the end). But that's
my problem, not mplayer's.

Doesn't work for -audiofile audio.mp3, though, but this's enough for me,
for now.

> Hmm, it works for me now that Arpi fixed it. Are you using latest CVS?

Yes, from the 5th of Nov, after Arpi's changes. And now I'm using the
cvs from today (7th of Nov), still with the same problem (if not using
that -audio-demuxer 17):
'mencoder -oac copy -ovc copy -audiofile audio.wav video.avi' (or -oac 
mp3lame)
results in:

Encrypted VOB file (not compiled with libcss support)! Read DOCS/cd-dvd.html.
Encrypted VOB file (not compiled with libcss support)! Read DOCS/cd-dvd.html.
etc.
(or with -v:
...
Checking for PVA
DEMUXER: freeing demuxer at 0x81db040
system stream synced at 0xD628A (0)!
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=1}
  {ERROR5,c=0}
...etc., ERROR5 * 10^n)

And 'mencoder -oac copy -ovc copy -audiofile audio.mp3 video.avi' still
results in bad syncing (sound in the end of file is from about half of
the file, even though the source audio is the same lenght as the video).

But as for the latter, as Arpi said:

-- quote from Arpi --
> btw, it may not work for mpeg 2 rates, where mp3 frame size may be 576
> samples/frame instead of 1152. afair it happens at <=24khz samplerates.
> it can cause double/half speed playback...
-- quote ends --

... and I recorded the sound in 16-bit 22KHz mono (because of the original
audio is poor quality and mono anyway)

> AVI > 2 GB does not work afaik.

VirtualDub documentation (http://www.virtualdub.org/docs_capture) talks
about "getting errors when trying to capture AVI file bigger than 4GB"
being caused by FAT32. From that I'd conclude that AVI does support >2GB
files nowadays. There is some (old) compatibility mode in VirtualDub which
limits the size to 2GB, however.

-TJ

-- 

__
Ota itsellesi luotettava kotimainen email http://www.jippii.fi/
Tutustu samalla netin parhaaseen pelipaikkaan JIPPIIGAMESIIN.




More information about the MPlayer-users mailing list