Coder Social home page Coder Social logo

amarghosh / mp4viewer Goto Github PK

View Code? Open in Web Editor NEW
51.0 6.0 20.0 292 KB

MP4 file analyser for converting ISO-bmff atoms into json, or display them on the command line or a GTK based window

Home Page: https://pypi.org/project/mp4viewer/

License: MIT License

Python 99.95% Shell 0.05%
mp4-format isobmff video viewer python 14496-12 analyzer gtk json mp4-converter

mp4viewer's Issues

imrove show desc of atom for console

write("%s%s%s%s%s\n" %(prefix, self.header_prefix, ConsoleRenderer.COLOR_HEADER,

     def show_node(self, node, prefix):
-        write("%s%s%s%s%s\n" %(prefix, self.header_prefix, ConsoleRenderer.COLOR_HEADER,
-            node.name, ConsoleRenderer.ENDCOL))
+        write("%s%s%s%s%s ***** (%s)\n" %(prefix, self.header_prefix, ConsoleRenderer.COLOR_HEADER,
+            node.name, ConsoleRenderer.ENDCOL, node.desc))

its not working with my file

here is where it fails
[anshul@daku_daddy src]$ python showboxes.py ~/test_videos/1.mp4
Traceback (most recent call last):
File "showboxes.py", line 16, in getboxlist
box = Box.getnextbox(buf, parent)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 115, in getnextbox
box = Box(buf, parent, container)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 43, in init
self.parse_children(buf)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 67, in parse_children
box = Box.getnextbox(buf, self)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 115, in getnextbox
box = Box(buf, parent, container)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 43, in init
self.parse_children(buf)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 67, in parse_children
box = Box.getnextbox(buf, self)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 115, in getnextbox
box = Box(buf, parent, container)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 43, in init
self.parse_children(buf)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 67, in parse_children
box = Box.getnextbox(buf, self)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 115, in getnextbox
box = Box(buf, parent, container)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 43, in init
self.parse_children(buf)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 67, in parse_children
box = Box.getnextbox(buf, self)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 115, in getnextbox
box = Box(buf, parent, container)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 43, in init
self.parse_children(buf)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 67, in parse_children
box = Box.getnextbox(buf, self)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/isobmff/box.py", line 118, in getnextbox
buf.skipbytes(box.size - box.consumed_bytes)
File "/home/anshul/Downloads/mp4_view/mp4viewer-master/src/datasource.py", line 146, in skipbytes
raise Exception("Negative bytes to skip %d" %(count))
Exception: Negative bytes to skip -8

---1.mp4 ---ftyp
major brand: qt
minor version: 537199360
brands: qt ,,,

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.