
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 (60)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
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 -
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 (6285)
-
Problems video playing in some android devices (version 4+) but not in others
5 juin 2014, par anquegifollowing the settings for video in android developers, http://developer.android.com/guide/appendix/media-formats.html I encoded a video using ffmpeg like this :
ffmpeg -i gravityTrailer.mp4 -y -f mp4 -vcodec libx264 -profile:v baseline -acodec aac -strict -2 -profile:a aac_low -b:v 500k -ar 44100 -b:a 128k -ac 2 -r 30 -s 480x360 output_hq.mp4
which corresponds on sd highquality in table 2 from android developers (link above).
Then i put this video in a server and use the class android.media.MediaPlayer to reproduce it from that URL like this
https://cloudapp.somedomain.com/bmftvideos/output_hq.mp4
The problem is that the video is played on android version 4+
you can see the video on :
LG G2,
Sony xperia Syou cannot see the video on :
Samsung galaxy S4,
BQ (spanish) aquaris 4.5And I don not know why
this is the ffmpeg output :
ffmpeg version 1.2.6 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 5 2014 08:21:01 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x14e5ba0] stream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x14e5ba0] max_analyze_duration 5000000 reached at 5013333 microseconds
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'gravityTrailer.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2013-12-01 03:59:56
genre : Trailer
artist : Warner Bros.
title : Gravity - 2K Trailer
encoder : HandBrake 0.9.9 2013051800
date : 2013
Duration: 00:02:27.07, start: 0.000000, bitrate: 20296 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2048x858, 20149 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
creation_time : 2013-12-01 03:59:56
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 153 kb/s
Metadata:
creation_time : 2013-12-01 03:59:56
Stream #0:2: Video: mjpeg, yuvj420p, 102x150 [SAR 72:72 DAR 17:25], 90k tbr, 90k tbn, 90k tbc
[libx264 @ 0x1667680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x1667680] profile Constrained Baseline, level 3.0
[libx264 @ 0x1667680] 264 - core 130 r2282 1db4621 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output_hq.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
date : 2013
genre : Trailer
artist : Warner Bros.
title : Gravity - 2K Trailer
encoder : Lavf54.63.104
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x360, q=-1--1, 500 kb/s, 15360 tbn, 30 tbc
Metadata:
creation_time : 2013-12-01 03:59:56
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
creation_time : 2013-12-01 03:59:56
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> aac)
Press [q] to stop, [?] for help
frame= 4410 fps= 65 q=-1.0 Lsize= 11154kB time=00:02:27.07 bitrate= 621.3kbits/s dup=885 drop=0
video:9062kB audio:1969kB subtitle:0 global headers:0kB muxing overhead 1.115392%
[libx264 @ 0x1667680] frame I:186 Avg QP:28.41 size: 4446
[libx264 @ 0x1667680] frame P:4224 Avg QP:29.20 size: 2001
[libx264 @ 0x1667680] mb I I16..4: 75.5% 0.0% 24.5%
[libx264 @ 0x1667680] mb P I16..4: 7.5% 0.0% 3.6% P16..4: 23.1% 6.2% 1.8% 0.0% 0.0% skip:57.7%
[libx264 @ 0x1667680] final ratefactor: 27.96
[libx264 @ 0x1667680] coded y,uvDC,uvAC intra: 24.0% 31.9% 8.6% inter: 7.4% 7.6% 0.6%
[libx264 @ 0x1667680] i16 v,h,dc,p: 58% 15% 13% 14%
[libx264 @ 0x1667680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 9% 27% 7% 6% 8% 5% 7% 3%
[libx264 @ 0x1667680] i8c dc,h,v,p: 80% 7% 12% 2%
[libx264 @ 0x1667680] ref P L0: 84.7% 9.4% 5.9%
[libx264 @ 0x1667680] kb/s:504.98 -
Could not find tag for codec h264 in stream #2 when trim video and add watermark, music background
13 août 2020, par Nguyễn TrọngI'm doing cut video into chunks, then join them and add watermark and background music with the command below.


"[-y, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20200726-WA0154.mp4, -i, /storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png, -stream_loop, -1, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Documents/DripReport_-_Skechers_(Lyrics)(MP3_160K).mp3, -filter_complex, [1:v]scale=640/4:-1[logo1];[0:v]trim=0:2.483,setpts=PTS-STARTPTS[v1];[0:v]trim=2.483:7.45,setpts=2.0*(PTS-STARTPTS)[v2];[0:v]trim=7.45:9.933,setpts=PTS-STARTPTS[v3];[v1][v2][v3]concat=n=3:v=1[video];[video][logo1]overlay=main_w-overlay_w-10:main_h-overlay_h-10[vw], -map, [vw], -map, 2, -c:v, libx264, -crf, 23, -preset, veryfast, -shortest, /storage/emulated/0/FXMotion/FXMotion-200810e.mp4, -hide_banner]"



But when running I get the following error :



Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20200726-WA0154.mp4':\n 
Metadata:
major_brand : mp4v
 minor_version : 0
 compatible_brands: mp4vmp42isom\n Duration: 00:00:09.93, start: 0.000000, bitrate: 2080 kb/s
 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 640x352, 2078 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
 Metadata:\n rotate : 270
 Side data:
 displaymatrix: rotation of 90.00 degrees\nInput #1, png_pipe, from '/storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png':
 Duration: N/A, bitrate: N/A
 Stream #1:0: Video: png, rgba(pc), 335x51, 25 tbr, 25 tbn, 25 tbc
Input #2, mp3, from '/storage/emulated/0/WhatsApp/Media/WhatsApp Documents/DripReport_-_Skechers_(Lyrics)(MP3_160K).mp3':
 Metadata:
 encoder : Lavf57.56.101
 title : DripReport - Skechers (Lyrics)
 artist : DripReport
 album : DripReport\n Duration: 00:01:46.06, start: 0.011021, bitrate: 167 kb/s
 Stream #2:0: Audio: mp3, 48000 Hz, stereo, fltp, 160 kb/s
 Metadata:
 encoder : Lavc57.64
 Stream #2:1: Video: png, rgb24(pc), 400x225, 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 title : attached picture
 comment : Cover (front)
Stream mapping:
 Stream #0:0 (h264) -> trim (graph 0)
 Stream #0:0 (h264) -> trim (graph 0)
 Stream #0:0 (h264) -> trim (graph 0)
 Stream #1:0 (png) -> scale (graph 0)
 overlay (graph 0) -> Stream #0:0 (libx264)
 Stream #2:0 -> #0:1 (mp3 (mp3float) -> aac (native))
 Stream #2:1 -> #0:2 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help\n[graph 0 input from stream 1:0 @ 0x6f73832bc0] sws_param option is deprecated and ignored
[graph 0 input from stream 0:0 @ 0x6f73832c80] sws_param option is deprecated and ignored\n[graph 0 input from stream 0:0 @ 0x6f73833400] sws_param option is deprecated and ignored\n[graph 0 input from stream 0:0 @ 0x6f73833580] sws_param option is deprecated and ignored
[libx264 @ 0x6f44476300] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x6f44476300] profile High, level 3.0, 4:2:0, 8-bit
[libx264 @ 0x6f44476300] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[graph 2 input from stream 2:1 @ 0x6ed501c380] sws_param option is deprecated and ignored
[mp4 @ 0x6ed53b9a00] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2\n[libx264 @ 0x6f445de500] MB rate (33750000) > level limit (16711680)
[libx264 @ 0x6f445de500] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x6f445de500] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit\n[libx264 @ 0x6f445de500] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 threads=7 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x6ed53b9a00] Could not find tag for codec h264 in stream #2, codec not currently supported in container\nCould not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --[aac @ 0x6f44478600] Qavg: nan\nConversion failed!",
 
 



i run ffmpeg on :


Device
"os_version" : "10"
"model" : "SM-A217F"
"brand" : "samsung"




How to fix it ? thank advance !


-
Issue in concatenating two video files using FFMPEG
12 mai 2014, par intrepidkarthiI am trying to concatenate two mp4 files taken from gallery. I am getting issue with process execution failure. I have added the code and the error log. Using the ffmpeg library taken from guardian project.
I am running this in Samsung Galaxy S3 device.
The error is thrown in this particular line.
ProcessBuilder pb = new ProcessBuilder(cmds);
pb.directory(fileExec);
Process process = pb.start();When I replace the last line above with this,
Process process = Runtime.getRuntime().exec("chmod 777 "+cmds.toArray(new String[cmds.size()]));
It works with out the exception as shown below. But the output doesn’t seem to come.
File concatenation Code :
File fileVideoOutput = new File(getApplicationContext()
.getExternalFilesDir("test") + "hello.mp4");
fileVideoOutput.delete();
File fileTmp = getApplicationContext().getCacheDir();
File fileAppRoot = new File(getApplicationContext()
.getApplicationInfo().dataDir);
try {
FfmpegController fc = new FfmpegController(fileTmp, fileAppRoot);
ArrayList<clip> listVideos = new ArrayList<clip>();
Clip clip = new Clip();
clip.path = video1;
fc.getInfo(clip);
clip.duration = clip.duration;
System.out.println("Clip1 duration " + clip.duration);
listVideos.add(clip);
Clip clip2 = new Clip();
clip2.path = video2;
fc.getInfo(clip2);
clip2.duration = clip2.duration;
System.out.println("Clip2 duration " + clip2.duration);
listVideos.add(clip2);
Clip clipOut = new Clip();
clipOut.path = fileVideoOutput.getCanonicalPath();
fc.concatAndTrimFilesMP4Stream(listVideos, clipOut, false, false,
new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
System.out.println("fc>" + shellLine);
}
@Override
public void processComplete(int exitValue) {
if (exitValue < 0)
System.err.println("concat non-zero exit: "
+ exitValue);
}
});
} catch (Exception e1) {
e1.printStackTrace();
}
</clip></clip>Error log :
05-08 11:17:03.765: W/System.err(25209): java.io.IOException: Error running exec(). Command: [ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/20140507_155713.mp4, -f, mpegts, -c, copy, -an, -bsf:v, h264_mp4toannexb, /data/data/com.yoyo.videoeditor/cache/0.ts] Working Directory: /data/data/com.yoyo.videoeditor/lib Environment: [VIBE_PIPE_PATH=/dev/pipes, ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, EMULATED_STORAGE_TARGET=/storage/emulated, ANDROID_BOOTLOGO=1, LD_LIBRARY_PATH=/vendor/lib:/system/lib, EXTERNAL_STORAGE=/storage/emulated/legacy, ANDROID_SOCKET_zygote=9, ANDROID_DATA=/data, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/sc.jar:/system/framework/secocsp.jar:/system/framework/commonimsinterface.jar, ANDROID_PROPERTY_WORKSPACE=8,66560, SECONDARY_STORAGE=/storage/extSdCard:/storage/UsbDriveA:/storage/UsbDriveB:/storage/UsbDriveC:/storage/UsbDriveD:/storage/UsbDriveE:/storage/UsbDriveF, ANDROID_STORAGE=/storage]
05-08 11:17:03.770: W/System.err(25209): at java.lang.ProcessManager.exec(ProcessManager.java:211)
05-08 11:17:03.770: W/System.err(25209): at java.lang.ProcessBuilder.start(ProcessBuilder.java:195)
05-08 11:17:03.770: W/System.err(25209): at org.ffmpeg.android.FfmpegController.execProcess(FfmpegController.java:101)
05-08 11:17:03.770: W/System.err(25209): at org.ffmpeg.android.FfmpegController.execFFMPEG(FfmpegController.java:71)
05-08 11:17:03.770: W/System.err(25209): at org.ffmpeg.android.FfmpegController.execFFMPEG(FfmpegController.java:75)
05-08 11:17:03.775: W/System.err(25209): at org.ffmpeg.android.FfmpegController.convertToMP4Stream(FfmpegController.java:657)
05-08 11:17:03.775: W/System.err(25209): at org.ffmpeg.android.FfmpegController.concatAndTrimFilesMP4Stream(FfmpegController.java:1107)
05-08 11:17:03.775: W/System.err(25209): at com.yoyo.videoeditor.EditorActivity.mergeVideosOld(EditorActivity.java:271)
05-08 11:17:03.775: W/System.err(25209): at com.yoyo.videoeditor.EditorActivity.access$0(EditorActivity.java:243)
05-08 11:17:03.775: W/System.err(25209): at com.yoyo.videoeditor.EditorActivity$3.onClick(EditorActivity.java:85)
05-08 11:17:03.775: W/System.err(25209): at android.view.View.performClick(View.java:4475)
05-08 11:17:03.775: W/System.err(25209): at android.view.View$PerformClick.run(View.java:18786)
05-08 11:17:03.780: W/System.err(25209): at android.os.Handler.handleCallback(Handler.java:730)
05-08 11:17:03.780: W/System.err(25209): at android.os.Handler.dispatchMessage(Handler.java:92)
05-08 11:17:03.780: W/System.err(25209): at android.os.Looper.loop(Looper.java:176)
05-08 11:17:03.780: W/System.err(25209): at android.app.ActivityThread.main(ActivityThread.java:5419)
05-08 11:17:03.780: W/System.err(25209): at java.lang.reflect.Method.invokeNative(Native Method)
05-08 11:17:03.785: W/System.err(25209): at java.lang.reflect.Method.invoke(Method.java:525)
05-08 11:17:03.785: W/System.err(25209): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
05-08 11:17:03.785: W/System.err(25209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
05-08 11:17:03.785: W/System.err(25209): at dalvik.system.NativeStart.main(Native Method)
05-08 11:17:03.785: W/System.err(25209): Caused by: java.io.IOException: Permission denied
05-08 11:17:03.785: W/System.err(25209): at java.lang.ProcessManager.exec(Native Method)
05-08 11:17:03.790: W/System.err(25209): at java.lang.ProcessManager.exec(ProcessManager.java:209)
05-08 11:17:03.790: W/System.err(25209): ... 20 moreHere is my ffmpeg commands as given in the ffmpeg tutorial page.
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4FFMPEG library doesn’t seem to be working as expected. When I add commands and create output file using "touch" shell command file is being created. Still I am unable to see the output from ffmpeg as expected.