megtartja az eredeti hangot is
ffmpeg -y -i multi_audiotest5.mkv -filter_complex "[0:a:0][0:a:1]amerge=inputs=2[a]" -map "[a]" -ac 2 -map 0 mixed_audio_output.mkv
+https://hlsbook.net/creating-a-master-playlist-with-ffmpeg/
+http://underpop.online.fr/f/ffmpeg/help/hls-2.htm.gz
+https://trac.ffmpeg.org/wiki/AudioChannelManipulation
+https://trac.ffmpeg.org/wiki/Map
+
+tools https://github.com/videojs/http-streaming#tools
+online coding https://replit.com/@vasary/Phind-Code-Snippet#pyproject.toml
+video host https://api.video
+
+https://mediaarea.net/hr/MediaInfo/Support/Fields
\ No newline at end of file
allow_methods=["*"],
allow_headers=["*"],
)
-app.mount("/video", StaticFiles(directory="hls"), name="VIDEO")
+app.mount("/static", StaticFiles(directory="static"), name="static")
@app.post("/submit")
+++ /dev/null
-ffmpeg -y -i d:\data\video\hls\ma.mkv ^
- -preset slow -g 48 -sc_threshold 0 ^
- -map 0:0 -map 0:1 -map 0:8 ^
- -s:v:0 960x540 -c:v:0 libx264 -b:v:0 2000k ^
- -c:a:0 aac ^
- -c:a:1 aac ^
- -var_stream_map "a:0,agroup:audio,default:yes a:1,agroup:audio v:0,agroup:audio" ^
- -master_pl_name master.m3u8 ^
- -f hls -hls_time 6 -hls_list_size 0 ^
- -hls_segment_filename "out/%%v/fileSequence%%03d.ts" ^
- out/%%v/prog_index.m3u8
+++ /dev/null
-https://hlsbook.net/creating-a-master-playlist-with-ffmpeg/
-http://underpop.online.fr/f/ffmpeg/help/hls-2.htm.gz
-https://trac.ffmpeg.org/wiki/AudioChannelManipulation
-https://trac.ffmpeg.org/wiki/Map
-
-tools https://github.com/videojs/http-streaming#tools
-online coding https://replit.com/@vasary/Phind-Code-Snippet#pyproject.toml
-video host https://api.video
-
-https://mediaarea.net/hr/MediaInfo/Support/Fields
\ No newline at end of file
-import json
-
import uvicorn
from loguru import logger
ffmpeg -y -i d:\data\video\hls\ma.mkv ^
- -map 0:0 -map 0:1 -map 0:8 ^
+ -map 0:v:0 -map 0:a:1 -map 0:a:1 ^
-var_stream_map "a:0,agroup:audio,default:yes a:1,agroup:audio v:0,agroup:audio" ^
-c:v libx264 ^
-profile:v main ^
--- /dev/null
+ffmpeg -y -i d:\data\video\hls\ma.mkv -filter_complex "[0:a:0][0:a:1]amerge=inputs=2[a]" -map 0:v -map "[a]" -c:v copy -ac 2 d:\data\video\hls\output.mkv
\ No newline at end of file
from loguru import logger
from pydantic import BaseModel
-from enum import Enum
import time
from hls import transcode_hls, TranscodeStatus
final ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(2);
// String sources[] = { "ftp://dani:dani@localhost/data/video/hls/ma.mkv" };
- String sources[] = { "ftp://dani:dani@localhost/data/video/X.MXF" };
-// String sources[] = { "ftp://dani:dani@localhost/data/video/N.mxf" };
+// String sources[] = { "ftp://dani:dani@localhost/data/video/X.MXF" };
+ String sources[] = { "ftp://dani:dani@localhost/data/video/N.mxf" };
String target = "ftp://dani:dani@localhost/data/video/hls/out/";
for (String source : sources) {
Runnable task = () -> {
log.info("Started");
MediaSamuraiAPI api = new MediaSamuraiAPI("http://localhost:8181/");
BasicDBObject job = new BasicDBObject();
+ job.put("profile", "hls");
job.put("source", source);
job.put("target", target);
job.put("frames", frames);