Recherche avancée

Médias (91)

Autres articles (55)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number 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
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (9657)

  • FFMPEG Images to video - 'file not found' error in command - I'm sure it's something obvious

    12 décembre 2014, par jgads

    I’m running this command on my Android phone with an FFmpeg library. It works great for combining videos into one resultant video, but not with images. Here’s the command :

    -framerate 4 -start_number 0 -i '/storage/emulated/0/Pictures/phototest/%3d.jpg' -c:v libx264 -r 30 -pix_fmt yuv420p /storage/emulated/0/Pictures/phototest/result.mp4

    The error is :

    '/storage/emulated/0/Pictures/phototest/%3d.jpg': No such file or directory

    The images are just consecutively named, e.g. 1.jpg, 2.jpg and so on, and they’re definitely there - though I think FFMPEG is taking the image file name literally rather than interpreting it. I’m missing something obvious here, I’m sure of it. I looked round StackOverflow and the whole ’%3d’ wildcard is supposed to work ! Any ideas ?

    EDIT : Running the command with just the first image (1.jpg) works fine. Definitely an issue with the wildcard. In addition, running the command without the image path in quotes doesn’t seem to work either.

    EDIT 2 : Adding ’img’ in front of every file so that it it’s ’img1.jpg’, ’img2.jpg’ and so on doesn’t work either. Is there a way to pass multiple images separated by ’|’ like the concat command ?

  • Extract audio with ffmpeg, linux

    13 mai 2019, par Puffin

    I’m trying to extract audio tracks from some Avi videos and save them to their own files, ideally without re-encoding.

    I’ve had a look through here https://www.ffmpeg.org/ffmpeg.html#Audio-Options and here ffmpeg to extract audio from video though I’m getting errors regardless of the approach I try.

    My latest command string is :

    ffmpeg -i /home/d/Pictures/Test/input-video.AVI -map 0:a -vn -acodec copy /home/d/Pictures/Test/output-audio.m4a

    The key part of the output is :

    Guessed Channel Layout for  Input Stream #0.1 : mono
    Input #0, avi, from '/home/d/Pictures/Test/input-video.AVI':
     Duration: 00:00:05.94, start: 0.000000, bitrate: 18131 kb/s
       Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 17995 kb/s, 30.28 fps, 30.28 tbr, 30.28 tbn, 30.28 tbc
       Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 1 channels, s16, 176 kb/s
    File '/home/d/Pictures/Test/output-audio.m4a' already exists. Overwrite ? [y/N] y
    [ipod @ 0x1d89520] Codec for stream 0 does not use global headers but container format requires global headers
    [ipod @ 0x1d89520] Could not find tag for codec pcm_s16le in stream #0, codec not currently supported in container
    Output #0, ipod, to '/home/d/Pictures/Test/output-audio.m4a':
     Metadata:
       encoder         : Lavf56.40.101
       Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, mono, 176 kb/s
    Stream mapping:
     Stream #0:1 -> #0:0 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

    I’m believe I have got the right audio stream number from this output and thus am assuming the "-map 0:a" part isn’t the problem.

    I’m running on Linux Mint 18.1

  • AttributeError : 'FFmpegAudio' object has no attribute '_process' while trying to play audio from URL

    13 août 2022, par jmcamacho7

    I can't find any solution online and I don't know what's wrong.

    


    My code is : (Not pasting the URL getting since that works fine)

    


    from urllib import parse, request
import re
import pafy
from discord import FFmpegPCMAudio, PCMVolumeTransformer

FFMPEG_OPTIONS = {
    'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'
}

@bot.command(pass_context=True)
async def play(ctx, * , search):
  query_string = parse.urlencode({'search_query': search})
  html_content = request.urlopen('http://www.youtube.com/results?' + query_string)
  search_results=re.findall('watch\?v=(.{11})',html_content.read().decode('utf-8'))
  print(search_results[0])
  
  if(ctx.author.voice):
    channel = ctx.message.author.voice.channel
    await ctx.send("https://www.youtube.com/watch?v="+search_results[0])  
    url = "https://www.youtube.com/watch?v="+search_results[0]
    conn = await channel.connect()
    conn.play(discord.FFmpegAudio(url, **FFMPEG_OPTIONS))
  else:
    await ctx.send("Necesitas estar en un canal de audio para usar este comando")


    


    It just gives me this error everytime I try it :

    


    Traceback (most recent call last):
  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 103, in __del__
    self.cleanup()
  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 154, in cleanup
    proc = self._process
AttributeError: 'FFmpegAudio' object has no attribute '_process'


    


    Anyway to solve this ?