[mpeg2enc] display_horizontal_size must be in range 0...16383

Bug #1033148 reported by Jochen Fahrner
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Confirmed
Medium
Unassigned
mjpegtools (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

When using mpeg2enc with option "-f 13" (ATSC 1080i) it aborts with

[mpeg2enc] display_horizontal_size must be in range 0...16383

This is because of a bug in encoderparams.cc. There are some special rules for setting display_horizontal_size and display_vertical_size for certain formats. In the case of MPEG_FORMAT_ATSC1080i the display_vertical_size is fixed set to 1080, because the input image is 1088 in size (must be a multiple of 16). The display_horizontal_size is not set in this case and it remains uninitialized because the default case is not executed (which sets also display_horizontal_size).

There are 2 possible solutions:

1. set the display_horizontal_size to a fixed value of 1920 in the case of MPEG_FORMAT_ATSC1080i.

2. move the code which sets these variables in the default case just before the case statement.

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

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

Changed in mjpegtools (Ubuntu):
status: New → Confirmed
Revision history for this message
Jens Lehmann (je-le) wrote :

This is in fact a annoying misbehaviour. Fixing the display_horizontal_size bug as Jochen suggests would be highly appreciated!

Revision history for this message
madbiologist (me-again) wrote :

Does this still occur on Ubuntu 15.10?

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

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

Changed in mjpegtools (Ubuntu):
status: Incomplete → Expired
Revision history for this message
mr_stone (mr-stone) wrote :

yes, the problem still exists

Changed in mjpegtools (Ubuntu):
status: Expired → Confirmed
Revision history for this message
mr_stone (mr-stone) wrote :

the bug is in this post discussed:
http://www.vuplus-support.org/wbb3/index.php?page=Thread&threadID=20625
unfortunately it is german. but with the information of this thread i found this bug report.

madbiologist (me-again)
tags: added: wily
Changed in mjpegtools (Ubuntu):
importance: Undecided → Medium
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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