Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (48)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7346)

  • I dont know how to Create a frame from a video with FFMpeg

    17 octobre 2017, par Rohallah Hatami

    by this code i am creating new object of news width video file and save that file into public/files

     public function store(Request $request, $type)
    {
       $library_data = [
           'library_title' => request()->input('title'),
           'library_short_text' => request('short_text'),
           'library_body' => request('body'),
           'library_type' => $type,
           'library_cat_id' =>request()->input('category'),
       ];

       $new_library_object = Library::create($library_data);
       if (count($request->file('fileItem')) > 0 && is_array($request->file('fileItem')) ){
           foreach ($request->file('fileItem') as $file){
               $file_data=[
                   'file_type'=> $file->getMimeType(),
                   'file_size'=> $file->getClientSize(),
               ];
               $new_file_name = str_random(45).'.'.$file->getClientOriginalExtension();
               $result = $file->move(public_path('files'),$new_file_name);
               if($result instanceof \Symfony\Component\HttpFoundation\File\File){
                   $file_data['file_name'] = $new_file_name;
                   $file_data['file_title'] = $new_file_name;

                   $new_file_object=$new_library_object->files()->create($file_data);

               }
           }
       }elseif (count($request->file('fileItem')) > 0 && !is_array($request->file('fileItem'))){

           $file_data=[
               'file_type'=> $request->file('fileItem')->getMimeType(),
               'file_size'=> $request->file('fileItem')->getClientSize(),
           ];


           $new_file_name = str_random(45).'.'.$request->file('fileItem')->getClientOriginalExtension();
           $result = $request->file('fileItem')->move(public_path('files'),$new_file_name);
           if($result instanceof \Symfony\Component\HttpFoundation\File\File){
               $file_data['file_name'] = $new_file_name;
               $file_data['file_title'] = $new_file_name;

               $new_file_object=$new_library_object->files()->create($file_data);

           }
       }

    then I dont know how use this codes to Create a frame from a video

    FFMpeg::fromDisk('videos')
    ->open('steve_howe.mp4')
    ->getFrameFromSeconds(10)
    ->export()
    ->toDisk('thumnails')
    ->save('FrameAt10sec.png');

    whate is ’videos’ in fromdisk and in my codes how use this parametrs

    I use this code `

    $new_file_object=$new_library_object->files()->create($file_data);
               $start = \FFMpeg\Coordinate\TimeCode::fromSeconds(5);
               $clipFilter = new \FFMpeg\Filters\Video\ClipFilter($start);
               FFMpeg::fromDisk('files')
                   ->open($new_file_object->file_name)
                   ->addFilter($clipFilter)
                   ->export()
                   ->toDisk('files')
                   ->inFormat(new \FFMpeg\Format\Video\X264)
                   ->save('short_steve.mkv');

    but I have this erroe

    Non-static method Pbmedia\LaravelFFMpeg\FFMpeg::fromDisk() should not be called statically
  • FFMPEG(?) Error : [out#0/s16le @ 000002452f906a00] Output file does not contain any stream

    11 mars 2024, par Ondosh
    FFMPEG_OPTIONS = {
    'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
    'options': '-vn'}
YDL_OPTIONS = {
    'format': 'bestaudio/best',
    'extractaudio': True,
    'noplaylist': True,
    'simulate': 'True',
    'preferredquality': '192',
    'preferredcodec': 'mp3',
    'key': 'FFmpegExtractAudio'}
@bot.command(aliases=['Ping', 'PING', 'Пинг', 'ПИНГ', 'зштп', 'ЗШТП', 'Зштп',
                      'пинг'])
async def ping(ctx):
    await ctx.message.reply(f'Ping: {round(bot.latency * 1000)}ms')
#########################[PLAY MUSIC BLOCK]#########################
@bot.command()
async def add(ctx, *url):
    url = ' '.join(url)
    with yt_dlp.YoutubeDL(YDL_OPTIONS) as ydl:
        try:
            info = ydl.extract_info(url, download=False)
        except:
            info = ydl.extract_info(f"ytsearch:{url}",
                                    download=False)['entries'][0]

    URL = info['formats'][0]['url']
    name = info['title']
    time = str(datetime.timedelta(seconds=info['duration']))
    songs_queue.q_add([name, time, URL])
    embed = nextcord.Embed(description=f'Записываю [{name}]({url}) в очередь 📝',
                           colour=nextcord.Colour.red())
    await ctx.message.reply(embed=embed)
def step_and_remove(voice_client):
    if loop_flag:
        songs_queue.q_add(songs_queue.get_value()[0])
    songs_queue.q_remove()
    audio_player_task(voice_client)
def audio_player_task(voice_client):
    if not voice_client.is_playing() and songs_queue.get_value():
        voice_client.play(nextcord.FFmpegPCMAudio(
            executable="ffmpeg\\bin\\ffmpeg.exe",
            source=songs_queue.get_value()[0][2],
            **FFMPEG_OPTIONS),
            after=lambda e: step_and_remove(voice_client))
@bot.command(aliases=['Play', 'PLAY', 'играй', 'ИГРАЙ', 'Играй', 'сыграй',
                      'Сыграй', 'СЫГРАЙ', 'здфн', 'Здфн', 'ЗДФН', 'p', 'P',
                      'pl', 'PL', 'Pl', 'Плей',
                      'ПЛЕЙ', 'плей'])
async def play(ctx, *url):
    await join(ctx)
    await add(ctx, ' '.join(url))
    await ctx.message.add_reaction(emoji='🎸')
    voice_client = ctx.guild.voice_client
    audio_player_task(voice_client)
@bot.command(aliases=['Queue', 'QUEUE', 'йгугу', 'Йгугу', 'ЙГУГУ', 'очередь',
                      'Очередь', 'ОЧЕРЕДЬ', 'список', 'Список', 'СПИСОК',
                      'list', 'List', 'LIST', 'дшые', 'Дшые', 'ДШЫЕ', 'Лист',
                      'лист', 'ЛИСТ', 'песни', 'Песни', 'ПЕСНИ', 'songs',
                      'Songs', 'SONGS', 'ыщтпы', 'ЫЩТПЫ', 'Ыщтпы', 'q'])
async def queue(ctx):
    if len(songs_queue.get_value()) > 0:
        only_names_and_time_queue = []
        for i in songs_queue.get_value():
            name = i[0]
            if len(i[0]) > 30:
                name = i[0][:30] + '...'
            only_names_and_time_queue.append(f'📀 `{name:<33}   {i[1]:>20}`\n')
        c = 0
        queue_of_queues = []
        while c < len(only_names_and_time_queue):
            queue_of_queues.append(only_names_and_time_queue[c:c + 10])
            c += 10

        embed = nextcord.Embed(title=f'ОЧЕРЕДЬ [LOOP: {loop_flag}]',
                               description=''.join(queue_of_queues[0]),
                               colour=nextcord.Colour.red())
        await ctx.send(embed=embed)

        for i in range(1, len(queue_of_queues)):
            embed = nextcord.Embed(description=''.join(queue_of_queues[i]),
                                   colour=nextcord.Colour.red())
            await ctx.send(embed=embed)
    else:
        await ctx.send('Очередь пуста')


    


    There is the part of my music bot in Discord, I don't really know why it doesn't work. Actually, I tried to use someone's old code, so it needs to be fixed. I have cut out the most important parts of the code, which most likely had an error.
I found other questions, but there was another errors.
After trying to start the video, I get the following errors :
[out#0/s16le @ 000002452f906a00] Output file does not contain any stream
Error opening output file pipe:1.
Error opening output files : Invalid argument

    


  • FFmpeg pan filter error when routing stereo audio to rear channels of 5.1 output

    13 avril, par MilkyTech

    I'm trying to mix a stereo commentary track into the rear surround channels of a 5.1 audio stream using FFmpeg on Windows 10. My goal is to lower the volume of the original 5.1 movie audio, then add the stereo commentary so it plays from the rear left and right speakers (SL and SR).

    


    I've already converted the commentary to EAC3 to match the main track's codec :

    


    ffmpeg -i "CastCommentary.m4a" -c:a eac3 -b:a 640k CastCommentary.eac3

    


    Then I tried mixing them like this (from within Command Prompt, not PowerShell or a batch file) :

    


    ffmpeg -i "Tropic.Thunder.2008.UNRATED.mkv" -i "CastCommentary.eac3" -filter_complex "[0:a:0]volume=0.4[aud1]; [1:a:0]pan=5.1:FL=0:FR=0:FC=0:LFE=0:SL=c0:SR=c1[cm_rear]; [aud1][cm_rear]amix=inputs=2[aout]" -map 0:v -map "[aout]" -map 0:s? -t 600 -c:v copy -c:s copy -c:a eac3 -b:a 640k "Tropic.Thunder.5.1.commentary.test.mkv"


    


    But I keep getting errors like :

    


    [fc#0 @ ...] Error applying option 'SL' to filter 'pan': Option not found
Error : Option not found


    


    Or :

    


    [Parsed_pan_1 @ ...] Expected in channel name, got ""


    


    Or even :

    


    Output channel layout 5.1 does not match the number of channels mapped 2.


    


    I’ve tried variations of the pan syntax :

    


      

    • pan=5.1:FL=0:FR=0:FC=0:LFE=0:SL=c0:SR=c1
    • 


    • pan=5.1|FL=0|FR=0|FC=0|LFE=0|SL=c0|SR=c1
    • 


    • Wrapping in single/double
    • 


    • quotes Escaping for CMD (no caret issues in current runs)
    • 


    


    Nothing seems to work.

    


    🎯 Goal :

    


      

    • Keep 5.1 audio from the original movie (volume lowered)
    • 


    • Add stereo commentary to SL and SR
    • 


    • Output a proper 5.1 EAC3 mix
    • 


    


    🔧 System :

    


      

    • Windows 10
    • 


    • FFmpeg version : [latest static build from ffmpeg.org]
    • 


    • Running in true Command Prompt (not PowerShell)
    • 


    • Source audio : 5.1 EAC3 from a .mkv, stereo .eac3 from .m4a
    • 


    


    What’s the correct filter_complex syntax to route a stereo track to the rear channels of a 5.1 layout using FFmpeg on Windows ? Am I missing something about pan, amix, or Windows quirks ?