Add support for -i pipe:0
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Inizia con FFmpegBuilder e il punto di ingresso per la gestione dei processi utilizzato dal wrapper Java; esamina come un supplier di InputStream proposto potrebbe alimentare il processo mentre addInput("pipe:0") seleziona stdin. Il lavoro è completato quando l’input live può essere trasmesso senza scrivere su disco, considerando la compatibilità con Java 8 e preservando il comportamento di output esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello, I need to transcode live videos,
essentially reading from an InputStream and pipeing the output into an OutputStream is what I need to do.
Unfortunately writing the file to disk is not possible for my use case.
I tried using 2 unix sockets which did work for some formats, but some input formats did not work that way. notably the MP4 demuxer
didnt like demuxing from a unix socket. It does however work with demuxing from stdin.
Sadly your CLI wrapper has no support for demuxing from stdin, so I have to rely on ProcessBuilder directly for this one task.
I wouldnt mind developing this as a feature and making a PR to this repo if you are intrested in this.
My idea would be to add a function to FFmpegBuilder that accepts a supplier to a InputStream.
A bit like this:
FFmpegBuilder builder = ...
Supplier<InputStream> streamSupplier = ...
builder.setStdIn(streamSupplier)
At some appropriate location in the library I would add this code or something similar:
(This may possible require starting of a "background" thread and I will maybe have to make adjustments for java 8 compat.)
Supplier<InputStream> streamSupplier = ...
Process proc = ...
if (streamSupplier != null) {
try(OutputStream outputStream = proc.getOutputStream();
InputStream stream = streamSupplier.get()) {
stream.transferTo(outputStream);
}
}
After these changes someone could then call
builder.addInput("pipe:0") to pipe the input from the InputStream.
For my usecase the output would still be a unix socket since my output muxer can write to the unix socket
and the input would be from the InputStream.
Tell me if you have any intrest in this feature and I will begin making it and give you a PR shortly.
- Lingua principale
- Java
- Stelle
- 1.9k
- Fork
- 424
- Merge medio
- 6h 7m
- PR unite (30g)
- 6
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bramp/ffmpeg-cli-wrapper
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
bramp/ffmpeg-cli-wrapper#408 · 1 commento ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
bramp/ffmpeg-cli-wrapper#392 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
bramp/ffmpeg-cli-wrapper#384 · 5 commenti ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
bramp/ffmpeg-cli-wrapper#383 ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
bramp/ffmpeg-cli-wrapper#382 · 1 commento ·
Tutte le issue di bramp/ffmpeg-cli-wrapper
Issue simili
-
certification
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Apertabug ecr
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Needs: Triage Type: Feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
github/copilot-sdk#2760 ·