
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (50)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (6129)
-
avformat with custom IO - threadsafe ?
30 mars 2020, par DanielConsider the following pseudo-code snippet :



init {
 avdevice_register_all
 avformat_network_init
}

thread {
 // open input
 av_find_input_format
 avformat_open_input
 avformat_find_stream_info

 // open output
 avformat_alloc_output_context2
 avio_alloc_context(outputbuffer,size,1,extradata,0,&staticWrite,0)
 avformat_new_stream
 avcodec_parameters_copy
 avformat_write_header

 loop {
 av_read_frame
 av_write_frame
 }
}

staticWrite {
 // here comes data
}




When I have only one thread everything works fully good.
However when there are more threads (2,3), there are unexpected crashes (mainly segfaults).



Now my goal with this question is not finding my segfaults, but I want to get a confirmation that the above snippet is good in terms of multi-threaded avformat, or if not, what else do I need to be able to use avformat's functions from multiple threads ?



ffmpeg was compiled with this config :



configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=armhf --target-os=linux --prefix=. --enable-mmal --enable-omx --enable-omx-rpi --enable-gpl --enable-nonfree --enable-pthreads --extra-ldflags='-Llib -Wl,-rpath-link,lib' --extra-libs=-ldl --extra-cflags=-Iinclude



-
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);``` -
Imagick refresh
25 septembre 2013, par Mikko Koppanen — ImagickAfter some hiatus I’ve been getting back on fixing bugs on Imagick and getting the code into more representable condition. This hiatus has been a result of busy work schedule and getting a new start-up running in Kuala Lumpur.
While fixing a bug related to clone keyword I came across the following resource : http://www.rubblewebs.co.uk/imagick/. The page contains quite a nice collection of Imagick operations and is definitely worth checking out.
On the other news, the development has been moved to Github. As I’ve been the most active developer of Imagick in the past years I decided to move the code to Github where rest of my projects are located : https://github.com/mkoppanen/imagick. For the past few days there has been quite a lot of development, mainly working on removing the excessive use of macros in the code to make things more readable and debuggable. This might be a good place to give thanks to Remi for fixing quite a lot of compile warnings and raising bugs regarding Fedora Packaging Policy. Most likely there will be a couple of beta releases in the near future.
As mentioned in the previous post Windows builds are now available via http://windows.php.net and my builds provided here should be considered obsolete.