[FFmpeg-user] New MLP Encoder(urgent)

Moritz Barsnick barsnick at gmx.net
Tue Oct 28 09:21:30 CET 2014


On Tue, Oct 28, 2014 at 07:39:31 +0530, greeshma wrote:
> I have converted .wav file to .pcm file using acodec pcm_s16le .

You should tell us how you did this.

> But  i am getting the below error
> user at user:~/ffmpeg_sources/ffmpeg$ ./ffmpeg -i ~/file.raw -acodec mlp -b:a
> 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp
[...]
> [image2 @ 0x3d6ff60] Format image2 detected only with low score of 5,
> misdetection possible!
> [rawvideo @ 0x3d70d80] Invalid pixel format.
> [image2 @ 0x3d6ff60] Failed to open codec in av_find_stream_info
> [rawvideo @ 0x3d70d80] Invalid pixel format.
> [image2 @ 0x3d6ff60] Could not find codec parameters for stream 0 (Video:
> rawvideo, none): unspecified size
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> /home/user/file.raw: could not find codec parameters

It seems you created a raw audio file. ffmpeg cannot detect it as such,
because it is raw, i.e. it has no headers or such to indicate its
format. You need to tell ffmpeg via the input file parameters (before
"-i" what type of file to expect. In your case, that should probably be
"-f s16le":

./ffmpeg -f s16le -i ~/file.raw -acodec mlp -b:a 18m -r 29.97 -strict unofficial -sample_fmt s16 ~/final.mlp

(Depending on what sort of file ~/file.raw actually is.)

> Please help me out

Hope this helps,
Moritz


More information about the ffmpeg-user mailing list