Alternatively, join us on Discord.

How to code an mp4 video

Started by Ephraim Becker, November 27, 2015, 01:40:30 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ephraim Becker

Is there a way to code a mp4 video from scratch? How do I do it?
I have Aspergers Syndrome

bb010g

"Code" a MP4? Please be more specific. Also, what resources have you already looked at?

Adriweb

Co-founder & co-administrator of TI-Planet and Inspired-Lua

Ephraim Becker

What programming language do I use to program an mp4 video?
I have Aspergers Syndrome

bb010g

Quote from: Ephraim Becker on November 27, 2015, 02:28:33 am
What programming language do I use to program an mp4 video?

What have you looked at already? We won't help you unless you prove that you've tried at least an iota already.


bb010g

Ok. So you want to play a MP4 video, not "code" one (whatever that means)?


Travis

So you're talking about creating animations? That's one thing. Actually decoding (or encoding) a codec like MPEG is not something you want to be trying to do from scratch at this stage. (I'm not sure very many of us here even know how to do that.) Better just use a program or library for that part.

Ephraim Becker

I actually want to program an mp4 video from scratch in C. How do I do that?
I have Aspergers Syndrome

Travis

November 27, 2015, 02:57:25 am #10 Last Edit: November 27, 2015, 02:59:57 am by Travis
I really don't understand what you're saying. MP4 is not a programming language. It's just a linear, non-interactive stream of data. If you really want to learn codecs, you're best off starting really, really small. First figure out how bitmaps are stored. Then basic lossless compression (RLE, PNG/GIF, etc.). Then JPEG. Then some very early, very simple lossy codecs. MPEG4/H264 is insanely complicated (and that's not including the audio). It can take literally years to get up to speed with this stuff.

Adriweb

Quote from: Ephraim Becker on November 27, 2015, 02:51:06 amprogram an mp4 video

This does not make sense. "program" or "code" are verbs that don't go with "mp4" or "video". It's like asking "Put your glasses on and listen to the nice smell".
What are you actually trying to do? The end goal.

Also what tev said.
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Ephraim Becker

I know that mp4 is not a programming language. I want to know if I can code an mp4 file in C.
I have Aspergers Syndrome

Adriweb

November 27, 2015, 03:00:43 am #13 Last Edit: November 27, 2015, 03:02:54 am by Adriweb


Dude. Read what we just said.

Edit:
Actually, here you go, some C code to code an mp4:
FILE* f = fopen("THEREYOUGO.mp4", "rb");
fclose(f);
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Ephraim Becker

Any tutorials for how to program an mp4 video in C? I can't find any in my google search or bing search.
I have Aspergers Syndrome

Powered by EzPortal