No audio in streaming files

10 views
Skip to first unread message

nickfoti

unread,
Mar 2, 2011, 7:02:42 PM3/2/11
to mythdroid-users
I have the latest release installed as well as the latest mdd/vlc/
ffmpeg on my backend/frontend. I can stream video from the recordings
and video areas but never get any sound.

I had an issue running MDD initially, but I think I have that sorted
out by running, as root on boot:

/usr/bin/mythlcdserver

I do notice that if I run that from a command line I get a warning
"Could not connect to LCDd: connection refused"

The Install instructions state to run /usr/bin/mdd on boot, but I do
not have that file.

Any tips on where I should start to debug the issue of the missing
sound?

Thanks!

-Using WIFI on a Captivate with froyo
-mythtv .24 158

nickfoti

unread,
Mar 2, 2011, 10:22:21 PM3/2/11
to mythdroid-users
I messed with the transcode settings in mdd.pl, trying different audio
codecs (re-install with perl script, restart mythlcdserver) without
any success.

Out of curiosity I installed on a Droid X to see if I could replicate
the problem using the same backend. Unfortunately, I could not get
video playback to work at all on the DroidX, exits out with the
message "Sorry this video cannot be played"

Nick

foo bar

unread,
Apr 2, 2011, 9:21:02 AM4/2/11
to mythdro...@googlegroups.com
Hi Nick,

On 3 March 2011 00:02, nickfoti <nick...@gmail.com> wrote:
> I have the latest release installed as well as the latest mdd/vlc/
> ffmpeg on my backend/frontend. I can stream video from the recordings
> and video areas but never get any sound.
>
> I had an issue running MDD initially, but I think I have that sorted
> out by running, as root on boot:
>
> /usr/bin/mythlcdserver

This should be run automatically by mythfrontend if you have enabled
the LCD options in the frontend setup.

> I do notice that if I run that from a command line I get a warning
> "Could not connect to LCDd: connection refused"

Not a problem.

> The Install instructions state to run /usr/bin/mdd on boot, but I do
> not have that file.

MDD would be installed to that location if you had performed a
'backend-only' install (by specifying --backend).

On a combined frontend/backend, it installs to /usr/bin/mythlcdserver
and, as stated above, should be run automatically by mythfrontend.

> Any tips on where I should start to debug the issue of the missing
> sound?

As a first step, let's have a look at /tmp/ffmpeg.log and /tmp/vlc.log.

Regards,

foobum

nickfoti

unread,
Apr 2, 2011, 5:44:13 PM4/2/11
to mythdroid-users
Ah, thank you very much. That solved the problem I was having with no
audio on my Captivate. I noticed that /tmp/vlc.out was complaining
about ffmpeg not being compiled with mp4a. I re-installed libavcodec-
extras from the medibuntu repository and that solved that issue. btw-
I don't have /tmp/vlc.log or /tmp/ffmpeg.log - I'm assuming you meant /
tmp/vlc.out and /tmp/ffmpeg.out

Things seem to be working well on the captivate now, but I have
another issue with sound cutting out after a few seconds in some
recordings. Here are the last few lines of my /tmp/vlc.out file:
[0x9f58218] stream_out_transcode stream out debug: drift is too high,
resetting master sync
[0x9f58218] stream_out_transcode stream out debug: drift is too high,
resetting master sync
[0x9f703d8] main generic debug: thread started
[0x9f58218] stream_out_transcode stream out debug: late picture
skipped (19267)
[0x9f58ce0] main stream out debug: net: connecting to [192.168.1.157]:
9258
[0x9f58ce0] main stream out debug: net: connecting to [192.168.1.157]:
9260
[0x9f58ce0] main stream out debug: net: connecting to [192.168.1.157]:
9259 from [192.168.1.16]:49253
[0x9f58ce0] main stream out debug: net: connecting to [192.168.1.157]:
9261 from [192.168.1.16]:58847


I do have another issue with my Motorola devices (droid x and xoom). I
suspect that the issue is with the h264 codec and the motorola devices
not having support for them. I noticed another suggestion in these
boards to replace the vlc transcode setting:
vcodec=h264,venc=x264{no-cabac,level=30,keyint=50,ref=1,bframes=0}
with:
vcodec=mp4v
I also tried:
vcodec=h263
Neither of those worked for me.

Here is a copy of my $stream_cmd from mdd.pl:

'ffmpeg -i %FILE% -vcodec rawvideo -acodec pcm_s16le -deinterlace
' .
'-s %WIDTH%x%HEIGHT% -ac 2 -ar 48000 -copyts -async 100 -f asf -y
- ' .
'2>/tmp/ffmpeg.out | /usr/bin/vlc -vvv -I dummy - ' .
'--sout=\'#transcode{vcodec=h264,venc=x264{no-
cabac,level=30,keyint=50' .
',ref=1,bframes=0},vb=%VB%,threads=%THR%,width=%WIDTH%,height=
%HEIGHT%,' .
'acodec=mp4a,samplerate=48000,ab=%AB%,channels=2,audio-sync}' .
':rtp{sdp=rtsp://0.0.0.0:5554/stream}\' >/tmp/vlc.out 2>&1';

Thanks for any help...
Nick

On Apr 2, 6:21 am, foo bar <foo...@gmail.com> wrote:
> Hi Nick,
>
Reply all
Reply to author
Forward
0 new messages