
Recherche avancée
Médias (3)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (25)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (3991)
-
Rotate 360 video with ffmpeg
9 septembre 2019, par Leos LiterakI have 360° video and I want to fine tune its orientation with ffmpeg. I need to rotate it by 90° clockwise horizontally (turn it left). I found some helpful resources stating that the
rotate
filter would do the trick. So I tried :ffmpeg -i Petr_doskok.mp4 -vf "scale=2048x1024,rotate=-PI/2" -r 30 -c:v libx265 -b:v 15M -pix_fmt yuv420p -c:a aac -b:a 192K Petr_doskok_rotated.mp4
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Petr_doskok.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Duration: 00:00:29.06, start: 0.000000, bitrate: 58095 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 4096x2048, 57948 kb/s, SAR 1:1 DAR 2:1, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 184 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
x265 [info]: Slices : 1
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : ABR-15000 kbps / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
x265 [info]: tools: lslices=6 deblock sao
Output #0, mp4, to 'Petr_doskok_rotated.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Stream #0:0(und): Video: hevc (libx265) (hev1 / 0x31766568), yuv420p, 2048x1024 [SAR 1:1 DAR 2:1], q=2-31, 15000 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.35.100 libx265
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc58.35.100 aac
frame= 841 fps=9.8 q=-0.0 Lsize= 54721kB time=00:00:28.03 bitrate=15991.5kbits/s speed=0.326x
video:54028kB audio:659kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.062856%
x265 [info]: frame I: 4, Avg QP:15.99 kb/s: 39026.34
x265 [info]: frame P: 214, Avg QP:16.15 kb/s: 30083.41
x265 [info]: frame B: 623, Avg QP:19.72 kb/s: 10727.28
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 0.5% 0.9% 17.9% 73.9% 6.9%
encoded 841 frames in 86.02s (9.78 fps), 15787.22 kb/s, Avg QP:18.80
[aac @ 000001faa3ead7c0] Qavg: 289.921Well, the video was really rotated - vertically ! The documentation does not reference the 360° video production : http://ffmpeg.org/ffmpeg-filters.html#rotate. What is the correct parameter value for my case ?
-
Record Screen using ffmpeg doesn't work in tomcat server(Could not find codec parameters for stream 0)
4 septembre 2019, par Norhan MohamedI have the following problem,when I executed the below FFMPEG terminal command in command it prompt successfully.
C:\\ffmpeg\\bin\\ffmpeg.exe -f gdigrab -i desktop -c:v libx264 -analyzeduration 15M -probesize 15M -pix_fmt yuv420p -loglevel 99 C:\\ffmpeg\\bin\\video.mp4
but I have a problem while running a command from a java web application.I used
runtime.exec()
. It’s working fine at Netbeans. But not working at all after deploying on tomcat server.
Here is my code :String command = "C:\\ffmpeg\\bin\\"
+ "ffmpeg.exe -f gdigrab -i desktop -c:v libx264 -analyzeduration 15M -probesize 15M -pix_fmt yuv420p -loglevel 99 C:\\ffmpeg\\bin\\video.mp4";
System.out.println("command = " + command);
try {
Process p = Runtime.getRuntime().exec(command);
final InputStreamReader isr
= new InputStreamReader(p.getErrorStream());
Thread th = new Thread() {
public void run() {
try {
BufferedReader br = new BufferedReader(isr);
String line = null;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
} catch (Exception ex) {
}
}
};
th.start();
} catch (IOException ex) {
System.out.println("Error 1 : " + ex.getMessage());
} catch (Exception ex) {
System.out.println("Error 2 : " + ex.getMessage());
}And here is log for error
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20190212
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Splitting the commandline.
Reading option '-f' ... matched as option 'f' (force format) with argument 'gdigrab'.
Reading option '-i' ... matched as input url with argument 'desktop'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration'
with argument '15M'.
Reading option '-probesize' ... matched as AVOption 'probesize' with argument '15M'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option 'C:\ffmpeg\bin\video.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument 99.
Successfully parsed a group of options.
Parsing a group of options: input url desktop.
Applying option f (force format) with argument gdigrab.
Successfully parsed a group of options.
Opening an input file: desktop.
[gdigrab @ 0000007c2a72ad00] Capturing whole desktop as 1024x768x32 at (0,0)
[gdigrab @ 0000007c2a72ad00] Failed to capture image (error 5)
[gdigrab @ 0000007c2a72ad00] stream 0: start_time: -9223372036854.775 duration: -9223372036854.775
[gdigrab @ 0000007c2a72ad00] format: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=754233 kb/s
[gdigrab @ 0000007c2a72ad00] Could not find codec parameters for stream 0 (Video: bmp, 1 reference frame, none, 754233 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, gdigrab, from 'desktop':
Duration: N/A, bitrate: 754233 kb/s
Stream #0:0, 0, 1/1000000: Video: bmp, 1 reference frame, none, 754233 kb/s, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output url C:\ffmpeg\bin\video.mp4.
Applying option c:v (codec name) with argument libx264.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Successfully parsed a group of options.
Opening an output file: C:\ffmpeg\bin\video.mp4.
Output #0, mp4, to 'C:\ffmpeg\bin\video.mp4':
Output file #0 does not contain any streamCan anyone help me to get out of this issue.
Thanks in advance.
-
ffmpeg send video to ffserver without reencode, CPU usage still very high.How ?
3 septembre 2019, par Wayne ChenI’m using ffmpeg to send H.264 video to ffserver. Command looks like this :
ffmpeg -re -stream_loop -1 -i test.mp4 -c copy http://localhost:8090/feed1.ffm
I thought with
-c copy
option, the CPU usage of ffmpeg should be very low, but it actually used 99% of CPU.Please help cutdown the usage of CPU.
Thanks----------------------
ffserver.conf :
<feed>
File /tmp/feed1.ffm
FileMaxSize 5M
ACL allow 127.0.0.1
ACL allow 192.168.1.250
</feed>
<stream>
Feed feed1.ffm
Format rtp
VideoCodec libx264
VideoFrameRate 25
VideoBufferSize 80000
VideoSize 1920x1080
PreRoll 15
NoDefaults
NoAudio
</stream>ffserver log:
ffserver -d -f /etc/ffserver.conf
ffserver version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-version3 --enable-ffplay --enable-ffserver --enable-shared
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Tue Sep 3 09:45:38 2019 Codecs do not match for stream 0
Tue Sep 3 09:45:38 2019 [ffm @ 0x1072d80]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Tue Sep 3 09:45:38 2019 Codecs do not match for stream 0
Tue Sep 3 09:45:38 2019 [ffm @ 0x10695e0]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Tue Sep 3 09:45:38 2019 FFserver started.
Tue Sep 3 09:45:39 2019 192.168.1.240 - - [] " " 200 0
Tue Sep 3 09:45:39 2019 192.168.1.240 - - [] " " 200 0
Tue Sep 3 09:45:39 2019 192.168.1.240:0 - - "PLAY test2-rtsp/streamid=0 RTP/TCP"
Tue Sep 3 09:45:39 2019 192.168.1.240:0 - - "PLAY test1-rtsp/streamid=0 RTP/TCP"
Tue Sep 3 09:45:39 2019 192.168.1.240:0 - - "PLAY test2-rtsp/streamid=0 RTP/TCP"
Tue Sep 3 09:45:39 2019 192.168.1.240:0 - - "PLAY test1-rtsp/streamid=0 RTP/TCP"FFmpeg log:
wayne@ubuntu:~$ ffmpeg -re -stream_loop -1 -i test_main.mp4 -c copy http://localhost:8090/feed1.ffm & ffmpeg -re -stream_loop -1 -i test_minor.mp4
4 -c copy http://localsudffmpeg -re -stream_loop -1 -i test_main.mp4 -c copy http://localhost:8090/feed1.ffm & ffmpm
ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-version3 --enable-ffplay --enable-ffserver --enable-shared
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_main.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Duration: 00:00:51.60, start: 0.000000, bitrate: 987 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 985 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
[tcp @ 0x19ca600] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
[tcp @ 0x19d58a0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x19d67c0] VBV bufsize set but maxrate unspecified, ignored
[libx264 @ 0x19d67c0] using SAR=1/1
[libx264 @ 0x19d67c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x19d67c0] profile Progressive High, level 4.0, 4:2:0, 8-bit
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : now
encoder : Lavf57.71.100
Stream #0:0(eng): Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1000k tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 655360000 vbv_delay: -1
frame= 13 fps=0.0 q=0.0 size= 4kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 26 fps= 26 q=0.0 size= 4kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 38 fps= 25 q=0.0 size= 4kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 43 fps= 18 q=28.0 size= 4kB time=-00:00:00.03 bitrate=N/A speed=N/A
frame= 55 fps= 19 q=28.0 size= 16kB time=00:00:00.44 bitrate= 297.9kbits/s speed=0.151x
frame= 59 fps= 17 q=28.0 size= 44kB time=00:00:00.60 bitrate= 600.7kbits/s speed=0.171x