Create idx2 version 5 index file with avidemux3_cli

Started by Bromor, January 27, 2014, 05:30:29 PM

Previous topic - Next topic

Bromor

Hello!

In my current workflow with avidemux 2.6.4, I generate the index files of TS-files (satellite TV) on my media center (Ubuntu) with avidemux3_cli and subsequently do some cutting with avidemux.exe from Windows. However, this workflow is not possible using Avidemux 2.6.7 from http://avidemux.sourceforge.net/download.html (source for Linux and installer for Windows)

The problem is, that avidemux3_cli on Linux generates idx2 files of version 4 while avidemux.exe on Windows requires version 5 of idx2 files. When I try to load the TS-file from Windows with the index file generated from avidemux3_cli, the GUI throws an error message claiming index file of previous version. When I use avidemux.exe or avidemux_cli.exe for index generation, the TS-file can be loaded as expected. The problem of loading outdated index file is already stated in this thread:
Quote from: bernd_b on November 04, 2013, 06:49:50 PM
...

I have also tried to use latest source code from http://www.avidemux.org/nightly/snapshot/ (r9010) for the Linux part with same result.


So my actual question is: Is it possible to create a idx2 index file of version 5 for a TS-file with avidemux3_cli on Linux OS? Maybey I messed something up during installation and still executing version 2.6.4 of avidemux3_cli...


Index file from avidemux3_cli:
PSD1
[System]
Version=4
Type=T
File=/mnt/data/share.samba/cutting/sample.ts
Append=0
[Video]
Width=1280
Height=720
Fps=100000
Interlaced=0
AR=0
Pid=256
VideoCodec=H264
[Audio]
Tracks=4
Track0.pid=101
Track0.codec=80
Track0.fq=48000
Track0.chan=2
Track0.br=32000
Track0.muxing=0
Track1.pid=102
Track1.codec=80
Track1.fq=48000
Track1.chan=2
Track1.br=24000
Track1.muxing=0
Track2.pid=103
Track2.codec=80
Track2.fq=48000
Track2.chan=2
Track2.br=24000
Track2.muxing=0
Track3.pid=104
Track3.codec=8192
Track3.fq=48000
Track3.chan=2
Track3.br=56000
Track3.muxing=0
[Data]
Audio bf:00023a9c Pes:101:000346a8:0:3037 Pes:102:00034a54:0:3037 Pes:103:00034240:0:1957 Pes:104:00034d44:0:2846
Video at:00000234:0019 Pts:00007560:00000360  DF:02093e:0:0 PF:00f4b4:7200:1800 BF:0077e8:3600:3600 BF:004348:1800:5400 BF:004854:5400:7200 PF:00e65e:14400:9000 BF:0073c3:10800:10800 BF:004740:9000:12600 BF:00438a:12600:14400 PF:00f77d:21600:16200 BF:0071bd:18000:18000 BF:0042de:16200:19800 BF:0043f8:19800:21600 PF:00f31d:28800:23400 BF:00721b:25200:25200 BF:0042d5:23400:27000 BF:004389:27000:28800 PF:00cd07:36000:30600 BF:006dae:32400:32400 BF:003e68:30600:34200 BF:003ee2:34200:36000 PF:00d72c:43200:37800 BF:0077f8:39600:39600 BF:0039e3:37800:41400 BF:00382d:41400:43200 PF:011fdf:50400:45000 BF:007d7c:46800:46800 BF:004bc7:45000:48600 BF:0048a1:48600:50400 PF:00f6d7:57600:52200 BF:0075c0:54000:54000 BF:00447d:52200:55800 BF:004692:55800:57600
Audio bf:0016c400 Pes:101:0017e3e0:0:61357 Pes:102:0017e78c:0:61357 Pes:103:0017ea7c:0:62437 Pes:104:0016bca8:0:60446
Video at:00147da4:0019 Pts:00066960:00059760  DF:020c04:0:0 PF:010987:7200:1800 BF:0079d5:3600:3600 BF:004377:1800:5400 BF:004235:5400:7200 PF:010b2c:14400:9000 BF:00794b:10800:10800 BF:004283:9000:12600 BF:0045c2:12600:14400 PF:010444:21600:16200 BF:007240:18000:18000 BF:0037e0:16200:19800 BF:00364b:19800:21600 PF:00eb29:28800:23400 BF:0060ec:25200:25200 BF:003365:23400:27000 BF:002d15:27000:28800 PF:00d0b7:36000:30600 BF:00760c:32400:32400 BF:003ef4:30600:34200 BF:004270:34200:36000 PF:00fae9:43200:37800 BF:007a52:39600:39600 BF:00414c:37800:41400 BF:0041cf:41400:43200 PF:01043b:50400:45000 BF:007943:46800:46800 BF:004917:45000:48600 BF:004739:48600:50400 PF:0101bf:57600:52200 BF:00757d:54000:54000 BF:00449d:52200:55800 BF:004476:55800:57600
Audio bf:002b6e70 Pes:101:002c9954:0:121837 Pes:102:002c9d00:0:121837 Pes:103:002c9ff0:0:120757 Pes:104:002ca2e0:0:120926
Video at:00292524:0019 Pts:00126360:00119160  DF:021634:0:0 PF:011457:7200:1800 BF:007fba:3600:3600 BF:004af3:1800:5400 BF:005029:5400:7200 PF:010581:14400:9000 BF:007093:10800:10800 BF:003c60:9000:12600 BF:003b5d:12600:14400 PF:00f0dc:21600:16200 BF:00644b:18000:18000 BF:003487:16200:19800 BF:003972:19800:21600 PF:00f0e9:28800:23400 BF:006e41:25200:25200 BF:003cf0:23400:27000 BF:00392d:27000:28800 PF:00dc60:36000:30600 BF:00682c:32400:32400 BF:003d12:30600:34200 BF:003e4c:34200:36000 PF:00e7af:43200:37800 BF:0075ca:39600:39600 BF:003deb:37800:41400 BF:003d33:41400:43200 PF:00eb93:50400:45000 BF:006fad:46800:46800 BF:003cbf:45000:48600 BF:003db0:48600:50400 PF:00e203:57600:52200 BF:008023:54000:54000 BF:003d3a:52200:55800 BF:004155:55800:57600
Audio bf:003fac30 Pes:101:0040bbe8:0:180157 Pes:102:0040bf94:0:180157 Pes:103:0040c284:0:181237 Pes:104:003fa4d8:0:178526
Video at:003d52bc:0019 Pts:00185760:00178560  DF:021d7c:0:0 PF:00fb7c:7200:1800 BF:007afc:3600:3600 BF:00408e:1800:5400 BF:0046de:5400:7200 PF:00eaf9:14400:9000 BF:006edc:10800:10800 BF:00444b:9000:12600 BF:004623:12600:14400 PF:00e542:21600:16200 BF:007c56:18000:18000 BF:004077:16200:19800 BF:004893:19800:21600 PF:00d708:28800:23400 BF:006f35:25200:25200 BF:0044ef:23400:27000 BF:004439:27000:28800 PF:00d455:36000:30600 BF:007168:32400:32400 BF:0040e3:30600:34200 BF:004629:34200:36000 PF:00d27c:43200:37800 BF:006ad5:39600:39600 BF:00462a:37800:41400 BF:004507:41400:43200 PF:00e312:50400:45000 BF:007449:46800:46800 BF:003ce7:45000:48600 BF:003e28:48600:50400 PF:00de40:57600:52200 BF:006cd4:54000:54000 BF:003fce:52200:55800
[End]


Index file from avidemux.exe (identical to avidemux_cli.exe)
PSD1
[System]
Version=5
Type=T
File=Z:/sample.ts
Append=0
[Video]
Width=1280
Height=720
Fps=100000
Interlaced=0
AR=0
Pid=256
VideoCodec=H264
[Audio]
Tracks=4
Track0.pid=101
Track0.codec=80
Track0.fq=48000
Track0.chan=2
Track0.br=32000
Track0.muxing=0
Track0.language=unknown
Track1.pid=102
Track1.codec=80
Track1.fq=48000
Track1.chan=2
Track1.br=24000
Track1.muxing=0
Track1.language=unknown
Track2.pid=103
Track2.codec=80
Track2.fq=48000
Track2.chan=2
Track2.br=24000
Track2.muxing=0
Track2.language=unknown
Track3.pid=104
Track3.codec=8192
Track3.fq=48000
Track3.chan=2
Track3.br=56000
Track3.muxing=0
Track3.language=unknown
[Data]
Audio bf:00023a9c Pes:101:000346a8:0:3037 Pes:102:00034a54:0:3037 Pes:103:00034240:0:1957 Pes:104:00034d44:0:2846
Video at:00000234:0019 Pts:00007560:00000360  DF:02093e:0:0 PF:00f4b4:7200:1800 BF:0077e8:3600:3600 BF:004348:1800:5400 BF:004854:5400:7200 PF:00e65e:14400:9000 BF:0073c3:10800:10800 BF:004740:9000:12600 BF:00438a:12600:14400 PF:00f77d:21600:16200 BF:0071bd:18000:18000 BF:0042de:16200:19800 BF:0043f8:19800:21600 PF:00f31d:28800:23400 BF:00721b:25200:25200 BF:0042d5:23400:27000 BF:004389:27000:28800 PF:00cd07:36000:30600 BF:006dae:32400:32400 BF:003e68:30600:34200 BF:003ee2:34200:36000 PF:00d72c:43200:37800 BF:0077f8:39600:39600 BF:0039e3:37800:41400 BF:00382d:41400:43200 PF:011fdf:50400:45000 BF:007d7c:46800:46800 BF:004bc7:45000:48600 BF:0048a1:48600:50400 PF:00f6d7:57600:52200 BF:0075c0:54000:54000 BF:00447d:52200:55800 BF:004692:55800:57600
Audio bf:0016c400 Pes:101:0017e3e0:0:61357 Pes:102:0017e78c:0:61357 Pes:103:0017ea7c:0:62437 Pes:104:0016bca8:0:60446
Video at:00147da4:0019 Pts:00066960:00059760  DF:020c04:0:0 PF:010987:7200:1800 BF:0079d5:3600:3600 BF:004377:1800:5400 BF:004235:5400:7200 PF:010b2c:14400:9000 BF:00794b:10800:10800 BF:004283:9000:12600 BF:0045c2:12600:14400 PF:010444:21600:16200 BF:007240:18000:18000 BF:0037e0:16200:19800 BF:00364b:19800:21600 PF:00eb29:28800:23400 BF:0060ec:25200:25200 BF:003365:23400:27000 BF:002d15:27000:28800 PF:00d0b7:36000:30600 BF:00760c:32400:32400 BF:003ef4:30600:34200 BF:004270:34200:36000 PF:00fae9:43200:37800 BF:007a52:39600:39600 BF:00414c:37800:41400 BF:0041cf:41400:43200 PF:01043b:50400:45000 BF:007943:46800:46800 BF:004917:45000:48600 BF:004739:48600:50400 PF:0101bf:57600:52200 BF:00757d:54000:54000 BF:00449d:52200:55800 BF:004476:55800:57600
Audio bf:002b6e70 Pes:101:002c9954:0:121837 Pes:102:002c9d00:0:121837 Pes:103:002c9ff0:0:120757 Pes:104:002ca2e0:0:120926
Video at:00292524:0019 Pts:00126360:00119160  DF:021634:0:0 PF:011457:7200:1800 BF:007fba:3600:3600 BF:004af3:1800:5400 BF:005029:5400:7200 PF:010581:14400:9000 BF:007093:10800:10800 BF:003c60:9000:12600 BF:003b5d:12600:14400 PF:00f0dc:21600:16200 BF:00644b:18000:18000 BF:003487:16200:19800 BF:003972:19800:21600 PF:00f0e9:28800:23400 BF:006e41:25200:25200 BF:003cf0:23400:27000 BF:00392d:27000:28800 PF:00dc60:36000:30600 BF:00682c:32400:32400 BF:003d12:30600:34200 BF:003e4c:34200:36000 PF:00e7af:43200:37800 BF:0075ca:39600:39600 BF:003deb:37800:41400 BF:003d33:41400:43200 PF:00eb93:50400:45000 BF:006fad:46800:46800 BF:003cbf:45000:48600 BF:003db0:48600:50400 PF:00e203:57600:52200 BF:008023:54000:54000 BF:003d3a:52200:55800 BF:004155:55800:57600
Audio bf:003fac30 Pes:101:0040bbe8:0:180157 Pes:102:0040bf94:0:180157 Pes:103:0040c284:0:181237 Pes:104:003fa4d8:0:178526
Video at:003d52bc:0019 Pts:00185760:00178560  DF:021d7c:0:0 PF:00fb7c:7200:1800 BF:007afc:3600:3600 BF:00408e:1800:5400 BF:0046de:5400:7200 PF:00eaf9:14400:9000 BF:006edc:10800:10800 BF:00444b:9000:12600 BF:004623:12600:14400 PF:00e542:21600:16200 BF:007c56:18000:18000 BF:004077:16200:19800 BF:004893:19800:21600 PF:00d708:28800:23400 BF:006f35:25200:25200 BF:0044ef:23400:27000 BF:004439:27000:28800 PF:00d455:36000:30600 BF:007168:32400:32400 BF:0040e3:30600:34200 BF:004629:34200:36000 PF:00d27c:43200:37800 BF:006ad5:39600:39600 BF:00462a:37800:41400 BF:004507:41400:43200 PF:00e312:50400:45000 BF:007449:46800:46800 BF:003ce7:45000:48600 BF:003e28:48600:50400 PF:00de40:57600:52200 BF:006cd4:54000:54000 BF:003fce:52200:55800
[End]

If necessary, i can provide sample.ts.

mean

Are you sure you use r9010 on linux ?
Looks like you are still using avidemux_cli or one of the libs from an older version

The _cli and _qt4/exe versions shareg 90% of the  code

Bromor

I solved my problem.
After some playing around with compilation and installation on my Linux box, I figured out that the problem was that I previously used the --without-plugins argument for compilation and thus components of foregoing version were invoked during runtime. Thanks to mean for the hint!

So the solution is to compile the cli environment with:
bash bootStrap.bash --with-core --with-cli --with-plugins --without-gtk --without-qt4