g****i 发帖数: 301 | 1 请教一个问题.谢谢.
我正在用Java JMF 做一个streaming server, 可是,jmf很长时间没有更新了,没有支
持mp4, h264。请问如何加入mp4, h264。谢谢。
其实别人问了一样的问题,可是没有好的回答阿。谢谢。
https://forums.oracle.com/forums/thread.jspa?threadID=1276953&tstart=330
Hi All,
I want to add support in jmf to stream RTP streams for MP4 files. For this i
used Fobs4Jmf to read mp4 files from the local system. As fobs4jmf only
read MP4 file from local system and render it on jmstudio, but not able to
create MP4V/RTP and MP4A/RTP, therefore i tried writing my own packetiser
for MP4 files. But then i realised fobs4jmf uses FFMPEG_VIDEO codec to read
all videos and FFMPEG_AUDIO codec to read all audios. FFMPEG_VIDEO converts
all video types MP4,mpeg etc to RGB format and FFMPEG_Audio converts all
audio types to LINEAR format. Now i want to send this data in MP4/RTP packet
but have no idea how to convert RGB in MP4V and Linear into MP4A.
I think i am missing something. Or i am doing it all together wrong.
My ultimate aim is to stream videos to mobile using RTSP. I have written my
RTSP server but for that i need RTP streams.
Is there any other way to stream RTP streams to mobile from jmf.
Kindly help me i am totally stuck. | s******e 发帖数: 493 | 2 I am not sure why you wanna write your own streaming server. For live server
, wowza can be a good choice. It supports both rtsp and rtmp protocol, even
the live conversion between two. The only problem is that it is commercial.
I think it is about $500 per licence.
if you really want to write your own server, take a look at xuggler, it is a
wrapper on top of ffmpeg.
About RGB format, I could not follow you. I think that is a pixel type
format like yuv, it is kind of independent of video format or codec. Maybe I
get you wrong. |
|