merging video / continues recording

Started by Cularbytes, February 16, 2015, 12:17:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cularbytes

Hi,

I'm looking for a specific future for a camera, I came across ML and I'm wondering if ML has or could have this feature. So basically what I am looking for is a feature that could record a video clip and add it to the end of the last video on the SD card. Back in the old days, camera's had no other option with a video tape.

It is for a flying club, where we would record passengers, and have some sort of intro video at the beginning of a video. With this feature we would make a intro video, put it on an SD card, insert it into the camera, record the flight, and handout the SD card to them.

Unfortunately I'm a c# programmer and don't have that much knowledge of embedded systems, nor do I have a camera.
If this video merging feature is not there yet, I'm wondering if it might be a good feature request or not.

Thanks for replying!

chmee

you just need one more merge step on a faster pc. use ffmpeg. (but i dont understand the sense of creating a big file, thats not everywhere playable, 4gb border in some filesystems and so on)

regards chmee
[size=2]phreekz * blog * twitter[/size]

Cularbytes

Quote from: chmee on February 16, 2015, 02:25:52 PM
you just need one more merge step on a faster pc. use ffmpeg. (but i dont understand the sense of creating a big file, thats not everywhere playable, 4gb border in some filesystems and so on)

regards chmee

The idea is to do everything from out the camera, without using a computer.
Are you saying FFmpeg can run on ML?

chmee

nope. but do you really want 25MBit/s h264 straight from the body? this means
(a) ~188MB/min -> 11gb/hr
(b) you want to merge just because of the introvideo, right? -> sorry i cant help you, but yes, if you re able to cope with the formats and the io, its doable.

Things you should search
- google "magic lantern io"
- stubs from 5d3 - io-processes
https://bitbucket.org/hudson/magic-lantern/src/21794666fb64b82cf09d3b2430b1f6c3dc5d1882/platform/5D3.113/stubs.S?at=unified
- look fio-ml.c
https://bitbucket.org/hudson/magic-lantern/src/21794666fb64b82cf09d3b2430b1f6c3dc5d1882/src/fio-ml.c?at=unified
- how does a module look, example filemanager
https://bitbucket.org/hudson/magic-lantern/src/21794666fb64b82cf09d3b2430b1f6c3dc5d1882/modules/file_man/?at=unified
- how to merge "manually" two h.264 files, a point i cant help.
QuoteFFmpeg can run on ML?
never thought about it. i ve spoken about another pc you're doin the stuff. (maybe a raspberry pi2? minimal linux distro and some cheap pythonstuff to start the merging when a sd-card is mounted)

regards chmee
[size=2]phreekz * blog * twitter[/size]

Cularbytes

Thanks for the feedback Chmee! I'll take a look at it and see what is possible.
I wish there was just a simple way of continues recording, just like the old video tapes, back then you had no choice, when the tape is at the end, it will overwrite on the beginning of the tape.

Quote from: chmee on February 19, 2015, 12:21:46 AM
- how to merge "manually" two h.264 files, a point i cant help.

Well, "Automatically" is alright ;).


chmee

Continuous Recording works well on Canon with ML (Movie Restart>ON (allows you unsupervised continuous recording in h264, when the 4gig limit is reached, recording restarts again, there is a 1second gap), i thought, the reason for merging is one (maybe longer than 4gb) file with your intro-video. -> and "easy" is relative. its easy to use ffmpeg on a pc, its quite doable to look into the ffmpeg sourcecode, but its not straight easy to transcode that much sourcecode to work on an unknown processor - but maybe an older magiclantern-version with tcc/PicoC can help you.

regards chmee
[size=2]phreekz * blog * twitter[/size]