
Recherche avancée
Autres articles (39)
-
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (7040)
-
Copying GoPro metadata with ffmpeg - Could not find tag for codec none
12 juin 2024, par TomMaierI am trying to use ffmpeg to copy the metadata of a gopro file.
The most basic demonstration of the problem would be to copy everything to a new file :


ffmpeg -y -i source.MP4 -c copy -copy_unknown -map 0:v -map 0:a -map 0:2 -map 0:3 -map 0:4 -map_metadata 0 result.MP4



This produces the error :


Could not find tag for codec none in stream #2, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:4 --



As I understand it this means that ffmpeg doesn't apply the -c copy operation correctly and instead complains that there is no encoder for the data streams. The same error happens for 0:2 and 0:4


While searching on google if have found some people who have had the same issue in the past but I have also found some reports of it working.


Any ideas what am I doing wrong or is this actually a bug ?


Here is the ffprobe and the link to the GoPro file.


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'source.MP4':
 Metadata:
 major_brand : mp41
 minor_version : 538120216
 compatible_brands: mp41
 creation_time : 2021-05-17T22:36:48.000000Z
 firmware : HD7.01.01.90.00
 Duration: 00:00:02.88, start: 0.000000, bitrate: 58664 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709), 2704x1520 [SAR 1:1 DAR 169:95], 58557 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 59.94 tbc (default)
 Metadata:
 creation_time : 2021-05-17T22:36:48.000000Z
 handler_name : GoPro H.265
 vendor_id : [0][0][0][0]
 encoder : GoPro H.265 encoder
 timecode : 02:43:36:15
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 187 kb/s (default)
 Metadata:
 creation_time : 2021-05-17T22:36:48.000000Z
 handler_name : GoPro AAC
 vendor_id : [0][0][0][0]
 timecode : 02:43:36:15
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
 Metadata:
 creation_time : 2021-05-17T22:36:48.000000Z
 handler_name : GoPro TCD
 timecode : 02:43:36:15
 Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 30 kb/s (default)
 Metadata:
 creation_time : 2021-05-17T22:36:48.000000Z
 handler_name : GoPro MET
 Stream #0:4(eng): Data: none (fdsc / 0x63736466), 16 kb/s (default)
 Metadata:
 creation_time : 2021-05-17T22:36:48.000000Z
 handler_name : GoPro SOS
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 100359 for input stream 3
Unsupported codec with id 0 for input stream 4



-
lavfi/dnn_classify : add filter dnn_classify for classification based on detection...
17 mars 2021, par Guo, Yejunlavfi/dnn_classify : add filter dnn_classify for classification based on detection bounding boxes
classification is done on every detection bounding box in frame's side data,
which are the results of object detection (filter dnn_detect).Please refer to commit log of dnn_detect for the material for detection,
and see below for classification.download material for classifcation :
wget https://github.com/guoyejun/ffmpeg_dnn/raw/main/models/openvino/2021.1/emotions-recognition-retail-0003.bin
wget https://github.com/guoyejun/ffmpeg_dnn/raw/main/models/openvino/2021.1/emotions-recognition-retail-0003.xml
wget https://github.com/guoyejun/ffmpeg_dnn/raw/main/models/openvino/2021.1/emotions-recognition-retail-0003.labelrun command as :
./ffmpeg -i cici.jpg -vf dnn_detect=dnn_backend=openvino:model=face-detection-adas-0001.xml:input=data:output=detection_out:confidence=0.6:labels=face-detection-adas-0001.label,dnn_classify=dnn_backend=openvino:model=emotions-recognition-retail-0003.xml:input=data:output=prob_emotion:confidence=0.3:labels=emotions-recognition-retail-0003.label:target=face,showinfo -f null -We'll see the detect&classify result as below :
[Parsed_showinfo_2 @ 0x55b7d25e77c0] side data - detection bounding boxes :
[Parsed_showinfo_2 @ 0x55b7d25e77c0] source : face-detection-adas-0001.xml, emotions-recognition-retail-0003.xml
[Parsed_showinfo_2 @ 0x55b7d25e77c0] index : 0, region : (1005, 813) -> (1086, 905), label : face, confidence : 10000/10000.
[Parsed_showinfo_2 @ 0x55b7d25e77c0] classify : label : happy, confidence : 6757/10000.
[Parsed_showinfo_2 @ 0x55b7d25e77c0] index : 1, region : (888, 839) -> (967, 926), label : face, confidence : 6917/10000.
[Parsed_showinfo_2 @ 0x55b7d25e77c0] classify : label : anger, confidence : 4320/10000.Signed-off-by : Guo, Yejun <yejun.guo@intel.com>
-
Convert a native Insta360 video to another format
5 mai 2021, par ChelouteI'd like to figure out how to convert a Insta360 native video (360º) to a specific one (360º).


mediainfo gives these metadata for the original file :




General
Complete name : VID_20210503_142435_00_003(2).insv
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 329 MiB
Duration : 52 s 319 ms
Overall bit rate mode : Variable
Overall bit rate : 52.7 Mb/s
Writing application : Lavf58.13.101
IsTruncated : Yes
FileExtension_Invalid : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L5.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=32
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 52 s 319 ms
Bit rate mode : Variable
Bit rate : 50.0 Mb/s
Width : 3 840 pixels
Height : 1 920 pixels
Display aspect ratio : 2.000
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.226
Stream size : 312 MiB (95%)
Color range : Full
Color primaries : BT.601 NTSC
Transfer characteristics : BT.601
Matrix coefficients : BT.601
Codec configuration box : avcC





My goal is to convert this video to that specifications :




General
Complete name : VID_20210503_142435_00_003(2).mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 83.5 MiB
Duration : 52 s 429 ms
Overall bit rate : 13.4 Mb/s
Writing application : Lavf58.13.101
Comment : 2021-05-03 12:24:35 +0000
Make : Insta360
Model : ONEX.Panorama


Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=4
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 52 s 429 ms
Source duration : 52 s 429 ms
Bit rate : 13.2 Mb/s
Width : 3 840 pixels
Height : 1 920 pixels
Display aspect ratio : 2.000
Frame rate mode : Constant
Frame rate : 7.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.256
Stream size : 82.7 MiB (99%)
Source stream size : 82.7 MiB (99%)
Codec configuration box : avcC





Would it be possible to do this with FFMPEG ? How ?


Thanks