I'm trying to transcode subtitled mkvs with VLC via Mediatomb to my PS3 (Ubuntu 9.10). After much frustration I managed to get it to *almost* work. The only issue now is the subtitles are around 30 seconds behind the audio and video. There seems to be a guy who had a similar problem here, but it was unresolved: viewtopic.php?f=4&t=53560&p=175272.
I tried using sub-delay as a hack fix, but if I push the subtitles any farther than 20 seconds back, they seem to disappear altogether, odd! The files play fine on VLC when not in streaming mode. Does anyone have any advice, or alternately, know of a way to reliably serve subtitled mkvs to a PS3 via Mediatomb? I tried mencoder but it seems to crash out on 30% of my movies with a codec error. Here's my code.
(streaming script)
Code: Select all
#!/bin/bash
VLC_PATH="/usr/bin/vlc-wrapper"
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mp2v"
VIDEO_BITRATE="6000"
VIDEO_FRAMERATE="25"
AUDIO_CODEC="mpga"
AUDIO_BITRATE="192"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="ps"
exec "${VLC_PATH}" "${INPUT}" -I dummy --sub-autodetect-fuzzy=1 --audio-language="ja" --sub-language="en" --sout="#transcode{vcodec=${VIDEO_CODEC},\
vb=${VIDEO_BITRATE},fps=${VIDEO_FRAMERATE},acodec=${AUDIO_CODEC},ab=${AUDIO_BITRATE},\
samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS},audio-sync,soverlay}:\
standard{access=file,mux=${FORMAT},dst=${OUTPUT}}" vlc://quit
Code: Select all
<profile name="vlcprof" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<hide-original-resource>yes</hide-original-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="/etc/mediatomb/mediatomb-video2mpeg" arguments="%in %out"/>
<buffer size="10485760" chunk-size="262144" fill-size="524288"/>
</profile>