Find Jobs
Hire Freelancers

resize mkv video using Linux script

$30-250 USD

Closed
Posted about 12 years ago

$30-250 USD

Paid on delivery
I have mkv videos (matroska container) which are recordings from TV. Each matroska file contains several sections (video stream, audio stream, some attributes like channel name or similar, and optionally second audio stream with different languate, and optionally subtitles). I need to transcode (scale, resize) the video stream to smaller screen resolution, preserving all other sections untouched. I wish to do that in Linux, thus I need a script which will call ffmpeg (or any other encoding program which is freely available) with right parameters, which will accept two arguments: - argument 1: input - the mkv file full path as a source file - argument 2: output - the new mkv file full path as a destination where resized video will be written There are, however, several important requirements: - the newly created mkv file must preserve all the sections from original matroska file, including all audio tracks and subtitle tracks (if exist), and other infos and tags, etc. - the newly created mkv file must contain the video stream in half resolution. That is, if the original is 640x480, the new transcoded video will be 320x240. The size of each video is different so this can't be hardcoded, your script must be able to detect the original size and transcode video to the half of it. - output video stream format will be MPEG2 or MP4 - last, but the most important requirement, the newly created mkv file must keep aspect ratio for all video frames like the original source video. This needs to be explained further: the source video, as recorded from TV, contains some parts in different aspect ratios than other parts. The best is to provide example, so here is an example video (attached below). As you can see while playing the video, first two seconds of the [login to view URL] video are 1024 x 576, which is 16:9, but since the 00:03 seconds, the video is 768 x 576 Pixels (4:3). I believe it has something to do with DAR (display aspect ratio). The output video, scalled down by 50% and encoded by the script you provide, must preserve this behavior. I believe this will be just few-lines script so I don't expect your bids to be much bigger than the minimum $30. Thank you
Project ID: 1554511

About the project

5 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $134 USD for this job
User Avatar
I have written the script, will attach the resized video in a private message. This automatically recognizes the DAR keeps the aspect ratios as you mentioned over the video: in the example it detects first 2.88 seconds with 4:3 and the rest 16:9 and resizes the video stream accordingly. If I get selected will send you the script right away. I have tested the script on Ubuntu and all the tools are available in the official repositories, don't need to compile any extra tool from source. I will be happy to provide more detail and a video of the script working.
$85 USD in 0 day
5.0 (1 review)
2.4
2.4
User Avatar
Hey, i've resized the video using the necessary script and attached in the PM. Please see that for more details.
$35 USD in 1 day
5.0 (1 review)
1.0
1.0
User Avatar
Pls check PMB.
$250 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Pls check PMB.
$250 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CZECH REPUBLIC
Sumperk, Czech Republic
5.0
67
Payment method verified
Member since Apr 5, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.