Skip to content

Commit

Permalink
Update sidecar.md
Browse files Browse the repository at this point in the history
  • Loading branch information
futzu authored Nov 16, 2024
1 parent 16954df commit 5b7d948
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@ a@debian:~/x9k3$ cat sidecar.txt
* The __insert_pts has to be valid for the video__, meaning if your insert_pts is 38103.868589, the video PTS has to be
less than 38103.868589 for the cue to be inserted.

* [adbreak2](https://github.com/futzu/adbreak2) can be used to generate splice inserts for sidecar files.

* Generate a "CUE-OUT" and "CUE-IN" with adbreak2
```js
a@fu:~/cuei$ adbreak2 --duration 240 --event-id=1234 --pts 1234.567890 --sidecar my_sidecar.txt

* Sidecar files can be made manually or generated by threefive
Writing to sidecar file: my_sidecar.txt

CUE-OUT PTS:1234.567889 Id:1234 Duration: 240.0
CUE-IN PTS:1474.567889 Id:1235

a@fu:~/cuei$ cat my_sidecar.txt
1234.56789,/DAlAAAAAAAAAP/wFAUAAATSf+/+Bp9rxv4BSZcABNIAAAAA9RqQjw==
1474.56789,/DAgAAAAAAAAAP/wDwUAAATTf0/+B+kCxgTTAAAAALukcWw=

```

* Sidecar files can also be generated by threefive
* Generate a sidecar file from an existing video
```py3
threefive sidecar video.ts
Expand Down

0 comments on commit 5b7d948

Please sign in to comment.