Đây là bản demo thư viện android FFmpeg 4.0 được xây dựng trên bộ mã hóa Android MediaCodec H / W (H.264, AAC).
Bạn có thể sử dụng hai codec H / W mới - mc264, mcaac - thay vì libx264, aac.
--- github ---
https://github.com/iocaster/FFmpegMC264DemoApp
--- ví dụ ---
ffmpeg -v 24 -re -i /sdcard/movie.avi -vcodec mc264 -b: v 2M -acodec mcaac -b: a mpegts 128k udp: //192.168.123.181: 5555? pkt_size = 1316?
ffmpeg -v 24 -probesize 0,3M -i rtsp: //192.168.123.181/videodevice -vcodec mc264 -b: v 2.0M -r 30 -g 15 -an -max_muxing_queue_size 400 -f flv r.1 hiển thị / stream2
ffmpeg -v 24 -probesize 0,3M -i rtsp: //192.168.123.181/videodevice -vcodec mc264 -b: v 2.0M -r 30 -g 15 -an -max_muxing_queue_size 400 -f mpegts.1.1.1.1 5555? Pkt_size = 1316
- remove the time limit of streaming
- support YUV420Planar devices (ex: SAMSUNG Galaxy Note-10)
- support Android-10 devices