Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: ID3 v2

  1. #1
    New Coder
    Join Date
    Jan 2006
    Location
    Oslo, Norway
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ID3 v2

    Hey! I can set the id3v1 info with the function id3_set_tag() in php. But does anyone know how to set the v2 tags? I need this to be done on a webserver before outputting a mp3 file.

    Regards!
    Drømmejenta: Kristen jente som progger Python!

  • #2
    New Coder
    Join Date
    Jun 2006
    Location
    USA
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.php.net/manual/en/function.id3-set-tag.php

    It says right there in the manual, that you can set ID3 version tags.
    "Some people, when confronted with a problem, think, 'I know, I'll use regular expressions.' Now they have two problems."
    --Jamie Zawinski

  • #3
    New Coder
    Join Date
    Jan 2006
    Location
    Oslo, Norway
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Note: Currently id3_set_tag() only supports version 1.0 and 1.1.
    I want to set version 2 tags.
    Drømmejenta: Kristen jente som progger Python!

  • #4
    New Coder
    Join Date
    Jan 2006
    Location
    Oslo, Norway
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Drømmejenta: Kristen jente som progger Python!

  • #5
    New Coder
    Join Date
    Jun 2006
    Location
    USA
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jskaar
    I want to set version 2 tags.
    The link to the PHP manual provided a way. Granted, I'd assumed you'd have looked up the flags. I meant ID3 v2.x tags.

    Observe:
    PHP Code:
    <?php
    id3_set_tag
    ($file$tagArrayID3_V2_1); // Sets ID3 v2.1 tags
    id3_set_tag($file$tagArrayID3_V2_2); // Sets ID3 v2.2 tags
    id3_set_tag($file$tagArrayID3_BEST); // Lets ID3 functions determine best version
    ?>
    In either case, glad you got it working
    "Some people, when confronted with a problem, think, 'I know, I'll use regular expressions.' Now they have two problems."
    --Jamie Zawinski

  • #6
    New Coder
    Join Date
    Jan 2006
    Location
    Oslo, Norway
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, I saw that. But I didn't bother to try, because I thought this meant that this function wouldn't work with other than v1.0 and v1.1:
    Note: Currently id3_set_tag() only supports version 1.0 and 1.1.
    But anyway, now I found a way without needing to install the id3 extension on the server.

    Thanks for helping me, though!
    Drømmejenta: Kristen jente som progger Python!

  • #7
    New Coder
    Join Date
    Jun 2006
    Location
    USA
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ugh, sorry, I breezed over the manual pretty quickly, mainly hunting for syntax.

    I suppose I'll come across my fair share of problems when I decide to combine PHP and mp3. Thanks for clarifying
    "Some people, when confronted with a problem, think, 'I know, I'll use regular expressions.' Now they have two problems."
    --Jamie Zawinski


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •