philhansen / dvbsubrip

A python script for extracting DVB image based subtitles from TS recordings.
GNU General Public License v3.0
6 stars 2 forks source link

Hey ! I am trying to extraxt dvb subtitle from ts file getting error #1

Open gauravv5 opened 1 year ago

gauravv5 commented 1 year ago

[root@localhost dvbsubrip]# python dvbsubrip /root/HITS\ and\ HMOV\ RecordedTs\ (SCTE)\ (1).ts sub.srt ============================> Starting ProjectX Version: ProjectX 0.91.0.00/31.03.2011 Reading GUI-Switch... Reading Help Switch... Reading Config File Switch... Start without GUI... Loading Config File: '/tmp/tmp5M4Drr/X.ini' ... Loading Language -> 'en'

ProjectX 0.91.0.00/31.03.2011 TEST PROJECT ONLY , User: root

TERMS AND CONDITIONS: (1) this is a free Java based demux utility. (2) It is intended for educational purposes only, as a non-commercial test project. (3) released under the terms of the GNU GPL. (4) there is NO WARRANTY of any kind attached to this software. (5) use it at your own risk and for your own education.

Java Environment 6 June 2023 2:42:06 pm IST java.version 20.0.1 java.vendor Oracle Corporation java.home /usr/lib/jvm/jdk-20-oracle-x64 java.vm.version 20.0.1+9-29 java.vm.vendor Oracle Corporation java.vm.name Java HotSpot(TM) 64-Bit Server VM java.class.vers 64.0 java.class.path /root/Project-X_0.91.0/ProjectX.jar os.name Linux os.arch amd64 os.version 3.10.0-693.el7.x86_64 ini.file /tmp/tmp5M4Drr/X.ini ext.disk.access disabled or library not found user.language en user.name root user.home /root

quick CL usage: Note: CL doesn't load the GUI components, except with switch [-gui]

...starts the GUI switches and inputfiles can be in any order options: [-ini ] ..use that specified iniFile instead of the standard [-dvx1] ..create a .d2v ProjectFile on demux [-dvx2] ..create a .d2v ProjectFile + .ac3.wav (RIFF WAVE Header) [-dvx3] ..create a .d2v ProjectFile + .mpa.wav (RIFF WAVE Header) [-dvx4] ..create a .d2v ProjectFile + .ac3.wav + mpa.wav (RIFF WAVE Header) [-out ] ..use that specified directory for output [-name ] ..use that specified filename for output [-cut ] ..use that text based file as cutpoint list [-chp ] ..use that text based file as chapterpoint list [-id ] ..use only these (P)IDs, separated by comma "," [-gui] ..display the GUI using all given CLI options [-log] ..write the normal logfile [-saveini] ..save changes made bei CLI in active .ini [-split ] ..split output at xxx MB [-demux, -tom2p, -topva, -tovdr, -tots, -filter] ..action types Loading Basic Classes... Multicolor OFF / switches 00000000 Reading CLI Switches... Preparing GUI (if enabled)... Check Commons-Net library access... Loading AC3 frames... Starting Collection Process... preparing collection(s)... 1 %<<< session infos >>> Tuesday, 6 June, 2023 2:42:06 pm India Standard Time ProjectX 0.91.0.00 (31.03.2011) -> working with collection 0 -> save normal log file -> log 'packets out of sequence' / bit errors -> log 'missing startcodes' -> log 'PES header found in ES' -> log WSS -> log VPS -> log RDS -> log max. 500 warnings/errors -> write all video data -> write all other data -> patch c.d.flagged infos of pictures -> add sequence end code -> set resolution in SDE -> PES stream type disabled: Mpg Video -> PES stream type disabled: Mpg Audio -> PES stream type disabled: AC3/DTS Audio -> PES stream type disabled: LPCM Audio -> PES stream type disabled: Teletext -> PES stream type disabled: Generic_VBI -> PVA: strictly specs. for audio streams -> VOB: determine diff. Cell timelines -> TS: ignore scrambled packets -> TS: enhanced search for open packets -> TS: join file segments (of Dreambox®) -> TS: generate PMT stream dependent -> get only enclosed PES/TS packets -> concatenate different recordings -> ensure 1st PES-packet start with video -> generate PCR/SCR from PTS -> write output files to: '/tmp/tmp5M4Drr' -> main I/O-Buffersize in bytes 4096000 bytes FileSegments: * (0) /root/HITS and HMOV RecordedTs (SCTE) (1).ts second. Files: * --- +> Input File 0: '/root/HITS and HMOV RecordedTs (SCTE) (1).ts' (610,204,760 bytes) -> Filetype is TS (generic PES Container) -> demux -> Service ID 0x0033 -> PMT 0x0064 refers to these usable streams: Video: PID: 0x0065(H.264) Audio: PID: 0x0066(Mpg2) Teletext: n/a Subpict.: PID: 0x0069(chi_0x10_p1_a1 ) PID: 0x006B(ind_0x10_p1_a1 ) PID: 0x006C(msa_0x10_p1_a1 ) PID: 0x006D(bur_0x10_p1_a1 ) PID: 0x006F(kor_0x10_p1_a1 ) PID: 0x0070(vie_0x10_p1_a1 ) PID: 0x0071(tha_0x10_p1_a1 ) PID: 0x0073(zho_0x10_p1_a1 ) demuxing DVB MPEG-TS file HITS and HMOV RecordedTs (SCTE) (1).ts --> PID 0x1FFF => stuffing packet -> ignored ok> PID 0x0065 has PES-ID 0xE0 (MPEG Video) (11468 #62) !> PID 0x0001 (CAT) (26132 #140) -> ignored !> PID 0x0010 (NIT) (45496 #243) -> ignored ok> PID 0x00C9 has PES-ID 0xE0 (MPEG Video)-> ignored (50196 #268) !> PID 0x0064 (PMT) (68244 #364) -> ignored !> PID 0x00C8 (PMT) (73132 #390) -> ignored !> PID 0x0011 (SDT) (92308 #492) -> ignored !> PID 0x0000 (PAT) (93624 #499) -> ignored ok> PID 0x0066 has PES-ID 0xC0 (MPEG Audio) (160176 #853) ok> PID 0x00CA has PES-ID 0xC0 (MPEG Audio) (187624 #999) !> PID 0x0098 (ECM) (285760 #1521) -> ignored !> PID 0x0097 (ECM) (551028 #2932) -> ignored ok> PID 0x006F has PES-ID 0xBD (private stream 1) (SubID 0x20) (1506256 #8013) ok> PID 0x006C has PES-ID 0xBD (private stream 1) (SubID 0x20) (2547776 #13553) !> PID 0x00C0 (EMM) (3218936 #17123) -> ignored ok> PID 0x0070 has PES-ID 0xBD (private stream 1) (SubID 0x20) (5875376 #31253) 3 %ok> PID 0x0069 has PES-ID 0xBD (private stream 1) (SubID 0x20) (14199264 #75529) ok> PID 0x0073 has PES-ID 0xBD (private stream 1) (SubID 0x20) (14251152 #75805) ok> PID 0x0071 has PES-ID 0xBD (private stream 1) (SubID 0x20) (14316388 #76152) ok> PID 0x006D has PES-ID 0xBD (private stream 1) (SubID 0x20) (14493296 #77093) ok> PID 0x006B has PES-ID 0xBD (private stream 1) (SubID 0x20) (16368596 #87068) 15 %!> PID 0x00CC (user def. 0xFC) (87660076 #466278) -> ignored 68 %!> PID 0x0068 (user def. 0xFC) (411739552 #2190105) -> ignored 101 %packs: 1423058 100% 610204760 ++> Mpg Video: PID 0x0065 / PesID 0x1E0 / SubID 0x00 : -> Video: fr-ct-1p-cg-og-dg -> 0-0-0-0-0-0 !> further videostream found (PID 0xC9 / ID 0x1E0) -> ignored --> using faked PTS for following data: -> temp. Filesize < 10 Bytes ++> stream omitted: PID 0x0066 / PesID 0xC0 / SubID 0x00 : --> using faked PTS for following data: -> temp. Filesize < 10 Bytes ++> stream omitted: PID 0x00CA / PesID 0xC0 / SubID 0x00 : ++> Subpicture: PID 0x006F / PesID 0xBD / SubID 0x20 : Multicolor ACTIVE / switches 00000000 Multicolor: shw1Line=-1 shw1Pic=-1 noRepairs=false NoCOLCON=false SolidBgrd=false Shading=false OldClrs=false -> selected DVB subpicture color model: UkFreeview(mc) ; fixed to page id: -> export format: sup -> temp. file: xyzt.sp (261508 bytes) check & synchronize xyzt.sp 1 %!> 1 PTSs discarded in stream -> Subpicture PTS: first packet 11:22:59.889, last packet 11:25:30.749 -> adjusting subpicture at its own timeline -> source is DVB Subtitle... 3 %>>> process stopped... !> an error has occured.. (please inform the authors at 'forum.dvbtechnics.info') java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 6 at net.sourceforge.dvb.projectx.subtitle.ColorAreas.collectAreas(Unknown Source) at net.sourceforge.dvb.projectx.subtitle.ColorAreas.analyse(Unknown Source) at net.sourceforge.dvb.projectx.subtitle.Subpicture.buildRLE(Unknown Source) at net.sourceforge.dvb.projectx.subtitle.Subpicture.writeRLE(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamProcessSubpicture.process_dvbsubpicture(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamProcessSubpicture.processStream(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamProcessSubpicture.(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamProcess.process(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamProcess.(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamParserBase.createStreamProcess(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamParserBase.processNonVideoElementaryStreams(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamParserBase.processNonVideoElementaryStreams(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamParserBase.processElementaryStreams(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamParserTS.parseStream(Unknown Source) at net.sourceforge.dvb.projectx.parser.StreamParser.parseStream(Unknown Source) at net.sourceforge.dvb.projectx.parser.MainProcess.processCollection(Unknown Source) at net.sourceforge.dvb.projectx.parser.MainProcess.startProcessing(Unknown Source) at net.sourceforge.dvb.projectx.parser.MainProcess.run(Unknown Source) -> we have 14 warnings/errors. ============================> No subtitles exported ============================> Deleting temporary directory [root@localhost dvbsubrip]#
philhansen commented 1 year ago

Hi gauravv5, from quickly reading through this output I'm not sure what the problem is. Unfortunately I no longer work on the project that I was using this script for and I probably won't be much help. The script pieces together those various apps to accomplish the end goal. Perhaps you can update the version on those or narrow down which one is having the issue. It could also be an issue with the source data. Have you verified if other recordings work?

gauravv5 commented 1 year ago

Hi gauravv5, from quickly reading through this output I'm not sure what the problem is. Unfortunately I no longer work on the project that I was using this script for and I probably won't be much help. The script pieces together those various apps to accomplish the end goal. Perhaps you can update the version on those or narrow down which one is having the issue. It could also be an issue with the source data. Have you verified if other recordings work?

hi mate, We have tested this script script on severals recordings. But facing this error in ony chineese subtitle. i Narrowed down to my findings and the issue is with projectx.

I have used latest release of Project X available but unable to solve the issue.

philhansen commented 1 year ago

Ok, I wonder if you can get some help for this issue from Project X. But taking a quick look at the SourceForge site it looks like Project X has not been worked on in a while.