
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (34)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (7741)
-
Extract Progress tone from Audio file
15 février 2017, par spicyramenIs there a way to extract Progress tone frequency and duration from an audio file (Audacity, VLC, ffmpeg, etc.)
I need to configure Freeswitch spandsp.conf.xml for India.
I collected the audio file where I can hear the tone, wondering if there is a tool to extract and configure the settings required in Freeswitch.
Current non-working config :
<descriptor>
<tone>
<element freq1="2100" freq2="0" min="700" max="0"></element>
</tone>
<tone>
<element freq1="400" freq2="0" min="384" max="400"></element>
<element freq1="0" freq2="0" min="200" max="224"></element>
<element freq1="400" freq2="0" min="384" max="400"></element>
<element freq1="0" freq2="0" min="1968" max="1984"></element>
</tone>
<tone>
<element freq1="425" freq2="0" min="256" max="272"></element>
<element freq1="0" freq2="0" min="240" max="256"></element>
<element freq1="425" freq2="0" min="256" max="272"></element>
<element freq1="0" freq2="0" min="224" max="240"></element>
</tone>
<tone>
<element freq1="400" freq2="0" min="700" max="760"></element>
<element freq1="0" freq2="0" min="700" max="760"></element>
<element freq1="400" freq2="0" min="700" max="760"></element>
<element freq1="0" freq2="0" min="700" max="760"></element>
</tone>
</descriptor>Image of progress tone.
-
FFMPEG replace video audio with filter_complex
21 février 2017, par Chintan7027I wants such a output video where audio of output is created using ffmpeg -filter_complex mechanism,
/usr/local/Cellar/ffmpeg/3.2.2/bin/ffmpeg
-i /uploads/videos/1487684390-lg9htt0RW2.mov
-i /uploads/audios/1487664761-SCPbo6Tkac.mp3
-filter_complex "
[0:a]atrim=0:8.70824980736,asetpts=PTS-STARTPTS[aud1];
[1:a]atrim=0:12.9567301273,asetpts=PTS-STARTPTS[aud2];
[0:a]volume=0.3,atrim=start=8.70824980736:21.6649799347,asetpts=PTS-STARTPTS[slow_aud];
[aud2][slow_aud] amerge=inputs=2[a_merged];
[0:a]atrim=start=21.6649799347:31.6410098076 [remaining_audio];
[aud1][a_merged][remaining_audio]concat=n=3:v=0:a=1[aout]"
-map 0:v -map "[aout]" -c:v copy -acodec mp3
/uploads/output/1487684390-lg9htt0RW2.movOriginal Audio Recorded Based On UTC timestamp Vs Original Video Recorded Based on UTC timestamp
13:00-------- Original Event Audio -------- 13:20
12:50------------- Event Video Recorded --------------13:30This is my requirement
So the audio of the output video should contains
- First 10 seconds(12:50 - 13:00) are Audio of Event Video Recorded
- Next 20 seconds (13:00 -13:20) are merged audio(Original Audio+ Original Video where Original video’s audio volume is .3)
- Remaining 10 seconds(13:21-13:30) of video will play remaing audio of video
What I am getting by above commands
- First 10 seconds(12:50 - 13:00) are Audio of Event Video Recorded Achieved
- Next 20 seconds (13:00 -13:20) are merged audio(Original Audio+ Original Video where Original video’s audio volume is .3) Achieved
- Remaining 10 seconds(13:21-13:30) of video will play remaining audio of video Not Achieved
-
Thumbs depending on the video duration
28 février 2017, par MaelLacouras said in the title, i would like to add thumbs, depending on the video duration.
It it possible to define time using percentage ? Or to use a variable duration ? I know that the duration can be found in the _meta, but is it possible to retrieve it before saving the video ?
(I can certainly do it by using ffmpeg command, but it should be available using paperclip command ?)Here is my code :
validates :title,
length: { in: 2..60 }
validates :description,
length: { minimum: 2 }
has_attached_file :content, styles: {
:medium => {
:format => 'mp4',
#convert_options: {
#output: {
#name: 'value' # Results in `-name value` in the command line
#}
#}
},
:thumb0 => { :geometry => '320x180#', :format => 'jpeg', :time => 1.0 * duration / 6.0},
:thumb1 => { :geometry => '320x180#', :format => 'jpeg', :time => 2.0 * duration / 6.0},
:thumb2 => { :geometry => '320x180#', :format => 'jpeg', :time => 3.0 * duration / 6.0},
:thumb3 => { :geometry => '320x180#', :format => 'jpeg', :time => 4.0 * duration / 6.0},
:thumb4 => { :geometry => '320x180#', :format => 'jpeg', :time => 5.0 * duration / 6.0},
}, :processors => [:transcoder]
validates_attachment :content, presence: true,
content_type: { content_type: /\Avideo\/.*\Z/ },
size: { :less_than => 2.gigabytes }Thx in advance for your reply ! If it’s not clear or if you need extra-data let me know :)
(I posted my question here, after wrongly posted it in GitHub, don’t be surprise if you found it on the issue repo)
EDIT
I made it to work with the following code,even if it’s not elegant at all :
has_attached_file :content, styles: {
:medium => {
:format => 'mp4',
},
:thumb0 => { :geometry => '320x180#', :format => 'jpeg', :time => ->(attachment) { attachment.instance.method(:style_time_for0) } },
:thumb1 => { :geometry => '320x180#', :format => 'jpeg', :time => ->(attachment) { attachment.instance.method(:style_time_for1) } },
:thumb2 => { :geometry => '320x180#', :format => 'jpeg', :time => ->(attachment) { attachment.instance.method(:style_time_for2) } },
:thumb3 => { :geometry => '320x180#', :format => 'jpeg', :time => ->(attachment) { attachment.instance.method(:style_time_for3) } },
:thumb4 => { :geometry => '320x180#', :format => 'jpeg', :time => ->(attachment) { attachment.instance.method(:style_time_for4) } },
}, :processors => [:transcoder]
def style_time_for0(meta, _options)
1*meta[:duration].to_f / 6
end
def style_time_for1(meta, _options)
2*meta[:duration].to_f / 6
end
def style_time_for2(meta, _options)
3*meta[:duration].to_f / 6
end
def style_time_for3(meta, _options)
4*meta[:duration].to_f / 6
end
def style_time_for4(meta, _options)
5*meta[:duration].to_f / 6
endI should add a loop and a parameter to the style_time_for, but i can’t get it to work. Does someone have an idea ?