
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (65)
-
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 (12859)
-
Video Streaming shows not working in Micorsoft Edge
22 novembre 2018, par Ragesh SI am newbi in using Video streaming in ASP.Net MVC project. I have a video library webpplication, most of the videos are
.mp4
format. Please see my code below.Code
public HttpResponseMessage Get(string filename)
{
var filePath = new FileStreameHelpers().GetFilePath(filename);
if (!File.Exists(filePath))
return new HttpResponseMessage(HttpStatusCode.NotFound);
var response = Request.CreateResponse();
response.Headers.AcceptRanges.Add("bytes");
var streamer = new FileStreameHelpers();
streamer.FileInfo = new FileInfo(filePath);
response.Content = new PushStreamContent(streamer.WriteToStream, new FileStreameHelpers().GetMimeType(Path.GetExtension(filePath)));
RangeHeaderValue rangeHeader = Request.Headers.Range;
if (rangeHeader != null)
{
long totalLength = streamer.FileInfo.Length;
var range = rangeHeader.Ranges.First();
streamer.Start = range.From ?? 0;
streamer.End = range.To ?? totalLength - 1;
response.Content.Headers.ContentLength = streamer.End - streamer.Start + 1;
response.Content.Headers.ContentRange = new ContentRangeHeaderValue(streamer.Start, streamer.End,
totalLength);
response.StatusCode = HttpStatusCode.PartialContent;
}
else
{
response.StatusCode = HttpStatusCode.OK;
}
return response;
}
public async Task WriteToStream(Stream outputStream, HttpContent content, TransportContext context)
{
try
{
var buffer = new byte[6553600];
using (var video = FileInfo.OpenRead())
{
if (End == -1)
{
End = video.Length;
}
var position = Start;
var bytesLeft = End - Start + 1;
video.Position = Start;
while (position <= End)
{
var bytesRead = video.Read(buffer, 0, (int)Math.Min(bytesLeft, buffer.Length));
await outputStream.WriteAsync(buffer, 0, bytesRead);
position += bytesRead;
bytesLeft = End - position + 1;
}
}
}
catch (Exception ex)
{
// fail silently
Utilities.SaveException("FileStreameHelpers - WriteToStream", ex);
}
finally
{
outputStream.Close();
}
}it works fine in Firefox and Chrome but it shows error in Microsoft Edge browser like below.
HTML
<video width="320" height="240" controls="controls">
<source src="/api/Media/Get?filename=SampleVideo_1280x720_1mb.mp4" type="video/mp4">
Your browser does not support the video tag.
</source></video>The remote host closed the connection. The error code is 0x800703E3.
Please advice.
-
ffmpeg stream encoding out produce a stream shows different program on each start
15 octobre 2018, par Ryan PhilipI am using ffmpeg for almost one year, my stream recently started behaving badly.
The lines on ffmpeg screen started running crazy fast when restreaming it, causing more CPU (with no encoding). I have mapped the stream to select only one stream. But the problem is even with mapping I am getting different program each time when it is played.
Also each program it is playing for less than a minute. There is no specific error message showing on ffmpeg screen. Only the output is behaving badly.
I even tried ffmpeg version 3.3, 3.4 and 4.0 with same results.
It has so many resolution streams, so i selected only 33 (video) and 34 (audio), the ones with highest resolution.
ffmpeg -i "http://insourceip/stream.m3u8" -err_detect explode -c copy -map 0:33? -map 0:34? -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 out/music.m3u8
Please help me with this.
Below is the output : the one after (No longer receiving playlist 8) start running crazy when started.
Program 11
Metadata:
variant_bitrate : 1088000
Stream #0:33: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480 [SAR 12:11 DAR 16:11], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 1088000
Stream #0:34: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp
Metadata:
variant_bitrate : 1088000
Stream #0:35: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1088000
[hls @ 0x7a64120] Opening '/music1.ts' for writing
Output #0, hls, to '/music.m3u8':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480 [SAR 12:11 DAR 16:11], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
Metadata:
variant_bitrate : 1088000
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp
Metadata:
variant_bitrate : 1088000
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1088000
Stream mapping:
Stream #0:33 -> #0:0 (copy)
Stream #0:34 -> #0:1 (copy)
Stream #0:35 -> #0:2 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0x3d57120] No longer receiving playlist 10
[hls,applehttp @ 0x3d57120] No longer receiving playlist 1
[hls,applehttp @ 0x3d57120] No longer receiving playlist 3
[hls,applehttp @ 0x3d57120] No longer receiving playlist 5
[hls,applehttp @ 0x3d57120] No longer receiving playlist 7
[hls,applehttp @ 0x3d57120] No longer receiving playlist 9
[hls,applehttp @ 0x3d57120] No longer receiving playlist 0
[hls,applehttp @ 0x3d57120] No longer receiving playlist 2
[hls,applehttp @ 0x3d57120] No longer receiving playlist 4
[hls,applehttp @ 0x3d57120] No longer receiving playlist 6
[hls,applehttp @ 0x3d57120] No longer receiving playlist 8
***[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957897_1_av-b.ts' for reading
[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957898_1_av-b.ts' for reading
[hls @ 0x7a64120] Opening '/music2.ts' for writing
[hls @ 0x7a64120] Opening '/music.m3u8.tmp' for writing
[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957899_1_av-b.ts' for reading
[hls @ 0x7a64120] Opening '/music3.ts' for writing*** -
FFMpeg How to extract individual audio channels from wav/.w64 and insert in .mxf with track tags
11 septembre 2018, par VinceHi my problem is I have 2 .w64 files (extended wav format) each file has 16 mono channels of audio. I want to be able to extract specific channels of audio from each of those .w64 files and insert those channels into an .mxf file as separate single channel mono audio streams and to be additionally able to set the Tag information on those audio streams. I have tried using -map and so on but it seems to take all the channels from the .w64 files and insert a single audio stream of 16 channels. I apologise in advance as I’m very new to ffmpeg and thanks in advance for any advice any of you can offer. This is all specific to command line usage on windows.
All the bestffmpeg -i "D :\Media\AUDIO_0.W64" -i "D :\media\NO_AUDIO.mxf" -c copy -map 0:0:0 -map 0:0:1 -map 0:0:2 -acodec pcm_s24le -map 1:0 "D :\media\out.mxf"
ffmpeg version N-67838-g4388e78 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 19 2014 22:02:08 with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 54. 14.100 / 54. 14.100
libavcodec 56. 12.101 / 56. 12.101
libavformat 56. 14.100 / 56. 14.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[w64 @ 0481c580] Estimating duration from bitrate, this may be inaccurate
Input #0, w64, from 'D:\Media\AUDIO_0.W64':
Duration: 00:01:02.56, bitrate: 18432 kb/s
Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 16 channels
, s32 (24 bit), 18432 kb/s
[mxf @ 048890e0] index entry 1564 + TemporalOffset 1 = 1565, which is out of bou
nds
Input #1, mxf, from 'D:\media\NO_AUDIO.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000c0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name : FFmpeg
product_name : OP1a Muxer
product_version : 57.56.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
modification_date: 0000-01-01 00:00:00
timecode : 00:00:00:00
Duration: 00:01:02.60, start: 0.000000, bitrate: 2404 kb/s
Stream #1:0: Video: mpeg2video (4:2:2), yuv422p(tv), 1920x1080 [SAR 1:1 DAR16:9], max. 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
File 'D:\media\out.mxf' already exists. Overwrite ? [y/N] y
[mxf @ 04891c60] there must be exactly one video stream and it must be the first
one
Output #0, mxf, to 'D:\media\out.mxf':
Metadata:
encoder : Lavf56.14.100
Stream #0:0: Audio: pcm_s24le, 48000 Hz, 16 channels, s32 (24 bit), 18432 kb/s
Metadata:
encoder : Lavc56.12.101 pcm_s24le
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 16 channels, s32 (24 bit), 18432 kb/s
Metadata:
encoder : Lavc56.12.101 pcm_s24le
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 16 channels, s32 (24 bit), 18432 kb/s
Metadata:
encoder : Lavc56.12.101 pcm_s24le
Stream #0:3: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 50000 kb/s, 25 fps, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s24le (native) -> pcm_s24le (native))
Stream #0:0 -> #0:1 (pcm_s24le (native) -> pcm_s24le (native))
Stream #0:0 -> #0:2 (pcm_s24le (native) -> pcm_s24le (native))
Stream #1:0 -> #0:3 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Error
number -1 occurred