I need ffprobe to pass the width and height values to ffmpeg as I want it to automatically set the aspect ratio.
This is what I use to see what the rez is so far:
I drag the video file onto the bat file and it will print the width and height in the console. So far, so good, I can see it pulls the values correctly.Code:for %%i in ("%~nx1") do ( C:\ffmpeg-4.2.2-win32-static\bin\ffprobe.exe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "%%i" )
But I need to pass it to ffmpeg so I can do a simple division to set the aspect ratio in ffmpeg command:
I dont know how to pass the ffprobe values to ffmpeg.Code:-aspect: width/height
Help appreciated.
Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
Similar Threads
-
Create 2-pass videos using ffmpeg & python
By olpdog in forum EditingReplies: 0Last Post: 29th Jun 2019, 22:16 -
ffmpeg vs ffprobe frame count speed
By Anime4000 in forum Newbie / General discussionsReplies: 6Last Post: 12th May 2019, 06:05 -
Pass Xvfb directly to ffmpeg
By mario90yxz in forum ffmpegX general discussionReplies: 0Last Post: 8th Jan 2018, 10:04 -
Please help on my 2-pass (Windows) ffmpeg cmd (SOLVED)
By SameSelf in forum Video ConversionReplies: 2Last Post: 26th May 2017, 13:41 -
Two-Pass Encoding using AVS2YUV with FFmpeg
By wwaag in forum Video ConversionReplies: 10Last Post: 9th Mar 2017, 18:33