
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (42)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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" ;
Sur d’autres sites (5575)
-
Cut end of multiple videos
19 octobre 2020, par Marvin von RappardI need a script to cut off the last 6 seconds of multiple videos. The videos do all have different length.



I can‘t find anything helpful online.



Does anyone know how to do that ?
thx


-
Python-ffmpeg video metadata editing script - Error splitting the argument list : Option not found
16 janvier, par maric193I have been updating a simple script that allows me to mass edit video files metadata (in a specific folder) and save them with a new filename (inside the same folder). I have been bouncing around different forums and decided to try python-ffmpeg.
For some reason right now I am getting the below FFmpegInvalidCommand exception


Error splitting the argument list: Option not found


I am not quite sure what I am doing wrong here, so I am wondering if someone can give me a fresh set of eyes to determine what the problem is. Apologies in advance, there may be some leftover code that I have not cut out yet. Thanks in advance !


import os
import re
import sys
from pathlib import Path
from ffmpeg import FFmpeg, FFmpegFileNotFound, FFmpegInvalidCommand
#Project looks through a folder, checks all the files in there, then edits metadata (and filename)
#and returns a new file for each file inside the folder

video = 'Anime' #Movie/TVSeries/Anime/etc...
name = 'Sword Art Online (2012)'
extension = '.mkv'
season = '01'
episode = 1

try:
 folder = r'D:\ServerTransfer\Update Server\%s\%s\S%s\\' % (video, name, season)

 #Check current file names
 print('Current names are: ')
 res = os.listdir(folder)
 print(res)
 
 # episode increase by 1 in each iteration
 # iterate all files from a directory
 for file_name in os.listdir(folder):
 # Construct old file name
 source = folder + file_name
 try:
 title = ''
 if episode < 100:
 # Adding the season & episode #'s
 destination = folder + name + '.S' + season + 'E0' + str(episode) + extension
 title = name + '.S' + season + 'E0' + str(episode)
## elif episode < 100:
## # Adding the season & episode #'s
## destination = folder + name + '.S' + season + '.E0' + str(episode) + extension
 else:
 # Adding the season & episode #'s
 destination = folder + name + '.S' + season + 'E' + str(episode) + extension
 title = name + '.S' + season + 'E' + str(episode)
 # Renaming the file
 if file_name.endswith(extension):
 ffmpeg = FFmpeg(executable=r'c:\FFmpeg\bin\ffmpeg.exe').option("y").input(source).output(destination,codec="copy",title=title)
 ffmpeg.execute()
 except FFmpegFileNotFound as exception:
 print("An FFmpegFileNotFound exception has been occurred!")
 print("- Message from ffmpeg:", exception.message)
 print("- Arguments to execute ffmpeg:", exception.arguments)
 except FFmpegInvalidCommand as exception:
 print("An FFmpegInvalidCommand exception has been occurred!")
 print("- Message from ffmpeg:", exception.message)
 print("- Arguments to execute ffmpeg:", exception.arguments)
 except Exception as err:
 print(f'Unexptected {err=}, {type(err)=}')
 raise
 episode += 1
 print('All Files Renamed')
 print('New Names are')
 # verify the result
 res = os.listdir(folder)
 print(res)
except OSError as err:
 print('OS error:', err)
except Exception as err:
 print(f'Unexptected {err=}, {type(err)=}')
 raise



Here is what one of my print statements in the exception says is being executed


- Arguments to execute ffmpeg: ['c:\\FFmpeg\\bin\\ffmpeg.exe', '-y', '-i', 'D:\\ServerTransfer\\Update Server\\Anime\\Sword Art Online (2012)\\S01\\\\[Kosaka] Sword Art Online - 01 - The World of Swords (1080p AV1 10Bit BluRay OPUS) [73066623].mkv', '-codec', 'copy', '-title', 'Sword Art Online (2012).S01E01', 'D:\\ServerTransfer\\Update Server\\Anime\\Sword Art Online (2012)\\S01\\\\Sword Art Online (2012).S01E01.mkv']



I have tried different variations of trying to run ffmpeg via python including using subprocess and shlex libraries. I also tried moviepy, however no one has answered me back on their page.


-
Avoid repetition in Schtasks in PowerSehll
30 juin 2017, par AliThe question is simple, but it seems I have problems with the philosophy of Schtasks.
Goal :
Download an online stream only for 2 hours every day (using FFMPEG) when my favorite program is streaming ; we can give a start and end date, but I am fine if it runs every day indefinitely.
How :
Schedule a task that runs a PowerShell script when the online program starts ; of course this is what I came up with ; feel free to make suggestions, if you have better ideas (maybe using Python).
My Solution :
schtasks /Create /SC DAILY /TN Task1 /TR "powershell.exe .\dl.ps1" /ST 18:00 /DU 02:00
where the dl.ps1 contains :
ffmpeg -i "rtmp://185.23.131.187/live/flv:tv3 live=1" -c copy .\fileName.flv
Problem :
This task repeats itself after 10 minutes --- which is the default repetition time.
Question
How do I achieve the goal and avoid the repetition ? Maybe my mindset about duration, /DU, and repetition interval, /RI, is wrong.
Bonus question
I would like to change the name of each recorded file, i.e., fileName, based on the day of recording. How do I do that in PowerShell ?
I have seen a solution that requires exporting the task to XML file. I was hoping that we could come up with a more elegant solution, if possible.