IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Include an image in ogg
kolossal
post Feb 14 2007, 21:39
Post #1





Group: Members
Posts: 12
Joined: 14-February 07
Member No.: 40630



Hi all,
where would i find some references on how to include an image (cover art) in a ogg file, using a command line tool for linux (oggenc) ?

I need to know which size are allowed/suggested, which formats (jpg or png), etc.
Thanks for your help!
Go to the top of the page
+Quote Post
pepoluan
post Feb 16 2007, 10:14
Post #2





Group: Members
Posts: 1455
Joined: 22-November 05
From: Jakarta
Member No.: 25929



IIRC Ogg Vorbis spec does not explicitly support coverart embedding in the .ogg file.

That said, if you really want to embed a coverart, you can embed a Base64-encoded file into your own custom tag.


--------------------
Nobody is Perfect.
I am Nobody.

http://pandu.poluan.info
Go to the top of the page
+Quote Post
ckjnigel
post Feb 20 2007, 07:19
Post #3





Group: Members
Posts: 218
Joined: 12-October 01
Member No.: 278



Okay, I suppose people are aware thatMP3Tag and Softpointer Audioshell both permit one to embed a jpg, but neither will detect what the other did. So, is it a waste of effort to attempt it with either?
I'm interested mainly because the Canola player for Nokia N800 seems to be able to display art -- it looks great with MP3s.
Go to the top of the page
+Quote Post
Alex B
post Feb 20 2007, 08:08
Post #4





Group: Members
Posts: 1303
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



QUOTE (ckjnigel @ Feb 20 2007, 08:19) *
Okay, I suppose people are aware thatMP3Tag and Softpointer Audioshell both permit one to embed a jpg, but neither will detect what the other did. So, is it a waste of effort to attempt it with either?

J. River Media Center (ver. 9 - 12) has used the Base64 system for years. It can convert a binary image to Base64 encoded text so that it can be placed in a Vorbis comment. JRMC can display embedded Ogg Vorbis cover art in its thumbnail views and visualizations. Softpointer has adopted this Base64 system too (Tag&Rename and AudioShell).

Florian's Mp3tag (http://www.mp3tag.de/en/) does not allow adding cover art to Vorbis comments (yet?). Perhaps you mean some other program with "MP3Tag".


--------------------
http://listening-tests.freetzi.com
Go to the top of the page
+Quote Post
ckjnigel
post Feb 20 2007, 19:59
Post #5





Group: Members
Posts: 218
Joined: 12-October 01
Member No.: 278



QUOTE (Alex B @ Feb 20 2007, 02:08) *
Florian's Mp3tag (http://www.mp3tag.de/en/) does not allow adding cover art to Vorbis comments (yet?). Perhaps you mean some other program with "MP3Tag".

I did mean Florian's project: I right-click on the CD pic at lower left, select image, and write tag to file. When one views the files in MP3Tag, the cover is displayed. This was with development builds e and f of this month.
Go to the top of the page
+Quote Post
kjoonlee
post Feb 20 2007, 20:35
Post #6





Group: Members
Posts: 2526
Joined: 25-July 02
From: South Korea
Member No.: 2782



QUOTE (pepoluan @ Feb 16 2007, 10:14) *
IIRC Ogg Vorbis spec does not explicitly support coverart embedding in the .ogg file.

That said, if you really want to embed a coverart, you can embed a Base64-encoded file into your own custom tag.

I think that's because the Ogg spec implictly supports cover-art embedding, because you can mux any file in an .ogg file. wink.gif


--------------------
http://blacksun.ivyro.net/vorbis/vorbisfaq.htm
Go to the top of the page
+Quote Post
gameplaya15143
post Feb 21 2007, 00:10
Post #7





Group: Members
Posts: 484
Joined: 8-January 06
From: Earth
Member No.: 26978



QUOTE (kjoonlee @ Feb 20 2007, 14:35) *
I think that's because the Ogg spec implictly supports cover-art embedding, because you can mux any file in an .ogg file. wink.gif

Exactly, but I don't know of anything that can mux a picture in.


--------------------
Vorbis-q0-lowpass99
lame3.93.1-q5-V9-k-nspsytune
Go to the top of the page
+Quote Post
Alex B
post Feb 21 2007, 02:39
Post #8





Group: Members
Posts: 1303
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



QUOTE (ckjnigel @ Feb 20 2007, 20:59) *
I did mean Florian's project: I right-click on the CD pic at lower left, select image, and write tag to file. When one views the files in MP3Tag, the cover is displayed. This was with development builds e and f of this month.


I tested that before posting. The lower left corner display has a bug. It should not allow adding cover art because that feature is not available with Ogg Vorbis files. After adding an image the display shows it momentarily, but on next data refresh it is gone. In the "Extented Tags" window you can see the reality. The cover art options are disabled.

(Mp3tag v.2.37f)


--------------------
http://listening-tests.freetzi.com
Go to the top of the page
+Quote Post
SebastianG
post Feb 21 2007, 03:01
Post #9





Group: Developer
Posts: 1317
Joined: 20-March 04
From: Göttingen (DE)
Member No.: 12875



QUOTE (kjoonlee @ Feb 20 2007, 20:35) *
I think that's because the Ogg spec implictly supports cover-art embedding, because you can mux any file in an .ogg file. wink.gif

Now when you say "mux"....

You can certainly produce valid Ogg streams with additional data muxed as another logical stream. But this will make most if not all Vorbis players reject the stream (they don't like non-Vorbis streams). Also, due to the lack of a specification of how to embed pictures there's no right or wrong. Don't expect Vorbis players to recognise something you've just made up.

You can certainly base64-encode a JPEG image and include it as a tag. It seems a wannabe-quasi-standard has already evolved. But since this isn't official either there's a slim chance that files with cover art embedded as base64-encoded tag can cause some players to behave in a weird fashion. For instance, if your player doesn't expect such really loooong ascii tags and likes to display all of'em by default you'll see a lot of garbage on your screen...

Though I personally don't like the 2nd solution (the comment packet is misused) it looks like the best approach which doesn't break too much.

Edit: Ogg Skeleton may be a way to describe a secondary stream (holding a picture) as album art in the distant future.

Cheers!
SG

This post has been edited by SebastianG: Feb 24 2007, 19:40
Go to the top of the page
+Quote Post
PatchWorKs
post Feb 22 2007, 09:18
Post #10





Group: Members
Posts: 498
Joined: 2-October 01
Member No.: 168



Uhm... not so clear:
1. is there any tool to achieve this ?
2. which players are able to display the embedded pic, then ?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th July 2014 - 21:11