[mythtv-users] Problems with mythweb and flash streaming.

Alex Fazzari alex.fazzari at gmail.com
Mon Dec 21 00:46:35 UTC 2009


I'm having a problem getting flash streaming working through mythweb.
I've searched these lists and the web and as haven't seen a similar
problem - fingers crossed it's an easy one.

I have modified the mythweb/modules/stream_flv.pl file to output the
ffmpeg command to a log file.  On pressing the play button in the
flowplayer app I get the ffmpeg output pasted below.

It seems to be processing the file fine but is not producing any
output (0 size and 0 bitrate).  I have checked the permissions of the
folders which contain the video files and those of the web directory
and they are all writable to by the user under which apache runs.

I am serving the video file from a local NTFS share which is also
being used a CIFS share.  I read there may be problems with streaming
from CIFS shares that require Enable SendFile Off to be added to
http.conf so I added that to no avail.

Any suggestions on what I'm missing here?


mediabob at mediabob:/var/www/mythweb$ tail -f -n 100 /tmp/ffmpeg.log
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c)
2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6
--prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --disable-stripping
--disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6
--disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec
--disable-vis --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 10 2009 23:18:41, gcc: 4.3.3
[h264 @ 0x90ac030]number of reference frames exceeds max (probably
corrupt input), discarding one
    Last message repeated 243 times
[h264 @ 0x90ac030]mmco: unref short failure
[h264 @ 0x90ac030]number of reference frames exceeds max (probably
corrupt input), discarding one

Seems stream 0 codec frame rate differs from container frame rate:
100.00 (100/1) -> 50.00 (50/1)
Input #0, mpegts, from
'/media/External/TV_myth_recordings//2002_20091221033300.mpg':
  Duration: 01:13:19.72, start: 87169.440867, bitrate: 6531 kb/s
  Program 1
    Stream #0.0[0xfb]: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR
16:9], 50 tbr, 90k tbn, 100 tbc
    Stream #0.1[0x401](eng): Subtitle: dvbsub
Output #0, flv, to '/dev/stdout':
    Stream #0.0: Video: flv, yuv420p, 320x180 [PAR 1:1 DAR 16:9],
q=2-31, 256 kb/s, 90k tbn, 24 tbc
    Stream #0.1: Audio: adpcm_swf, 11025 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.2 -> #0.1
Press [q] to stop encoding
[h264 @ 0x90ac030]number of reference frames exceeds max (probably
corrupt input), discarding one
    Last message repeated 243 times
[h264 @ 0x90ac030]mmco: unref short failure
[h264 @ 0x90ac030]number of reference frames exceeds max (probably
corrupt input), discarding one
[h264 @ 0x90ac030]mmco: unref short failure
[h264 @ 0x90ac030]number of reference frames exceeds max (probably
corrupt input), discarding one
frame= 1843 fps= 39 q=3.7 size=       0kB time=76.79 bitrate=   0.0kbits/s


More information about the mythtv-users mailing list