我正在尝试组合/合并两个 rtmp 流,然后将它们发布到另一个流
前任。:
ffmpeg -i rtmp://ip:1935/live/micMyStream7 -i rtmp://ip:1935/live/MyStream7 -strict -2 -f flv rtmp://ip:1935/live/bcove7
Run Code Online (Sandbox Code Playgroud)
场景如下,我得到了一个来自用户麦克风的流,它是第一个(micMyStream7),我也从另一个用户那里得到了一个流,但这个流有音频和视频(MyStream7)。
当用户在说话时,他们正在互相交谈,而另一个人只会在听,反之亦然。
我的想法是建立一个名为 (bcove) 的第三个流,它将“合并”他们两个,这样我就可以让观众只听他们之间的整个对话。
这是 ffmpeg 打印的日志,尽管我无法识别任何帮助我的消息。
paulo@paulo-desktop:~$ ffmpeg -re -i rtmp://ip:1935/live/micMyStream7 -i rtmp://ip:1935/live/MyStream7 -strict -2 -f flv rtmp://ip:1935/live/bcove7
ffmpeg version N-56029-g2ffead9 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 4 2013 11:05:57 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
configuration:
libavutil 52. 43.100 / 52. 43.100
libavcodec 55. 31.100 / 55. 31.100
libavformat 55. 16.100 / 55. 16.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter …Run Code Online (Sandbox Code Playgroud) 我正在开发一个使用UILocalNotifications的iOS应用程序.到目前为止一直很好,直到有人提出显示从用户所在的路线到他想去的地方的想法.
为此,我想我可能会得到最后一次激活的UILocalNotification(所有这些都将repeatInterval设置为每周或每天).
这是整个问题的来源,因为fireDate是我第一次安排它们:这是我的场景:
UILocalNotification* ln = [[UILocalNotification alloc] init];
ln.fireDate = date; // For instance 07/19/2014 10:00:00 (Saturday)
ln.repeatInterval = NSDayCalendarUnit;
[[UIApplication sharedApplication] scheduleLocalNotification:ln];
UILocalNotification* ln = [[UILocalNotification alloc] init];
ln.fireDate = date; // For instance 07/17/2014 11:00:00 (Thursday)
ln.repeatInterval = NSWeekCalendarUnit;
[[UIApplication sharedApplication] scheduleLocalNotification:ln];
Run Code Online (Sandbox Code Playgroud)
让我们想象一下:
下周四(2014年7月24日11:00:01)我想知道最后一次被解雇的UILocalNotification是第二个只在周四重复,第二天我想要第一个,因为它每天重复.
我试图按日期排序所有LocalNotifications但没有成功.
有没有人曾经遇到过类似于它的情况?
问候