LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-08-2008, 08:52 AM   #1
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Why have several podcasts started using the flac codec instead vorbis?


I normally download podcasts in Ogg-vorbis if available. Then I'll run a script to convert them to mp3's if I want to use my media player.

This past weekend, I've been unable to tag a number of podcasts using amarok or easytag and my conversion script sometimes doesn't work. Using mplayer -identify and tcprobe, I found out that they started using the flac codec.

The latest Techie Geek is OK. Ditto for many others. So I don't think the problem is at my end. Plus I'm seeing the same thing on two different computers.

Bad Podcasts:
Linux Action Show #089 isn't.
Linux Outlaws Episodes #063 - #066
Bad Apples Linuxcast 2x18

Has anyone else noticed this, or an unability to add pictures to the tags?

In case anyone is interested here is the script I use for converting oggs to mp3s.
Note that I don't copy the image however.
Code:
cat ~/bin/get_tags
get_tags()
{
    # clear out old tags
    ALBUM='';
    ARTIST='';
    DATE='';
    GENRE='';
    TITLE='';
    # the tags returned by ogginfo are of the form NAME=VALUE.
    # put single quotes around the values to encapsulate white space.
    # eval will set the tag variables ALBUM, ARTIST, DATE, GENRE, TITLE
    eval $(ogginfo ${1} | sed '/[A-Z][A-Z]*=/!d;s/=\(.*\)$/='"'"'\1'"'"'/;s/^\t//')
}

jschiwal@qosmio:~> cat bin/ogg2mp3
#!/usr/bin/env  bash
# convert ogg file to wav file using mplayer

# ${1} is the ogg filename
oggfile="${1}"
echo "$oggfile"  # debug
mplayer -vo null -vc null -ao pcm:waveheader:file="${oggfile%.ogg}.wav" "${oggfile}"

# Extract the tag variables TITLE, YEAR, ARTIST, ALBUM
# define get_tags() function
. ~/bin/get_tags "${oggfile}"
get_tags ${oggfile}

if [ -d $DATE ]; then YEAR=$DATE; fi

# Convert .wav file to .mp3 file.  Set the tags as well.
lame "${oggfile%.ogg}.wav"      \
            --tt "${TITLE}"  \
            --ty "${DATE}"   \
            --ta "${ARTIST}" \
            --tl "${ALBUM}"  \
            --tg "${GENRE}"  \
            --tn "${TRACKNUMBER}" \
     "${oggfile%.ogg}.mp3"

# remove the temporary file
rm "${oggfile%.ogg}.wav"
 
Old 01-07-2009, 12:40 PM   #2
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Rep: Reputation: 37
sounds really strange they'd be using flac. You'd think they'd go to speex instead. Plus flac would be a tremendous waste of bandwidth. Also, I've used easytag with flacs before. Are you sure that's your problem?
 
Old 01-30-2009, 04:36 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Original Poster
Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sorry that I lost track of my own thread. I guess if you think about it, it wouldn't be the audio codec used. One example is LinuxOutlaws63.ogg which mplayer does play using the ffmpeg vorbis decoder. But ogginfo chokes badly and even the bitrate and freq. info is invalid in easy tag. Ogg is a file format standard, and the headers are probably located before the audio stream. I don't know if auxiliary information is "muxed in" or if a muxer will just multiplex audio & video streams. Need to read up I guess.

Code:
Playing LinuxOutlaws63.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
[Ogg] stream 0: audio (Vorbis), -aid 0
libavformat file format detected.
[ogg @ 0x1398e40]-33526 bytes of comment header remain
[ogg @ 0x1398e40]truncated comment header, 1 comments not found
[lavf] Audio stream found, -aid 0
Clip info:
 author: Dan Lynch and Fabian Scherschel
 album: The Linux Outlaws
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, s16le, 80.0 kbit/11.34% (ratio: 10000->88200)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)

Thanks for pointing out the speex info, but it looks like the files I am having problems with aren't actually ogg files. According to mplayer which distinguishes between "libavcodec file format" and "ogg file format".

Code:
Playing Outlaws52.ogg.
ID_AUDIO_ID=0
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
Clip info:
 Album: linuxoutlaws.com
ID_CLIP_INFO_NAME0=Album
ID_CLIP_INFO_VALUE0=linuxoutlaws.com
 Artist: The Linux Outlaws
ID_CLIP_INFO_NAME1=Artist
ID_CLIP_INFO_VALUE1=The Linux Outlaws
So I have partially answered my own question.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Started nautilus as root....problems started Chaosbringer SUSE / openSUSE 0 11-05-2008 03:00 AM
ripping to FLAC and vorbis in tandem? bl0tt0 Slackware 3 07-21-2006 06:22 PM
Installing Flac audio codec in suse 9.2 Moroshni SUSE / openSUSE 1 06-29-2005 04:45 AM
how to install divx codec?where to get codec ginda Linux - Newbie 1 10-22-2004 12:47 PM
linking vorbis/codec.h to gcc pillu Programming 2 10-09-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration