amarghosh / mp4viewer

MP4 file analyser for converting ISO-bmff atoms into json, or display them on the command line or a GTK based window
https://pypi.org/project/mp4viewer/
MIT License
52 stars 20 forks source link

imrove show desc of atom for console #13

Closed marakew closed 7 months ago

marakew commented 8 months ago

https://github.com/amarghosh/mp4viewer/blob/720f65c266618d48be8a18cbecad53cb23f62026/src/console.py#L20

     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))
amarghosh commented 7 months ago

Planning to show the description using a separate colour when colour is enabled, and use parentheses or angle brackets otherwise.

marakew commented 7 months ago

iam analyze big mp4 files output write at file for continue research and try many variation of show description with many delimiters seems my changes with () better