Enable takeSnapShot for Android RTSP Problem

VLC for Android and Chrome OS specific usage questions
feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Enable takeSnapShot for Android RTSP Problem

Postby feldman3 » 28 Mar 2015 18:36

I have been having a lot of trouble compiling to enable the SnapShot functionality on Android. I have been referring to two forum posts https://forum.videolan.org/viewtopic.ph ... ot#p413287, and https://forum.videolan.org/viewtopic.php?f=32&t=122963. From what I can gather from these two posts, I should be able to take a snapshot by adding --enable-encoder=png to /vlc/contrib/src/ffmpeg/rules.mak and then enabling the sout module in configure.sh.

So far I have been unable to successfully compile with these parameters. I am having a few issues. Firstly, I don't have a file called configure.sh, or if I do I can't find it. I do have a file called configure.ac and I have tried removing --disable-sout from this file. This didn't work so I undid my changes, did a make clean, and then I found the list of VLC configuration parameters within compile-libvlc.sh so I removed --disable-sout from there. Still no success, and I also tried changing it to --enable-sout. I have deleted and re-cloned my vlc directory a few seperate times, and now I have reverted my changes and compilation still doesn't finish.

I get the same error every time, this is the relevant parts of the console output:

make[4]: Entering directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
CXX stream_out/chromecast/libstream_out_chromecast_plugin_la-cast.lo
CCLD libclone_plugin.la
CCLD libwall_plugin.la
In file included from ../../include/vlc_common.h:38:0,
from ../../modules/stream_out/chromecast/cast.cpp:40:
../../modules/stream_out/chromecast/cast.cpp: In function 'int Open(vlc_object_t*)':
../../include/vlc_config.h:46:35: error: 'INT64_C' was not declared in this scope
#define CLOCK_FREQ INT64_C(1000000)
^
../../modules/stream_out/chromecast/cast.cpp:288:44: note: in expansion of macro 'CLOCK_FREQ'
const mtime_t deadline = mdate() + 6 * CLOCK_FREQ;
^
make[4]: *** [stream_out/chromecast/libstream_out_chromecast_plugin_la-cast.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi'
make: *** [all] Error 2
vlc: make failed

Can anyone give me some insight?

Also note that before attempting these changes I was able to successfully build the application.

EDIT: I did a fresh pull of the project to start from scratch, made my changes and now I see the following error:

make[3]: Entering directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
make[2]: Leaving directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
make[1]: Leaving directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
touch .lame
contribs: make failed

JoaneK
New Cone
New Cone
Posts: 1
Joined: 28 Mar 2015 21:22

Re: Enable takeSnapShot for Android RTSP Problem

Postby JoaneK » 28 Mar 2015 22:00

I'm also trying to take enable the screenshot, and am having a similar problem. I've read the forums to enable sout in configure.sh, but this file does not exist in any directory, so I was also changing compile-libvlc.sh. --disable-sout was specified in two places: under VLC_CONFIGURE_ARGS and VLC_BOOTSTRAP_ARGS. When I changed it to enable in both of these places, I got an error that said

*** Download and check target not defined for sout. Stop.
contribs: make fetch failed

After this I deleted the enable-sout from the bootstrap arguments, and I have been getting this same error.

feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Re: Enable takeSnapShot for Android RTSP Problem

Postby feldman3 » 29 Mar 2015 00:11

Thank you for your reply. Hopefully we can get this figured out. I was wondering if you were editing any .cpp files yourself? From the posts I linked to above I was under the impression that I wouldn't have to, but the post here http://www.xuebuyuan.com/583744.html is making me think that I may. I was finally able to compile succesfully while enabling sout but takeSnapShot is still not defined. Not sure if I am doing something wrong of if there are steps that I am just missing.

feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Re: Enable takeSnapShot for Android RTSP Problem

Postby feldman3 » 29 Mar 2015 03:52

I added the function to the libvlcjni.c function and now my application recognizes the function, but so far I still been unable to take a snapshot. I keep getting the same error:

03-28 21:47:00.477 10382-10382/org.videolan.vlc.debug E/VLC﹕ [b870734c] core video output: Encoding support not compiled-in!
03-28 21:47:00.477 10382-10382/org.videolan.vlc.debug E/VLC﹕ [b870734c] core video output: Failed to convert image for snapshot

In response to this I have done about a dozen make cleans and recompiled, but the error persists. --enable-encoder=png is in my rule.mak file.

feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Re: Enable takeSnapShot for Android RTSP Problem

Postby feldman3 » 08 Apr 2015 19:10

I was able to successfully enable the snapshot feature by checking out an older version of VLC and following the directions here https://forum.videolan.org/viewtopic.ph ... ot#p413287 . I also had to manually add the take_snapshot function to the libvlc cpp and java files.

I checked out a version of the project from November (which is when that original forum post was made). I probably wouldn't reccomend that others do this, but it worked for me as I needed VLC almost exclusively for the snapshot feature.

athnkk
New Cone
New Cone
Posts: 1
Joined: 05 Jun 2018 09:29

Re: Enable takeSnapShot for Android RTSP Problem

Postby athnkk » 05 Jun 2018 10:55

i have q question.i have modified sout and rule.mk, but failed. vlc version 3.0.2. i should run what script ?


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 15 guests