We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was wondering if it could be possible set input as a MediaStream or MediaStreamTrack object and output to video or hls server, etc. like this:
const mediaStream = event.streams[0];
// Extract video and audio tracks from the media stream const videoTrack = mediaStream.getVideoTracks()[0]; const audioTrack = mediaStream.getAudioTracks()[0]; // Create FFmpeg process to generate HLS stream const ffmpegCommand = ffmpeg() .input(videoTrack) .input(audioTrack) .videoCodec('copy') .audioCodec('aac') .format('hls') .outputOptions([ '-hls_time 10', '-hls_list_size 6', '-hls_segment_filename output_%03d.ts', 'output.m3u8' ]) .output('output.m3u8');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was wondering if it could be possible set input as a MediaStream or MediaStreamTrack object and output to video or hls server, etc. like this:
const mediaStream = event.streams[0];
The text was updated successfully, but these errors were encountered: