[Vorbis-dev] Enhanced Podcasts with Ogg Vorbis (Chapter Marks)

Ian Malone ibmalone at gmail.com
Sat Apr 14 15:34:12 PDT 2012


On 13 April 2012 10:04, Silvia Pfeiffer <silvia at silvia-pfeiffer.de> wrote:
> For those of you wanting to do experiments, get yourself a file from
> http://www.vorbis.com/music/ and run the vorbiscomment program (which
> you can get from the vorbis-tools package). Use a base64 encoded image
> (I have a command-line tool called "base64") as the value of a field
> (e.g. call the field BLOCK_PICTURE) for the vorbiscomment program.
> Repeat that until you get a file that your HW player doesn't play any
> more.
>

The more adventurous could also use this:
http://pastebin.com/xXhPyZuQ
It's a very basic Perl-based creator for Base64 FLAC blocks, as used
in METADATA_BLOCK_PICTURE
http://wiki.xiph.org/VorbisComment#METADATA_BLOCK_PICTURE
It will not currently do png files, though that could be added trivially.

I forgot to add usage information, but save it as jpegtoblock.pl, make
it executable and then:
./jpegtoblock.pl  -i DSCN7376.JPG -o flacblock
Will create a base64 encoded block (in flacbloc) from DSCN7376.JPG.
Optional arguments are:
-desc "X"
Add a description string
-type N
The ID3V2 picture type
http://flac.sourceforge.net/format.html#metadata_block_picture

You'll need to add the "METADATA_BLOCK_PICTURE=" which makes it into a
comment file yourself.

I suppose I'd best get around to trying it out myself.

-- 
imalone
http://ibmalone.blogspot.co.uk


More information about the Vorbis-dev mailing list