Skip to content
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

Memory leak in gstreamer audio video pipeline #434

Closed
ghost opened this issue Apr 12, 2017 · 4 comments
Closed

Memory leak in gstreamer audio video pipeline #434

ghost opened this issue Apr 12, 2017 · 4 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Apr 12, 2017

Having an issue when running this basic script, combining random audio and video files, the memory usage grows and grows until the process is killed. Tested on both liquidsoap 1.1.0 and also built from the latest source. Gstreamer is 1.8.5. I believe this is a similar issue as #318

I also ran a valgrind profile on the process if that is any help in debugging: http://termbin.com/p4u8

set("frame.video.width", 1280)
set("frame.video.height", 720)
set("gstreamer.add_borders", false)
set("clock.allow_streaming_errors",false)

video = playlist(mode="randomize",reload=3600,reload_mode="watch","/home/user/video")
audio = playlist(mode="randomize",reload=3600,reload_mode="watch","/home/user/audio")

source = mksafe(mux_video(video=video,audio))

output.gstreamer.audio_video(
  video_pipeline=
    "videoconvert ! x264enc bitrate=3500 key-int-max=60 speed-preset=veryfast ! video/x-h264,profile=baseline ! queue !$
  audio_pipeline=
    "audioconvert ! voaacenc bitrate=128000 ! queue ! mux.",
  pipeline=
    "flvmux name=mux ! rtmpsink location=\"rtmp://127.0.0.1/stream/live live=1\"",
  source)
@toots toots self-assigned this Apr 14, 2017
@toots
Copy link
Member

toots commented Apr 14, 2017

Thanks for the report. I'll be looking at it when I get a chance.

@ghost
Copy link
Author

ghost commented Apr 19, 2017

Much appreciated! Please let me know if there is anything else I can do to aid in debugging/reproducing

@toots
Copy link
Member

toots commented Apr 27, 2017

Ok, so at first glance, it appears that you are running an old version and using the gstreamer plugin with it.

Is there any chance that you could try with a recent liquidsoap version compiled with gstreamer builtin (not as a plugin)? The opam install instructions should provide a quick way to get there: http://liquidsoap.fm/download.html

I'm asking b/c the bug might be fixed in the recent code and also the plugin build is now deprecated in favor of opam.

@toots
Copy link
Member

toots commented Aug 20, 2018

This should be fixed now!

@toots toots closed this as completed Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant