
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 (68)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (4526)
-
PHP-FFMpeg : How to properly concatenate two videos ?
4 octobre 2018, par FrancescoMussiTHE SITUATION :
I need it to concatenate multiple videos into one single video.
I am using the library PHP-FFMpeg.
But I don’t manage to make it working.THE VIDEOS :
The videos are recordings made with the MediaRecorder Web API.
The video format is :video/webm;codecs=h264
The audio format isopus
.recorder = new MediaRecorder(this.stream, {
mimeType: 'video/webm;codecs=h264'
})CONCAT USING PHP-FFMPEG (using saveFromSameCodecs) :
This is how I try to concat them using
saveFromSameCodecs
:
(I have checked the paths and are correct)$video = $ffmpeg->open( $path1 );
$video
->concat([$path1, $path2])
->saveFromSameCodecs($path_output, TRUE);But it failed with the following error message :
ffmpeg failed to execute command ’/usr/local/bin/ffmpeg’ ’-f’ ’concat’ ’-safe’ ’0’ ’-i’ ’/private/var/folders/dw/919v2nds7s78pz_qhp7z9rcm0000gn/T/ffmpeg-concath1kHiX’ ’-c’ ’copy’ ’/Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/storage/app/public/videos/output.mp4’
CONCAT USING FFMPEG COMMAND LINE :
On suggestion on @RolandStarke and @LordNeckbeard I have tried using the ffmpeg command line to get a better insight on what is going on.
If I use the following command line :
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
I get the following error, related to the audio opus codec.
If I use the following command line, converting the audio coded to
acc
:ffmpeg -f concat -safe 0 -i mylist.txt -c:v copy -c:a aac output.mp4
The final video is properly created, as a concatenation of the other videos.
CONCAT USING PHP-FFMPEG : (using saveFromDifferentCodecs)
It seems the problem is ONLY related to the codec.
So I have tried usingsaveFromDifferentCodecs
:$format = new FFMpeg\Format\Video\X264('libfdk_aac', 'libx264');
$result = $video1
->concat([$path1, $path2])
->saveFromDifferentCodecs($format, $output_path);But I still get an error :
ffmpeg failed to execute command ’/usr/local/bin/ffmpeg’ ’-i’ ’/Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/storage/app/public/videos/test1.mp4’ ’-i’ ’/Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/storage/app/public/videos/test2.mp4’ ’-filter_complex’ ’[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]’ ’-map’ ’[v]’ ’-map’ ’[a]’ ’-b:a’ ’128k’ ’/Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/storage/app/public/videos/output.mp4’
CONCAT USING PHPFFMPEG (but with different videos) :
If the problem is only related to the codec, then using two different videos with
video codec :h264
and audio codecaac
,
it should work, but it doesn’t :ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-f' 'concat' '-safe' '0' '-i' '/private/var/folders/dw/919v2nds7s78pz_qhp7z9rcm0000gn/T/ffmpeg-concatoJGhLt' '-c' 'copy' '/Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/storage/app/public/videos/output.mp4'
But using the command line it works smoothly :
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
CONCAT USING shell_exec :
I have tried using shell_exec, with the first two videos (opus codec) :
echo shell_exec("/usr/local/bin/ffmpeg -f concat -safe 0 -i /Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/mylist.txt -c:v copy -c:a aac /Users/francescomussi/Desktop/Apps/cameraProject/back-end/camera-laravel/output.mp4 2>&1");
And it works smoothly.
The final output is created, and with the acc audio codec.TESTING THE LIBRARY :
To see if php-mpeg was actually working, I test it by making a basic resize of a video and it worked correctly.
RESUME :
- Using ffmpeg command lines everything works fine
- Using shell_exec everything works fine
- Using php-ffmpeg I always get the error
ffmpeg failed to execute command
QUESTION :
How can I concat videos using php-ffmpeg ?
Is the issue caused by wrong encoding ?
Thanks !
-
DirectShow Encryption and Decryption Filters incorrect path leading to wrong decoding ?
11 mai 2016, par Michael Chi LamSituation : I’m creating two DirectShow Filters cryptography. I’ve written them as In place transformations however it’s not working as planned, I believe it has something to do my encoding and decoding paths. My source is an AVI and my output a encrypted MP4. (Encryption Filter) for my decryption filter I take in a mp4 and render the video. However when I attempt to render the video, the play back is a black screen.
AVI to MP4 on GraphStudioNext :
Both of them works, however when I insert my Cryptography(This is the encryption, I got lazy and didn’t rename it properly) and Decryption filter respectively it doesn’t work
I placed my Encrypt and Decrypt side by side (See below) and it generates an mp4 that I can play back.
Question : Is there a filter I am missing on the decoding path ? (Mp4 to Render)
-
Problems with modifying encoder metadata with FFMPEG
19 avril 2024, par yrcjeI'm trying to change FFMPEG encoder writing application with FFMPEG -metadata and for whatever reason, it's reading the input but not actually writing anything out.



-map_metadata -metadata:s:v:0 -metadata writing_application, basically every single stack overflow and stack exchange thread, but they all won't write to the file at all.



ffmpeg -i x.mp4 -s 1920x1080 -r 59.94 -c:v h264_nvenc -b:v 6000k -vf yadif=1 -preset fast -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -ac 2 x.mp4
ffmpeg -i x.mp4 -c:v copy -c:a copy -metadata Encoder="TeXT Encoder" -fflags +bitexact -flags:v +bitexact -flags:a +bitexact test.mp4
ffmpeg -i x.mp4 -vcodec copy -acodec copy -map_metadata out.mp4
ffmpeg -i x.mp4 -vcodec copy -acodec copy -metadata encoder="Encoder" -metadata comment="XX" testmeta.mp4
ffmpeg -i x.ts -c:v copy -c:a copy -metadata:s:v:0 h264 ISFT='TeXT' x.mp4
ffmpeg -i x.mp4 -i FFMETADATAFILE -map_metadata 1 -codec copy testcopy.mp4
ffmpeg -i x.ts -f ffmetadata FF




METADATAFILE



I tried to extracting the data and rewrite it back with FFMETADATAFILE but it doesn't show up. Tried forcing ffmpeg to write without any emtadata and write it back but doesn't work. Was wondering if I can write my own encoder that writes the specific encoder name, like how Handbrake/Lavf writes the encoder application into the METADATA of the video file. Or just use FFMPEG and modify the METADATA natively.