
Recherche avancée
Autres articles (38)
-
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 (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (5785)
-
Java ffmpeg cli wrapper : This binary is not a supported version of ffprobe
5 juillet 2022, par Andrea GoldoniI need to use ffmpeg for one of my projects and I found this wrapper : https://github.com/bramp/ffmpeg-cli-wrapper . I've been trying to run it for a few days now, but I keep getting this error at runtime and I don't know how to fix it :




I'm on Ubuntu 20.04.4 and I installed ffmpeg from the command line and I have static version 5.0.1. I've tried installing earlier versions, but if I do I get another runtime error saying I don't have permissions to run the program.

That's my code :

import net.bramp.ffmpeg.FFmpeg;
import net.bramp.ffmpeg.FFmpegExecutor;
import net.bramp.ffmpeg.FFprobe;
import net.bramp.ffmpeg.builder.FFmpegBuilder;
import net.bramp.ffmpeg.probe.FFmpegProbeResult;

import java.io.IOException;

public class Main {
 public static void main(String argv[]) throws IOException {
 FFmpeg ffmpeg = new FFmpeg("/usr/local/bin/ffmpeg");
 FFprobe ffprobe = new FFprobe("/usr/local/bin/ffmpeg");
 String inFilename = "/home/andreag/Desktop/ffmpegWithJar/src/resources/input.mp4";
 FFmpegProbeResult in = ffprobe.probe(inFilename);

 FFmpegBuilder builder =
 new FFmpegBuilder()
 .setInput(inFilename) // Filename, or a FFmpegProbeResult
 .setInput(in)
 .overrideOutputFiles(true) // Override the output if it exists
 .addOutput("/home/andreag/Desktop/ffmpegWithJar/src/resources/output.mp4") // Filename for the destination
 .setFormat("mp4") // Format is inferred from filename, or can be set
 .setTargetSize(250_000) // Aim for a 250KB file
 .disableSubtitle() // No subtiles
 .setAudioChannels(1) // Mono audio
 .setAudioCodec("aac") // using the aac codec
 .setAudioSampleRate(48_000) // at 48KHz
 .setAudioBitRate(32768) // at 32 kbit/s
 .setVideoCodec("libx264") // Video using x264
 .setVideoFrameRate(24, 1) // at 24 frames per second
 .setVideoResolution(640, 480) // at 640x480 resolution
 .setStrict(FFmpegBuilder.Strict.EXPERIMENTAL) // Allow FFmpeg to use experimental specs
 .done();

 FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);

 // Run a one-pass encode
 executor.createJob(builder).run();

 // Or run a two-pass encode (which is slower at the cost of better quality
 executor.createTwoPassJob(builder).run();
 }
}



-
how to solve '[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found' in opencv
9 juillet 2022, par Daniel dos SantosI'm trying to create a video uploader in a kivy app using OpenCV. However, when I try to upload a video, I get the following error



[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found
...




The screen becomes unresponsive during this. I edited the save() function recently and added an uploadClass() because I was getting another error.



main.py



...

class SaveDialog(Screen):
 save = ObjectProperty(None)
 text_input = ObjectProperty(None)
 cancel = ObjectProperty(None)

 def save(self, path, filename):

 for letter in os.path.join(path, filename):
 print(letter)

 def find(s, ch):
 return [i for i, letter in enumerate(s) if letter == ch]

 os_path_simpl = list(os.path.join(path, filename))

 for t in range(len(find(os.path.join(path, filename), '\\'))):
 os_path_simpl[find(os.path.join(path, filename), '\\')[t]] = '\\'

 class uploadClass(object):
 video = ''.join(os_path_simpl)

 def __init__(self, src=video):
 self.video_selected = cv2.VideoCapture(src)

 self.vid_cod = cv2.VideoWriter_fourcc(*'mp4v')
 self.out = cv2.VideoWriter('media/testOne.mp4', self.vid_cod, 20.0, (640,480))

 self.thread = Thread(target=self.update, args=())
 self.thread.daemon = True
 self.thread.start()

 def update(self):
 while True:
 if self.video_selected.isOpened():
 (self.status, self.frame) = self.video_selected.read()

 def show_frame(self):
 if self.status:
 cv2.imshow('uploading', self.frame)

 if cv2.waitKey(10) & 0xFF == ord('q'):
 self.video_selected.release()
 self.out.release()
 cv2.destroyAllWindows()
 exit(1)

 def save_frame(self):
 self.out.write(self.frame)

 rtsp_stream_link = 'media/testOne.mp4'
 upload_Class = uploadClass(rtsp_stream_link)
 while True:
 try:
 upload_Class.__init__()
 upload_Class.show_frame()
 upload_Class.save_frame()
 except AttributeError:
 pass

 sm.current = "home"

...




-
FFmpeg compilation warnings ATOMIC_VAR_INIT
2 août 2022, par YozWhile compiling ffmpeg (commit 1368b5a) with emscripten 3.1.17, there are two warnings, I would like the internet to help me better understand (I am not someone with deep c++ experience) :


fftools/ffmpeg.c:339:41: warning: macro 'ATOMIC_VAR_INIT' has been marked as deprecated [-Wdeprecated-pragma]
static atomic_int transcode_init_done = ATOMIC_VAR_INIT(0);
 ^
/home/XYZ/ffmpeg-wasm/modules/emsdk/upstream/lib/clang/15.0.0/include/stdatomic.h:50:41: note: macro marked 'deprecated' here
#pragma clang deprecated(ATOMIC_VAR_INIT)
 ^



I understand ATOMIC_VAR_INIT in this place is deprecated, but by which tool (emscripten, clang) ? And which party to be involved in the fix.


The other one is also interesting :


fftools/ffmpeg_filter.c:898:35: warning: floating-point comparison is always true; constant cannot be represented exactly in type 'float' [-Wliteral-range]
 if (audio_drift_threshold != 0.1)
 ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~



The message and consequences are very clear. Whats not clear to me, is, if this is particular compiler issue, or code issue and which party to take care ?