Embedding video codecs to the files?

None of the five media players installed can not more or less decently to lose sviashchennaia file. Why, given the modern size of the video files in dozens of gigabytes, you can't include a few measly megabytes codec used in the file to be played back on any device? In the end, could it be that in 50 years all these files simply cannot be viewed?
October 3rd 19 at 02:46
1 answer
October 3rd 19 at 02:48
Codec, it's not "something" that opens the file. This word means a program/library written for a specific platform (hardware, operating system). Given the fact that the video is playing, "tens of gigabytes" is a pretty heavy operation, the codecs are written with all sorts of optimizations, which affects portability, so universality can be forgotten. In "iron" players at all the decoders in the firmware or hardware. Therefore, to embed in a video set of instructions is pointless.
Although container formats, like MKV (Matroska), allows you to build in yourself anything: videos, subtitles, hypothetically — any data.
Maybe I said it wrong. Let's call it not "the codec" and "information needed to restore the original flow of personnel". In fact — a sequence of mathematical operations. And it is unlikely that mathematics will depend on the operating system or hardware. In the end, it's all standartized and I do not think that patents and standards are considered all cases for each OS and each architecture. - tiana.Kihn commented on October 3rd 19 at 02:51
Mathematics there is quite complex, and there is no one common language descriptions of algorithms in order to data to include description of "how to open". Even if you try to implement this, will have to deal with the whole zoo of hardware and software. The same MKV invented a long time ago, and hardware players still have not all read it. And it's all money, money...
But simple: to include in the file a no description of what's inside and what it is. For example, AVI files FourCC code embedded that uniquely identifies the codec of the content. I was going to just write, but I thought offtopic already :) - Michel.Ondricka28 commented on October 3rd 19 at 02:54
If you use a mathematical model in a General way "to restore the original stream of frames" without computing optimizations for a specific platform, then your CPU is heavily loaded. Perhaps so much that the system cannot cope with decoding in real-time. Especially if it is a FullHD video. - lily.Strom commented on October 3rd 19 at 02:57
miolini, however, outside real-time it can be converted to another format, which would have required the system codec. - April81 commented on October 3rd 19 at 03:00
Yes, you can. Here only two points. First — this requires more CPU. The second — usually in the system are not codecs, only decoders. - lily.Strom commented on October 3rd 19 at 03:03

Find more questions by tags codecsVideo