<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/index.php?action=history&amp;feed=atom&amp;title=Documentation%3AFormat_String%2FTest_code</id>
	<title>Documentation:Format String/Test code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/index.php?action=history&amp;feed=atom&amp;title=Documentation%3AFormat_String%2FTest_code"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Format_String/Test_code&amp;action=history"/>
	<updated>2026-11-04T15:24:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Format_String/Test_code&amp;diff=60549&amp;oldid=prev</id>
		<title>DoesItReallyMatter: Create simple VLC command-line code for enumerating various format strings, I release under Expat/MIT License</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Format_String/Test_code&amp;diff=60549&amp;oldid=prev"/>
		<updated>2019-04-03T10:15:40Z</updated>

		<summary type="html">&lt;p&gt;Create simple VLC command-line code for enumerating various &lt;a href=&quot;/Documentation:Format_String/&quot; title=&quot;Documentation:Format String&quot;&gt;format strings&lt;/a&gt;, I release under Expat/MIT License&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Example code|for=Documentation:Format String|l=Expat}}&lt;br /&gt;
This [[command-line]] example runs through [[Documentation:Format String|format strings]] in the space &amp;lt;code&amp;gt;/[$%][A-Z_a-z]/&amp;lt;/code&amp;gt; as a test (or novelty). It should work for VLC 3.0.x under Windows or *nix, provided that &amp;lt;code&amp;gt;vlc&amp;lt;/code&amp;gt; is the path to VLC&lt;br /&gt;
* Windows users can change to the directory of VLC or replace &amp;lt;code&amp;gt;vlc&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;{{Path to VLC|windows}}&amp;lt;/code&amp;gt;&lt;br /&gt;
* macOS users can set a Bash variable or replace &amp;lt;code&amp;gt;vlc&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;{{Path to VLC|mac}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;BigBuckBunny.ogv&amp;lt;/code&amp;gt; can be replaced with a video of your choice. The format strings cover the screen for three seconds, then VLC exits; invalid sequences will render as literal strings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;winbatch&amp;quot;&amp;gt;&lt;br /&gt;
vlc -I dummy &amp;#039;--sub-source=marq{marquee=&amp;quot;A[$A] B[$B] C[$C] D[$D] E[$E] F[$F] G[$G] H[$H] I[$I] J[$J] K[$K] L[$L] M[$M] N[$N] O[$O] P[$P] Q[$Q] R[$R] S[$S] T[$T] U[$U] V[$V] W[$W] X[$X] Y[$Y] Z[$Z] a[$a] b[$b] c[$c] d[$d] e[$e] f[$f] g[$g] h[$h] i[$i] j[$j] k[$k] l[$l] m[$m] n[$n] o[$o] p[$p] q[$q] r[$r] s[$s] t[$t] u[$u] v[$v] w[$w] x[$x] y[$y] z[$z] _[$_] A[%A] B[%B] C[%C] D[%D] E[%E] F[%F] G[%G] H[%H] I[%I] J[%J] K[%K] L[%L] M[%M] N[%N] O[%O] P[%P] Q[%Q] R[%R] S[%S] T[%T] U[%U] V[%V] W[%W] X[%X] Y[%Y] Z[%Z] _[%_] a[%a] b[%b] c[%c] d[%d] e[%e] f[%f] g[%g] h[%h] i[%i] j[%j] k[%k] l[%l] m[%m] n[%n] o[%o] p[%p] q[%q] r[%r] s[%s] t[%t] u[%u] v[%v] w[%w] x[%x] y[%y] z[%z]&amp;quot;,position=5}&amp;#039; --start-time=0 --stop-time=3 --no-video-title-show BigBuckBunny.ogv vlc://quit&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code is written in the format &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;X&amp;lt;/var&amp;gt;[$&amp;lt;var&amp;gt;X&amp;lt;/var&amp;gt;]&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;X&amp;lt;/var&amp;gt;[]&amp;lt;/code&amp;gt; merely marking the code used to generate the rendered &amp;lt;var&amp;gt;X&amp;lt;/var&amp;gt;. If you prefer:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;winbatch&amp;quot;&amp;gt;&lt;br /&gt;
vlc -I dummy &amp;#039;--sub-source=marq{marquee=&amp;quot;$A $B $C $D $E $F $G $H $I $J $K $L $M $N $O $P $Q $R $S $T $U $V $W $X $Y $Z $a $b $c $d $e $f $g $h $i $j $k $l $m $n $o $p $q $r $s $t $u $v $w $x $y $z $_ %A %B %C %D %E %F %G %H %I %J %K %L %M %N %O %P %Q %R %S %T %U %V %W %X %Y %Z %_ %a %b %c %d %e %f %g %h %i %j %k %l %m %n %o %p %q %r %s %t %u %v %w %x %y %z&amp;quot;,position=5}&amp;#039; --start-time=0 --stop-time=3 --no-video-title-show BigBuckBunny.ogv vlc://quit&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>DoesItReallyMatter</name></author>
	</entry>
</feed>