
Recherche avancée
Médias (10)
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (36)
-
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) (...)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (7184)
-
ffmpeg : getting video from http page streamed to youtube
28 novembre 2014, par M-T-AI’m trying to configure ffmpeg to stream to youtube from ubuntu machine.
I have my wifi camera streaming with format ’video/x-ms-asf’ on local http page.
Then I use these commands in attempt to stream to youtube
VBR="2500k" # Bitrate
FPS="20" # FPS
QUAL="medium" #ffmpeg quality
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL base
SOURCE="http://192.168.9.XX/videostream.asf?user=admin&pwd=***" # Source of video
KEY="KEY HERE" # youtube event key
ffmpeg \
-i "$SOURCE" \
-vcodec copy -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
-ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \
-f flv "$YOUTUBE_URL/$KEY"I get this output
moha@moha:~/Desktop$ sh start_stream_xmas.sh
ffmpeg version git-2014-11-28-ea38e5a Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 28 2014 11:06:47 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.101 / 56. 15.101
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mjpeg @ 0xb0c0a60] ignoring invalid SAR: 0/0
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, asf, from 'http://192.168.9.66/videostream.asf?user=admin&pwd=':
Duration: N/A, start: 0.000000, bitrate: 32 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 8000 Hz, 1 channels, s16p, 32 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/createnetxmas.kpjg-5fdg-qp1c-4bvd':
Metadata:
encoder : Lavf56.15.101
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, q=2-31, 2500 kb/s, 1k tbn, 20 tbc
Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, mono, s16p, 712 kb/s
Metadata:
encoder : Lavc56.13.100 libmp3lame
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (adpcm_ima_wav (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
frame= 12 fps=0.0 q=-1.0 size= 882kB time=00:00:06.34 bitrate=1138.6kbits/frame= 13 fps= 13 q=-1.0 size= 953kB time=00:00:06.83 bitrate=1142.0kbits/frame= 14 fps=9.1 q=-1.0 size= 1029kB time=00:00:07.30 bitrate=1153.5kbits/frame= 15 fps=7.3 q=-1.0 size= 1104kB time=00:00:07.77 bitrate=1162.7kbits/frame= 16 fps=6.1 q=-1.0 size= 1181kB time=00:00:08.42 bitrate=1148.4kbits/frame= 17 fps=5.3 q=-1.0 size= 1256kB time=00:00:09.07 bitrate=1133.4kbits/frame= 18 fps=4.8 q=-1.0 size= 1325kB time=00:00:09.70 bitrate=1119.0kbits/frame= 19 fps=4.4 q=-1.0 size= 1403kB time=00:00:10.19 bitrate=1127.3kbits/frame= 20 fps=4.1 q=-1.0 size= 1482kB time=00:00:10.66 bitrate=1138.3kbits/frame= 21 fps=3.9 q=-1.0 size= 1556kB time=00:00:11.31 bitrate=1126.0kbits/moha@moha:~/Desktop$Suddenly the streaming stops and the terminal hangs. I’m not sure why. Is it because the video has no audio in streaming ?
-
Continuous YouTube live stream via ffmpeg keeps failing after a while [closed]
23 octobre 2024, par dooleyoI am trying to stream a simple MP4 file as a 24/7 YouTube radio station on repeat from a virtual machine using ffmpeg. It's only a 23 minute ( 1GB) file, and runs fine for hours or even days, then hangs up. I've tried on a small Digital Ocean droplet and detaching the ssh session with
screen
. I am using-c copy
so I don't need to process or re-encode anything (even on the smallest droplet, the memory/cpu utilization is negligible, so I know that's not the issue). I have even tried some of ffmpeg's auto-restart options to no avail. Here is the command I'm currently running :

ffmpeg -stream_loop -1 -re -i file.mp4 -c copy -drop_pkts_on_overflow 1 -attempt_recovery 1 -recover_any_error 1 -recovery_wait_time 1 -f flv "rtmp://x.rtmp.youtube.com/live2/{STREAM_KEY}"


This works perfectly, for a time, then hangs up with :


aost#0:1/copy @ 0x623b201c5fc0] Error submitting a packet to the muxer: Broken pipe 
[out#0/flv @ 0x623b201a1780] Error muxing a packet
[flv @ 0x623b201c3940] Failed to update header with correct duration.
[flv @ 0x623b201c3940] Failed to update header with correct filesize.
[out#0/flv @ 0x623b201a1780] Error writing trailer: Broken pipe
[out#0/flv @ 0x623b201a1780] Error closing file: Broken pipe
[out#0/flv @ 0x623b201a1780] video:9310695kB audio:571706kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.153029%
size= 9897524kB time=03:24:40.66 bitrate=6602.3kbits/s speed= 1x



There are not many articles I've found covering the broken pipe issue, but those that do seem to involve either A) streams that won't start, or B) streams where the broken pipe occurs the first time the input tries to loop (neither of which are my problem, since it streams and loops fine for quite a while).


Thanks in advance !


-
Youtube-dl and Ffmpeg
25 juin 2022, par Joksyi have made a music bot with discord.py, but i get this info thing and it doesnt work anymore
error [youtube] QxYdBvB8sOY: Downloading webpage 985104597242773505 [2022-06-25 07:45:51] [INFO ] discord.player: Preparing to terminate ffmpeg process 37580. [2022-06-25 07:45:51] [INFO ] discord.player: ffmpeg process 37580 has not terminated. Waiting to terminate... [2022-06-25 07:45:51] [INFO ] discord.player: ffmpeg process 37580 should have terminated with a return code of 1.
this is my code

import discord
import os
import asyncio
import youtube_dl
from discord import *

token = "token is here"
prefix = "j!"
blocked_words = ["blocked words are here"]

voice_clients = {}

yt_dl_opts = {'format': 'bestaudio/best'}
ytdl = youtube_dl.YoutubeDL(yt_dl_opts)

ffmpeg_options = {'options': "-vn"}

intents = discord.Intents.default()
intents.message_content = True

client = discord.Client(intents=intents)


programmer_role = "987018590152699964"
 


@client.event
async def on_ready():
 print(f"Bot logged in as {client.user}")

@client.event
async def on_message(msg):
 if msg.author != client.user:
 if msg.content.lower().startswith(f"{prefix}info"):
 await msg.channel.send(f"Hi, Im JoksysBot Made By Joksy!")

 for text in blocked_words:
 if text in str(msg.content.lower()):
 await msg.delete()
 await msg.channel.send("Hey, Dont Say That!")
 return
 if msg.content.startswith(f"{prefix}play"):

 try:
 voice_client = await msg.author.voice.channel.connect()
 voice_clients[voice_client.guild.id] = voice_client
 except:
 print("error")

 try:
 url = msg.content.split()[1]

 loop = asyncio.get_event_loop()
 data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=False))

 song = data['url']
 player = discord.FFmpegPCMAudio(song, **ffmpeg_options, executable="C:\\Users\\jonas\\Documents\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\bin\\ffmpeg.exe")

 voice_clients[msg.guild.id].play(player)

 except Exception as err:
 print(err)

 if msg.content.startswith(f"{prefix}pause"):
 try:
 voice_clients[msg.guild.id].pause()
 except Exception as err:
 print(err)

 if msg.content.startswith(f"{prefix}resume"):
 try:
 voice_clients[msg.guild.id].resume()
 except Exception as err:
 print(err)

 if msg.content.startswith(f"{prefix}stop"):
 try:
 voice_clients[msg.guild.id].stop()
 await voice_clients[msg.guild.id].disconnect()
 except Exception as err:
 print(err)

client.run(token)




its weird since all the other code in my bot works fine like the
!info
command, so it must be an error with either youtube-dl or ffmpeg. But then again it doesnt join the voice call in the first place so that might be the error. i added ffmpeg to path but i still wrote the path to it hereplayer = discord.FFmpegPCMAudio(song, **ffmpeg_options, executable="C:\\Users\\jonas\\Documents\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\bin\\ffmpeg.exe")
. i followed this tutorial for the bot https://www.youtube.com/watch?v=Q8wxin72h50&t=1040s i did everything he did but it didnt work. My discord.py version is2.0.0
my Python version is3.10.5
and my youtube_dl version is2021.12.17
my ffmpeg download isffmpeg-2022-06-16-git-5242ede48d-full_build
. I tested it ondiscord.py 1.73
and it worked fine. This was in intellij though whilst my main program is in Visual Studio Code but i couldnt see it making any big difference so it could be the intents that makes the program not work.I couldnt see any mistakes in the code but im new to discord.py, youtube_dl and ffmpeg stuff so unless visual studio code showed me what i did wrong, i wouldnt notice. But what did i do wrong and how can i fix it ?