Validate audio files

From Strawberry Music Player Wiki
Jump to navigation Jump to search

If Strawberry does not play a certain file, you can validate the file with a utility.


FLAC

You can use the flac command directly.

Syntax: flac -t <filename>

Example.:

flac -t /mnt/data/Music/FLAC/Albums/Acoustic_Strawbs/Full_Bloom/01_-_Acoustic_Strawbs_-_Full_Bloom_-_Autumn.flac

 flac 1.3.4
 Copyright (C) 2000-2009  Josh Coalson, 2011-2016  Xiph.Org Foundation
 flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
 welcome to redistribute it under certain conditions.  Type `flac' for details.
 
 01_-_Acoustic_Strawbs_-_Full_Bloom_-_Autumn.flac: ok


Ogg (Vorbis, Opus, Speex, etc)

You can use a utility called ogginfo

Syntax: ogginfo <filename>

Example.:

ogginfo /home/jonas/Projects/strawberry/strawberry/tests/data/audio/strawberry.ogg

 Processing file "/home/jonas/Projects/strawberry/strawberry/tests/data/audio/strawberry.ogg"...
 
 New logical stream (#1, serial: ab38ff06): type vorbis
 Vorbis headers parsed for stream 1, information follows...
 Version: 0
 Vendor: Lavf58.29.100
 Channels: 1
 Rate: 22050
 
 Nominal bitrate: 40,222000 kb/s
 Upper bitrate not set
 Lower bitrate not set
 User comments section follows...
 	ALBUM=test
 	ALBUMARTIST=test

ARTIST=test COMMENT=test COMPILATION=0 COMPOSER=test CONTENT GROUP=test DATE=2000 DISCNUMBER=1 ENCODER=Lavc58.54.100 libvorbis GENRE=test LYRICS=test PERFORMER=test TITLE=test TRACKNUMBER=1

 Vorbis stream 1:

Total data length: 8574 bytes Playback length: 0m:01.635s Average bitrate: 41,934555 kb/s

 Logical stream 1 ended


MP3

You can use a utility called mp3check (https://icculus.org/mp3check/)

Syntax: mp3check -e <filename>

Example.:

mp3check -e /mnt/data/Music/MP3/Albums/Jon_English/The_Best_Of_Jon_English/01_-_Jon_English_-_The_Best_Of_Jon_English_-_All_Together_Now.mp3

 1544 bytes of junk before first frame header
 valid id3 tag trailer v1.1 found