View Full Version : Record Mplayer audio
Karkas
9th September 2009, 09:36
Is there a way to record the PCM (or any format) audio from a video file mplayer can play?
Leak
9th September 2009, 09:52
Is there a way to record the PCM (or any format) audio from a video file mplayer can play?
That's mencoder (http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-selecting-codec.html)'s job; you probably want "-oac pcm" and libavformat's WAV output or "-oac copy" and whatever container format suits the audio...
J_Darnley
9th September 2009, 10:54
mplayer -ao pcm:file=file.wav videofile
Karkas
9th September 2009, 14:52
mplayer -ao pcm:file=file.wav videofile
How do I use that?
Karkas
9th September 2009, 18:04
I really don't know what I'm doing, but after trying C:\Program Files (x86)\MPlayer for Windows>mplayer -ao pcm:file=file.wav C:\Videos\Working\Kaplan_web_prep\cd1\1\surgery.mkv in cmd.exe I got...
MPlayer Sherpya-SVN-r29355-4.5.0 (C) 2000-2009 MPlayer Team
Playing C:\Videos\Working\Kaplan_web_prep\cd1\1\surgery.mkv.
[mkv] Track ID 1: audio (A_REAL/SIPR), -aid 0, -alang und
[mkv] Track ID 2: video (V_REAL/RV10), -vid 0
[mkv] Will play video track 2.
Matroska file format detected.
VIDEO: [RV13] 240x176 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffrv10] vfm: ffmpeg (FFmpeg RV10)
==========================================================================
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
Error loading dll
ERROR: Could not open required DirectShow codec sipr.so.6.0.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
Error loading dll
ERROR: Could not open required DirectShow codec sipr.so.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
Error loading dll
ERROR: Could not open required DirectShow codec sipr.dll.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 5.0 kbit/3.91% (ratio: 625->16000)
Selected audio codec: [rasiprwin] afm: realaud (Win32 RealAudio Sipro)
==========================================================================
[AO PCM] File: file.wav (WAVE)
PCM: Samplerate: 8000Hz Channels: Mono Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 8000Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 240 x 176 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 240x176 => 240x176 Planar YV12
************************************************
**** Your system is too SLOW to play this! ****
************************************************
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
Exiting... (End of file)
I know I am doing something wrong. I'm dumb at doing command line stuff so I try stick with GUIs whenever possible to reduce my suckiness factor.
Thanks for help so far guys:)
Nevermind. I didn't think it worked... I found the file and apparently it does.
Thanks for the help!
roozhou
10th September 2009, 13:59
You should also disable video! use
mplayer -ao pcm:fast:file=xxx.wav -vc NULL -vo NULL -benchmark -quiet videofile
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.