
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (88)
-
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)
31 mai 2013, parLorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
Description des scripts
Trois scripts Munin ont été développés :
1. mediaspip_medias
Un script de (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site
Sur d’autres sites (14705)
-
FFmpeg metadata tags for YouTube 3D side-by-side movies
17 février 2021, par Some1ElseYouTube requires specific metadata tags for 3D Side-By-Side format movies. If the tag is not there then YouTube does not give the anaglyph playback options for the end user.



Their "help" is here
https://support.google.com/youtube/answer/7278886?hl=en-GB



I am trying to get FFmpeg to add the MP4 tag when building my movie.



Code that works now for a series of PNG files into a MP4.



"ffmpeg.exe" -framerate 60 -i "VID%05d.PNG" -c:v libx264 -preset:v veryslow -profile:v high -crf 15 -s 1280x720 -pix_fmt yuvj420p -an -y "OUTPUT.MP4"




But when I add the tag from the YouTube help page



"ffmpeg.exe" -framerate 60 -i "VID%05d.PNG" -c:v libx264 -preset:v veryslow -profile:v high -crf 15 -s 1280x720 -pix_fmt yuvj420p -an -y -x264opts "frame-packing=3:frame-packing-interpret=1:frame-packing-quincunx=0:frame-packing-grid=0,0,0,0" "OUTPUT.MP4"




I get this error from FFmpeg



[libx264 @ 0000000002a8c3a0] bad option 'frame-packing-interpret': '1'




This page (ignore the proselytising)



http://www.pantherdynamics.yolasite.com/panther-dynamics-blog/uploading-3dsbs-content-to-youtube



says you only need to use this tag



-x264opts frame-packing=3




Using that does make FFmpeg finish correctly, but the SBS is still ignored by YouTube



The YouTube engineer blog post here



https://youtube-eng.googleblog.com/2011/09/getting-3d-content-on-youtube_8.html



links to an older supposed 3D movie that also does not give 3D options any more.



https://www.youtube.com/watch?v=ubRHSg5daMs



So maybe even YouTube's own 3D movies are crippled ?



What am I doing wrong ? Any FFmpeg gurus able to help ?


-
Use FFMPEG to restream RTMP source to YouTube - no video stream in output
5 février 2018, par Mike MillerI am attempting to grab the .m3u8 file from an nginx-rtmp server and pass it along to YouTube rtmp. I believe this to be possible (for example here : https://stackoverflow.com/a/11978820/1552594 although this is on the same host). The command I am using is :
ffmpeg -analyzeduration 0 -i \
http://source.rtmp.server/hls/stream.m3u8 -pix_fmt yuv420p \
-f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxxHowever the output contains only audio and YouTube doesn’t like it. The command produces following :
As you can see no Video stream in output metadata, stream mapping shows only audio and the trace shows 0kb of Video for 651kb of Audio
Any help much appreciated
MORE INFO
Improved version of the command lifted from this article :
https://judge2020.com/restreaming-a-m3u8-hls-stream-to-youtube-using-ffmpeg/
"Restreaming a m3u8 HLS stream to Youtube using FFMPEG" AKA exactly what I am trying to do.
The command I am sending is now :
ffmpeg -re -i "http://source.rtmp.server/hls/stream.m3u8" \
-strict -2 -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -flags \
+global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv \
"rtmp://a.rtmp.youtube.com/live2/xxx-xxxx-xxxx-xxxx"I got pretty much exactly the same response except with the Audio being read and output using
aac
codec.MORE MORE INFO
I have found that adding a mapping can force the video stream into the output :
ffmpeg -re -i "http://source.rtmp.server/hls/stream.m3u8" \
-strict -2 -c:v copy -c:a -map 0:0 -map 0:1 -ar 44100 -ab 128k -ac 2 \
-flags +global_header -bsf:a aac_adtstoasc -bufsize 1000k \
-f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx"This throws up the error that has presumably been resulting in the video stream being silently dropped :
-
How to set up a continuous stream from Icecast to YouTube Live using FFmpeg ?
16 mai 2020, par Teymur GahramanovWhen Icecast servers turns off, FFmpeg trying to reconnect but with only one attempt. Here is error which i get and my script.



[http @ 0x556612e43f80] Stream ends prematurely at 4040716, should be 1844674407370955161597x
[http @ 0x556612e43f80] Will reconnect at 4040716 error=Input/output error.
[tcp @ 0x7fe10400b7a0] Connection to tcp://185.195.26.99:8000 failed: Connection refused
[http @ 0x556612e43f80] Failed to reconnect at 0.
185.195.26.99:8000/radio: Input/output error1:40.96 bitrate=2878.3kbits/s speed=0.997x




After that stream continuing, and YouTube does not break live translation, but it goes empty.



#!/bin/bash

image=../pic/1.jpg #path to image
source=http://***.**.**.**:8000/radio #radio stream as source
youtube_url=rtmp://a.rtmp.youtube.com/live2 #rtmp://a.rtmp.youtube.com/live2
youtube_key=****-****-*****-****
resolution=1920x1080 #stream resolution

###########################################################

stream=FFREPORT=file=../log/stream-%t.log:level=32 ffmpeg \
 -thread_queue_size 1024 \
 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 3600 -i $source \
 -re -loop 1 -i $image \
 -acodec aac -b:a 128k -ar 44100 -strict experimental \
 -vcodec libx264 -preset ultrafast -tune stillimage -r 30 -g 60 -b:v 4500k -minrate 4000k -maxrate 4500k -bufsize 6000k \
 -s $resolution \
 -f flv \
 $youtube_url/$youtube_key\

until $stream ; do
 echo "Restarting stream ..."
 sleep 2
done