[{"data":1,"prerenderedAt":3744},["ShallowReactive",2],{"blog-posts":3},[4,1110,1731,2175,2531,3245],{"id":5,"title":6,"author":7,"body":8,"date":1095,"description":1096,"extension":1097,"meta":1098,"navigation":1099,"path":1100,"seo":1101,"stem":1102,"tags":1103,"__hash__":1109},"content\u002Ffield-notes\u002Ffree-timecode-converters-compared.md","Free Online Timecode Converters Compared: Who Gets the Math Right?","timecodes team",{"type":9,"value":10,"toc":1079},"minimark",[11,20,23,34,37,42,45,147,150,177,181,184,447,450,464,470,476,480,483,486,556,780,785,806,837,841,846,852,855,865,875,881,889,892,896,899,903,912,923,929,933,936,940,946,956,980,983,995,1002,1016,1020,1023,1044,1047,1053,1057,1063,1071],[12,13,14,15,19],"p",{},"You need a quick timecode conversion. Maybe you are spotting for sound and need to know the frame number for ",[16,17,18],"code",{},"02:05:59;29"," at 29.97 drop-frame. Maybe you are conforming a 23.976 timeline and need the millisecond position of frame 172,032. You Google \"timecode converter,\" click the first result, type in your values, and trust the answer.",[12,21,22],{},"You know this is risky. We know this is risky. Your clients — who are paying for frame-accurate deliverables — definitely know it when something drifts.",[12,24,25,26,33],{},"We maintain an ",[27,28,32],"a",{"href":29,"rel":30},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@claylevering\u002Ftimecodes",[31],"nofollow","open-source timecode library"," backed by 861 verified test cases covering every standard broadcast framerate, drop-frame boundary math, millisecond round-trips, and fuzzy-math edge cases. We took a representative set of those test cases and ran them against every free online timecode converter we could find — in the browser, with live inputs, reading the actual outputs.",[12,35,36],{},"Here is what we found.",[38,39,41],"h2",{"id":40},"the-tools","The Tools",[12,43,44],{},"We evaluated six free, publicly available web-based timecode tools:",[46,47,48,64],"table",{},[49,50,51],"thead",{},[52,53,54,58,61],"tr",{},[55,56,57],"th",{},"Tool",[55,59,60],{},"URL",[55,62,63],{},"Primary Function",[65,66,67,82,95,108,121,134],"tbody",{},[52,68,69,76,79],{},[70,71,72],"td",{},[73,74,75],"strong",{},"EditingTools.io",[70,77,78],{},"editingtools.io\u002Ftimecode",[70,80,81],{},"Timecode format conversion, bulk CSV",[52,83,84,89,92],{},[70,85,86],{},[73,87,88],{},"AVTools.io TC Convert",[70,90,91],{},"avtools.io\u002Ftc-convert",[70,93,94],{},"Framerate-to-framerate conversion",[52,96,97,102,105],{},[70,98,99],{},[73,100,101],{},"Rob's Timecode Calculator",[70,103,104],{},"robwomack.com\u002Ftimecode-calculator",[70,106,107],{},"Timecode arithmetic (add, subtract, multiply, divide)",[52,109,110,115,118],{},[70,111,112],{},[73,113,114],{},"Omni Calculator",[70,116,117],{},"omnicalculator.com\u002Fother\u002Ftimecode-to-frame",[70,119,120],{},"Timecode to frames \u002F frames to timecode",[52,122,123,128,131],{},[70,124,125],{},[73,126,127],{},"Michael Cinquin",[70,129,130],{},"michaelcinquin.com\u002Ftools\u002Ftimecode_keykode",[70,132,133],{},"Timecode arithmetic + keykode conversion",[52,135,136,141,144],{},[70,137,138],{},[73,139,140],{},"ZapStudio FrameCalc",[70,142,143],{},"zapstudio.net\u002Fframecalc",[70,145,146],{},"Frame count from time \u002F time from frames",[12,148,149],{},"And the tool we built:",[46,151,152,162],{},[49,153,154],{},[52,155,156,158,160],{},[55,157,57],{},[55,159,60],{},[55,161,63],{},[65,163,164],{},[52,165,166,171,174],{},[70,167,168],{},[73,169,170],{},"timecode.dev Playground",[70,172,173],{},"timecode.dev\u002Ftools\u002Fplayground",[70,175,176],{},"Full bidirectional conversion: timecode, frames, milliseconds, seconds, media time",[38,178,180],{"id":179},"what-each-tool-offers","What Each Tool Offers",[12,182,183],{},"Not every tool tries to do the same thing. Some are calculators (add\u002Fsubtract timecodes), some are converters (change framerates), and some are lookup tools (timecode to frames). Before we talk about accuracy, here is what each tool claims to support:",[46,185,186,215],{},[49,187,188],{},[52,189,190,193,197,200,203,206,209,212],{},[55,191,192],{},"Feature",[55,194,196],{"align":195},"center","EditingTools",[55,198,199],{"align":195},"AVTools",[55,201,202],{"align":195},"Rob's TC Calc",[55,204,205],{"align":195},"Omni Calc",[55,207,208],{"align":195},"Cinquin",[55,210,211],{"align":195},"ZapStudio",[55,213,214],{"align":195},"timecode.dev",[65,216,217,238,257,276,295,314,333,352,371,390,409,428],{},[52,218,219,222,225,228,230,232,234,236],{},[70,220,221],{},"TC → Frame Number",[70,223,224],{"align":195},"✅",[70,226,227],{"align":195},"❌",[70,229,224],{"align":195},[70,231,224],{"align":195},[70,233,224],{"align":195},[70,235,224],{"align":195},[70,237,224],{"align":195},[52,239,240,243,245,247,249,251,253,255],{},[70,241,242],{},"Frame Number → TC",[70,244,227],{"align":195},[70,246,227],{"align":195},[70,248,224],{"align":195},[70,250,224],{"align":195},[70,252,227],{"align":195},[70,254,224],{"align":195},[70,256,224],{"align":195},[52,258,259,262,264,266,268,270,272,274],{},[70,260,261],{},"TC → Milliseconds",[70,263,224],{"align":195},[70,265,227],{"align":195},[70,267,227],{"align":195},[70,269,227],{"align":195},[70,271,227],{"align":195},[70,273,227],{"align":195},[70,275,224],{"align":195},[52,277,278,281,283,285,287,289,291,293],{},[70,279,280],{},"Milliseconds → TC",[70,282,227],{"align":195},[70,284,227],{"align":195},[70,286,227],{"align":195},[70,288,227],{"align":195},[70,290,227],{"align":195},[70,292,227],{"align":195},[70,294,224],{"align":195},[52,296,297,300,302,304,306,308,310,312],{},[70,298,299],{},"Framerate Conversion",[70,301,224],{"align":195},[70,303,224],{"align":195},[70,305,227],{"align":195},[70,307,227],{"align":195},[70,309,227],{"align":195},[70,311,227],{"align":195},[70,313,224],{"align":195},[52,315,316,319,321,323,325,327,329,331],{},[70,317,318],{},"TC Arithmetic",[70,320,227],{"align":195},[70,322,227],{"align":195},[70,324,224],{"align":195},[70,326,227],{"align":195},[70,328,224],{"align":195},[70,330,227],{"align":195},[70,332,224],{"align":195},[52,334,335,338,340,342,344,346,348,350],{},[70,336,337],{},"Drop-Frame (29.97)",[70,339,224],{"align":195},[70,341,224],{"align":195},[70,343,224],{"align":195},[70,345,227],{"align":195},[70,347,227],{"align":195},[70,349,227],{"align":195},[70,351,224],{"align":195},[52,353,354,357,359,361,363,365,367,369],{},[70,355,356],{},"Drop-Frame (59.94)",[70,358,224],{"align":195},[70,360,224],{"align":195},[70,362,227],{"align":195},[70,364,227],{"align":195},[70,366,227],{"align":195},[70,368,227],{"align":195},[70,370,224],{"align":195},[52,372,373,376,378,380,382,384,386,388],{},[70,374,375],{},"23.976 fps",[70,377,224],{"align":195},[70,379,224],{"align":195},[70,381,227],{"align":195},[70,383,224],{"align":195},[70,385,224],{"align":195},[70,387,224],{"align":195},[70,389,224],{"align":195},[52,391,392,395,397,399,401,403,405,407],{},[70,393,394],{},"50 \u002F 60 fps",[70,396,224],{"align":195},[70,398,224],{"align":195},[70,400,227],{"align":195},[70,402,227],{"align":195},[70,404,224],{"align":195},[70,406,227],{"align":195},[70,408,224],{"align":195},[52,410,411,414,416,418,420,422,424,426],{},[70,412,413],{},"100+ fps",[70,415,227],{"align":195},[70,417,227],{"align":195},[70,419,227],{"align":195},[70,421,227],{"align":195},[70,423,227],{"align":195},[70,425,227],{"align":195},[70,427,224],{"align":195},[52,429,430,433,435,437,439,441,443,445],{},[70,431,432],{},"Bulk \u002F Batch",[70,434,224],{"align":195},[70,436,224],{"align":195},[70,438,227],{"align":195},[70,440,227],{"align":195},[70,442,227],{"align":195},[70,444,227],{"align":195},[70,446,224],{"align":195},[12,448,449],{},"A few things jump out immediately.",[12,451,452,455,456,459,460,463],{},[73,453,454],{},"No tool besides timecode.dev supports milliseconds as an input."," This matters because subtitle formats (SRT, VTT, SBV) and browser ",[16,457,458],{},"\u003Cvideo>"," elements all use milliseconds. If you are working with subtitles and need to go from ",[16,461,462],{},"7559985.767"," ms to a frame number at 29.97 DF, most of these tools cannot help you.",[12,465,466,469],{},[73,467,468],{},"Drop-frame support is patchy."," Only three tools handle 29.97 DF, only two handle 59.94 DF, and the ones that do handle it often treat it as a display toggle rather than a fundamental change to the frame counting algorithm.",[12,471,472,475],{},[73,473,474],{},"No tool besides timecode.dev supports framerates above 60fps."," If you are working in HFR (100fps, 120fps), you are on your own with every other tool on this list.",[38,477,479],{"id":478},"the-test-results","The Test Results",[12,481,482],{},"These are the conversions most likely to separate a tool that has genuinely implemented the math from one that approximated it. We ran each one live in the browser and recorded what came back.",[12,484,485],{},"The troublesome cases:",[487,488,489,499,507,515,529,538,547],"ul",{},[490,491,492,498],"li",{},[73,493,494,497],{},[16,495,496],{},"01:59:28:00"," @ 23.976fps → frame count"," — does the tool count SMPTE frames (integer 24fps counting), or multiply wall-clock seconds by the decimal fps?",[490,500,501,506],{},[73,502,503,505],{},[16,504,496],{}," @ 23.976fps → milliseconds"," — does the tool use the exact 24000\u002F1001 fraction, or a decimal approximation?",[490,508,509,514],{},[73,510,511,513],{},[16,512,18],{}," @ 29.97 DF → frame count"," — does the tool correctly accumulate 226 drop counts across 2+ hours?",[490,516,517,520,521,524,525,528],{},[73,518,519],{},"Frame 226,574 @ 29.97 DF → timecode"," — does the tool place you at ",[16,522,523],{},";02"," (correct skip) or ",[16,526,527],{},";00"," (missed skip)?",[490,530,531,537],{},[73,532,533,536],{},[16,534,535],{},"01:00:00:00"," @ 23.976 → 29.97 DF"," — does the tool preserve wall-clock duration, or just re-label the frame number?",[490,539,540,546],{},[73,541,542,545],{},[16,543,544],{},"00:28:00;04"," @ 59.94 DF → frame count"," — does the tool drop 4 frame numbers per minute boundary, or 2?",[490,548,549,555],{},[73,550,551,554],{},[16,552,553],{},"7,559,985.767"," ms → timecode @ 29.97 DF"," — can the tool even accept milliseconds as input and resolve to a drop-frame timecode?",[46,557,558,584],{},[49,559,560],{},[52,561,562,565,568,570,572,575,578,580,582],{},[55,563,564],{},"Conversion",[55,566,567],{},"Expected",[55,569,196],{"align":195},[55,571,199],{"align":195},[55,573,574],{"align":195},"Rob's",[55,576,577],{"align":195},"Omni",[55,579,208],{"align":195},[55,581,211],{"align":195},[55,583,214],{"align":195},[65,585,586,613,639,664,695,728,753],{},[52,587,588,593,596,599,602,604,607,609,611],{},[70,589,590,592],{},[16,591,496],{}," @ 23.976fps → frames",[70,594,595],{},"172,032",[70,597,598],{"align":195},"✅ 172,032",[70,600,601],{"align":195},"—",[70,603,601],{"align":195},[70,605,606],{"align":195},"❌ 171,860",[70,608,598],{"align":195},[70,610,606],{"align":195},[70,612,598],{"align":195},[52,614,615,620,623,626,628,630,632,634,636],{},[70,616,617,619],{},[16,618,496],{}," @ 23.976fps → ms",[70,621,622],{},"7,175,168 ms",[70,624,625],{"align":195},"❌ 7,182,343 ms",[70,627,601],{"align":195},[70,629,601],{"align":195},[70,631,601],{"align":195},[70,633,601],{"align":195},[70,635,601],{"align":195},[70,637,638],{"align":195},"✅ 7,175,168 ms",[52,640,641,646,649,652,654,656,658,660,662],{},[70,642,643,645],{},[16,644,18],{}," @ 29.97 DF → frames",[70,647,648],{},"226,573",[70,650,651],{"align":195},"✅ 226,573",[70,653,601],{"align":195},[70,655,651],{"align":195},[70,657,601],{"align":195},[70,659,601],{"align":195},[70,661,601],{"align":195},[70,663,651],{"align":195},[52,665,666,669,674,679,681,685,687,689,691],{},[70,667,668],{},"Frame 226,574 @ 29.97 DF → TC",[70,670,671],{},[16,672,673],{},"02:06:00;02",[70,675,676,677],{"align":195},"✅ ",[16,678,673],{},[70,680,601],{"align":195},[70,682,676,683],{"align":195},[16,684,673],{},[70,686,601],{"align":195},[70,688,601],{"align":195},[70,690,601],{"align":195},[70,692,676,693],{"align":195},[16,694,673],{},[52,696,697,701,706,712,716,718,720,722,724],{},[70,698,699,536],{},[16,700,535],{},[70,702,703],{},[16,704,705],{},"01:00:03;18",[70,707,708,709],{"align":195},"❌ ",[16,710,711],{},"00:48:02;28",[70,713,676,714],{"align":195},[16,715,705],{},[70,717,601],{"align":195},[70,719,601],{"align":195},[70,721,601],{"align":195},[70,723,601],{"align":195},[70,725,676,726],{"align":195},[16,727,705],{},[52,729,730,735,738,741,743,745,747,749,751],{},[70,731,732,734],{},[16,733,544],{}," @ 59.94 DF → frames",[70,736,737],{},"100,700",[70,739,740],{"align":195},"✅ 100,700",[70,742,601],{"align":195},[70,744,601],{"align":195},[70,746,601],{"align":195},[70,748,601],{"align":195},[70,750,601],{"align":195},[70,752,740],{"align":195},[52,754,755,760,764,766,768,770,772,774,776],{},[70,756,757,759],{},[16,758,553],{}," ms → TC @ 29.97 DF",[70,761,762],{},[16,763,18],{},[70,765,601],{"align":195},[70,767,601],{"align":195},[70,769,601],{"align":195},[70,771,601],{"align":195},[70,773,601],{"align":195},[70,775,601],{"align":195},[70,777,676,778],{"align":195},[16,779,18],{},[12,781,782,784],{},[16,783,601],{}," means the tool does not support that conversion type. Every expected value is verified against bars and tones — see proof screenshots below.",[12,786,787,788,791,792,795,796,799,800,802,803,805],{},"Three things stand out. ",[73,789,790],{},"Omni and ZapStudio both return 171,860 for the 23.976fps frame count",", despite claiming NTSC support. ",[73,793,794],{},"EditingTools performs a frame-preserving conversion instead of duration-preserving when converting to 29.97 DF"," — keeping the frame number (86,400) instead of computing the wall-clock equivalent (108,000). And ",[73,797,798],{},"no tool besides timecode.dev can even accept milliseconds as input"," — the exact format that SRT, VTT, and every browser ",[16,801,458],{}," element uses. If you are working with subtitle files and need to resolve ",[16,804,553],{}," ms to a frame-accurate drop-frame timecode, the entire row is dashes.",[807,808,809,813,816,821,825,829,833],"details",{},[810,811,812],"summary",{},"View bars & tones proof for every expected value",[12,814,815],{},"Every expected value in the table above was verified against bars and tones at the correct framerate.",[817,818],"img",{"src":819,"alt":820},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-23976fps-frame-172032.png","01:59:28:00 at 23.976fps = frame 172032, 7175168.000 ms",[817,822],{"src":823,"alt":824},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-2997df-frame-226573.png","02:05:59;29 at 29.97 DF = frame 226573, 7559985.766667 ms",[817,826],{"src":827,"alt":828},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-2997df-frame-226574.png","Frame 226574 at 29.97 DF = 02:06:00;02, 7560019.133333 ms",[817,830],{"src":831,"alt":832},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-5994df-frame-100700.png","00:28:00;04 at 59.94 DF = frame 100700, 1680011.666667 ms",[817,834],{"src":835,"alt":836},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-ms-to-2997df-frame-226573.png","7559985.766667 ms at 29.97 DF = 02:05:59;29, frame 226573",[38,838,840],{"id":839},"why-the-results-differ","Why the Results Differ",[842,843,845],"h3",{"id":844},"the-ntsc-frame-count-problem","The NTSC frame count problem",[12,847,848,849,851],{},"The timecodes Omni and ZapStudio got wrong — ",[16,850,496],{}," → 171,860 instead of 172,032 — reveal a fundamental misunderstanding of how SMPTE timecodes work.",[12,853,854],{},"Both tools appear to treat the timecode as wall-clock time and multiply by the decimal fps:",[856,857,862],"pre",{"className":858,"code":860,"language":861},[859],"language-text","7168 seconds × 23.976 fps = 171,860.168 → floor to 171,860\n","text",[16,863,860],{"__ignoreMap":864},"",[12,866,867,868,871,872,874],{},"But that is not what a SMPTE timecode is. A SMPTE timecode is a frame counter formatted as ",[16,869,870],{},"HH:MM:SS:FF",". The correct frame count for ",[16,873,496],{}," at 23.976fps is:",[856,876,879],{"className":877,"code":878,"language":861},[859],"(1×3600 + 59×60 + 28) × 24 + 0 = 172,032 frames\n",[16,880,878],{"__ignoreMap":864},[12,882,883,884,888],{},"The frame count uses integer 24. The resulting frame is then ",[885,886,887],"em",{},"played back"," at 24000\u002F1001 fps — which is why frame 172,032 actually occurs at 7,175.168 seconds of real time, not at the 7,168 seconds the timecode display implies. That gap is exactly what NDF (non-drop-frame) means: the timecode clock runs at a different rate than the wall clock.",[12,890,891],{},"The difference here is 172 frames — about 7.17 seconds of drift at the 2-hour mark. In subtitle work, that is 172 cues landing on the wrong frame.",[842,893,895],{"id":894},"the-ntsc-millisecond-problem","The NTSC millisecond problem",[12,897,898],{},"EditingTools gets the frame count right (172,032 ✅) but produces the wrong millisecond value when you ask for seconds\u002Fms output: 7,182,343 ms instead of the correct 7,175,168 ms. That is 7,175 ms of error — about 171 frames — introduced somewhere in their ms conversion pipeline for 23.976fps.",[842,900,902],{"id":901},"the-framerate-conversion-problem","The framerate conversion problem",[12,904,905,906,908,909,911],{},"When you convert ",[16,907,535],{}," at 23.976fps to 29.97 DF, the correct approach is duration-preserving: compute the wall-clock duration of frame 86,400 at 23.976fps (3,603.6 seconds), then find the corresponding frame at 29.97fps (108,000 frames = ",[16,910,705],{},").",[12,913,914,915,917,918,922],{},"EditingTools returned ",[16,916,711],{}," — which is frame 86,400 expressed at 29.97 DF. It kept the frame number the same and re-labeled the timecode. That is a frame-preserving conversion, not a duration-preserving one. The tool even flags its own DF conversion as \"",[919,920,921],"span",{},"Experimental","\" with a warning about potential 1-2 frame offsets. In this case the offset is 21,600 frames.",[12,924,925,926,928],{},"AVTools gets this conversion right: ",[16,927,705],{}," at 29.97 DF, matching timecode.dev exactly. The 23.976-to-29.97 ratio is a clean 5\u002F4 using exact fractions (24000\u002F1001 → 30000\u002F1001), which helps avoid decimal approximation errors.",[842,930,932],{"id":931},"the-drop-frame-algorithm","The drop-frame algorithm",[12,934,935],{},"Rob's Timecode Calculator and EditingTools both get drop-frame right for TC → frame number conversions. The algorithm — from David Heidelberger's implementation of the SMPTE standard — correctly drops 2 frame numbers per non-decade minute for 29.97 DF and 4 per minute for 59.94 DF. The tools that fail drop-frame simply do not implement it at all.",[38,937,939],{"id":938},"the-semicolon-problem","The Semicolon Problem",[12,941,942,943],{},"There is a real-world ambiguity that none of these tools handle well: ",[73,944,945],{},"not everyone uses the semicolon to indicate drop-frame.",[12,947,948,949,951,952,955],{},"In SMPTE notation, ",[16,950,673],{}," (semicolons) means drop-frame and ",[16,953,954],{},"02:06:00:02"," (colons) means non-drop-frame. These two strings refer to completely different frame numbers:",[487,957,958,970],{},[490,959,960,962,963,966,967],{},[16,961,673],{}," at 29.97 ",[73,964,965],{},"DF"," → frame ",[73,968,969],{},"226,574",[490,971,972,962,974,966,977],{},[16,973,954],{},[73,975,976],{},"NDF",[73,978,979],{},"226,802",[12,981,982],{},"A difference of 228 frames — almost 8 seconds.",[984,985,987,991],"div",{"style":986},"display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0;",[817,988],{"src":989,"alt":990},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-2997df-semicolon-226574.png","02:06:00;02 (semicolons) at 29.97 DF = frame 226574",[817,992],{"src":993,"alt":994},"\u002Ffield-notes\u002Fconverters-compared\u002Fbars-tones-2997ndf-colon-226802.png","02:06:00:02 (colons) at 29.97 NDF = frame 226802",[12,996,997,998,1001],{},"But entire groups of broadcast professionals refuse to use the semicolon as an indicator. They write ",[16,999,1000],{},"02:06:00:02 (DF)"," — all colons, with a parenthetical note. Subtitle files, EDLs, and metadata exports frequently arrive with colons everywhere regardless of whether the content is drop-frame. If your tool blindly interprets the colon as NDF, you land on the wrong frame.",[12,1003,1004,1005,1009,1010,1012,1013,1015],{},"The ",[27,1006,1008],{"href":1007},"\u002Ftools\u002Fplayground","timecode playground"," handles this with a drop-frame mode selector that lets you force DF or NDF interpretation regardless of the separator character. Enter ",[16,1011,954],{}," with drop-frame mode set to \"Drop-frame\" and it correctly resolves to frame 226,574 — the same result as ",[16,1014,673],{},".",[38,1017,1019],{"id":1018},"what-frame-accurate-actually-means","What \"Frame-Accurate\" Actually Means",[12,1021,1022],{},"The timecodes library — and by extension every tool on timecode.dev — uses frame-number-canonical computation:",[1024,1025,1026,1032,1038],"ol",{},[490,1027,1028,1031],{},[73,1029,1030],{},"Parse"," any input (timecode, milliseconds, seconds, media time, frame number) and resolve it to an integer frame number using the exact framerate fraction.",[490,1033,1034,1037],{},[73,1035,1036],{},"Compute"," in integer frame space. No floating point. No rounding until the final output step.",[490,1039,1040,1043],{},[73,1041,1042],{},"Export"," to whatever format is needed, deriving milliseconds and timecodes from the frame number — never the other way around.",[12,1045,1046],{},"Every conversion in the library is verified against a test suite that checks six directions for each framerate: milliseconds to frames, milliseconds to timecode, timecode to milliseconds, timecode to frames, frames to milliseconds, and frames to timecode. The test values are computed from SMPTE first principles using the exact rational framerates (24000\u002F1001, 30000\u002F1001, 60000\u002F1001), not decimal approximations.",[12,1048,1049,1050,1052],{},"This is what 861 passing tests buys you: confidence that ",[16,1051,18],{}," at 29.97 DF is frame 226,573, every time, in every direction.",[38,1054,1056],{"id":1055},"try-it-yourself","Try It Yourself",[12,1058,1059,1060,1062],{},"Every test case in this article is reproducible in the ",[27,1061,1008],{"href":1007},". Enter the timecode, select the framerate, and the playground shows you every representation simultaneously — frame number, timecode, milliseconds, seconds, media time. Change the input, and all derived values update.",[12,1064,1065,1066,1070],{},"If you are converting subtitle files between framerates, the ",[27,1067,1069],{"href":1068},"\u002Ftools\u002Ftimecode-converter","bulk timecode converter"," processes entire timecode lists at once, using the same frame-number-canonical math.",[12,1072,1073,1074,1078],{},"The timecodes library itself is ",[27,1075,1077],{"href":29,"rel":1076},[31],"open source",". The test suite is in the repo. If you think any value in this article is wrong, run the test. That is the whole point of having 861 of them.",{"title":864,"searchDepth":1080,"depth":1080,"links":1081},2,[1082,1083,1084,1085,1092,1093,1094],{"id":40,"depth":1080,"text":41},{"id":179,"depth":1080,"text":180},{"id":478,"depth":1080,"text":479},{"id":839,"depth":1080,"text":840,"children":1086},[1087,1089,1090,1091],{"id":844,"depth":1088,"text":845},3,{"id":894,"depth":1088,"text":895},{"id":901,"depth":1088,"text":902},{"id":931,"depth":1088,"text":932},{"id":938,"depth":1080,"text":939},{"id":1018,"depth":1080,"text":1019},{"id":1055,"depth":1080,"text":1056},"2026-04-08","We tested six free online timecode converters against verified test cases — drop-frame boundaries, NTSC precision, high framerates, and millisecond round-trips. Here is what we actually found.","md",{},true,"\u002Ffield-notes\u002Ffree-timecode-converters-compared",{"title":6,"description":1096},"field-notes\u002Ffree-timecode-converters-compared",[1104,1105,1106,1107,1108],"timecode","comparison","drop-frame","framerate","tools","Tg6QrSRKXBbgNo-4I6k9KJrbddjcs0GEOnzgQH43uKU",{"id":1111,"title":1112,"author":7,"body":1113,"date":1717,"description":1718,"extension":1097,"meta":1719,"navigation":1099,"path":1720,"seo":1721,"stem":1722,"tags":1723,"__hash__":1730},"content\u002Ffield-notes\u002Fbroadcast-subtitle-formats-scc-ebu-stl-graphics-stl.md","Broadcast Subtitle Formats Explained: SCC, EBU-STL, and Graphics STL",{"type":9,"value":1114,"toc":1697},[1115,1118,1121,1124,1128,1131,1135,1138,1144,1147,1151,1235,1239,1242,1245,1249,1252,1256,1259,1273,1276,1279,1356,1360,1363,1366,1370,1373,1377,1380,1400,1403,1409,1412,1415,1485,1489,1492,1518,1522,1525,1557,1561,1568,1586,1597,1603,1606,1610,1678,1681,1687,1690],[12,1116,1117],{},"The subtitle formats most people know — SRT, VTT, ASS — are consumer formats. They exist for media players, web browsers, and video-sharing platforms. None of them get on air.",[12,1119,1120],{},"Broadcast television uses a different set of formats, built for different constraints: frame-accurate SMPTE timing, regulatory compliance, binary encoding, and in some cases, pixel-level rendering control. These formats are SCC, EBU-STL, and Graphics STL.",[12,1122,1123],{},"Understanding them matters if you work anywhere in the chain between post-production and transmission.",[38,1125,1127],{"id":1126},"scc-north-american-broadcast-standard","SCC: North American Broadcast Standard",[12,1129,1130],{},"SCC (Scenarist Closed Captions) is the standard closed caption format for North American broadcast television. It encodes CEA-608 caption data — the same data that rides on line 21 of the analog video signal and in the digital VANC (Vertical Ancillary Data Space) of HD-SDI.",[842,1132,1134],{"id":1133},"what-scc-actually-contains","What SCC actually contains",[12,1136,1137],{},"An SCC file is a text file containing SMPTE timecodes paired with hexadecimal caption command words:",[856,1139,1142],{"className":1140,"code":1141,"language":861},[859],"Scenarist_SCC V1.0\n\n01:00:00:00 9420 9420 94ad 94ad 9470 9470 4c69 7665\n01:00:02:15 9420 9420 94ad 94ad 9473 9473 6672 6f6d\n",[16,1143,1141],{"__ignoreMap":864},[12,1145,1146],{},"Each hex pair is a CEA-608 command or character pair. The format encodes not just text but also positioning commands, style changes (italics, underline), channel selection, and display control (roll-up, pop-on, paint-on).",[842,1148,1150],{"id":1149},"key-characteristics","Key characteristics",[46,1152,1153,1163],{},[49,1154,1155],{},[52,1156,1157,1160],{},[55,1158,1159],{},"Property",[55,1161,1162],{},"Value",[65,1164,1165,1175,1185,1195,1205,1215,1225],{},[52,1166,1167,1172],{},[70,1168,1169],{},[73,1170,1171],{},"Timing",[70,1173,1174],{},"SMPTE timecode (frame-accurate)",[52,1176,1177,1182],{},[70,1178,1179],{},[73,1180,1181],{},"Encoding",[70,1183,1184],{},"CEA-608 hex command pairs",[52,1186,1187,1192],{},[70,1188,1189],{},[73,1190,1191],{},"Line limit",[70,1193,1194],{},"32 characters per line",[52,1196,1197,1202],{},[70,1198,1199],{},[73,1200,1201],{},"Channels",[70,1203,1204],{},"4 caption channels (CC1\u002FCC2 on field 1, CC3\u002FCC4 on field 2)",[52,1206,1207,1212],{},[70,1208,1209],{},[73,1210,1211],{},"Positioning",[70,1213,1214],{},"Row-based (15 rows, limited column positioning)",[52,1216,1217,1222],{},[70,1218,1219],{},[73,1220,1221],{},"Styling",[70,1223,1224],{},"Italics, underline, color (limited palette)",[52,1226,1227,1232],{},[70,1228,1229],{},[73,1230,1231],{},"Regulatory",[70,1233,1234],{},"Required for FCC compliance in US broadcast",[842,1236,1238],{"id":1237},"when-scc-is-required","When SCC is required",[12,1240,1241],{},"SCC is required — not optional — for any content that airs on US broadcast, cable, or satellite television. The FCC mandates closed captioning under 47 CFR 79.1, and SCC\u002FCEA-608 is the encoding format that delivers it. If you are preparing content for North American broadcast delivery, you will produce SCC files.",[12,1243,1244],{},"The 32-character line limit is a hard constraint inherited from the CEA-608 character cell grid. Caption authors must write within this limit, which affects line breaking, abbreviation choices, and overall subtitle pacing.",[38,1246,1248],{"id":1247},"ebu-stl-european-broadcast-standard","EBU-STL: European Broadcast Standard",[12,1250,1251],{},"EBU-STL (European Broadcasting Union Subtitle Transfer Language) is the subtitle exchange format standardized by the EBU in Tech 3264. It is a binary format used across European television for subtitle delivery and playout.",[842,1253,1255],{"id":1254},"what-ebu-stl-actually-contains","What EBU-STL actually contains",[12,1257,1258],{},"An EBU-STL file has two sections:",[1024,1260,1261,1267],{},[490,1262,1263,1266],{},[73,1264,1265],{},"General Subtitle Information (GSI) block"," — A 1024-byte header containing metadata: program title, translator name, country of origin, timecode format, character encoding table, and display parameters.",[490,1268,1269,1272],{},[73,1270,1271],{},"Subtitle Text Information (TTI) blocks"," — Each subtitle is a 128-byte binary record containing subtitle group\u002Fnumber, timecodes (in\u002Fout), cumulative status, and the text content encoded per the GSI character table.",[12,1274,1275],{},"The binary structure means EBU-STL files are not human-readable. You cannot open one in a text editor and make corrections the way you can with SRT.",[842,1277,1150],{"id":1278},"key-characteristics-1",[46,1280,1281,1289],{},[49,1282,1283],{},[52,1284,1285,1287],{},[55,1286,1159],{},[55,1288,1162],{},[65,1290,1291,1299,1308,1318,1327,1336,1346],{},[52,1292,1293,1297],{},[70,1294,1295],{},[73,1296,1171],{},[70,1298,1174],{},[52,1300,1301,1305],{},[70,1302,1303],{},[73,1304,1181],{},[70,1306,1307],{},"Binary (ISO 6937, Latin, Arabic, Cyrillic, Greek, Hebrew character tables)",[52,1309,1310,1315],{},[70,1311,1312],{},[73,1313,1314],{},"Structure",[70,1316,1317],{},"1024-byte GSI header + 128-byte TTI records",[52,1319,1320,1324],{},[70,1321,1322],{},[73,1323,1211],{},[70,1325,1326],{},"Row-based (teletext model, 23 rows)",[52,1328,1329,1333],{},[70,1330,1331],{},[73,1332,1221],{},[70,1334,1335],{},"Teletext-level: limited colors, double-height, boxing",[52,1337,1338,1343],{},[70,1339,1340],{},[73,1341,1342],{},"Metadata",[70,1344,1345],{},"Program title, episode, language, translator, creation date",[52,1347,1348,1353],{},[70,1349,1350],{},[73,1351,1352],{},"Standard",[70,1354,1355],{},"EBU Tech 3264",[842,1357,1359],{"id":1358},"when-ebu-stl-is-required","When EBU-STL is required",[12,1361,1362],{},"EBU-STL is the delivery format for terrestrial and satellite television across Europe. Broadcasters in the UK, Germany, France, Scandinavia, and across the continent accept or mandate EBU-STL for subtitle ingest. The format's teletext compatibility means it can drive both digital subtitle rendering and legacy teletext page insertion.",[12,1364,1365],{},"The GSI metadata block is often scrutinized by broadcast QC systems. Incorrect country codes, character encoding table selections, or timecode format declarations will cause rejection even if the subtitle text itself is correct.",[38,1367,1369],{"id":1368},"graphics-stl-image-based-subtitle-rendering","Graphics STL: Image-Based Subtitle Rendering",[12,1371,1372],{},"Graphics STL is fundamentally different from text-based subtitle formats. Instead of delivering text that a player or broadcast system renders, Graphics STL delivers pre-rendered images — one per subtitle event — along with a manifest that specifies timing and file references.",[842,1374,1376],{"id":1375},"what-a-graphics-stl-bundle-contains","What a Graphics STL bundle contains",[12,1378,1379],{},"A typical Graphics STL delivery is a directory (or ZIP archive) containing:",[1024,1381,1382,1388,1394],{},[490,1383,1384,1387],{},[73,1385,1386],{},"STL manifest"," — A text file listing timecode in\u002Fout pairs and image filenames",[490,1389,1390,1393],{},[73,1391,1392],{},"SST manifest"," — A Scenarist-format manifest with Color\u002FContrast directives and display parameters",[490,1395,1396,1399],{},[73,1397,1398],{},"Image files"," — One TIF or PNG per subtitle event, rendered at the target resolution",[12,1401,1402],{},"The STL manifest looks like this:",[856,1404,1407],{"className":1405,"code":1406,"language":861},[859],"\u002F\u002F##############################################################\n\u002F\u002F Script for Graphics STL\n\u002F\u002F--------------------------------------------------------------\n\u002F\u002F Video Standard: HD 16:9\n\u002F\u002F Timecode:       30fps DROP\n\u002F\u002F##############################################################\n$SetFilePathToken   =   \u003C\u003CGraphics>>\n$ColorIndex1    =   2\n$ColorIndex2    =   0\n$ColorIndex3    =   4\n$ColorIndex4    =   0\n$TextContrast   =   15\n$Outline1Contrast   =   15\n$Outline2Contrast   =   15\n$BackgroundContrast =   0\n01:00:05:12 ,   01:00:08:03 ,   \u003C\u003CGraphics>>Subtitles0000.tif\n01:00:09:00 ,   01:00:12:15 ,   \u003C\u003CGraphics>>Subtitles0001.tif\n",[16,1408,1406],{"__ignoreMap":864},[12,1410,1411],{},"Each image file is a palette-indexed bitmap — typically 4 colors: background, outline, anti-alias, and text body. The Scenarist Color\u002FContrast directives in the SST manifest tell the authoring system how to map these palette indices to on-screen colors and transparency levels.",[842,1413,1150],{"id":1414},"key-characteristics-2",[46,1416,1417,1425],{},[49,1418,1419],{},[52,1420,1421,1423],{},[55,1422,1159],{},[55,1424,1162],{},[65,1426,1427,1435,1445,1455,1465,1475],{},[52,1428,1429,1433],{},[70,1430,1431],{},[73,1432,1171],{},[70,1434,1174],{},[52,1436,1437,1442],{},[70,1438,1439],{},[73,1440,1441],{},"Output",[70,1443,1444],{},"Per-subtitle image files (TIF or PNG)",[52,1446,1447,1452],{},[70,1448,1449],{},[73,1450,1451],{},"Resolution",[70,1453,1454],{},"Matches target video (e.g., 1920x1080)",[52,1456,1457,1462],{},[70,1458,1459],{},[73,1460,1461],{},"Palette",[70,1463,1464],{},"4-color indexed (background, outline, anti-alias, text)",[52,1466,1467,1472],{},[70,1468,1469],{},[73,1470,1471],{},"Manifests",[70,1473,1474],{},"STL and SST (Scenarist-compatible)",[52,1476,1477,1482],{},[70,1478,1479],{},[73,1480,1481],{},"Use case",[70,1483,1484],{},"DVD, Blu-ray, broadcast when pixel-perfect rendering is required",[842,1486,1488],{"id":1487},"when-graphics-stl-is-required","When Graphics STL is required",[12,1490,1491],{},"Graphics STL is used when text rendering cannot be left to the playback device. This includes:",[487,1493,1494,1500,1506,1512],{},[490,1495,1496,1499],{},[73,1497,1498],{},"DVD authoring"," — DVD subtitle streams use bitmap overlays (VOBSUB), and Graphics STL is the standard Scenarist input",[490,1501,1502,1505],{},[73,1503,1504],{},"Blu-ray authoring"," — PGS (Presentation Graphics Stream) subtitles are bitmaps",[490,1507,1508,1511],{},[73,1509,1510],{},"Broadcast graphics"," — When the subtitle must render identically on every receiver regardless of font availability",[490,1513,1514,1517],{},[73,1515,1516],{},"Regulatory scenarios"," — Some territories require pre-rendered subtitles for approval before broadcast",[38,1519,1521],{"id":1520},"why-browser-based-tools-historically-could-not-handle-these","Why Browser-Based Tools Historically Could Not Handle These",[12,1523,1524],{},"Web-based subtitle tools have traditionally been limited to text formats (SRT, VTT, ASS) for three reasons:",[1024,1526,1527,1545,1551],{},[490,1528,1529,1532,1533,1536,1537,1540,1541,1544],{},[73,1530,1531],{},"Binary encoding."," EBU-STL and SCC require generating or parsing binary data and hex-encoded command sequences. JavaScript historically had weak binary data handling, though ",[16,1534,1535],{},"ArrayBuffer",", ",[16,1538,1539],{},"DataView",", and ",[16,1542,1543],{},"Uint8Array"," have closed this gap.",[490,1546,1547,1550],{},[73,1548,1549],{},"Frame-accurate timing."," Broadcast formats use SMPTE timecodes, not milliseconds. A tool that internally stores time as milliseconds cannot generate correct SMPTE timecodes for 29.97fps content without accumulating drift. This is a fundamental architecture problem, not a missing feature.",[490,1552,1553,1556],{},[73,1554,1555],{},"Image generation."," Graphics STL requires rendering text to images — palette-indexed TIFF files with specific bit depth, resolution, and color conventions. This requires either a Canvas API pipeline (for browser) or an image processing library (for server-side).",[38,1558,1560],{"id":1559},"how-timecodedev-handles-all-three","How timecode.dev Handles All Three",[12,1562,1004,1563,1567],{},[27,1564,1566],{"href":1565},"\u002Ftransform","subtitle tool"," supports SCC and EBU-STL as both input and output formats, and Graphics STL as an output-only format. The architecture that makes this possible:",[12,1569,1570,1573,1574,1577,1578,1581,1582,1585],{},[73,1571,1572],{},"Frame-number-canonical timing."," Every subtitle entry is stored as a ",[16,1575,1576],{},"SubtitleEntry"," with ",[16,1579,1580],{},"startFrame"," and ",[16,1583,1584],{},"endFrame"," — integer frame numbers, not milliseconds. When exporting to SCC or EBU-STL, SMPTE timecodes are derived directly from frame numbers via the timecodes engine. There is no millisecond intermediate. This eliminates the timing drift that disqualifies most web-based tools from broadcast work.",[12,1587,1588,1591,1592,1581,1594,1596],{},[73,1589,1590],{},"Binary encoding in the browser."," EBU-STL's GSI and TTI blocks are assembled using ",[16,1593,1535],{},[16,1595,1539],{},", producing spec-compliant binary files. SCC's hex command encoding is generated from the text content and positioning data.",[12,1598,1599,1602],{},[73,1600,1601],{},"Canvas-based image rendering for Graphics STL."," Each subtitle entry is rendered to an HTML Canvas element, then converted to a palette-indexed TIFF — 8-bit uncompressed, 72 DPI, with the standard 4-color Scenarist palette (background\u002Foutline\u002Fanti-alias\u002Ftext). Both STL and SST manifests are generated automatically. The entire bundle is packaged as a ZIP archive.",[12,1604,1605],{},"All of this runs client-side. No subtitle data leaves the browser. No server-side rendering infrastructure is required.",[38,1607,1609],{"id":1608},"choosing-between-broadcast-formats","Choosing Between Broadcast Formats",[46,1611,1612,1625],{},[49,1613,1614],{},[52,1615,1616,1619,1622],{},[55,1617,1618],{},"Delivery target",[55,1620,1621],{},"Format",[55,1623,1624],{},"Region",[65,1626,1627,1638,1649,1660,1669],{},[52,1628,1629,1632,1635],{},[70,1630,1631],{},"US broadcast \u002F cable \u002F satellite",[70,1633,1634],{},"SCC",[70,1636,1637],{},"North America",[52,1639,1640,1643,1646],{},[70,1641,1642],{},"European terrestrial \u002F satellite",[70,1644,1645],{},"EBU-STL",[70,1647,1648],{},"Europe",[52,1650,1651,1654,1657],{},[70,1652,1653],{},"DVD authoring (Scenarist)",[70,1655,1656],{},"Graphics STL",[70,1658,1659],{},"Global",[52,1661,1662,1664,1667],{},[70,1663,1504],{},[70,1665,1666],{},"Graphics STL (PGS coming)",[70,1668,1659],{},[52,1670,1671,1674,1676],{},[70,1672,1673],{},"Broadcast with pixel-perfect requirement",[70,1675,1656],{},[70,1677,1659],{},[12,1679,1680],{},"If you are delivering to a broadcaster, they will tell you which format they require. There is no ambiguity — each broadcaster's delivery spec names the format, timecode mode, and QC requirements explicitly.",[12,1682,1683,1684,1686],{},"If you are preparing assets for disc authoring, Graphics STL with TIF output is the standard Scenarist input. The ",[27,1685,1566],{"href":1565}," generates Scenarist-compatible bundles with both STL and SST manifests, ready for import.",[12,1688,1689],{},"For converting between broadcast and consumer formats — for example, generating an SRT for web delivery from an SCC broadcast master — the frame-number-canonical architecture ensures timing integrity across the conversion. The SCC's SMPTE timecodes resolve to frame numbers, and the SRT's millisecond timestamps are derived from those same frame numbers. No drift accumulates.",[12,1691,1692,1693,1015],{},"Explore the full set of supported formats and conversions at the ",[27,1694,1696],{"href":1695},"\u002Fconvert","subtitle converter",{"title":864,"searchDepth":1080,"depth":1080,"links":1698},[1699,1704,1709,1714,1715,1716],{"id":1126,"depth":1080,"text":1127,"children":1700},[1701,1702,1703],{"id":1133,"depth":1088,"text":1134},{"id":1149,"depth":1088,"text":1150},{"id":1237,"depth":1088,"text":1238},{"id":1247,"depth":1080,"text":1248,"children":1705},[1706,1707,1708],{"id":1254,"depth":1088,"text":1255},{"id":1278,"depth":1088,"text":1150},{"id":1358,"depth":1088,"text":1359},{"id":1368,"depth":1080,"text":1369,"children":1710},[1711,1712,1713],{"id":1375,"depth":1088,"text":1376},{"id":1414,"depth":1088,"text":1150},{"id":1487,"depth":1088,"text":1488},{"id":1520,"depth":1080,"text":1521},{"id":1559,"depth":1080,"text":1560},{"id":1608,"depth":1080,"text":1609},"2026-03-10","A technical overview of the subtitle formats that actually reach broadcast air — SCC, EBU-STL, and Graphics STL — and how timecode.dev handles all three in the browser.",{},"\u002Ffield-notes\u002Fbroadcast-subtitle-formats-scc-ebu-stl-graphics-stl",{"title":1112,"description":1718},"field-notes\u002Fbroadcast-subtitle-formats-scc-ebu-stl-graphics-stl",[1724,1725,1726,1727,1728,1729],"subtitles","broadcast","scc","ebu-stl","graphics-stl","post-production","xl0fYYj6T-QG_cBnjxUOj5EO7ZFPVek6QPUk9qozTpE",{"id":1732,"title":1733,"author":7,"body":1734,"date":1717,"description":2165,"extension":1097,"meta":2166,"navigation":1099,"path":2167,"seo":2168,"stem":2169,"tags":2170,"__hash__":2174},"content\u002Ffield-notes\u002Fbrowser-based-bitmap-subtitle-encoder.md","Building a Browser-Based Bitmap Subtitle Encoder",{"type":9,"value":1735,"toc":2146},[1736,1739,1745,1749,1752,1755,1759,1825,1828,1832,1835,1855,1859,1862,1900,1903,1907,1912,1916,2065,2069,2072,2076,2080,2083,2087,2090,2094,2097,2101,2108,2112,2115,2121,2127,2130,2134,2140,2143],[12,1737,1738],{},"Bitmap subtitles are one of the last holdouts of the desktop-only post-production workflow. While text-based subtitle formats have been editable in web browsers for years, bitmap subtitles — pre-rendered images used in DVD, Blu-ray, and broadcast delivery — have remained locked behind expensive desktop software.",[12,1740,1741,1742,1744],{},"That changes now. The ",[27,1743,1566],{"href":1565}," at timecode.dev can render subtitle text to bitmap images — PNG by default, or palette-indexed TIF for Scenarist compatibility — generate both STL and SST manifests, and bundle everything into a ZIP archive — entirely in the browser. No plugins. No server-side processing. No desktop software required.",[38,1746,1748],{"id":1747},"what-are-bitmap-subtitles","What Are Bitmap Subtitles?",[12,1750,1751],{},"Most subtitle formats deliver text. The playback device — a media player, a web browser, a set-top box — receives the text and renders it using whatever font engine and styling capabilities it has. The result looks different on every device.",[12,1753,1754],{},"Bitmap subtitles are different. Instead of delivering text for the device to render, you deliver pre-rendered images. Each subtitle event is a separate image file showing exactly what the viewer should see. The playback device just composites the image onto the video frame at the specified time. No font engine. No styling interpretation. Pixel-perfect, device-independent rendering.",[842,1756,1758],{"id":1757},"where-bitmap-subtitles-are-used","Where bitmap subtitles are used",[46,1760,1761,1772],{},[49,1762,1763],{},[52,1764,1765,1767,1770],{},[55,1766,1621],{},[55,1768,1769],{},"Medium",[55,1771,1352],{},[65,1773,1774,1787,1801,1813],{},[52,1775,1776,1781,1784],{},[70,1777,1778],{},[73,1779,1780],{},"VOBSUB",[70,1782,1783],{},"DVD",[70,1785,1786],{},"DVD-Video specification",[52,1788,1789,1795,1798],{},[70,1790,1791,1794],{},[73,1792,1793],{},"PGS"," (Presentation Graphics Stream)",[70,1796,1797],{},"Blu-ray",[70,1799,1800],{},"HDMV specification",[52,1802,1803,1807,1810],{},[70,1804,1805],{},[73,1806,1656],{},[70,1808,1809],{},"Broadcast \u002F Disc authoring",[70,1811,1812],{},"Scenarist convention",[52,1814,1815,1820,1822],{},[70,1816,1817],{},[73,1818,1819],{},"BDN XML",[70,1821,1504],{},[70,1823,1824],{},"BDN\u002FScenarist convention",[12,1826,1827],{},"In all of these, the subtitle stream contains images, not text. The images are typically palette-indexed bitmaps with a small number of colors (2-4 for subtitles), which keeps file sizes manageable while allowing transparency and anti-aliasing.",[842,1829,1831],{"id":1830},"why-they-exist","Why they exist",[12,1833,1834],{},"Bitmap subtitles solve three problems that text-based formats cannot:",[1024,1836,1837,1843,1849],{},[490,1838,1839,1842],{},[73,1840,1841],{},"Rendering consistency."," A text subtitle rendered in Arial on Windows looks different from the same text in Arial on macOS, which looks different again on a Linux media player. A bitmap looks identical everywhere because the rendering already happened.",[490,1844,1845,1848],{},[73,1846,1847],{},"Font independence."," Text subtitles require the playback device to have the specified font installed. If it does not, the device substitutes a fallback, often with different metrics. Bitmap subtitles have no font dependency — the font was used during rendering and is baked into the image.",[490,1850,1851,1854],{},[73,1852,1853],{},"Transmission constraints."," DVD and Blu-ray subtitle streams are defined as image overlays in their respective specifications. These formats do not have a text rendering engine in the player specification. The disc standard requires bitmaps.",[38,1856,1858],{"id":1857},"the-traditional-workflow","The Traditional Workflow",[12,1860,1861],{},"Before browser-based encoding, creating bitmap subtitles required a chain of specialized desktop tools:",[1024,1863,1864,1870,1876,1882,1888,1894],{},[490,1865,1866,1869],{},[73,1867,1868],{},"Author subtitles"," in a text-based format (SRT, STL, or the tool's native format)",[490,1871,1872,1875],{},[73,1873,1874],{},"Import into Scenarist"," (or EZTitles, Subtitle Edit Pro, or similar) — an application that costs hundreds to thousands of dollars per license",[490,1877,1878,1881],{},[73,1879,1880],{},"Configure rendering"," — font, size, color, positioning, anti-aliasing, palette mapping",[490,1883,1884,1887],{},[73,1885,1886],{},"Render to images"," — the application generates one image per subtitle event, plus manifests",[490,1889,1890,1893],{},[73,1891,1892],{},"QC the output"," — verify every image renders correctly, timing is accurate, palette is correct",[490,1895,1896,1899],{},[73,1897,1898],{},"Package for delivery"," — organize files per the disc authoring or broadcast delivery spec",[12,1901,1902],{},"This workflow is manual, slow, and requires specialized software that runs only on Windows (in most cases). A typical feature film might have 1,500-2,000 subtitle events, each rendered as a separate image. The rendering step alone can take minutes on desktop hardware.",[38,1904,1906],{"id":1905},"what-timecodedev-does-differently","What timecode.dev Does Differently",[12,1908,1004,1909,1911],{},[27,1910,1566],{"href":1565}," replaces steps 2 through 6 with a single browser-based operation. Upload any supported subtitle format, configure the rendering parameters, and export as Graphics STL. The output is a ZIP archive containing everything needed for Scenarist import.",[842,1913,1915],{"id":1914},"the-rendering-pipeline","The rendering pipeline",[1024,1917,1918,1932,1938,2012,2043,2059],{},[490,1919,1920,1923,1924,1926,1927,1581,1929,1931],{},[73,1921,1922],{},"Parse input."," The source subtitle file is parsed with framerate context. Every timestamp is immediately converted to a frame number via the timecodes engine. The internal representation is an array of ",[16,1925,1576],{}," objects with ",[16,1928,1580],{},[16,1930,1584],{}," — integers, not milliseconds.",[490,1933,1934,1937],{},[73,1935,1936],{},"Render to Canvas."," Each subtitle's text is rendered to an HTML Canvas element at the target resolution (default 1920x1080). The rendering applies the configured font, size, color, outline width, and positioning. Text is centered horizontally and positioned in the lower 10% of the frame, matching standard subtitle placement.",[490,1939,1940,1943,1944,2005,2008,2009,2011],{},[73,1941,1942],{},"Quantize to palette."," The RGBA canvas output is converted to a 4-color palette-indexed format matching the Scenarist convention:",[46,1945,1946,1959],{},[49,1947,1948],{},[52,1949,1950,1953,1956],{},[55,1951,1952],{},"Index",[55,1954,1955],{},"Color",[55,1957,1958],{},"Role",[65,1960,1961,1972,1983,1994],{},[52,1962,1963,1966,1969],{},[70,1964,1965],{},"0",[70,1967,1968],{},"White",[70,1970,1971],{},"Background (remapped by SST Color\u002FContrast)",[52,1973,1974,1977,1980],{},[70,1975,1976],{},"1",[70,1978,1979],{},"Black",[70,1981,1982],{},"Outline",[52,1984,1985,1988,1991],{},[70,1986,1987],{},"2",[70,1989,1990],{},"Blue",[70,1992,1993],{},"Anti-alias",[52,1995,1996,1999,2002],{},[70,1997,1998],{},"3",[70,2000,2001],{},"Red",[70,2003,2004],{},"Text body",[2006,2007],"br",{},"The quantization uses luminance thresholds on the rendered RGBA data. Pixels with alpha below 10% map to background (index 0). Remaining pixels are classified by effective luminance: high luminance maps to text body (index 3), medium to anti-alias (index 2), low to outline (index 1).",[2006,2010],{},"These palette colors are not the final on-screen colors. They are index markers. The SST manifest's Color and Contrast directives tell Scenarist how to remap these indices to the desired display colors and transparency levels during disc authoring.",[490,2013,2014,2017,2018,1581,2020,2022,2023],{},[73,2015,2016],{},"Encode to TIFF."," The palette-indexed data is written as an 8-bit uncompressed TIFF file, assembled byte-by-byte using ",[16,2019,1535],{},[16,2021,1539],{},". The TIFF includes:",[487,2024,2025,2028,2031,2034,2037,2040],{},[490,2026,2027],{},"Standard header (little-endian, magic number 42)",[490,2029,2030],{},"19 IFD tags in ascending order per TIFF specification",[490,2032,2033],{},"256-entry color map (the 4-color Scenarist palette, zero-padded to 256)",[490,2035,2036],{},"72 DPI resolution (XResolution, YResolution as RATIONAL values)",[490,2038,2039],{},"PageNumber tag (page 0 of 1)",[490,2041,2042],{},"Image data as raw palette indices (1 byte per pixel)",[490,2044,2045,2048,2049,2051,2053,2054,2056,2058],{},[73,2046,2047],{},"Generate manifests."," Two manifest files are produced:",[2006,2050],{},[73,2052,1386],{}," — Lists timecode in\u002Fout pairs with image filenames and global Color\u002FContrast directives. Uses SMPTE timecodes derived from frame numbers, with correct drop-frame handling for 29.97fps content.",[2006,2055],{},[73,2057,1392],{}," — Scenarist-format file with full metadata: TV type (NTSC\u002FPAL), tape type (DROP\u002FNON_DROP), pixel area, display area, and per-subtitle timecode\u002Ffilename mappings. This file can be directly imported into Scenarist.",[490,2060,2061,2064],{},[73,2062,2063],{},"Bundle as ZIP."," All files — STL manifest, SST manifest, and individual image files — are compressed into a single ZIP archive using DEFLATE compression. The archive is generated client-side using JSZip and downloaded directly to the user's machine.",[842,2066,2068],{"id":2067},"what-this-means-in-practice","What this means in practice",[12,2070,2071],{},"A 1,500-subtitle feature film that previously required Scenarist and 10-15 minutes of rendering time can now be processed in under a minute in a modern browser. The output is byte-compatible with Scenarist's expected input format. The timing is frame-accurate because it was never stored as milliseconds.",[38,2073,2075],{"id":2074},"technical-details-for-the-curious","Technical Details for the Curious",[842,2077,2079],{"id":2078},"why-8-bit-uncompressed-tiff","Why 8-bit uncompressed TIFF?",[12,2081,2082],{},"Scenarist expects palette-indexed TIFF files. While the TIFF specification supports numerous compression schemes (LZW, PackBits, DEFLATE), Scenarist's import pipeline is most reliable with uncompressed (Compression = 1) 8-bit palette-indexed images. Using uncompressed data also means the TIFF encoder is simple — no compression algorithm to implement, just raw pixel bytes preceded by the IFD structure.",[842,2084,2086],{"id":2085},"why-72-dpi","Why 72 DPI?",[12,2088,2089],{},"The DPI value in a TIFF file is metadata — it does not affect the pixel data. Scenarist uses the pixel dimensions, not DPI, for positioning. 72 DPI is the conventional value used by existing Scenarist-compatible tools, and matching it ensures the output passes any DPI validation checks in the import pipeline.",[842,2091,2093],{"id":2092},"why-the-specific-palette-convention","Why the specific palette convention?",[12,2095,2096],{},"The 4-color palette (white\u002Fblack\u002Fblue\u002Fred mapped to background\u002Foutline\u002Fanti-alias\u002Ftext) is a Scenarist convention, not a formal standard. These colors are arbitrary markers — the SST manifest's Color and Contrast directives define how Scenarist remaps them during disc compilation. By matching the established convention, the output works with existing Scenarist project templates without requiring palette reconfiguration.",[842,2098,2100],{"id":2099},"canvas-rendering-limitations","Canvas rendering limitations",[12,2102,2103,2104,2107],{},"The HTML Canvas API's text rendering is font-dependent on the host system. If the configured font is not available on the user's machine, the browser will substitute a fallback. For production use, verify that the intended font is installed before rendering. Web fonts loaded via CSS ",[16,2105,2106],{},"@font-face"," are accessible to Canvas after they finish loading.",[38,2109,2111],{"id":2110},"what-comes-next","What Comes Next",[12,2113,2114],{},"Graphics STL with PNG (default) and TIF output covers the Scenarist\u002Fbroadcast use case. But the same architecture — frame-canonical timing, Canvas rendering, binary encoding — applies to other bitmap subtitle formats:",[12,2116,2117,2120],{},[73,2118,2119],{},"PGS (Presentation Graphics Stream)"," — The Blu-ray subtitle format. PGS uses RLE-compressed bitmap segments with a defined composition structure. The Canvas rendering pipeline already produces the source images; what remains is implementing the PGS segment encoding (Palette Definition, Object Definition, Window Definition, Composition) and RLE compression. This is feasible in browser TypeScript.",[12,2122,2123,2126],{},[73,2124,2125],{},"VOBSUB (DVD)"," — DVD subtitle streams use run-length encoded 4-color bitmaps in a container derived from MPEG-2 Program Stream. The palette-indexed TIFF output is already in the right color model; the additional work is RLE encoding per the DVD specification and wrapping in the SUB\u002FIDX container format.",[12,2128,2129],{},"Both formats are implementable with the same client-side architecture — no server, no native code, no desktop application. The encoder runs where the browser runs.",[38,2131,2133],{"id":2132},"try-it","Try It",[12,2135,2136,2137,2139],{},"The Graphics STL export is available now in the ",[27,2138,1566],{"href":1565},". Upload any supported subtitle format, select Graphics STL as the output format, configure your rendering parameters (resolution, font, colors), and download the ZIP bundle. The output includes both STL and SST manifests, ready for Scenarist import.",[12,2141,2142],{},"For teams currently licensing desktop software to produce bitmap subtitles: run a comparison. Render the same subtitle file through your existing tool and through timecode.dev. Compare the TIFF output byte-for-byte. Compare the manifest timing against your known program timecodes. The browser-based output holds up.",[12,2144,2145],{},"This is not a toy. It is a production tool that eliminates a significant cost and workflow bottleneck from bitmap subtitle delivery.",{"title":864,"searchDepth":1080,"depth":1080,"links":2147},[2148,2152,2153,2157,2163,2164],{"id":1747,"depth":1080,"text":1748,"children":2149},[2150,2151],{"id":1757,"depth":1088,"text":1758},{"id":1830,"depth":1088,"text":1831},{"id":1857,"depth":1080,"text":1858},{"id":1905,"depth":1080,"text":1906,"children":2154},[2155,2156],{"id":1914,"depth":1088,"text":1915},{"id":2067,"depth":1088,"text":2068},{"id":2074,"depth":1080,"text":2075,"children":2158},[2159,2160,2161,2162],{"id":2078,"depth":1088,"text":2079},{"id":2085,"depth":1088,"text":2086},{"id":2092,"depth":1088,"text":2093},{"id":2099,"depth":1088,"text":2100},{"id":2110,"depth":1080,"text":2111},{"id":2132,"depth":1080,"text":2133},"How timecode.dev renders bitmap subtitle images (PNG by default, TIF for Scenarist compatibility) entirely in the browser, eliminating expensive desktop tools from the bitmap subtitle workflow.",{},"\u002Ffield-notes\u002Fbrowser-based-bitmap-subtitle-encoder",{"title":1733,"description":2165},"field-notes\u002Fbrowser-based-bitmap-subtitle-encoder",[1724,2171,1728,2172,1725,2173],"bitmap","tif","scenarist","JaJQz6GV5R21ExfQnUAcnhHlzHJc9lK-SB1hT6PwjWE",{"id":2176,"title":2177,"author":7,"body":2178,"date":1717,"description":2521,"extension":1097,"meta":2522,"navigation":1099,"path":2523,"seo":2524,"stem":2525,"tags":2526,"__hash__":2530},"content\u002Ffield-notes\u002Fimsc-universal-subtitle-interchange-format.md","IMSC as a Universal Subtitle Interchange Format",{"type":9,"value":2179,"toc":2512},[2180,2183,2186,2190,2193,2207,2210,2214,2217,2374,2377,2380,2384,2387,2393,2399,2402,2406,2409,2434,2437,2441,2444,2447,2467,2470,2474,2477,2483,2487,2492,2506,2509],[12,2181,2182],{},"Every post-production facility eventually faces the same problem: a subtitle file arrives in one format, needs to be delivered in three others, and somewhere in the chain, styling disappears, positioning breaks, or timing drifts. The root cause is almost always the same — the team stored their canonical version in a format that was never designed to carry the full signal.",[12,2184,2185],{},"SRT is not an archive format. VTT is not an archive format. They are delivery endpoints. The format that should sit at the center of your subtitle pipeline is IMSC.",[38,2187,2189],{"id":2188},"what-imsc-actually-is","What IMSC Actually Is",[12,2191,2192],{},"IMSC (Internet Media Subtitles and Captions) is a constrained profile of TTML (Timed Text Markup Language), standardized by the W3C. It defines two profiles:",[487,2194,2195,2201],{},[490,2196,2197,2200],{},[73,2198,2199],{},"IMSC1 Text Profile"," — styled, positioned timed text in XML",[490,2202,2203,2206],{},[73,2204,2205],{},"IMSC1 Image Profile"," — bitmap-based subtitles for scenarios requiring pixel-perfect rendering",[12,2208,2209],{},"IMSC is not a theoretical spec that nobody uses. Netflix mandates IMSC for all subtitle deliveries. Disney+, Apple TV+, and most major streaming platforms either require or accept it. The broadcast-to-streaming transition has made IMSC the de facto interchange standard.",[38,2211,2213],{"id":2212},"the-lossy-transport-problem","The Lossy Transport Problem",[12,2215,2216],{},"Consider what each common format actually preserves:",[46,2218,2219,2240],{},[49,2220,2221],{},[52,2222,2223,2225,2228,2231,2234,2237],{},[55,2224,192],{},[55,2226,2227],{},"IMSC\u002FTTML",[55,2229,2230],{},"VTT",[55,2232,2233],{},"SRT",[55,2235,2236],{},"SBV",[55,2238,2239],{},"ASS",[65,2241,2242,2260,2279,2295,2312,2327,2343,2358],{},[52,2243,2244,2247,2250,2253,2255,2257],{},[70,2245,2246],{},"Timing precision",[70,2248,2249],{},"Frame-accurate",[70,2251,2252],{},"Milliseconds",[70,2254,2252],{},[70,2256,2252],{},[70,2258,2259],{},"Centiseconds",[52,2261,2262,2265,2268,2271,2274,2276],{},[70,2263,2264],{},"Vertical positioning",[70,2266,2267],{},"Yes (regions)",[70,2269,2270],{},"Partial (cue settings)",[70,2272,2273],{},"No",[70,2275,2273],{},[70,2277,2278],{},"Yes",[52,2280,2281,2284,2286,2289,2291,2293],{},[70,2282,2283],{},"Horizontal positioning",[70,2285,2267],{},[70,2287,2288],{},"Partial",[70,2290,2273],{},[70,2292,2273],{},[70,2294,2278],{},[52,2296,2297,2300,2303,2306,2308,2310],{},[70,2298,2299],{},"Font\u002Fcolor styling",[70,2301,2302],{},"Yes (inline + styles)",[70,2304,2305],{},"Partial (CSS)",[70,2307,2273],{},[70,2309,2273],{},[70,2311,2278],{},[52,2313,2314,2317,2319,2321,2323,2325],{},[70,2315,2316],{},"Region definitions",[70,2318,2278],{},[70,2320,2288],{},[70,2322,2273],{},[70,2324,2273],{},[70,2326,2273],{},[52,2328,2329,2332,2335,2337,2339,2341],{},[70,2330,2331],{},"Language metadata",[70,2333,2334],{},"Yes (xml:lang)",[70,2336,2273],{},[70,2338,2273],{},[70,2340,2273],{},[70,2342,2273],{},[52,2344,2345,2348,2350,2352,2354,2356],{},[70,2346,2347],{},"Multiple subtitle tracks",[70,2349,2278],{},[70,2351,2273],{},[70,2353,2273],{},[70,2355,2273],{},[70,2357,2273],{},[52,2359,2360,2363,2366,2368,2370,2372],{},[70,2361,2362],{},"Accessibility metadata",[70,2364,2365],{},"Yes (role attributes)",[70,2367,2273],{},[70,2369,2273],{},[70,2371,2273],{},[70,2373,2273],{},[12,2375,2376],{},"When you store your master subtitles in SRT, you have already thrown away positioning, styling, region layout, language metadata, and accessibility attributes. That information is gone. If a downstream delivery later requires any of it, someone has to recreate it manually.",[12,2378,2379],{},"This is the same principle as audio: you do not master to MP3 and then try to derive FLAC from it. You master to a lossless format and down-convert to lossy endpoints as needed.",[38,2381,2383],{"id":2382},"the-conversion-asymmetry","The Conversion Asymmetry",[12,2385,2386],{},"Format conversion is not symmetric. Converting up adds nothing; converting down loses data.",[12,2388,2389,2392],{},[73,2390,2391],{},"SRT to IMSC",": You get valid IMSC, but with no positioning, no styling, no regions. The text and timing survive. Everything else is default.",[12,2394,2395,2398],{},[73,2396,2397],{},"IMSC to SRT",": Positioning is stripped. Styling is stripped. Region definitions are stripped. Language metadata is stripped. You get bare text with millisecond timestamps.",[12,2400,2401],{},"This asymmetry means that the direction you convert matters enormously. If your archive format is SRT and you need to deliver IMSC, you are starting from a deficit every time. If your archive format is IMSC and you need to deliver SRT, you lose nothing that SRT was ever going to carry anyway.",[38,2403,2405],{"id":2404},"the-practical-workflow","The Practical Workflow",[12,2407,2408],{},"A frame-accurate subtitle pipeline looks like this:",[1024,2410,2411,2417,2423,2429],{},[490,2412,2413,2416],{},[73,2414,2415],{},"Ingest"," — Accept any input format (SRT, VTT, SBV, ASS, SCC, EBU-STL). Parse it with framerate context. Convert timestamps to frame numbers immediately.",[490,2418,2419,2422],{},[73,2420,2421],{},"Normalize"," — Convert the parsed data to IMSC. Add any metadata the source format carried (styling from ASS, positioning from VTT, etc.). This is your canonical version.",[490,2424,2425,2428],{},[73,2426,2427],{},"Archive"," — Store the IMSC file. This is your master. All subsequent operations derive from it.",[490,2430,2431,2433],{},[73,2432,1042],{}," — When delivery requirements arrive, convert from IMSC to whatever the target platform needs. SRT for YouTube. VTT for HLS manifests. SCC for North American broadcast. EBU-STL for European broadcast.",[12,2435,2436],{},"The key insight: you never edit the downstream exports. You edit the IMSC master, then regenerate exports. This eliminates the version control nightmare of maintaining parallel SRT, VTT, and SCC files that inevitably diverge.",[38,2438,2440],{"id":2439},"why-not-ass","Why Not ASS?",[12,2442,2443],{},"ASS (Advanced SubStation Alpha) carries rich styling data — arguably more creative control than IMSC for certain use cases like karaoke and animation effects. So why not use ASS as the canonical format?",[12,2445,2446],{},"Three reasons:",[1024,2448,2449,2455,2461],{},[490,2450,2451,2454],{},[73,2452,2453],{},"ASS is not a standard."," It is a format defined by a single application (Aegisub\u002FVSFilter). There is no governing body, no formal specification, no compliance testing. IMSC is a W3C Recommendation with a defined conformance model.",[490,2456,2457,2460],{},[73,2458,2459],{},"ASS has no accessibility model."," IMSC supports role attributes, forced display flags, and language tagging that are required for accessibility compliance in broadcast and streaming.",[490,2462,2463,2466],{},[73,2464,2465],{},"Industry adoption."," No major streaming platform accepts ASS for delivery. Every major platform accepts or mandates TTML\u002FIMSC.",[12,2468,2469],{},"ASS is excellent for creative subtitle work. But when that work is done, the result should be exported to IMSC for archival and downstream delivery.",[38,2471,2473],{"id":2472},"timing-precision","Timing Precision",[12,2475,2476],{},"IMSC supports multiple timing models, including SMPTE timecodes and frame-based timing. This means an IMSC file can carry the same frame-accurate timing that broadcast formats like SCC and EBU-STL require — without the millisecond rounding that SRT and VTT force.",[12,2478,2479,2480,2482],{},"At ",[27,2481,214],{"href":1565},", all subtitle operations run through the timecodes engine, which treats frame numbers as the canonical time representation. When you convert between formats, every timestamp goes through integer frame space first. This means converting SRT to IMSC to SCC does not accumulate rounding errors — each conversion step resolves to exact frame boundaries.",[38,2484,2486],{"id":2485},"getting-started","Getting Started",[12,2488,1004,2489,2491],{},[27,2490,1566],{"href":1565}," supports IMSC as both an input and output format. You can:",[487,2493,2494,2497,2500],{},[490,2495,2496],{},"Upload any supported format and export to IMSC",[490,2498,2499],{},"Upload IMSC and export to any target format (SRT, VTT, SBV, ASS, SCC, EBU-STL, and more)",[490,2501,2502,2503,2505],{},"Use the ",[27,2504,1696],{"href":1695}," for direct format-to-format conversion with IMSC as an intermediate",[12,2507,2508],{},"If you are building a subtitle pipeline for a facility that handles multiple delivery targets, stop storing SRT as your master. Up-res to IMSC, archive it, and down-convert to whatever each delivery window requires. You will save hours of rework and eliminate an entire category of QC failures.",[12,2510,2511],{},"The industry is already moving this direction. The only question is whether you adopt it proactively or reactively.",{"title":864,"searchDepth":1080,"depth":1080,"links":2513},[2514,2515,2516,2517,2518,2519,2520],{"id":2188,"depth":1080,"text":2189},{"id":2212,"depth":1080,"text":2213},{"id":2382,"depth":1080,"text":2383},{"id":2404,"depth":1080,"text":2405},{"id":2439,"depth":1080,"text":2440},{"id":2472,"depth":1080,"text":2473},{"id":2485,"depth":1080,"text":2486},"Why IMSC\u002FTTML should be your canonical subtitle storage format, and how treating simpler formats as lossy transports protects your assets through every delivery cycle.",{},"\u002Ffield-notes\u002Fimsc-universal-subtitle-interchange-format",{"title":2177,"description":2521},"field-notes\u002Fimsc-universal-subtitle-interchange-format",[1724,2527,2528,2529,1725],"imsc","ttml","interchange","zypvCiYPeJwRc6cwWR2USLP2D1cKD6XXks0Yc49qiC4",{"id":2532,"title":2533,"author":7,"body":2534,"date":1717,"description":3234,"extension":1097,"meta":3235,"navigation":1099,"path":3236,"seo":3237,"stem":3238,"tags":3239,"__hash__":3244},"content\u002Ffield-notes\u002Fsrt-vs-vtt-vs-ass-choosing-subtitle-format.md","SRT vs VTT vs ASS: Choosing the Right Subtitle Format",{"type":9,"value":2535,"toc":3224},[2536,2539,2542,2546,2799,2803,2806,2812,2815,2820,2837,2842,2861,2864,2868,2871,2877,2882,2906,2910,2928,2931,2935,2938,2944,2949,2966,2970,2994,2997,3001,3004,3095,3098,3101,3105,3108,3128,3135,3139,3144,3170,3173,3177,3221],[12,2537,2538],{},"Choosing a subtitle format is not about which one is \"best.\" It is about which one carries the features your delivery target requires — and nothing more. Each format represents a different trade-off between compatibility, capability, and complexity.",[12,2540,2541],{},"This guide breaks down the three most common text-based subtitle formats: SRT, VTT, and ASS. When you understand what each one actually stores, the choice usually makes itself.",[38,2543,2545],{"id":2544},"feature-comparison","Feature Comparison",[46,2547,2548,2560],{},[49,2549,2550],{},[52,2551,2552,2554,2556,2558],{},[55,2553,192],{},[55,2555,2233],{},[55,2557,2230],{},[55,2559,2239],{},[65,2561,2562,2585,2598,2621,2636,2649,2663,2676,2691,2705,2722,2737,2753,2767,2783],{},[52,2563,2564,2569,2574,2579],{},[70,2565,2566],{},[73,2567,2568],{},"Timestamp format",[70,2570,2571],{},[16,2572,2573],{},"HH:MM:SS,mmm",[70,2575,2576],{},[16,2577,2578],{},"HH:MM:SS.mmm",[70,2580,2581,2584],{},[16,2582,2583],{},"H:MM:SS.cc"," (centiseconds)",[52,2586,2587,2591,2593,2595],{},[70,2588,2589],{},[73,2590,2246],{},[70,2592,2252],{},[70,2594,2252],{},[70,2596,2597],{},"Centiseconds (10ms)",[52,2599,2600,2605,2615,2618],{},[70,2601,2602],{},[73,2603,2604],{},"Bold\u002Fitalic",[70,2606,2607,2608,1536,2611,2614],{},"Partial (",[16,2609,2610],{},"\u003Cb>",[16,2612,2613],{},"\u003Ci>"," tags)",[70,2616,2617],{},"Yes (CSS + tags)",[70,2619,2620],{},"Yes (override tags)",[52,2622,2623,2628,2630,2633],{},[70,2624,2625],{},[73,2626,2627],{},"Font specification",[70,2629,2273],{},[70,2631,2632],{},"Yes (CSS)",[70,2634,2635],{},"Yes (style definitions)",[52,2637,2638,2642,2644,2646],{},[70,2639,2640],{},[73,2641,1955],{},[70,2643,2273],{},[70,2645,2632],{},[70,2647,2648],{},"Yes (override tags, hex BGR)",[52,2650,2651,2655,2657,2660],{},[70,2652,2653],{},[73,2654,2264],{},[70,2656,2273],{},[70,2658,2659],{},"Yes (line cue setting)",[70,2661,2662],{},"Yes (absolute coordinates)",[52,2664,2665,2669,2671,2674],{},[70,2666,2667],{},[73,2668,2283],{},[70,2670,2273],{},[70,2672,2673],{},"Yes (position cue setting)",[70,2675,2662],{},[52,2677,2678,2683,2685,2688],{},[70,2679,2680],{},[73,2681,2682],{},"Region\u002Fbox definitions",[70,2684,2273],{},[70,2686,2687],{},"Yes (REGION blocks)",[70,2689,2690],{},"No (but has collision detection)",[52,2692,2693,2698,2700,2702],{},[70,2694,2695],{},[73,2696,2697],{},"Animation\u002Feffects",[70,2699,2273],{},[70,2701,2273],{},[70,2703,2704],{},"Yes (transforms, fades, moves)",[52,2706,2707,2712,2714,2716],{},[70,2708,2709],{},[73,2710,2711],{},"Karaoke timing",[70,2713,2273],{},[70,2715,2273],{},[70,2717,2718,2719,2614],{},"Yes (per-syllable ",[16,2720,2721],{},"\\k",[52,2723,2724,2729,2731,2734],{},[70,2725,2726],{},[73,2727,2728],{},"Multiple styles",[70,2730,2273],{},[70,2732,2733],{},"Partial (::cue CSS)",[70,2735,2736],{},"Yes (named style definitions)",[52,2738,2739,2744,2747,2750],{},[70,2740,2741],{},[73,2742,2743],{},"Sequence numbers",[70,2745,2746],{},"Required",[70,2748,2749],{},"Optional (cue identifiers)",[70,2751,2752],{},"No (index in section)",[52,2754,2755,2760,2762,2764],{},[70,2756,2757],{},[73,2758,2759],{},"Multi-language",[70,2761,2273],{},[70,2763,2273],{},[70,2765,2766],{},"No (but multiple tracks possible)",[52,2768,2769,2774,2777,2780],{},[70,2770,2771],{},[73,2772,2773],{},"Player support",[70,2775,2776],{},"Universal",[70,2778,2779],{},"Web browsers, modern players",[70,2781,2782],{},"VLC, mpv, Aegisub ecosystem",[52,2784,2785,2790,2793,2796],{},[70,2786,2787],{},[73,2788,2789],{},"File size",[70,2791,2792],{},"Small",[70,2794,2795],{},"Small-Medium",[70,2797,2798],{},"Medium-Large",[38,2800,2802],{"id":2801},"srt-the-universal-default","SRT: The Universal Default",[12,2804,2805],{},"SubRip Subtitle (SRT) has been the de facto subtitle format since the early 2000s. Its structure is minimal:",[856,2807,2810],{"className":2808,"code":2809,"language":861},[859],"1\n00:00:05,200 --> 00:00:08,100\nThis is the first subtitle.\n\n2\n00:00:09,000 --> 00:00:12,500\nThis is the second subtitle.\n",[16,2811,2809],{"__ignoreMap":864},[12,2813,2814],{},"Sequential number, start\u002Fend timestamps with millisecond precision, text content, blank line separator. That is the entire specification.",[12,2816,2817],{},[73,2818,2819],{},"Use SRT when:",[487,2821,2822,2825,2828,2831,2834],{},[490,2823,2824],{},"You need maximum player compatibility",[490,2826,2827],{},"The delivery target is YouTube, Vimeo, or a generic media player",[490,2829,2830],{},"Your subtitles are plain text with no positioning requirements",[490,2832,2833],{},"You are building a subtitle pipeline and need a lowest-common-denominator format",[490,2835,2836],{},"The content is short-form where millisecond drift is negligible",[12,2838,2839],{},[73,2840,2841],{},"Limitations to understand:",[487,2843,2844,2847,2858],{},[490,2845,2846],{},"No positioning. Every subtitle renders at the player's default location (typically bottom-center). If you need a subtitle at the top of screen to avoid obscuring on-screen text, SRT cannot express this.",[490,2848,2849,2850,1536,2852,1540,2854,2857],{},"No styling metadata. Some players interpret ",[16,2851,2610],{},[16,2853,2613],{},[16,2855,2856],{},"\u003Cu>"," HTML tags in SRT files, but this is non-standard behavior. There is no guarantee.",[490,2859,2860],{},"No font control. The viewer's player determines the font, size, and color.",[12,2862,2863],{},"SRT's strength is its weakness: it is so simple that every player can parse it, but so limited that it can only carry text and timing.",[38,2865,2867],{"id":2866},"vtt-the-web-standard","VTT: The Web Standard",[12,2869,2870],{},"WebVTT (Web Video Text Tracks) is the W3C standard for timed text in HTML5. Structurally, it resembles SRT with significant additions:",[856,2872,2875],{"className":2873,"code":2874,"language":861},[859],"WEBVTT\n\nSTYLE\n::cue(.speaker) {\n  color: yellow;\n  font-style: italic;\n}\n\n00:00:05.200 --> 00:00:08.100 position:10% align:start\n\u003Cv Speaker>This is positioned and styled.\u003C\u002Fv>\n\n00:00:09.000 --> 00:00:12.500 line:0\nThis appears at the top of the screen.\n",[16,2876,2874],{"__ignoreMap":864},[12,2878,2879],{},[73,2880,2881],{},"Use VTT when:",[487,2883,2884,2894,2897,2900,2903],{},[490,2885,2886,2887,2889,2890,2893],{},"The delivery target is HTML5 ",[16,2888,458],{}," or ",[16,2891,2892],{},"\u003Ctrack>"," elements",[490,2895,2896],{},"You are packaging for HLS or DASH streaming (VTT is the standard subtitle format for both)",[490,2898,2899],{},"You need basic positioning (top\u002Fbottom, left\u002Fright alignment)",[490,2901,2902],{},"You need CSS-based styling that the browser will render",[490,2904,2905],{},"The platform is web-first (e-learning, web players, progressive web apps)",[12,2907,2908],{},[73,2909,2841],{},[487,2911,2912,2919,2922,2925],{},[490,2913,2914,2915,2918],{},"Browser rendering varies. The same VTT file will look different in Chrome, Safari, and Firefox. CSS ",[16,2916,2917],{},"::cue"," support is inconsistent across browsers and versions.",[490,2920,2921],{},"Region support is specified but poorly implemented. VTT REGION blocks define named areas of the screen, but real-world browser support is incomplete.",[490,2923,2924],{},"No animation or effects. VTT can position and style text, but it cannot animate it.",[490,2926,2927],{},"Legacy player support is weaker than SRT. Older media players and some smart TV firmware do not recognize VTT.",[12,2929,2930],{},"VTT occupies the middle ground: more capable than SRT, broadly supported on the web, but not rich enough for creative subtitle work.",[38,2932,2934],{"id":2933},"ass-maximum-creative-control","ASS: Maximum Creative Control",[12,2936,2937],{},"Advanced SubStation Alpha (ASS) is the format of choice for anime fansubbing, karaoke, and any scenario requiring precise visual control:",[856,2939,2942],{"className":2940,"code":2941,"language":861},[859],"[Script Info]\nTitle: Example\nScriptType: v4.00+\nPlayResX: 1920\nPlayResY: 1080\n\n[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, ...\nStyle: Default,Arial,48,&H00FFFFFF,...\n\n[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\nDialogue: 0,0:00:05.20,0:00:08.10,Default,,0,0,0,,This is a subtitle.\nDialogue: 0,0:00:09.00,0:00:12.50,Default,,0,0,0,,{\\pos(960,200)}This is at the top.\n",[16,2943,2941],{"__ignoreMap":864},[12,2945,2946],{},[73,2947,2948],{},"Use ASS when:",[487,2950,2951,2954,2957,2960,2963],{},[490,2952,2953],{},"You need pixel-precise positioning (absolute X,Y coordinates on a defined canvas)",[490,2955,2956],{},"The project requires animation (fades, moves, rotations, scaling)",[490,2958,2959],{},"You are creating karaoke subtitles with per-syllable timing",[490,2961,2962],{},"You need multiple named styles (dialog, signs, songs, narrator)",[490,2964,2965],{},"Your playback environment supports ASS (VLC, mpv, libass-based players)",[12,2967,2968],{},[73,2969,2841],{},[487,2971,2972,2978,2984,2987],{},[490,2973,2974,2975,2977],{},"Centisecond precision (10ms). ASS timestamps use ",[16,2976,2583],{},", which is coarser than SRT and VTT. At 29.97fps, one frame is 33.367ms — so centisecond precision can round to the wrong frame boundary for approximately one in three frames.",[490,2979,2980,2981,2983],{},"No browser support. HTML5 ",[16,2982,458],{}," does not natively support ASS. Web playback requires JavaScript libraries like libass.js or JASSUB.",[490,2985,2986],{},"No streaming platform acceptance. Netflix, YouTube, Disney+, and other platforms do not accept ASS for delivery.",[490,2988,2989,2990,2993],{},"Complex syntax. Override tags like ",[16,2991,2992],{},"{\\an8\\pos(960,100)\\fad(200,0)\\1c&H00FFFF&}"," are powerful but error-prone to write and edit.",[12,2995,2996],{},"ASS is the most expressive subtitle format available, but its ecosystem is narrow. It is the right choice for creative work during production and the wrong choice for delivery to most platforms.",[38,2998,3000],{"id":2999},"what-you-lose-in-conversion","What You Lose in Conversion",[12,3002,3003],{},"Every format conversion is potentially lossy. Here is what survives each direction:",[46,3005,3006,3018],{},[49,3007,3008],{},[52,3009,3010,3012,3015],{},[55,3011,564],{},[55,3013,3014],{},"What survives",[55,3016,3017],{},"What is lost",[65,3019,3020,3033,3045,3057,3070,3083],{},[52,3021,3022,3027,3030],{},[70,3023,3024],{},[73,3025,3026],{},"SRT to VTT",[70,3028,3029],{},"Text, timing",[70,3031,3032],{},"Nothing (VTT is a superset for what SRT carries)",[52,3034,3035,3040,3042],{},[70,3036,3037],{},[73,3038,3039],{},"VTT to SRT",[70,3041,3029],{},[70,3043,3044],{},"Positioning, cue settings, CSS styling, regions",[52,3046,3047,3052,3054],{},[70,3048,3049],{},[73,3050,3051],{},"SRT to ASS",[70,3053,3029],{},[70,3055,3056],{},"Nothing (ASS is a superset)",[52,3058,3059,3064,3067],{},[70,3060,3061],{},[73,3062,3063],{},"ASS to SRT",[70,3065,3066],{},"Text, timing (with centisecond rounding)",[70,3068,3069],{},"Styles, positioning, animations, effects, karaoke tags",[52,3071,3072,3077,3080],{},[70,3073,3074],{},[73,3075,3076],{},"VTT to ASS",[70,3078,3079],{},"Text, timing, basic positioning (approximate)",[70,3081,3082],{},"CSS styling, regions (different model)",[52,3084,3085,3090,3092],{},[70,3086,3087],{},[73,3088,3089],{},"ASS to VTT",[70,3091,3079],{},[70,3093,3094],{},"Override tags, animations, exact fonts, per-syllable karaoke",[12,3096,3097],{},"The pattern: converting to a simpler format always loses data. Converting to a more complex format preserves everything the simpler format had, but cannot add what was never there.",[12,3099,3100],{},"This is why format choice matters most at the point of creation. If you author in SRT and later need ASS-style positioning, you have to add it manually. If you author in ASS and later need SRT, the conversion is automatic — you just lose the features SRT cannot carry.",[38,3102,3104],{"id":3103},"when-format-choice-does-not-matter","When Format Choice Does Not Matter",[12,3106,3107],{},"For a surprising number of workflows, the format choice is irrelevant:",[487,3109,3110,3116,3122],{},[490,3111,3112,3115],{},[73,3113,3114],{},"Plain dialog subtitles with no styling or positioning",": SRT, VTT, and ASS all carry the same information. Pick whichever your delivery target prefers.",[490,3117,3118,3121],{},[73,3119,3120],{},"Short-form content (under 10 minutes)",": Millisecond drift at 29.97fps is negligible for short durations. Any format works.",[490,3123,3124,3127],{},[73,3125,3126],{},"Single-platform delivery",": If you are only delivering to YouTube, use SRT. If only to HLS, use VTT. Do not over-engineer.",[12,3129,3130,3131,3134],{},"Format choice matters when you need features that only certain formats carry, or when you are building a pipeline that serves multiple delivery targets. In the latter case, store your canonical version in a format that preserves everything (like ",[27,3132,3133],{"href":2523},"IMSC","), and export to SRT\u002FVTT\u002FASS as needed.",[38,3136,3138],{"id":3137},"converting-between-formats","Converting Between Formats",[12,3140,1004,3141,3143],{},[27,3142,1696],{"href":1695}," handles direct conversion between all pairs. Some commonly used conversions:",[487,3145,3146,3152,3158,3164],{},[490,3147,3148,3151],{},[27,3149,3026],{"href":3150},"\u002Fconvert\u002Fsrt-to-vtt"," — Web deployment from universal source files",[490,3153,3154,3157],{},[27,3155,3039],{"href":3156},"\u002Fconvert\u002Fvtt-to-srt"," — Maximum compatibility from web-native source",[490,3159,3160,3163],{},[27,3161,3063],{"href":3162},"\u002Fconvert\u002Fass-to-srt"," — Stripping styled subs down for platform delivery",[490,3165,3166,3169],{},[27,3167,3051],{"href":3168},"\u002Fconvert\u002Fsrt-to-ass"," — Starting point for adding styles and effects",[12,3171,3172],{},"All conversions run through frame-number-canonical computation via the timecodes engine, so timing precision is maintained regardless of the source and target formats' native timestamp resolutions.",[38,3174,3176],{"id":3175},"the-bottom-line","The Bottom Line",[46,3178,3179,3189],{},[49,3180,3181],{},[52,3182,3183,3186],{},[55,3184,3185],{},"If you need...",[55,3187,3188],{},"Use",[65,3190,3191,3198,3205,3212],{},[52,3192,3193,3196],{},[70,3194,3195],{},"Maximum compatibility",[70,3197,2233],{},[52,3199,3200,3203],{},[70,3201,3202],{},"Web\u002Fstreaming delivery",[70,3204,2230],{},[52,3206,3207,3210],{},[70,3208,3209],{},"Creative styling and effects",[70,3211,2239],{},[52,3213,3214,3217],{},[70,3215,3216],{},"Archival and multi-target delivery",[70,3218,3219],{},[27,3220,3133],{"href":2523},[12,3222,3223],{},"Pick the simplest format that carries the features your workflow requires. Convert between them freely, but understand what each conversion loses. And when in doubt, start with the richest format you can — it is always easier to strip features out than to add them back.",{"title":864,"searchDepth":1080,"depth":1080,"links":3225},[3226,3227,3228,3229,3230,3231,3232,3233],{"id":2544,"depth":1080,"text":2545},{"id":2801,"depth":1080,"text":2802},{"id":2866,"depth":1080,"text":2867},{"id":2933,"depth":1080,"text":2934},{"id":2999,"depth":1080,"text":3000},{"id":3103,"depth":1080,"text":3104},{"id":3137,"depth":1080,"text":3138},{"id":3175,"depth":1080,"text":3176},"A practical comparison of SRT, VTT, and ASS subtitle formats — what each supports, what you lose in conversion, and when format choice actually matters.",{},"\u002Ffield-notes\u002Fsrt-vs-vtt-vs-ass-choosing-subtitle-format",{"title":2533,"description":3234},"field-notes\u002Fsrt-vs-vtt-vs-ass-choosing-subtitle-format",[1724,3240,3241,3242,1105,3243],"srt","vtt","ass","formats","4HvbkUryWGduhZ-o3D5btqZt7UtSV_J-2iFbaBPvu7M",{"id":3246,"title":3247,"author":7,"body":3248,"date":1717,"description":3736,"extension":1097,"meta":3737,"navigation":1099,"path":3738,"seo":3739,"stem":3740,"tags":3741,"__hash__":3743},"content\u002Ffield-notes\u002Fwhy-29-97-subtitle-sync-drifts.md","Why Your 29.97 Subtitle Sync Drifts (And How to Fix It)",{"type":9,"value":3249,"toc":3726},[3250,3253,3256,3260,3263,3266,3269,3275,3282,3286,3289,3292,3295,3301,3304,3307,3313,3316,3320,3323,3329,3332,3338,3345,3348,3354,3357,3361,3364,3374,3377,3388,3392,3395,3398,3415,3432,3642,3645,3649,3652,3666,3673,3677,3680,3706,3712,3716,3719,3722],[12,3251,3252],{},"You have a two-hour program at 29.97fps. You load the subtitles into your player. The first few cues are fine. By the midpoint, things look slightly off. By the last act, subtitles are arriving a visible beat late — or early. You did not touch the timing. The file validated clean. What happened?",[12,3254,3255],{},"The answer is baked into the number 29.97 itself.",[38,3257,3259],{"id":3258},"_2997-is-not-2997","29.97 Is Not 29.97",[12,3261,3262],{},"When NTSC color television was standardized in 1953, the framerate was shifted from exactly 30 frames per second to 30000\u002F1001 frames per second. This works out to approximately 29.97002997... fps — an infinitely repeating decimal.",[12,3264,3265],{},"This is not a rounding convention. The exact framerate is the fraction 30000\u002F1001. Every tool that handles NTSC content must use this fraction, not the approximation 29.97.",[12,3267,3268],{},"One frame at 30000\u002F1001 fps lasts exactly:",[856,3270,3273],{"className":3271,"code":3272,"language":861},[859],"1001 \u002F 30000 = 0.033366666... seconds = 33.366666... milliseconds\n",[16,3274,3272],{"__ignoreMap":864},[12,3276,3277,3278,3281],{},"That trailing ",[16,3279,3280],{},"666..."," is the source of every sync problem in millisecond-based subtitle tools.",[38,3283,3285],{"id":3284},"the-millisecond-truncation-problem","The Millisecond Truncation Problem",[12,3287,3288],{},"SRT, VTT, and SBV all store timestamps with millisecond precision — three decimal places of seconds. This means every timestamp is rounded to the nearest millisecond.",[12,3290,3291],{},"One frame at 29.97fps is 33.3667ms. Stored as an SRT timestamp, it becomes either 33ms or 34ms. Neither is correct. The error on a single frame is small — about 0.367ms or 0.633ms. But this error is not random. It is systematic, and it accumulates.",[12,3293,3294],{},"Here is the math for a two-hour program:",[856,3296,3299],{"className":3297,"code":3298,"language":861},[859],"Total frames in 2 hours at 29.97fps:\n  2 * 3600 * 30000\u002F1001 = 215,784.216 frames\n  (rounded: 215,784 frames)\n\nExact duration of 215,784 frames:\n  215,784 * 1001\u002F30000 = 7,199.993... seconds\n\nDuration as stored in ms-based format:\n  Each frame boundary rounded to nearest ms\n  Cumulative rounding over 215,784 frames\n",[16,3300,3298],{"__ignoreMap":864},[12,3302,3303],{},"In practice, because rounding errors partially cancel over successive frames, accumulated millisecond rounding over a two-hour program routinely produces drift of 2-4 frames — enough to be visible to viewers and enough to fail broadcast QC.",[12,3305,3306],{},"The theoretical worst case illustrates why. If the rounding error averaged 0.3ms per frame boundary (because 33.367ms truncates to 33ms more often than it rounds to 34ms), then over 215,784 frames:",[856,3308,3311],{"className":3309,"code":3310,"language":861},[859],"Theoretical worst-case drift = 0.3ms * 215,784 \u002F 1000 = ~64.7 seconds\n",[16,3312,3310],{"__ignoreMap":864},[12,3314,3315],{},"Real files never hit this bound because rounding errors alternate direction, but the arithmetic shows how much error budget exists in the system. Even a small fraction of this worst case is enough to push subtitles out of sync.",[38,3317,3319],{"id":3318},"a-concrete-example","A Concrete Example",[12,3321,3322],{},"Consider frame 150,000 in a 29.97fps timeline. Its exact time position:",[856,3324,3327],{"className":3325,"code":3326,"language":861},[859],"150,000 * 1001 \u002F 30000 = 5,005.000 seconds exactly\n",[16,3328,3326],{"__ignoreMap":864},[12,3330,3331],{},"That one happens to land cleanly. Now consider frame 150,001:",[856,3333,3336],{"className":3334,"code":3335,"language":861},[859],"150,001 * 1001 \u002F 30000 = 5,005.033366... seconds\n                       = 5,005 seconds, 33.367ms\n",[16,3337,3335],{"__ignoreMap":864},[12,3339,3340,3341,3344],{},"Stored in SRT: ",[16,3342,3343],{},"01:23:25,033"," (truncated). The real position is 33.367ms into that second. The stored position is 33.000ms. That is a 0.367ms error on this single cue.",[12,3346,3347],{},"Now consider what happens when a tool reads that SRT timestamp back and tries to determine what frame it belongs to:",[856,3349,3352],{"className":3350,"code":3351,"language":861},[859],"5005.033 seconds * 30000\u002F1001 = 150,000.989...\nFloor → frame 150,000\n",[16,3353,3351],{"__ignoreMap":864},[12,3355,3356],{},"The round-trip lost one frame. Frame 150,001 was written to SRT and read back as frame 150,000. This is not a bug in the tool — it is an inherent limitation of millisecond storage for non-integer framerates.",[38,3358,3360],{"id":3359},"drop-frame-timecode-a-related-but-different-problem","Drop-Frame Timecode: A Related But Different Problem",[12,3362,3363],{},"Drop-frame timecode is often confused with this drift issue, but it solves a different problem.",[12,3365,3366,3367,3369,3370,3373],{},"At exactly 30fps, timecode ",[16,3368,535],{}," corresponds to wall-clock time 1:00:00.000 — exactly one hour. At 29.97fps, after one hour of wall-clock time, only 107,892 frames have elapsed, but a non-drop timecode counter would read ",[16,3371,3372],{},"00:59:56:12",". The timecode is \"slow\" by 3.6 seconds per hour relative to the wall clock.",[12,3375,3376],{},"Drop-frame timecode compensates by skipping frame numbers 0 and 1 at the start of each minute, except every tenth minute. This makes the timecode display approximate wall-clock time (within ~2 frames per day).",[12,3378,3379,3380,3383,3384,3387],{},"Drop-frame solves the ",[73,3381,3382],{},"display"," problem — making timecode readouts match wall clocks and program durations. It does not solve the ",[73,3385,3386],{},"computation"," problem of millisecond rounding. A drop-frame timecode is still a label for a frame number, and converting that label to milliseconds still introduces the same truncation error.",[38,3389,3391],{"id":3390},"the-solution-frame-number-canonical-computation","The Solution: Frame-Number-Canonical Computation",[12,3393,3394],{},"The fix is architectural, not algorithmic. Stop treating milliseconds as a source of truth.",[12,3396,3397],{},"The correct pipeline:",[1024,3399,3400,3405,3410],{},[490,3401,3402,3404],{},[73,3403,2415],{},": Parse the timestamp (milliseconds, timecode, whatever). Immediately convert to a frame number at the known framerate, using the exact fraction (30000\u002F1001, not 29.97).",[490,3406,3407,3409],{},[73,3408,1036],{},": All operations — shifting, scaling, splitting, merging — happen in integer frame space. No floating point. No rounding.",[490,3411,3412,3414],{},[73,3413,1042],{},": Convert frame numbers back to the target format's timestamp representation. If the target is SRT, derive milliseconds from the frame number. If the target is SCC, derive SMPTE timecode.",[12,3416,3417,3418,3421,3422,3424,3425,2889,3428,3431],{},"This is what the timecodes engine does internally. The ",[16,3419,3420],{},"Timecode"," class stores a frame number as its canonical value. When you construct a ",[16,3423,3420],{}," from milliseconds, it immediately resolves to a frame number using the exact framerate fraction. When you read ",[16,3426,3427],{},".milliseconds",[16,3429,3430],{},".timecode"," back out, those values are derived from the frame number — not stored independently.",[856,3433,3437],{"className":3434,"code":3435,"language":3436,"meta":864,"style":864},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Timecode } from 'timecodes';\n\n\u002F\u002F Construct from milliseconds — internally resolves to frame number\nconst tc = new Timecode({\n    inputValue: 5005033,\n    valueType: 'milliseconds',\n    framerate: '29.97'\n});\n\nconsole.log(tc.frameNumber); \u002F\u002F Exact frame number\nconsole.log(tc.timecode); \u002F\u002F Derived from frame number\nconsole.log(tc.milliseconds); \u002F\u002F Derived from frame number\n","typescript",[16,3438,3439,3474,3479,3485,3510,3527,3544,3560,3571,3576,3601,3622],{"__ignoreMap":864},[919,3440,3443,3447,3451,3455,3458,3461,3464,3468,3471],{"class":3441,"line":3442},"line",1,[919,3444,3446],{"class":3445},"s7zQu","import",[919,3448,3450],{"class":3449},"sMK4o"," {",[919,3452,3454],{"class":3453},"sTEyZ"," Timecode",[919,3456,3457],{"class":3449}," }",[919,3459,3460],{"class":3445}," from",[919,3462,3463],{"class":3449}," '",[919,3465,3467],{"class":3466},"sfazB","timecodes",[919,3469,3470],{"class":3449},"'",[919,3472,3473],{"class":3449},";\n",[919,3475,3476],{"class":3441,"line":1080},[919,3477,3478],{"emptyLinePlaceholder":1099},"\n",[919,3480,3481],{"class":3441,"line":1088},[919,3482,3484],{"class":3483},"sHwdD","\u002F\u002F Construct from milliseconds — internally resolves to frame number\n",[919,3486,3488,3492,3495,3498,3501,3504,3507],{"class":3441,"line":3487},4,[919,3489,3491],{"class":3490},"spNyl","const",[919,3493,3494],{"class":3453}," tc ",[919,3496,3497],{"class":3449},"=",[919,3499,3500],{"class":3449}," new",[919,3502,3454],{"class":3503},"s2Zo4",[919,3505,3506],{"class":3453},"(",[919,3508,3509],{"class":3449},"{\n",[919,3511,3513,3517,3520,3524],{"class":3441,"line":3512},5,[919,3514,3516],{"class":3515},"swJcz","    inputValue",[919,3518,3519],{"class":3449},":",[919,3521,3523],{"class":3522},"sbssI"," 5005033",[919,3525,3526],{"class":3449},",\n",[919,3528,3530,3533,3535,3537,3540,3542],{"class":3441,"line":3529},6,[919,3531,3532],{"class":3515},"    valueType",[919,3534,3519],{"class":3449},[919,3536,3463],{"class":3449},[919,3538,3539],{"class":3466},"milliseconds",[919,3541,3470],{"class":3449},[919,3543,3526],{"class":3449},[919,3545,3547,3550,3552,3554,3557],{"class":3441,"line":3546},7,[919,3548,3549],{"class":3515},"    framerate",[919,3551,3519],{"class":3449},[919,3553,3463],{"class":3449},[919,3555,3556],{"class":3466},"29.97",[919,3558,3559],{"class":3449},"'\n",[919,3561,3563,3566,3569],{"class":3441,"line":3562},8,[919,3564,3565],{"class":3449},"}",[919,3567,3568],{"class":3453},")",[919,3570,3473],{"class":3449},[919,3572,3574],{"class":3441,"line":3573},9,[919,3575,3478],{"emptyLinePlaceholder":1099},[919,3577,3579,3582,3584,3587,3590,3592,3595,3598],{"class":3441,"line":3578},10,[919,3580,3581],{"class":3453},"console",[919,3583,1015],{"class":3449},[919,3585,3586],{"class":3503},"log",[919,3588,3589],{"class":3453},"(tc",[919,3591,1015],{"class":3449},[919,3593,3594],{"class":3453},"frameNumber)",[919,3596,3597],{"class":3449},";",[919,3599,3600],{"class":3483}," \u002F\u002F Exact frame number\n",[919,3602,3604,3606,3608,3610,3612,3614,3617,3619],{"class":3441,"line":3603},11,[919,3605,3581],{"class":3453},[919,3607,1015],{"class":3449},[919,3609,3586],{"class":3503},[919,3611,3589],{"class":3453},[919,3613,1015],{"class":3449},[919,3615,3616],{"class":3453},"timecode)",[919,3618,3597],{"class":3449},[919,3620,3621],{"class":3483}," \u002F\u002F Derived from frame number\n",[919,3623,3625,3627,3629,3631,3633,3635,3638,3640],{"class":3441,"line":3624},12,[919,3626,3581],{"class":3453},[919,3628,1015],{"class":3449},[919,3630,3586],{"class":3503},[919,3632,3589],{"class":3453},[919,3634,1015],{"class":3449},[919,3636,3637],{"class":3453},"milliseconds)",[919,3639,3597],{"class":3449},[919,3641,3621],{"class":3483},[12,3643,3644],{},"Because the frame number is an integer, there is no accumulation. Frame 150,001 is always frame 150,001, regardless of how many conversions it passes through.",[38,3646,3648],{"id":3647},"how-to-detect-drift-in-your-subtitles","How to Detect Drift in Your Subtitles",[12,3650,3651],{},"If you suspect your existing subtitle files have drifted, here is a practical check:",[1024,3653,3654,3657,3660,3663],{},[490,3655,3656],{},"Determine the exact frame count of your program. Your NLE or media info tool will report this.",[490,3658,3659],{},"Convert that frame count to a timecode at 29.97fps (drop-frame if applicable).",[490,3661,3662],{},"Look at the last subtitle's out-cue timestamp in your SRT\u002FVTT file.",[490,3664,3665],{},"Compare. If the last subtitle's out-cue is more than one frame's duration (33ms) away from where it should be relative to the program duration, you have accumulated drift.",[12,3667,3668,3669,3672],{},"You can test this directly in the ",[27,3670,3671],{"href":1007},"playground",", which lets you convert between frame numbers, timecodes, and milliseconds at any framerate and see the exact values.",[38,3674,3676],{"id":3675},"preventing-drift-in-your-workflow","Preventing Drift in Your Workflow",[12,3678,3679],{},"The rules are straightforward:",[487,3681,3682,3688,3694,3700],{},[490,3683,3684,3687],{},[73,3685,3686],{},"Never store milliseconds as a source of truth."," If your subtitle database or project file stores timing as milliseconds, you have a drift vector. Store frame numbers and framerate instead.",[490,3689,3690,3693],{},[73,3691,3692],{},"Never multiply milliseconds by a ratio to change framerates."," Converting 29.97fps subtitles to 25fps requires going through frame numbers, not multiplying timestamps by 25\u002F29.97.",[490,3695,3696,3699],{},[73,3697,3698],{},"Always know your framerate."," A millisecond value without framerate context is ambiguous. The same millisecond value maps to different frame numbers at different framerates.",[490,3701,3702,3705],{},[73,3703,3704],{},"Validate after every conversion."," When you export from your subtitle tool, check the last cue against the known program duration.",[12,3707,3708,3709,3711],{},"These are not suggestions — they are requirements for frame-accurate work. The ",[27,3710,1566],{"href":1565}," enforces framerate context on every operation precisely because a subtitle file without a framerate is an incomplete document.",[38,3713,3715],{"id":3714},"the-takeaway","The Takeaway",[12,3717,3718],{},"29.97fps drift is not a mystery bug. It is a predictable, mathematical consequence of storing non-terminating repeating decimal frame durations in a fixed-precision decimal format. The solution has been known in broadcast engineering for decades: work in frame numbers, not milliseconds. Every tool in the chain needs to respect this, from ingest through delivery.",[12,3720,3721],{},"If your subtitles drift, the problem is not your content. The problem is your tools.",[3723,3724,3725],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":864,"searchDepth":1080,"depth":1080,"links":3727},[3728,3729,3730,3731,3732,3733,3734,3735],{"id":3258,"depth":1080,"text":3259},{"id":3284,"depth":1080,"text":3285},{"id":3318,"depth":1080,"text":3319},{"id":3359,"depth":1080,"text":3360},{"id":3390,"depth":1080,"text":3391},{"id":3647,"depth":1080,"text":3648},{"id":3675,"depth":1080,"text":3676},{"id":3714,"depth":1080,"text":3715},"The math behind 29.97fps subtitle drift, why millisecond-based tools lose sync over long programs, and how frame-number-canonical computation eliminates the problem.",{},"\u002Ffield-notes\u002Fwhy-29-97-subtitle-sync-drifts",{"title":3247,"description":3736},"field-notes\u002Fwhy-29-97-subtitle-sync-drifts",[1104,1106,3742,1107],"sync","mvPWnzDCmuwSggxTsvNP9fHy88ck74u5z0yjVGdGpg8",1794869447015]