I'm attempting to use gstreamer for rtmp streaming. I was able to eliminate all
errors in the gstreamer log, and am now using this script, based on Per
Gunnarson's [last testing video](https://www.youtube.com/watch?v=fTBzSjNU0_4):
```
set("frame.video.width", 1920)
set("frame.video.height", 1080)
audio = mksafe(single("test.m4a"))
source = video.volume(audio)
output.gstreamer.audio_video(fallible=true,
video_pipeline=
"videoconvert ! x264enc bitrate=2000 ! video/x-h264,profile=main !
queue ! mux.",
audio_pipeline=
"audioconvert ! voaacenc bitrate=128000 ! queue ! mux.",
pipeline=
"flvmux streamable=1 name=mux ! rtmpsink
location=\"rtmp://a.rtmp.youtube.com/live2/foobar\"",
source)
```
*sidenote: i'm doing this because `output.youtube.live` fails with several
syntax errors - should i file an issue for that?*
However, once the actual streaming starts (after `[playlist(dot)txt:3] Prepared
<AUDIOFILE> (RID 170)`), all output simply stops. i waited for half an hour
(the test file runs 4 minutes), with no lifesign. even with ` GST_DEBUG=*:6 `,
there's no additional output. when i set `GST_DEBUG` to 2 (only errors), i get
nothing.
i was concerned about `video.volume` being too resource intensive, but the
process only uses moderate amounts of RAM and almost no CPU.
when i finally hit Ctrl-C, all i get is
```
2018/09/20 14:01:50 [main:3] Shutdown started!
2018/09/20 14:01:50 [main:3] Waiting for threads to terminate...
2018/09/20 14:01:50 [threads:3] Shuting down thread gstreamer_main_loop
2018/09/20 14:01:50 [threads:3] Thread "gstreamer_main_loop" terminated (1
remaining).
2018/09/20 14:01:50 [threads:3] Shuting down thread wallclock_gstreamer
```
, but the process doesn't shut down. not even `killall` is able to get to it,
only `killall -s KILL`.
i am once again stumped.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/630
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users