[vlc] own subtitle demux and transport stream

Alex Frignani bongo84 at gmail.com
Thu Sep 4 00:54:26 CEST 2008


Hi,

Excuse me for english but i am italian. I have modify file
/modules/demux/subtitle.c for parsing normal text. I do this because i want
to insert a source program into transport stream.
I have tested file modified with .avi and .ogg and work in correct way. When
i try to load subtitle with .ts it doesn't work. I try with normal subtitle
file like .srt or .sub and and doesn't work. VLC doesn't play also audio and
video.

where is the problem? i think that file /modules/mux/mpeg/ts.c doesn't mux
correctly audio/video and subtitle.

There is any way to solve this problem?

I post debug of vlc:

main info: Running vlc with the default interface. Use 'cvlc' to use vlc
without interface.
main debug: adding item `Prova.ts' ( /home/bonj/Scrivania/Prova.ts )
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting new item
main debug: processing request item Prova.ts node null skip 0
main debug: resyncing on Prova.ts
main debug: Prova.ts is at 0
main debug: creating new input thread
main debug: Creating an input for 'Prova.ts'
main debug: thread started
main debug: waiting for thread initialization
main debug: `/home/bonj/Scrivania/Prova.ts' gives access `' demux `' path
`/home/bonj/Scrivania/Prova.ts'
main debug: creating demux: access='' demux=''
path='/home/bonj/Scrivania/Prova.ts'
main debug: looking for access_demux module: 2 candidates
main debug: TIMER module_Need() : 0.942 ms - Total 0.942 ms / 1 intvls (Avg
0.942 ms)
main debug: creating access '' path='/home/bonj/Scrivania/Prova.ts'
main debug: looking for access module: 6 candidates
vcd debug: trying .cue file: /home/bonj/Scrivania/Prova.cue
vcd debug: could not find .cue file
access_mmap debug: opening file /home/bonj/Scrivania/Prova.ts
main debug: using access module "access_mmap"
main debug: TIMER module_Need() : 0.314 ms - Total 0.314 ms / 1 intvls (Avg
0.314 ms)
main debug: Using AStream*Block
main debug: pre buffering
main debug: received first data for our buffer
main debug: prebuffering done 1048576 bytes in 0s - 85333333 kbytes/s
main debug: creating demux: access='' demux=''
path='/home/bonj/Scrivania/Prova.ts'
main debug: looking for demux module: 47 candidates
main debug: using demux module "ts"
main debug: TIMER module_Need() : 3.177 ms - Total 3.177 ms / 1 intvls (Avg
3.177 ms)
main debug: forced subtitle: /home/bonj/Scrivania/Text.txt
main debug: `/home/bonj/Scrivania/Text.txt' gives access `' demux `' path
`/home/bonj/Scrivania/Text.txt'
main debug: creating access '' path='/home/bonj/Scrivania/Text.txt'
main debug: looking for access module: 6 candidates
vcd debug: trying .cue file: /home/bonj/Scrivania/Text.cue
vcd debug: could not find .cue file
access_mmap debug: opening file /home/bonj/Scrivania/Text.txt
main debug: using access module "access_mmap"
main debug: TIMER module_Need() : 0.168 ms - Total 0.168 ms / 1 intvls (Avg
0.168 ms)
main debug: Using AStream*Block
main debug: pre buffering
main debug: received first data for our buffer
access_mmap debug: at end of memory mapped file
main debug: creating demux: access='' demux='subtitle'
path='/home/bonj/Scrivania/Text.txt'
main debug: looking for demux module: 3 candidates
access_mmap debug: at end of memory mapped file
vobsub debug: this doesn't seem to be a vobsub file
main error: option sub-original-fps does not exist
subtitle debug: Movie fps: -1.000000
subtitle debug: autodetecting subtitle format
access_mmap debug: at end of memory mapped file
subtitle debug: detected AppSource format
subtitle debug: loading all subtitles...
access_mmap debug: at end of memory mapped file
access_mmap debug: at end of memory mapped file
access_mmap debug: at end of memory mapped file
access_mmap debug: at end of memory mapped file
access_mmap debug: at end of memory mapped file
access_mmap debug: at end of memory mapped file
access_mmap debug: at end of memory mapped file
subtitle debug: loaded 6 subtitles
main debug: selecting program id=0
main debug: using demux module "subtitle"
main debug: TIMER module_Need() : 0.776 ms - Total 0.776 ms / 1 intvls (Avg
0.776 ms)
main debug: looking for a subtitle file in /home/bonj/Scrivania/
ts debug: DEMUX_SET_GROUP 0 (nil)
main debug: `/home/bonj/Scrivania/Prova.ts' successfully opened
ts debug: PATCallBack called
ts debug: new PAT ts_id=11116 version=4 current_next=1
ts debug: * number=1 pid=66
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=5 pid_pcr=69
ts debug: * descriptor : IOD (0x1d)
ts warning: found SL_descriptor es_id=68
ts debug: found language: ita
ts debug: * es pid=68 type=15 fcc=mp4a
ts debug: * es pid=69 type=27 fcc=h264
main debug: control type=17
main debug: looking for decoder module: 27 candidates
main debug: using decoder module "spudec"
main debug: TIMER module_Need() : 8.487 ms - Total 8.487 ms / 1 intvls (Avg
8.487 ms)
main debug: thread started
main debug: thread 2962332560 (decoder) created at priority 0
(input/decoder.c:217)
main debug: control type=1
main debug: slave 0 EOF
main debug: thread 2953939856 (input) created at priority 10
(input/input.c:367)
qt4 debug: Updating the stream status: 3
access_mmap debug: at end of memory mapped file
ts debug: eof ?
main debug: EOF reached
main debug: finished input
main debug: dying input
qt4 debug: Updating the stream status: 8
main debug: dying input
ts debug: pid list:
ts debug: - pid[0] seen
ts debug: - pid[66] seen
ts debug: - pid[68] seen
main debug: Program doesn't contain anymore ES
ts debug: - pid[69] seen
ts debug: - pid[8191] seen
main debug: removing module "ts"
main debug: dying input
main debug: removing module "access_mmap"
main debug: removing module "subtitle"
main debug: removing module "access_mmap"
main debug: removing module "spudec"
main debug: thread ended
main debug: thread 2962332560 joined (input/decoder.c:248)
main debug: killing decoder fourcc `spu ', 0 PES in FIFO
main debug: thread ended
main debug: dead input
main debug: thread 2953939856 joined (playlist/engine.c:244)
main debug: TIMER input launching for 'Prova.ts' : 7.974 ms - Total 7.974 ms
/ 1 intvls (Avg 7.974 ms)
main debug: starting new item
main debug: changing item without a request (current 0/1)
main debug: nothing to play

Thank's very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20080904/054bd9d3/attachment.html>


More information about the vlc mailing list