Skip to content
    Back to all Bounties

    Earn 18,000 ($180.00)

    Time Remainingdue 2 years ago
    Canceled

    Add subtitles on top of MP4 file using Python

    xanderCode
    xanderCode
    Posted 2 years ago

    Bounty Description

    Problem Description

    Given an input:
    (video_path, transcript, x_percent=50, y_percent=50, subtitles_width, subtitles_height, font='Arial', text_colour='white')
    Where x_percent and y_percent are the locations of the centre of the subtitles.
    Where subtitles_width and subtitles_height are the max height and width of the box that the subtitles must fit inside.
    Where transcription in the form: [ {'text': "Elephant", 'start_time': 121, 'end_time': 122.5}, {...}, ...]
    Where 'text' is always only one word, and start_time and end_time are in seconds.

    Acceptance Criteria

    Must have at least 10 fonts to choose from, all of them being Excellent for youtube shorts.
    Must have a black outline on the text with configurable inside color(no grey background)
    IMPORTANT: Must color in the word with a configurable color for time: [start_time, end_time].
    Text must appear centered at location x_percent, y_percent (y_percent = 0 is bottom, y_percent = 100 is top)
    Text must fit inside box transcript_width x transcript_height and be automatically scaled to be the maximum font size possible that fits inside that box. This font however should be fixed for the entire video, so font size should be calculated only once per method run.
    Text cannot appear pixelated in an HD video. (text must be HD)
    Text cannot be more than two lines, and should automatically be one line only if the dimensions of the transcript width and height make sense to do so.
    Method should also be robust and throw errors when numbers and input does not make sense.
    Method can call other helper methods or classes or files.

    Price is high so looking for high quality work!
    Time frame is negotiable.

    Looking forward to working with you! I am a python dev myself but don't have the patience to build this. Reach out to me if you have clarifying questions, and If this works out I would be interested in doing future projects for more money.