OpenELEC Forum
Green screen streaming MJPEG from foscam ip camera - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: VIDEO DECODERS (https://forum.openelec.tv/forumdisplay.php?fid=54)
+---- Forum: VAAPI (Intel) (https://forum.openelec.tv/forumdisplay.php?fid=56)
+---- Thread: Green screen streaming MJPEG from foscam ip camera (/showthread.php?tid=73261)



Green screen streaming MJPEG from foscam ip camera - knocktrade - 10-08-2014

I'm having and issue with the latest openelec. In both 4.2 and 4.2.1 I'm getting a green screen streaming from my foscam ip camera. The foscam is streaming an MJPEG format. This was working well in 4.07 and works well in. Standard xbmc 13.2 build on OSX 10.8 and windows 8. Any thoughts? I'm running this on an asus chrome box standalone. I've tried disabling all hardware video acceleration but no go.


Green screen streaming MJPEG from foscam ip camera - nickr - 10-09-2014

How are you streaming? an strm file? Or the newish foscam addon? See here if you don't know about the addon http://forum.xbmc.org/showthread.php?tid=190439


Green screen streaming MJPEG from foscam ip camera - knocktrade - 10-09-2014

I'm using the tried and true strm file. I've seen the new adding but i haven't gotten it to work just yet. I've tried to stream both the MJPEG format at the ASX/ASF format but both just show a green screen (4:3 ratio partially filling the screen)

Thanks.


Green screen streaming MJPEG from foscam ip camera - nickr - 10-09-2014

What is the contents of your strm file? (you probably want to fudge your username/password if they appear)


Green screen streaming MJPEG from foscam ip camera - jan - 10-09-2014

having the same problem with 4.2.1,
my strm file: http://user:Pwd@192.168.1.52:80/videostream.asf?user=user&pwd=Pwd&resolution=64&rate=0
worked ok in 4.0.7.
don't use it much but checked it once again and still give me a green screen, since the 4.1 beta's.
i think a green screen usually means a missing codec.

logs: http://sprunge.us/XSLB


Green screen streaming MJPEG from foscam ip camera - jan - 10-10-2014

so i downgraded to 4.0.7 and created another debug log while streaming

log: http://sprunge.us/DYiV

hope someone can figure out why the mjpeg stream is failing in OE 4.2.1


Green screen streaming MJPEG from foscam ip camera - knocktrade - 10-15-2014

pulled up the log - looks like there might be an issue with one of the parameters being passed to ffmpeg. from my xbmc log file, i see:

04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=d8 avail_size_in_buf=28011
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker parser used 0 bytes (0 bits)
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=e0 avail_size_in_buf=28009
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] ignoring invalid SAR: 0/0
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker parser used 18 bytes (144 bits)
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=c0 avail_size_in_buf=27988
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] sof0: picture: 640x480
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] component 0 2:1 id: 0 quant:0
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] component 1 1:1 id: 1 quant:1
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] component 2 1:1 id: 2 quant:1
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] pix fmt id 21111100
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker parser used 17 bytes (136 bits)
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=db avail_size_in_buf=27969
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] index=0
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] qscale[0]: 4
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] index=1
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] qscale[1]: 8
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker parser used 132 bytes (1056 bits)
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=c4 avail_size_in_buf=27835
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] class=0 index=0 nb_codes=12
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] class=1 index=0 nb_codes=251
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] class=0 index=1 nb_codes=12
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] class=1 index=1 nb_codes=251
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker parser used 418 bytes (3344 bits)
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] escaping removed 97 bytes
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=da avail_size_in_buf=27415
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] component: 0
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] component: 1
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] component: 2
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker parser used 27314 bytes (218512 bits)
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] marker=d9 avail_size_in_buf=65
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [mjpeg] decode frame unused 65 bytes
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'width' to value '640'
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'height' to value '480'
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'pix_fmt' to value '13'
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'time_base_num' to value '0'
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'time_base_den' to value '1'
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'sar_num' to value '0'
04:01:11 T:140101539579648 DEBUG: ffmpeg[EE7FC700]: [src] Setting 'sar_den' to value '1'
04:01:11 T:140101539579648 ERROR: ffmpeg[EE7FC700]: [src] Invalid parameters provided.
04:01:11 T:140101539579648 ERROR: CDVDVideoCodecFFmpeg::FilterOpen - avfilter_graph_create_filter: src


Green screen streaming MJPEG from foscam ip camera - knocktrade - 10-15-2014

I did some more debugging but no go, atleast nothing yet. For now i've created a bug with all the logs and such and posted it to the OE github page:

https://github.com/OpenELEC/OpenELEC.tv/issues/3547
OE 4.2/4.2.1 MJPEG video not playing correctly/green screen #3547

Thanks.


Green screen streaming MJPEG from foscam ip camera - nickr - 10-16-2014

Same here now that I have tried.