Scaling + padding fails with ffmpeg 1.1

513 views
Skip to first unread message

Frank Steiner

unread,
Feb 25, 2013, 11:25:13 AM2/25/13
to tovid...@googlegroups.com

Hi,

I try do downscale a 2.35:1 movie into a dvd'able 720x576 format. When I execute

  tovid -aspect 235:100 -quality 10 -ffmpeg -pal -noask -dvd -in in.avi -out out.mpg

(or -panavision, alternatively) then tovid calls ffmpeg with

  ffmpeg ... -s 720x448 -vf pad=720:576:0:64,setdar=16:9 ...

which leads to the error message:

  Input area 0:64:1280:608 not within the padded area 0:0:720:576 or zero-sized
  [graph 0 input from stream 0:0 @ 0x6ddf20] Failed to configure input pad on Parsed_pad_0

It seems that ffmpeg 1.1 doesn't allow to mix -s and -vf. The following call to ffmpeg did work for me:
  ffmpeg... -vf scale=720:448,pad=720:576:0:64,setdar=16:9 ...

cu,
Frank



grepper

unread,
Feb 25, 2013, 11:52:40 AM2/25/13
to tovid...@googlegroups.com
Hi Frank,
You are using a recent ffmpeg with a tovid version that is many years
old. Please try again using SVN, which has updated syntax for new ffmpeg.
http://tovid.wikia.com/wiki/Installing_tovid#Subversion

tovid-0.34 would probably also work, but even it is several years old now.
Note: as of tovid 0.33 (?) there is only one main executable named
'tovid' that calls the separate scripts, so you would use:
tovid mpg ... options here ...

thanks,
grepper

Frank Steiner

unread,
Feb 26, 2013, 10:03:19 AM2/26/13
to tovid...@googlegroups.com
Hi grepper,

sorry, I failed to mention which version I'm using :-( Actually, I tried tovid-svn_r3493 after I ran into the error. The latest svn version still uses "-s" for ffmpeg instead of "-vf scale=.."


naur root/s# tovid mpg -aspect 235:100 -quality 10 -ffmpeg -pal -noask -dvd -overwrite -in test.mkv -out test.mkv
Read options from /root/.tovid/tovid.ini:

--------------------------------
tovid mpg
Convert videos to DVD or (S)VCD format
Version svn-r3493
http://tovid.wikia.com
--------------------------------
7
tovid command-line used:
-aspect 235:100 -quality 10 -ffmpeg -pal -noask -dvd -overwrite -in test.mkv -out test.mkv
=========================================================
...
Analysis of file /export/root/s/test.mkv:
1280 x 544 pixels, 23.976 fps
Duration (best guess): 02:07:21 (HH:MM:SS)
H264 video with ffdca audio
Target format:
720 x 576 pixels, 25.000 fps
m2v video with ac3 audio
9000 kbits/sec video, 224 kbits/sec audio


=========================================================

Using explicitly provided aspect ratio 235:100
Overriding auto-detected aspect ratio 235:100
Letterboxing vertically
Input is not 25.000 fps. Framerate will be adjusted.
Scaling picture to 720 x 448
Centering picture against a 720 x 576 black background

=========================================================

Using ffmpeg to encode audio and video.
Encoding video and audio with the following command:
nice -n 0 ffmpeg -i "/export/root/s/test.mkv" -threads 4 -target pal-dvd -qmin 1 -qmax 31 -b 9000k -ab 224k -ac 6 -r 25.000 -s 720x448 -vf pad=720:576:0:64,setdar=16:9 -map 0:0 -map 0:1 -y "/export/root/s/test.mkv.mpg"

Processing started. Please wait...



Then tovid aborts, telling me everything was fine and my video should be in test.mkv.mpg, which is empty. Executing the ffmpeg command manually I get the error described in the first post.

cu,
Frank



grepper

unread,
Feb 27, 2013, 4:17:16 AM2/27/13
to tovid...@googlegroups.com
On 26/02/13 10:03 AM, Frank Steiner wrote:
> Hi grepper,
>
> sorry, I failed to mention which version I'm using :-( Actually, I tried
> tovid-svn_r3493 after I ran into the error. The latest svn version still
> uses "-s" for ffmpeg instead of "-vf scale=.."
>

Ah, you posted a command line of 'tovid -aspect 235:100 -quality 10
-ffmpeg -pal -noask -dvd -in in.avi -out out.mpg' , so I assumed tovid
version 0.31 or so, as more recent versions use the 'tovid mpg' syntax.
That's why its always good to include logs ! (and use copy/paste).

I have tested with latest git and using -s rather that -vf is indeed a
problem. I will fix it in SVN at some point soon.

Thanks for the report Frank !

cheers,
grepper

Frank Steiner

unread,
Feb 27, 2013, 5:12:54 AM2/27/13
to tovid...@googlegroups.com
Thanks :-)
Reply all
Reply to author
Forward
0 new messages