Git Product home page Git Product logo

subsimplex's Introduction

Hi there, it's Djalil

A software engineer(ing graduate).
  • ๐ŸŒฑ Iโ€™m currently learning Python/Odoo (see contact_travel) relearning Vue.

  • ๐Ÿ“ I write stuff on blog.djalil.me

  • ๐Ÿ’ฌ Ask me about web stuff or dev in general ig

Connect with me:

abdeldjalilhebal djalilhebal djalilhebal djalilhebal

Languages and Tools:

java javascript nodejs express nextjs puppeteer jest linux git bash react vuejs electron apachecordova

postgresql mongodb redis

subsimplex's People

Contributors

djalilhebal avatar

Watchers

 avatar

subsimplex's Issues

ffmpeg may fail if a valid subtitle file if used but the extension is set to its format

The following works. This is the main logic of the API (v0.0.1): Using the subtitle file's extension as input format.

ffmpeg -f srt unnamed output.vtt

This should work

# Moving forward, we will refer to this resource as talk-1-en
ffmpeg -i https://www.ted.com/talks/subtitles/id/1/lang/en output.vtt

curl -o 1.json https://www.ted.com/talks/subtitles/id/1/lang/en
ffmpeg -i 1.json output.vtt

But the current approach would result in something like the following and fail:

ffmpeg -f json -i 1.json output.vtt

talk-1-en is:

  • A JSON file.
  • The server specifies its type as Content-Type: application/json; charset=utf-8.
  • FFprobe (and FFmpeg) recognize that it is actually of the format tedcaptions, whether the input is from the URL, 1.json, or an extensionless file.

We could simply not specify the format and let ffmpeg guess its type from the input, but some malformed(?) files like sintel-fr will fail to be processed.
If I understand it correctly, sintel-fr has an incorrect magic number. Specifying the filename helps ffmpeg (and VLC) recognize the file type and process it.

Maybe it's not something we should bother with?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.