Audio delay problem streaming to PS3 with MediaTomb & Ubuntu

About encoding, codec settings, muxers and filter usage
brrugg
New Cone
New Cone
Posts: 1
Joined: 06 Dec 2008 19:12

Audio delay problem streaming to PS3 with MediaTomb & Ubuntu

Postby brrugg » 06 Dec 2008 19:29

Hi,

I am having serious audio delay problems when streaming via VLC to my PS3 using MediaTomb & Ubuntu 8.10.

A bit of the history.
- Streaming native media (e.g. MP3, DIVX, JPG) through MediaTomb worked out-of-the-box without a problem, however I need subtitle support so transcode via VLC was the only way.
- As per some How-To'ss & Wiki's & etc. I found in the net I configured MT to transcode and created the VLC script below to transcode my video files.

Code: Select all

#!/bin/bash VLC_PATH="/usr/bin/vlc" INPUT="$1" OUTPUT="$2" VIDEO_CODEC="mp2v" VIDEO_BITRATE="4096" VIDEO_FRAMERATE="25" AUDIO_CODEC="mpga" AUDIO_BITRATE="192" AUDIO_SAMPLERATE="44100" AUDIO_CHANNELS="2" FORMAT="ps" SUBTITLE_LANGUAGE="pt_BR" exec "${VLC_PATH}" "${INPUT}" -I dummy --sout "#transcode{vcodec=${VIDEO_CODEC},\ vb=${VIDEO_BITRATE},fps=${VIDEO_FRAMERATE},acodec=${AUDIO_CODEC},ab=${AUDIO_BITRATE},\ samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS},soverlay,audio-sync}:\ standard{mux=${FORMAT},access=file,dst=${OUTPUT}}" --sub-language=${SUBTITLE_LANGUAGE} \ vlc:quit >/media/HD120/transcode.log 2>&1
- Unfortunately VLC was returning "cannot find encoder MPEG-2 Video".
- I then replaced/installed "libavcodec-unstripped-51" (https://bugs.launchpad.net/ubuntu/+sour ... bug/281872)

Now everything seems to be working, except that the audio is delayed from the video&subtittle in approximately 10 seconds.

Does anyone have an idea of how to solve this problem?

Cheers,

Brrugg

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests