Discussion:
Streaming camera and desktop simultaneously (eg. to stream presentations)
Add Reply
m***@spoje.net
2017-05-07 13:00:01 UTC
Reply
Permalink
Raw Message
Hello,
i have RTSP camera (on $CAM URL) and melt does excelent job restreaming
it to youtube live using RTMP like this:

melt -verbose -profile square_ntsc_wide "$CAM" -repeat 999 -filter crop
center=1 -consumer avformat:rtmp://a.rtmp.youtube.com/live2/"$KEY"
properties=x264-medium-main f=flv r=24 g=48 bf=0 refs=1 frequency=44100
real_time=1 vb=1000k ab=128k

i also can capture my desktop and stream it to the youtube like this:

melt profile hdv_720_25p x11grab::0.0+100,200?width=1280\&height=720
-repeat 999 -filter crop center=1 -consumer
avformat:rtmp://a.rtmp.youtube.com/live2/"$KEY"
properties=x264-medium-main f=flv r=24 g=48 bf=0 refs=1 frequency=44100
real_time=1 vb=1000k ab=128k



But what i really need is to somehow combine the two.

1.) overlay picture in picture having screen capture shown in corner of
camera view.
2.) having way to manualy select video source online while streaming
(while using audio from RTSP camera all the time)
3.) idealy combination of these two (switching between camera, screen,
screen over camera and camera over screen).

Is there way to achieve this? I've tried adding both to melt using
-join, and then using [j] and [k] buttons to switch between clips, but
all it does is to stop melt as soon as i press [j] (=next clip).

Any ideas?
David Noble
2017-05-07 21:13:44 UTC
Reply
Permalink
Raw Message
Hi,
Post by m***@spoje.net
Hello,
* some lines omitted *
Post by m***@spoje.net
But what i really need is to somehow combine the two.
1.) overlay picture in picture having screen capture shown in corner of
camera view.
2.) having way to manualy select video source online while streaming
(while using audio from RTSP camera all the time)
3.) idealy combination of these two (switching between camera, screen,
screen over camera and camera over screen).
Not entirely sure MLT is what you want to be using for vision mixing
in realtime. There are some very interesting other bits of software
that might do what you want:

https://nageru.sesse.net/ <-- very flexible, can handle many sources,
and at full framerate. Uses hardware acceleration.

https://github.com/voc/voctomix <-- Also flexible, but gstreamer
based, does not have as nice hardware acceleration features as Nageru.

http://dvswitch.alioth.debian.org/wiki/ <-- Oldschool. Wouldn't really
reccomend using it for starting any new projects.

Cheers,

David.
Dan Dennedy
2017-05-09 02:30:25 UTC
Reply
Permalink
Raw Message
Not to disagree with David, but to use melt in this fashion:
- use the composite transition to do picture-in-picture
- mock up each layout with inputs as a separate melt command line, and save
the result as MLT XML using -consumer xml:<name>.mlt
(the above does not save the consumer, which is good and fine)
- do not use "-join"; that is not used to make playlist entries; it
combines playlist entries
- make a playlist of each XML along with your consumer like: melt -profile
hdv_720_25p one.mlt two.mlt three.mlt four.mlt -consumer ...
Post by David Noble
Hi,
Post by m***@spoje.net
Hello,
* some lines omitted *
Post by m***@spoje.net
But what i really need is to somehow combine the two.
1.) overlay picture in picture having screen capture shown in corner of
camera view.
2.) having way to manualy select video source online while streaming
(while using audio from RTSP camera all the time)
3.) idealy combination of these two (switching between camera, screen,
screen over camera and camera over screen).
Not entirely sure MLT is what you want to be using for vision mixing
in realtime. There are some very interesting other bits of software
https://nageru.sesse.net/ <-- very flexible, can handle many sources,
and at full framerate. Uses hardware acceleration.
https://github.com/voc/voctomix <-- Also flexible, but gstreamer
based, does not have as nice hardware acceleration features as Nageru.
http://dvswitch.alioth.debian.org/wiki/ <-- Oldschool. Wouldn't really
reccomend using it for starting any new projects.
Cheers,
David.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mlt-devel mailing list
https://lists.sourceforge.net/lists/listinfo/mlt-devel
Loading...