TXXX:CATALOGNUMBER

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

TXXX:CATALOGNUMBER

yUGz afterLife

Hi everyone

I updated my website with ffmpeg and it really works fine and faster
I can downstream and tag my trax BUT

I cant find how to set TXXX :CATALOGNUMBER field with -metada

I tried -metadata TXXX :CATALOGNUMBER, -metadata catalognumber and all variants but the syntax is incorrect

Any help would be greatly appreciated

Thanks to all

Yugz

Best regardz

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: TXXX:CATALOGNUMBER

Moritz Barsnick
On Tue, Oct 02, 2018 at 19:12:25 +0200, yUGz afterLife wrote:
> I tried -metadata TXXX :CATALOGNUMBER, -metadata catalognumber and all variants but the syntax is incorrect

I tried
$ ffmpeg -f lavfi -i anoisesrc -metadata 'TXXX:CATALOGNUMBER=23' -t 1 ~/tmp/catalog.mp3

and the resulting file seems to include the desired tag.

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: TXXX:CATALOGNUMBER

yUGz afterLife
This is serious i do not need TROLL

Hugo

De : Moritz Barsnick
Envoyé le :mercredi 3 octobre 2018 02:28
À : FFmpeg user discussions
Objet :Re: [FFmpeg-user] TXXX:CATALOGNUMBER

On Tue, Oct 02, 2018 at 19:12:25 +0200, yUGz afterLife wrote:
> I tried -metadata TXXX :CATALOGNUMBER, -metadata catalognumber and all variants but the syntax is incorrect

I tried
$ ffmpeg -f lavfi -i anoisesrc -metadata 'TXXX:CATALOGNUMBER=23' -t 1 ~/tmp/catalog.mp3

and the resulting file seems to include the desired tag.

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: TXXX:CATALOGNUMBER

Carl Zwanzig
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: TXXX:CATALOGNUMBER

yUGz afterLife
< ?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
À : [hidden email]
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: TXXX:CATALOGNUMBER

Reto Kromer-2
yUGz afterLife wrote:

>-metadata TXXX:CATALOGNUMBER=’plop'
                              ^

Don't use typographer's quote.

And, again, don't top-post.

Best regards, Reto

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: TXXX:CATALOGNUMBER

Lou Logan
In reply to this post by yUGz afterLife
On Tue, Oct 2, 2018, at 8:20 PM, yUGz afterLife wrote:
> < ?php
[...]
> ?>

We can't help with scripting on this mailing list: only unscripted usage of the FFmpeg cli tools is supported here.

> And yes the -t 1 setting is a troll

Incorrect. Moritz's example using a synthetic audio source as an input, which by default has an indefinite duration, so unless you want to encode forever the output duration must be set either with -t or the d/duration option within that filter. In this case the actual duration Moritz chose does not matter as the important information that he was trying to relay is that it worked for him.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".