Format specifiers

If no format specifier is set, mpc will attempt to use a sensible default.

%f
Filename of the currently played video.

%F
Same as %f, but strip the file extension, including the dot.

%s{with}{without}
Indicator whether subs were embedded. Text within the brackets is substituted according to subtitle embedding. For example, pass %s{subs}{} to insert the text "subs" when subtitles are rendered, and nothing when subtitles are not rendered. Passing only one pair of {} like %s{subs} is the same as passing %s{subs}{}. Ignored if the source has no subtitles.

%d{novideo}{noaudio}
Encodes only. Indicator whether a track was disabled. Text within the brackets is expanded the same way as with %s. Ignored if the source lacks either a video or audio track.

%t{format}
Specify the current local date/time using QDateTime::toString() function. See the bottommost section for details. For example, %t{yyyy-MM-dd} will insert the current date in ISO date format.

%aX
Encodes only. Specify the starting time of the capture window using the format string X.

%bX
Encodes only. Specify the ending time of the capture window using the format string X.

%wX
Screenshots only. Specify the current playback time using the format string X.

%%
Replaced with the % character itself.

Format string X

Replace w with a or b for encodes.

%wp
Equivalent to %wH:%wM:%wS

%wP
Equivalent to %wH:%wM:%wS.%wT

%wH
hour (padded with 0 to two digits)

%wh
hour (not padded)

%wM
minutes (00-59)

%wm
total minutes (includes hours, unlike %wM)

%wS
seconds (00-59)

%ws
total seconds (includes hours and minutes)

%wf
like %ws, but as float

%wT
milliseconds (000-999)

QDateTime format

d
the day as number without a leading zero (1 to 31)

dd
the day as number with a leading zero (01 to 31)

ddd
the abbreviated localized day name (e.g. 'Mon' to 'Sun')

dddd
the long localized day name (e.g. 'Monday' to 'Sunday')

M
the month as number without a leading zero (1-12)

MM
the month as number with a leading zero (01-12)

MMM
the abbreviated localized month name (e.g. 'Jan' to 'Dec')

MMMM
the long localized month name (e.g. 'January' to 'December')

yy
the year as two digit number (00-99)

yyyy
the year as four digit number

h
the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)

hh
the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)

H
the hour without a leading zero (0 to 23, even with AM/PM display)

HH
the hour with a leading zero (00 to 23, even with AM/PM display)

m
the minute without a leading zero (0 to 59)

mm
the minute with a leading zero (00 to 59)

s
the second without a leading zero (0 to 59)

ss
the second with a leading zero (00 to 59)

z
the milliseconds without leading zeroes (0 to 999)

zzz
the milliseconds with leading zeroes (000 to 999)