
Recherche avancée
Autres articles (104)
-
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (8939)
-
A cast to int has gone wrong. android
24 février 2021, par Tanveerbynim having an issue while video mixing with audio. everytime when I try to make it.
That always give me an error which is




Java.lang.RuntimeException : A cast to int has gone wrong. Please contact the mp4parser discussion group.




Im using googlecode mp4 parser :
implementation com.googlecode.mp4parser:isoparser:1.1.22
and also tried that but no successimplementation 'org.mp4parser:isoparser:1.9.41'


Also on forum there's no proper answer on that question.


here's my code


public Track CropAudio(String videopath, Track fullAudio) {
 try {

 IsoFile isoFile = new IsoFile(videopath);

 double lengthInSeconds = (double)
 isoFile.getMovieBox().getMovieHeaderBox().getDuration() /
 isoFile.getMovieBox().getMovieHeaderBox().getTimescale();


 Track audioTrack = (Track) fullAudio;


 double startTime1 = 0;
 double endTime1 = lengthInSeconds;


 long currentSample = 0;
 double currentTime = 0;
 double lastTime = -1;
 long startSample1 = -1;
 long endSample1 = -1;


 for (int i = 0; i < audioTrack.getSampleDurations().length; i++) {
 long delta = audioTrack.getSampleDurations()[i];


 if (currentTime > lastTime && currentTime <= startTime1) {
 // current sample is still before the new starttime
 startSample1 = currentSample;
 }
 if (currentTime > lastTime && currentTime <= endTime1) {
 // current sample is after the new start time and still before the new endtime
 endSample1 = currentSample;
 }

 lastTime = currentTime;
 currentTime += (double) delta / (double) audioTrack.getTrackMetaData().getTimescale();
 currentSample++;
 }

 CroppedTrack cropperAacTrack = new CroppedTrack(fullAudio, startSample1, endSample1);

 return cropperAacTrack;

 } catch (IOException e) {
 e.printStackTrace();
 }

 return fullAudio;
}


public Runnable runnable = new Runnable() {
 @Override
 public void run() {

 try {


 Movie m = MovieCreator.build(video);


 List nuTracks = new ArrayList<>();

 for (Track t : m.getTracks()) {
 if (!"soun".equals(t.getHandler())) {
 nuTracks.add(t);
 }
 }

 Track nuAudio = new AACTrackImpl(new FileDataSourceImpl(audio));
 Track crop_track = CropAudio(video, nuAudio);
 nuTracks.add(crop_track);
 m.setTracks(nuTracks);


 Container mp4file = new DefaultMp4Builder().build(m);
 FileChannel fc = new FileOutputStream(new File(output)).getChannel();
 mp4file.writeContainer(fc);
 fc.close();

 try {
 Variables.closeProgressDialog();
 } catch (Exception e) {
 Log.d(Variables.tag, e.toString());
 } finally {
 Go_To_preview_Activity();
 }

 } catch (Exception e) {
 Variables.closeProgressDialog();
 // Toast.makeText(context, "Something went wrong"+ e.toString(), Toast.LENGTH_SHORT).show();
 //Go_To_preview_Activity();
 e.printStackTrace();
 Log.d(Variables.tag, e.toString());

 }

 }

};



-
usb capture device to "cast" stream
6 juin 2021, par cubesareneatim using a raspberry pi with a usb capture device (dmesg -w below)


[ 3825.105250] cx231xx 1-1.4:1.1: New device Geniatech Inc. Video Capture @ 480 Mbps (1f4d:0102) with 6 interfaces
[ 3825.105571] cx231xx 1-1.4:1.1: Identified as Geniatech OTG102 (card=17)
[ 3825.106698] i2c i2c-12: Added multiplexed i2c bus 14
[ 3825.106948] i2c i2c-12: Added multiplexed i2c bus 15
[ 3825.233031] cx25840 11-0044: cx23102 A/V decoder found @ 0x88 (cx231xx #0-0)
[ 3827.270228] cx25840 11-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes)
[ 3827.307022] cx231xx 1-1.4:1.1: v4l2 driver version 0.0.3
[ 3827.411911] cx231xx 1-1.4:1.1: Registered video device video0 [v4l2]
[ 3827.412183] cx231xx 1-1.4:1.1: Registered VBI device vbi0
[ 3827.418150] cx231xx 1-1.4:1.1: audio EndPoint Addr 0x83, Alternate settings: 3
[ 3827.418179] cx231xx 1-1.4:1.1: video EndPoint Addr 0x84, Alternate settings: 5
[ 3827.418203] cx231xx 1-1.4:1.1: VBI EndPoint Addr 0x85, Alternate settings: 2
[ 3827.418224] cx231xx 1-1.4:1.1: sliced CC EndPoint Addr 0x86, Alternate settings: 2



i want to stream the audio to "cast" dose this protocol have a more specific name ? its the one that Spotify and YouTube can send audio video to over local network ; little screen with a wifi signal in the bottom left corner.


i am thinking of going into ffmpeg or vlc to stream from usb to some cast program, dose anyone have any suggestions on where to start any key words so im not blindly googling ?
sorry this is so open ended, ill mark it solved with the best answer in like 5 days or when i finish this project ( turntable -> usb audio capture card on pi -> steam to cast protocol -> wifi speakers )


-
dnn : remove type cast which is not necessary
22 janvier 2021, par Guo, Yejundnn : remove type cast which is not necessary
- [DH] libavfilter/dnn/dnn_backend_native.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_avgpool.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_conv2d.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_dense.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_depth2space.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_maximum.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_pad.c
- [DH] libavfilter/dnn/dnn_backend_openvino.c
- [DH] libavfilter/dnn/dnn_backend_tf.c