Skip to main content

Trace Extractor

A wrapper around ffprobe that takes MPEG-4 files and outputs video traces in a format readable by ns-3's UdpTraceClient application.

Dependencies

You need to have ffmpeg's ffprobe present in your PATH. Alternatively, you can use a custom ffprobe with the --ffprobe-path argument:

python3 -m trace_extractor --ffprobe-path /path/to/ffprobe

Installation

trace_extractor can be installed via pip:

pip install trace-extractor

Usage

To run the program, you need to specify the MP4 file you wish to process and the path to the output file.

python3 -m trace_extractor -i path/to/input.mp4 -o path/to/output.ns-3-vtrace

Example

An example video is present in the tests/inputs directory, it is a recording of id Software's 1993 DOOM's DEMO1 demo played back on the dsda-doom source port.

Release files for trace-extractor 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trace-extractor 0.0.3
File Size Uploaded
trace_extractor-0.0.3.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trace-extractor 0.0.3
File Interpreter ABI Platform
trace_extractor-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / trace_extractor-0.0.3.tar.gz

Download URL trace_extractor-0.0.3.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3acf336bb5543255a7a771115df0497ae77e46ce7e81ad61d6342745d08aa289
BLAKE2b-256 checksum
How to use checksums
7debc7141d1731dbb80520f8c58f0e6629d367960fb4c6565a332ef6a862e038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / trace_extractor-0.0.3-py3-none-any.whl

Download URL trace_extractor-0.0.3-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07f50283a1f778d9e844bf4bd980726f1926d74f7c9e1dbce9c1029409823ed3
BLAKE2b-256 checksum
How to use checksums
0e6f4a38c6b1baaa54e8d2a63ec0842a08fa141a2913bbbb310fb4e5d101d2c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page