Mp4 to hls10/30/2023 ![]() The following vulnerabilities in the MP4 module (ngx_http_mp4_module) apply to NGINX Plus, NGINX Open Source, and NGINX Open Source Subscription. The vulnerabilities have been registered in the Common Vulnerabilities and Exposures (CVE) database and the F5 Security Incident Response Team (F5 SIRT) has assigned scores to them using the Common Vulnerability Scoring System (CVSS v3.1) scale. (NGINX Open Source Subscription is a specially packaged edition of NGINX Open Source available in certain geographies.) ![]() It looks like it works and the different players I've tried play the output video correctly, but of course it feels suboptimal: it takes a lot of time and the use of concat seem to be very artificial.Today, we are releasing updates to NGINX Plus, NGINX Open Source, NGINX Open Source Subscription, and NGINX Ingress Controller in response to recently discovered vulnerabilities in the NGINX modules for video streaming with the MP4 and Apple HTTP Live Streaming (HLS) formats, ngx_http_mp4_module and ngx_http_hls_module. So I end up by using filter_complex with concat: ffmpeg -i in.mkv -filter_complex ' concat=n=1:v=1:a=1 ' -map '' -map '' -f hls out.m3u8 My guess is that there is something wrong with -c copy (but frankly I don't quite understand what I'm doing). My next idea was to first convert in.mkv to in_tmp.mkv with only one audio stream and then use the gist above: ffmpeg -i in.mkv -map 0:v:0 -map -0:a:0 -c copy in_tmp.mkvįfmpeg -i in_tmp.mkv -c copy -f hls out.m3u8īut the result was identical to my previous attempt. I'm not sure why this solution doesn't work but depending on players and input files the video is not playing correctly (for example with hls.js the absence of the image is surrounded by only occasional sounds). ![]() I've then tried: ffmpeg -i in.mkv -map 0:v:0 -map -0:a:0 -c copy -f hls out.m3u8 I've tried different solutions with ffmpeg but non of them seem to be ideal.įor example ffmpeg -i in.mkv -codec: copy -f hls out.m3u8 from this gist works only if in.mkv has one audio stream (at least this is my understanding). ![]() I'm trying to convert some videos (in the different formats, e.g., mp4, mkv, avi) with multiple audio streams to HLS with only one audio. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |