Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1

    flac2mp3 with ffmpeg and metatags

    Hello Forum,

    I like to convert flc to mp3 with ffmpeg. For that, I have made a custom-convert.conf like:

    flc mp3 * *
    # IFT:{START=-ss %s}U:{END=-t %w}D:{RESAMPLE=-ar %d}B:{BITRATE=-B %B}
    [ffmpeg] $START$ -i $FILE$ $END$ -map_metadata 0 -id3v2_version 3 -c:v copy -f mp3 -qscale:a $QUALITY$ -

    It does convert flac files to mp3 with the right name. But the metatag informatiion is not included.

    I have proven with htop, that this commandline is used.

    Does anybody know what am I doing wrong?

    By the way, this way is much slower, compared to the standard way. But I hoped to save the metainformation. Because Squeeze Comander App is abel to download files from the server with transcoding. But that is no good without tag informations in the file.

    Greetings


    Controllers Hardware: 1XTouch,2XRadio,1XBoom,1XSB3,ARCHOS 35HC,piCorePlayer
    Controllers Software: squeezelite LINUX, Squeeze Player android
    Steuerung: Squeeze Comander
    Plugins: Dynamic Mix; Custom Browse, TrackStat; Custom Scan; MusicInfoSCR; LazySearch 2 and many more

    LMS 7.8.1 (UBUNTU 10.04) und MusicIP Server nach folgender Anleitung:
    http://powersat.de/showthread.php?49...sungsvorschlag

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,232
    I think metadata is picked up when all fiels are scanned and the database is built and this is then used for display - the metadata in the file is ignored when it is being played.

    Streamed MP3 has simple metadata (e.g. StreamTitle) inline using ICY.

  3. #3

    solved with oggenc

    So it works fine with ogg instead of mp3:

    custom-convert.conf

    Code:
    flc ogg * *
    	# IFT:{START=-ss %s}U:{END=-t %w}D:{RESAMPLE=-ar %d}B:{BITRATE=-B %B}
    	[oggenc] -Q -q$QUALITY$ -o - $FILE$
    I use this oggenc which supports native flac decoding and converting to ogg:

    http://repo.or.cz/w/vorbis-lancer-gc...b/HEAD:/oggenc

    Squezze Comander can be set up to ask for ogg files instead of mp3.

    It might be helpfull for others as well.


    Controllers Hardware: 1XTouch,2XRadio,1XBoom,1XSB3,ARCHOS 35HC,piCorePlayer
    Controllers Software: squeezelite LINUX, Squeeze Player android
    Steuerung: Squeeze Comander
    Plugins: Dynamic Mix; Custom Browse, TrackStat; Custom Scan; MusicInfoSCR; LazySearch 2 and many more

    LMS 7.8.1 (UBUNTU 10.04) und MusicIP Server nach folgender Anleitung:
    http://powersat.de/showthread.php?49...sungsvorschlag

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,232
    If you are streaming a file - LMS should be using the metadata saved in the file during scanning.

    So any metadata in the file will be displayed regardless of its transcoding.

    Why are you using ffmpeg to transcode and not the default LMS transcode using flac / lame. If it is because metadata is not being displayed - then the problem is in the flac file scanning.

    An MP3 stream is sent to a mplayer - the MP3 decoders in the players do not process metadata and so cannot send it back to LMS to display except for streaming MP3 direct with ICY "streamTitle".


    edit:
    I've just realised - what you really want is to save the transcoded file and not play it. I can't help anymore.
    Last edited by bpa; 2017-10-06 at 15:11.

Tags for this Thread

Posting Permissions

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