Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (78)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

Sur d’autres sites (8423)

  • How to deinterlace and encode with hevc_nvenc(10bit) using ffmpeg

    25 juin 2020, par acklack

    I am trying to deinterlace a mpeg2ts video and encode it with hevc_nvenc(10bit) by ffmpeg, but it does not work.

    


    Please tell me how to solve it.

    


    ffmpeg

    


    $ ffmpeg
ffmpeg version N-98246-g157feea Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix= --pkg-config-flags=--static --extra-cflags=-I/include 
--extra-ldflags=-L/lib --extra-libs='-lpthread -lm' --bindir=/bin --enable-gpl 
--enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-static --enable-cuda 
--enable-cuvid --enable-nvenc --enable-cuda-sdk --enable-libnpp 
--extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --enable-nonfree


    


    Failure

    


    #1 (-deint)

    


      

    • Success:deinterlacing, Failure : 10bit
    • 


    


    ffmpeg -y -hide_banner -fflags +discardcorrupt \
    -hwaccel cuda -c:v mpeg2_cuvid -hwaccel_output_format cuda \
    -deint adaptive -drop_second_field 1 \
    -i in.m2ts \
    -c:v hevc_h265 -pixel_format nv12 -profile:v main10 -level:v 4.1 -preset slow \
    -c:a copy -bsf:a aac_adtstoasc \
    out.mp4


    


    #2 (-deint)

    


      

    • Success:10bit, Failure:deinterlacing
    • 


    


    ffmpeg -y -hide_banner -fflags +discardcorrupt \
    -deint adaptive -drop_second_field 1 \
    -i in.m2ts \
    -c:v hevc_h265 -pix_fmt yuv420p10le -profile:v main10 -level:v 4.1 -preset slow \
    -c:a copy -bsf:a aac_adtstoasc \
    out.mp4


    


    #3 (yadif_cuda)

    


      

    • Success:deinterlacing, Failure : 10bit
    • 


    


    ffmpeg -y -hide_banner -fflags +discardcorrupt \
    -hwaccel cuda -c:v mpeg2_cuvid -hwaccel_output_format cuda \
    -i in.m2ts \
    -vf "yadif_cuda" \
    -c:v hevc_h265 -pixel_format nv12 -profile:v main -level:v 4.1 -preset slow \
    -c:a copy -bsf:a aac_adtstoasc \
    out.mp4


    


  • Converting FFMpeg Video to android playable video

    15 avril 2021, par Soham Samanta

    I had some image sequence and I used them to make a video using FFMpeg. It palyed well on VLC (windows and android) but not on built in android video player.
Codec and container info of the video is the following -

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../clg/clg_eq_final_injected.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
  Duration: 00:00:12.13, start: 0.000000, bitrate: 9058 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 4096x2048, 9057 kb/s, 24 fps, 24 tbr, 12288 tbn, 24576 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Side data:
      spherical: equirectangular (0.000000/0.000000/0.000000)


    


    I made a workaround by uploading the video on youtube. Then I downloaded it again. It's codec info is following -

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../clg/clg_eq_test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2020-05-17T08:06:01.000000Z
  Duration: 00:00:12.14, start: 0.000000, bitrate: 738 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 607 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
      creation_time   : 2020-05-17T08:06:01.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 05/17/2020.
    Side data:
      stereo3d: 2D
      spherical: equirectangular (0.000000/0.000000/0.000000)
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2020-05-17T08:06:01.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 05/17/2020.


    


    I noticed that the first video does not have any audio stream (since it's just an image sequence). But youtube arbitrarily added an audio stream. (I tried on android after adding an audio stream with it but no luck)
What I know -

    


      

    1. Android does not natively support motion JPEG.
    2. 


    3. H264 is supported by android.
    4. 


    


    Q1. What is the difference between h264(constrained baseline) vs h264(main) ?
Q2. Why the first video is not natively supported on android ?
My uploaded youtube video is here.

    


    Ref :

    


    Conversion from mjpeg to mp4 (libx264) with FFmpeg

    


    convert format from yuvj420p to yuv420p

    


    How to create a video from images with FFmpeg ?

    


  • Android ffmpeg Command not executing

    22 juin 2020, par MoTahir

    I am using this FFMPEG library,

    


    first I am playing the video inside my videoView to make sure that the video path is correct

    


    videoView.setVideoURI(Uri.parse(getExternalFilesDir(null)?.absolutePath + "videoToBeEdit"))


    


    then I am calling the code written below to crop the video then put it inside the videoView again just to see the result

    


    val ff = FFmpeg.getInstance(this@EditVideoActivity)
if (ff.isSupported){

  val inFile = File(getExternalFilesDir(null)?.absolutePath ,"videoToBeEdit")
  val outFile = File(getExternalFilesDir(null)?.absolutePath , "result")

  val command = arrayOf("ffmpeg","-i", inFile.absolutePath , "-filter:v", "crop=100:100:0:0", outFile.absolutePath)

  ff.execute(command, object : ExecuteBinaryResponseHandler() {
    override fun onSuccess(message: String?) {
      super.onSuccess(message)
      videoView.setVideoURI(Uri.parse(getExternalFilesDir(null)?.absolutePath + "videoToBeEdit"))
    }

    override fun onProgress(message: String?) {
      super.onProgress(message)
    }

    override fun onFailure(message: String?) {
      super.onFailure(message)
      Log.e("error", "failed")
    }

    override fun onStart() {
      super.onStart()
      Log.e("start", "started the process")
    }

    override fun onFinish() {
      super.onFinish()
      Log.e("finish", "done")
    }
  })
}


    


    but my code above goes from start to error then finish, it doesn't show any error messages and that's making it really hard to know what's actually wrong :( I tried to write my command in different ways following those tutorials tutorial1 tutorial2 link
please help, thank you in advance...