Skip to content

Configure %ffmpeg(%video.copy, %audio.copy, format='flv') not working. #1884

Answered by toots
sorintodys asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your email with the script, I was able to confirm the issue and fix it! Here's a script that works here with very little CPU usage:

audio.samplerate.set(48000)
audio.channels.set(2)
video.frame.width.set(640)
video.frame.height.set(360)
settings.frame.video.framerate.set(24)

settings.log.level.set(4)
settings.log.stdout.set(true)

mediaplaylist = playlist(mode='normal',reload_mode='watch','/tmp/video/pl')

security = single('/tmp/video/security.mp4')

mediaplaylist = fallback(track_sensitive=false, [security, mediaplaylist])

encoder = %ffmpeg(%video.copy, %audio.copy, format='flv')

output.url(url='rtmp://pstnet6.shoutcastnet.com:6100/live/stream', encoder, mediaplaylist)

Unl…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
10 replies
@sorintodys
Comment options

@toots
Comment options

toots Sep 9, 2021
Maintainer

@toots
Comment options

toots Sep 9, 2021
Maintainer

@sorintodys
Comment options

@sorintodys
Comment options

Comment options

You must be logged in to vote
2 replies
@sorintodys
Comment options

@toots
Comment options

Answer selected by smimram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #1883 on September 07, 2021 07:49.