Skip to content

ffmpeg -formats and alac #1

@jonnyrobbie

Description

@jonnyrobbie

gnupod_addsong.pl --decode=aac song.flac fails with

gnupod_addsong.pl Version 0.99.9-DEVEL (C) Adrian Ulrich
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/gnupod_convert_FLAC.pl line 126.
* [****] Skipping 'song.flac', unknown file type

 Done

Looking at the lines 124-126 in gnupod_convert_FLAC.pl it seems that maybe ffmpeg changed how it outputs supported codecs and muxers, because ffmpeg -formats now outputs the first column in DE format and not DEA format, and -formats does not have any line containing 'alac', but -codecs does.

Forcing line 126 to return (1); works, but it is a dirty kludge and not a proper bugfix (as I don't know any perl, so I cannot fix it myself).

EDIT: I found another issues. I'm not sure if they all have the same cause with changed ffmpeg, so I'll leave it here.

gnupod_addsong.pl (and mktunes.pl) somehow fails to copy over tags if the song was decoded from flac. The source flac has all the tags. Target mp3 as well as aac seems to be stripped completely of tags, target m4a(alac) seems to retained tags in the metadata in the file itself, but all of them fail to show the tags in gnupod_search.pl as well as in the iPod Classic 80G itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions