https://github.com/jalieven/submariner
Subtitle converting server/proxy
https://github.com/jalieven/submariner
conversion proxy server srt vtt webvtt
Last synced: 5 days ago
JSON representation
Subtitle converting server/proxy
- Host: GitHub
- URL: https://github.com/jalieven/submariner
- Owner: jalieven
- Created: 2018-01-12T17:38:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T22:45:48.000Z (over 8 years ago)
- Last Synced: 2025-03-01T00:26:25.822Z (over 1 year ago)
- Topics: conversion, proxy, server, srt, vtt, webvtt
- Language: JavaScript
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Submariner
## Prerequisites
- Node 8 or higher
## Installation
```bash
npm install
```
## Startup
```bash
npm start
```
## Usage
This example converts a statically served srt by the submariner server itself into the WebVtt format. Simply replace the 'http://localhost:8080/static/blade_runner.srt' with another you find in the wild. If no source is provided the server will deduce the format from the extension. Target and url params are mandatory.
```bash
curl -XGET 'http://localhost:8080/subs/convert?source=srt&target=vtt&url=http://localhost:8080/static/blade_runner.srt'
```
The same functionality but through a POST call:
```bash
curl -XPOST -H 'Content-Type: application/json' 'http://localhost:8080/subs/convert' -d '{"source":"srt","target":"vtt","url":"http://localhost:8080/static/blade_runner.srt"}'
```
## Environment variables
You can define env vars to alter
```bash
```
## IMPORTANT
The output will always be utf-8 even if the source is encoded differently.