Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Jan Gruuthuse on October 11, 2014, 12:38:44 PM

Title: indexing indefinite loop issue with commit edb430a FIXED
Post by: Jan Gruuthuse on October 11, 2014, 12:38:44 PM
fixed in a88fa0f
After building today's commit "7ef373b [Editor] Speed search previous keyframe patch"
Issue starts with commit edb430a as pointed out by mean. 8)
opening mpeg-ts files on both Ubuntu 64-bit versions 12.04.5 and 14.04.1, seems that indexing gets in indefinite loop, when no .idx2 exists.
Download this demo file 69 MB (https://www.dropbox.com/s/a8scxh0m134zxh0/720p4audioTracks3sat.ts?dl=0). If you downloaded 720p4audioTracks3sat before: make sure its .idx2 file is deleted!

The video is opened, .idx2 is created and this: 0000 : d.(�.1�P.�.�...�  64 00 28 ac 13 31 c0 50 05 bb 01 f5 01 01 01 f0
0010 : ........I@  00 00 03 00 10 00 00 06 49 40 [extractSPSInfo_lavcodec]  Parser created
  [extractSPSInfo_lavcodec]  Codec created
  [extractSPSInfo_lavcodec]  Context created
Used bytes 0/26 (+5)
[extractSPSInfo_lavcodec]  Failed to extract SPS info
  [extractSPSInfo]  Failed
.
output keeps scrolling in the terminal output. Had to break out of it with [Ctrl][C]

The .idx2 contains only this:
PSD1
[System]
Version=5
Type=T
File=/media/jan/0ToProcess/720p4audioTracks3sat.ts
Append=0

With an existing .idx2 now problem seems to arise

14.04.1:
Simple loading:
file: /media/jan/0ToProcess/720p4audioTracks3sat.ts, size: 68820220
found 1 files
Done
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...
[getNextPSI]  Section Syntax is set to private
[TsDemuxer] Pat : Prg:1 Pid: 0x1000
<<< PMT : 0/1>>>
[TsDemuxer] Looking for PMT : 0x1000
[getNextPSI]  Section Syntax is set to private
[TsDemuxer] PCR 0xe100, len=29
[PMT]--Decoding Program info--
[PMT]            Left : 25 bytes
[PMT]--Decoding ES Descriptor--
[PMT]          Type=0x1b pid=100 size=0
[PMT]  Adding pid 0x100 (256) , type H264 Video, language=unknown
[PMT]          Type=0x81 pid=101 size=0
[PMT]  Adding pid 0x101 (257) , type AC3 (Not sure), language=unknown
[PMT]          Type=0x3 pid=102 size=0
[PMT]  Adding pid 0x102 (258) , type Mpeg Audio, language=unknown
[PMT]          Type=0x3 pid=103 size=0
[PMT]  Adding pid 0x103 (259) , type Mpeg Audio, language=unknown
[PMT]          Type=0x3 pid=104 size=0
[PMT]  Adding pid 0x104 (260) , type Mpeg Audio, language=unknown
[PMT] Left :0 bytes
[TS Demuxer] Found 5 interesting tracks
[T Demuxer] Kept 5 tracks
[TS Demuxer] Probed...

Simple loading:
file: /media/jan/0ToProcess/720p4audioTracks3sat.ts, size: 68820220
found 1 files
Done
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...

Syncing on 6000
Sync found at offset 14
MP3: Skipped 14 bytes
MP3: Skipped 14 bytes
MP3: Skipped 14 bytes
[TsIndexer] Audio probed, 4 found, doing video
Starting H264 indexer

Simple loading:
file: /media/jan/0ToProcess/720p4audioTracks3sat.ts, size: 68820220
found 1 files
Done
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...

0000 : d.(�.1�P.�.�...�  64 00 28 ac 13 31 c0 50 05 bb 01 f5 01 01 01 f0
0010 : ........I@  00 00 03 00 10 00 00 06 49 40 [extractSPSInfo_lavcodec]  Parser created
  [extractSPSInfo_lavcodec]  Codec created
  [extractSPSInfo_lavcodec]  Context created
Used bytes 0/26 (+5)
[extractSPSInfo_lavcodec]  Failed to extract SPS info
  [extractSPSInfo]  Failed
.
0000 : d.(�.1�P.�.�...�  64 00 28 ac 13 31 c0 50 05 bb 01 f5 01 01 01 f0
0010 : ........I@  00 00 03 00 10 00 00 06 49 40 [extractSPSInfo_lavcodec]  Parser created
  [extractSPSInfo_lavcodec]  Codec created
  [extractSPSInfo_lavcodec]  Context created
Used bytes 0/26 (+5)
[extractSPSInfo_lavcodec]  Failed to extract SPS info
  [extractSPSInfo]  Failed
.


12.04.5:Simple loading:
file: /media/0ToProcess/720p4audioTracks3sat.ts, size: 68820220
found 1 files
Done
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...

Syncing on 6000
Sync found at offset 14
MP3: Skipped 14 bytes
MP3: Skipped 14 bytes
MP3: Skipped 14 bytes
[TsIndexer] Audio probed, 4 found, doing video
Starting H264 indexer

Simple loading:
file: /media/0ToProcess/720p4audioTracks3sat.ts, size: 68820220
found 1 files
Done
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...

0000 : d.(�.1�P.�.�...�  64 00 28 ac 13 31 c0 50 05 bb 01 f5 01 01 01 f0
0010 : ........I@  00 00 03 00 10 00 00 06 49 40 [extractSPSInfo_lavcodec]  Parser created
  [extractSPSInfo_lavcodec]  Codec created
  [extractSPSInfo_lavcodec]  Context created
Used bytes 0/26 (+5)
[extractSPSInfo_lavcodec]  Failed to extract SPS info
  [extractSPSInfo]  Failed
.
0000 : d.(�.1�P.�.�...�  64 00 28 ac 13 31 c0 50 05 bb 01 f5 01 01 01 f0
0010 : ........I@  00 00 03 00 10 00 00 06 49 40 [extractSPSInfo_lavcodec]  Parser created
  [extractSPSInfo_lavcodec]  Codec created
  [extractSPSInfo_lavcodec]  Context created
Used bytes 0/26 (+5)
[extractSPSInfo_lavcodec]  Failed to extract SPS info
  [extractSPSInfo]  Failed

Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: mean on October 11, 2014, 02:00:38 PM
I'm not sure it's related
I've gone back in time and the problem was already there
Could you confirm it's unrelated ?
Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: mean on October 11, 2014, 02:04:57 PM
Yes, it's related
On core
Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: Jan Gruuthuse on October 11, 2014, 02:15:06 PM
- Sorry still trying to figure out going back in submits and trying to build these.
going back to earlier commit:
in git you see these:
Quotemean00 pushed to master at mean00/avidemux2
48ffb9a    [flv/demux] no need for fwd declaration, we include the header
1st:
git checkout 48ffb9a
then:
git reset --hard 48ffb9a
this brings your local git back to the point where 48ffb9a was commited.
Now you can rebuild avidemux up to this commit.

going back to master:
git checkout master
git pull


- are you saying the problem is related before yesterdays commit?  edb430a
Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: Jan Gruuthuse on October 11, 2014, 02:30:04 PM
The previously build 240914_f699f798637 works fine.
For now I can't confirm if reverting/building  commit 48ffb9a is also working.
Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: Jan Gruuthuse on October 11, 2014, 02:33:00 PM
I'm now rebuilding commit 48ffb9a and checking if that build is working.
Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: Jan Gruuthuse on October 11, 2014, 02:41:56 PM
Ok that one build fine is working ok, going now to test edb430a.
Title: Re: indexing indefinite loop issue with todays commit 7ef373b
Post by: Jan Gruuthuse on October 11, 2014, 02:55:08 PM
edb430a is causing the issue as you indicated. Sorry for not noticing this earlier.
Title: Re: indexing indefinite loop issue with commit edb430a
Post by: mean on October 11, 2014, 05:50:13 PM
It a failure that was not managed earlier
I'll try to fix this tomorrow
Title: Re: indexing indefinite loop issue with commit edb430a
Post by: Jan Gruuthuse on October 11, 2014, 06:02:33 PM
Thanks, looking forward and will provide feedback.
Title: a88fa0f build fine
Post by: Jan Gruuthuse on October 12, 2014, 08:18:15 AM
a88fa0f is opening and indexing mpeg-ts videos again on ubuntu 64-bit 14.04.1 lts and 12.04.5.
Title: Re: indexing indefinite loop issue with commit edb430a FIXED
Post by: mean on October 12, 2014, 11:54:45 AM
It's not really fixed, we just ignore the error at the moment
Title: Re: indexing indefinite loop issue with commit edb430a FIXED
Post by: Jan Gruuthuse on October 12, 2014, 12:45:53 PM
OK, solution at later stage. ;)
And already more in the pipeline ....  8)