New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving file output correctly #625

Open
BryceMatthes opened this Issue Dec 6, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@BryceMatthes

BryceMatthes commented Dec 6, 2014

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?

@chrippa

This comment has been minimized.

Owner

chrippa commented Dec 6, 2014

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.

@chrippa chrippa added the question label Dec 6, 2014

@dynamitemedia

This comment has been minimized.

dynamitemedia commented Dec 7, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment