zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.11k stars 86 forks source link

Reuse crop filter from video cmd for preview #267

Closed little-arhat closed 3 years ago

little-arhat commented 3 years ago

On both Linux and macOS minimum video sizes ffmpeg can capture are larger then video note size, required by telegram. Telega therefore has to use crop to prepare video. telega-vvnote-video-cmd sets crop dimensions for both Linux and macOS, however they might not be ideal, especially on macOS, where size of video captured is about 2-3 times larger then video note size.

Users can customize telega-vvnote-video-cmd, but the preview filter pipeline is hardcoded. Let's change that and let's extract crop filter parameters from telega-vvnote-video-cmd, preserving status quo behaviour when it's impossible.

starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Your branch is up to date with 'origin/master'. # # Changes to be committed: # modified: telega-vvnote.el #