sunyinhui / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Send RTMP metadata #472

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using FFmpegFrameRecorder like followings.
and am surprised at the simplicity.

String ffmpeg_link = "rtmp://xxx.xxx.xxx.xxx:1935/live/livestream2";
recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth, imageHeight, 1);
recorder.setFormat("flv");
..

But I need send RTMP metadata like this(adobe action script).
How can I do this?
Thank you in advance.

var metaData:Object = new Object();
metaData.height = deviceCam.height;
metaData.width = deviceCam.width;
metaData.time = new Date().getTime();
netStream.send("onMetaData", metaData);
netStream.send("|RtmpSampleAccess", true, true);

Original issue reported on code.google.com by cool7...@gmail.com on 15 May 2014 at 6:42

GoogleCodeExporter commented 9 years ago
Is this by any chance related to issue #318 and issue #424?

Original comment by samuel.a...@gmail.com on 16 May 2014 at 2:13

GoogleCodeExporter commented 9 years ago
Please try calling FFmpegFrameRecorder.setMetadata() with this latest revision:
https://github.com/bytedeco/javacv/commit/70db4a5835e376d5e8b70c26b9668332054b46
96
And let me know if that works or not! Thanks

Original comment by samuel.a...@gmail.com on 6 May 2015 at 12:13