-
Notifications
You must be signed in to change notification settings - Fork 1
/
batchgemist_notes.txt
12959 lines (11943 loc) · 775 KB
/
batchgemist_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[https://github.com/Reino17/BatchGemist/commit/81962742f028bf76946fb9ea8f3dc7c7819964bd]
[https://github.com/Reino17/BatchGemist/commit/c3ebc47b93bf8f4694a690188ed4d04dc02f8069]
[https://github.com/Reino17/BatchGemist/commit/b0d5b4722930cef75568492b4848f72bb8cd3bd0]
http://www.npo.nl/china-blaast-nieuw-leven-in-zijderoutes/20-08-2016/WO_NOS_4863988
videofragment in meerdere formaten:
[{"formaat": "h264", "kwaliteit": 3, "url": "http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4"}, {"formaat": "h264", "kwaliteit": 2, "url": "http://download.omroep.nl/nos/content/ipod/2016/08/20/274108.mp4"}]
http://www.npo.nl/volleybalsters-grijpen-naast-bronzen-medaille/20-08-2016/WO_NOS_4863992
beveiligd videofragment in meerdere formaten:
[{"formaat": "h264", "kwaliteit": 3, "url": "http://download.omroep.nl/nos/content-ip/mp4/web03/2016/08/20/274109.mp4"}, {"formaat": "h264", "kwaliteit": 2, "url": "http://download.omroep.nl/nos/content-ip/ipod/2016/08/20/274109.mp4"}]
http://www.npo.nl/promo-opgelicht-06-09-2016/05-09-2016/WO_AT_4993516
videofragment in meerdere formaten, met voor het formaat met de hoogste resolutie het attribuut "type" i.p.v. "formaat" en "kwaliteit":
[{"formaat": "h264", "kwaliteit": 2, "url": "http://content.omroep.nl/avrotros/transcoding/opgelicht/1473070014300/640x360_1000.m4v"}, {"formaat": "h264", "kwaliteit": 1, "url": "http://content.omroep.nl/avrotros/transcoding/opgelicht/1473070014300/320x180_180.m4v"}, {"type": "h264", "url": "http://content.omroep.nl/avrotros/transcoding/opgelicht/1473070014300/854x480_1500.m4v"}]
http://www.npo.nl/slimmer-in-een-minuut-sociale-robots/20-10-2016/WO_NPO_5486659
videofragment in één formaat met 'uri-decoded' videolink, die dus zonder '%20' niet werkt:
[{"formaat": "h264", "kwaliteit": 3, "url": "http://download.omroep.nl/portal/NPO/NPO3/Vanessa 1 minuut.mp4"}]
http://www.npo.nl/escaperoom-8-jill/21-10-2016/WO_KN_5639189
videofragment in meerdere formaten, maar welke onbeschikbaar is ('HTTP/1.1 404 Not Found'):
[{"formaat": "h264", "kwaliteit": 3, "url": "http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_high.mp4"}, {"formaat": "h264", "kwaliteit": 2, "url": "http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_low.mp4"}]
http://www.npo.nl/reacties-binnenhof/10-11-2016/WO_NOS_5947382
videofragment in één formaat met een in eerste instantie al herleide url, die dus niet werkt:
[{"formaat": "h264", "kwaliteit": 3, "url": "http://content1a.omroep.nl/urishieldv2/l27m79eb57e8082db2910058243e52000000.cb4aa61336292e4528b6440a973fdecc/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4"}]
de NPO heeft het in de tussentijd gecorrigeerd, want deze werkt wel:
[{"formaat": "h264", "kwaliteit": 3, "url": "http://video.omroep.nl/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4"}]
http://www.npo.nl/willem-wever/14-01-2006/NCRV_1210567
'Windows Media' videostream in meerdere formaten:
[{"formaat": "wmv", "kwaliteit": 2, "url": "http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/bb.20060114.asf"}, {"formaat": "wmv", "kwaliteit": 1, "url": "http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/sb.20060114.asf"}, {"formaat": "h264", "kwaliteit": 2, "url": "http://content.omroep.nl/tv/ncrv/willemwever/bb.20060114.mp4"}]
http://www.npo.nl/zigeunermuziek-doet-pijn/21-07-2010/WO_VPRO_043833
'Windows Media' videostream in één formaat (zeldzaam):
[{"formaat": "wmv", "kwaliteit": 2, "url": "http://cgi.omroep.nl/cgi-bin/streams?/vpro/39594888/windowsmedia.asf"}]
-------------------------------------------------------------------------------------------------------------------------------
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/nos/content-ip/mp4/web03/2016/08/20/274109.mp4','method':'HEAD','error-handling':'xxx=accept'})"
{
"url": "http://download.omroep.nl/nos/content-ip/mp4/web03/2016/08/20/274109.mp4",
"type": "text/plain;charset=UTF-8",
"headers": [
"HTTP/1.1 302 missing credentials",
"Date: Fri, 23 Dec 2016 22:12:17 GMT",
"Server: Apache/2.4.23 (Unix) PHP/5.6.26",
"X-Powered-By: PHP/5.6.26",
"Location: http://s.nos.nl/img/video/geen-toegang.png",
"Content-Length: 20",
"Cache-Control: no-cache",
"X-WorkerInstancename: dlr2c",
"Content-Type: text/plain;charset=UTF-8",
"X-ProxyInstancename: dlr1b",
"Set-Cookie: balancer://dlr2cluster=balancer.dlr2cfp; path=/;",
"Connection: close",
"",
"\u0000\u0000"
],
"raw": "",
"doc": null
}
xidel-0.9.6.exe -s --color=never -e "x:request({'post':'[{\"file\":\"http://download.omroep.nl/nos/content-ip/mp4/web03/2016/08/20/274109.mp4\"}]','url':'http://nos.nl/video/resolve/'})"
{
"url": "http://nos.nl/video/resolve/",
"type": "application/json",
"headers": [
"HTTP/1.1 200 OK",
"Server: nginx/1.11.4",
"Content-Type: application/json",
"Transfer-Encoding: chunked",
"Connection: keep-alive",
"Vary: Accept-Encoding",
"X-Powered-By: PHP/5.6.26",
"Cache-Control: no-cache",
"Date: Fri, 23 Dec 2016 22:14:47 GMT",
"X-Instance-Name: nos1lwb.omroep.nl",
"",
"\u0000\u0000"
],
"raw": "[{\"file\":\"https:\\/\\/video.omroep.nl\\/secure\\/ccfc7a0123a798997df810a274a3e239\\/585da1d7\\/nos\\/content-ip\\/mp4\\/web03\\/2016\\/08\\/20\\/274109.mp4\"}]",
"json": [
{
"file": "https://video.omroep.nl/secure/ccfc7a0123a798997df810a274a3e239/585da1d7/nos/content-ip/mp4/web03/2016/08/20/274109.mp4"
}
]
}
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/portal/NPO/NPO3/Vanessa 1 minuut.mp4','method':'HEAD','error-handling':'xxx=accept'})"
{
"url": "http://download.omroep.nl/portal/NPO/NPO3/Vanessa%201%20minuut.mp4", // Xidel 'uri-encode' urls automatisch als dat nodig is.
"type": "text/html; charset=UTF-8",
"headers": [
"HTTP/1.1 302 Found",
"Date: Fri, 23 Dec 2016 22:19:30 GMT",
"Server: Apache/2.4.23 (Unix) PHP/5.6.26",
"X-Powered-By: PHP/5.6.26",
"Location: http://content1d.omroep.nl/urishieldv2/l27m0990c6a41ede5b6800585da2f2000000.0cfe89d69980b45324a48f9323803f69/portal/NPO/NPO3/Vanessa%201%20minuut.mp4",
"Cache-Control: \"max-age=60\"",
"Expires: Fri, 23 Dec 2016 22:20:30 GMT",
"X-WorkerInstancename: dlr2a",
"Content-Type: text/html; charset=UTF-8",
"X-ProxyInstancename: dlr1b",
"Set-Cookie: balancer://dlr2cluster=balancer.dlr2afp; path=/;",
"Connection: close",
"",
"\u0000n"
],
"raw": "",
"doc": null
}
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_high.mp4','method':'HEAD','error-handling':'xxx=accept'})"
{
"url": "http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_high.mp4",
"type": "text/html",
"headers": [
"HTTP/1.1 404 Not Found",
"Date: Fri, 23 Dec 2016 22:21:11 GMT",
"Server: Apache/2.4.23 (Unix) OpenSSL/1.0.2j",
"Last-Modified: Wed, 09 Apr 2014 12:15:10 GMT",
"ETag: \"758-4f69b0d478f80\"",
"Accept-Ranges: bytes",
"Content-Length: 1880",
"X-ProxyInstancename: dlr1b",
"Connection: close",
"Content-Type: text/html",
"",
"\u0000\u0000"
],
"raw": "",
"doc": null
}
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://content1a.omroep.nl/urishieldv2/l27m79eb57e8082db2910058243e52000000.cb4aa61336292e4528b6440a973fdecc/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4','method':'HEAD','error-handling':'xxx=accept'})"
{
"url": "http://content1a.omroep.nl/urishieldv2/l27m79eb57e8082db2910058243e52000000.cb4aa61336292e4528b6440a973fdecc/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4",
"type": "text/html",
"headers": [
"HTTP/1.1 403 Forbidden",
"Server: nginx/1.11.4",
"Date: Fri, 23 Dec 2016 22:23:39 GMT",
"Content-Type: text/html",
"Content-Length: 169",
"Connection: keep-alive",
"X-EdgeError: lmhash mismatch [cb4aa61336292e4528b6440a973fdecc]",
"X-Instance-Name: dl1afp.omroep.nl",
"",
"\u0000?"
],
"raw": "",
"doc": null
}
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://video.omroep.nl/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4','method':'HEAD','error-handling':'xxx=accept'})"
{
"url": "http://video.omroep.nl/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4",
"type": "text/html; charset=UTF-8",
"headers": [
"HTTP/1.1 302 Found",
"Date: Fri, 30 Dec 2016 12:58:03 GMT",
"Server: Apache/2.4.23 (Unix) PHP/5.6.26",
"X-Powered-By: PHP/5.6.26",
"Location: http://content1c.omroep.nl/urishieldv2/l27m0657993561fb87e800586659db000000.1949881edf7c6f09e653ad311ab7b58e/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4",
"Cache-Control: \"max-age=60\"",
"Expires: Fri, 30 Dec 2016 12:59:03 GMT",
"X-WorkerInstancename: dlr2a",
"Content-Type: text/html; charset=UTF-8",
"X-ProxyInstancename: dlr1a",
"Set-Cookie: balancer://dlr2cluster=balancer.dlr2afp; path=/;",
"Connection: close",
"",
"\u0000m"
],
"raw": "",
"doc": null
}
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/bb.20060114.asf','method':'HEAD','error-handling':'xxx=accept'})"
{
"url": "http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/bb.20060114.asf",
"type": "video/x-ms-wmv",
"headers": [
"HTTP/1.1 200 OK",
"Date: Sat, 31 Dec 2016 13:32:34 GMT",
"Server: Apache/2.4.23 (Unix) PHP/5.6.26",
"X-Powered-By: PHP/5.6.26",
"Content-Length: 178",
"Pragma: no-cache",
"Cache-Control: no-cache",
"X-WorkerInstancename: sapi2a",
"Content-Type: video/x-ms-wmv",
"X-ProxyInstancename: sapi1b",
"Set-Cookie: balancer://sapi2cluster=balancer.sapi2a; path=/;",
"Keep-Alive: timeout=1, max=100",
"Connection: Keep-Alive",
"",
"\u0000\u0000"
],
"raw": "",
"doc": null
}
-------------------------------------------------------------------------------------------------------------------------------
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4','method':'HEAD','error-handling':'xxx=accept'})/(if (contains(headers[1],'302')) then url else ())"
http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4','method':'HEAD','error-handling':'xxx=accept'})/(if (contains(headers[1],'40')) then () else url)"
http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4','method':'HEAD','error-handling':'xxx=accept'})/(if (contains(headers[1],'200')) then url else if (contains(headers[1],'302')) then url else ())"
http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4
xidel-0.9.6.exe -s --color=never -e "x:request({'data':'http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4','method':'HEAD','error-handling':'xxx=accept'})/(if (some $x in ('200','302') satisfies contains(headers[1],$x)) then url else ())"
http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4
-------------------------------------------------------------------------------------------------------------------------------
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/nos/content/ipod/2016/08/20/274108.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "let $a:=$json()/{'format':if (type) then concat('mp4-',max($json()/kwaliteit)+1) else concat(if (formaat='h264') then 'mp4' else formaat,'-',kwaliteit),'url':x:request({'data':url,'method':'HEAD','error-handling':'xxx=accept'})[some $x in ('200','302') satisfies contains(headers[1],$x)]/(if (ends-with(url,'asf')) then doc(url)//@href else if (contains(url,'content-ip')) then x:request({'post':serialize-json([{\"file\":url}]),'url':'http://nos.nl/video/resolve/'})//file else url)} return $a"
{
"format": "mp4-3",
"url": "http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4"
}
{
"format": "mp4-2",
"url": "http://download.omroep.nl/nos/content/ipod/2016/08/20/274108.mp4"
}
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/nos/content-ip/mp4/web03/2016/08/20/274109.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/nos/content-ip/ipod/2016/08/20/274109.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
{
"format": "mp4-3",
"url": "https://video.omroep.nl/secure/ba015198a1db78f6c4eaf1696c5fb33e/586662c4/nos/content-ip/mp4/web03/2016/08/20/274109.mp4"
}
{
"format": "mp4-2",
"url": "https://video.omroep.nl/secure/7eb67accaf222a86ab36fca2ad5a9eb1/586662c5/nos/content-ip/ipod/2016/08/20/274109.mp4"
}
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/portal/NPO/NPO3/Vanessa 1 minuut.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
{
"format": "mp4-3",
"url": "http://download.omroep.nl/portal/NPO/NPO3/Vanessa%201%20minuut.mp4"
}
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_high.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_low.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
{
"format": "mp4-3",
"url": null
}
{
"format": "mp4-2",
"url": null
}
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_high.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_low.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
...
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://content1a.omroep.nl/urishieldv2/l27m79eb57e8082db2910058243e52000000.cb4aa61336292e4528b6440a973fdecc/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
...
echo [{^"formaat^": ^"wmv^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/bb.20060114.asf^"}^, {^"formaat^": ^"wmv^"^, ^"kwaliteit^": 1^, ^"url^": ^"http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/sb.20060114.asf^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://content.omroep.nl/tv/ncrv/willemwever/bb.20060114.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
{
"format": "wmv-2",
"url": "mms://blaster.omroep.nl/public/ug-od/ms4/08/media/tv/ncrv/willemwever/bb.20060114.asf?wmt=58666396&wmhash=3ad17bb6"
}
{
"format": "wmv-1",
"url": "mms://blaster.omroep.nl/public/ug-od/ms4/08/media/tv/ncrv/willemwever/sb.20060114.asf?wmt=58666396&wmhash=59bc589c"
}
{
"format": "mp4-2",
"url": "http://content.omroep.nl/tv/ncrv/willemwever/bb.20060114.mp4"
}
echo [{^"formaat^": ^"wmv^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://cgi.omroep.nl/cgi-bin/streams?/vpro/39594888/windowsmedia.asf^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
{
"format": "wmv-2",
"url": "mms://hurley.omroep.nl/public/ug-od/ms5/14/media/vpro/39594888/windowsmedia.asf?wmt=58666ccb&wmhash=4d5da383"
}
-------------------------------------------------------------------------------------------------------------------------------
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/nos/content/ipod/2016/08/20/274108.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "let $a:=$json()/{'format':if (type) then concat('mp4-',max($json()/kwaliteit)+1) else concat(if (formaat='h264') then 'mp4' else formaat,'-',kwaliteit),'url':x:request({'data':url,'method':'HEAD','error-handling':'xxx=accept'})[some $x in ('200','302') satisfies contains(headers[1],$x)]/(if (ends-with(url,'asf')) then doc(url)//@href else if (contains(url,'content-ip')) then x:request({'post':serialize-json([{\"file\":url}]),'url':'http://nos.nl/video/resolve/'})//file else url)}[url] return if ($a) then if (count($a)=1) then v_url:=$a/url else (json:=[$a],let $b:=(for $x in $json()[contains(format,'wmv')]/format order by $x return $x,for $x in $json()[contains(format,'mp4')]/format order by $x return $x) return (formats:=join($b,', '),best:=$b[last()])) else ()"
json := [{"format": "mp4-3", "url": "http://download.omroep.nl/nos/content/mp4/web03/2016/08/20/274108.mp4"}, {"format": "mp4-2", "url": "http://download.omroep.nl/nos/content/ipod/2016/08/20/274108.mp4"}]
formats := mp4-2, mp4-3
best := mp4-3
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/nos/content-ip/mp4/web03/2016/08/20/274109.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/nos/content-ip/ipod/2016/08/20/274109.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
json := [{"format": "mp4-3", "url": "https://video.omroep.nl/secure/ed64cb4aef309da7eac655c4a7207e99/585db2df/nos/content-ip/mp4/web03/2016/08/20/274109.mp4"}, {"format": "mp4-2", "url": "https://video.omroep.nl/secure/b4357506b4e714f8058bc7bffa27ba63/585db2df/nos/content-ip/ipod/2016/08/20/274109.mp4"}]
formats := mp4-2, mp4-3
best := mp4-3
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/portal/NPO/NPO3/Vanessa 1 minuut.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
v_url := http://download.omroep.nl/portal/NPO/NPO3/Vanessa%201%20minuut.mp4
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_high.mp4^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://download.omroep.nl/ncrv/video/zapplive_zapplive_escaperoom_jill_video_low.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
...
echo [{^"formaat^": ^"h264^"^, ^"kwaliteit^": 3^, ^"url^": ^"http://content1a.omroep.nl/urishieldv2/l27m79eb57e8082db2910058243e52000000.cb4aa61336292e4528b6440a973fdecc/ntr/educatie/npofocus/video/reacties_binnenhof_2001_web_20161103.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
...
echo [{^"formaat^": ^"wmv^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/bb.20060114.asf^"}^, {^"formaat^": ^"wmv^"^, ^"kwaliteit^": 1^, ^"url^": ^"http://cgi.omroep.nl/cgi-bin/streams?/tv/ncrv/willemwever/sb.20060114.asf^"}^, {^"formaat^": ^"h264^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://content.omroep.nl/tv/ncrv/willemwever/bb.20060114.mp4^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
json := [{"format": "wmv-2", "url": "mms://hurley.omroep.nl/public/ug-od/ms4/08/media/tv/ncrv/willemwever/bb.20060114.asf?wmt=585db375&wmhash=133cf8ce"}, {"format": "wmv-1", "url": "mms://blaster.omroep.nl/public/ug-od/ms4/08/media/tv/ncrv/willemwever/sb.20060114.asf?wmt=585db375&wmhash=66f209f6"}, {"format": "mp4-2", "url": "http://content.omroep.nl/tv/ncrv/willemwever/bb.20060114.mp4"}]
formats := wmv-1, wmv-2, mp4-2
best := mp4-2
echo [{^"formaat^": ^"wmv^"^, ^"kwaliteit^": 2^, ^"url^": ^"http://cgi.omroep.nl/cgi-bin/streams?/vpro/39594888/windowsmedia.asf^"}] | xidel-0.9.6.exe -s --color=never - --xquery "..."
v_url := mms://hurley.omroep.nl/public/ug-od/ms5/14/media/vpro/39594888/windowsmedia.asf?wmt=585db3e1&wmhash=5abbdbb3
-------------------------------------------------------------------------------------------------------------------------------
--xquery "let $a:=$json()/{
'format':if (type) then
concat(
'mp4-',
max($json()/kwaliteit)+1
)
else
concat(
if (formaat='h264') then
'mp4'
else
formaat,
'-',
kwaliteit
),
'url':x:request(
{
'data':url,
'method':'HEAD',
'error-handling':'xxx=accept'
}
)[some $x in ('200','302') satisfies contains(headers[1],$x)]/(
if (ends-with(url,'asf')) then
doc(url)//@href
else if (contains(url,'content-ip')) then
x:request(
{
'post':serialize-json(
[
{
\"file\":url
}
]
),
'url':'http://nos.nl/video/resolve/'
}
)//file
else
url
)
}[url] return
if ($a) then
if (count($a)=1) then
v_url:=$a/url
else (
json:=[$a],
let $b:=(
for $x in $json()[contains(format,'wmv')]/format order by $x return $x,
for $x in $json()[contains(format,'mp4')]/format order by $x return $x
) return (
formats:=join($b,', '),
best:=$b[last()]
)
)
else
()"
================================================================================================================================
[https://github.com/Reino17/BatchGemist/commit/8f8798c92ced113028ddfb01a4b7dbd3dabfbd5a]
[https://github.com/Reino17/BatchGemist/commit/e38e7c24b240921304fc19832a1218d6ada89237]
xidel-0.9.6.exe -s --color=never "http://www.kijk.nl/sbs6/desmaakpolitie/videos/5xVm3usXftaa/aflevering-123" -e "replace(replace(parse-html('<html>'||substring-after($raw,'<![endif]>'))//meta[@name='video_src']/@content,'federated_f9','htmlFederated'),'videoId','@videoPlayer')"
http://c.brightcove.com/services/viewer/htmlFederated?isVid=1&isUI=1&publisherID=20318290001&playerID=2234112204001&autoStart=false&domain=embed&@videoPlayer=5095479777001&branding=sbs&playertitle=true&linkBaseURL=http://www.kijk.nl/sbs6/desmaakpolitie/videos/5xVm3usXftaa/aflevering-123?sbs_device=pc
xidel-0.9.6.exe -s --color=never "http://www.kijk.nl/sbs6/desmaakpolitie/videos/5xVm3usXftaa/aflevering-123" -f "replace(replace(parse-html('<html>'||substring-after($raw,'<![endif]>'))//meta[@name='video_src']/@content,'federated_f9','htmlFederated'),'videoId','@videoPlayer')" --xquery "json(extract(//body,'experienceJSON = (.+\});',1))/(if (.//mediaDTO) then .//mediaDTO/(name:=concat(if (customFields/sbs_station='veronicatv') then 'Veronica' else upper-case(customFields/sbs_station),' - ',displayName,replace(creationDate div 1000 * dayTimeDuration('PT1S') + date('1970-01-01'),'(\d+)-(\d+)-(\d+)',' ($3$2$1)')),json:=if ((renditions)()[size=0]) then [let $a:=(renditions)()[size=0]/defaultURL return ({'format':'meta','url':$a},tail(tokenize(unparsed-text($a),'#EXT-X-STREAM-INF:')) ! {'format':string(extract(.,'BANDWIDTH=(\d+)',1) idiv 1000),'url':concat(resolve-uri('.',$a),extract(.,'(.+m3u8)',1))}),json(concat('http://hbb.sbs6.nl/backend/veamerapi/index/method/video/brightCoveId/',id))/(videos)() ! {'format':replace(.,'.+-(\d+).*\.(.+)','$2-$1'),'url':.}] else [(renditions)()/{'format':concat('mp4_',encodingRate idiv 1000),'url':defaultURL}],let $b:=(for $x in $json()[contains(format,'mp4')]/format order by $x return $x,$json()[format='meta']/format,for $x in $json()[format castable as int]/format order by $x return $x) return (formats:=join($b,', '),best:=$b[last()])) else ())"
name := SBS6 - De Smaakpolitie: Aflevering 123 (23082016)
json := [{"format": "meta", "url": "http://l3c.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/hls/sbs6_desmaakpolitie_S00E123_160823101909613418-hls-main.m3u8"}, {"format": "610", "url": "http://l3c.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/hls/r1/sbs6_desmaakpolitie_S00E123_160823101007613418-hls-350.m3u8"}, {"format": "928", "url": "http://l3c.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/hls/r2/sbs6_desmaakpolitie_S00E123_160823101038613418-hls-650.m3u8"}, {"format": "1288", "url": "http://l3c.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/hls/r3/sbs6_desmaakpolitie_S00E123_160823100125613418-hls-900.m3u8"}, {"format": "1643", "url": "http://l3c.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/hls/r4/sbs6_desmaakpolitie_S00E123_160823101148613418-hls-1200.m3u8"}, {"format": "2179", "url": "http://l3c.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/hls/r8/sbs6_desmaakpolitie_S00E123_160823100831613418-hls-1885.m3u8"}, {"format": "mp4-350", "url": "http://stv.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/mp4/sbs6_desmaakpolitie_S00E123_160823101306613418-bg-350.mp4"}, {"format": "mp4-650", "url": "http://stv.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/mp4/sbs6_desmaakpolitie_S00E123_160823095841613418-bg-650.mp4"}, {"format": "mp4-900", "url": "http://stv.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/mp4/sbs6_desmaakpolitie_S00E123_160823101358613418-bg-900.mp4"}, {"format": "mp4-1200", "url": "http://stv.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/mp4/sbs6_desmaakpolitie_S00E123_160823100603613418-bg-1200.mp4"}, {"format": "mp4-1885", "url": "http://stv.cdn.sbsnet.nl/ra/01/6134183b3c631f7e745097004a0ca5cb6edda0/mp4/sbs6_desmaakpolitie_S00E123_160823100449613418-bg-1885.mp4"}]
formats := mp4-350, mp4-650, mp4-900, mp4-1200, mp4-1885, meta, 610, 928, 1288, 1643, 2179
best := 2179
xidel-0.9.6.exe -s --color=never "http://www.kijk.nl/sbs6/desmaakpolitie/videos/KxsFnNTV9Njv/het-is-weer-smerig-vies" -f "..." --xquery "..."
name := SBS6 - Het is weer smerig vies (21122012)
json := [{"format": "mp4_287", "url": "http://sbsnl-apple-vod.adaptive.level3.net/bc/videos/585049245001/585049245001_2048964412001_smerigvies.mp4"}, {"format": "mp4_975", "url": "http://sbsnl-apple-vod.adaptive.level3.net/bc/videos/585049245001/585049245001_2048962019001_smerigvies.mp4"}, {"format": "mp4_608", "url": "http://sbsnl-apple-vod.adaptive.level3.net/bc/videos/585049245001/585049245001_2048964957001_smerigvies.mp4"}, {"format": "mp4_1611", "url": "http://sbsnl-apple-vod.adaptive.level3.net/bc/videos/585049245001/585049245001_2048964429001_smerigvies.mp4"}]
formats := mp4_287, mp4_608, mp4_975, mp4_1611
best := mp4_1611
-------------------------------------------------------------------------------------------------------------------------------
xidel-0.9.6.exe -s --color=never "http://embed.kijk.nl/video/QoULoMK4ulxd" -f "replace($url,'embed','www')" -f "..." --xquery "..."
name := SBS6 - Shownieuws (28012017)
json := [{"format": "meta", "url": "http://temp-l3c-e3.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/hls/clip___170128221149061506-hls-main-pv.m3u8"}, {"format": "610", "url": "http://temp-l3c-e3.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/hls/r1/clip___170128221147061506-hls-350-pv.m3u8"}, {"format": "928", "url": "http://temp-l3c-e3.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/hls/r2/clip___170128220952061506-hls-650-pv.m3u8"}, {"format": "1288", "url": "http://temp-l3c-e3.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/hls/r3/clip___170128220905061506-hls-900-pv.m3u8"}, {"format": "1643", "url": "http://temp-l3c-e3.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/hls/r4/clip___170128220804061506-hls-1200-pv.m3u8"}, {"format": "2179", "url": "http://temp-l3c-e3.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/hls/r8/clip___170128221106061506-hls-1885-pv.m3u8"}, {"format": "mp4-350", "url": "http://temp-stv.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/mp4/clip___170128220649061506-bg-350-pv.mp4"}, {"format": "mp4-650", "url": "http://temp-stv.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/mp4/clip___170128220550061506-bg-650-pv.mp4"}, {"format": "mp4-900", "url": "http://temp-stv.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/mp4/clip___170128220528061506-bg-900-pv.mp4"}, {"format": "mp4-1200", "url": "http://temp-stv.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/mp4/clip___170128220459061506-bg-1200-pv.mp4"}, {"format": "mp4-1885", "url": "http://temp-stv.cdn.sbsnet.nl/ra/02/0615067aa2ba7de3f4ee2e9ad7cfe015b93115/mp4/clip___170128220607061506-bg-1885-pv.mp4"}]
formats := mp4-350, mp4-650, mp4-900, mp4-1200, mp4-1885, meta, 610, 928, 1288, 1643, 2179
best := 2179
-------------------------------------------------------------------------------------------------------------------------------
-f "replace(
$url,
'embed',
'www'
)"
-f "replace(
replace(
parse-html('<html>'||substring-after($raw,'<![endif]>'))//meta[@name='video_src']/@content,
'federated_f9',
'htmlFederated'
),
'videoId',
'@videoPlayer'
)"
--xquery "json(
extract(
//body,
'experienceJSON = (.+\});',1
)
)/(
if (.//mediaDTO) then
.//mediaDTO/(
name:=concat(
if (customFields/sbs_station='veronicatv') then
'Veronica'
else
upper-case(customFields/sbs_station),
' - ',
displayName,
replace(
creationDate div 1000 * dayTimeDuration('PT1S') + date('1970-01-01'),
'(\d+)-(\d+)-(\d+)',
' ($3$2$1)'
)
),
json:=if ((renditions)()[size=0]) then [
let $a:=(renditions)()[size=0]/defaultURL return (
{
'format':'meta',
'url':$a
},
tail(
tokenize(
unparsed-text($a),
'#EXT-X-STREAM-INF:'
)
) ! {
'format':string(
extract(
.,
'BANDWIDTH=(\d+)',1
) idiv 1000
),
'url':concat(
resolve-uri('.',$a),
extract(
.,'(.+m3u8)',1
)
)
}
),
json(
concat(
'http://hbb.sbs6.nl/backend/veamerapi/index/method/video/brightCoveId/',
id
)
)/(videos)() ! {
'format':replace(
.,
'.+-(\d+).*\.(.+)',
'$2-$1'
),
'url':.
}
] else [
(renditions)()/{
'format':concat('mp4_',
encodingRate idiv 1000
),
'url':defaultURL
}
],
let $b:=(
for $x in $json()[contains(format,'mp4')]/format order by $x return $x,
$json()[format='meta']/format,
for $x in $json()[format castable as int]/format order by $x return $x
) return (
formats:=join($b,', '),
best:=$b[last()]
)
)
else
()
)"
================================================================================================================================
[https://github.com/Reino17/BatchGemist/commit/8252ce0275f281dcc32fa0c3be397061c0b83386]
xidel-0.9.6.exe -s --color=never "http://video.disney.nl/videos/bizaardvark-aflevering-5-seizoen-1-54637ca563d5fc6b66f3ba8d" -e "json(//script/extract(.,'burger=(.+):\(',1)[.])/(.//embedURL)[1]"
http://video.disney.nl/embed/54637ca563d5fc6b66f3ba8d
xidel-0.9.6.exe -s --color=never "http://video.disney.nl/videos/bizaardvark-aflevering-5-seizoen-1-54637ca563d5fc6b66f3ba8d" -f "json(//script/extract(.,'burger=(.+):\(',1)[.])/(.//embedURL)[1]" -e "json(//script/extract(.,'(\{.+);',1)[.])/(.//externals)[1]/(concat('Disney - ',.//name,replace(.//createdAt * dayTimeDuration('PT1S') + date('1970-01-01'),'(\d+)-(\d+)-(\d+)',' ($3$2$1)')),.//dataUrl)"
Disney - Bizaardvark - Aflevering 5 - Seizoen 1 (16012017)
http://cdnapi.kaltura.com/p/1068292/sp/106829200/playManifest/entryId/1_9hfe9n0i/format/url/protocol/http
xidel-0.9.6.exe -s --color=never "http://video.disney.nl/videos/bizaardvark-aflevering-5-seizoen-1-54637ca563d5fc6b66f3ba8d" -f "json(//script/extract(.,'burger=(.+):\(',1)[.])/(.//embedURL)[1]" -e "json(//script/extract(.,'(\{.+);',1)[.])//flavors/join(.()[height!=0][format='mp4']/extract(url,'flavorId/(.+?)/',1),',')"
1_7ld4699f,1_eu7j68yl,1_moncky45,1_d5k3i98r,1_6m6mp318,1_f2ezpjq1
xidel-0.9.6.exe -s --color=never "http://video.disney.nl/videos/bizaardvark-aflevering-5-seizoen-1-54637ca563d5fc6b66f3ba8d" -f "json(//script/extract(.,'burger=(.+):\(',1)[.])/(.//embedURL)[1]" -e "let $ref:=string-to-base64Binary(concat('http://',$host)) return json(//script/extract(.,'(\{.+\})',1)[.])/((.//externals)()[1]/(name:=concat('Disney- ',.//name,replace(.//createdAt * dayTimeDuration('PT1S') + date('1970-01-01'),'(\d+)-(\d+)-(\d+)',' ($3$2$1)')),dataUrl:=.//dataUrl),m3u8:=.//flavors/concat(substring-before($dataUrl,'format'),'flavorIds/',join(.()[height!=0][format='mp4']/extract(url,'flavorId/(.+?)/',1),','),'/format/applehttp/protocol/http?referrer=',$ref))"
name := Disney- Bizaardvark - Aflevering 5 - Seizoen 1 (16012017)
dataUrl := http://cdnapi.kaltura.com/p/1068292/sp/106829200/playManifest/entryId/1_9hfe9n0i/format/url/protocol/http
m3u8 := http://cdnapi.kaltura.com/p/1068292/sp/106829200/playManifest/entryId/1_9hfe9n0i/flavorIds/1_7ld4699f,1_eu7j68yl,1_moncky45,1_d5k3i98r,1_6m6mp318,1_f2ezpjq1/format/applehttp/protocol/http?referrer=aHR0cDovL3ZpZGVvLmRpc25leS5ubA==
xidel-0.9.6.exe -s --color=never "http://video.disney.nl/videos/bizaardvark-aflevering-5-seizoen-1-54637ca563d5fc6b66f3ba8d" -f "json(//script/extract(.,'burger=(.+):\(',1)[.])/(.//embedURL)[1]" --xquery "let $ref:=string-to-base64Binary(concat('http://',$host)) return json(//script/extract(.,'(\{.+\})',1)[.])/((.//externals)()[1]/(name:=concat('Disney- ',.//name,replace(.//createdAt * dayTimeDuration('PT1S') + date('1970-01-01'),'(\d+)-(\d+)-(\d+)',' ($3$2$1)')),dataUrl:=.//dataUrl),json:=[let $a:=.//flavors/concat(substring-before($dataUrl,'format'),'flavorIds/',join(.()[height!=0][format='mp4']/extract(url,'flavorId/(.+?)/',1),','),'/format/applehttp/protocol/http?referrer=',$ref) return ({'format':'meta','url':x:request({'data':$a,'method':'HEAD','error-handling':'4xx=accept'})/(if (contains($headers[1],'404')) then () else url)},tail(tokenize(unparsed-text($a),'#EXT-X-STREAM-INF:')) ! {'format':string(extract(.,'BANDWIDTH=(\d+)',1) idiv 1000),'url':extract(.,'(.+m3u8.+)',1)},(.//flavors)()[height!=0]/{'format':concat(replace(format,'.+-(.+)','$1'),'-',bitrate),'url':url})]),let $b:=(for $x in $json()[contains(format,'-')]/format order by $x return $x,$json()[format='meta']/format,for $x in $json()[format castable as int]/format order by $x return $x) return (formats:=join($b,', '),best:=$b[last()])"
name := Disney - Bizaardvark - Aflevering 5 - Seizoen 1 (16012017)
dataUrl := http://cdnapi.kaltura.com/p/1068292/sp/106829200/playManifest/entryId/1_9hfe9n0i/format/url/protocol/http
json := [
{
"format": "meta",
"url": "http://cdnapi.kaltura.com/p/1068292/sp/106829200/playManifest/entryId/1_9hfe9n0i/flavorIds/1_7ld4699f,1_eu7j68yl,1_moncky45,1_d5k3i98r,1_6m6mp318,1_f2ezpjq1/format/applehttp/protocol/http?referrer=aHR0cDovL3ZpZGVvLmRpc25leS5ubA=="
},
{
"format": "480",
"url": "http://kaltura.akamaized.net/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_7ld4699f/name/a.mp4/index.m3u8?__hdnea__=st=1485541096~exp=1485562696~acl=/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_*~hmac=d267672f8aae3faae0afd49c02142281bb48cfcbd579c6f585b038e33cb86ba6"
},
{
"format": "684",
"url": "http://kaltura.akamaized.net/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_eu7j68yl/name/a.mp4/index.m3u8?__hdnea__=st=1485541096~exp=1485562696~acl=/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_*~hmac=d267672f8aae3faae0afd49c02142281bb48cfcbd579c6f585b038e33cb86ba6"
},
{
"format": "987",
"url": "http://kaltura.akamaized.net/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_moncky45/name/a.mp4/index.m3u8?__hdnea__=st=1485541096~exp=1485562696~acl=/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_*~hmac=d267672f8aae3faae0afd49c02142281bb48cfcbd579c6f585b038e33cb86ba6"
},
{
"format": "1667",
"url": "http://kaltura.akamaized.net/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_d5k3i98r/name/a.mp4/index.m3u8?__hdnea__=st=1485541096~exp=1485562696~acl=/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_*~hmac=d267672f8aae3faae0afd49c02142281bb48cfcbd579c6f585b038e33cb86ba6"
},
{
"format": "2691",
"url": "http://kaltura.akamaized.net/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_6m6mp318/name/a.mp4/index.m3u8?__hdnea__=st=1485541096~exp=1485562696~acl=/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_*~hmac=d267672f8aae3faae0afd49c02142281bb48cfcbd579c6f585b038e33cb86ba6"
},
{
"format": "3815",
"url": "http://kaltura.akamaized.net/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_f2ezpjq1/name/a.mp4/index.m3u8?__hdnea__=st=1485541096~exp=1485562696~acl=/s/enc/fhls/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_*~hmac=d267672f8aae3faae0afd49c02142281bb48cfcbd579c6f585b038e33cb86ba6"
},
{
"format": "mp4-469",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_7ld4699f/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(Basic_Small_-_WEB_MBL_(H264_400)).mp4/forceproxy/true/name/a.mp4?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_7ld4699f/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(Basic_Small_-_WEB_MBL_(H264_400)).mp4/forceproxy/true/name/a.mp4*~hmac=b7994c830ddc54aa2688dbd016d6f237df33483cabdaf9ba98fdca54b4192577"
},
{
"format": "mp4-668",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_eu7j68yl/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(Basic_Small_-_WEB_MBL_(H264_600)).mp4/forceproxy/true/name/a.mp4?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_eu7j68yl/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(Basic_Small_-_WEB_MBL_(H264_600)).mp4/forceproxy/true/name/a.mp4*~hmac=39a797cc2194e0a0a44bac7e72840d64bbcab6be48f34e83ec3590aee81d5a97"
},
{
"format": "webm-834",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_affrsao7/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(WebM).webm/forceproxy/true/name/a.webm?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_affrsao7/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(WebM).webm/forceproxy/true/name/a.webm*~hmac=e1e3f9704e1e79bbdec1109d6e76a47f1645c67072b1ad66cce52468275aa689"
},
{
"format": "mp4-964",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_moncky45/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(SD_Small_-_WEB_MBL_(H264_900)).mp4/forceproxy/true/name/a.mp4?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_moncky45/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(SD_Small_-_WEB_MBL_(H264_900)).mp4/forceproxy/true/name/a.mp4*~hmac=ad039eeedc3bf5f7697c4e0095611a9d710ff79f5a1fea0624081ff863d3f3a8"
},
{
"format": "mp4-1628",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_d5k3i98r/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(SD_Large_-_WEB_MBL_(H264_1500)).mp4/forceproxy/true/name/a.mp4?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_d5k3i98r/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(SD_Large_-_WEB_MBL_(H264_1500)).mp4/forceproxy/true/name/a.mp4*~hmac=119a7594c8d70c2b24f89ddf465fb0b3d16447aa0dfabe0a2e688f54cf29aeee"
},
{
"format": "mp4-2628",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_6m6mp318/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(HD_720_-_WEB_(H264_2500)).mp4/forceproxy/true/name/a.mp4?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_6m6mp318/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(HD_720_-_WEB_(H264_2500)).mp4/forceproxy/true/name/a.mp4*~hmac=f4015c4df2aaeaf3d3b569741a2c32341d9430a5562a8bb1289c85b65023cf55"
},
{
"format": "mp4-3726",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_f2ezpjq1/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(HD_1080_-_WEB_(H264_4000)).mp4/forceproxy/true/name/a.mp4?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_f2ezpjq1/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(HD_1080_-_WEB_(H264_4000)).mp4/forceproxy/true/name/a.mp4*~hmac=06fc4547c43f622518f0f3e3b860a034daedd30b88b5ae7449d1bbc61c21d1f2"
},
{
"format": "3gp-369",
"url": "http://kaltura.akamaized.net/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_sqmco8lx/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(Mobile_(3GP)).3gp/forceproxy/true/name/a.3gp?__hdnea__=st=1484739094~exp=1484760694~acl=/s/p/1068292/sp/106829200/serveFlavor/entryId/1_9hfe9n0i/v/1/flavorId/1_sqmco8lx/fileName/Bizaardvark_-_Aflevering_5_-_Seizoen_1_(Mobile_(3GP)).3gp/forceproxy/true/name/a.3gp*~hmac=5034bec57496766f84df309fd3ccafa1712939d3863e0c89c63f97b900c57877"
}
]
formats := 3gp-369, mp4-469, mp4-668, mp4-964, mp4-1628, mp4-2628, mp4-3726, webm-834, meta, 480, 684, 987, 1667, 2691, 3815
best := 3815
-f "json(
//script/extract(
.,
'burger=(.+):\(',1
)[.]
)/(.//embedURL)[1]"
--xquery "let $ref:=string-to-base64Binary(
concat(
'http://',
$host
)
) return
json(
//script/extract(
.,
'(\{.+\})',1
)[.]
)/(
(.//externals)()[1]/(
name:=concat(
'Disney- ',
.//name,
replace(
.//createdAt * dayTimeDuration('PT1S') + date('1970-01-01'),
'(\d+)-(\d+)-(\d+)',
' ($3$2$1)'
)
),
dataUrl:=.//dataUrl
),
json:=[
let $a:=.//flavors/concat(
substring-before(
$dataUrl,
'format'
),
'flavorIds/',
join(
.()[height!=0][format='mp4']/extract(
url,
'flavorId/(.+?)/',1
),
','
),
'/format/applehttp/protocol/http?referrer=',
$ref
) return (
{
'format':'meta',
'url':x:request(
{
'data':$a,
'method':'HEAD',
'error-handling':'4xx=accept'
}
)/(
if (contains($headers[1],'404')) then
()
else
url
)
},
tail(
tokenize(
unparsed-text($a),
'#EXT-X-STREAM-INF:'
)
) ! {
'format':string(
extract(
.,
'BANDWIDTH=(\d+)',1
) idiv 1000
),
'url':extract(
.,
'(.+m3u8.+)',1
)
},
(.//flavors)()[height!=0]/{
'format':concat(
replace(
format,
'.+-(.+)',
'$1'
),
'-',
bitrate
),
'url':url
}
)
]
),
let $b:=(
for $x in $json()[contains(format,'-')]/format order by $x return $x,
$json()[format='meta']/format,
for $x in $json()[format castable as int]/format order by $x return $x
) return (
formats:=join($b,', '),
best:=$b[last()]
)"
================================================================================================================================
[https://github.com/Reino17/BatchGemist/commit/c6ce4400b6d335af7e9196703dfb45087e95a8e7]
xidel-0.9.6.exe -s --color=never "http://vtm.be/belgiums-got-talent/monden-vallen-open-bij-de-knalprestatie-van-2sdc-crew" --xquery "let $a:=concat(//meta[@property='og:site_name']/@content,if (//meta[@itemprop='articleProgram']) then concat(' - ',//meta[@itemprop='articleProgram']/@content) else ()) return let $b:=[{'1e':{'name':replace(concat($a,' - ',//meta[@property='og:title']/@content,replace((//@datetime[1],//meta[@property='article:published_time']/@content),'(\d+)-(\d+)-(\d+).+',' ($3$2$1)')),'["']',''''''),'url'://source/@src}},//script/json(extract(.,'vmmaplayer=(.+);',1)[.])/{position()+1||'e':{'name':concat($a,' - ',title,replace(videoUrl,'.+?(\d+)/(\d+)/(\d+).+',' ($3$2$1)')),'url':videoUrl}}] return if ($b()('2e')) then (json:=$b,videos:=join($json()(),', ')) else $b()('1e') ! (name:=name,v_url:=url)"
name := VTM - Belgium''s Got Talent - Monden vallen open bij de knalprestatie van 2SDC Crew! (23122016)
v_url := http://flvpd.vtm.be/videocms/vmma/2016/12/23/201612231323275010034065084005056B7305C0000004916B00000D0F059198.mp4
xidel-0.9.6.exe -s --color=never "http://nieuws.vtm.be/politiek/217811-rechters-snoeihard-na-uitspraken-de-wever" --xquery "..."
name := VTM NIEUWS - Rechters snoeihard na uitspraken De Wever (10122016)
v_url := http://flvpd.vtm.be/videocms/nieuws/2016/12/10/201612101312391010034065084005056B7305C0000004916B00000D0F034975.mp4
xidel-0.9.6.exe -s --color=never "http://nieuws.vtm.be/politiek/217669-de-wever-haalt-uit-naar-rechters" --xquery "..."
json := [{"1e": {"name": "VTM NIEUWS - De Wever haalt uit naar rechters (09122016)", "url": "http://flvpd.vtm.be/videocms/nieuws/2016/12/09/201612091914374010034065084005056B7305C0000004916B00000D0F034130.mp4"}}, {"2e": {"name": "VTM NIEUWS - Video: Theo Francken stapt naar Cassatie (08122016)", "url": "http://flvpd.vtm.be/videocms/nieuws/2016/12/08/201612081921518010034065084005056B7305C0000004916B00000D0F032052.mp4"}}, {"3e": {"name": "VTM NIEUWS - Video: België betaalt dwangsom voor Syrische familie (26102016)", "url": "http://flvpd.vtm.be/videocms/nieuws/2016/10/26/201610261943566010034065084005056B7305C0000005076B00000D0F089298.mp4"}}, {"4e": {"name": "VTM NIEUWS - Video: Francken in beroep na heisa rond dwangsom (27102016)", "url": "http://flvpd.vtm.be/videocms/nieuws/2016/10/27/201610271318187010034065084005056B7305C0000005076B00000D0F090649.mp4"}}]
videos := 1e, 2e, 3e, 4e
--xquery "let $a:=concat(
//meta[@property='og:site_name']/@content,
if (//meta[@itemprop='articleProgram']) then
concat(
' - ',
//meta[@itemprop='articleProgram']/@content
)
else
()
) return
let $b:=[
{
'1e':{
'name':replace(
concat(
$a,
' - ',
//meta[@property='og:title']/@content,
replace(
(
//@datetime[1],
//meta[@property='article:published_time']/@content
),
'(\d+)-(\d+)-(\d+).+',
' ($3$2$1)'
)
),
'["']',
''''''
),
'url'://source/@src
}
},
//script/json(
extract(
.,
'vmmaplayer=(.+);',1
)[.]
)/{
position()+1||'e':{
'name':concat(
$a,
' - ',
title,
replace(
videoUrl,
'.+?(\d+)/(\d+)/(\d+).+',
' ($3$2$1)'
)
),
'url':videoUrl
}
}
] return
if ($b()('2e')) then (
json:=$b,
videos:=join($json()(),', ')
) else
$b()('1e') ! (
name:=name,
v_url:=url
)"
================================================================================================================================
[https://github.com/Reino17/BatchGemist/commit/0f871ca56ff739fddadd408904bfa1c6998bb451]
[https://github.com/Reino17/BatchGemist/commit/d95e3374cfd6c8550908e6dd0571b7f4d0c64cd7]
[https://github.com/Reino17/BatchGemist/commit/7aa16a291215513a1f010e61d6a11c234ca7e5a9]
[https://github.com/Reino17/BatchGemist/commit/1d1490183c299f30f79d15633e8c8e3a4a239005]
[https://github.com/Reino17/BatchGemist/commit/ff8a842391003b2bf0a7733dc23243402ca698f1]
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -ss 642 -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -t 14 "VPWON_1269922-frag.srt"
1
00:00:00,000 --> 00:00:03,013
En in lenigheid zijn ze hun grote neef zeker de baas.
2
00:00:38,005 --> 00:00:44,000
Deze röntgenopnamen laten zien dat je huiskat de houding heeft van een tijger of leeuw...
3
00:00:44,005 --> 00:00:47,004
en leniger is dan die machtige roofdieren.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -ss 642 -t 14 "VPWON_1269922-frag.srt"
1
00:00:03,014 --> 00:00:09,009
Deze röntgenopnamen laten zien dat je huiskat de houding heeft van een tijger of leeuw...
2
00:00:09,014 --> 00:00:12,013
en leniger is dan die machtige roofdieren.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -ss 630 -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -ss 12 -t 14 "VPWON_1269922-frag.srt"
1
00:00:03,014 --> 00:00:09,009
Deze röntgenopnamen laten zien dat je huiskat de houding heeft van een tijger of leeuw...
2
00:00:09,014 --> 00:00:12,013
en leniger is dan die machtige roofdieren.
--------------------------------------------------------------------------------------------------------------------------------
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -ss 642 -i "http://adaptive-e10c1a.npostreaming.nl/urishieldv2/l27m65ec697756843b9300586e4698000000.cd7143b54f96a68505305f4c1caf51bd/p/32/10/10/19/VPWON_1269922/VPWON_1269922.ism/VPWON_1269922-audio=128000-video=1002000.m3u8" -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -t 14 -c copy -bsf:a aac_adtstoasc -c:s mov_text -metadata:s:s language=dut "VPWON_1269922-frag.mp4"
Met --ss 642 vóór de eerste input krijg je wel het juiste videofragment, maar de ondertiteling wordt niks mee gedaan en start vanaf het begin.
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -ss 642 -i "http://adaptive-e10c1a.npostreaming.nl/urishieldv2/l27m65ec697756843b9300586e4698000000.cd7143b54f96a68505305f4c1caf51bd/p/32/10/10/19/VPWON_1269922/VPWON_1269922.ism/VPWON_1269922-audio=128000-video=1002000.m3u8" -ss 642 -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -t 14 -c copy -bsf:a aac_adtstoasc -c:s mov_text -metadata:s:s language=dut "VPWON_1269922-frag.mp4"
Met -ss 642 vóór elke input krijg je:
[mp4 @ 0373e180] Application provided duration: -34986 / timestamp: 9014 is out of range for mov/mp4 format
[mp4 @ 0373e180] pts has no value
Je krijgt wel het juiste videofragment, maar de tijdsduur klopt niks van. De ondertiteling loopt wel synchroon, maar toch gaat ook hier iets mis, want de regel vóór #1 (#86 in de hele video) is vanaf het begin van het videofragment in beeld.
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -i "http://adaptive-e10c1a.npostreaming.nl/urishieldv2/l27m65ec697756843b9300586e4698000000.cd7143b54f96a68505305f4c1caf51bd/p/32/10/10/19/VPWON_1269922/VPWON_1269922.ism/VPWON_1269922-audio=128000-video=1002000.m3u8" -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -ss 642 -t 14 -c copy -bsf:a aac_adtstoasc -c:s mov_text -metadata:s:s language=dut "VPWON_1269922_url-frag.mp4"
Met -ss 642 ná de laatste input krijg je het juiste videofragment én ondertiteling die synchroon loopt, maar omdat er nu nauwkeurig gezocht moet worden, kost het enige tijd voordat 00:10:42 bereikt is. Niet optimaal dus.
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -ss 630 -i "http://adaptive-e10c1a.npostreaming.nl/urishieldv2/l27m65ec697756843b9300586e4698000000.cd7143b54f96a68505305f4c1caf51bd/p/32/10/10/19/VPWON_1269922/VPWON_1269922.ism/VPWON_1269922-audio=128000-video=1002000.m3u8" -ss 630 -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -ss 12 -t 14 -c copy -bsf:a aac_adtstoasc -c:s mov_text -metadata:s:s language=dut "VPWON_1269922_url-frag.mp4"
Met -ss 630 vóór elke input én -ss 12 ná de laatste input krijg je het juiste videofragment én ondertiteling die synchroon loopt.
Er wordt eerst snel gezocht naar 00:10:30 en daarna nauwkeurig naar 00:10:42. Hierdoor gaat het dus ook lekker snel.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Vervolgens doemt het volgende probleem op:
De ondertiteling in deze mp4-bestanden wordt, i.t.t. Media Player Classic - HC/BE op mijn pc, door mijn Samsung SMART TV (en waarschijnlijk veel meer modellen) niet goed weergegeven. Lijnen worden maar willekeurig getoond, of gewoon voor een lange tijd niet.
I.t.t. FFMpeg genereert MP4Box tx3g-ondertitelingstreams wel volgens de specificaties:
mp4box.exe -add "VPWON_1269922.srt:lang=dut:name=" "NTR - Het verborgen leven van de kat - De leeuw op jouw schoot (03012017).mp4"
Timed Text (SRT) import - text track 1024 x 576, font Serif (size 18)
Saving NTR - Het verborgen leven van de kat - De leeuw op jouw schoot (03012017).mp4: 0.500 secs Interleaving
ffmpeg-x86-N-82759-g1f5630a.exe -hide_banner -i "http://adaptive-e10c1a.npostreaming.nl/urishieldv2/l27m65ec697756843b9300586e4698000000.cd7143b54f96a68505305f4c1caf51bd/p/32/10/10/19/VPWON_1269922/VPWON_1269922.ism/VPWON_1269922-audio=128000-video=1002000.m3u8" -i "http://tt888.omroep.nl/tt888/VPWON_1269922" -c copy -bsf:a aac_adtstoasc -c:s srt -metadata:s:s language=dut "NTR - Het verborgen leven van de kat - De leeuw op jouw schoot (03012017).mkv"
Ondertitelingstreams in Matroska daarentegen zijn voor mijn smart tv (en voor de meeste smart tv's waarschijnlijk) geen enkel probleem.
--------------------------------------------------------------------------------------------------------------------------------
Nu moet de (ingevoerde) begintijd opgesplitst worden in een voor FFMpeg -ss parameter voor vóór de input en een voor ná de input.
Invoer al dan niet converteren naar tijd en d.m.v. de 'from-time'-functies ontleden:
xidel-0.9.6.exe -s --color=never -e "let $a:='642' return let $a:=if ($a castable as time) then $a else $a * dayTimeDuration('PT1S') + time('00:00:00') return (ss1:=hours-from-time($a)*3600+minutes-from-time($a)*60,ss2:=seconds-from-time($a))"
ss1 := 600
ss2 := 42
Invoer al dan niet converteren naar tijd en d.m.v. tokenize ontleden:
xidel-0.9.6.exe -s --color=never -e "let $a:='00:10:42' return let $a:=tokenize(if ($a castable as time) then $a else $a * dayTimeDuration('PT1S') + time('00:00:00'),':') return (ss1:=$a[1]*3600+$a[2]*60,ss2:=$a[3])"
ss1 := 600
ss2 := 42
Invoer al dan niet converteren naar seconden en rekenkundig ontleden:
xidel-0.9.6.exe -s --color=never -e "let $a:='00:10:42' return let $a:=if ($a castable as time) then hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a) else $a return (ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss1 := 600
ss2 := 42
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Speciale gevallen verder uitwerken:
xidel-0.9.6.exe -s --color=never -e "let $a:='00:00:59' return let $a:=if ($a castable as time) then $a else $a * dayTimeDuration('PT1S') + time('00:00:00') return (ss1:=hours-from-time($a)*3600+minutes-from-time($a)*60,ss2:=seconds-from-time($a))"
xidel-0.9.6.exe -s --color=never -e "let $a:='00:00:59' return let $a:=tokenize(if ($a castable as time) then $a else $a * dayTimeDuration('PT1S') + time('00:00:00'),':') return (ss1:=$a[1]*3600+$a[2]*60,ss2:=$a[3])"
xidel-0.9.6.exe -s --color=never -e "let $a:='00:00:59' return let $a:=if ($a castable as time) then hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a) else $a return (ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss1 := 0 // ffmpeg.exe -ss 0 -i "..." is NIET hetzelfde als ffmpeg.exe -i "..." en moet dus niet worden toegekend!
ss2 := 59
xidel-0.9.6.exe ... '00:00:59' ... return ((hours-from-time($a)*3600+minutes-from-time($a)*60) ! (if (.=0) then () else ss1:=.),ss2:=seconds-from-time($a))"
xidel-0.9.6.exe ... '00:00:59' ... return (($a[1]*3600+$a[2]*60) ! (if (.=0) then () else ss1:=.),ss2:=$a[3])"
xidel-0.9.6.exe ... '00:00:59' ... return (if ($a<60) then () else ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss2 := 59
xidel-0.9.6.exe ... '00:01:00' ... return ((hours-from-time($a)*3600+minutes-from-time($a)*60) ! (if (.=0) then () else ss1:=.),ss2:=seconds-from-time($a))"
xidel-0.9.6.exe ... '00:01:00' ... return (($a[1]*3600+$a[2]*60) ! (if (.=0) then () else ss1:=.),ss2:=$a[3])"
xidel-0.9.6.exe ... '00:01:00' ... return (if ($a<60) then () else ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss1 := 60
ss2 := 00 // DEZE zou dus juist 60 moeten zijn voor de -ss ná de input
xidel-0.9.6.exe ... '00:01:00' ... return if (seconds-from-time($a)=0) then (ss1:=hours-from-time($a)*3600+minutes-from-time($a)*60-60,ss2:=60) else ((hours-from-time($a)*3600+minutes-from-time($a)*60) ! (if (.=0) then () else ss1:=.),ss2:=seconds-from-time($a))"
xidel-0.9.6.exe ... '00:01:00' ... return if (($a[2]*60+$a[3]) mod 60=0) then (ss1:=$a[1]*3600+$a[2]*60-60,ss2:=60) else (($a[1]*3600+$a[2]*60) ! (if (.=0) then () else ss1:=.),ss2:=$a[3])"
xidel-0.9.6.exe ... '00:01:00' ... return if ($a mod 60=0) then (ss1:=$a - 60,ss2:=60) else (if ($a<60) then () else ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss1 := 0 // ffmpeg.exe -ss 0 -i "..." is NIET hetzelfde als ffmpeg.exe -i "..." en moet dus niet toegekend worden!
ss2 := 60
xidel-0.9.6.exe ... '00:01:00' ... return if (seconds-from-time($a)=0) then ((hours-from-time($a)*3600+minutes-from-time($a)*60-60) ! (if (.=0) then () else ss1:=.),ss2:=60) else ((hours-from-time($a)*3600+minutes-from-time($a)*60) ! (if (.=0) then () else ss1:=.),ss2:=seconds-from-time($a))"
xidel-0.9.6.exe ... '00:01:00' ... return if (($a[2]*60+$a[3]) mod 60=0) then (($a[1]*3600+$a[2]*60-60) ! (if (.=0) then () else ss1:=.),ss2:=60) else (($a[1]*3600+$a[2]*60) ! (if (.=0) then () else ss1:=.),ss2:=$a[3])"
xidel-0.9.6.exe ... '00:01:00' ... return if ($a mod 60=0) then (if ($a=60) then () else ss1:=$a - 60,ss2:=60) else (if ($a<60) then () else ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss2 := 60
xidel-0.9.6.exe ... '00:01:01' ... return if (seconds-from-time($a)=0) then ((hours-from-time($a)*3600+minutes-from-time($a)*60-60) ! (if (.=0) then () else ss1:=.),ss2:=60) else ((hours-from-time($a)*3600+minutes-from-time($a)*60) ! (if (.=0) then () else ss1:=.),ss2:=seconds-from-time($a))"
ss1 := 60
ss2 := 1
xidel-0.9.6.exe ... '00:01:01' ... return if (($a[2]*60+$a[3]) mod 60=0) then (($a[1]*3600+$a[2]*60-60) ! (if (.=0) then () else ss1:=.),ss2:=60) else (($a[1]*3600+$a[2]*60) ! (if (.=0) then () else ss1:=.),ss2:=$a[3])"
ss1 := 60
ss2 := 01 // Alleen bij deze methode moet de 0 bij 1 t/m 9 nog weg
xidel-0.9.6.exe ... '00:01:01' ... return if ($a mod 60=0) then (if ($a=60) then () else ss1:=$a - 60,ss2:=60) else (if ($a<60) then () else ss1:=$a - ($a mod 60),ss2:=$a mod 60)"
ss1 := 60
ss2 := 1
xidel-0.9.6.exe ... '00:01:01' ... return if (($a[2]*60+$a[3]) mod 60=0) then (($a[1]*3600+$a[2]*60-60) ! (if (.=0) then () else ss1:=.),ss2:=60) else (($a[1]*3600+$a[2]*60) ! (if (.=0) then () else ss1:=.),ss2:=float($a[3]))"
ss1 := 60
ss2 := 1
'00:59:59' --> ss1:=3540 ss2:=59
'01:00:00' --> ss1:=3540 ss2:=60
'01:00:01' --> ss1:=3600 ss2:=1
'01:00:01.317' --> ss1:=3600 ss2:=1.317
Op 30 seconden opsplitsen (zoals FFMpeg voorbeeld hierboven) i.p.v. op de hele minuut:
xidel-0.9.6.exe ... '01:00:00' ... return if (seconds-from-time($a) mod 30=0) then ((hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a)-30) ! (if (.=0) then () else ss1:=.),ss2:=30) else ((hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a)-(seconds-from-time($a) mod 30)) ! (if (.=0) then () else ss1:=.),ss2:=seconds-from-time($a) mod 30)"
xidel-0.9.6.exe ... '01:00:00' ... return if (($a[2]*60+$a[3]) mod 30=0) then (($a[1]*3600+$a[2]*60+$a[3]-30) ! (if (.=0) then () else ss1:=.),ss2:=30) else (($a[1]*3600+$a[2]*60+$a[3]-($a[3] mod 30)) ! (if (.=0) then () else ss1:=.),ss2:=$a[3] mod 30)" // float() kan ook weg hierdoor
xidel-0.9.6.exe ... '01:00:00' ... return if ($a mod 30=0) then (if ($a=30) then () else ss1:=$a - 30,ss2:=30) else (if ($a<30) then () else ss1:=$a - ($a mod 30),ss2:=$a mod 30)"
ss1 := 3570
ss2 := 30
De laatste methode is duidelijk de kortste en efficiëntste, helemaal als er voor deze laatste stap geen extra code aan toegevoegd hoeft te worden.
-e "let $a:='01:00:00' return
let $a:=if ($a castable as time) then
hours-from-time($a)*3600+
minutes-from-time($a)*60+
seconds-from-time($a)
else
$a
return
if ($a mod 30=0) then (
if ($a=30) then
()
else
ss1:=$a - 30,
ss2:=30
) else (
if ($a<30) then
()
else
ss1:=$a - ($a mod 30),
ss2:=$a mod 30
)"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M.b.v. read() kan stdin uitgelezen worden:
xidel-0.9.6.exe -s --color=never -e "let $a:=read() return let $a:=if ($a castable as time) then (hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a)) else $a return if ($a mod 30=0) then (if ($a=30) then () else ss1:=$a - 30,ss2:=30) else (if ($a<30) then () else ss1:=$a - ($a mod 30),ss2:=$a mod 30)"
01:00:00 // Prompt, dus zelf in moeten vullen
ss1 := 3570
ss2 := 30
Dit werkt niet in een for-loop in batch, omdat alle uitvoer pas aan het einde wordt verwerkt, terwijl de tekst tussentijds moet worden weergeven:
xidel-0.9.6.exe -s --color=never -e "'Voer begintijd in (in seconden, of als uu:mm:ss[.xxx]): '" -e "let $a:=read() return let $a:=if ($a castable as time) then (hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a)) else $a return if ($a mod 30=0) then (if ($a=30) then () else ss1:=$a - 30,ss2:=30) else (if ($a<30) then () else ss1:=$a - ($a mod 30),ss2:=$a mod 30)"
Voer begintijd in (in seconden, of als uu:mm:ss[.xxx]): 01:00:00 // Prompt, dus zelf in moeten vullen
ss1 := 3570
ss2 := 30
Extra checks toevoegen voor :Download bij geen invoer, of als invoer 0 is:
xidel-0.9.6.exe -s --color=never -e "let $a:=read() return if ($a) then let $a:=if ($a castable as time) then (hours-from-time($a)*3600+minutes-from-time($a)*60+seconds-from-time($a)) else $a return if ($a=0) then () else if ($a mod 30=0) then (if ($a=30) then () else ss1:=$a - 30,ss2:=30) else (if ($a<30) then () else ss1:=$a - ($a mod 30),ss2:=$a mod 30) else ()"
-e "let $a:=read() return
if ($a) then
let $a:=if ($a castable as time) then
hours-from-time($a)*3600+
minutes-from-time($a)*60+
seconds-from-time($a)
else
$a
return
if ($a=0) then
()
else
if ($a mod 30=0) then (
if ($a=30) then
()
else
ss1:=$a - 30,
ss2:=30
) else (
if ($a<30) then
()
else
ss1:=$a - ($a mod 30),
ss2:=$a mod 30
)
else
()"
Bij ECHO !json! ^| %xidel% - (:Formats) komt de json al via stdin. Dus read() gaat hier niet werken.
--------------------------------------------------------------------------------------------------------------------------------
xidel-0.9.6.exe -s --color=never -e "unparsed-text-available('http://tt888.omroep.nl/tt888/POW_00942206')" // ANSI (1252)
false
xidel-0.9.6.exe -s --color=never -e "unparsed-text-available('http://tt888.omroep.nl/tt888/POW_00942206','LATIN1')"
true
In dit geval is -sub_charenc CP1252 nodig voor FFMpeg, maar ondanks dat gaat het hier om een coderingsfout bij de NPO, omdat 'München' niet goed wordt weergegeven:
xidel-0.9.6.exe -s --color=never -e "unparsed-text-lines('http://tt888.omroep.nl/tt888/POW_00942206','LATIN1')[9]"
Op de veiligheidsconferentie in MEunchen klinkt duidelijke taal over het Oekraiense conflict.
xidel-0.9.6.exe -s --color=never -e "unparsed-text-available('http://tt888.omroep.nl/tt888/VPWON_1269922')" // UTF-8