Opened 14 years ago
Closed 14 years ago
Last modified 14 years ago
#8469 closed defect (fixed)
Error streaming FLV over mythweb, Frame size must be a multiple of 2
Reported by: | 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:
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.
patch that solves the problem.