
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
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" ; -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (4497)
-
Revisiting Nosefart and Discovering GME
30 mai 2011, par Multimedia Mike — Game HackingI found the following screenshot buried deep in an old directory structure of mine :
I tried to recall how this screenshot came to exist. Had I actually created a functional KDE frontend to Nosefart yet neglected to release it ? I think it’s more likely that I used some designer tool (possibly KDevelop) to prototype a frontend. This would have been sometime in 2000.
However, this screenshot prompted me to revisit Nosefart.
Nosefart Background
Nosefart is a program that can play Nintendo Sound Format (NSF) files. NSF files are files containing components that were surgically separated from Nintendo Entertainment System (NES) ROM dumps. These components contain the music playback engines for various games. An NSF player is a stripped down emulation system that can simulate the NES6502 CPU along with the custom hardware (2 square waves, 1 triangle wave, 1 noise generator, and 1 limited digital channel).Nosefart was written by Matt Conte and eventually imported into a Sourceforge project, though it has not seen any development since then. The distribution contains standalone command line players for Linux and DOS, a GTK frontend for the Linux command line version, and plugins for Winamp, XMMS, and CL-Amp.
The Sourceforge project page notes that Nosefart is also part of XBMC. Let the record show that Nosefart is also incorporated into xine (I did that in 2002, I think).
Upgrading the API
When I tried running the command line version of Nosefart under Linux, I hit hard against the legacy audio API : OSS. Remember that ?In fairly short order, I was able to upgrade the CL program to use PulseAudio. The program is not especially sophisticated. It’s a single-threaded affair which checks for a keypress, processes an audio frame, and sends the frame out to the OSS file interface. All that was needed was to rewrite open_hardware() and close_hardware() for PA and then replace the write statement in play(). The only quirk that stood out is that including <pulse/pulseaudio.h> is insufficient for programming PA’s simple API. <pulse/simple.h> must be included separately.
For extra credit, I adapted the program to ALSA. The program uses the most simplistic audio output API possible — just keep filling a buffer and sending it out to the DAC.
Discovering GME
I’m not sure what to do with the the program now since, during my research to attempt to bring Nosefart up to date, I became aware of a software library named Game Music Emu, or GME. It’s a pure C++ library that can essentially play any classic video game format you can possible name. Wow. A lot can happen in 10 years when you’re not paying attention.It’s such a well-written library that I didn’t need any tutorial or documentation to come up to speed. Just a quick read of the main gme.h header library enabled me in short order to whip up a quick C program that could play NSF and SPC files. Path of least resistance : Client program asks library to open a hardcoded file, synthesize 10 seconds of audio, and dump it into a file ; ask the FLAC command line program to transcode raw data to .flac file ; use ffplay to verify the results.
I might develop some other uses for this library.
-
Writing metadata (Artist Name, Song Title, Year, Album, Duration, Genre) to mp3/m4a audio file using youtube-dl (subsequent AtomicParsely error)
10 décembre 2016, par IRNotSmartI am extracting audio only from youtube videos using
youtube-dl
. I would like to write the metadata (i.e. Artist Name and Song Title, Year, Album, Duration, Genre) into the mp3/m4a file after downloading. My attempt to accomplish this starts with this code :@echo off
youtube-dl --format m4a/mp3 --youtube-skip-dash-manifest --embed-thumbnail -o "%%(title)s.%%(ext)s" --metadata-from-title "%%(artist)s - %%(title)s" --add-metadata 2Y6Nne8RvaA
pauseThis code produces the following output :
[youtube] 2Y6Nne8RvaA: Downloading webpage
[youtube] 2Y6Nne8RvaA: Extracting video information
[youtube] 2Y6Nne8RvaA: Downloading thumbnail ...
[youtube] 2Y6Nne8RvaA: Writing thumbnail to: Kungs vs Cookin' on 3 Burners - Thi
s Girl.jpg
[download] Destination: Kungs vs Cookin' on 3 Burners - This Girl.m4a
[download] 100% of 2.99MiB in 00:01
[ffmpeg] Correcting container in "Kungs vs Cookin' on 3 Burners - This Girl.m4a"
[fromtitle] parsed title: This Girl
[fromtitle] parsed artist: Kungs vs Cookin' on 3 Burners
[ffmpeg] Adding metadata to 'Kungs vs Cookin' on 3 Burners - This Girl.m4a'
ERROR: AtomicParsley was not found. Please install.
Press any key to continue . . .As you can see, I am able to successfully able to add a few of the tags from the video, but not all of them and the Year is royally screwed up.
What is this
AtomicParsely
error and how do I remedy it ? Do I need this program to correctly add all the Metadata to the file that I want, or can this be accomplished in another way ?Referencing Steven Penny’s post, FFmpeg metadata not showing in Windows ?, is solving this problem as simple as using an
ffmpeg
command ?When I do a google search for this song, the first link that shows is the exact link I’m using on YouTube, and the search shows pertinent metadata (see below). I’m not sure if this data is input manually by users, or if Google mined this from the video :
I admit that I’m new to using
youtube-dl
andffmpeg
, but with the help of the commenters on StackOverflow, I’m learning more each day. This post is a follow-up to my previous question : Downloading YouTube to mp3 and writing metadata (artist/song title) to mp3 file using youtube-dl -
Unrecognized option 'c copy'
17 novembre 2022, par Eser ComakI have been working on a script as a part of both learning process and creating handy tools. I am trying to loop over a list of video files to extract a certain part of each video on the list. By looking at example scripts and ffmpeg documentation I finally came up with this :



import os
import sys
import subprocess as sp

from moviepy.tools import subprocess_call

def ffmpeg_extract_pandomim_subclip():

 with open('videolist.txt') as f:
 lines = f.readlines()
 lines = [x.strip() for x in lines]

 for video in lines:
 name, ext = os.path.splitext(video)
 targetname = "%s-pandomim%s" % (name, ext)
 t1 = "00:10:00"
 t2 = "00:15:00"
 cmd = ["ffmpeg",
 "-i", "%s%s" % (name, ext),
 "-ss", t1,
 "-to", t2, "-c copy", targetname]

 subprocess_call(cmd)

ffmpeg_extract_pandomim_subclip()




I know this is not the ideal way to do it : I created a videolist.txt and listed all the video file names in that txt file, line by line,(T1-1.mp4, T1-2.mp4,... ) that share the same folder with the python script "new 1.py" and the actual videos which are T1-1.mp4, T1-2.mp4,...



The error I am getting really confuses me because when I use -c copy from cmd it works just fine.



The full error is :



C:\Users\çomak\AppData\Local\Programs\Python\Python35-32\python.exe "C:/ffmpeg/bin/new 1.py"

[MoviePy] Running:
>>> ffmpeg -i T1-1.mp4 -ss 00:10:00 -to 00:15:00 -c copy T1-1-pandomim.mp4
[MoviePy] This command returned an error !Traceback (most recent call last):
 File "C:/ffmpeg/bin/new 1.py", line 28, in <module>
 ffmpeg_extract_pandomim_subclip()
 File "C:/ffmpeg/bin/new 1.py", line 25, in ffmpeg_extract_pandomim_subclip
 subprocess_call(cmd)
 File "C:\Users\çomak\AppData\Local\Programs\Python\Python35-32\lib\site-packages\moviepy\tools.py", line 48, in subprocess_call
 raise IOError(err.decode('utf8'))
OSError: ffmpeg version N-83975-g6c4665d Copyright (c) 2000-2017 the FFmpeg developers
 built with gcc 6.3.0 (GCC)
 configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
 libavutil 55. 48.100 / 55. 48.100
 libavcodec 57. 83.100 / 57. 83.100
 libavformat 57. 66.104 / 57. 66.104
 libavdevice 57. 3.100 / 57. 3.100
 libavfilter 6. 76.100 / 6. 76.100
 libswscale 4. 3.101 / 4. 3.101
 libswresample 2. 4.100 / 2. 4.100
 libpostproc 54. 2.100 / 54. 2.100
Unrecognized option 'c copy'.
Error splitting the argument list: Option not found


Process finished with exit code 1
</module>



I am using Pycharm and if I remove the -c copy part it works, but the process is slow... With -c copy, it is much faster.



I appreciate your time and effort to help me out !