Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (29)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (4219)

  • Saving frames in different formats yields different MSE

    8 septembre 2022, par Mattia

    I am trying to find the frame in a video that is the most different from its previous and next one. Selecting this frame would give me the best chance of synchronizing two videos coming from different sources.
I am using the psnr filter between the target video and its delayed version, i.e., with ss=1/fps.

    


    Everything seems to work, but something strange happens when I am trying to see which frame (and surrounding frames) was chosen.

    


    I extract the frames as follows :

    


    ffmpeg -ss  -i  -frames 1 tmp/.png -y


    


    Doing this for the 2 frames before and the 2 frames after the selected frame, I get mse_avg and psnr_avg from the psnr filter as follows :

    


    mse_avg  psnr_avg          comment
2099.68     14.91     prev2 - prev
3365.92     12.86  prev - keyframe
2716.40     13.79  keyframe - next
2581.58     14.01     next - next2


    


    Instead, when dealing with the video, as well as when extracting single frames in .mp4 format I get :

    


    mse_avg  psnr_avg          comment
 942.57     18.39     prev2 - prev
1611.20     16.06  prev - keyframe
1348.51     16.83  keyframe - next
1208.34     17.31     next - next2


    


    I thought that saving frames in lossless image format would preserve their visual characteristics, thus providing the same performance.
Why does changing the frame output to PNG format yield different MSE ?

    


  • How Can I Copy Encoder and Metadata from Another Video

    27 juillet 2022, par Alper Can

    I have a video, generated with Opencv.
I want make video metadata and encoder settings like another video. How can I make it ?

    


    My video :
    
ffmpeg output :

    


    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output/fixed.mp4' :
    
Metadata :
    
compatible_brands : isommp42
    
major_brand : mp42
    
minor_version : 0
    
creation_time : 2022-03-03T19:12:13.000000Z
    
com.android.version : 11
    
encoder : Lavf59.16.100
    
Duration : 00:00:06.00, start : 0.000000, bitrate : 6683 kb/s
    
Stream #0:00x1 : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 6681 kb/s, 30.03 fps, 30.03 tbr, 30030 tbn (default)
    
Metadata :
    
creation_time : 2022-03-03T19:12:13.000000Z
    
handler_name : VideoHandler
    
vendor_id : [0][0][0][0]
    
Side data :
    
displaymatrix : rotation of 90.00 degrees

    


    


    Media Info output :

    


    


    General
    
Complete name : fixed.mp4
    
Format : MPEG-4
    
Format profile : Base Media
    
Codec ID : isom (isom/iso2/avc1/mp41)
    
File size : 4.78 MiB
    
Duration : 5 s 995 ms
    
Overall bit rate : 6 683 kb/s
    
Encoded date : UTC 2022-03-03 19:12:13
    
Tagged date : UTC 2022-03-03 19:12:13
    

    
Video
    
ID : 1
    
Format : AVC
    
Format/Info : Advanced Video Codec
    
Format profile : Baseline@L3
    
Format settings : 1 Ref Frames
    
Format settings, CABAC : No
    
Format settings, Reference frames : 1 frame
    
Codec ID : avc1
    
Codec ID/Info : Advanced Video Coding
    
Duration : 5 s 995 ms
    
Bit rate : 6 682 kb/s
    
Width : 640 pixels
    
Height : 480 pixels
    
Display aspect ratio : 4:3
    
Rotation : 270°
    
Frame rate mode : Constant
    
Frame rate : 30.000 FPS
    
Color space : YUV
    
Chroma subsampling : 4:2:0
    
Bit depth : 8 bits
    
Scan type : Progressive
    
Bits/(Pixel*Frame) : 0.725
    
Stream size : 4.77 MiB (100%)
    
Encoded date : UTC 2022-03-03 19:12:13
    
Tagged date : UTC 2022-03-03 19:12:13
    
Codec configuration box : avcC

    


    


    I want change it like this :
    
ffmpeg output :

    


    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output/source_encoder/video.mp4' :
    
Metadata :
    
major_brand : mp42
    
minor_version : 0
    
compatible_brands : isommp42
    
creation_time : 2022-03-03T19:12:13.000000Z
    
com.android.version : 11
    
Duration : 00:00:04.83, start : 0.000000, bitrate : 1020 kb/s
    
Stream #0:00x1 : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x480, 1016 kb/s, SAR 1:1 DAR 4:3, 30.03 fps, 30 tbr, 90k tbn (default)
    
Metadata :
    
creation_time : 2022-03-03T19:12:13.000000Z
    
handler_name : VideoHandle
    
vendor_id : [0][0][0][0]
    
Side data :
    
displaymatrix : rotation of 90.00 degrees

    


    


    Media Info Output :

    


    


    General
    
Complete name : source_encoder/video.mp4
    
Format : MPEG-4
    
Format profile : Base Media / Version 2
    
Codec ID : mp42 (isom/mp42)
    
File size : 601 KiB
    
Duration : 4 s 828 ms
    
Overall bit rate : 1 020 kb/s
    
Encoded date : UTC 2022-03-03 19:12:13
    
Tagged date : UTC 2022-03-03 19:12:13
    
com.android.version : 11
    

    
Video
    
ID : 1
    
Format : AVC
    
Format/Info : Advanced Video Codec
    
Format profile : High@L3
    
Format settings : CABAC / 1 Ref Frames
    
Format settings, CABAC : Yes
    
Format settings, Reference frames : 1 frame
    
Format settings, GOP : M=1, N=30
    
Codec ID : avc1
    
Codec ID/Info : Advanced Video Coding
    
Duration : 4 s 828 ms
    
Bit rate : 1 016 kb/s
    
Width : 640 pixels
    
Height : 480 pixels
    
Display aspect ratio : 4:3
    
Rotation : 270°
    
Frame rate mode : Variable
    
Frame rate : 30.000 FPS
    
Minimum frame rate : 30.000 FPS
    
Maximum frame rate : 30.060 FPS
    
Color space : YUV
    
Chroma subsampling : 4:2:0
    
Bit depth : 8 bits
    
Scan type : Progressive
    
Bits/(Pixel*Frame) : 0.110
    
Stream size : 599 KiB (100%)
    
Title : VideoHandle
    
Language : English
    
Encoded date : UTC 2022-03-03 19:12:13
    
Tagged date : UTC 2022-03-03 19:12:13
    
Color range : Limited
    
Color primaries : BT.709
    
Transfer characteristics : BT.709
    
Matrix coefficients : BT.709
    
mdhd_Duration : 4828
    
Codec configuration box : avcC

    


    


  • Converting a spesific audio sream and copy the rest

    15 mai 2022, par Arete

    Is it possible to convert one of the audio tracks in a video file to a different format while copying/remuxing the other audio tracks in the file with FFmpeg ?

    


    More specifically, is it possible to do this without explicitly specify all the audio tracks you want to keep ?

    


    I have tried using the -map function,

    


    ffmpeg -i INPUT -c:v copy -c:a libfdk_aac -map 1:a:2 OUTPUT.mkv


    


    but this only encodes the first audio track and excludes the rest. I know I can probably explicitly tell FFmpeg to mux all the rest of the audio tracks, but this is really tedious. It means I will have to count every audio track and write e considerably longer command.

    


    Is there not a way to tell FFmpeg "convert audio track X and copy the rest" ?

    


    Here is the MediaInfo of the file. Note that there are over 10 audio tracks but I have excluded them in this example to keep it simple.

    


    Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 30 min
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 349 cd/m2
Maximum Frame-Average Light Level        : 86 cd/m2

Audio #1
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : DTS XLL
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS-HD Master Audio
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 2 h 30 min
Bit rate mode                            : Variable
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless

Audio #2
ID                                       : 4353 (0x1101)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 2 h 30 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -9 ms
Stream size                              : 687 MiB (1%)
Service kind                             : Complete Main

Audio #3
ID                                       : 4354 (0x1102)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 2 h 30 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -9 ms
Stream size                              : 481 MiB (1%)
Service kind                             : Complete Main