This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i http://PRIMEIP:5004/auto/v1004 -async 1 -ss 00:00:05 -acodec libfdk_aac -vbr 3 \ | |
| -b:v \3000k -ac 2 -vcodec libx264 -preset superfast -tune zerolatency -threads 2 -s 1280x720 \ | |
| -flags -global_header -map 0:0 -map 0:1 -f segment -segment_time 10 -segment_list stream.m3u8 \ | |
| -segment_format mpegts -segment_wrap 10 -segment_list_size 6 -segment_list_flags live stream%03d.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * example C code using libcurl and json-c | |
| * to post and return a payload using | |
| * http://jsonplaceholder.typicode.com | |
| * | |
| * Requirements: | |
| * | |
| * json-c - https://github.com/json-c/json-c | |
| * libcurl - http://curl.haxx.se/libcurl/c | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header("Connection: close"); // not sure we need this one | |
| header("Content-Encoding: none"); | |
| include ("config.php"); | |
| use Carbon\Carbon; | |
| ignore_user_abort( true ); | |
| set_time_limit(0); | |
| register_shutdown_function('shutdown'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static std::string getClassName(JNIEnv *env, jobject entity, jclass clazz) | |
| { | |
| jmethodID mid = env->GetMethodID(clazz, "getClass", "()Ljava/lang/Class;"); | |
| jobject clsObj = env->CallObjectMethod(entity, mid); | |
| jclass clazzz = env->GetObjectClass(clsObj); | |
| mid = env->GetMethodID(clazzz, "getName", "()Ljava/lang/String;"); | |
| jstring strObj = (jstring)env->CallObjectMethod(clsObj, mid); | |
| const char* str = env->GetStringUTFChars(strObj, NULL); | |
| std::string res(str); |
NewerOlder