
Recherche avancée
Autres articles (27)
-
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 (...) -
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 (...) -
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 (2939)
-
how do I only output a single video stream per HLS output
20 octobre 2018, par Marc ArchenaultI have successfully output 3 HLS output using -map 360, 720 & 1080p. My source file is 540p. once generated I use ffprobe on the newly created 360.ts, 720.ts, and 1080.ts and notice that there is a second video channel. This channel is the input video. How do I have FFmpeg not output the original video as part of the output ?
this is the ffprobe on 360.ts
Stream #0:0[0x100] : Video : h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:10x101 : Audio : aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 100 kb/s
Stream #0:2[0x102] : Video : h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbcThis is the FFmpeg command
%ffmpeg% -loglevel fatal -threads %threads% -hide_banner -y -i %input% -i %overlayImg%^
-filter_complex "[1]colorchannelmixer=aa=%thumbopacity%,scale=iw*%thumbscale% :-1[wm] ;[0:v][wm]overlay=(main_w-overlay_w)-36 :(main_h-overlay_h)-21,split=4[a][b][c][d] ;[a]scale=w=640:h=360:force_original_aspect_ratio=decrease[a] ;[b]scale=w=1280:h=720:force_original_aspect_ratio=decrease[b] ;[c]scale=w=1920:h=1080:force_original_aspect_ratio=decrease[c] ;[d]scale=w=1280:h=720:force_original_aspect_ratio=decrease[d]"^
-map "[a]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -movflags +faststart -tune film -crf %crf% -preset %preset% -sc_threshold 0 -g 72 -keyint_min 72 -hls_time 4 -hls_playlist_type vod -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_flags single_file^
%output%\360p.m3u8^
-map "[b]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -movflags +faststart -tune film -crf %crf% -preset %preset% -sc_threshold 0 -g 72 -keyint_min 72 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_flags single_file^
%output%\720p.m3u8^
-map "[c]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -movflags +faststart -tune film -crf %crf% -preset %preset% -sc_threshold 0 -g 72 -keyint_min 72 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_flags single_file^
%output%\1080p.m3u8^
-map "[d]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -preset %preset%^
%output%\720.mp4^
-map 0:v -y -ss 0.5 -vframes 1 -s %thumbsize% -ss 30^
%outputthumb%thank you.
-
The Ultimate YouTube-DL script [on hold]
30 juillet 2018, par G. L.I need help creating/finishing a bash script. What I’m trying to do is to create the perfect YouTube-DL archiving script.
As of now, the only thing I can do is download all of a Users’ videos, embed subtitles, add metadata but I want to also autosub the files (with script number 2) and convert the downloaded files with ffmpeg or AVConv or handbrake-cli and then remove the video files when I have a successful conversion.Script 1 (downloads videos skipping already downloaded ones)
youtube-dl -i -o "%(title)s-%(id)s.%(ext)s" --all-subs --embed-subs --embed-thumbnail --add-metadata --sleep-interval=20 --rate-limit=1M --exec 'youtube-dl2kodi.py -t tvshow -f {}' --download-archive .archive $(cat url.txt)
Note : youtube-dl2kodi.py creates Kodi compatible nfo files so I can view them properly on Kodi with metadata.
Script 2 (subtitles videos automatically using autosub)
for file in *I WANT TO AUTOSUB files in this directory and subdirectories*
do
autosub -S de -D de "$file" >> results.out
doneI want to merge script 1 and 2 and then encode the files and remove original video files (mp4, mkv and webm) if successful.
My encoding preference is HEVC with CRF 23 and I don’t want to encode the audio. I want to copy the audio. The final video would be a MKV file. -
cutting multiple segments with ffmpeg [duplicate]
13 juin 2018, par B PulsartThis question already has an answer here :
So there is a 10 min long .mp4 and I have to cut it in 2 seconds long segments every 10 seconds, then concatenate all 2 sec segments together to get a 2 min long film.
I manage to do that with a loop in python that subprocep ffmpeg, but it’s long and ugly (cut, cut cut... and then glue)
Is it a way to do that with just a line in ffmpeg ?
my code in python for cutting sequences :
import subprocess# as sp
ffmpeg = file on disk # on Windows
film_in = a file name
t_total = 10#min
t_sec = t_total*60
def c_cut(time) :
cmd = [ffmpeg , '-i' ,film_in ,'-b:v', '800k' ,'-ss', str(time) , '-t','2' , '-an', film_out]
return cmd
for tps in range(0, t_sec, 10) :
film_out = a file name unique for each segment
command = c_cut(tps)
subprocess.call(command)