Ogg files missing the metadata #43

Open
opened 2024-06-04 11:42:27 +00:00 by ken_fallon · 5 comments
Owner

folky tells us there is a issue with the ogg metadata

folky tells us there is a issue with the ogg metadata
Owner

The MP3 is OK:

$ fix_tags ~/HPR/InternetArchive/hpr4131.mp3 
/home/cendjm/HPR/InternetArchive/hpr4131.mp3
album     : Hacker Public Radio
artist    : HPR Volunteers
comment   : https://hackerpublicradio.org Explicit; HPR Volunteers talk about shows released and comments posted in May 2024 The license is CC-BY-SA
genre     : Podcast
length    : 01:50:36 (6636 sec)
title     : HPR Community News for May 2024
track     : 4131
year      : 2024

The OGG is not:

$ fix_tags ~/HPR/InternetArchive/hpr4131.ogg 
/home/cendjm/HPR/InternetArchive/hpr4131.ogg
album     : 
artist    : 
comment   : 
genre     : 
length    : 01:50:35 (6635 sec)
title     : 
track     : 0
year      : 0
The MP3 is OK: ``` $ fix_tags ~/HPR/InternetArchive/hpr4131.mp3 /home/cendjm/HPR/InternetArchive/hpr4131.mp3 album : Hacker Public Radio artist : HPR Volunteers comment : https://hackerpublicradio.org Explicit; HPR Volunteers talk about shows released and comments posted in May 2024 The license is CC-BY-SA genre : Podcast length : 01:50:36 (6636 sec) title : HPR Community News for May 2024 track : 4131 year : 2024 ``` The OGG is not: ``` $ fix_tags ~/HPR/InternetArchive/hpr4131.ogg /home/cendjm/HPR/InternetArchive/hpr4131.ogg album : artist : comment : genre : length : 01:50:35 (6635 sec) title : track : 0 year : 0 ```
Author
Owner

Looks like a issue with fix_tags

$ while read -r line
do
  field=$(echo $line | awk -F ':' '{print $1}')
  case $field in
  "HPR_summary")
      HPR_summary=$(echo $line | grep "HPR_summary: " | cut -c 14- )
      continue
      ;;
  "HPR_album")
     HPR_album=$(echo $line | grep "HPR_album: " | cut -c 12- )
      continue
      ;;
  "HPR_artist")
    HPR_artist=$(echo $line | grep "HPR_artist: "  | cut -c 13- )
      continue
      ;;
  "HPR_comment")
    HPR_comment=$(echo $line | grep "HPR_comment: " | cut -c 14- )
      continue
      ;;
  "HPR_genre")
    HPR_genre=$(echo $line | grep "HPR_genre: " | cut -c 12- )
      continue
      ;;
  "HPR_title")
    HPR_title=$(echo $line | grep "HPR_title: " | cut -c 12- )
      continue
      ;;
  "HPR_track")
    HPR_track=$(echo $line | grep "HPR_track: " | cut -c 12- )
      continue
      ;;
  "HPR_year")
    HPR_year=$(echo $line | grep "HPR_year: " | cut -c 11- )
      continue
      ;;
  "HPR_duration")
    HPR_duration=$(echo $line | grep "HPR_duration: " | cut -c 15- )
      continue
      ;;
  "HPR_explicit")
    HPR_explicit=$(echo $line | grep "HPR_explicit: " | cut -c 15- )
      continue
      ;;
  "HPR_license")
    HPR_license=$(echo $line | grep "HPR_license: " | cut -c 14- )
      continue
      ;;
  esac
done < <( curl --silent --netrc-file ${HOME}/.netrc "https://hub.hackerpublicradio.org/cms/say.php?id=${ep_num}" )
$ echo "album       : $HPR_album"
echo "artist      : $HPR_artist"
echo "comment     : $HPR_comment"
echo "genre       : $HPR_genre"
echo "title       : $HPR_title"
echo "track       : $HPR_track"
echo "year        : $HPR_year"
echo "summary     : $HPR_summary"
echo "duration    : $HPR_duration"
echo "explicit    : $HPR_explicit"
echo "license     : $HPR_license"
echo "media_dir   : ${media_dir}"
echo "mediafile   : ${mediafile}"
echo "fname       : ${fname}"
echo "ext         : ${ext}"
album       : Hacker Public Radio
artist      : enistello
comment     : https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful
genre       : Podcast
title       : Learning to touch-type using the Dvorak keyboard layout
track       : 4143
year        : 2024
summary     : This is Hacker Public Radio episode 4143 for Wednesday the 19th of June 2024. Todays show is entitled. Learning to touch-type using the Dvorak keyboard layout. . It is hosted by ennis tello, and is about 9 minutes long. It carries a clean flag. . The summary is. Why I chose Dvorak and some tools I found useful
duration    : 545
explicit    : Clean
license     : CC-BY-SA
media_dir   : 
mediafile   : 
fname       : 
ext         : 
$ fix_tags -album="$HPR_album" -artist="$HPR_artist" -comment="${HPR_comment} The license is ${HPR_license}" -genre="$HPR_genre" -title="$HPR_title" -track="$HPR_track" -year="$HPR_year" hpr4143.ogg
hpr4143.ogg
File hpr4143.ogg apparently does not contain tags

$ echo fix_tags -album="$HPR_album" -artist="$HPR_artist" -comment="${HPR_comment} The license is ${HPR_license}" -genre="$HPR_genre" -title="$HPR_title" -track="$HPR_track" -year="$HPR_year" hpr4143.ogg
fix_tags -album=Hacker Public Radio -artist=enistello -comment=https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful The license is CC-BY-SA -genre=Podcast -title=Learning to touch-type using the Dvorak keyboard layout -track=4143 -year=2024 hpr4143.ogg
$ 
Looks like a issue with `fix_tags` ``` $ while read -r line do field=$(echo $line | awk -F ':' '{print $1}') case $field in "HPR_summary") HPR_summary=$(echo $line | grep "HPR_summary: " | cut -c 14- ) continue ;; "HPR_album") HPR_album=$(echo $line | grep "HPR_album: " | cut -c 12- ) continue ;; "HPR_artist") HPR_artist=$(echo $line | grep "HPR_artist: " | cut -c 13- ) continue ;; "HPR_comment") HPR_comment=$(echo $line | grep "HPR_comment: " | cut -c 14- ) continue ;; "HPR_genre") HPR_genre=$(echo $line | grep "HPR_genre: " | cut -c 12- ) continue ;; "HPR_title") HPR_title=$(echo $line | grep "HPR_title: " | cut -c 12- ) continue ;; "HPR_track") HPR_track=$(echo $line | grep "HPR_track: " | cut -c 12- ) continue ;; "HPR_year") HPR_year=$(echo $line | grep "HPR_year: " | cut -c 11- ) continue ;; "HPR_duration") HPR_duration=$(echo $line | grep "HPR_duration: " | cut -c 15- ) continue ;; "HPR_explicit") HPR_explicit=$(echo $line | grep "HPR_explicit: " | cut -c 15- ) continue ;; "HPR_license") HPR_license=$(echo $line | grep "HPR_license: " | cut -c 14- ) continue ;; esac done < <( curl --silent --netrc-file ${HOME}/.netrc "https://hub.hackerpublicradio.org/cms/say.php?id=${ep_num}" ) $ echo "album : $HPR_album" echo "artist : $HPR_artist" echo "comment : $HPR_comment" echo "genre : $HPR_genre" echo "title : $HPR_title" echo "track : $HPR_track" echo "year : $HPR_year" echo "summary : $HPR_summary" echo "duration : $HPR_duration" echo "explicit : $HPR_explicit" echo "license : $HPR_license" echo "media_dir : ${media_dir}" echo "mediafile : ${mediafile}" echo "fname : ${fname}" echo "ext : ${ext}" album : Hacker Public Radio artist : enistello comment : https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful genre : Podcast title : Learning to touch-type using the Dvorak keyboard layout track : 4143 year : 2024 summary : This is Hacker Public Radio episode 4143 for Wednesday the 19th of June 2024. Todays show is entitled. Learning to touch-type using the Dvorak keyboard layout. . It is hosted by ennis tello, and is about 9 minutes long. It carries a clean flag. . The summary is. Why I chose Dvorak and some tools I found useful duration : 545 explicit : Clean license : CC-BY-SA media_dir : mediafile : fname : ext : $ fix_tags -album="$HPR_album" -artist="$HPR_artist" -comment="${HPR_comment} The license is ${HPR_license}" -genre="$HPR_genre" -title="$HPR_title" -track="$HPR_track" -year="$HPR_year" hpr4143.ogg hpr4143.ogg File hpr4143.ogg apparently does not contain tags $ echo fix_tags -album="$HPR_album" -artist="$HPR_artist" -comment="${HPR_comment} The license is ${HPR_license}" -genre="$HPR_genre" -title="$HPR_title" -track="$HPR_track" -year="$HPR_year" hpr4143.ogg fix_tags -album=Hacker Public Radio -artist=enistello -comment=https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful The license is CC-BY-SA -genre=Podcast -title=Learning to touch-type using the Dvorak keyboard layout -track=4143 -year=2024 hpr4143.ogg $ ```
Owner

Looks as if the version you have is broken. It's odd that the script reports "File hpr4143.ogg apparently does not contain tags". It is supposed to only do that when presented with a file that doesn't contain audio. I don't see this when I use it to check on what tags are present.

Most common cause of problems is the TagLib library itself or the Perl Audio::TagLib module.

The version I run on my local PC worked:

$ fix_tags -album='Hacker Public Radio' -artist=enistello -comment='https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful The license is CC-BY-SA' -genre=Podcast -title='Learning to touch-type using the Dvorak keyboard layout' -track=4143 -year=2024 hpr4143/hpr4143.ogg
hpr4143/hpr4143.ogg
album     : 
artist    : 
comment   : 
genre     : 
length    : 00:10:26 (626 sec)
title     : 
track     : 0
year      : 0
Changing album to 'Hacker Public Radio'
Changing artist to 'enistello'
Changing comment to 'https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful The license is CC-BY-SA'
Changing genre to 'Podcast'
Changing title to 'Learning to touch-type using the Dvorak keyboard layout'
Changing track to '4143'
Changing year to '2024'

This was run against a copy downloaded from archive.org.

Looks as if the version you have is broken. It's odd that the script reports "_File hpr4143.ogg apparently does not contain tags_". It is supposed to only do that when presented with a file that doesn't contain audio. I don't see this when I use it to check on what tags are present. Most common cause of problems is the `TagLib` library itself or the Perl `Audio::TagLib` module. The version I run on my local PC worked: ``` $ fix_tags -album='Hacker Public Radio' -artist=enistello -comment='https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful The license is CC-BY-SA' -genre=Podcast -title='Learning to touch-type using the Dvorak keyboard layout' -track=4143 -year=2024 hpr4143/hpr4143.ogg hpr4143/hpr4143.ogg album : artist : comment : genre : length : 00:10:26 (626 sec) title : track : 0 year : 0 Changing album to 'Hacker Public Radio' Changing artist to 'enistello' Changing comment to 'https://hackerpublicradio.org Clean; Why I chose Dvorak and some tools I found useful The license is CC-BY-SA' Changing genre to 'Podcast' Changing title to 'Learning to touch-type using the Dvorak keyboard layout' Changing track to '4143' Changing year to '2024' ``` This was run against a copy downloaded from archive.org.
Owner

On Debian the TagLib library required is libtag1-dev. I have 1.13.1-1+b1 on Debian, but the latest version seems to be 2.0. See https://taglib.org/.

The Perl module is:

    CPAN_USERID  GLEACH (Geoffrey Leach <geoffleach.gl@gmail.com>)
    CPAN_VERSION 1.67
    CPAN_FILE    G/GL/GLEACH/Audio-TagLib-1.67.tar.gz
    UPLOAD_DATE  2017-01-30
    MANPAGE      Audio::TagLib -  A library for reading and editing audio meta data, commonly known as "tags".
    INST_FILE    /usr/local/lib/x86_64-linux-gnu/perl/5.38.2/Audio/TagLib.pm
    INST_VERSION 1.67
On Debian the TagLib library required is `libtag1-dev`. I have `1.13.1-1+b1` on Debian, but the latest version seems to be 2.0. See `https://taglib.org/`. The Perl module is: ``` CPAN_USERID GLEACH (Geoffrey Leach <geoffleach.gl@gmail.com>) CPAN_VERSION 1.67 CPAN_FILE G/GL/GLEACH/Audio-TagLib-1.67.tar.gz UPLOAD_DATE 2017-01-30 MANPAGE Audio::TagLib - A library for reading and editing audio meta data, commonly known as "tags". INST_FILE /usr/local/lib/x86_64-linux-gnu/perl/5.38.2/Audio/TagLib.pm INST_VERSION 1.67 ```
Author
Owner
https://repo.anhonesthost.net/HPR/hpr_documentation/wiki/Fixing-audio-tags-on-uploaded-shows
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HPR/hpr_hub#43
No description provided.