VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Can ffmpeg do these 2 things at the same time (among others)?

    Convert a "softsubbed" (subs can be disabled) to "hardsub" (subs are burned into the video and CAN NOT be disabled) and scale a video?



    With scaling i mean that i put for example, 1000 width and let ffmpeg choose the correct height to match the width i input.

    I read there is a "scale" function but when i use it in conjunction with other features (cutting video, converting to other format, etc) i get an error so i have to manually input both width and height.
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    You should be able to do this with a filterchain comprising the subtitle and scale filters. Specifying -1 for either height or width will result in the scale filter preserving input aspect ratio.

    What command(s) are you using and what is the error message?
    Quote Quote  
  3. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Some versions of FFMpeg will error on the -1 if the resulting rounded dimension is unacceptable such as an odd number for an AVC codec. In the below example I used 722:-1 as the size since the original video was 854x480 (1.779). A width of 720 would have resulted in a rounded 405 as the height and it causes an error.

    The string for adding subtitles is also shown for adding subtitles before resizing or resizing and then adding the subtitles (Larger).

    Click image for larger version

Name:	ScreenHunter_187 Jan. 24 02.27.jpg
Views:	1227
Size:	129.8 KB
ID:	35341

    Click image for larger version

Name:	ScreenHunter_187 Jan. 24 02.14.jpg
Views:	1061
Size:	78.2 KB
ID:	35342

    Click image for larger version

Name:	ScreenHunter_186 Jan. 24 01.49.jpg
Views:	1148
Size:	106.0 KB
ID:	35343

    Click image for larger version

Name:	ScreenHunter_186 Jan. 24 01.51.jpg
Views:	1006
Size:	110.3 KB
ID:	35344
    Last edited by Budman1; 24th Jan 2016 at 02:36.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!