Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (111)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (6783)

  • playback of ffmpeg converted video on LDPI device (Samsung S5300 240 x 320)

    25 décembre 2013, par user737486

    I have Full HD video taken by Samsung Galaxy S4 camera.
    video stream info as follows :

    {"index":0,"codec_name":"h264","codec_long_name":"H.264 \/ AVC \/ MPEG-4 AVC \/ MPEG-4 part 10","profile":"High","codec_type":"video","codec_time_base":"1\/180000","codec_tag_string":"avc1","codec_tag":"0x31637661","width":1920,"height":1080,"has_b_frames":0,"sample_aspect_ratio":"0:1","display_aspect_ratio":"0:1","pix_fmt":"yuv420p","level":40,"r_frame_rate":"30\/1","avg_frame_rate":"21240000\/707831","time_base":"1\/90000","start_pts":0,"start_time":"0.000000","duration_ts":1415662,"duration":"15.729578","bit_rate":"16553536","nb_frames":"472","disposition":{"default":1,"dub":0,"original":0,"comment":0,"lyrics":0,"karaoke":0,"forced":0,"hearing_impaired":0,"visual_impaired":0,"clean_effects":0,"attached_pic":0},"tags":{"rotate":"90","creation_time":"2013-12-24 10:19:18","language":"eng","handler_name":"VideoHandle"}}

    in short it is 1920x1080, 16KK bitrate, rotation : 90.
    I'm converting it using ffmpeg by the following command :

    ffmpeg -y -threads 8 -i input.mp4 -vcodec libx264 -vpre ipod640 -s 324x576 -strict -2 -b:v 512k -acodec aac -ac 1 -ar 16000 -ab 32000 -vf "transpose=1" -metadata:s:v:0 rotate=0  output.mp4

    The output video stream info :

    {"index":0,"codec_name":"h264","codec_long_name":"H.264 \/ AVC \/ MPEG-4 AVC \/ MPEG-4 part 10","profile":"Constrained Baseline","codec_type":"video","codec_time_base":"1\/48","codec_tag_string":"avc1","codec_tag":"0x31637661","width":324,"height":576,"has_b_frames":0,"sample_aspect_ratio":"0:1","display_aspect_ratio":"0:1","pix_fmt":"yuv420p","level":30,"r_frame_rate":"24\/1","avg_frame_rate":"24\/1","time_base":"1\/12288","start_pts":0,"start_time":"0.000000","duration_ts":72192,"duration":"5.875000","bit_rate":"521597","nb_frames":"141","disposition":{"default":1,"dub":0,"original":0,"comment":0,"lyrics":0,"karaoke":0,"forced":0,"hearing_impaired":0,"visual_impaired":0,"clean_effects":0,"attached_pic":0},"tags":{"language":"eng","handler_name":"VideoHandler"}}

    The output video being played without any problem, on many different devices and OSes including different iOs and androids, but Samsung S5300 doesn't play it. From the device log I can see the following exception :

    E/AwesomePlayer( 1349): This resolution [324X576] Not Supported

    But, when I change the width and height to 576x324 the video can be played on S5300, but in wrong rotation.
    What should I add in ffmpeg parameters to make it play in correct orientation ?

    ffmpeg version :

    ffmpeg version git-2013-12-22-911676c Copyright (c) 2000-2013 the FFmpeg developers built on Dec 22 2013 22:55:31 with gcc 4.4.5 (Debian 4.4.5-8)

    Thanks

  • Android Exoplayer garbled mp4 video output on imagereader surface while playing fine on SurfaceView (Samsung galaxy tab s7)

    29 mars 2023, par Orcun

    Problem :

    


    I am trying to play an mp4 video file on Samsung Galaxy Tab S7 for video processing purposes. For the purpose, I use Exoplayer(v2.18.4) library to be able to play the video onto an ImageReader surface so that I can grab the frames in ImageReader.OnImageAvailableListener.

    


    I do not have any problems in getting the frames. However, the frames I acquire are garbled/corrupted like :

    


    garbled frame

    


    When I saw this frame, it made me think that it is some sort of color format or codec issue for the mp4 file or device I use. In logcat, there are no errors reported.
Device uses [OMX.qcom.video.decoder.avc] decoder. Also, same video plays nicely on some other devices that use exactly the same decoder.

    


    What I tried so far :

    


    I tried a lot of things to understand the root cause and also find a solution, so my brain currently is free flowing stream. I will try to summarise, please bear with me.

    


    I use a CustomMediaCodecVideoRenderer in my app which overrides MediaCodecVideoRenderer.getMediaFormat of Exoplayer to set color format like :

    


    setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Flexible)


    


    This step proved itself necessary. Without it I get a crash simply because I cannot access the image planes of an image frame in expected YUV image format.
This unfortunately was not enough for the Samsung Galaxy Tab 7 although it was already enough for another device like Xiaomi to render the image correctly.

    


    Then I decided to use a library like ffmpeg to modify the mp4 file itself to maybe use a different profile, color format, resolution that is widely compatible in android devices. No luck so far.
a quick ffprobe on my mp4 file shows :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outputyuv169.mp4':
Metadata:
  major_brand     : isom
  minor_version   : 512
  compatible_brands: isomiso2avc1mp41
  encoder         : Lavf59.16.100
Duration: 00:03:00.02, start: 0.000000, bitrate: 4823 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 
1280x720 [SAR 1:1 DAR 16:9], 4820 kb/s, 30 fps, 30 tbr, 360k tbn (default)


    


    I tried even recording a simple video on the tablet itself and using that as my input file. Nevertheless, still getting similarly garbled frames.

    


    One thing I keep noticing in logcat is this line :

    


    [OMX.qcom.video.decoder.avc] using color format 0x7fa30c04 in place of 0x7f420888

    


    and

    


    [OMX.qcom.video.decoder.avc] Requested output format 0x7f420888 and got 0x7fa30c04

    


    where 0x7fa30c04 refers to YCbCr_420_SP_VENUS_UBWC. Not really sure If this has anything to do with it. I did not dive too deep into that because same log is present also on other device that renders the mp4 correctly.

    


    I would be grateful for any clue.

    


  • Documentation #2985 : Principe des droits des divers statuts SPIP (pour clarifier les effets des n...

    29 avril 2013, par Suske -

    Donc les droits observés ce jour en 305 et 308 (relatifs aux docs joints sur les pages auteurs)

    - un rédac ne voit que ses docs sur sa page (de même que les docs sur les articles qu’il a le droit de modifier)
    - un admin restreint n’a pas accès aux docs d’un autre admin restreint d’une autre rubrique
    - un admin restreint a accès aux docs sur les pages des rédacs