Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (71)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • 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 (...)

Sur d’autres sites (9632)

  • ffmpeg h264_nvenc error [Cannot init Cuda] on NVidia Quadro p620

    13 septembre 2018, par Vitor Silva de Deus

    I’ve installed the nv-codec-headers from https://git.videolan.org/git/ffmpeg/nv-codec-headers.git. whit :

    cd nv-codec-headers && make && sudo make install

    Then I got ffmpeg from https://git.ffmpeg.org/ffmpeg.git and compiled with :

    cd ffmpeg && PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure   --prefix="$HOME/ffmpeg_build"   --pkg-config-flags="--static"   --extra-cflags="-I$HOME/ffmpeg_build/include"   --extra-ldflags="-L$HOME/ffmpeg_build/lib"   --extra-libs="-lpthread -lm"   --bindir="$HOME/bin"   --enable-gpl   --enable-libaom   --enable-libass   --enable-libfdk-aac   --enable-libfreetype   --enable-libmp3lame   --enable-libopus   --enable-libvorbis   --enable-libvpx   --enable-libx264   --enable-libx265   --enable-nonfree --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64  && PATH="$HOME/bin:$PATH" make && make install && hash -r

    When I run :

    ffmpeg -hex -rtsp_transport tcp -t 1800 -r 30 -i rtsp://stream_url -c:v h264_nvenc -s:v 360x180 -vsync 0 -preset slow outfile.mp4

    ffmpeg breaks and logs :

    [aac @ 0x5636a2d9f540] Too many bits 8832.000000 > 6144 per frame
    requested, clamping to max

    [swscaler @ 0x5636a33e7840] deprecated pixel format used, make sure
    you did set range correctly

    [h264_nvenc @ 0x5636a2da2880] Cannot init CUDA

    Error initializing output stream 0:0 — Error while opening encoder
    for output stream #0:0 - maybe incorrect parameters such as bit_rate,
    rate, width or height

    [aac @ 0x5636a2d9f540] Qavg : -nan

    [aac @ 0x5636a2d9f540] 1 frames left in the queue on closing
    Conversion failed !

    OS : Ubuntu Server 18.04

    ffmpeg version : N-91936-g776cdd1dc8 Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)

    CUDA version : 9.2

    GPU Device : Dual NVIDIA Quadro P620, 2 GB, 4 mDP

    Any suggestion on how can i debug or what I’m doing wrong ?! Many thanks !

  • Missing audio stream which is required by this ffm at Raspberry PI using ffmpeg

    17 mai 2014, par batuman

    I am trying to stream video from my Raspberry PI using ffserver, raspivid and ffmpeg. My command is as follow

    ffserver -f /etc/ffserver.conf & raspivid -vf -t 0 -w 450 -h 200 -fps 25 -b 2000000 -o - | ffmpeg -f h264 -r 25 -c:v h264 -i - -c:v libx264 -c:a libmp3lame http://localhost:8090/feed1.ffm

    It looks working, I see the video displayed on the monitor and got the error as

    Missing audio stream which is required by this ffm

    The whole output at console is as follow.

    ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
     built on May 10 2014 17:04:06 with gcc 4.6 (Debian 4.6.3-14+rpi1)
     configuration: --prefix=/home/pi/ffmpeg_build --extra-cflags=-I/home/pi/ffmpeg_build/include --extra-ldflags=-L/home/pi/ffmpeg_build/lib --bindir=/home/pi/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      52. 82.100 / 52. 82.100
     libavcodec     55. 60.103 / 55. 60.103
     libavformat    55. 37.102 / 55. 37.102
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  5.100 /  4.  5.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, h264, from 'pipe:':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p, 450x200, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    Sat May 17 07:10:56 2014 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
    Missing audio stream which is required by this ffm

    I searched and found that I have to use blank audio using libmp3lame. Is it the only way to do ?And can’t find installer for linux for libmp3lame.

  • ffmpeg - escaping single quotes doesn't work [duplicate]

    18 septembre 2022, par XorOrNor

    I've written a small python script for mass converting audio files. It uses ffmpeg. The problem is it doesn't work for files with single quotes in their filenames.

    


    script :

    


    
import os
import subprocess
import sys
from multiprocessing.pool import ThreadPool as Pool

source_dir="/home/kris/Music/test"
output_dir="/home/kris/Music/test_opus"

def worker(file):

    try:    
        dirname=os.path.dirname(file)
        file=file.replace("'","\\\\'")
        filename=file.split('.flac')[0]
        
        input_file=f"'{source_dir}/{file}'"
        output_file=f"'{output_dir}/{filename}.opus'"
        cmd="ffmpeg -n -i "+input_file+" -c:a libopus -b:a 320k "+output_file
        print(cmd)
        result = subprocess.call(cmd,stdout=subprocess.PIPE,shell=True)
    except:
        print('item error')
        

def start():    
    threads=os.cpu_count()  
    pool = Pool(threads)
    files=os.listdir(source_dir)
    for item in files:
        pool.apply_async(worker, (item,))

    pool.close()
    pool.join()
        
start()



    


    Testing :

    


      

    1. Filename : I'm a file.flac

      


    2. 


    3. When escaping single quote ' with double backslashes \\ - file=file.replace("'","\\\\'") the cmd for ffmpeg is :

      


    4. 


    


    ffmpeg -n -i '/home/kris/Music/test/I\\'m a file.flac' -c:a libopus -b:a 320k '/home/kris/Music/test_opus/I\\'m a file.opus'


    


    ffmpeg returns an error : /home/kris/Music/test/I\\m: No such file or directory

    


      

    1. When escaping single quote ' with a single backslash \ - file=file.replace("'","\\'") the cmd for ffmpeg is :
    2. 


    


    ffmpeg -n -i '/home/kris/Music/test/I\'m a file.flac' -c:a libopus -b:a 320k '/home/kris/Music/test_opus/I\'m a file.opus'


    


    I got an error :

    


    /bin/sh: 1: Syntax error: Unterminated quoted string


    


    According to ffmpeg docs : https://ffmpeg.org/ffmpeg-utils.html#toc-Examples escaping with single backslash should work.