Questions tagged [hachoir-parser]

10 questions
8
votes
1 answer

Python: Using Hachoir, how extract metadata for file-like objects?

I'm working on a site that users uploads videos and audio files, I when uploaded, some common metadata fields must be populated from the file. I have found Hachoir and it seems good, but with a problem, to create a parser for metadata reading, what…
Armando Pérez Marqués
  • 5,661
  • 4
  • 28
  • 45
6
votes
2 answers

Python + Hachoir-Metadata - Reading FPS tag from .MP4 file

I'm writing a Windows application in Python which has to read metadata from an .MP4 video file. I started writing the application in Python 3, but was unable to find a suitable module to read metadata from video files. That's when I used 3to2 to…
kregus
  • 1,003
  • 10
  • 18
4
votes
2 answers

Hachoir - Retrieving data from a group

Trying to use Hachoir to retrieve metadata from a video file. Working reasonably well except when using 'get' or similar to return the width and height values. I assumed it would be: metadata.get('width') But this throws an error (object does not…
Steven Lee
  • 179
  • 2
  • 14
1
vote
1 answer

jupyter-notebook output for loop not showing

When i run my Jupyter-notebook with python2.7 and try to print items (of a list) using a for-loop it just won't output the print statement after importing the following packages: import sys import os from hachoir_core.cmd_line import…
Daniel
  • 473
  • 4
  • 9
0
votes
2 answers

Hachoir Python Implementation on Blackberry

I need to implement the Hachoir libraries to parse through image files (the meta-data in them). My project requires this to be done on a Blackberry device, hence that would mean I will have to port the entire Hachoir library to Blackberry. The…
cornerstone
  • 639
  • 1
  • 8
  • 19
0
votes
1 answer

Hachoir Parser in Android

I need to implement the Hachoir framework in the android phone. I am lost as to where to start and how to go about understanding the framework. Is there anyway to call the python files into my android code or some other documentation which will help…
Amritha
  • 795
  • 3
  • 9
  • 26
0
votes
1 answer

install Derivatives of hachoir library into Google Colab

How can I install derivatives of hachoir library like hachoir-core Or hachoir-metadata on GoogleColab? I tried this way !pip install hachoir-metadata but I got the error Command "python setup.py egg_info" failed with error code 1 in …
hdiz
  • 1,141
  • 2
  • 13
  • 27
0
votes
1 answer

Error Installing Hachoir-metadata |Command "python setup.py egg_info" failed with error code 1 in...\hachoir-metda

I am installing hachoir-metadata from reference[3]. I have completed the following for the installation of hachoir-metadata: conda create -n hachoir-metadata pip python=3.5 activate hachoir-metadat pip install --upgrade hachoir-metadata I am using…
Sade
  • 450
  • 7
  • 27
0
votes
2 answers

Suppress warnings in Hachoir

I'm using hachior-parser to grab the duration of a large set of video files. (I'm resetting the "Last modified" date based on the file's timestamp, plus its duration.) I'm using code adapted from this question. The problem I'm running into is that…
ghaberek
  • 257
  • 1
  • 10
0
votes
1 answer

Does hachoir metadata or libextractor extract covers from ID3v2 and all another formats?

I've tried to use hachoir-metadata to work with multimedia files but I can't find how to parse covers in ID3v2 metadata. I see in source code that it know about a lot of covers tags but dose not return any in parser. And I've even tried to use…
senior_pimiento
  • 702
  • 1
  • 5
  • 15