
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (44)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (9458)
-
Video won't play on iphone
18 octobre 2016, par MercI have an app that places videos online, and cannot find a way to get iPhones to actually play them.
ffprobe says :
merc@mercs-thinkpad:/disk/home/merc/Downloads$ ffprobe 5801005ff1861ba1729757fbffprobe version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '5801005ff1861ba1729757fb':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.50.100
Duration: 00:00:12.37, start: 0.021333, bitrate: 993 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 928 kb/s, 29.83 fps, 29.83 tbr, 11456 tbn, 59.67 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 70 kb/s (default)
Metadata:
handler_name : SoundHandlerThe video is here
The file was created using ffmpeg from within the app.
Is this a codec problem ? What shall I do to make sure iPhones can actually play them ?
-
Error opening filters : Running ffmpeg through Groovy and ProcessBuilder
30 octobre 2016, par smeebThis question involves the popular Linux media processing utility "
ffmpeg
", but I think its really a Java 8ProcessBuilder
question at its core. Or possibly an issue w/ GroovyGStrings
.The
ffmpeg
command to split an MP4 video into frames/images based on a sampling rate is :ffmpeg -i /some/path/to/video.mp4 -vf "select=not(mod(n\,${samplingRate}))" -vsync vfr -q:v 2 img_%d.jpg
Where
${samplingRate}
is a positive integer and represents the number of frames to skip in between creating each frame. So for instance, if you had a video with 430 frames in it, and wanted to sample every 50th frame, your command would be :ffmpeg -i /some/path/to/video.mp4 -vf "select=not(mod(n\,50))" -vsync vfr -q:v 2 img_%d.jpg
Which would then create 8 (or maybe 9, not gonna do the math for a pretend example) JPG files called
img_1.jpg
,img_2.jpg
, ...etc. The first image would be the 50th frame in the video. The second image would be the 100th frame, etc. I have ran the above command directly from a terminal and confirmed that it is correct and succeeds without errors.I have a Groovy app, and am trying to run this
ffmpeg
command via a Java 8ProcessBuilder
, and am having issues with theselect=
argument. Currently I have :int numSamples = 50
Process frameSamplerProc = new ProcessBuilder(
'ffmpeg',
'-i',
"/home/myuser/some/path/to/video.mp4",
'-vf',
"\"select=not(mod(n\\,${numSamples}))\"",
'-vsync',
'vfr',
'-q:v',
'2',
'sample%d.jpg'
).redirectErrorStream(true).start()
frameSamplerProc.inputStream.eachLine { fsamplerLine ->
println(fsamplerLine)
}When I run thise code, I don’t get any errors, but I do see errors in
ffmpeg
’s output :ffmpeg version N-81995-gd790e48 Copyright (c) 2000-2016 the FFmpeg developers
// Omitting the next ~50 lines of output as it all looks normal
Metadata:
creation_time : 2016-10-27T20:20:01.000000Z
handler_name : SoundHandle
[AVFilterGraph @ 0x3eddc80] No such filter: '"select'
Error opening filters!I’m wondering if I’m not escaping the
select
argument properly or if I’m passing in a bad array to theProcessBuilder
. Can anybody spot where I’m going awry ? -
Android FFMPEG do nothing
16 octobre 2016, par Anton A.I try to scale down video on Android device using
FFMPEG
.
OnCreate
of Activity where I callscaleVideo()
, also initialization ofFFMPEG
and binaries load.private void scaleVideo(String path) throws FFmpegCommandAlreadyRunningException, IOException {
File copy = new File(DESTINATION_PATH + FilenameUtils.getBaseName(path) + "_scaled." + FilenameUtils.getExtension(path));
if (!copy.exists())
copy.createNewFile();
String cmd = "-i " + path + " -vf scale=320:-1 " + copy.getPath();
String[] command = cmd.split(" ");
fFmpeg.execute(command, new FFmpegExecuteResponseHandler() {
@Override
public void onSuccess(String message) {
Log.i("FFmpeg", message);
mProgressDialog.cancel();
runOnUiThread(() -> Toast.makeText(TrimmerActivity.this, getString(R.string.video_saved_at, copy.getPath()), Toast.LENGTH_SHORT).show());
VideoModel videoModel = new VideoModel();
videoModel.setPath(copy.getPath());
videoModel.save();
finish();
}
@Override
public void onProgress(String message) {
Log.i("FFmpeg", message);
}
@Override
public void onFailure(String message) {
Log.e("FFmpeg", message);
}
@Override
public void onStart() {
Log.i("FFmpeg", "on start");
}
@Override
public void onFinish() {
Log.i("FFmpeg", "on finish");
}
});
}And as output I get :
I/FFmpeg: on start
D/FFmpeg: Running publishing updates method
I/FFmpeg: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
I/FFmpeg: built with gcc 4.8 (GCC)
I/FFmpeg: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
I/FFmpeg: libavutil 55. 17.103 / 55. 17.103
I/FFmpeg: libavcodec 57. 24.102 / 57. 24.102
I/FFmpeg: libavformat 57. 25.100 / 57. 25.100
I/FFmpeg: libavdevice 57. 0.101 / 57. 0.101
I/FFmpeg: libavfilter 6. 31.100 / 6. 31.100
I/FFmpeg: libswscale 4. 0.100 / 4. 0.100
I/FFmpeg: libswresample 2. 0.101 / 2. 0.101
I/FFmpeg: libpostproc 54. 0.100 / 54. 0.100
I/FFmpeg: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/MP4_20161015_001403.mp4':
I/FFmpeg: Metadata:
I/FFmpeg: major_brand : iso6
I/FFmpeg: minor_version : 1
I/FFmpeg: compatible_brands: mp42iso6avc1isom
I/FFmpeg: creation_time : 2016-10-14 21:14:03
I/FFmpeg: Duration: 00:00:02.10, start: 0.000000, bitrate: 19564 kb/s
I/FFmpeg: Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 19403 kb/s, SAR 1:1 DAR 16:9, 14.75 fps, 15 tbr, 90k tbn, 180k tbc (default)
I/FFmpeg: Metadata:
I/FFmpeg: rotate : 90
I/FFmpeg: creation_time : 2016-10-14 21:13:52
I/FFmpeg: Side data:
I/FFmpeg: displaymatrix: rotation of -90.00 degrees
I/FFmpeg: Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 156 kb/s (default)
I/FFmpeg: Metadata:
I/FFmpeg: creation_time : 2016-10-14 21:13:52Video output and input are correct. Files exist and video player can recognize input.
And that’s all. CPU/GPU/Memory do nothing and no callbacks called.
That my first time usingFFMPEG
, so I don’t know what to do.