Open downthecrop opened 9 years ago
Livestreamer simply does the transport and does not attempt to encode or mux the resulting file. HLS streams are using the MPEG-TS container (.ts) but you can use a tool such as ffmpeg to remux or encode the file into any format you wish.
I pipe mine to FFmpeg like this for example if it helps:
livestreamer.exe --player-continuous-http --player-no-close "new.livestream.com/WCIV/live" best -O | ffmpeg.exe -re -i - -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 3000k -bufsize 1835k -pix_fmt yuv420p -flags -global_header output.mp4
you can change all the settings you want or need in ffmpeg this was just a sample
Hey I was wondering how I'm am supposed to use the -o command correctly. I get the file output but that file seems have issues. The file is always encodes as h264 MPG-4 part 10. What file extention should I be using to save these files? .mp4? Any web based video player (tried all the common jquery players and HTML 5 video tags) can't load the file, I read in another issue thread that the file could be missing metadata (seeking information)? The output files load fine in VLC and windows media player regardless of extention once downloaded locally.
Tldr: How can I "fix" a video recoded from an HLS twitch stream to be able to be read by a web based video player (flowplayer, jPlayer or HTML 5 video embed) and what file extention should I be using for these files?