Play "here" mythbuntu:15647 connection refused

27 views
Skip to first unread message

John C

unread,
Dec 3, 2011, 9:59:54 AM12/3/11
to mythdroid-dev
Have only now tried streaming to my android (galaxy tab). I get
"http://192.168.2.44:15647 connection refused". Is there something
else I need to enable/turn on?

Thanks,
John

foo bar

unread,
Dec 4, 2011, 5:28:49 AM12/4/11
to mythdr...@googlegroups.com, mythdro...@googlegroups.com
Hi,


Do you mean 16547? That should be vlc's rc interface. A failure to connect to that shouldn't stop the video playing but you won't be able to seek, etc.

Have a look at /tmp/vlc.out for clues as to what's going wrong..

foobum

John C

unread,
Dec 4, 2011, 10:30:29 AM12/4/11
to mythdroid-dev
1) vlc wasn't running because I run mythfrontend as user "john" and
the vlc command could not write to /var/log. I just changed it to
write to /tmp/mddvlc.log and that got that

2) mdd.pl (0.5.2). findFileSG for some reason was looking for /var/
lib/mythtv/recordings1038_20111202210100.mpg [note no slash] instead
of /var/lib/mythtv/recordings/1038_20111202210100.mpg. So I hacked to
look for "$d/$file" instead of "$d$file".

3) It streams video to the Android now, but no audio. mdd.log shows:
Sun 4 Dec 08:51:37 - Debug - Execute /usr/bin/vlc --demux avformat -
vvv -I oldrc --rc-host mythbuntu:16547 --rc-fake-tty --file-
caching=2000 /var/lib/mythtv/recordings/1038_20111202210100.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=448,threads=1,deinterlace,acodec=mp4a,samplerate=48000,ab=128,channels=2,audio-
sync}:rtp{sdp=rtsp://mythbuntu:5554/stream}' 2>&1 >> /tmp/mddvlc.log

Sun 4 Dec 08:51:37 - Warning - VLC: [0x8542b9c] main interface error:
no suitable interface module
Sun 4 Dec 08:51:37 - Warning - VLC: [0x8518914] main libvlc error:
interface "globalhotkeys,none" initialization failed
Sun 4 Dec 08:51:37 - Warning - VLC: [0x869c99c] stream_out_transcode
stream out error: cannot find audio encoder (module:any fourcc:mp4a)
Sun 4 Dec 08:51:37 - Warning - VLC: [0x869c99c] stream_out_transcode
stream out error: cannot create audio chain
Sun 4 Dec 08:51:37 - Warning - VLC: [0x8673a04] main decoder error:
cannot create packetizer output (mpga)

I am not at all a vlc or streaming guru so do you have any tip?

I think I am running mythdroid 0.5.2 apk (Nov 15)

Thanks!
John


On Dec 4, 4:28 am, foo bar <foo...@gmail.com> wrote:
> Hi,
>

> On 3 December 2011 14:59, John C <john.clo...@gmail.com> wrote:
>
> > Have only now tried streaming to my android (galaxy tab).  I get

> > "http://192.168.2.44:15647connection refused".  Is there something

foo bar

unread,
Dec 4, 2011, 10:38:32 AM12/4/11
to mythdr...@googlegroups.com
Hi John,

On 4 December 2011 15:30, John C <john....@gmail.com> wrote:
1) vlc wasn't running because I run mythfrontend as user "john" and
the vlc command could not write to /var/log.  I just changed it to
write to /tmp/mddvlc.log and that got that

Hm. It should write to /tmp/vlc.out by default, not into /var/log...
 
2) mdd.pl (0.5.2). findFileSG for some reason was looking for  /var/
lib/mythtv/recordings1038_20111202210100.mpg [note no slash] instead
of /var/lib/mythtv/recordings/1038_20111202210100.mpg.  So I hacked to
look for "$d/$file" instead of "$d$file".

Ok, thanks for that. I thought that all SG dirs have trailing '/'s but a check is trivial - I'll add one.
 
3) It streams video to the Android now, but no audio.
Sun 4 Dec 08:51:37 - Warning - VLC: [0x869c99c] stream_out_transcode
stream out error: cannot find audio encoder (module:any fourcc:mp4a)

Looks like you're missing an AAC (MP4A) encoder - you probably need to enable one at (vlc) compile time.

Regards,

foobum

John C

unread,
Dec 4, 2011, 12:22:59 PM12/4/11
to mythdroid-dev
Thanks foobum! See below.

On Dec 4, 9:38 am, foo bar <foo...@gmail.com> wrote:
> Hi John,
>

> On 4 December 2011 15:30, John C <john.clo...@gmail.com> wrote:
>
> > 1) vlc wasn't running because I run mythfrontend as user "john" and
> > the vlc command could not write to /var/log.  I just changed it to
> > write to /tmp/mddvlc.log and that got that
>
> Hm. It should write to /tmp/vlc.out by default, not into /var/log...

Oh, my bad, it seems I had patched mdd to (attempt to) write to /var/
log!!

>
> > 2) mdd.pl (0.5.2). findFileSG for some reason was looking for  /var/
> > lib/mythtv/recordings1038_20111202210100.mpg [note no slash] instead
> > of /var/lib/mythtv/recordings/1038_20111202210100.mpg.  So I hacked to
> > look for "$d/$file" instead of "$d$file".
>
> Ok, thanks for that. I thought that all SG dirs have trailing '/'s but a
> check is trivial - I'll add one.
>
> > 3) It streams video to the Android now, but no audio.
> > Sun 4 Dec 08:51:37 - Warning - VLC: [0x869c99c] stream_out_transcode
> > stream out error: cannot find audio encoder (module:any fourcc:mp4a)
>
> Looks like you're missing an AAC (MP4A) encoder - you probably need to
> enable one at (vlc) compile time.

I've been browsing 17 pages of discussion at http://ubuntuforums.org/showthread.php?t=1117283
and
conclude that it's way over my head and I can't afford to risk messing
up my mythtv installation and
try to recover from it right now.

I realize you're not the right person to ask but are there any audio
codec encoding alternatives that
would likely play on my galaxy tab and LG optimus S that are not
"restricted"?

Cheers,
John

chris brown

unread,
Dec 4, 2011, 1:30:57 PM12/4/11
to mythdr...@googlegroups.com
John,

Using ubuntu, you need to uninstall ffmpeg. Enable the medibuntu repostitry, then install ffmpeg from there. I'll double check, but I think thats all I did to get it working.

minidroidboy

unread,
Dec 4, 2011, 1:34:16 PM12/4/11
to mythdroid-dev
I also had to install libavcodec-extra-52 in 10.04. I believe for any
higher version of ubuntu you need to install libavcodec-extra-53.

Hope you get it working.

foo bar

unread,
Dec 4, 2011, 1:46:35 PM12/4/11
to mythdr...@googlegroups.com
Hi,

On 4 December 2011 17:22, John C <john....@gmail.com> wrote:
> Looks like you're missing an AAC (MP4A) encoder - you probably need to
> enable one at (vlc) compile time.

I've been browsing 17 pages of discussion at http://ubuntuforums.org/showthread.php?t=1117283
and conclude that it's way over my head and I can't afford to risk messing
up my mythtv installation and try to recover from it right now.

I think, as Chris said, you just need to enable the medibuntu repository, uninstall vlc and ffmpeg and then reinstall them..

I realize you're not the right person to ask but are there any audio codec encoding alternatives
that would likely play on my galaxy tab and LG optimus S that are not "restricted"?

Well, you'd need a codec that a) you can encode b) vlc can send via rtp and c) is supported by your device.

You can see what you can encode with:

vlc -l | grep encode

+

ffmpeg -formats | grep 'E '

You can see what formats can be sent via RTP at http://www.videolan.org/streaming-features.html

The specs for your device should list what codecs it can decode..

But, I'd recommend just getting yourself a vlc and ffmpeg that can encode aac..

Regards,

foobum



 

minidroidboy

unread,
Dec 4, 2011, 1:56:21 PM12/4/11
to mythdroid-dev
I think this link ill help you -
http://www.whynotwiki.com/Problem:_ffmpeg/vlc_can_no_longer_encode_using_MPEG_AAC_Audio_after_upgrade_from_Ubuntu_7.10_to_8.04

Scroll right to the bottom, and read his comment, BEFORE you do
anything ;-)

Reply all
Reply to author
Forward
0 new messages