[FFmpeg-user] TXXX:CATALOGNUMBER
yUGz afterLife
yugz.afterlife.888 at gmail.com
Wed Oct 3 07:20:00 EEST 2018
< ?php
if (is_file($imgsrc)) $metaz .= ' -i "'.$imgsrc.'" -map 0:0 -map 1:0 -metadata:s:v title="album COVER" -metadata:s:v comment="COVER (front)" -id3v2_version 4';
if (!empty($artist)) $metaz .= ' -metadata artist="'.$chandle->real_escape_string($artist).'"';
if (!empty($subartist)) $metaz .= ' -metadata album_artist="'.$chandle->real_escape_string($subartist).'"';
if (!empty($title)) $metaz .= ' -metadata title="'.$chandle->real_escape_string($title).'"';
if (!empty($album)) $metaz .= ' -metadata album="'.$chandle->real_escape_string($album).'"';
if (!empty($track)) $metaz .= ' -metadata track="'.$chandle->real_escape_string($track).'"';
if (!empty($genre)) $metaz .= ' -metadata genre="'.$chandle->real_escape_string($genre).'"';
if (!empty($label)) $metaz .= ' -metadata publisher="'.$chandle->real_escape_string($label).'"';
//if (!empty($ref)) $metaz .= ' -metadata \'TXXX:CATALOGNUMBER='.$chandle->real_escape_string($ref).'\'';
if (!empty($bpm)) $metaz .= ' -metadata TBPM="'.$chandle->real_escape_string($bpm).'"';
if (!empty($date)) $metaz .= ' -metadata date="'.$chandle->real_escape_string(str_replace('/','',$date)).'"';
if (!empty($date)) $metaz .= ' -metadata year="'.$chandle->real_escape_string(preg_replace("/^(\d{4})\.*$/","$1",$date)).'"';
if (!empty($metaz)) {
$temppfile = $fullfile.'.tmp.mp3';
exec("$ffmpegbin -i \"$fullfile\"$metaz -codec:a copy \"$temppfile\" 2>&1");
}
?>
Should return something like
/usr/local/bin/ffmpeg -i input.mp3 […] -metadata artist="plop" […] -metadata 'TXXX:CATALOGNUMBER=plop' […] output.mp3
The cover image is integrated
All other tags are integrated
The output show no errors (just the recoding data)
Also tried with
/usr/local/bin/ffmpeg -i input.mp3 -metadata TXXX:CATALOGNUMBER=’plop' output.mp3
And yes the -t 1 setting is a troll
Hugo
De : Carl Zwanzig
Envoyé le :mercredi 3 octobre 2018 05:59
À : ffmpeg-user at ffmpeg.org
Objet :Re: [FFmpeg-user] TXXX:CATALOGNUMBER
On 10/2/2018 7:41 PM, yUGz afterLife wrote:
> This is serious i do not need TROLL
(Moritz's answer doesn't look like trolling...)
Perhaps then a little more info would be useful, like the version of ffmpeg
you're using and some of the options tried. Or even a couple of examples of
the command being used and the full output given.
Oh, and please don't top-post. If you're not sure what that means, there are
many web pages that will explain.
z!
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list