
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (103)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
La gestion des forums
3 novembre 2011, parSi les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
Accès à l’interface de modération des messages
Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9036)
-
dash.js not playing mpd file generated by MP4Box
9 mars 2016, par user3291299I have transcoded and stripped the audio of an mp4 file as follows :
$ ffmpeg -codec:a libvo_aacenc -ar 44100 -ac 1 -codec:v libx264 -profile:v baseline -level 13 -b:v 2000k dir/out.mp4 -i dir/original.mp4
$ ffmpeg -i dir/out.mp4 -an dir/out_an.mp4
I’ve used the following MP4Box command to generate a mpd :
$ MP4Box -dash 30000 -dash-profile on-demand -segment-name out-seg -out dir/out_dash dir/out.mp4
This results in the following mpd file :
<?xml version="1.0"?>
<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500000S" type="static" mediapresentationduration="PT0H2M11.77S" profiles="urn:mpeg:dash:profile:full:2011">
<programinformation moreinformationurl="http://gpac.sourceforge.net">
</programinformation>
<period duration="PT0H2M11.77S">
<adaptationset segmentalignment="true" maxwidth="640" maxheight="360" maxframerate="30000/1001" par="16:9">
<contentcomponent contenttype="video" lang="und"></contentcomponent>
<contentcomponent contenttype="audio" lang="und"></contentcomponent>
<representation mimetype="video/mp4" codecs="avc1.42c00d,mp4a.40.02" width="640" height="360" framerate="30000/1001" sar="1:1" audiosamplingrate="44100" startwithsap="0" bandwidth="2097272">
<audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
<segmentlist timescale="1000" duration="30046">
<initialization sourceurl="out-seginit.mp4"></initialization>
<segmenturl media="out-seg1.m4s"></segmenturl>
<segmenturl media="out-seg2.m4s"></segmenturl>
<segmenturl media="out-seg3.m4s"></segmenturl>
<segmenturl media="out-seg4.m4s"></segmenturl>
<segmenturl media="out-seg5.m4s"></segmenturl>
</segmentlist>
</representation>
</adaptationset>
</period>
</mpd> -
Different filesizes for images generated using octave and python
22 février 2017, par Lakshay GargI am using python (scikit-image) and octave to generate 200 images as follows
Python3
import numpy as np
from skimage.io import imsave
images = [255*np.ones((100,100), dtype=np.uint8), # white
np.zeros((100,100), dtype=np.uint8)] # black
for i in range(200): # save alternating black and white images
imsave('%04d.png'%(i+1), images[i%2])Octave
pkg load image;
im1 = 255*ones(100,100); # white
im2 = zeros(100,100); # black
for i=1:200
name = sprintf('%04d.png', i);
if mod(i,2) == 0
imwrite(im1, name);
else
imwrite(im2, name);
end
endNext, I use ffmpeg to generate two videos (alternating white and black frames) from these two sets of images using the following command
ffmpeg -r 10 -loglevel quiet \
-i ./%04d.png -c:v libx264 \
-preset ultrafast -crf 0 ./out.mkv-
Sizes of image files generated by both these codes are different.
- Octave white : 192 bytes, black : 98 bytes
- Python white : 120 bytes, black : 90 bytes
-
Sizes of video files generated from these octave and python images are significantly different from each other.
- Octave filesize : 60 kilobytes
- Python filesize : 116 kilobytes
Why do we have this apparently very strange behavior ?
EDIT
Since it was suggested that the behavior might be dues to octave and python using different bit-depths to store the images, I changes the octave code to use 8 bit numbers
im1 = uint8(255*ones(100,100)); # white
im2 = uint8(zeros(100,100)); # blackand now the image file sizes are nearly the same
- Octave white : 118 bytes, black : 90 bytes
- Python white : 120 bytes, black : 90 bytes
but the problem is still the same for video files, octave : 60K, python : 116K
-
-
FFmpeg command : stream generated raw video over RTSP
21 juillet 2022, par Jan DiscartI'm looking into using FFmpeg for streaming an output generated by an application to another system in the same network. However, I find the list of commands a little daunting and hard to understand. So I hope I can ask your help in the matter.



My current usecase :
I have a Unity application which has a separate output stream of video and using a plugin I'm able to save that output to a videofile. The command used is to save this to file is :



ffmpeg -y -f rawvideo -vcodec rawvideo -pixel_format rgba -colorspace bt709 -video_size 1280x720 -framerate 30 -loglevel warning -i - -pix_fmt yuv444p -preset ultrafast -crf 0 test.mp4




The output format and such are already correct, but I'd like to stream this output directly over a network now, preferably using RTSP. Using the command below, where I replaced the
test.mp4
at the end withudp://127.0.0.1:23000
to test streaming over UDP, but this returns an IOException in Unity.


Any help in guiding me in the right direction is greatly appreciated.
Thanks in advance !