-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rtmp streams are stored as mp4 files #1953
Labels
Comments
We can easily use the ffmpeg program from Java as well if that does what you need: |
What is the problem with my code? Javacv does not support such writing |
Well, you didn't set the codec, so maybe it's not using a codec supported by your player? |
Cannot play after encoder is set
|
Stored as flv files can be played
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,I want to store the rmtp stream as an mp4 file,For example, use the ffmpeg command :
ffmpeg -i rtmp://xx.com/3573613170/18573613170 -f mp4 -vcodec copy -acodec copy C:\Users\lhd\Desktop\2.mp4
But what should we do in javacv can you give me some advise? thank you! If there is some example code, that's perfect! thank you ~~
This is the code I tried to use javacv to complete this task, but the recorded video cannot be played:
Dependent version:
The text was updated successfully, but these errors were encountered: