hi, i want to know if are possible to get live output or pipe with N_m3u8DL-RE instead recording?
Your help will apreciated
+ Reply to Thread
Results 1 to 20 of 20
-
Last edited by lasauce35; 8th Dec 2022 at 14:49.
-
theses options are for recording
-Download live stream as VOD
-Merge into FILE
-Keep segment when Recording
-Recording Time Limit -
I had the same idea and did not manage it. But it's most unlikely that it works somehow because there are two separate streams, picture and sound, that are not muxed in any way before. So first there should be something like a real-time-muxing before you can pipe the resulting stream.
But if you want to pipe to vlc there is another way: Just download. Vlc can open multiple files and synchronize. Open the picture-mp4 that is still recorded. On the dialog check "play another source synchron" and do so with the sound. Works for me. -
Thank you Quint for your reply,
I need live output for restream, probably with ffmpeg but not work with pipe function. i believe the only way i can use are launching 2 instances in the same time N_m3u8DL-re + ffmpeg to get segments and output with m3u8 playlist.
This method look complicated and need perfect sync..like removing old segments, etc. i'm not sure how to proceed with that
Probably in the future all-in-one tool will be appear.. -
Code:
https://github.com/nilaoda/N_m3u8DL-RE/releases/tag/v0.1.5-beta
Example:
Code:N_m3u8DL-RE.exe --save-name _TEST "https://cmafref.akamaized.net/cmaf/live-ull/2006350/akambr/out.mpd" --live-real-time-merge --tmp-dir TMP --live-pipe-mux --auto-select
-
--live-pipe-mux added to n_m3u8dl-re latest version today as well
https://github.com/nilaoda/N_m3u8DL-RE/compare/v0.1.4-beta...v0.1.5-beta -
-
Tried but no luck, it only generates a .ts file and i cannot pipe to any external software
Will try to fork the repo and compile it by myself to achieve this, if i succeed i will post the repo link -
Has anyone gotten live output to work? I have tried several combinations of --live-real-time-merge --live-pipe-mux --mp4-real-time-decryption and every time N_m3u8DL-RE just downloads the video first, then audio and only after everything is downloaded gives the output to a file.
-
-
Thanks for your reply! You are right that does indeed seem to work with livestreams (works for me even with --use-shaka-packager), but if I use that same command for a recording then it does not do the live output and downloads all the data first and then only outputs the file.
Code:N_m3u8DL-RE.exe --auto-select --live-pipe-mux --use-shaka-packager --save-name test --key kid:key url
-
While there does not seem to be any way to get N_m3u8DL-RE to output a stream directly to standard output, if you can run a bash script there is a workaround In your script, first create a named pipe using a command like "mkfifo filename.ts" - you may need to specify a path depending on your situation, but the filename must end in .ts. Then run N_m3u8DL-RE and be sure to include the options --save-name filename --live-real-time-merge --live-pipe-mux (the last two may or may not be needed, but probably are). Do NOT add .ts to the filename here, N_m3u8DL-RE will do that automatically. This WILL work with the -use-shaka-packager option if you are using that.
Now, if the program you are trying to feed the output to can use a file as input you just point it at filename.ts (for example in ffmpeg you would just use ffmpeg -i filename.ts to make it read from the stream) but if your program is expecting the stream on standard input, then you can try using the cat command to send your named pipe to standard output (cat filename.txt). Or you can use ffmpeg to send the stream to standard output by using the named pipe as input and "pipe:1" where you'd normally put the output filename (the simplest example would be "ffmpeg -i filename.ts -c copy pipe:1" but you can add other ffmpeg options as needed). In a bash script you probably should specify the full path to all programs and files, also don't forget to put an & at the end of any line that needs to run in the background (after it runs, you can use pid=$! as the next line in the script to get the process number to the variable $pid so you can kill it later if necessary).
Hope this helps someone.
Similar Threads
-
N_m3u8DL-RE subtitle
By ahmedani in forum Video Streaming DownloadingReplies: 4Last Post: 7th Dec 2022, 09:30 -
n_m3u8dl, no audio files?
By Xfinger in forum Video Streaming DownloadingReplies: 3Last Post: 14th Jan 2022, 07:15 -
N_m3u8DL-CLI Alternative?
By oknchm in forum Video Streaming DownloadingReplies: 9Last Post: 26th Dec 2021, 07:14 -
Unable to use N_m3u8DL because of | in header
By ng.newbie in forum Video Streaming DownloadingReplies: 7Last Post: 28th Sep 2021, 13:21 -
Ffmpeg - webm live input to HLS m3u8 live output
By 1ewis in forum Video ConversionReplies: 0Last Post: 15th Apr 2021, 08:54