gBroutin / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
0 stars 0 forks source link

empty DATE in tagsFound of Bus.Tag #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. setup playbin and connect Bus.Tag listener to bus
2. set input file (mp3 or ogg)
3. output tagsFound in listener

What is the expected output? What do you see instead?
The files contain a Date (tested with mp3 and ogg) but I see only that a
tagName "date" is found but tagData is an empty String. Other tags (title,
artist, album, track-count, track-number etc. work fine)

What version of the product are you using? On what operating system?
OS:
Linux 2.6.31.12-174.2.22.fc12.x86_64 #1 SMP Fri Feb 19 18:55:03 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux

gstreamer-0.10.25.1-3.fc12.x86_64
gstreamer-java-1.3-2.fc12.x86_64
jna-3.2.4-3.fc12.x86_64

Please provide any additional information below.
I tried it with java 1.6 and java 1.7

java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b76)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b05, mixed mode)

Original issue reported on code.google.com by mario.br...@gmail.com on 2 Mar 2010 at 10:23

GoogleCodeExporter commented 8 years ago
as usual:-) is it with native gstreamer?

Original comment by lfar...@gmail.com on 26 Apr 2010 at 1:09

GoogleCodeExporter commented 8 years ago
Native gstreamer is OK. Even the TagList argument of tagsFound(...) shows the 
date
when printed with System.out.println(arg1):

taglist, 
album=(string)"You\ Rock\ My\ World", 
comment=(string)Single, 
title=(string)"You\ Rock\ My\ World\ \(A\ Cappella\)", 
artist=(string)"Michael\ Jackson", 
date=(GstDate)2001-01-01, 
genre=(string)Pop, 
track-count=(guint)5, 
track-number=(guint)5, 
encoder=(string)"Xiph.Org\ libVorbis\ I\ 20040629", 
encoder-version=(guint)0, 
audio-codec=(string)Vorbis, 
nominal-bitrate=(guint)160000, 
bitrate=(guint)160000;

But I think the GstDate-Type seems to be not implemented.

Original comment by mario.br...@gmail.com on 28 Apr 2010 at 1:38

GoogleCodeExporter commented 8 years ago
There is a type defined in gstreamer-java called GDate that I suspect is what 
should
be used here. However its implementation seems incomplete (the class only has a
constructor and a dispose method).
The only reference to this type is in GstStructureAPI.java, and it is just a
commented out method:
boolean gst_structure_get_date(Structure structure, String fieldname, GDate 
**value);
Not sure how to finish this functionality.

Original comment by andres.c...@gmail.com on 1 May 2010 at 11:21

GoogleCodeExporter commented 8 years ago
can you attach a small example code?

Original comment by lfar...@gmail.com on 1 May 2010 at 1:09

GoogleCodeExporter commented 8 years ago
#r347 add support for GDate try with the latest svn or send example code.

Original comment by lfar...@gmail.com on 1 May 2010 at 6:25

GoogleCodeExporter commented 8 years ago
Attached test class. Compile it and run it with

java at.td.gst.Test AUDIO_FILE

It first prints the raw arg1 from tagsFound(...) which shows the 
"date=(GstDate)"
entry with a value, and then the list which I get from a loop over 
arg1.getTagNames()
and arg1.getValues(tagName).

With the current version the tag "date" in the loop is present but empty.

Please ignore my Java-code-style. I copied it from my current project and 
merged it
into a one-file-test to keep the testing simple.

Original comment by mario.br...@gmail.com on 2 May 2010 at 3:44

Attachments:

GoogleCodeExporter commented 8 years ago
give me an input file too please. with my file mp3 i can't see the date tag:-(
and show me your result.

Original comment by vitorl...@gmail.com on 2 May 2010 at 9:02

GoogleCodeExporter commented 8 years ago
OK, I attached a file and the output I see is the following (interesting: the
"date=(GstDate)2001-01-01" in the raw arg1-output and the line with "date: " 
but no
value in the output-loop over tag names and values):

processing:
taglist, container-format=(string)Ogg;
container-format: Ogg
processing:
taglist, album=(string)"You\ Rock\ My\ World", comment=(string)Single,
title=(string)"You\ Rock\ My\ World\ \(A\ Cappella\)", artist=(string)"Michael\
Jackson", date=(GstDate)2001-01-01, genre=(string)Pop, track-count=(guint)5,
track-number=(guint)5, encoder=(string)"Xiph.Org\ libVorbis\ I\ 20040629",
encoder-version=(guint)0, audio-codec=(string)Vorbis, 
nominal-bitrate=(guint)160000,
bitrate=(guint)160000;
album: You Rock My World
comment: Single
title: You Rock My World (A Cappella)
artist: Michael Jackson
date: 
genre: Pop
track-count: 5
track-number: 5
encoder: Xiph.Org libVorbis I 20040629
encoder-version: 0
audio-codec: Vorbis
nominal-bitrate: 160000
bitrate: 160000

Original comment by mario.br...@gmail.com on 3 May 2010 at 7:07

Attachments:

GoogleCodeExporter commented 8 years ago
check the latest svn version. i hope i fix it finally:-)

Original comment by lfar...@gmail.com on 3 May 2010 at 1:47