
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (40)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
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 (...)
Sur d’autres sites (11588)
-
Extracting subtitles of a mkv file using ffmpeg while downloading
19 août 2020, par Tim UntersbergerI am trying to stream a mkv file to a webpage, which is being downloaded using WebTorrent. The video file has ASS/SSA embedded subtitles. I am using electron to display the video, which uses chromium without proprietary codec support, so I have to use the following html :


<video controls="controls">
 <source src="video.mkv" type="video/webm">
<video></video>
</source></video>


Since chrome supports webm and they use the same container, I can watch the video with audio. Webm doesn't support embedded subtitles, so the subtitles of the video get ignored.


I am extracting the subtitles using the following command :


ffmpeg -i video.mkv -map 0:2 sub.vtt



This works fine, but requires the file to be downloaded completely. Is it possible to extract the subtitles while the file is being downloaded, so that I can begin streaming the video together with the subtitles as soon as possible ?


-
ffmpeg - how to handle video and audio URL's streams separately ?
13 mai 2022, par Rubem PacelliI am trying to create a
zsh
function that usesyoutube-dl
andffmpeg
to download a portion of a YouTube video. I did achieve this goal with the following function :

# $1 - youtube URL
# $2 - start position in hh:mm:ss.msms format (ms=miliseconds)
# $3 - final position in hh:mm:ss.msms format (ms=miliseconds)
# $4 - output file name (optional)
function youtubedl_snippet()(
 local url_stream=$(youtube-dl -f best --get-url $1)
 local output_name=$(youtube-dl --get-title $1)

 ffmpeg -ss $2 -to $3 -i $url_stream -c:v copy -c:a copy ${4:-"$output_name.mp4"}
)



The command
youtube-dl -f best --get-url $1
return a single URL with the best possible quality. In order to understand better howffmpeg
works, I tried to create another function with the same goal but with a different approach :

# $1 - youtube URL
# $2 - start position in hh:mm:ss.msms format (ms=miliseconds)
# $3 - final position in hh:mm:ss.msms format (ms=miliseconds)
# $4 - output file name (optional)
# $5 - output video codec type (optional, for instance: libx264)
# $6 - output audio codec type (optional, for instance: aac)
function youtubedl_snippet2()(
 local url_streams=$(youtube-dl --get-url $1)
 local output_name=$(youtube-dl --get-title $1)

 local url_array=(${(f)url_streams}) # expand urls by lines url_array[1] -> video stream url_array[2] -> audio stream

 ffmpeg -ss $2 -to $3 -i ${url_array[1]} -ss $2 -to $3 -i ${url_array[2]} -map 0:v -map 1:a -c:v ${5:-copy} -c:a ${6:-copy} ${4:-"$output_name.mp4"}
)



What I suppose that is going on here :


- 

url_streams
is a line-separated URL.url_array[1]
is the video URL andurl_array[2]
is the audio URL.- I am setting both audio and video to the same intervals.
- I mapped the first stream to video, and the second to audio
- If
$5
and$6
does not give different codecs,ffmpeg
just copy from the original source.










Well, it seems that everything is ok. But when I try


start=$SECONDS; youtubedl_snippet2 'https://www.youtube.com/watch?v=g-_hVXzkn0o' 00:00:05.00 00:00:15.00; echo "it takes $(( SECONDS - start )) seconds"



It will take 368 seconds. Moreover, I cannot open it in my android (only audio works)




On the other hand,


start=$SECONDS; youtubedl_snippet 'https://www.youtube.com/watch?v=g-_hVXzkn0o' 00:00:05.00 00:00:15.00; echo "it takes $(( SECONDS - start )) seconds"



takes only 40 seconds, and the video can be played on Android.


Here is the
youtubedl_snippet
log file. And here is theyoutubedl_snippet2
log file.

-
vvcdec : add CTU thread logical
5 décembre 2023, par Nuo Mivvcdec : add CTU thread logical
This is the main entry point for the CTU (Coding Tree Unit) decoder.
The code will divide the CTU decoder into several stages.
It will check the stage dependencies and run the stage decoder.Co-authored-by : Xu Mu <toxumu@outlook.com>
Co-authored-by : Frank Plowman <post@frankplowman.com>
Co-authored-by : Shaun Loo <shaunloo10@gmail.com>
Co-authored-by : Wu Jianhua <toqsxw@outlook.com>