Verified Commit 2df05010 authored by moisesmcardona's avatar moisesmcardona Committed by Mark Harris

opusenc: Add --tracknumber option

Closes https://github.com/xiph/opus-tools/pull/37Signed-off-by: Mark Harris's avatarMark Harris <mark.hsj@gmail.com>
parent 37016e01
Pipeline #310 passed with stage
in 1 minute and 1 second
......@@ -57,6 +57,9 @@ opusenc \- encode audio into the Opus format
.B --album
.I 'album title'
] [
.B --tracknumber
.I 'track number'
] [
.B --genre
.I genre
] [
......@@ -207,6 +210,9 @@ Note that some playback software does not display multiple artists gracefully.
.IP "--album album"
Set the album or collection title field to
.I album
.IP "--tracknumber N"
Set the track number comment field to
.I N
.IP "--date YYYY-MM-DD"
Set the date comment field to
.I YYYY-MM-DD.
......
......@@ -158,6 +158,7 @@ static void usage(void)
printf(" --title title Set track title\n");
printf(" --artist artist Set artist or author, may be used multiple times\n");
printf(" --album album Set album or collection\n");
printf(" --tracknumber n Set track number\n");
printf(" --genre genre Set genre, may be used multiple times\n");
printf(" --date YYYY-MM-DD Set date of track (YYYY, YYYY-MM, or YYYY-MM-DD)\n");
printf(" --comment tag=val Add the given string as an extra comment\n");
......@@ -385,6 +386,7 @@ int main(int argc, char **argv)
{"artist", required_argument, NULL, 0},
{"title", required_argument, NULL, 0},
{"album", required_argument, NULL, 0},
{"tracknumber", required_argument, NULL, 0},
{"date", required_argument, NULL, 0},
{"genre", required_argument, NULL, 0},
{"picture", required_argument, NULL, 0},
......@@ -662,6 +664,7 @@ int main(int argc, char **argv)
} else if (strcmp(optname, "artist") == 0 ||
strcmp(optname, "title") == 0 ||
strcmp(optname, "album") == 0 ||
strcmp(optname, "tracknumber") == 0 ||
strcmp(optname, "date") == 0 ||
strcmp(optname, "genre") == 0) {
save_cmd=0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment