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
- 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