Code Monkey home page Code Monkey logo

finsta360's People

Contributors

kichiki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

finsta360's Issues

Syntax error fix

In finsta360.py its a line called:

print('finsta360.py : to finalize incomplete MP4 of Insta360 ONE-X

To make the script work I had to add ') after X to make it consistent like this:

print('finsta360.py : to finalize incomplete MP4 of Insta360 ONE-X')
print('https://github.com/kichiki/finsta360')
print('USAGE: finsta360.py [options]')

Unpack requires a buffer of 4 bytes

Got the script to run but running into the following issue:
`mcwiggin@Kubuntu50:~/Downloads/finsta360-master$ sudo ./finsta360.py -s ../VID_20200513_174448_00_004.insv -r ../ref.insv -o ../out.insv
[sudo] password for mcwiggin:

########################################

1) extracting reference moov from

    ../ref.insv

########################################

2) regenerate sample tables from mdat in

    ../VID_20200513_174448_00_004.insv

Traceback (most recent call last):
File "./finsta360.py", line 1015, in
finsta360(
File "./finsta360.py", line 891, in finsta360
mov_table, aac_table = recover_sample_tables_from_mdat_fast(
File "./finsta360.py", line 463, in recover_sample_tables_from_mdat_fast
frame_length = struct.unpack('>I', buf)[0] + 4
struct.error: unpack requires a buffer of 4 bytes
`

Error while trying to repair file

Hi there,
I tried to repair a corrupted Insta350 ONE R file. I thought it should be possible to repair it with your tool. The following error was thrown:
# 3) rebuilding moov from the sample tables Traceback (most recent call last): File "D:/anypath/FixInsta360/finsta360.py", line 680, in recover_moov_from_sample_tables copy_atom_box('uuid', None, f_moov, f_dst, only_header=False) File "D:/anypath/FixInsta360/finsta360.py", line 494, in copy_atom_box if atom_type != target_type: raise ValueError(f'{target_type} not found but {atom_type}') ValueError: uuid not found but trak
Do you have any idee how to fix it or what the problem is? It could be possible that the tool is not compatible with the H.265 codec from the ONE R.

Duration exceed 4 bytes

The duration could exceed 4 bytes, and causing error during struct.pack in file write. Maybe use ">Q" or try to limit the duration size?

Can not stitch, Fixed by using a matching reference file for each of the two different files

Originally I reported that I was unable to stich the files. However, the reasons for my issue was that I was not consistent using different reference files for the different files. If the file has the 00 in it, then you have to use a reference file like 00_033.insv If it instead has the 10 in it, you have to use a reference file like 10_033.insv to make both files combine in the software.

ValueError: uuid not found but trak

F:\Videos\TEMP>python finsta360.py -s .\VID_090732_00_006.insv -r .\VID_Referenz_00_009.insv -o .\output.insv

########################################

1) extracting reference moov from

    .\VID_Referenz_00_009.insv

########################################

2) regenerate sample tables from mdat in

    .\VID_090732_00_006.insv

########################################

3) rebuilding moov from the sample tables

Traceback (most recent call last):
File "F:\Videos\TEMP\finsta360.py", line 1015, in
finsta360(
File "F:\Videos\TEMP\finsta360.py", line 926, in finsta360
recover_moov_from_sample_tables(
File "F:\Videos\TEMP\finsta360.py", line 680, in recover_moov_from_sample_tables
copy_atom_box('uuid', None, f_moov, f_dst, only_header=False)
File "F:\Videos\TEMP\finsta360.py", line 494, in copy_atom_box
if atom_type != target_type: raise ValueError(f'{target_type} not found but {atom_type}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: uuid not found but trak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.