FLAC decoding fails

Dears,

I am trying to play flac files on my BeagleBoard. All the flac files
were pre-compressed on a PC, and some of them are unable to be decoded
properly on the BeagleBoard. I got the error message as below:

$flac -t ~/Music/test.flac

test.flac: testing, 0% completetest.flac: *** Got error code
2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH

test.flac: ERROR while decoding data
           state = FLAC__STREAM_DECODER_READ_FRAME

I have tested flac 1.1.3, 1.2.0, and a number of releases of 1.2.1,
the results are all the same. However, these files can be decoded
properly on the PCs (Win & Linux). This makes me confuse.

Hi,

I have developed a new camera driver for lbmc2m1 board. But when I change the boot.scr (using editbootscr utility) for camera=lbmc2m1 in place of lbmc3m1 and rebooted the system, I don't see string cameraboard_name (in file "board-omap3beagle.c") having value lbmc2m1 it still have value lbmc3m1. Do I need to change some where else also?

Also is there any guide to explain how boot.scr parameters i.e. camera type is transferred into memory (string cameraboard_name).

Thanks,
Amit

If it helps, I've been using GStreamer successfully on the Beagleboard to
decode and play a range of FLAC files.

Alex

The BeagleBoard I am using is xM with Ubuntu 10.10 installed. If I am
correct, GStreamer also evoke the libflac8 runtime for FLAC decoding.
In my case, those FLAC files can't be decoded by flac are also can't
be played back properly by GStreamer. For this problematic files, the
GStreamer-based app halts decoding after a minute of playing, and the
error message is shown:

Gstreamer error: <GError at 0x42f19420>,'gstflacdec.c(666):
gst_flac_dec_error_cb (): /GstPlayBin2:player/
GstURIDecodeBin:uridecodebin1/GstDecodeBin2:decodebin21/
GstFlacDec:flacdec94:\nCRC mismatch (2)'

However, these problematic FLAC files are all-right on an x86 PC (Win
& Ubuntu). My friend tried to test the same files on his BeagleBoard
xM (with Ubuntu 10.04 installed), he got another type of error:

test.flac: testing, 75% complete

test.flac: ERROR while decoding data
state = FLAC_STREAMDECODERENDOF_STREAM

Does the flac have something hardware-depend features that are
incompatible with BeagleBoard xM?

WF <huangs@gmail.com> writes:

Dears,

I am trying to play flac files on my BeagleBoard. All the flac files
were pre-compressed on a PC, and some of them are unable to be decoded
properly on the BeagleBoard. I got the error message as below:

$flac -t ~/Music/test.flac

test.flac: testing, 0% completetest.flac: *** Got error code
2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH

test.flac: ERROR while decoding data
           state = FLAC__STREAM_DECODER_READ_FRAME

I have tested flac 1.1.3, 1.2.0, and a number of releases of 1.2.1,
the results are all the same. However, these files can be decoded
properly on the PCs (Win & Linux). This makes me confuse.

Try using FFmpeg.

Can you load up a sample somewhere, so the developers (not me) have
something to test with.

Thanks,

Paul