NtkMPE 1.1.2 (Novatek bitrate editor)

Discussion in 'Firmware Modifications' started by Tobi@s, May 19, 2017.

  1. Tobi@s

    Tobi@s Well-Known Member App Developer

    Messages:
    1,350
    Likes Received:
    801
    Location:
    Bavaria
    Country:
    Germany
    Dash Cam:
    some
    Attention: Commercial use is strictly prohibited! You are using my tools at your own risk! Modifying firmware will probably void your warranty. I am not responsible for anything that might happen as a result of using my tools.

    Changelog:
    1.1.2

    Fixed a bug regarding issues with 0x0a and 0x0d bytes...
    1.1:
    Changed name to NtkMPE to avoid possible legal issues
    Added Copy and paste functionality to table cells (CTRL+C & CTRL+V)
    Improved movie parameter struct detection pattern
    Added 5th column for further r&d (read only)
    1.0:
    Initial release

    About this tool:
    It allows you to modify movie parameters like width, height, fps and bitrate for different modes without using a hex editor.

    Usage: This tool only works with DECOMPRESSED firmware files. You need to decompress these first with bfc or a wrapper for bfc like denova or ntkautomator.
    Warning: BFC and its wrappers currently only support single image firmwares. You unpack/repack multi-image firmwares, yet.

    (firmware is unpacked at this stage)
    1. File -> Load firmware
    2. Modify the parameters (Bitrate is half of the target bitrate. Example: Target bitrate of 20mbps requires an input of 10000 (kbps)
    3. Press "Apply modifications"

    (4. repack and validate using tools like ntkcalc/denova/ntkautomator)

    Screenshot:
    NtkMPE.png

    Little Endian Array Utilities:

    Copyright (c) 2007, intarsys consulting GmbH

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:

    - Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.

    - Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

    - Neither the name of intarsys nor the names of its contributors may be used
    to endorse or promote products derived from this software without specific
    prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.

    Download: http://dc.p-mc.eu/tools/novatek#ntkmpe
     
    Last edited: May 27, 2017
    SpiritOzr, flip9, expeditor and 5 others like this.
  2. Nigel

    Nigel Well-Known Member

    Messages:
    5,310
    Likes Received:
    2,286
    Location:
    Devon
    Country:
    United Kingdom
    Dash Cam:
    Gitup Git3, Mini 0806
    So can you change a 1920 x 1080 mode to 1920 x 540 to get a half height video?

    If so, would it chop the top and bottom off just leaving the centre, or just compress it vertically giving a distorted image?
     
  3. Tobi@s

    Tobi@s Well-Known Member App Developer

    Messages:
    1,350
    Likes Received:
    801
    Location:
    Bavaria
    Country:
    Germany
    Dash Cam:
    some
    The sensor/cpu doesnt accept all possible resolutions but in theory that would work, yes.
    I'm not sure if it would cut the image or stretch it.. Never tried it but feel free to do so :D
     
  4. jokiin

    jokiin Well-Known Member Manufacturer

    Messages:
    36,033
    Likes Received:
    18,111
    Location:
    Shenzhen, China - Sydney, Australia
    Country:
    China
    Dash Cam:
    Too many ¯\_(ツ)_/¯
    there's a dual channel solution in the market that is 2 by 1920 x 540 images muxed into a single 1920 x 1080 output file, the 540 images are effectively cropped so that it's just the middle section of each, chop off the sky, lose the dashboard but have full width
     
  5. Nigel

    Nigel Well-Known Member

    Messages:
    5,310
    Likes Received:
    2,286
    Location:
    Devon
    Country:
    United Kingdom
    Dash Cam:
    Gitup Git3, Mini 0806
    That is the format I like to watch the Git3 dual action cam in when it is in the car, you don't actually miss much of the action on the road, just the sky and car dash which you don't want anyway.

    If I could record in that format, or 2x 540 streams then the memory card would last twice as long for the same quality.

    From Git3:
     
    nutsey and gitup like this.
  6. jokiin

    jokiin Well-Known Member Manufacturer

    Messages:
    36,033
    Likes Received:
    18,111
    Location:
    Shenzhen, China - Sydney, Australia
    Country:
    China
    Dash Cam:
    Too many ¯\_(ツ)_/¯
    is that just a playback/preview option on the camera?
     
  7. Nigel

    Nigel Well-Known Member

    Messages:
    5,310
    Likes Received:
    2,286
    Location:
    Devon
    Country:
    United Kingdom
    Dash Cam:
    Gitup Git3, Mini 0806
    No, it's a Windows application that sticks Git3 dual channel loop recording segments back together into a single file. That is why I would like the mini 0906 filenames in "standard format" instead of random order!
     
  8. jokiin

    jokiin Well-Known Member Manufacturer

    Messages:
    36,033
    Likes Received:
    18,111
    Location:
    Shenzhen, China - Sydney, Australia
    Country:
    China
    Dash Cam:
    Too many ¯\_(ツ)_/¯
    ok, know they can be edited that way, misunderstood what you meant by watching when it's in the car
     
  9. Nigel

    Nigel Well-Known Member

    Messages:
    5,310
    Likes Received:
    2,286
    Location:
    Devon
    Country:
    United Kingdom
    Dash Cam:
    Gitup Git3, Mini 0806
    When it's on the drone the PIP view is preferable, then you need full 1080 16:9 on the front view.
     
  10. Tobi@s

    Tobi@s Well-Known Member App Developer

    Messages:
    1,350
    Likes Received:
    801
    Location:
    Bavaria
    Country:
    Germany
    Dash Cam:
    some
    First try doesnt look too promising
    vlcsnap-2017-05-20-23h56m54s314.png
     
    nutsey, Nigel and Falsificator like this.
  11. Nigel

    Nigel Well-Known Member

    Messages:
    5,310
    Likes Received:
    2,286
    Location:
    Devon
    Country:
    United Kingdom
    Dash Cam:
    Gitup Git3, Mini 0806
    I see that you are lucky enough to have a super widescreen monitor to view it on :D

    I suspect it is an issue for Novatek to sort if one of our friendly camera manufacturers would like to give us a 1920 x 540+540 stacked mode on these dual view cameras.

    Thanks for trying it :)
     
  12. Tobi@s

    Tobi@s Well-Known Member App Developer

    Messages:
    1,350
    Likes Received:
    801
    Location:
    Bavaria
    Country:
    Germany
    Dash Cam:
    some
    Its a bit strange.. Seems like the NT96663 SoC accepts far more resolutions and just stretches the image to fit into it (tried 2048x2048 yesterday and it worked). I remember when trying similar things on NT96655 it just crashed on starting to record
     
  13. Nigel

    Nigel Well-Known Member

    Messages:
    5,310
    Likes Received:
    2,286
    Location:
    Devon
    Country:
    United Kingdom
    Dash Cam:
    Gitup Git3, Mini 0806
    The NT96663 seems to be far more of an upgrade than just an extra video channel, image quality seems significantly better than any NT96655 I've seen, although that is partly the better sensors being used.

    The one thing they don't seem to have sorted is the not so good sharpening algorithm that often destroys detail.
     
    Tobi@s likes this.
  14. Tobi@s

    Tobi@s Well-Known Member App Developer

    Messages:
    1,350
    Likes Received:
    801
    Location:
    Bavaria
    Country:
    Germany
    Dash Cam:
    some
    NtkMPE received an update to fix incompatibilities with byte 0x0a and 0x0d and I've also added a new feature to allow cell copy/pasting via ctrl+c and ctrl+v
     
    reverend, Falsificator and nutsey like this.
  15. expeditor

    expeditor New Member

    Messages:
    4
    Likes Received:
    2
    Country:
    Russian Federation
    Thanks! Perfectly works with Yi Dashcam firmware
     
    SpiritOzr and Tobi@s like this.
Loading...
Similar Threads - NtkMPE (Novatek bitrate
  1. Tobi@s
    Replies:
    0
    Views:
    350

Share This Page