
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (50)
-
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
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 -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (7521)
-
Encoding failed while adding watermark using ffmpeg in Laravel
16 décembre 2020, par RuturajsinhI'm getting an error while adding a watermark on the video in Laravel.
I'm using this protonemedia/laravel-ffmpeg package and I got reference code from here stackoverflow answer. I'm using the code from the first answer. If I do not add a watermark then it's working fine, but when I add a watermark I got an error.




FFMpeg\Exception\RuntimeException : Encoding failed in file E :\xampp\htdocs\Learn\video-demo\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php on line 106




I'm using PNG image and MP4 video and I'm using first time this type of package so I don't know how to fix that and I didn't find any right solution.


Please help me to fix that.
Thanks and also sorry for bad English.


My watermark function :


public function postVideo(Request $request)
{
 $video_file = $request->file('file');

 $ffmpeg = FFMpeg\FFMpeg::create();
 $video = $ffmpeg->open($video_file);

 
 $watermark = public_path()."/app_logo.png";
 $reqExtension = "mp4";

 if (!empty($watermark))
 {
 $video->filters()
 ->watermark($watermark, array(
 'position' => 'bottom',
 'top' => 25,
 'right' => 50,
 ));
 }
 $format = new FFMpeg\Format\Video\X264();
 $format->setAudioCodec("libmp3lame");
 

 $randomFileName = rand().".$reqExtension";
 $saveLocation = public_path(). '/watermark/'.$randomFileName;
 $video->save($format,$saveLocation);

 if (file_exists($saveLocation))
 return "http://localhost:8000/video/$randomFileName";
 else
 return "http://localhost:8000/test/thumb/404.png";
 
}



-
Ffmpeg hls segment stop segmenting after 5300 segments
9 avril 2019, par Hug DuinoI’m trying to make a http video streaming using hls, ffmpeg and raspivid and I need a replay time of 1 day but after 5300 segments ffmpeg stop segmenting and continue writing the video to the 5301 segment for the end of the day (5300/5301 is an average number, +- 50 segments)
I have plenty of storage space, my camera can record all the day. The only problem is ffmpeg who decide to stop segmenting after 5300 segmentsThank you and sorry for my poor english ^^
Here is my streaming script :
base="/var/www/html/"
set -x
rm -rf /var/www/html/ppc/saves/live live.h264
mkdir -p /var/www/html/ppc/saves/live
# fifos seem to work more reliably than pipes - and the fact that the
# fifo can be named helps ffmpeg guess the format correctly.
mkfifo live.h264
raspivid -a 1036 -w 1640 -h 1232 -fps 15 -t 37200000 -b 1500000 -o - | psips > live.h264 &
# Letting the buffer fill a little seems to help ffmpeg to id the stream
sleep 2
# Need ffmpeg around 1.0.5 or later. The stock Debian ffmpeg won't work.
# I'm not aware of options apart from building it from source. I have
# Raspbian packags built from Debian Multimedia sources. Available on
# request but I don't want to post them publicly because I haven't cross
# compiled all of Debian Multimedia and conflicts can occur.
ffmpeg -y -r 15 -i live.h264 -f alsa -i default:CARD=C525 -r:a 48000 -ac 1 -af adelay=32s -c:v copy -c:a aac -b:a 128k -map 0:0 -map 1:0 -r 30 \
-f segment \
-segment_time 7 \
-segment_format mpegts \
-segment_list /var/www/html/ppc/saves/live/live.m3u8 \
-segment_list_flags live \
-segment_list_type m3u8 \
-initial_offset -9 \
-strict 2 /var/www/html/ppc/saves/live/%08d.ts < /dev/null``` -
Why does ffmpeg.exe started from Windows batch file close immediately without waiting for user input ?
12 juin 2017, par user2566350I searched google for an hour but I could not find anything to fix my issue. I found only "similar" fixes for problems I’m not having.
I am opening
ffmpeg.exe
from a batch file that only hasffmpeg.exe
with no arguments in it and it doesn’t work even though it did few hours ago.If I open command line from the folder and enter
ffmpeg.exe
it works because it’s not closingffmpeg
but waits for my input which is exactly how the batch file worked before.What could be the issue ?
I have not changed the batch file or
ffmpeg
one or their locations.Running on Windows 7 x64 if that matters.
Edit : File name is
start ffmpeg.bat
. It’s content is onlyffmpeg.exe
which used to work. I also triedstart ffmpeg.exe
andffmpeg
and changed the filename to1.bat
and1.cmd
but neither worked.Edit2 : Sorry i can’t explain myself better my english isn’t very good, however I will try to explain using these images :
This is what i get if i run CMD from the desktop and enter ffmpeg.exe
This is what I get when i run the batch file (after i added pause)
Batch contents : 1st line=ffmpeg.exe, 2nd line=pause.As you can see without the pause ffmpeg will terminate and not remain on the screen like the in first image.
I tried renaming the file and I tried to run it as admin but neither worked, Any suggestion why is it suddenly not running as it did yesterday ?