
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (81)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (5721)
-
Ffmpeg how to encode mpg into 2 channel aac ?
1er août 2012, par Richard KnopThis command will of course work :
avconv -i input.mpg -c:v libx264 -s 852x480 -c:a libfaac output.mp4
But that encodes the mpg into a file with these audio settings :
{
"index": 1,
"codec_name": "mp2",
"codec_long_name": "MP2 (MPEG audio layer 2)",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "mp4a",
"codec_tag": "0x6134706d",
"sample_fmt": "s16",
"sample_rate": "48000",
"channels": 2,
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/48000",
"start_time": "0.000000",
"duration": "60.000000",
"nb_frames": "2500",
"tags": {
"language": "und",
"handler_name": ""
}
}This is what I need :
Resolution: 480p
Ratio: 1.78
Audio: 2 channel AAC
Video Bitrates: 600 / 800 / 1200 / 2000
Audio Bitrates: 96
Codec: H.264 - HighI tried :
avconv -i input.mpg -c:v libx264 -s 852x480 -c:a libfaac output.mp4
But I get error :
Unknown encoder 'libfaac'
Even after I installed libfaac-dev like this :
sudo apt-get install libfaac-dev
-
How to remove some audio tracks from video file using ffmpeg, and convert remaining mono audio tracks to stereo ?
3 août 2023, par StrasseI have a QuickTime file with 1 video track and 16 audio tracks (all mono, uncompressed 24 bit 48 kHz). Audio tracks 3-16 are blank/silent so I want to remove them completely. In addition, I’d like the remaining mono audio tracks 1 and 2, to (losslessly) become one stereo audio track (mono track 1 becomes left, mono track 2 becomes right). And so the new QuickTime file would include the original unaltered video track, and the one stereo audio track.


Can anyone please suggest the proper ffmpeg language ?


I have seen suggestions to remove unwanted audio tracks using the -map command, but my confusion is how to integrate that with the mono to stereo process, and keep unaltered video.


-
/bin/sh : ffmpeg : command not found while merge audio with with using ffmpeg aws lamda [duplicate]
1er mai 2023, par bhavesh kailaI am trying to merge audio with video using the below command in AWS lambda using Python but the getting and below error.


ffmpeg Command


cmd = 'ffmpeg -stream_loop -1 -i mayur.mp4 -i audio.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out/output.mp4'
subprocess.call(cmd, shell=True) 



Aws Lambda Error


2023-05-01T16:08:18.591+05:30 INIT_START Runtime Version: python:3.10.v2 Runtime Version ARN: arn:aws:lambda:eu-north-1::runtime:7764dc7f3ff1fc45718f596be4cd03d7bca223f0586f3bfa5fe6584d6af81cd8

2023-05-01T16:08:19.631+05:30 START RequestId: 4557a174-e12c-4924-971a-ef8f852b106b Version: $LATEST

2023-05-01T16:08:22.286+05:30

Copy
/bin/sh: ffmpeg: command not found
/bin/sh: ffmpeg: command not found

2023-05-01T16:08:23.926+05:30 [ERROR] FileNotFoundError: [Errno 2] No such file or directory: '/tmp/output.mp4' Traceback (most recent call last): File "/var/task/lambda_function.py", line 65, in lambda_handler s3_upload_response = s3.put_object(Bucket=bucket, Body=open('/tmp/output.mp4', 'rb'), Key =filename)

2023-05-01T16:08:23.929+05:30 END RequestId: 4557a174-e12c-4924-971a-ef8f852b106b



Full Code snippet


import json
from gtts import gTTS
import openpyxl
import boto3
import base64
import openai
import os
import random
import ffmpeg
import subprocess

# os.system("cp -ra bin/ffmpeg /tmp/")
# os.system("chmod -R 775 /tmp")

#from botocore.vendored import requests
language = 'en'
def lambda_handler(event, context):
 input1 = event["queryStringParameters"]['question']
 outputText=""
 
 # Define variable to load the dataframe
 dataframe = openpyxl.load_workbook('QNA/Book1.xlsx')
 
 #accesskey and secretkey for the S3 bucket
 accesskey = os.getenv("access_key")
 secretkey = os.getenv("secret_key")
 
 # Define variable to read sheet
 ws = dataframe['Sheet1']
 
 for row in ws.iter_rows(0,dataframe.active.max_row):
 for cell in row:
 #print(cell.value)
 if input1 in str(cell.value):
 outputText=row[1].value
 
 
 
 #Save Audio File
 audio = gTTS(text=outputText, lang=language, slow=False)
 audio.save("/tmp/audio.mp3")
 
 cmd='ffmpeg -stream_loop -1 -i QNA/mayur.mp4 -i tmp/audio.mp3 -shortest -map 0:v:0 -map 1:a:0 -y tmp/output.mp4'
 subprocess.run(cmd, shell=True)



Note : I Download the static library from Here and added it to the python folder and generate python.zip with other dependencies and upload it on the aws layer and the AWS layer is linked with the python function.


Note : Above code is working fine with google codelab and is able to generate a merged video working fine.


Any help would be appriciated