[MEncoder-users] Best and fastest way to extract audio from a dv-file

Al Bogner mencoder at ml093.pinguin.uni.cc
Sat Jun 26 13:16:19 CEST 2010


Am Sat, 26 Jun 2010 12:12:53 +0200

Hi,

I send a copy to the mailinglist too, because I think it is important
that it is searchable in the net. I didn't find a hint, that aid could
be important with dv-files.

> Well, the file has 2 audio tracks which can be selected with -aid 0
> (first one) and -aid 1 (second one). Second audio track (-aid 1) is
> only silent in mplayer but first one has sound. I've extracted the
> first one with:
> 
> mplayer file.dv -vc dummy -vo dummy -aid 0 -ao pcm:fast

Are you sure it is -aid 0 in your system? I need -aid 1

MPlayer dev-SVN-r30099-4.4-openSUSE Linux 11.2 (x86_64)-Packman (C)
2000-2009 MPlayer TeamCan't open joystick device /dev/input/js0: No
such file or directory Can't init input joystick mplayer: could not
connect to socket mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.

Playing /tapes_nfs/digital/2010-02_la.nuit.rouge/2010-02_la.nuit.rouge_001_20100216213628_720x576i_169_25fps.dv.
Seek failed
libavformat file format detected.
[dv @ 0x1569630]Estimating duration from bitrate, this may be inaccurate
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
[lavf] Audio stream found, -aid 2
VIDEO:  [dvsd]  720x576  0bpp  25.000 fps  28800.0 kbps (3515.6 kbyte/s)
Error opening/initializing the selected video_out (-vo) device.


It looks fine with 
mplayer "$FILE" -vc dummy -vo dummy -aid 1 \
-ao pcm:fast:file="$FFV1AUDIOFILE"

Original Audio
Duration                         : 4s 880ms

wav-Audio
Duration                         : 4s 720ms


And this is a big problem if you have hundreds of files.

> 
> and it plays fine here with mplayer and also opens and the waveform is
> visible & playable in the audacity sound editor

Here too. The problem is the duration.

> If you can't dump the audio, I have it here and can send it over. It's
> pretty short, about ~5 seconds

Thanks, I have hundreds of files for video editing and have to prepare
them. I have to take care, that I do not run out of sync.

Al


More information about the MEncoder-users mailing list