
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (39)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (5092)
-
ffmpeg - How to (programmatically) copy a stream's side data ?
25 mars 2021, par waldenCalmsMy app is a tag editor (eg ID3) written in Swift for macOS. I'm using ffmpeg as my library to perform the tag editing. When the user is done editing, the app should save the changes to (essentially) a modified copy of the original file. I'm able to copy everything I need (from input -> output file) EXCEPT "side data".


In other words, I'm doing the programmatic equivalent of :


ffmpeg -i input.mp3 -metadata key1=value1 -metadata key2=value2 -codec copy output.mp3



So, output.mp3 must be identical to input.mp3, except for the few metadata changes made by the user.


What I have working so far


I'm able to copy the audio stream and all associated metadata (tags), as is, from input.mp3 to output.mp3.


The problem


My input.mp3 happens to have some side data (see below), which does not get copied over to output.mp3. How to copy side data ? To be honest, I don't even know what side data is, and the documentation is not very helpful.


ffprobe gives the following output (snippet) for the input.mp3's side data that looks like :


Side data:
 replaygain: track gain - -9.200000, track peak - unknown, album gain - unknown, album peak - unknown,



I want THIS ^ to get copied over to output.mp3, but it does not :(


Relevant code snippet (format context initialization code omitted for conciseness)


let inAudioStream = inFormatContext!.pointee.streams.advanced(by: Int(audio_stream_index)).pointee!.pointee
var outAudioStream = outFormatContext!.pointee.streams.advanced(by: Int(audio_stream_index)).pointee!.pointee
 
/* Free existing side data*/
 
for i in 0..* Copy side data if present */
 
if let srcSideData = inAudioStream.side_data {
 
 let rawPtr: UnsafeMutableRawPointer? = av_mallocz_array(Int(inAudioStream.nb_side_data),
 MemoryLayout<avpacketsidedata>.size)
 
 outAudioStream.side_data = UnsafeMutablePointer<avpacketsidedata>(OpaquePointer(rawPtr))
 outAudioStream.nb_side_data = inAudioStream.nb_side_data
 
 for i in 0..(OpaquePointer(data))
 }
}
 
status = avformat_write_header(outFormatContext, nil)
</avpacketsidedata></avpacketsidedata>


I got this logic from this page. Is this ^ the right way to copy a stream's side data to the corresponding stream in the output file ? If not, how to do it ?


I have also tried the following functions with no luck :


av_stream_new_side_data(...)
av_stream_add_side_data(...)



Please ask for details if required, and I will provide them. Thanks very much !


-
How to save ffmpeg stream with datetime
18 janvier 2013, par user1800256I would like to write an output format from a ffmpeg encode line to save the stream in a SD card with date and hour.
To simplify the question I write the following (just ignore the extras) :
import subprocess, sus, os, datetime, time
from subprocess import Popen, PIPE
def call_command(command):
subprocess.Popen(command.split(' '))
call_command('ffmpeg -f video4linux2 -y -s qvga -r 24 -i /dev/video0 \
-vcodec mpeg2video /home/pi/webcam_+%Y/%m/%d_at_%H:%M:%S.mpg')I also tried another solutions like define firstly the filename and call it from the ffmpeg line but it doesen't work.
-
FFMPEG CPU encoding speed
22 janvier 2020, par natlozI would like to increase the speed of encoding videos. Thou having issue with it...
This is my CPU : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
OS : Windows 10 PRO 64bitI don’t have a graphics card.
This is the script I’m using for current video encoding :
ffmpeg -y -re -i o.mov -vf subtitles=SUBS.srt -s 1920x1080 -r 25 -pixel_format yuv420p -aspect 16:9 -top 1 -qp 0 -c:v libx264 -b:v 600000 -minrate 600000 -maxrate 600000 -x264opts bitrate=6000:vbv-maxrate=6000:vbv-bufsize=400:ratetol=400:bitrate=6000:vbv-init=800:force-cfr=1 -g 33 -bf 3 -muxrate 6.5M -flags cgop+ilme+ildct -c:a mp2 -ac 2 -ar 48k -b:a 192k -f mpegts out.mpeg
The current speed I’m getting is : speed = 1x.
How can I force my CPU to work at full speed ?