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