
Recherche avancée
Autres articles (66)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (12143)
-
How to detect Audio or Video or Both exist in converted file
28 juillet 2016, par Khaja HussainI am trying to convert mp4 or 3gp video files into Flash (flv) format (using Perl script), using following (mencoder) command :
mencoder test.mp4 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=1000:mbd=2 -fps 20.80 -ofps 20.80 -oac mp3lame -lameopts abr:br=32 -srate 22050 -o test.flv
It works fine, but some files which comes as attachments from mobile phone has problem, the converted FLV file has only audio.
I also used ffmpeg command as follows :
ffmpeg -i test.mp4 -ar 22050 -acodec libmp3lame -ab 32K -r 25 -vcodec flv test.flv
This ffmpeg command helps to convert to flv, which is failed by
mencoder
.I am thinking some solution like, need to check whether converted flv has audio and video then will take action depends on it. Could you help me to solve this issue ?
Here is some more info (log) :
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6b9a3a0]multiple edit list entries, a/v desync might occur, patch welcome
** MUXER_LAVF *************************************
REMEMBER : MEncoder’s libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong !
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
[flv @ 0xb6b9a3a0]Codec for stream 0 does not use global headers but container format requires global headers
[flv @ 0xb6b9a3a0]Codec for stream 1 does not use global headers but container format requires global headers
[flv @ 0xb6b9a3a0]pts < dts in stream 0
Error while writing frame.[flv @ 0xb6b9a3a0]pts < dts in stream 0
Error while writing frame.[flv @ 0xb6b9a3a0]pts < dts in stream 0
Error while writing frame.[flv @ 0xb6b9a3a0]pts < dts in stream 0
Error while writing frame.[flv @ 0xb6b9a3a0]pts < dts in stream 0
Error while writing frame.Skipping frame !
.........................
-
How to stream RTMP to Azure Media Services ?
26 octobre 2020, par AbbasI'm trying to stream my camera to Azure Media Services LiveEvent. I'm using Media Services' REST-API to obtain the ingest URL, however the docs don't mention how to stream RTMP from an Android Phone.


So far I've tried quiet a few Android RTMP publishing libraries available on Git but each one of them fails at establishing a connection. The list of libraries I've tried so far :


- 

- https://github.com/TakuSemba/RtmpPublisher (Fails internally NDK while opening a connection)
- https://github.com/pedroSG94/rtmp-rtsp-stream-client-java (Fails while expecting to receive a header from the ingest URL)
- And several others all exhibiting one of the two above mentioned behaviors.








I've also tried streaming from an mp4 video file using ffmpeg inspired from this SO Answer :


ffmpeg -re -i video.mp4 -vcodec libx264 -profile:v main -preset:v medium -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -b:v 2500k -maxrate 2500k -bufsize 2500k -filter:v scale="trunc(oha/2)2:720" -sws_flags lanczos+accurate_rnd -acodec aac -b:a 96k -ar 48000 -ac 2 -f flv rtmp://



But I'm getting :


rtmp://: I/O error



Am I missing something ?


Is it even at all possible to stream to an ingest URL without a middle tier as suggested by many Azure people is the way to go ?


Edit : I've successfully streamed to YouTube Live Streaming using two RTMP libraries and so I'm now pretty sure the issue is not with the RTMP streaming libraries but with how the Azure Live Streaming works. I'm definitely missing a step here.


-
Webm video files recorded on Chrome Mobile cannot be converted to MP4
7 juillet 2022, par Tobias KristensenI have a website where I record the user's webcam via the MediaRecorder API.
The video stream is created with navigator.mediaDevices.getUserMedia() :


// Create stream
const cameraStream = await navigator.mediaDevices.getUserMedia({ video: 
 { 
 aspectRatio: 1/1, 
 facingMode: 'user',
 width: { min: 360, ideal: 720, max: 1080 },
 height: { min: 360, ideal: 720, max: 1080 },
 deviceId: undefined
 } 
});

// Add stream to videoElement to display a video preview
videoElement.srcObject = cameraStream; 



I then check which mime types are available in the browser and use that info to initialize the MediaRecorder :


const validMimeTypes = [
 "video/webm\;codecs=vp8",
 "video/webm\;codecs=daala",
 "video/webm\;codecs=h264",
 "video/webm",
 "video/mpeg"
];

const getFirstAvailableMimeType = () => {
 for (const mimeType of validMimeTypes) {
 if (MediaRecorder.isTypeSupported(mimeType)) {
 return mimeType;
 }
 }
}

// Initialize Media Recorder
const mediaRecorder = new MediaRecorder(cameraStream, {
 mimeType: getFirstAvailableMimeType(),
});



After I finish recording a video, I upload it to a server and store it on Firebase Storage, so it can be downloaded later.


After downloading a video, I would like to convert it to an MP4 file. I've tried using CloudConvert and HandBrake. Both services have no issues converting videos that were recorded via Chrome on my desktop, but both fail when I try to convert videos recorded via Chrome Mobile on my phone.


When trying to convert the video to MP4 via CloudConvert, the following error is shown :


EBML header parsing failed. /input/import1/69fcceaccc27a0d6eabcb8a65045e87e.webm Invalid data found when processing input



Any ideas how I can resolve this issue ?