Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8469 closed defect (fixed)

Error streaming FLV over mythweb, Frame size must be a multiple of 2

Reported by: Jesse Chilcott <jesse.chilcott+mythtv@…> Owned by: Rob Smith
Priority: minor Milestone: 0.24
Component: Plugin - MythWeb Version: 0.23-fixes
Severity: medium Keywords: mythweb
Cc: Ticket locked: no

Description

I have noticed since I upgraded to 0.23 I have not been able to stream recorded shows in mythweb.

I am running Ubuntu 10.04. The recorded shows are in 16.9 aspect.

I traced the problem to:

http://svn.mythtv.org/svn/branches/release-0-23-fixes/mythplugins/mythweb/modules/stream/stream_flv.pl

It seems that it was generating this call:

/usr/bin/ffmpeg -y -i '/mnt/recordings/recordings1099_20100518123000.mpg' -s '480x393' -g 30 -r 24 -f flv -deinterlace -ac 2 -ar 11025 -ab '64k' -b '384k' /dev/stdout 2>/dev/null |

running from the shell I got this error: "Frame size must be a multiple of 2"

In the shell I changed '480x393' to '480x394' and it started running with out error. I then traced up to line 54:

$height = round_even($width * ($y/$x));

I think this is supposed to return an even integer. I logged the output of this line and I ended up with 393--an odd number. The same number that was causing ffmpeg to fail.

Attachments (1)

patch_file (612 bytes) - added by Jesse Chilcott <jesse.chilcott+mythtv@…> 9 years ago.
patch that solves the problem.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Jesse Chilcott <jesse.chilcott+mythtv@…>

Attachment: patch_file added

patch that solves the problem.

comment:1 Changed 9 years ago by Rob Smith

Resolution: fixed
Status: newclosed

(In [24931]) Fixes #8469, this adds in a home written round_even function

comment:2 Changed 9 years ago by stuartm

Milestone: unknown0.24
Note: See TracTickets for help on using tickets.