avconv drawtext filter evaluates text_w as 0

Bug #1033320 reported by Chris White
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libav (Ubuntu)

Bug Description

I'm attempting to draw text onto a video using either the avconv command. When specifying x= for where on the final video to place the text, the 'text_w' value is evaluating to 0, rather than the width of the rendered text as it should.

I'm using Ubuntu 12.04
I've got avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1
and ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1
Example command:

avconv -i test.mov -vf "drawtext=fontfile='/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf':text='test text':x=text_w:y=50:fontsize=24:fontcolor=black" texted.mov
This command causes the text to be printed as if x were set to 0.

What I'd really like to be able to do is center the text horizontally using something like this:

avconv -i test.mov -vf "drawtext=fontfile='/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf':text='test text':x=(main_w-text_w)/2:y=50:fontsize=24:fontcolor=black" texted.mov

SuperUser conversation: http://superuser.com/questions/447645/avconv-and-ffmpeg-drawtext-filter-text-w-evaluates-as-0-in-ubuntu-precise

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libav (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

Is this still an issue?

Changed in libav (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libav (Ubuntu) because there has been no activity for 60 days.]

Changed in libav (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.