Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (56)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (6564)

  • Maintaining exact aspect ratio when scaling videos using ffmpeg

    31 mai 2012, par Skkard

    I have a mkv video, which is a mix of multiple resolution recordings, e.g. I have the first few seconds of widescreen 16:9 (1024x576) resolution, and the rest of the video if 4:3 (768x576) resolution. I want to scale this video down 3 times, while copying all the other attributes (audio codec, subtitles etc.). I use ffmpeg -i  -vf scale=iw/2:-1 -acodec copy . Also, VLC detects it's resolution as 720x576.

    The problem is that after the scaling, the resolution constantly becomes 4:3 (360x288). How can I maintain the dynamic aspect ratio of the input video file i.e. the 16:9 parts to scale to 16:9, while the 4:3 parts scale to 4:3 ?

    update

    The player size actually changes, atleast in mplayer, when the resolution is switched. I figured out the main problem. It seems each frame is tagged with a Sample Aspect Ratio (SAR), so when the player plays it, it can find the display aspect ratio. This SAR value isn't getting copied over when encoding to MKV. When encoding to MPG, it does get copied over and I get an exact copy, with the player switching sizes, but not with MKV.

    Output of ffprobe -show_streams filename :

    ffprobe version 0.10.3 Copyright (c) 2007-2012 the FFmpeg developers
     built on May  9 2012 17:51:07 with gcc 4.7.0 20120505 (prerelease)
     configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
     libavutil      51. 35.100 / 51. 35.100
     libavcodec     53. 61.100 / 53. 61.100
     libavformat    53. 32.100 / 53. 32.100
     libavdevice    53.  4.100 / 53.  4.100
     libavfilter     2. 61.100 /  2. 61.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0.  6.100 /  0.  6.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, matroska,webm, from 'sample.mkv':
     Metadata:
       title           : Pan prstenu. Dve veze
     Duration: 00:00:29.80, start: 0.000000, bitrate: 3124 kb/s
       Stream #0:0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
       Stream #0:1(cze): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s (default)
    [STREAM]
    index=0
    codec_name=mpeg2video
    codec_long_name=MPEG-2 video
    codec_type=video
    codec_time_base=1/50
    codec_tag_string=[0][0][0][0]
    codec_tag=0x0000
    width=720
    height=576
    has_b_frames=1
    sample_aspect_ratio=64:45
    display_aspect_ratio=16:9
    pix_fmt=yuv420p
    level=8
    timecode=16:35:19:10
    id=N/A
    r_frame_rate=25/1
    avg_frame_rate=25/1
    time_base=1/1000
    start_time=0.000000
    duration=N/A
    nb_frames=N/A
    TAG:language=eng
    [/STREAM]
    [STREAM]
    index=1
    codec_name=mp2
    codec_long_name=MP2 (MPEG audio layer 2)
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=[0][0][0][0]
    codec_tag=0x0000
    sample_fmt=s16
    sample_rate=48000
    channels=2
    bits_per_sample=0
    id=N/A
    r_frame_rate=0/0
    avg_frame_rate=125/3
    time_base=1/1000
    start_time=0.000000
    duration=N/A
    nb_frames=N/A
    TAG:language=cze
    [/STREAM]
  • Revision 33176fef87 : Skip comp inter mode tests for arf coding This commit skips the compound inter

    2 septembre 2014, par Jingning Han

    Changed Paths :
     Modify /vp9/encoder/vp9_rdopt.c



    Skip comp inter mode tests for arf coding

    This commit skips the compound inter mode prediction check in the
    rate-distortion optimization loop for ARF coding. It reduces the
    runtime for certain test clips at speed 3, at no compression
    performance change :

    bus CIF 1000 kbps, 8260 ms -> 8090 ms, 1.8% speed-up
    stockholm 720p 1000 kbps, 74453 ms -> 71826 ms, 2.9% speed-up

    No visible speed-up for pedestrian area 1080p at 2000 kbps.

    Change-Id : Ic68aa56837159b726563b784e2e3729e846465ad

  • Revision 4282955ee1 : Skip intra mode tests depending on inter residuals This commit allows encoder t

    29 août 2014, par Jingning Han

    Changed Paths :
     Modify /vp9/encoder/vp9_rdopt.c


     Modify /vp9/encoder/vp9_speed_features.c


     Modify /vp9/encoder/vp9_speed_features.h



    Skip intra mode tests depending on inter residuals

    This commit allows encoder to skip intra coding mode test, when
    the known inter residual is less than the source variance. It
    reduces the runtime of speed 3 for test clips :
    bus cif 1000 kbps : 8587 ms -> 8260 ms, 3.8% speed-up
    pedestrian 1080p 2000 kbps : 161381 ms -> 155241 ms, 3.7% speed-up.

    The compression performance is down by
    derf -0.36%
    stdhd -0.25%

    Change-Id : I75ce1e035b4da2153cb1ac14111d1a07c05a735d