Subtitle delay issue when transcoding to PS3, ideas?

About encoding, codec settings, muxers and filter usage
zabby
New Cone
New Cone
Posts: 3
Joined: 17 Feb 2010 21:25

Subtitle delay issue when transcoding to PS3, ideas?

Postby zabby » 17 Feb 2010 23:39

Hi,

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
as called from config.xml of Mediatomb

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>

zabby
New Cone
New Cone
Posts: 3
Joined: 17 Feb 2010 21:25

Re: Subtitle delay issue when transcoding to PS3, ideas?

Postby zabby » 12 May 2010 12:42

bump

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Subtitle delay issue when transcoding to PS3, ideas?

Postby Jean-Baptiste Kempf » 12 May 2010 15:53

Probably the issue is because the fps is changing the subtitles timings....
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

bt4262
New Cone
New Cone
Posts: 1
Joined: 17 May 2010 04:44

Re: Subtitle delay issue when transcoding to PS3, ideas?

Postby bt4262 » 17 May 2010 04:58

I'm also having this issue, as is someone else who posted here: viewtopic.php?f=4&t=75489

The video I'm trying to transcode has an FPS of 29.970 according to mkvinfo. I was using 25 FPS for transcoding, but using 30fps gives little improvement.

The first subtitle should appear around 00:10. When transcoding to 25 FPS, it appears around 1:40. Transcoding to 50 FPS puts it around 1:00. So, the timing looks like it might be off by a factor of 10. If the encoder would accept 300 FPS as an option, the subtitles might display correctly. Of course, changing the FPS really shouldn't affect how the subtitles display.

I'm not sure if this is related, but after the transcoding process runs for a while, it starts repeating this message:

Code: Select all

[0x2a82628] main subpicture error: subpicture heap full [0x2a82628] main subpicture error: subpicture heap full [0x2a82628] main subpicture error: subpicture heap full [0x2a82628] main subpicture error: subpicture heap full [0x2a82628] main subpicture error: subpicture heap full [0x2a82628] main subpicture error: subpicture heap full
The command I'm using:

Code: Select all

vlc -I dummy path/to/video.mkv --audio-language=ja,jn,jpn,Japanese,en,eng,English --sub-language=en,eng,English --sout='#transcode{vcodec=mp2v,vb=4096,fps=25,acodec=mp2a,ab=192,channels=2,deinterlace,audio-sync,soverlay}:standard{access=file,mux=ps,dst=test.mpg}' vlc://quit
Using VLC 1.0.6 on Ubuntu 10.04. Let me know if any other information would be of assistance.

andrefre
New Cone
New Cone
Posts: 4
Joined: 06 Jul 2010 15:55

Re: Subtitle delay issue when transcoding to PS3, ideas?

Postby andrefre » 06 Jul 2010 15:58

I'm having this issue with SOVERLAY too, when trying to transcode DVDs. The subtitle delay is all over the place, seemingly changing throughout the course of the transcoding. Thanks in advance for your help.

vhs1998
New Cone
New Cone
Posts: 3
Joined: 12 Jul 2010 13:04

Re: Subtitle delay issue when transcoding to PS3, ideas?

Postby vhs1998 » 12 Jul 2010 13:10

I am having the same issue as well. I think it does not relate to FPS changing during transcoding. The problem is that transcoding happens faster than real time movie playback and this breaks subtitles synchronization badly.

Any help from developers please?

I submitted a ticket for this issue:

http://trac.videolan.org/vlc/ticket/3891


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests