T
T
Timur Zurbaev2014-03-22 10:59:42
fmpeg
Timur Zurbaev, 2014-03-22 10:59:42

How to convert AVI to HTML5 formats on the fly?

Good day.
Once again, I thought about the idea of ​​bringing movies and TV shows on my home PC to the localhost library in the form of a website. A small analogue of IMDB / Kinopoisk with information about the film, but with the ability to start viewing directly from the site.
There was a problem that most of the files are in the AVI format, which you cannot embed into the page. In this regard, the question arose of how to arrange it all. Attempts to find ready-made (or semi-finished) solutions have so far been unsuccessful.
I ask (and seek) advice on how and with what help you can arrange video conversion to the same MP4 on the fly. I tried stream-transcoder , fluent-ffmpeg - in the first case, the video is shown in 5-10x accelerated mode, in the second, nothing works.
Perhaps someone will tell you the correct keys for working with ffmpeg, perhaps I misunderstood (or did) something. OS - Windows 7 (probably a problem with libs, yes).
Does anyone have any ideas how to overcome this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-03-22
Protko @Fesor

stream-transcoder suits you perfectly. I think it will be easier for you to deal with the problem of acceleration. From what I saw, stream-transcoder is only responsible for transcoding the video stream, that is, it can be included in the video processing pipeline. It will produce video not at the speed of its playback, but as it will have time to encode. But in theory, there shouldn't be any big problems with this, you need to either organize a buffer and stop encoding when it fills up, or somehow.
And yet - did the video and audio speed up, or did the audio play at normal speed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question