Streaming not working - VLC not running?

19 views
Skip to first unread message

jessefis

unread,
Nov 21, 2011, 3:09:07 AM11/21/11
to mythdroid-users
I have MDD setup and it seems to be working correctly. In the mdd.log
I see:
Execute /usr/bin/vlc --demux avformat -vvv -I oldrc --rc-host
0.0.0.0:16547 --rc-fake-tty --file-caching=2000 /media/drive/
mythRecordings/5118_20111116220000.mpg --
sout='#transcode{vcodec=h264,venc=x264{no-
cabac,level=30,keyint=50,ref=4,bframes=0,bpyramid=none,profile=baseline,no-
weightb,weightp=0,no-8x8dct,trellis=0},vb=1024,threads=2,deinterlace,acodec=mp4a,samplerate=48000,ab=128,channels=2,audio-
sync}:rtp{sdp=rtsp://0.0.0.0:5554/stream}' 2>&1

I see the VLC process being started up and running at 100% CPU but I
see only this being output to /tmp/vlcout:
VLC media player 1.0.6 Goldeneye

Nothing more...I ran the command manually and it outputs lots of stuff
and I can connect to it via VLC on another computer but not when the
command is ran via MythDroid. Any ideas?

Also I notice that when I stream "videos" rather than recordings, the
videos don't run with the full file path whereas the recordings do (I
see this by doing a 'ps'). I think this might be a problem but I don't
know for sure. Anyone know about this?

jessefis

unread,
Nov 27, 2011, 5:05:20 PM11/27/11
to mythdroid-users
FYI I figured this out, VLC wasn't starting up correctly because of:
http://www.schwer.us/journal/2008/02/06/perl-sigchld-ignore-system-and-you/

I think its because I have an old version of VLC. I modified /usr/bin/
mythlcdserver which seemed to have fixed it:
Added in the import section:
use POSIX ":sys_wait_h";
Removed "$SIG{CHLD} = 'IGNORE';" and instead added:
sub REAPER { 1 until waitpid(-1 , WNOHANG) == -1 };
$SIG{CHLD} = \&REAPER;

Alternatively upgrading VLC should have fixed this.

As for the videos path problem: I upgraded to the newest version of
MythTV and the path problems went away.

Reply all
Reply to author
Forward
0 new messages