2025-01-14 16:38:44 +02:00
2024-11-14 23:46:13 +02:00
2024-11-14 20:13:59 +02:00
2024-11-14 23:46:13 +02:00
2024-11-14 23:57:23 +02:00
2024-11-14 23:46:13 +02:00

VidEnc

This is a command-line application that analyzes video files using ffprobe to extract stream information (video, audio, subtitles). It then uses the OMDb API to fetch additional movie details such as title and release date, given an IMDB ID.

Workflow

  1. Input: The application takes a video file path as input, along with an optional IMDB ID and a flag to disable subtitle processing.

  2. FFprobe Analysis: It runs ffprobe on the input video file to extract stream information in JSON format.

  3. Stream Parsing: The JSON output is parsed to identify video, audio, and subtitle streams.

  4. OMDb API Lookup (Optional): If an IMDB ID is provided, the application queries the OMDb API to retrieve movie title and release date.

  5. Output: Finally, it prints a command string based on the extracted information. This command string is likely intended for further video processing or encoding.

Usage

python src/app.py <video_file> [-i <imdb_id>] [-ns]
  • <video_file>: Path to the video file.
  • -i <imdb_id>: (Optional) IMDB ID of the movie.
  • -ns: (Optional) Flag to disable subtitle processing.

Example

python src/app.py my_movie.mp4 -i tt1234567

This would analyze my_movie.mp4, fetch details from OMDb using IMDB ID tt1234567, and print a command string.

Unit Tests

There are no unit tests included in this project.

S
Description
No description provided
Readme
83 KiB
Languages
Python 80.2%
Jinja 19.8%