
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (54)
-
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 -
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 (...) -
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 (...)
Sur d’autres sites (6450)
-
FFMpeg mp4 to mp4 codec switching failing
31 juillet 2015, par Cory LinebergerOk so sorry from the beginning if this is a newb question or if it is in the wrong place, this IS my first question on here.
So I record things that save files in an mp4 container, I am unsure of the exact codecs it uses, but I know the video codec is not libx264, because if it was Premier would accept it. The audio on Premier works fine. But the video doesn’t. It says that it is an only audio file, but when I play it in, say, Windows Media Player, both the audio and video work fine. The line of copy I am trying to use (in a .bat, if that helps) is :
@ECHO OFF
for %%a in (*.mp4) do ffmpeg -i "%%a" -c:v libx264 -preset ultrafast -qp 10 -c:a copy -y "%%~na".mp4I have very little experience with this...... stuff. I should go ahead and mention, I am running Windows 10. In Windows 7 I used a different program that recorded AVI files that used an invalid video codec for Premier. But this .bat code worked to convert those.
@ECHO OFF
for %%a in (*.avi) do ffmpeg -i "%%a" -c:v libx264 -preset ultrafast -qp 10 -f mp4 -y "%%~na".mp4So I figured just changing some stuff would work, but I guess not.
EDIT : Speaking of being my first question I forgot to put the problem !
The problem is that it DOES convert it, but it converts 5 seconds of a 40+ min video and then exits out. -
Anomalie #3504 : anomalie dans cvt_autosave : les purges ne se font pas
23 juillet 2015, par Peet duTu as raison...une fois que tu valides ton formulaire (avec _autosave activé), les données de session concernant CE formulaire sont bien purgées. Pas de bug en l’état puisque ce traitement n’est pas basé sur la constante _AUTOSAVE_GB_DELAY
Ce que j’avais oublié de préciser dans mon post, c’est que le bug signalé se situe dans la deuxième partie du traitement, celle qui "purge aussi toutes les vieilles autosave". C’est elle qui est basée sur _AUTOSAVE_GB_DELAY.
Voir https://core.spip.net/projects/spip/repository/entry/spip/ecrire/inc/cvt_autosave.php#L88Si j’ai bien compris, elle traite le cas où le site contient plusieurs formulaires CVT avec l’autosave activé. Dans ce cas on purge également ces sessions.
Et c’est là que le bug sur le timestamp fait son office. Ces vieilles sessions ne seront jamais purgés.SUGGESTION
Perso, je trouve que ce fonctionnement est astucieux, mais il induit un fonctionnement confus pour l’utilisateur et pour le développeur.
Si le visiteur revient sur son formulaire, (même 1 an après) il trouve les champs remplis puisque _AUTOSAVE_GB_DELAY n’est pas pris en compte dans ce cas . Il valide son formulaire et sa session pour ce formulaire est purgé.
Puis dans la foulée il arrive sur un autre formulaire et là....rien ?! (ben oui, il a validé le premier et la purge basée sur _AUTOSAVE_GB_DELAY a fonctionnée (si on corrige le bug hein ;-)Bref, perso j’ai modifié le core (je sais, c’est mal) en mettant les purges uniquement basée sur _AUTOSAVE_GB_DELAY dans la fonction cvtautosave_formulaire_charger. On (peut) garder la purge à la validation du formulaire.
SUGGESTION 2
L’idéal serait, selon moi, de garder cette dernière idée avec un ajout : on purge dans le répertoire /sessions toutes les données de tous les utilisateurs pour lesquels la valeurs _AUTOSAVE_GB_DELAY a été dépassé. Ça marche bien et de plus, d’un point de vue de sécurité, cela règle en partie le problème des personnes qui on mal lu la doc sur la partie "Vie privée" (voir http://www.spip.net/fr_article5428.html).SUGGESTION 3
même si vous n’êtes pas d’accord avec mon analyse, serait-il possible de mettre- cvtautosave_formulaire_charger
- cvtautosave_formulaire_traiter
en _dist ?
-
ffmpeg removes dead space in video but not audio
10 juillet 2015, par Peter BecichI’m transferring a VHS tape on Ubuntu with
ffmpeg
,somagic-capture
, the line-in jack and an EasyCap dongle.There is a big issue with audio drift that, I believe, is caused by
ffmpeg
removing dead space from the video stream but not the audio stream.The capture utility creates a stream :
somagic-capture --ntsc -c --luminance=2 --lum-aperture=3 \
2> $SOMAGIC_LOG |Which is piped into
ffmpeg
.ffmpeg
also captures fromalsa
:ffmpeg -pixel_format uyvy422 -s:v 720x480 \
-framerate 29.97 -f rawvideo -i - -f alsa -thread_queue_size 1024 \
-i hw:0,0 -vf scale=w=640:h=480 -vcodec libx264 -preset ultrafast \
-shortest -c:a libfdk_aac -b:a 256k $OUTFILEIs it true that
ffmpeg
by default removes dead space from a stream ?If so, would
ffmpeg
trim both streams even if only one is "dead" — suppose the video is momentarily blank while the audio is noisy.If not, are these two streams incompatible with each other ? Is the ALSA input (line-in jack) on a different clock than the EasyCap video dongle ?
Input #0, rawvideo, from 'pipe:':
Duration: N/A, start: 0.000000, bitrate: 165722 kb/s
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x480,
165722 kb/s, 29.97 tbr, 29.97 tbn, 29.97 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'hw:0,0':
Duration: N/A, start: 1436492353.282796, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/sI think the
-shortest
flag only concerns killing theffmpeg
process.My prior, more general question didn’t solve the problem : http://video.stackexchange.com/questions/14809/sync-up-ffmpeg-rawvideo-recording-and-audacity-alsa-recording
Thanks for any advice !
The full script :
#!/bin/sh
PIPE=/tmp/somagic-pipe
OUTFILEDIR=~/easycap/Videos/
LOGDIR=~/.somagic-log/
NOW=`date +"%m_%d_%Y_%H_%M_%S"`
OUTFILE=${OUTFILEDIR}fpv_${NOW}_video.mp4
mkdir $LOGDIR
FFMPEG_LOG=${LOGDIR}ffmpeg_video.log
SOMAGIC_LOG=${LOGDIR}somagic_video.log
MPLAYER_LOG=${LOGDIR}mplayer_video.log
rm $PIPE >/dev/null 2>&1
rm $OUTFILE >/dev/null 2>&1
rm $FFMPEG_LOG
rm $SOMAGIC_LOG
rm $MPLAYER_LOG
mkfifo $PIPE >/dev/null 2>&1
somagic-capture --ntsc -c --luminance=2 --lum-aperture=3 \
2> $SOMAGIC_LOG | ffmpeg -pixel_format uyvy422 -s:v 720x480 \
-framerate 29.97 -f rawvideo -i - -f alsa -thread_queue_size 1024 \
-i hw:0,0 -vf scale=w=640:h=480 -vcodec libx264 -preset ultrafast \
-shortest -c:a libfdk_aac -b:a 256k $OUTFILE
rm $PIPE >/dev/null 2>&1Modified from here : https://gist.github.com/Brick85/0b327ac2d3d45e23ed33