
Recherche avancée
Médias (3)
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (56)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9340)
-
Error FFMpeg Laravel Filters on HLS conversion
3 novembre 2020, par TwistCodeI'm trying to transform a mp4 to m3u8 video format using ffmpeg library on Laravel.


Currently it works with the bitrates and the size of the generated videos, but when I try to add the filters to define the resolutions, it generates the following log error.




20-11-03 16:55:19] local.ERROR : custom_filter filter is supported
starting from 0.3 ffmpeg version ; your ffmpeg version is
git-2020-08-26-8f2c1f2 "userId":1,"exception" :"[object]
(FFMpeg\Exception\RuntimeException(code : 0) : custom_filter filter is
supported starting from 0.3 ffmpeg version ; your ffmpeg version is
git-2020-08-26-8f2c1f2 at
C :\laragon\www\maquillate\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AdvancedMedia.php:344)




This is my current implementation


$lowBitrate = (new \FFMpeg\Format\Video\X264('libfaac', 'libx264'))->setKiloBitrate(250);
 $midBitrate = (new \FFMpeg\Format\Video\X264('libfaac', 'libx264'))->setKiloBitrate(500);
 $highBitrate = (new \FFMpeg\Format\Video\X264('libfaac', 'libx264'))->setKiloBitrate(1000);


 FFMpeg::FromDisk('local')->open($media)
 ->exportForHLS()
 ->setSegmentLength(10) // optional
 ->setKeyFrameInterval(48) // optional
 ->addFormat($lowBitrate, function ($video) {
 $video->addLegacyFilter(function ($filters) {
 $filters->resize(new \FFMpeg\Coordinate\Dimension(640, 480));
 });
 })
 ->addFormat($midBitrate)
 ->addFormat($highBitrate)
 ->save('public/hls/' . $video->id . '/video.m3u8');



If I remove the filters from this code, they work without any problem, but I need to add these dimensions.


this is the documentation of Laravel FFmpeg what I need to do : https://github.com/protonemedia/laravel-ffmpeg#hls


Note : my operating system is Windows 10


-
Nvidia on Linux : "Codec h264_cuvid is not supported"
2 août 2020, par RaphaelI configured FFMPEG to use Nvidia, but when I try this command


ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -c:a copy -c:v h264_nvenc -b:v 5M output.mp4


I get the error




[h264_cuvid @ 0x556eaa3ea780] Codec h264_cuvid is not supported




Here's the output of
nvidia-smi
:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.51.05 Driver Version: 450.51.05 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce 940MX On | 00000000:01:00.0 Off | N/A |
| N/A 47C P5 N/A / N/A | 396MiB / 2004MiB | 22% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
 
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1131 G /usr/lib/xorg/Xorg 37MiB |
| 0 N/A N/A 1883 G /usr/lib/xorg/Xorg 129MiB |
| 0 N/A N/A 2175 G /usr/bin/gnome-shell 92MiB |
| 0 N/A N/A 3649 G ...AAAAAAAAA= --shared-files 126MiB |
+-----------------------------------------------------------------------------+



And the output of
ffmpeg
:

ffmpeg version git-2020-07-25-7c8ad72 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --enable-gpl --enable-libx264 --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
 libavutil 56. 57.100 / 56. 57.100
 libavcodec 58. 97.102 / 58. 97.102
 libavformat 58. 49.100 / 58. 49.100
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100



-
cutting mp4 with codec copy results no audio in browser
16 novembre 2020, par LukaI'm editing a video clip with ffmpeg. The original does not play in Firefox browser by itself. It does normally in Chromium. I do something like :


ffmpeg -ss 00:05:10 -i INPUT.mp4 -c copy OUTPUT.mp4



the resulting clip plays in Firefox but there's no audio. This happens in Firefox (82.0.3), but not in Chromium (86.0.4240.75). In chromium the sound is ok.


If audio is reencoded with


ffmpeg -ss 00:05:10 -i INPUT.mp4 -c:v copy -ab 360kb OUTPUT.mp4



resulting clip is playing ok in Firefox.


Could anyone explain what is happening here and is it possible to cut the mp4 without reencoding audio resulting in a clip that plays in Firefox too ?


Some data :


ffmpeg version 3.4.8-0ubuntu0.2


ffprobe INPUT.mp4 :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'INPUT.mp4':
 Metadata:
 major_brand : isom
 minor_version : 1
 compatible_brands: iso4avc1isom
 creation_time : 2020-11-13T18:45:37.000000Z
 com.apple.proapps.clipID: INPUT
 com.blackmagic-design.camera.dateRecorded: 2020:11:13
 com.apple.proapps.cameraName: 0
 com.blackmagic-design.camera.uuid: BDB766E79E646CBB82E3EB986EA1EA-0
 Duration: 02:01:38.00, start: 0.000000, bitrate: 6047 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 5909 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
 Metadata:
 creation_time : 2020-11-13T18:45:37.000000Z
 handler_name : ?Apple Alias Data Handler
 encoder : H264/AVC
 timecode : 19:45:35:04
 Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
 Metadata:
 creation_time : 2020-11-13T18:45:37.000000Z
 handler_name : ?Apple Alias Data Handler
 timecode : 19:45:35:04
 Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 creation_time : 2020-11-13T18:45:37.000000Z
 handler_name : ?Apple Alias Data Handler
 timecode : 19:45:35:04



ffprobe OUTPUT.mp4





Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'OUTPUT.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.83.100
 Duration: 01:34:48.02, start: -0.016000, bitrate: 6022 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5889 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)
 Metadata:
 handler_name : VideoHandler
 timecode : 19:45:35:04
 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
 Metadata:
 handler_name : TimeCodeHandler
 timecode : 19:45:35:04



ffprobe the OUTPUT.mp4 that has audio re-encoded and works in Firefox :


Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.83.100
 Duration: 01:34:48.04, start: 0.000000, bitrate: 6160 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5889 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)
 Metadata:
 handler_name : VideoHandler
 timecode : 19:45:35:04
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 265 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
 Metadata:
 handler_name : TimeCodeHandler
 timecode : 19:45:35:04



EDIT :


I'm providing links to original files, but a bit of warning, they are 4-5GB big each :


- 

- original recording from blackmagic switcher/capture/recorder (this does not play in firefox at all, but does in Chromium)
- cut version made with
-codec copy
(plays in firefox but no audio. plays in chromium ok) - cut version with re-encoded audio (plays ok in both firefox and chromium)