
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (60)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (7602)
-
Crop MP3 to first 30 seconds
2 décembre 2016, par CheekysoftOriginal Question
I want to be able to generate a new (fully valid) MP3 file from an existing MP3 file to be used as a preview — try-before-you-buy style. The new file should only contain the first n seconds of the track.
Now, I know I could just "chop the stream" at n seconds (calculating from the bitrate and header size) when delivering the file, but this is a bit dirty and a real PITA on a VBR track. I’d like to be able to generate a proper MP3 file.
Anyone any ideas ?
Answers
Both mp3split and ffmpeg are both good solutions. I chose ffmpeg as it is commonly installed on linux servers and is also easily available for windows. Here’s some more good command line parameters for generating previews with ffmpeg
-t <seconds></seconds>
chop after specified number of seconds-y
force file overwrite-ab <bitrate></bitrate>
set bitrate e.g. -ab 96k-ar <rate hz="hz"></rate>
set sampling rate e.g. -ar 22050 for 22.05kHz-map_meta_data <outfile>:<infile></infile></outfile>
copy track metadata from infile to outfile
instead of setting -ab and -ar, you can copy the original track settings, as Tim Farley suggests, with :
-acodec copy
-
Why doesn't -vcodec copy work with my H.264 files ?
5 novembre 2011, par arlomediaI'm converting user-uploaded videos to H.264/MP4 files with ffmpeg 0.6.1 :
ffmpeg -i input.mov -f mp4 -vcodec libx264 -vpre medium -acodec libfaac -r 15 -b 360k -ab 48k -ar 22050 -s 480x320 fullclip.mp4
Then I want to extract sample clips from those videos. This should give me the first 30 seconds :
ffmpeg -i fullclip.mp4 -vcodec copy -acodec copy -ss 0 -t 30 sampleclip.mp4
But when I do that, the sampleclip.mp4 file has no video track. I don't see an error message from ffmpeg ; it just shows a final video size of 0kb in its output.
If I apply the second command to the sample H.264/MP4 clip that came with JWPlayer, I have no problems. So it looks like I either need to tweak the first command to make a more compatible fullclip.mp4, or tweak the second command to make it process my fullclip.mp4. Can someone see what I'm missing ?
By the way, replacing the second command with the following command creates a video track, but takes more time and degrades the picture quality because it encodes the video again :
ffmpeg -i fullclip.mp4 -vcodec libx264 -vpre medium -acodec copy -ss 0 -t 30 sampleclip.mp4
-
converting of wma to mp3 through ffmpeg is not working
8 novembre 2011, par Rahul MehtaI want to convert my wma file to mp3 by ffmpeg .
why this error is coming what should i do ? i installedlibmp3lame
already .when i am trying to convert by following command gives error :
/var/www/yapi$ sudo /usr/local/bin/ffmpeg -i uploads/4e02dc4f197c1.wma uploads/4e02dc4f1b212.mp3
ffmpeg version N-30971-g4b87a08, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 10:08:49 with gcc 4.4.5
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-x11grab
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, asf, from 'uploads/4e02dc4f197c1.wma':
Metadata:
title : "Highway Blues"
artist : Marc Seales, composer. New Stories. Ernie Watts, saxophone.
genre : Jazz
album : Speakin' Out
track : 1
WM/Year : 1999
WMFSDKVersion : 8.00.00.4389
WMFSDKNeeded : 0.0.0.0000
Duration: 00:01:33.71, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
File 'uploads/4e02dc4f1b212.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to 'uploads/4e02dc4f1b212.mp3':
Stream #0.0: Audio: [0][0][0][0] / 0x0000, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Encoder (codec id 86017) not found for output stream #0.0why it is not working ?