mplayer -vo null -vc null -ao pcm:waveheader The_Zero_Hour_08_14_44.rm
on a 3.4 MB input file and all I get out is a 44 B .wav file.
The rm file plays in movie player just fine. This is the output I get:
mark@orca:~/Desktop/tokyo$ mplayer -vo null -vc null -ao pcm:waveheader
The_Zero_Hour_08_14_44.rm
MPlayer SVN-r31918 (C) 2000-2010 MPlayer Team
Can'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 The_Zero_Hour_08_14_44.rm.
REAL file format detected.
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 0
Stream mimetype: logical-fileinfo
Clip info:
title: The Zero Hour - August 14, 1944
author: http://earthstation1.com/Tokyo_Rose.html
copyright: 1997 J. C. Kaelin wand...@earthlink.net
==============================
============================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x35eb660]frame sync error
AUDIO: 11025 Hz, 1 ch, s16le, 16.0 kbit/9.07% (ratio: 2000->22050)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO PCM] File: audiodump.wav (WAVE)
PCM: Samplerate: 11025Hz 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] 11025Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:1678.9 (27:58.9) of 1679.0 (27:59.0) ??,?%
Exiting... (End of file)
mark@orca:~/Desktop/tokyo$
Any ideas or suggestions would be greatly appreciated!
Thanks!
Mark
_______________________________________________
MPlayer-users mailing list
MPlaye...@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> I am trying to convert a real player audio file to mp3 for my daughter's
> school project. From what I have read, I need to use mplayer to convert to
> .wav and then lame to convert to mp3. I tried the following:
>
> mplayer -vo null -vc null -ao pcm:waveheader The_Zero_Hour_08_14_44.rm
It should work fine with -demuxer lavf (your issue is reproducible with
samples/sp_sample1.rm), but the simpler variant is probably:
ffmpeg -i The_Zero_Hour_08_14_44.rm outfile.mp3
Carl Eugen
> Mark Phillips <mark <at> phillipsoasis.com> writes:
>
> > I am trying to convert a real player audio file to mp3 for my daughter's
> > school project. From what I have read, I need to use mplayer to convert
> to
> > .wav and then lame to convert to mp3. I tried the following:
> >
> > mplayer -vo null -vc null -ao pcm:waveheader The_Zero_Hour_08_14_44.rm
>
> It should work fine with -demuxer lavf (your issue is reproducible with
> samples/sp_sample1.rm), but the simpler variant is probably:
> ffmpeg -i The_Zero_Hour_08_14_44.rm outfile.mp3
>
> Carl Eugen
>
> Carl,
Thanks - both suggestions worked! I am curious as to why the ffmpeg
suggestion produced a 3.3 MB mp3 file, while the mplayer to wav then through
lame to mp3 produced a 3.3 MB mp3 file?
Thanks!
Mark
> Thanks - both suggestions worked! I am curious as to why the ffmpeg
> suggestion produced a 3.3 MB mp3 file, while the mplayer to wav then through
> lame to mp3 produced a 3.3 MB mp3 file?
I am curious as to if your question contains a typo or you don't know that
FFmpeg uses lame to encode to mp3?
;-)
Use ffmpeg -i The_Zero_Hour_08_14_44.rm -ab xxk outfile.mp3 (note the k!) to
change output file size with ffmpeg.
Carl Eugen
> Mark Phillips <mark <at> phillipsoasis.com> writes:
>
> > Thanks - both suggestions worked! I am curious as to why the ffmpeg
> > suggestion produced a 3.3 MB mp3 file, while the mplayer to wav then
> through
> > lame to mp3 produced a 3.3 MB mp3 file?
>
> I am curious as to if your question contains a typo or you don't know that
> FFmpeg uses lame to encode to mp3?
;-)
>
That would be telling....;-)
> Use ffmpeg -i The_Zero_Hour_08_14_44.rm -ab xxk outfile.mp3 (note the k!)
> to
> change output file size with ffmpeg.
>
I am working on a script to change several of these rm's to mp3. I just
broke the commands into bits to see where the problem was:
test 1 (based on googling for how to solve this problem):
mplayer -vo null -vc null -ao pcm:waveheader -demuxer lavf
The_Zero_Hour_08_14_44.rm
lame audiodump.wav audiodump.mp3
test 2 (your suggestions.....and a great one indeed!:
ffmpeg -i The_Zero_Hour_08_14_44.rm outfile.mp3
outfile.mp3 is 13 MB
audiodump.mp3 is 3.3 MB.
I expected a similar output file from both approaches, since they use the
same programs. I don't really care about the size of the files, it was just
a curiosity.
Thanks again!
> outfile.mp3 is 13 MB
> audiodump.mp3 is 3.3 MB.
>
> I expected a similar output file from both approaches, since they use the
> same programs. I don't really care about the size of the files, it was just
> a curiosity.
lame --help will tell you about the option -b to set the bitrate, as said, it is
-ab (audio bitrate) for ffmpeg, don't forget the k!
Carl Eugen
Ok, I think that was really confusing. I can't see that this issue has anything to do with -ao pcm, sound also does not play when playing the file normally.
-ac a52 will work if compiled against liba52, otherwise the dnet/sac3/... support needs to be ported to ffac3 (did that already, now it's just a matter of getting the prerequisites into FFmpeg).
Fixed in SVN r33029.