Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use cvlc instead of ffmpeg? #3

Open
huapox opened this issue Feb 22, 2022 · 3 comments
Open

How to use cvlc instead of ffmpeg? #3

huapox opened this issue Feb 22, 2022 · 3 comments

Comments

@huapox
Copy link

huapox commented Feb 22, 2022

First, thx for the amazing tool!

  • 1.My current use with ffmpeg: (this works)
ffmpeg -y -nostdin -f pulse -i default  -f mp3 - | \
    curl -s -k -H "Transfer-Encoding: chunked" -X POST -T - \
    "http://localhost:9222/pulse.mp3?stream=true&advertise=true"
  • 2.And i want to try vlc, just like send to rtp:

cvlc t2.mp3 ':sout=#transcode{acodec=mp2,ab=128,channels=2}:duplicate{dst=rtp{mux=ts,dst=127.0.0.1,port=1234}}'

how could we use cvlc to send stream to broadcast-server?

@huapox
Copy link
Author

huapox commented Feb 22, 2022

Tested ok with:

':sout=#transcode{acodec=mp3,ab=52,channels=2}:standard{access=file,mux=mp3,dst=-}'

cvlc t2.mp3 ':sout=#transcode{acodec=mp3,ab=52,channels=2}:standard{access=file,mux=mp3,dst=-}'  | curl -k -H "Transfer-Encoding: chunked" -X POST -T -  'localhost:9222/cvlc01.mp3?stream=true&advertise=true'

@schollz
Copy link
Owner

schollz commented Feb 22, 2022

so cool! would you like to make a PR with that snippet in the readme?

@huapox
Copy link
Author

huapox commented Feb 23, 2022

so cool! would you like to make a PR with that snippet in the readme?

Sure, I'll with a PR latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants