ThongNH93 / javacv

Automatically exported from code.google.com/p/javacv
0 stars 0 forks source link

rtmpts / rtmps / crypto protocol on ffmpegframegrabber / ffmpegframerecorder support #436

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Fist of all, this is not a bug/problem report.

It's a how to enable rtmpts/rtmps/crypto protocol support on ffmpeg by 
rebuilding the latest javacv-0.7-cppjars.zip on a linux host.

in order to enable rtmpts/rtmps/crypto protocol support of javacv

please replace the build_all.sh and build_ffmpeg-android-arm.sh files that are 
located on the javacv-0.7-cppjars.zip with the attached files, and then run 
/build_all.sh android-arm.

NOTE: please change the appropriate values in the build_ffmpeg-android-arm.sh 
file.

that's all, after a successful compilation please follow the 
guide from here :
https://code.google.com/p/javacv/#Quick_Start_for_OpenCV_and_FFmpeg

and now the magic:
grabber = new FFmpegFrameGrabber("rtmps://yoursecurertmpserver.com");
or
recorder = new FFmpegFrameRecorder("rtmps://yoursecurertmpserver.com", 
imageWidth, imageHeight, 1);

Regards, and a huge thanks for this project.

Original issue reported on code.google.com by raTM...@gmail.com on 25 Feb 2014 at 3:53

Attachments:

GoogleCodeExporter commented 8 years ago
Looks great, thanks! It seems like this should be portable too. We'll want to 
make sure this works not only on Android, but also on other platforms. Let me 
know if you try it out on other platforms and the tricks required for those, 
thanks!

Original comment by samuel.a...@gmail.com on 1 Mar 2014 at 10:44

GoogleCodeExporter commented 8 years ago
Hi Samueal,
  I am also having problem playing rtmp livestream from server.
  Please provide me this latest jars,because i am having problem building jars.

Original comment by ramakant...@gmail.com on 5 Mar 2014 at 1:53

GoogleCodeExporter commented 8 years ago
@ramakant What kind of problem are you having?

Original comment by samuel.a...@gmail.com on 16 Mar 2014 at 1:22

GoogleCodeExporter commented 8 years ago
Hi Samueal,
first of all i'd like to appreciate your great work, i am using javacv for 
publishing the video stream from android device to Wowza server, now in other 
part of my implementation i need to play rtmp stream from server to android 
phone, can you please guide me how i can proceed???
any help/sample code will be great
thanks in advance

Original comment by khurrame...@gmail.com on 22 Mar 2014 at 1:59

GoogleCodeExporter commented 8 years ago
@raTMole Actually, I'm moving all that scripting to the JavaCPP Presets, which 
is already in a much better state than the equivalent inside JavaCV at the 
moment:
    http://code.google.com/p/javacpp/wiki/Presets#CPPBuild_Scripts
If you could provide the modifications required to that set of scripts, it'd be 
great! Thanks

Original comment by samuel.a...@gmail.com on 23 Mar 2014 at 1:52

GoogleCodeExporter commented 8 years ago
Hi Samuel,
I will try to modify the scripts, as soon as i can...
Right now, i have some limited time, but whenever i can i will try to make the 
changes.

thanks again.

Original comment by raTM...@gmail.com on 31 Mar 2014 at 7:46

GoogleCodeExporter commented 8 years ago
Hi Samuel,
the modified scripts for JavaCPP Presets are on github.

https://github.com/bytedeco/javacpp-presets/issues/2

Original comment by raTM...@gmail.com on 6 May 2014 at 10:38

GoogleCodeExporter commented 8 years ago
Hello Samuel,
   This is code,
   FFmpegFrameGrabber frameGrabber = new FFmpegFrameGrabber(
                "rtmp url");
   frameGrabber.setSampleFormat(avutil.AV_SAMPLE_FMT_S16);
   frameGrabber.setAudioChannels(1);
   frameGrabber.setSampleRate(16);
   frameGrabber.start();//getting following exception on this line

     com.googlecode.javacv.FrameGrabber$Exception: avcodec_find_decoder() error: Unsupported audio format or codec not found: 0.

Original comment by ramakant...@gmail.com on 1 Jul 2014 at 10:23

GoogleCodeExporter commented 8 years ago
I've added those in version 0.10, thanks for helping out with this!

Original comment by samuel.a...@gmail.com on 27 Dec 2014 at 3:49