Comments (20)
Are you able to record only with the libstreaming ?
from libstreaming.
Did anyone find the solution of this problem yet? I am also experiencing this issue.
Thanks in advance.
from libstreaming.
[http://developer.android.com/reference/android/media/MediaMuxer.html](Media Muxer)
[http://bigflake.com/mediacodec/EncodeAndMuxTest.java.txt](example code)
It should be possible with this class and code, taking the mediacodec's output and giving it to the muxer before it's sent along the network in MediaCodecInputStream.java, but when I tried the video was very temperamental. It would only play in some video players, only seek to the nearest 30 seconds, and recording locked up some devices. I took it from kickflip's apache sdk, so it's safe to use. I wouldn't use it in production yet, but it's a good place to start.
@nuttee15
@alle1974
https://gist.github.com/sbaar/d473583e4cab2b53c41a
from libstreaming.
What's solution for this issue? The link from @sbaar has broken, 404 :( Can anyone help to solve this issue? Some link/gist might help.
Thanks for any help.
from libstreaming.
@ririsrismawati The link is working if you copy and paste it into the url bar, I don't know why clicking it gives 404 :/
from libstreaming.
I also met this problem, I want to record the stream on server and keep the stream preview on client at the same time, anyone has solved this problem?
Thanks,
John
from libstreaming.
Hi @sbaar thank you, the url working if I copy and paste it into the url bar.
I have seen your gist and make a start with AACStream.java but I still confuse about mMuxer. I want to make sure mMuxer is MediaMuxer isn't it? Can you explain more about mMuxer on AACStream.java?
Thank you before.
from libstreaming.
@ririsrismawati mmUxer in the AAC and VideoStream classes is the Muxer class in the gist, which encapsulates a regular MediaMuxer. It relies on video and audio being added with addTrack in MediaCodecInputStream to start recording. Basically, the muxer is intercepting the audio/video to save before the packets are sent out to the network. You want to set the muxer on both AV streams before they start recording like in BroadcastActivity.java so that the muxer recieve the start signals properly from the MediaCodec.
from libstreaming.
@sbaar I have added muxer to libstreaming, but I found the record resolution is too small(default:176x144). I want to record higher resolution, and there is no higher resolution need for client preview. But if I modified the videoquality to higher resolution, client preview resolution has also been modified. Could I improve record resolution without modifying client preview resolution?
Thanks you before.
from libstreaming.
I doubt it's possible using this library. You can try setting up a second media codec pair, but that would probably be a lot of work and it may not even be supported to have two encoders going at the same time on a lot of hardware. 320x240 is well supported on all hardware and 640x480 is on nearly all, so if bandwidth is not a limiting factor you can try those.
from libstreaming.
@sbaar thanks a lot
from libstreaming.
@yxnyxnyxnyxn I'm struggling to add muxer to libstreaming. Can you please explain me how to do this.
I follow to @sbaar but I haven't right idea how to add BroadcastActivity.java class and using 'mMuxer' in other classes.
from libstreaming.
Buenas noches, estoy intentando trabajar con este código pero no entiendo donde inicializar el mMuxer alguien puede ayudarme?
from libstreaming.
@ZaitPaulo Hola, create the muxer and give it to the video and audio tracks just before mClient.startStream(), to use the name given in example 3.
from libstreaming.
What is Example 3?
from libstreaming.
Making all the modifications that you indicate in the readme, finally I get the following code where it indicates to me that the setMuxer method is not found in the inputStream
from libstreaming.
Esto me sale en el logcat
from libstreaming.
@sbaar i m done all the implementation but, i can not understand how to set mMuxer in MediaCodecInputStream.java.
my movie.mp4 file is created but its size is 0 B,
from libstreaming.
@ashishBendale777 I'm have similar problem with MediaMuxer, trying to stream remote video and save it to file at the same time. For me problem is - "video stream have no keyframes". Also trying to find the way how to add them.
from libstreaming.
@ioKun how you set mMuxer in MediaCodecInputStream.java....?
from libstreaming.
Related Issues (20)
- [help] made a fork to mirror the screen (rather than the camera) but can't get the video stream to work.. I'm in over my head HOT 2
- MTU default 1300
- Does it have RTCP support?
- Does it have RTCP support? HOT 1
- Is there any receiver solution/example which decodes AAC format of audio? HOT 5
- Hi
- so if
- how to stream video over RTP Multicast
- Building cyber C HOT 1
- B HOT 2
- Urg
- Newbie
- hey bro HOT 2
- No
- Face recognition
- Streaming happens here:
- TrebEdit - Html Editor HOT 1
- T
- Hl
- Ccc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libstreaming.