[FFmpeg-user] Videofilter scaling is not resizing

Chaes Heath gamedazed at gmail.com
Thu Sep 29 14:41:54 EEST 2016

I've got a folder of 1080p videos that I'm wanting to encode in 720p. I'm
using the below command to do so:

*for i in `ls`; do ffmpeg -y -i $i  -vf scale=-1:720,setsar=1:1 -vf
subtitles=$i -crf 25 -trellis 2 -tune animation -preset veryslow -c:a copy
-f mp4 ../destination/720p/$i.mp4; done*

This should scale the video to 720p, but instead  "*ffprobe -v quiet
-print_format json -show_format -show_streams ../destination/720p/video.mp4*"

*            "width": 1920,*
*            "height": 1080,*
*            "coded_width": 1920,*
*            "coded_height": 1088,*

This is the relevant output from ffmpeg:

//Input data is clearly 1920x1080

    encoder         : no_variable_data
    creation_time   : 1970-01-01 00:00:00
  Duration: 00:24:11.97, start: 0.000000, bitrate: 3196 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, *1920x1080* [SAR 1:1 DAR
16:9], 23.81 fps, 23.81 tbr, 1k tbn, 47.95 tbc (default)

//Now here's the output

    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
*1920x1080* [SAR 1:1 DAR 16:9], q=-1--1, 23.81 fps, 16k tbn, 23.81 tbc

It's clear that it never even attempts to set it to 720.

I know I must be missing something, but I can't seem to figure out what it
is. Any help on this would be greatly appreciated!

More information about the ffmpeg-user mailing list