You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

How to code an mp4 video

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/PC, Mac & Vintage Computers publicado por u/Ephraim Becker November 27, 2015, 01:40:30 AM
Is there a way to code a mp4 video from scratch? How do I do it?
Inicia sesión o crea una cuenta para dejar un comentario
u/bb010g November 27, 2015, 01:42:19 AM
"Code" a MP4? Please be more specific. Also, what resources have you already looked at?
u/Adriweb November 27, 2015, 01:47:27 AM
It's the ISO 14496-1 spec.
http://xhelmboyx.tripod.com/formats/mp4-layout.txt

Good luck
u/Ephraim Becker November 27, 2015, 02:28:33 AM
What programming language do I use to program an mp4 video?
u/bb010g November 27, 2015, 02:31:41 AM
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.
u/bb010g November 27, 2015, 02:42:10 AM
Ok. So you want to play a MP4 video, not "code" one (whatever that means)?
u/Travis November 27, 2015, 02:49:56 AM
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.
u/Ephraim Becker November 27, 2015, 02:51:06 AM
I actually want to program an mp4 video from scratch in C. How do I do that?
u/Travis November 27, 2015, 02:57:25 AM
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.
Last Edit: November 27, 2015, 02:59:57 AM by Travis
u/Adriweb November 27, 2015, 02:58:26 AM
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.
u/Ephraim Becker November 27, 2015, 02:59:00 AM
I know that mp4 is not a programming language. I want to know if I can code an mp4 file in C.
u/Adriweb November 27, 2015, 03:00:43 AM


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);
Last Edit: November 27, 2015, 03:02:54 AM by Adriweb
u/Ephraim Becker November 27, 2015, 03:05:08 AM
Any tutorials for how to program an mp4 video in C? I can't find any in my google search or bing search.
Start a Discussion

b/PC, Mac & Vintage Computers

Computer programming discussion and project showcase

132
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal