Looking at more details - 3h:22min relates to a WAV header size field
which has a width 32 bits.
Flac headers have a field size of 36 bits - so I'm guessing the original
problem occurred when encoding somehow with a WAV intermediary.

Use metaflac to confirm whether the file header is incorrect
e.g

Code:
--------------------
    
  metaflac --show-total-samples testfile.flc
  
--------------------

or for full dump of STREAMINFO


Code:
--------------------
    
  metaflac --list --block-type=STREAMINFO  testfile.flc
  
--------------------


output will be something like

Code:
--------------------
    
  METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4096 samples
  maximum blocksize: 4096 samples
  minimum framesize: 401 bytes
  maximum framesize: 9336 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 8221416
  
--------------------


The following command re-writes the file header correctly without losing
metadata. I think it involves a decode and re-encode so may take time. 
I tried variations of "-c:a copy" options to avoid decode/encode but
STREAMINFO was not rewritten.

Code:
--------------------
    
  ffmpeg -i input.flc  -f flac output.flc
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=116230

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping

Reply via email to