Created
June 11, 2015 18:41
-
-
Save igormukhin/1baefb564e370ca87d35 to your computer and use it in GitHub Desktop.
Converts dotsub json subtitles to srt format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script> | |
$(function () { | |
var arr = [ | |
{startTime: 3040, duration: 7023, content: "Probing the Future - with Jacque Fresco - Venus Project director", isStartOfParagraph: false}, | |
{startTime: 11002, duration: 4079, content: "What is the purpose of The Venus Project?", isStartOfParagraph: false}, | |
{startTime: 16007, duration: 1818, content: "We designed the Venus Project in an attempt to deal", isStartOfParagraph: false}, | |
{startTime: 18075, duration: 4716, content: "with the problems that are coming in our country, and all other countries.", isStartOfParagraph: false}, | |
{startTime: 23041, duration: 5792, content: "With the advent of automation and machines what they call Artificial Intelligence,", isStartOfParagraph: false}, | |
{startTime: 29083, duration: 5678, content: "human beings are going to be replaced by machines in every area.", isStartOfParagraph: false}, | |
{startTime: 35011, duration: 4836, content: "Most people think that only the industrial worker on the production line who tightens bolts,", isStartOfParagraph: false}, | |
{startTime: 40097, duration: 5994, content: "he will be replaced, but not me, I have a mind and intellect, they can't replace that.", isStartOfParagraph: false}, | |
{startTime: 47005, duration: 4076, content: "Can machines surpass the performance of the designer?", isStartOfParagraph: false}, | |
{startTime: 52004, duration: 3803, content: "Most large companies today have automatic voice machines installed", isStartOfParagraph: false}, | |
{startTime: 56057, duration: 4702, content: "that understand your questions, and understand your answers.", isStartOfParagraph: false}, | |
{startTime: 61009, duration: 2779, content: "And the machines are getting more and more sophisticated.", isStartOfParagraph: false}, | |
{startTime: 64038, duration: 2722, content: "And somebody once posed the question, they said, well,", isStartOfParagraph: false}, | |
{startTime: 67010, duration: 3803, content: ""Can the machine ever surpass the performance of the designer?"", isStartOfParagraph: false}, | |
{startTime: 71063, duration: 4695, content: "They can't be more intelligent than the guy that designed it or the young lady that designed it.", isStartOfParagraph: false}, | |
{startTime: 76008, duration: 5774, content: "Well, I know a little guy that designed a machine to pick up freight trains and empty them. He can't do that.", isStartOfParagraph: false}, | |
{startTime: 82032, duration: 4725, content: "Machines always surpass the performance of the designer.", isStartOfParagraph: false}, | |
{startTime: 87007, duration: 4053, content: "The designer in a Coke factory can't move bottles faster than machines can.", isStartOfParagraph: false}, | |
{startTime: 92009, duration: 5070, content: "Who will be replaced by computers?", isStartOfParagraph: false}, | |
{startTime: 98004, duration: 2786, content: ""Well, they will never replace me." They are always saying that.", isStartOfParagraph: false}, | |
{startTime: 101040, duration: 2792, content: "We can replace anybody in any field.", isStartOfParagraph: false}, | |
{startTime: 104082, duration: 2673, content: "Today those of you that are not familiar with it,", isStartOfParagraph: false}, | |
{startTime: 107005, duration: 4837, content: "there are machines today that are already being designed, built and used experimentally", isStartOfParagraph: false}, | |
{startTime: 112092, duration: 3722, content: "for brain surgery. All manipulated by machines.", isStartOfParagraph: false}, | |
{startTime: 116091, duration: 5001, content: "Will computer simulations seem real?", isStartOfParagraph: false}, | |
{startTime: 122021, duration: 1787, content: "What's happening in photography?", isStartOfParagraph: false}, | |
{startTime: 124058, duration: 5769, content: "All of the cameras in the future will follow the actor, they will focus automatically.", isStartOfParagraph: false}, | |
{startTime: 130077, duration: 2763, content: "You won't have a man behind the camera.", isStartOfParagraph: false}, | |
{startTime: 133090, duration: 2752, content: "And most of the actors in the future will be phased out.", isStartOfParagraph: false}, | |
{startTime: 136092, duration: 3661, content: "What they will do is photograph the head in all positions", isStartOfParagraph: false}, | |
{startTime: 140003, duration: 1757, content: "with the lips moving in every which way,", isStartOfParagraph: false}, | |
{startTime: 142010, duration: 1740, content: "and generate their own characters.", isStartOfParagraph: false}, | |
{startTime: 144000, duration: 3756, content: "On television you will have announcers that do not exist.", isStartOfParagraph: false}, | |
{startTime: 148006, duration: 4749, content: "They will be generated images in colour, the sweet old lady with the gray hair.", isStartOfParagraph: false}, | |
{startTime: 153005, duration: 2828, content: "Everything will be simulated, and you will learn to love those actors.", isStartOfParagraph: false}, | |
{startTime: 156083, duration: 3706, content: "And a person once said to me: "Well, surely, if I know the images are generated,", isStartOfParagraph: false}, | |
{startTime: 160039, duration: 2720, content: "they are not real, I'm not going to respond."", isStartOfParagraph: false}, | |
{startTime: 163009, duration: 4063, content: "Do you know how many people weep at Walt Disney's colour drawings?", isStartOfParagraph: false}, | |
{startTime: 168003, duration: 3789, content: "What is wrong with society today?", isStartOfParagraph: false}, | |
{startTime: 172070, duration: 1717, content: "We live in the past.", isStartOfParagraph: false}, | |
{startTime: 174037, duration: 3783, content: "And our society is rapidly moving downhill. An increase in crime,", isStartOfParagraph: false}, | |
{startTime: 178070, duration: 3703, content: "our educational system seems to be failing,", isStartOfParagraph: false}, | |
{startTime: 182024, duration: 3737, content: "our ability to outproduce other nations seems to be slowing down.", isStartOfParagraph: false}, | |
{startTime: 186011, duration: 2744, content: "We seem to be less innovative.", isStartOfParagraph: false}, | |
{startTime: 189005, duration: 3759, content: "We used to be number one in new inventions in this country.", isStartOfParagraph: false}, | |
{startTime: 193014, duration: 4804, content: "Today we are 18th and slipping behind. This is what worries me.", isStartOfParagraph: false}, | |
{startTime: 198068, duration: 3692, content: "What worries me is the general direction our society is headed for.", isStartOfParagraph: false}, | |
{startTime: 202010, duration: 5740, content: "The purpose of The Venus Project is to redesign our society,", isStartOfParagraph: false}, | |
{startTime: 208000, duration: 6765, content: "not according to my wishes, but according to national need, to redesign our society so that it works.", isStartOfParagraph: false}, | |
{startTime: 215015, duration: 5791, content: "So when new machine is coming into industry, instead of you're working 5 hours a day, you work two hours a day.", isStartOfParagraph: false}, | |
{startTime: 221056, duration: 3698, content: "And you work 3 days a week for an increase in income.", isStartOfParagraph: false}, | |
{startTime: 225004, duration: 1089, content: "That is how I want to use machines.", isStartOfParagraph: false}, | |
{startTime: 227028, duration: 4795, content: "What are the advantages of a non-money based society?", isStartOfParagraph: false}, | |
{startTime: 232099, duration: 3691, content: "In our present culture we operate as a monetary system.", isStartOfParagraph: false}, | |
{startTime: 236040, duration: 4784, content: "We use money as a medium of exchange for work or services of any kind.", isStartOfParagraph: false}, | |
{startTime: 241074, duration: 3746, content: "When you use a money system, it creates incentive, this is true,", isStartOfParagraph: false}, | |
{startTime: 245070, duration: 3718, content: "but it also creates incentive for corruption and embezzlement,", isStartOfParagraph: false}, | |
{startTime: 249038, duration: 3793, content: "whereas, in The Venus Project is a non money system.", isStartOfParagraph: false}, | |
{startTime: 253081, duration: 3709, content: "Now, think about this. When we have a depression in any country of the world,", isStartOfParagraph: false}, | |
{startTime: 257040, duration: 4801, content: "there are still automobiles and vacuum cleaners and houses, but people don't have the money to buy them.", isStartOfParagraph: false}, | |
{startTime: 262091, duration: 2684, content: "The Earth is still in the same place. What happened?", isStartOfParagraph: false}, | |
{startTime: 265025, duration: 3788, content: "Men designed a set of rules, and his rules operate.", isStartOfParagraph: false}, | |
{startTime: 269063, duration: 4724, content: "But if you live according to natural law, and I'm not talking about men made law. Natural law.", isStartOfParagraph: false}, | |
{startTime: 274037, duration: 3736, content: "If you eat food that's bad for you, you get sick, no matter what you believe.", isStartOfParagraph: false}, | |
{startTime: 278023, duration: 3736, content: "If you don't get enough sleep, you collapse. That is natural law.", isStartOfParagraph: false}, | |
{startTime: 282009, duration: 3797, content: "In Venus Project we uphold natural law mostly.", isStartOfParagraph: false}, | |
{startTime: 286056, duration: 2767, content: "So people learn how to live most effectivelly.", isStartOfParagraph: false}, | |
{startTime: 289073, duration: 4756, content: "The Venus Project is a non-monetary system, a resource-based economy.", isStartOfParagraph: false}, | |
{startTime: 294079, duration: 4733, content: "We have enough resources today in America alone and the world", isStartOfParagraph: false}, | |
{startTime: 299062, duration: 5692, content: "to build anything for anybody. There need not be street people, hungry people.", isStartOfParagraph: false}, | |
{startTime: 305004, duration: 4791, content: "We have all the technology to supply more than the needs for everyone.", isStartOfParagraph: false}, | |
{startTime: 310045, duration: 2709, content: "Fast. I'm not talking about 100 years from now.", isStartOfParagraph: false}, | |
{startTime: 313004, duration: 3766, content: "It will take 10 years to change the surface of the Earth to a second Garden of Eden.", isStartOfParagraph: false}, | |
{startTime: 317020, duration: 2055, content: "If we choose to do so.", isStartOfParagraph: false}, | |
{startTime: 320009, duration: 3771, content: "How can a society function without money?", isStartOfParagraph: false}, | |
{startTime: 324057, duration: 2752, content: "With the elimination of money, all the economic problems are gone.", isStartOfParagraph: false}, | |
{startTime: 327059, duration: 1781, content: "No more robbery, no more crime.", isStartOfParagraph: false}, | |
{startTime: 329090, duration: 5663, content: "Because the center of the city has an access place where you can go in and check out a camera,", isStartOfParagraph: false}, | |
{startTime: 335003, duration: 1765, content: "or a chemistry set, or a microscope", isStartOfParagraph: false}, | |
{startTime: 337018, duration: 5748, content: "without any fee, without filling out any forms, without going before any committee, you see what i mean?", isStartOfParagraph: false}, | |
{startTime: 343016, duration: 4788, content: "It is available, just as the islands of the South Pacific were 60 years ago.", isStartOfParagraph: false}, | |
{startTime: 348054, duration: 4727, content: "The natives pulled bananas off the trees, they ate them, they picked guava and coconuts.", isStartOfParagraph: false}, | |
{startTime: 353031, duration: 5795, content: "And you couldn't sell a banana. And you couldn't sell sand or salt water, there was so much of it.", isStartOfParagraph: false}, | |
{startTime: 359076, duration: 3729, content: "So much fish that no one bother each other, they never worked.", isStartOfParagraph: false}, | |
{startTime: 363055, duration: 4710, content: "All they did is went on their\ncanoes, went fishing, scuba diving, had fun.", isStartOfParagraph: false}, | |
{startTime: 368015, duration: 5801, content: "And the Polynesians had no word for "work". Did you know that? Isn't that fantastic?", isStartOfParagraph: false}, | |
{startTime: 374066, duration: 3725, content: "And I think we are headed that way. No word for "work".", isStartOfParagraph: false}, | |
{startTime: 378041, duration: 3731, content: "You go back to school, art centers, music centers, cultural centers,", isStartOfParagraph: false}, | |
{startTime: 382022, duration: 5734, content: "you travel, scuba dive, think, write books, produce films, or whatever the hell you want to do.", isStartOfParagraph: false}, | |
{startTime: 388006, duration: 2753, content: "This is our aim. This is where we are going.", isStartOfParagraph: false}, | |
{startTime: 391009, duration: 7744, content: "If we don't make these changes, it is going to be a catastrophic slow process of human suffering and misery,", isStartOfParagraph: false}, | |
{startTime: 399003, duration: 4798, content: "possibly winding up with some kind of dictatorship, which I have a tremendous fear of.", isStartOfParagraph: false}, | |
{startTime: 404051, duration: 6022, content: "So, The Venus Project is designed to attempt to avoid that kind of problem.", isStartOfParagraph: false}, | |
{startTime: 411004, duration: 4065, content: "What will our homes look like?", isStartOfParagraph: false}, | |
{startTime: 416000, duration: 3821, content: "And your home would be designed in a manner different than any process today.", isStartOfParagraph: false}, | |
{startTime: 420071, duration: 3709, content: "You will be sitting in front of a hemisphere, if you are married, with your wife,", isStartOfParagraph: false}, | |
{startTime: 424030, duration: 5722, content: "and you say: "I'd like a home of about 3000 or 4000 square feet".", isStartOfParagraph: false}, | |
{startTime: 430002, duration: 5783, content: "And it would appear, kind of. I say: "No, no, slow, more curvilinear". And you get more curvilinear.", isStartOfParagraph: false}, | |
{startTime: 436035, duration: 2746, content: "Then your wife says: "Don't you think that the kitchen is a little too neat?"", isStartOfParagraph: false}, | |
{startTime: 439031, duration: 2794, content: "And the kitchen is moved while you are talking. It understands language.", isStartOfParagraph: false}, | |
{startTime: 442075, duration: 2692, content: "And you will see a building appearing in front of you.", isStartOfParagraph: false}, | |
{startTime: 445017, duration: 3798, content: "And then you see a balcony standing over lake, and your wife might say:", isStartOfParagraph: false}, | |
{startTime: 449065, duration: 2756, content: ""Gee, what about another 3 feet on that balcony?" You know?", isStartOfParagraph: false}, | |
{startTime: 452071, duration: 3749, content: "And it extends, and you say: "That's what I want". And you pull out a blueprint.", isStartOfParagraph: false}, | |
{startTime: 456070, duration: 4713, content: "You see? No more "I'm an architect, I'll design a house for you". That is not for you.", isStartOfParagraph: false}, | |
{startTime: 461033, duration: 5780, content: "In other words, this is real democracy. This is where you participate on the human level.", isStartOfParagraph: false}, | |
{startTime: 467063, duration: 2781, content: "Now, of course, your children have a separate section in the house,", isStartOfParagraph: false}, | |
{startTime: 470094, duration: 2691, content: "because the toilet bowl is too big for them.", isStartOfParagraph: false}, | |
{startTime: 473035, duration: 2725, content: "They fall in it. They can't reach the sink.", isStartOfParagraph: false}, | |
{startTime: 476010, duration: 2754, content: "The electrical outlets are dangerous, it's like you living with the bunch of giants.", isStartOfParagraph: false}, | |
{startTime: 479014, duration: 2816, content: "So, the children sector, everything is reduced.", isStartOfParagraph: false}, | |
{startTime: 482080, duration: 1754, content: "And it's changed as the children change.", isStartOfParagraph: false}, | |
{startTime: 484084, duration: 3735, content: "If this isn't love, warm and humane.", isStartOfParagraph: false}, | |
{startTime: 488069, duration: 5765, content: "A lot of people think that The Venus Project is a technical project of computers and scientific equipment.", isStartOfParagraph: false}, | |
{startTime: 494084, duration: 5761, content: "No. All scientific and technical equipment to me is so many millions of tons of junk,", isStartOfParagraph: false}, | |
{startTime: 500095, duration: 2982, content: "unless it enhances the lifes of people.", isStartOfParagraph: false}, | |
{startTime: 504002, duration: 3754, content: "Do we have the ability to change our minds?", isStartOfParagraph: false}, | |
{startTime: 508039, duration: 6718, content: "I want to tell you one thing about changing mind. No human being can really change their mind. Here's what happens:", isStartOfParagraph: false}, | |
{startTime: 515007, duration: 4829, content: "farmers were walking around and say, "Those Wright brothers, they will never build no airplane", and then it flies over.", isStartOfParagraph: false}, | |
{startTime: 520086, duration: 4715, content: "They say: "You know, ?Clay?, I changed my mind". They've been changed by events.", isStartOfParagraph: false}, | |
{startTime: 525051, duration: 6709, content: "Most people today didn't believe they see ships going off to the distant planets, or man walking on the moon.", isStartOfParagraph: false}, | |
{startTime: 532010, duration: 1792, content: "And when they do, what they say: "You know, I've changed my mind".", isStartOfParagraph: false}, | |
{startTime: 534052, duration: 2718, content: "They've been changed, and that is quite different.", isStartOfParagraph: false}, | |
{startTime: 537020, duration: 3815, content: "No one can open their head, and rearrange the way you think, and close it again.", isStartOfParagraph: false}, | |
{startTime: 541085, duration: 2707, content: "You can't do that. We can't change our mind.", isStartOfParagraph: false}, | |
{startTime: 544042, duration: 6739, content: "We can be better informed, we can acquire more information which causes us to undergo change.", isStartOfParagraph: false}, | |
{startTime: 551057, duration: 5021, content: "What are the goals of the Venus Project?", isStartOfParagraph: false}, | |
{startTime: 557001, duration: 3750, content: "We want to translate what all religions talk about", isStartOfParagraph: false}, | |
{startTime: 561001, duration: 2756, content: "into a working process called The Venus Project.", isStartOfParagraph: false}, | |
{startTime: 564007, duration: 5747, content: "It's not a technical dictatorship. It is not "1984", or "Brave New World".", isStartOfParagraph: false}, | |
{startTime: 570004, duration: 6746, content: "It is instead using the best of science and human technology to reclaim the Earth,", isStartOfParagraph: false}, | |
{startTime: 577000, duration: 4751, content: "to remove the radioactive materials we've dumped all over the place, and find the use for them.", isStartOfParagraph: false}, | |
{startTime: 582001, duration: 4754, content: "To do research and development in improving human relations and human systems.", isStartOfParagraph: false}, | |
{startTime: 587005, duration: 5005, content: "This is what The Venus Project is dedicated to. This is what it is about.", isStartOfParagraph: false}]; | |
var $cont = $('#cont'); | |
$.each(arr, function (idx, obj) { | |
$cont.append('<div>' + (idx + 1) + '</div>'); | |
// 00:00:03,057 --> 00:00:07,715 | |
$cont.append('<div>' + toTime(obj.startTime) + ' --> ' + toTime(obj.startTime + obj.duration) + '</div>'); | |
$('<div></div>').html(obj.content).appendTo($cont); | |
$cont.append('<br/>'); | |
}); | |
function toTime(num) { | |
var millis = num % 1000; | |
num = (num - millis) / 1000; | |
var secs = num % 60; | |
num = (num - secs) / 60; | |
var min = num % 60; | |
num = (num - min) / 60; | |
var hour = num % 60; | |
return pad(hour, 2) + ':' + pad(min, 2) + ':' + pad(secs, 2) + ',' + pad(millis, 3); | |
} | |
function pad(n, width, z) { | |
z = z || '0'; | |
n = n + ''; | |
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; | |
} | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="cont"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
А не подскажите, как извлечь сами субтитры?