This PR adds metadata extraction and updation support.
Key Changes
β¨ Added retrieve_metadata class method to Sourcer API.
πΈ The retrieve_metadata will returns source metadata as python dictionary.
π¨ Populated private source member values in dictionary with distinct keys.
β¨ Added metadata property object function to FFdecoder API.
πΈ The property object will retrieve source metadata form Sourcer API as dict and return it as JSON dump for pretty printing.
πΈ Added Operational Mode as read-only property in metadata.
β¨ Added metadata property object with setter() method for updating source metadata with user-defined dictionary.
πΈ Implemented way to manually alter metadata keys and values for custom results.
π₯ Renamed decode_stream to probe_stream in Sourcer API.
𧱠Converted all Sourcer API public available variables into private ones.
π¨ All Sourcer's publicly accessed variable metadata values in FFdecoder replaced with dictionary counterparts.
ποΈ Moved FFmpeg path validation and handling to Sourcer from FFdecoder API.
𧱠Moved -ffmpeg_download_path dictionary attribute to Sourcer API's sourcer_params parameter.
π¨ Moved dependencies and related functions.
π Bumped version to 0.2.0
Related Issue
4
Context
Currently Sourcer API is without teeth, there's no proper way to access source video metadata, and same goes to FFdecoder API. Therefore, this PR will brought the metadata extraction and updation support to both these APIs.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Brief Description
This PR adds metadata extraction and updation support.
Key Changes
retrieve_metadata
class method to Sourcer API.retrieve_metadata
will returns source metadata as python dictionary.metadata
property object function to FFdecoder API.metadata
property object withsetter()
method for updating source metadata with user-defined dictionary.decode_stream
toprobe_stream
in Sourcer API.-ffmpeg_download_path
dictionary attribute to Sourcer API'ssourcer_params
parameter.0.2.0
Related Issue
4
Context
Currently Sourcer API is without teeth, there's no proper way to access source video metadata, and same goes to FFdecoder API. Therefore, this PR will brought the metadata extraction and updation support to both these APIs.
Types of changes