[FFmpeg-user] scale overlay video

Alex Vasilenko aa.vasilenko at gmail.com
Tue Mar 19 17:51:38 CET 2013


On Tuesday, March 19, 2013 at 18:33 , Liam Condron-Farnos wrote:
> > So the question is: is it possible to get dimensions of different video stream in scale filter?
> 
> 
> I don't think that this is possible, at the moment, with ffmpeg. You
> could, of course, script it with your language of choice (probably
> involving ffprobe). For example, if you have ffprobe and sed, the
> following would get you the width of 'input.file':
> 
> 


Thing is I want to do it in 1 pass to not lose quality on reencoding. I know that I can use lossless encoding and 2 passes but I don't have so much resources.

Paul, will ffmpeg scripting solve my problem?
> 
> ffprobe input.file -show_streams -select_streams v | sed -n '/width=/s/.*=//p'
> 
> ...put it into a variable & do some basic arithmetic on it, and you
> should be able to do what you want.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org (mailto:ffmpeg-user at ffmpeg.org)
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> 




More information about the ffmpeg-user mailing list