
Recherche avancée
Médias (33)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (82)
-
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 ) (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 (9007)
-
Mp4 to HLS using ffmpeg
19 juin 2015, par Vishnu Kumar. SI’m trying to convert a local .mp4 video to HLS using ffmpeg in an iOS app. I have integrated the ffmpeg wrapper using pods and generated all the segmented .ts files and the m3u8 file, but some of the .ts file segments are not listed in the .m3u8 playlist file as shown below. It is always listing the last 5 video segments.
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:13
#EXTINF:2,
out13.ts
#EXTINF:1,
out14.ts
#EXTINF:2,
out15.ts
#EXTINF:2,
out16.ts
#EXTINF:1,
out17.ts
#EXT-X-ENDLISTI used the following codes to generate the HLS.
FFmpegWrapper *wrapper = [[FFmpegWrapper alloc] init];
[wrapper convertInputPath:inputFilePath outputPath:outputFilePath options:nil progressBlock:^(NSUInteger bytesRead, uint64_t totalBytesRead, uint64_t totalBytesExpectedToRead) {
} completionBlock:^(BOOL success, NSError *error) {
success?NSLog(@"Success...."):NSLog(@"Error : %@",error.localizedDescription);
}];Is there any other methods to do this ?
-
avformat/hlsenc : added HLS encryption
15 juin 2015, par Christian Sulowayavformat/hlsenc : added HLS encryption
Added HLS encryption with -hls_key_info_file <key_info_file> option. The
first line of key_info_file specifies the key URI written to the
playlist. The key URL is used to access the encryption key during
playback. The second line specifies the path to the key file used to
obtain the key during the encryption process. The key file is read as a
single packed array of 16 octets in binary format. The optional third
line specifies the initialization vector (IV) as a hexadecimal string to
be used instead of the segment sequence number (default) for encryption.
Changes to key_info_file will result in segment encryption with the new
key/IV and an entry in the playlist for the new key URI/IV.Key info file format :
<key URI>
<key file path>
<IV> (optional)Example key URIs :
http://server/file.key
/path/to/file.key
file.keyExample key file paths :
file.key
/path/to/file.keyExample IV :
0123456789ABCDEF0123456789ABCDEFExample :
ffmpeg -f lavfi -i testsrc -c:v h264 -hls_key_info_file file.keyinfo
foo.m3u8file.keyinfo :
http://server/file.key
/path/to/file.key
0123456789ABCDEF0123456789ABCDEFExample shell script :
BASE_URL=$1 :-’.’
openssl rand 16 > file.key
echo $BASE_URL/file.key > file.keyinfo
echo file.key >> file.keyinfo
echo $(openssl rand -hex 16) >> file.keyinfo
ffmpeg -f lavfi -re -i testsrc -c:v h264 -hls_flags delete_segments \
-hls_key_info_file file.keyinfo out.m3u8
—Signed-off-by : Christian Suloway <csuloway@globaleagleent.com>
Signed-off-by : Dan Dennedy <dan@dennedy.org>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at> -
Ffmpeg - Incorrect codec parameters
29 avril 2015, par DevPMI always got the following error, when trying to connect ffmpeg with ffserver :
But let’s start with the theory :
I want to Broadcast a stream, which is already existing in the internet (to able to do some analytic stuff on the stream).
So my idea is as follows :
i have one ubuntu-server (currently ubuntu-desktop version 12.x on a virtual machine, i will change it to a real server later...).
and i want to run on the server :ffmpeg, which should record the live-stream (and saves it locally)
ffserver, for broadcasting the same live-stream, using the rtp protocoll (because of the timestamp-header in the protocoll).
so if i understoot the documentation correctly, this is my idea :
- start ffserver from linux-terminal
(ffserver -f ~/Desktop/ffserver.conf
)
- start ffmpeg and connect to the feed of ffserver
(ffmpeg -re -i "http://InternetStreamer.sdp/playlist.m3u8" -vcodec libx264 -s 320x240 -pix_fmt yuv420p -vb 200000 -minrate 200000 -maxrate 200000 -bufsize 2000000 -acodec libmp3lame -ab 128k -ar 44100 -f rtp -an http://localhost:8090/feed1.ffm
)
(I am getting the Stream from the URL "http://InternetStreamer.sdp/playlist.m3u8" and want sent it to ffserver(also i want to save it locally for backup later...))now when i start ffmpeg i get the following error :
Could not write header for output file #0 (incorrect codec parameters ?)Last thing to say is that is very important to broadcast the stream with RTP-Protocoll. (Best case would be directly from ffmpeg, because then the RTP-headers are as set as early as possible)
my server.conf looks like follows :
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemon
<feed>
#file ffmpeg http://localhost:8090/feed1.ffm
#Format rtp
#File /tmp/feed1.ffm
#FileMaxSize 200K
File /tmp/cam1.ffm
ACL allow 127.0.0.1
#VideoFrameRate 25
</feed>
<stream>
Feed feed1.ffm
Format rtp
#VideoFrameRate 25
#Hier: alle parameter von ffmpeg angeben!
#-re -i "http://apasfiisl.apa.at/ipad/orf2_q4a/orf.sdp/playlist.m3u8"
#-vcodec libx264
#-s 320x240
#-pix_fmt yuv420p
#-vb 200000
#-minrate 200000
#-maxrate 200000
#-bufsize 2000000
#-acodec libmp3lame
#-ab 128k
#-ar 44100
#AudioBitRate 32
#AudioChannels 1
#AudioSampleRate 44100
#VideoBitRate 64
#VideoBufferSize 40
VideoFrameRate 3
#VideoSize 160x128
#VideoGopSize 12
</stream>
##################################################################
# Special streams
# Server status
<stream>
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
</stream>
# Redirect index.html to the appropriate sites
<redirect>
URL http://www.ffmpeg.org/
</redirect>####################################################################
This is the full console output from ffmpeg :
####################################################################The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
[applehttp @ 0x91fa240] max_analyze_duration reached
[applehttp @ 0x91fa240] Estimating duration from bitrate, this may be inaccurate
Seems stream 1 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 25.00 (25/1)
Input #0, applehttp, from 'http://InternetStreamer.sdp/playlist.m3u8':
Duration: N/A, start: 61442.038956, bitrate: N/A
Stream #0.0: Data: [21][0][0][0] / 0x0015
Metadata:
variant_bitrate : 831114
Stream #0.1: Video: h264 (Main), yuvj420p, 640x360 [PAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 180k tbc
Metadata:
variant_bitrate : 831114
Stream #0.2: Audio: aac, 44100 Hz, stereo, s16
Metadata:
variant_bitrate : 831114
[buffer @ 0x9215720] w:640 h:360 pixfmt:yuvj420p
[scale @ 0x9434300] w:640 h:360 fmt:yuvj420p -> w:320 h:240 fmt:yuv420p flags:0x4
[libx264 @ 0x923a560] using SAR=4/3
[libx264 @ 0x923a560] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x923a560] profile Main, level 1.3
Output #0, rtp, to 'http://localhost:8090/feed1.ffm':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: libx264, yuv420p, 320x240 [PAR 4:3 DAR 16:9], q=-1--1, 200 kb/s, 90k tbn, 25 tbc
Metadata:
variant_bitrate : 831114
Stream mapping:
Stream #0.1 -> #0.0
Could not write header for output file #0 (incorrect codec parameters ?)Kind Regards
DevPM