
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (75)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (5807)
-
Dissappearing unicode characters in Windows
3 juin 2014, par user3698015so what happens is that if the video title has a symbol that isn’t supported by your current locale then ffmpeg won’t be able to get to that file properly.
Here’s one example
►2 HOURS BEST MELODIC DUBSTEP MIX APRIL 2013◄ ヽ( ≧ω≦)ノ
as you may or may not be able to see, lots of symbols from unicode.
The problem is that in cmd and ffmpeg, though cmd can see
►2 HOURS BEST MELODIC DUBSTEP MIX APRIL 2013◄ ヽ( ≧ω≦)ノ
ffmpeg only sees
2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ
This is the exact error message (i’m using youtube-dl)
[ffmpeg] Adding metadata to 'C:\Music\ToBeDone\2014-06-01\►2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013◄ ヽ( ≧ω≦)ノ.mp4'
ERROR: C:\Music\ToBeDone\2014-06-01\2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ.mp4: No such file or directory
ERROR: WARNING: unable to obtain file audio codec with ffprobeAfter some research i’ve determined that by changing the system locale you can change which symbols cmd can support.
However
ヽ
Used to appear as a box in a question mark in United states locale. In japanese locale it appears as it does on your screen right now.
the problem with
◄
is that even though it’s not appearing as a question mark in a box (it’s appearing as how it should be), ffmpeg (or cmd) can’t detect it properly.
These are the unique characters that i need to have a locale that supports
Ö
◄ ヽ( ≧ω≦)ノ
( ͡° ͜ʖ ͡°)
(_≧∇≦)
†
【More info on the problem in general
https://github.com/rg3/youtube-dl/issues/2999
and this is what's going on (Batch Script)
@echo off
setlocal
cd C:\youtube-dl
set /p "var1=Enter URL: " %=% pause
if defined var1 set "var1=%var1:"=%"
set "var2=%date:/=-%"
set "var3=%%(title)s.%%(ext)s"
youtube-dl "%var1%" -ci -o "C:\Music\ToBeDone\%var2%\%var3%" -f best -x --no-mtime --add-metadata
youtube-dl "%var1%" --skip-download -ci -o "C:\Music\ToBeDone\%var2%\Thumbnail\%var3%" --write-thumbnail
youtube-dl "%var1%" --skip-download -ci -o "C:\Music\ToBeDone\%var2%\Description\%var3%" --write-descriptionedit :
http://www.fileformat.info/info/unicode/char/25c4/index.htm
so i found the symbol but i’m having trouble in finding out how each locale relates to the symbol...Like what about each locale makes the symbol usable to cmd ?
-
Discord.py error ; ffmpeg not found even after installing and configuring it in Environment Variables
11 septembre 2020, par TrayambakSo I'm trying to integrate the music bot feature in my Discord bot, I'll just link the code I suspect something's wrong with.


import discord
from discord.ext import commands
import praw
import random
import os
import json
import ffmpeg
import youtube_dl

# music command
@client.command(pass_context=true)
async def play(ctx, url):
 server = ctx.message.server
 voice_client = client.voice_client_in(server)
 player = await voice.client.create_ytdl_player(url)
 players[server.id] = player
 player.start()



and here is the error.


Traceback (most recent call last):
 File "C:\Users\Trayambak\Desktop\Akihiko\bot.py", line 8, in <module>
 import ffmpeg
ModuleNotFoundError: No module named 'ffmpeg'
[Finished in 52.353s]
</module>


-
Batch file runs in some folder and not others [duplicate]
10 novembre 2020, par user1738673Final update : I have determined code that works in all folders, even those with lots of parentheses. It is as follows :


FOR %%# IN ("*.flac") DO (Title %~nx0 Processing: %%~nx# 
 ffmpeg -i "%%~nx#" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~n#.mp3"
 IF NOT ERRORLEVEL 1 IF EXIST "%%~nx#" DEL /q "%%~nx#")

ECHO Completed %~nx0

PAUSE



The reason for the failure was a combination of parentheses in the folder names and hyphens in the filenames. The most important part of the final code is the double quotes. This resolved the problem with hyphens in the filename. It turned out to not be necessary to have
cd /D "%~dp0."
as the first line, so I removed it from the code. Thank you to everyone for all of your suggestions. I really appreciate the help and I am glad this was completely resolved.

History Starts here :


After all of the suggestions, here is the code to run in the folder of flac files :


cd /D "%~dp0."

FOR %%# IN ("*.flac") DO (Title %~nx0 Processing: %%~nx#
 ffmpeg -i "%%~nx#" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~n#.mp3")
 
ECHO Completed %~nx0
PAUSE



Here are my current troubleshooting steps as completed :


I renamed the files in one of the folders in which it does not run to "a.flac", "b.flac", "c.flac", etc. That is to make sure it is not a filename related problem. It did not run.


I renamed the folder itself to a single letter to make sure it was not a folder name issue (
F:\MUSIC\j
). It did not run.

I copied the entire folder and gave it a new single-letter name (
F:\MUSIC\y
). It did not run.

I copied the files to a newly-created single-letter named folder at the same directory level (
F:\MUSIC\d
). It did not work.

I copied the flac files and bat file from the single-letter folder to a newly created single-letter folder. It did not run.


So, I went back the original folder and RENAMED MY .bat FILE from
single folder - flac to 192.bat
to192.bat
. It ran perfectly.

I went back and renamed the .bat file in all folders described above. They all ran perfectly.


Next, I renamed my master .bat file to
single_folder_flac_to_192.bat
. I ran it in the original file folder with all of the original names for folder and files. It ran perfectly.

I then copied it into each of the folder described above. It ran perfectly.


I then went back to my original code and renamed it to
192a.bat
. This still did not run in the original folder, but ran perfectly in the others I created.

So, I renamed my original folder from
F:\MUSIC\Yanni - Live At The Acropolis (1994) [FLAC]
toylata
. It did not run.

That is all I have time for before needing to go to work. More at lunch time.


Original Post Starts Here :


I am using Windows 10 Pro on my home PC.


I have a batch file which uses ffmpeg to create mp3 from flac and then delete the flac. It runs perfectly in most folders of music. The code is here :


FOR %%a IN ("*.flac") DO (Title %~0 Processing: %%~na.flac
 ffmpeg -i "%%~na.flac" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~na.mp3"
 if not errorlevel 1 if exist "%%~pna.flac" del /q "%%~pna.flac")
ECHO Completed %~n0
PAUSE
 



In some folders, when I run the batch, it just blinks and goes away. Yes- there are flac files in the folders.


I have checked the different music folders for their properties (read only, access, etc.) and they look identical. The file names are "normal". It doesn't matter which drive I copy the folder into, the results are the same.


I have run the file as Administrator and get the same result.


What else should I be looking into ?