Advertisement
darrel12

ffmpeg_strem_problem

Feb 20th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.73 KB | None | 0 0
  1. # Connect to AMI normally:
  2. ssh -i "mykey.pem" ubuntu@<AMI_public_ip>
  3.  
  4. # Stream from AMI to my local machine:
  5. ffmpeg -re -i some_audio.mp3 -acodec libmp3lame -f rtp rtp://<local_public_ip>:1234
  6.  
  7. # I've tried local machine listening with all 3 of the following methods:
  8. ffplay rtp://127.0.0.1:1234
  9.  
  10. # and:
  11. ffplay rtp://<local_public_ip>:1234
  12.  
  13. # and:
  14.  
  15. ffplay rtp://<AMI_public_ip>:1234
  16.  
  17.  
  18. #############
  19.  
  20.  
  21. # Connect to AMI with port forwarding, ssh is TCP so this probably isn't useful:
  22. ssh -i "mykey.pem" -R 1234:localhost:1234 ubuntu@<AMI_public_ip>
  23.  
  24. # Stream from AMI to my local machine:
  25. ffmpeg -re -i some_audio.mp3 -acodec libmp3lame -f rtp rtp://127.0.0.1:1234
  26.  
  27. # Local machine listening with the same as the above 3 methods
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement