Use flat_map
Implement execute_rtmpdump