If a video I'm uploading has a resolution that isn't on the list of selectable dimensions in the metadata screen, I'm forced to pick a resolution that doesn't exactly match, and sometimes doesn't even scale right. Also since the video has already been uploaded, I'm pretty much forced into choosing something, as I can't edit my metadata screen without refreshing that page as it wouldn't get the changes.

I'd like to be able to select a checkbox that just says "Encode at source resolution" and then I can pick my player size.

Enjoying the module thank you for your efforts, especially like the couple of contributed patches that I've picked up in the issue queue that smoothed out some things.

Comments

Jorrit’s picture

Version: 6.x-4.1-rc6 » 6.x-4.x-dev
Component: Code » Video Field

This is a good idea, I will try to implement this in one of the upcoming versions.

Jorrit’s picture

Status: Active » Postponed
bkat’s picture

You can do this in the presets if you have newish version of ffmpeg: For example, I use this for pass 1 of my webm preset:

!cmd_path -y -nostats -i !videofile -pass 1 -passlogfile /tmp/ffmpeg2pass -threads 8 -vcodec libvpx -b:v 720k -g 120 -level 216 -profile 0 -qmax 42 -qmin 10 -rc_buf_aggressivity 0.95 -vf "scale=min(iw\,!width):ow/dar,setsar=1:1" -an -f webm /dev/null

The good stuff is in the scale function. It scales the width to the minimum of the input width or the specified width. It also ignores any height and scales it to maintain the same aspect ratio of the input video (ow/dar).

So all you would have to do it select a preset whose width is larger than your input video and it will scale the transcoded video to the dimensions of the input video.

brycefisherfleig’s picture

Version: 6.x-4.x-dev » 7.x-2.x-dev
Priority: Normal » Major
Issue summary: View changes
Status: Postponed » Active
StatusFileSize
new61.14 KB

Although this is an old issue, this feature does seem like a must. I'm not super interested in backporting this feature to D6, especially given the work around for ffmpeg from bkat. However, there currently is no work around for the 7.x-2.x-dev version.

Currently all dimesions must be specified in admin/config/media/video (see screenshot). However, I think that there should be an option available labeled "Use original dimensions" under the Dimensions select when creating/editing a preset. Alternatively, if we allowed command line or API request overrides, this would be possible using a custom ffmpeg commandline override or Zencoder API request.

hypertext200’s picture

Component: Video Field » General
Status: Active » Closed (fixed)