282 Commits

Author SHA1 Message Date
Zoe Roux
4fd25ce5ac
Switch to -f hls instead of -f segment
For now, disabled all audios variants since it's handling will be
entierly different.
Found out that audio and video segments don't need to lineup. (same
number/duration). As long as the whole file stays long enough it's fine.

Video handling now fails when there are too many keyfranmes close
enough (like 0.01, 0.3, 0.4, 2, 4). It would only output 3 segments
instead of the 5 we would want. We might get arround using fragments
containing more than 1 keyframe if we handle things right
2024-07-01 15:39:24 +00:00
Zoe Roux
59264bd42f
Add output ts offset 2024-07-01 09:58:30 +00:00
Zoe Roux
e85d2d4416
Try custom fmp4 movflags
It seems presentation time and durations are not consistent with
previous segments so the hls renderer can't keep up
2024-07-01 08:08:51 +00:00
Zoe Roux
2808da8f6f
wip: Switch to fmp4 intead of mgepg 2024-07-01 07:48:56 +00:00
Zoe Roux
df8b5658a7
Use Base64Url form for paths. (#556) 2024-06-30 09:02:38 +00:00
Zoe Roux
8d6b699f11
Add some codecs 2024-06-19 12:40:43 +00:00
Zoe Roux
c707e76bd6
Fast track extractions if there is no subtitles 2024-06-19 12:25:43 +00:00
Arthur Jamet
9dcbcce137 Transcoder: Use mediainfo to get duration for dummy keyframes + handle case when audio file has poster 2024-06-17 15:57:33 +00:00
Arthur Jamet
1c010c92db Transcoder: Support audio-only files 2024-06-17 15:57:33 +00:00
Zoe Roux
d7cb6f3c96
Fix RFC-6381 for some codecs 2024-06-16 19:32:42 +00:00
Zoe Roux
7e3a1743c0
Cope with ffmpeg not reporting videos bitrates 2024-06-16 19:10:58 +00:00
Zoe Roux
40f02760ab
Handle ISO-639-2 to IETF BCP 47 translation 2024-06-16 19:10:58 +00:00
Zoe Roux
c11e1cc8f0
Switch from mediainfo to ffprobe 2024-06-16 19:10:58 +00:00
Zoe Roux
32ccc54310
Fix sigsegf on mediainfo errors 2024-06-16 19:10:58 +00:00
Zoe Roux
e5e98f7fc8
Cleanup safe path setting location 2024-06-16 19:10:58 +00:00
Zoe Roux
9061b2e8d9
Fix video miss-cut because of start offset (#505) 2024-05-19 23:41:00 +00:00
Arthur Jamet
b6e0b5b328
Transcoder: Prevent Chapters Parsing from failiing when no chapters (#495) 2024-05-14 09:15:38 +02:00
Arthur Jamet
324afc8022 Transcoder: Make Chapter parsing simpler 2024-05-13 21:44:24 +02:00
Arthur Jamet
8a2343e76b Transcoder: Fix missing last chapter 2024-05-13 21:44:24 +02:00
Arthur Jamet
9222b2e2d3 Transcoder: More sturdy fix for faulty chapter parsing 2024-05-13 21:44:24 +02:00
Arthur Jamet
be0bd81107 Transcoder: Prevent error caused by buggy chapters parsing by mediainfo 2024-05-13 21:44:24 +02:00
Zoe Roux
d5d15eaea6
Prevent afk users from preventing transcode cleanup (#487) 2024-05-12 16:37:40 +00:00
Zoe Roux
83b1c6b398
Add eac3 to list of supported codecs 2024-05-12 17:47:21 +02:00
Zoe Roux
7e95370ce0
Add whole file mimetype in /info 2024-05-12 02:51:33 +02:00
Zoe Roux
629acf4855
Use builtin cmp.Or instead of custom one 2024-05-06 18:00:37 +02:00
Zoe Roux
8ee280de87
Clean file of .. or ./ before checking Abs. 2024-04-30 13:36:08 +02:00
Zoe Roux
5a4575a93d
Version transcoder cache 2024-04-28 01:02:33 +02:00
Zoe Roux
2eecb5174c
Remove x-route header and use a env var instead 2024-04-28 00:32:02 +02:00
Zoe Roux
da0f415ecf
Rework transcoder routes to use b64 path and check for file existance 2024-04-28 00:31:29 +02:00
Zoe Roux
d51ffa6848
Fix recommended typo (#431) 2024-04-22 23:57:29 +02:00
renovate[bot]
76a1b5c38f
fix(deps): update module github.com/labstack/echo/v4 to v4.12.0 (#427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-21 01:54:53 +02:00
dependabot[bot]
c46385d467
Bump golang.org/x/net from 0.19.0 to 0.23.0 in /transcoder (#425)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 15:06:28 +02:00
Zoe Roux
0c66363920
Use array syntax for cmds instead of bash style 2024-04-16 01:27:44 +02:00
renovate[bot]
152916b543
fix(deps): update github.com/zoriya/go-mediainfo digest to 07018f0 2024-04-08 21:57:32 +00:00
Zoe Roux
7c9bb11d14
Fix small segments cut at beginning of transcode blocks 2024-04-03 23:47:17 +02:00
Zoe Roux
3abdb0a4c4
Fix videostream handle flags 2024-04-03 23:47:17 +02:00
Zoe Roux
ea98598399
Use builtin max instead of custom one 2024-04-01 22:54:23 +02:00
Zoe Roux
0c387fc19a
Fix segments list having a greater length than capacity 2024-04-01 20:36:05 +02:00
Zoe Roux
c3bebdec01
Fix nvidia format change 2024-04-01 00:51:44 +02:00
Zoe Roux
d3ec0cab9b
Relax same codec check to not care about h264 level 2024-03-31 19:12:54 +02:00
Zoe Roux
0cf7b1369b
Remove usless logs 2024-03-31 16:00:25 +02:00
Zoe Roux
88f3f7a9ae
Include same quality transcoded level if codecs are differents 2024-03-30 23:16:59 +01:00
Zoe Roux
2ff507f641
Add codec info on transmux level of hls master playlist 2024-03-30 23:16:59 +01:00
Zoe Roux
3de751c880
Add rfc6381 codec on the /info endpoint 2024-03-30 23:16:59 +01:00
Zoe Roux
9a9e43269d
Fix 10bits encoding and enable software encoding fallback on vaapi hwaccel 2024-03-30 23:16:59 +01:00
Zoe Roux
12276ed034
Disable bitrate check to allow h265 to be transcoded to h264 2024-03-30 23:16:59 +01:00
Zoe Roux
5374666ac9
Move keyframes info into another struct to prevent invalid data race warnings 2024-03-24 23:53:25 +01:00
Zoe Roux
b08bfeceb6
Fix race condition on info retrival 2024-03-24 22:23:04 +01:00
Zoe Roux
e3cc80d32a Add presets support 2024-03-08 19:02:37 +01:00
Zoe Roux
d047e5d48a Format code 2024-02-26 22:41:14 +01:00