
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (98)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (5025)
-
java.lang.UnsatisfiedLinkError : Couldn't load ffmpeg library findLibrary returned null
22 février 2017, par Muthukumar SubramaniamI am new to live streaming from android to youtube in android. I mentioned my Project Structrue and build the gradle file in android. FFmpeg library could not load in runtime.
Note : I am working in windows 10 and android studio 2.1.2
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
}
defaultConfig {
applicationId "com.ephron.mobilizerapp"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.4"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
assets.srcDirs = ['src/main/assets', 'src/main/assets/']
}
}
sourceSets { main {
jni.srcDirs = ['src/main/jni', 'src/main/jni/libs']
jni.srcDirs = ['libs']
jni.srcDirs = []
} }
}
dependencies {
testCompile 'junit:junit:4.12'
compile files('libs/httpclient-4.5.2.jar')
compile files('libs/httpcore-4.4.4.jar')
compile files('libs/httpmime-4.2.1.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.code.gson:gson:2.2.2'
compile 'com.google.firebase:firebase-messaging:9.2.0'
compile 'testfairy:testfairy-android-sdk:1.+@aar'
compile 'com.android.support:multidex:1.0.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'cn.aigestudio.wheelpicker:WheelPicker:1.1.2'
compile 'com.google.android.gms:play-services-maps:10.0.1'
compile 'com.google.apis:google-api-services-youtube:v3-rev182-1.22.0'
compile 'com.google.api-client:google-api-client-android:1.22.0'
compile 'com.google.http-client:google-http-client-gson:1.19.0'
compile 'com.google.android.gms:play-services-ads:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.android.gms:play-services-gcm:10.0.1'
compile files('libs/ffmpeg-android.jar')
}
apply plugin: 'com.google.gms.google-services'My Project Structure mentioned below Link
https://www.screencast.com/t/E0TFsMUi1
Application.mk file
APP_OPTIM := release
APP_ABI := all
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptionsAndroid.mk file
#
# Copyright (c) 2014 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# set NDK_PROJECT_PATH := D:/MobilizerApp/app/src/main/jni
WORKING_DIR := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PATH := $(WORKING_DIR)/../third_party/lame/libmp3lame
LOCAL_MODULE := lame
LOCAL_C_INCLUDES := $(WORKING_DIR)/../third_party/lame/libmp3lame \
$(WORKING_DIR)/../third_party/lame/include
LOCAL_CFLAGS := -DSTDC_HEADERS -std=c99
LOCAL_ARM_MODE := arm
APP_OPTIM := release
LOCAL_SRC_FILES := VbrTag.c \
bitstream.c \
encoder.c \
fft.c \
gain_analysis.c \
id3tag.c \
lame.c \
mpglib_interface.c \
newmdct.c \
presets.c \
psymodel.c \
quantize.c \
quantize_pvt.c \
reservoir.c \
set_get.c \
tables.c \
takehiro.c \
util.c \
vbrquantize.c \
version.c
#include $(BUILD_STATIC_LIBRARY)
include $(BUILD_STATIC_LIBRARY)
#include $(CLEAR_VARS)
#LOCAL_MODULE := mp3lame_a
#LOCAL_STATIC_LIBRARIES := lame
#include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_PATH := $(WORKING_DIR)
LOCAL_MODULE := ffmpeg
LOCAL_CFLAGS := -DHAVE_AV_CONFIG_H -std=c99 -D__STDC_CONSTANT_MACROS -DSTDC_HEADERS -Wno-deprecated-declarations
LOCAL_SRC_FILES := ffmpeg-jni.c
LOCAL_C_INCLUDES := $(WORKING_DIR)/libavcodec $(WORKING_DIR)/libavcodec/arm $(WORKING_DIR)/libavformat $(WORKING_DIR)/libavutil $(WORKING_DIR)/libavutil/arm
LOCAL_STATIC_LIBRARIES := lame
LOCAL_LDLIBS := -llog -lm -lz $(WORKING_DIR)/../third_party/lib/libavformat.a $(WORKING_DIR)/../third_party/lib/libavcodec.a $(WORKING_DIR)/../third_party/lib/libavfilter.a $(WORKING_DIR)/../third_party/lib/libavresample.a $(WORKING_DIR)/../third_party/lib/libswscale.a $(WORKING_DIR)/../third_party/lib/libavutil.a $(WORKING_DIR)/../third_party/lib/libx264.a $(WORKING_DIR)/../third_party/lib/libpostproc.a $(WORKING_DIR)/../third_party/lib/libswresample.a $(WORKING_DIR)/../third_party/lib/libfdk-aac.a
APP_OPTIM := release
include $(BUILD_SHARED_LIBRARY)FFMPEG.Java
package com.ephronsystem.mobilizerapp;
public class Ffmpeg {
static {
System.loadLibrary("ffmpeg");
}
public static native boolean init(int width, int height, int audio_sample_rate, String rtmpUrl);
public static native void shutdown();
// Returns the size of the encoded frame.
public static native int encodeVideoFrame(byte[] yuv_image);
public static native int encodeAudioFrame(short[] audio_data, int length);
} -
Sequencing MIDI From A Chiptune
28 avril 2013, par Multimedia Mike — Outlandish BrainstormsThe feature requests for my game music appreciation website project continue to pour in. Many of them take the form of “please add player support for system XYZ and the chiptune library to go with it.” Most of these requests are A) plausible, and B) in process. I have also received recommendations for UI improvements which I take under consideration. Then there are the numerous requests to port everything from Native Client to JavaScript so that it will work everywhere, even on mobile, a notion which might take a separate post to debunk entirely.
But here’s an interesting request about which I would like to speculate : Automatically convert a chiptune into a MIDI file. I immediately wanted to dismiss it as impossible or highly implausible. But, as is my habit, I started pondering the concept a little more carefully and decided that there’s an outside chance of getting some part of the idea to work.
Intro to MIDI
MIDI stands for Musical Instrument Digital Interface. It’s a standard musical interchange format and allows music instruments and computers to exchange musical information. The file interchange format bears the extension .mid and contains a sequence of numbers that translate into commands separated by time deltas. E.g. : turn key on (this note, this velocity) ; wait x ticks ; turn key off ; wait y ticks ; etc. I’m vastly oversimplifying, as usual.MIDI fascinated me back in the days of dialup internet and discrete sound cards (see also my write-up on the Gravis Ultrasound). Typical song-length MIDI files often ranged from a few kilobytes to a few 10s of kilobytes. They were significantly smaller than the MOD et al. family of tracker music formats mostly by virtue of the fact that MIDI files aren’t burdened by transporting digital audio samples.
I know I’m missing a lot of details. I haven’t dealt much with MIDI in the past… 15 years or so (ever since computer audio became a blur of MP3 and AAC audio). But I’m led to believe it’s still relevant. The individual who requested this feature expressed an interest in being able to import the sequenced data into any of the many music programs that can interpret .mid files.The Pitch
To limit the scope, let’s focus on music that comes from the 8-bit Nintendo Entertainment System or the original Game Boy. The former features 2 square wave channels, a triangle wave, a noise channel, and a limited digital channel. The latter creates music via 2 square waves, a wave channel, and a noise channel. The roles that these various channels usually play typically break down as : square waves represent the primary melody, triangle wave is used to simulate a bass line, noise channel approximates a variety of percussive sounds, and the DPCM/wave channels are fairly free-form. They can have random game sound effects or, if they are to assist in the music, are often used for more authentic percussive sounds.The various channels are controlled via an assortment of memory-mapped hardware registers. These registers are fed values such as frequency, volume, and duty cycle. My idea is to modify the music playback engine to track when various events occur. Whenever a channel is turned on or off, that corresponds to a MIDI key on or off event. If a channel is already playing but a new frequency is written, that would likely count as a note change, so log a key off event followed by a new key on event.
There is the major obstacle of what specific note is represented by a channel in a particular state. The MIDI standard defines 128 different notes spanning 11 octaves. Empirically, I wonder if I could create a table which maps the assorted frequencies to different MIDI notes ?
I think this strategy would only work with the square and triangle waves. Noise and digital channels ? I’m not prepared to tackle that challenge.
Prior Work ?
I have to wonder if there is any existing work in this area. I’m certain that people have wanted to do this before ; I wonder if anyone has succeeded ?Just like reverse engineering a binary program entails trying to obtain a higher level abstraction of a program from a very low level representation, this challenge feels like reverse engineering a piece of music as it is being performed and automatically expressing it in a higher level form.
-
My ExoPlayer Is opening Streams but no audio
21 décembre 2019, par OniI have created an app to play some m3u8/ts urls with exoplayer version 2.10.5
The urls play good but some of them has only video but no audio and some other urls it works as it should, having both video and audio. Some of the urls on vlc say that have aac audios and those links seems to play both video and audio. The app struggles play both audio and video on a part of the streams with mp2 audio, there are other streams with mp2 audio which play both audio and video. Thats why i don’t know what is going on, on audio mp2 40% of the links i have tried work good, and some of mp2 60% do not work with audio.
the debugI/ExoPlayerImpl: Init b6a37fa [ExoPlayerLib/2.10.5] [lv3n, LG-M200, LGE, 27]
D/INFO: ActivityVideoPlayer
E/FA: Task exception on worker thread: java.lang.NoSuchFieldError: No static field zzaqq of type [Ljava/lang/String; in class Lcom/google/android/gms/measurement/internal/zzcu; or its superclasses (declaration of 'com.google.android.gms.measurement.internal.zzcu' appears in /data/app/com.app.OniHD-d6Z9YgKSRXasFDMB0IqZuQ==/base.apk!classes2.dex): com.google.android.gms.measurement.internal.zzfy.zzcu(Unknown Source:161)
V/FA: Activity resumed, time: 868504897
W/Adreno-EGL: : EGL_BAD_ATTRIBUTE
D/vndksupport: Loading /vendor/lib/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
D/ActivityStreamPlayer: onTimelineChanged:
D/ActivityStreamPlayer: onLoadingChanged: true
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 1
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@af1afee time:281647215
W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
Unrecognized profile 2130706434 for video/avc
W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
Unrecognized profile 2130706434 for video/avc
D/ActivityStreamPlayer: onTracksChanged: 3
D/MediaCodec: CreateByComponentName name=OMX.qcom.video.decoder.avc
Mediacodec create pid=16947
init()++ name=OMX.qcom.video.decoder.avc,nameIsType=0,encoder=0
V/LGCodecAdapter: LG Codec Adapter start
load libLGCodecOSAL library
V/LGCodecOSAL: Just Validatation check function
I/ACodec: Now uninitialized
D/MediaCodec: kWhatInit received
I/ACodec: onAllocateComponent
I/OMXClient: Treble IOmx obtained
D/MediaCodec: onComponentAllocated() componentName=OMX.qcom.video.decoder.avc
I/ACodec: [OMX.qcom.video.decoder.avc] Now Loaded
D/MediaCodec: kWhatComponentAllocated received
D/MediaCodec: init()--
D/MediaCodec: kWhatConfigure received
D/SurfaceUtils: connecting to surface 0x76ff4808, reason connectToSurface
I/MediaCodec: [OMX.qcom.video.decoder.avc] setting surface generation to 17353729
D/SurfaceUtils: disconnecting from surface 0x76ff4808, reason connectToSurface(reconnect)
D/SurfaceUtils: connecting to surface 0x76ff4808, reason connectToSurface(reconnect)
V/LGCodecAdapter: called getLGCodecSpecificData
V/LGCodecOSAL: Called LGgetCodecSpecificDataMSG
V/LGCodecAdapter: called IsLGComponent
I/ExtendedACodec: setupVideoDecoder()
I/ExtendedACodec: Decoder will be in frame by frame mode
V/LGCodecOSAL: Called LGconfigureCodecMSG
Not support LGCodec
D/MediaCodec: onComponentConfigured()
D/MediaCodec: kWhatComponentConfigured received
D/MediaCodec: start()
D/MediaCodec: kWhatStart received
D/SurfaceUtils: set up nativeWindow 0x76ff4808 for 720x576, color 0x7fa30c04, rotation 0, usage 0x20002900
I/ACodec: [OMX.qcom.video.decoder.avc] Allocating 22 meta buffers on output port
I/ACodec: [OMX.qcom.video.decoder.avc] Now Idle->Executing
I/ACodec: [OMX.qcom.video.decoder.avc] Now Executing
I/ACodec: [OMX.qcom.video.decoder.avc] Now handling output port settings change
D/SurfaceUtils: set up nativeWindow 0x76ff4808 for 720x576, color 0x7fa30c04, rotation 0, usage 0x20002900
I/ACodec: [OMX.qcom.video.decoder.avc] Allocating 10 meta buffers on output port
I/ACodec: [OMX.qcom.video.decoder.avc] Now Executing
D/ActivityStreamPlayer: onPlayerStateChanged: true
I/zygote: Background concurrent copying GC freed 103397(7MB) AllocSpace objects, 70(2MB) LOS objects, 66% free, 5MB/17MB, paused 197us total 127.642ms
V/FA: Session started, time: 868507783
E/FA: Task exception on worker thread: java.lang.NoSuchFieldError: No static field zzaqr of type [Ljava/lang/String; in class Lcom/google/android/gms/measurement/internal/zzcu; or its superclasses (declaration of 'com.google.android.gms.measurement.internal.zzcu' appears in /data/app/com.app.OniHD-d6Z9YgKSRXasFDMB0IqZuQ==/base.apk!classes2.dex): com.google.android.gms.measurement.internal.zzaq.zzbt(Unknown Source:11)
I/zygote: Do full code cache collection, code=507KB, data=419KB
I/zygote: After code cache collection, code=502KB, data=339KB
V/FA: Inactivity, disconnecting from the service
I/zygote: Do partial code cache collection, code=506KB, data=343KB
I/zygote: After code cache collection, code=506KB, data=343KB
Increasing code cache capacity to 2MB
W/DpmTcmClient: Couldn't find 'tcm' socket after 120times. quit tryingExoPlayer -
private void setupPlayer() {
BANDWIDTH_METER = new DefaultBandwidthMeter.Builder(this)
.build();
mediaDataSourceFactory = buildDataSourceFactory(true);
RenderersFactory renderersFactory = new DefaultRenderersFactory(this);
TrackSelection.Factory videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory();
TrackSelector trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);
LoadControl loadControl = new DefaultLoadControl();
player = ExoPlayerFactory.newSimpleInstance(this, renderersFactory,
trackSelector,
loadControl);
playerView = findViewById(R.id.exoPlayerView);
playerView.setPlayer(player);
playerView.setRepeatToggleModes(REPEAT_TOGGLE_MODE_ALL);
playerView.setUseController(true);
playerView.requestFocus();
Uri uri = Uri.parse(url);
MediaSource mediaSource = buildMediaSource(uri, null);
player.prepare(mediaSource);
player.setPlayWhenReady(true);```