How do you edit Video ID3v2 tags in Java

I am researching ID3V2 tags and video formats such as MP4 and WMV. The top two ID3V2 tag editing libraries are as follows:

Entagged and Jaudiotagger

Both of them only support audio formats. (They support M4A and WMA, but not MP4 and WMV) First, I guess why this is so? Then these are any alternatives.

0
source share
2 answers

It looks like JID3 will do the trick. It has no expansion restrictions.

http://jid3.blinkenlights.org/

Now, I hope someone finds this open source project designer!

The following is an example of using multiple file formats:

public class JITExample {
  private static MediaFile audioFile;

  public static void main(String... megaThrustersAreGo) {

    //File file = new File("/home/rhigdon/Desktop/project-voltron/test-files/video.mp4");
    //File file = new File("/home/rhigdon/Desktop/project-voltron/test-files/movGetOutTheWay_iPhone_Cellular_1.3gp");
    File file = new File("/home/rhigdon/Desktop/project-voltron/test-files/movGetOutTheWay_HD_WMV_720p_1.wmv");
    //Entagged Soltuion

    audioFile = new MP3File(file);


    try {
      ID3V2_3_0Tag tag = new ID3V2_3_0Tag();
      tag.setArtist("Ryan Higdon");
      tag.setAlbum("Ryan Funky Beats");
      audioFile.setID3Tag(tag);
      audioFile.sync();
      for (ID3Tag eachTag : audioFile.getTags()) {
        System.out.println(eachTag.toString());
      }

    } catch (ID3Exception e) {
      e.printStackTrace();
      System.out.println("something bad happened");
    }


  }
}
+1
source

In accordance with the page presented here http://www.id3.org/Introduction, ogg, wma aac , ID3v2.
ID3v2 mp3: s - JLayer. JMF, J2SE, J2ME.

0

All Articles