Hello! How can i decode video file only once, if this is possible, without 
re-decoding it again? Or something similar
Maybe some kind of cache or dunno
I am having video (image+text) + audio stream (mp3/flac)
And would like to add animated background, which is mp4 file
Part of my code is:
`
# VIDEO BASE
video = empty()

# IMAGE
video = video.add_image(x=600,y=0,file='some_image.jpg',video)

# BOTTOM BACKGROUND
bottom_background = single(length=4.0, 'background_bottom.mp4')
#bottom_background = video.scale(xscale=0.0, 
yscale=0.5,x=0,y=800,bottom_background)
video = add([video, bottom_background])

# ... then mux audio

#.. then output via gstreamer to restreamer.io
`

And when i run liquidsoap with --debug, i constantly see:
`2019/02/16 16:19:55 [decoder:4] Decoding "background_bottom.mp4" ended: 
Gstreamer.End_of_stream.
2019/02/16 16:19:56 [single_7599:3] Finished with "background_bottom.mp4".
2019/02/16 16:19:56 [decoder.gstreamer:4] Using GStreamer 1.15.1.
2019/02/16 16:19:57 [single_7599:3] Prepared "background_bottom.mp4" (RID 0).
2019/02/16 16:20:06 [decoder:4] Decoding "background_bottom.mp4" ended: 
Gstreamer.End_of_stream.
2019/02/16 16:20:07 [single_7599:3] Finished with "background_bottom.mp4".
2019/02/16 16:20:07 [decoder.gstreamer:4] Using GStreamer 1.15.1.
2019/02/16 16:20:07 [single_7599:3] Prepared "background_bottom.mp4" (RID 0).
2019/02/16 16:20:15 [decoder:4] Decoding "background_bottom.mp4" ended: 
Gstreamer.End_of_stream.
2019/02/16 16:20:15 [single_7599:3] Finished with "background_bottom.mp4".
2019/02/16 16:20:15 [decoder.gstreamer:4] Using GStreamer 1.15.1.
2019/02/16 16:20:15 [single_7599:3] Prepared "background_bottom.mp4" (RID 0).
2019/02/16 16:20:24 [decoder:4] Decoding "background_bottom.mp4" ended: 
Gstreamer.End_of_stream.
2019/02/16 16:20:24 [single_7599:3] Finished with "background_bottom.mp4".
2019/02/16 16:20:24 [decoder.gstreamer:4] Using GStreamer 1.15.1.
2019/02/16 16:20:25 [single_7599:3] Prepared "background_bottom.mp4" (RID 0).
`
And my stream has freezes always in these moments when Gstreamer decodes my mp4
I would like to loop the file playback somehow

Also, when i run my script as a daemon, it does not work all and i am not able 
to stop service untill i killall (reminds me of #483). But i hope i will fix it 
myself or this is another kind of issue mby
My script is working fine as daemon without this video tho

Link to mp4 file is: https://ufile.io/39q7h
Initially it was some hi-res video without audio 
(https://pixabay.com/en/videos/northern-lights-aurora-borealis-2267/)
I used converter and added some silence stereo sound to make things work

-- 
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/714
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to