
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (29)
-
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (2277)
-
How to repackage mov/mp4 file into HLS playlist with multiple audio streams
9 septembre 2022, par MartynaI'm trying to convert some videos (in the different formats, e.g., mp4, mov) which contain one video stream and multiple audio streams into one HLS playlist with multiple audio streams (treated as languages) and only one video stream.


I already browsed a lot of stack threads and tried many different approaches, but I was only able to find answers for creating different HLS playlists with different audios.


Sample scenario which I have to handle :


- 

- I have one mov file, containing one video stream and 2 audio streams.
- I need to create an HLS playlist from this mov file, which will use this one video stream, but would encode these 2 audio streams as language tracks (so let's say it's ENG and FRA)
- Such prepared HLS can be later streamed in the player, and the end user would have a possibility to switch between audio tracks while watching the clip.








What I was able to achieve is to create multiple hls playlists each with different audio track.


ffmpeg -i "file_name.mp4" \
-map 0:v -map 0:a -c:v copy -c:a copy -start_number 0 \
-f hls \
-hls_time 10 \
-hls_playlist_type vod \
-hls_list_size 0 \
-master_pl_name master_playlist_name.m3u8 \
-var_stream_map "v:0,agroup:groupname a:0,agroup:groupname,language:ENG a:1,agroup:groupname" file_name_%v_.m3u8



My biggest issue is that I'm having hard time understanding how
-map
and-var_stream_map
options should be used in my case, or if they even should be used in this scenario.

An example of the result of
ffmpeg -i
command on the original mov file which should be converted into HLS.

Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 8786 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
 Metadata:
 handler_name : Apple Video Media Handler
 vendor_id : [0][0][0][0]
 timecode : 00:00:56:05
 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:2[0x3](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]



I also checked this blogpost and I would like to achieve this exact effect, but with video, not with audio.




For example, -var_stream_map "v:0,a:0 v:1,a:0 v:2,a:0" implies that
the audio stream denoted by a:0 is used in all three video renditions.




-
Ffmpeg generate master playlist file in realtime
18 août 2022, par user994461I have playing with ffmpeg and HLS adaptive encoding, i want to make it somehow to encode one by one resolution and make/update master playlist file in realtime..
Example, when 240p is done master playlist file will be updated and video can be played in 240p while 480p,720p and etc... is still encoding in background.


I have try with this command and actualy this is working fine but not in way as i want...


/home/test/ffmpeg -i 1.mp4 
-map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0
-c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -c:a aac -ar 48000
-filter:v:0 scale="trunc(oh*a/2)*2:240" -maxrate:v:0 856k -bufsize:v:0 1200k -b:a:0 96k 
-filter:v:1 scale="trunc(oh*a/2)*2:480" -maxrate:v:1 1498k -bufsize:v:1 2100k -b:a:1 128k 
-var_stream_map "v:0,a:0,name:240p v:1,a:1,name:480p" 
-hls_time 4 -hls_list_size 0 -master_pl_name master.m3u8 -hls_segment_filename %v_%03d.ts %v.m3u8



This command above encoding all resolutions in same time and must finish all before i can watch it.


Any solution to make ffmpeg to encode 240p -> update playlist, encode 480p -> update playlist and etc...


-
Update .m3u8 playlist while live streaming
28 juillet 2022, par Juan TrejosIm using nginx-rtmp-module to create a RTMP server and I'm using hls directives to create the playlist.


hls on;
hls_path /var/www/html/cam/;
hls_fragment 10;
hls_nested on;
hls_playlist_length 7d;
hls_cleanup off;
hls_continuous on;
hls_fragment_naming system;



Now, I want to update manually the .m3u8 playlist file from this :


#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:12
#EXTINF:10.000,
1658833177814.ts
#EXTINF:10.000,
1658833187826.ts
#EXTINF:10.000,
1658833197826.ts



to this, when the streaming is "on line" :


#EXTM3U
#EXT-X-VERSION:3 
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:12
#EXTINF:10.000,
1658833197826.ts



if I do it when there is no live streaming, that works, but if i do it when there is a live streaming, the .m3u8 file becames as the original after the server finish the creation of the last chunk. Even if i delete the .m3u8 file, it is recreated as the original one.


I've also tryed it using ffmpeg instead of hls directives without success, and looked this solution but 😥😥