Magic Lantern Forum

Showcasing Magic Lantern => Share Your Videos => Topic started by: kunle on September 06, 2012, 10:16:21 AM

Title: CBR x3 Test video
Post by: kunle on September 06, 2012, 10:16:21 AM
While on holiday decided to test the cbr x 3 feature in magic lantern. To get it to work I had to disable audio. Captured audio using Zoom H1.
Camera used was a 600d using samyang 35mm f/1.4 wide open. Magic Bullet looks was used for Colour correction. All comments welcome.



Title: Re: CBR x3 Test video
Post by: AriLG on September 06, 2012, 11:14:39 AM
How did you sync the muted video file and the H1 based one ?
Title: Re: CBR x3 Test video
Post by: kunle on September 06, 2012, 03:22:13 PM
Quote from: AriLG on September 06, 2012, 11:14:39 AM
How did you sync the muted video file and the H1 based one ?

syncing was a bit difficult but I didn't spend much time planning and editing audio. I just captured the welding and banging noises in fcp and put it against the video timeline. and then I captured a sample of the background noises and dropped in the timeline. If there was dialogue it would have been very difficult. Does anybody have any ideas to get around this? I would normally use the audio captured in the camera as a reference point during sync.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 03:28:47 PM
I use my 50D and i am trying as well to find a way to solve this problem since there's no audio onboard.
The most i can do now is press both record buttons at the same time and then fine adjust the overlapping of the tracks in post.
Sadly the Zoom H1 can't be started remotely, as far as i know.
Title: Re: CBR x3 Test video
Post by: juantrueno on September 06, 2012, 04:28:37 PM
Use a visual clap to sync on every shot. Then find clap sound and clap Video.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 04:48:21 PM
Well, you can do that if another person claps the board for you.
If it can't happen things get quite annoying.
Title: Re: CBR x3 Test video
Post by: kunle on September 06, 2012, 05:10:39 PM
Snapping your finger in front of the camera while recording video and audio, seems to be a good idea. I havent tried it yet.
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 06:31:37 PM
Audio with high BR now working on 600D and maybe for everyone with FPS override. I get higher BR than 3.0x but at that quality 1gb = 1 minute. I kept saying there was a difference, now you see.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 06:38:46 PM
What do you mean higher than 3.0x CBR?
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 06:42:23 PM
Quality above qscale -16, higher picqpc and ALL-I, basically very little compression.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 06:44:27 PM
Quote from: 1% on September 06, 2012, 06:42:23 PM
Quality above qscale -16, higher picqpc and ALL-I, basically very little compression.
What kind of card?
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 06:47:59 PM
Patriot 64GB UHS.. card is usually 20MB/write. Complexity is more of a problem than card speed. Encoder can't keep up and slows down then you get buffer full even though frames were supposed to be written out immediately and at lower complexity they are.

Looks like this:

(http://i.imgur.com/9kiJa.png)
Title: Re: CBR x3 Test video
Post by: kunle on September 06, 2012, 07:26:20 PM
I use a SanDisk Extreme Pro 16GB SDHC card, with the latest ML firmware. If audio is enabled recording stops immediately it starts.Recording the same scene without audio works fine. Are there any additional settings that need to be enabled/disabled e.g global draw?
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 07:38:26 PM
Nope, just new dev features. Global draw really has no effect. Audio just won't write with the video stream, encoder can't keep up. It happily writes wavs at the same time though.
Title: Re: CBR x3 Test video
Post by: kunle on September 06, 2012, 07:49:23 PM
1% thanks for the info, I just tried recording with qscale -13 and seems to be stable with audio turned on. Is the video quality (less compression) better using VBR over CBR?
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 10:11:57 PM
CBR adjust qscale but tries to keep a constant bit rate. VBR/Qscale keeps quality at certain level but bitrate goes wherever.

So run and gun, CBR at like 2x. Controlled environments use qscale. Eventually you will figure out what works and what doesn't. I just patched out CBR/Qscale from adjusting quality and set it directly, combined with ALL-I this is probably close to the best h.264 can get in its current state.

Audio is kinda irrelevant as we have separate wav working pretty well. You can use it with FPS override on latest official commits and whenever on mine.

I've never been able to use the built in audio without it fscking things up. For 600D you can try what I made already, other cameras not so much... but I would like to see fixed quality at all-I from 5DMkII and a really fast CF card.

Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 10:15:42 PM
Quote from: 1% on September 06, 2012, 10:11:57 PM
CBR adjust qscale but tries to keep a constant bit rate. VBR/Qscale keeps quality at certain level but bitrate goes wherever.

So run and gun, CBR at like 2x. Controlled environments use qscale. Eventually you will figure out what works and what doesn't. I just patched out CBR/Qscale from adjusting quality and set it directly, combined with ALL-I this is probably close to the best h.264 can get in its current state.

Audio is kinda irrelevant as we have separate wav working pretty well. You can use it with FPS override on latest official commits and whenever on mine.

I've never been able to use the built in audio without it fscking things up. For 600D you can try what I made already, other cameras not so much... but I would like to see fixed quality at all-I from 5DMkII and a really fast CF card.
Will this stuff be available for other cameras soon?
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 10:37:47 PM
I can do ALL-I for other cameras but I need to know from each cameras firmware where to jump the "invalid gop" assert.

PicQpc/Qp slice also has separate locations too.

Since I only have 600D firmware it makes it hard to port to others. Separate audio is already in for others if you build from source and use FPS override.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 10:45:16 PM
Quote from: 1% on September 06, 2012, 10:37:47 PM
I can do ALL-I for other cameras but I need to know from each cameras firmware where to jump the "invalid gop" assert.

PicQpc/Qp slice also has separate locations too.

Since I only have 600D firmware it makes it hard to port to others. Separate audio is already in for others if you build from source and use FPS override.
If you need something from my 50D...
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 11:02:21 PM
Do you have a bin dump from it? But then I need to know where to jump the assert and nanomad has the calculator for the nop offset (its probably different).

I can make a bootleg bin with all asserts off and you can see if it works, some cameras just stopped writing at different gop according to a1ex.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 11:13:20 PM
Quote from: 1% on September 06, 2012, 11:02:21 PM
Do you have a bin dump from it? But then I need to know where to jump the assert and nanomad has the calculator for the nop offset (its probably different).

I can make a bootleg bin with all asserts off and you can see if it works, some cameras just stopped writing at different gop according to a1ex.
Feel free to tell me what to do, but tell me HOW to do it. :D
I'm free tonight :)
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 11:25:58 PM
I'm not sure how to dump it, I just got the files. I was unable to dump from my camera for some reason but haven't tried recently.

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads/autoexec.bin.50D.Fat32.Assert%20Disabled

That is for 50d with asserts disabled but make sure to change gop size back before shutting down in case (if you load a regular bin and its still invalid). No exfat support right?
Title: Re: CBR x3 Test video
Post by: kunle on September 06, 2012, 11:27:58 PM
1% I have a canon 60D and 600D can I use these settings with the current ML firmware? If so I cant find the settings for wav files.
Title: Re: CBR x3 Test video
Post by: 1% on September 06, 2012, 11:30:46 PM
It was put in the source like 2 days ago so you'd have to make a new 60D bin.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 11:41:40 PM
Quote from: 1% on September 06, 2012, 11:25:58 PM
I'm not sure how to dump it, I just got the files. I was unable to dump from my camera for some reason but haven't tried recently.

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads/autoexec.bin.50D.Fat32.Assert%20Disabled

That is for 50d with asserts disabled but make sure to change gop size back before shutting down in case (if you load a regular bin and its still invalid). No exfat support right?
No exFAT.
Let me try it ;)
How can i see if it went well?
Title: Re: CBR x3 Test video
Post by: ilguercio on September 06, 2012, 11:55:02 PM
Tell me what settings i should dial in.
I've set VBR to -16 and GOP to 1 but i can do 10000kbps per sec.
:-\
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 12:23:28 AM
Does gop actually show as 1 on videos?

What is the biggest BR you can make?

Actually I noticed qscale was commented out with the other stuff so in this one it should be working again:

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads/autoexec.bin.QscaleFix.50D
Title: Re: CBR x3 Test video
Post by: ilguercio on September 07, 2012, 12:31:33 AM
Quote from: 1% on September 07, 2012, 12:23:28 AM
Does gop actually show as 1 on videos?

What is the biggest BR you can make?
I enable the visualization on the screen but i can't see those infos.
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 12:38:33 AM
Did you have them before because that part is unchanged.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 07, 2012, 12:39:12 AM
No big changes, my BR can't go past 40000 kbps circa.
Debug infos won't show up.
Can A1ex help?
Now i got about 90000 kbps on VBR -15 but looks like the normal VBR mode.
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 12:46:40 AM
Does gop change though in the files?

Gop 1 should be all I frames.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 07, 2012, 12:59:16 AM
Quote from: 1% on September 07, 2012, 12:46:40 AM
Does gop change though in the files?

Gop 1 should be all I frames.
Quick way to check?
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 01:00:09 AM
Media info
http://mediainfo.sourceforge.net/en

View as text and N should be 1 or whatever gop was set to.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 07, 2012, 01:31:45 AM
https://dl.dropbox.com/u/1087972/ML/gop.jpg
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 01:50:34 AM
:( 50D must be different.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 07, 2012, 01:58:18 AM
Quote from: 1% on September 07, 2012, 01:50:34 AM
:( 50D must be different.
Yep.
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 02:14:04 AM
Decompiling firmware would probably tell all. But I think originally it didn't have video mode so maybe some stuff not in there.
Title: Re: CBR x3 Test video
Post by: ilguercio on September 07, 2012, 02:19:53 AM
Quote from: 1% on September 07, 2012, 02:14:04 AM
Decompiling firmware would probably tell all. But I think originally it didn't have video mode so maybe some stuff not in there.
No, it has all the video capabilities, it also has canon graphics for video so nothing should be missing.
It has also got stuff for audio ;)
Title: Re: CBR x3 Test video
Post by: 1% on September 07, 2012, 03:44:31 AM
Then need to find out if gop is changed in the same place or if recorder just won't record with a different one. Other than that the only thing that could be changed is picqpicpy and probably slice QP if the locations are found. QP not much different from qscale but it can be set higher than the cbr or vbr function will set it.