
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (66)
-
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 -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (9861)
-
FFmpeg - Concat videos with different time base [duplicate]
3 mai 2019, par XysThis question already has an answer here :
I’m trying to concat videos with the concat demuxer, but it does not work when using one video ("video2.mp4" below). By does not work, I mean playing the concatenated video on a player will work until the second video part starts (it just cannot read the video anymore). It works with the concat filter though. They are both mp4 videos, so I think it’s because of the time base ? I can concat other videos with the concat demuxer and it works fine (even with different resolutions/bitrate). It only happens when trying to concat "video2.mp4".
Also, I have a lot of warning/errors like this, probably when ffmpeg starts concatenating the 2nd video :
[mp4 @ 0x7f847a814800] Non-monotonous DTS in output stream 0:0; previous: 906906, current: 302359; changing to 906907. This may result in incorrect timestamps in the output file.
What would be the best way to have a minimum concat time ? Do I really need to use the concat filter or can I change the time base of "video1.mp4" if it’s really the problem ?
Any help would be appreciated, thanks !
Video 1 :
ffprobe version 3.2.2 Copyright (c) 2007-2016 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-08-17T22:50:35.000000Z
Duration: 00:00:10.11, start: 0.000000, bitrate: 38018 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1696x848, 37832 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2016-08-18T00:02:24.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2016-08-18T00:02:24.000000Z
handler_name : SoundHandleVideo 2 :
ffprobe version 3.2.2 Copyright (c) 2007-2016 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2017-01-06T22:30:23.000000Z
Duration: 00:00:08.19, start: 0.000000, bitrate: 101474 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 4096x2048 [SAR 1:1 DAR 2:1], 101549 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2017-01-06T22:30:23.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2017-01-06T22:30:23.000000Z
handler_name : #Mainconcept MP4 Sound Media HandlerFFMpeg Command :
ffmpeg -f concat -safe 0 -i concat.txt -c copy result.mp4
concat.txt :
file '/path/to/video1.mp4'
file '/path/to/video2.mp4'Command result :
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbd8b808c00] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from 'concat.txt':
Duration: N/A, start: 0.000000, bitrate: 38021 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1696x848, 37832 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2016-08-18T00:02:24.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s
Metadata:
creation_time : 2016-08-18T00:02:24.000000Z
handler_name : SoundHandle
Output #0, mp4, to 'result.mp4':
Metadata:
encoder : Lavf57.56.100
Stream #0:0(eng): Video: h264 (Baseline) ([33][0][0][0] / 0x0021), yuv420p, 1696x848, q=2-31, 37832 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
Metadata:
creation_time : 2016-08-18T00:02:24.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 189 kb/s
Metadata:
creation_time : 2016-08-18T00:02:24.000000Z
handler_name : SoundHandle
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 112 fps=0.0 q=-1.0 size= 12701kB time=00:00:03.70 bitrate=28092.2kbits/s speed= 7.4x
frame= 151 fps=151 q=-1.0 size= 18853kB time=00:00:05.00 bitrate=30857.5kbits/s speed= 5x
frame= 224 fps=149 q=-1.0 size= 30042kB time=00:00:07.44 bitrate=33074.8kbits/s speed=4.95x
frame= 268 fps=134 q=-1.0 size= 36596kB time=00:00:08.90 bitrate=33650.8kbits/s speed=4.44x
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbd8a808000] Auto-inserting h264_mp4toannexb bitstream filter.9x
[mp4 @ 0xb545d000] Non-monotonous DTS in output stream 0:1; previous: 484352, current: 445939; changing to 484353. This may result in incorrect timestamps in the output file.
[concat @ 0xb545c400] DTS 304057 < 906906 out of order
[mp4 @ 0xb545d000] Non-monotonous DTS in output stream 0:0; previous: 906906, current: 304057; changing to 906907. This may result in incorrect timestamps in the output file.
[mp4 @ 0xb545d000] Non-monotonous DTS in output stream 0:1; previous: 484353, current: 446963; changing to 484354. This may result in incorrect timestamps in the output file.
...
... like 100 DTS errors ...
...
[mp4 @ 0xb545d000] Non-monotonous DTS in output stream 0:0; previous: 907150, current: 548301; changing to 907151. This may result in incorrect timestamps in the output file.
frame= 548 fps=169 q=-1.0 Lsize= 148399kB time=00:00:18.28 bitrate=66493.7kbits/s speed=5.64x
video:148027kB audio:359kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.008622%Thank you in advance !
-
QuTip Example 'bloch-sphere-animation' - video renders blank
15 juillet 2018, par damien murphy.On MacOSX Using Python3 running the following example code provided without modification : https://github.com/qutip/qutip-notebooks/blob/master/examples/bloch-sphere-animation.ipynb
I get a blank video and no errors.
I have installed libav and ffmpeg so I am not sure what else is missing with any error.
What codec did you install on mac when running these samples ?
Looking at the source of qutip I can see what it is using to render the video : https://github.com/qutip/qutip/blob/master/qutip/ipynbtools.py#L392
anim.save(name + '.mp4', fps=10, writer="avconv", codec="libx264")
I have avconv on the command line working without errors
This is the debug outout of matploylib.animation
INFO:matplotlib.animation:Animation.save using DEBUG:matplotlib.animation:frame
size in pixels is 576 x 576 INFO:matplotlib.animation:MovieWriter.run :
running command : [’avconv’, ’-f’, ’rawvideo’, ’-vcodec’, ’rawvideo’,
’-s’, ’576x576’, ’-pix_fmt’, ’rgba’, ’-r’, ’10’, ’-i’, ’pipe :’,
’-vcodec’, ’libx264’, ’-y’, ’movie.mp4’]
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter — Command stdout : b’’
DEBUG:matplotlib.animation:MovieWriter — Command stderr : b"avconv
version 12.3, Copyright (c) 2000-2018 the Libav developers\n built on
Feb 13 2018 11:17:07 with Apple LLVM version 9.0.0
(clang-900.0.39.2)\n[rawvideo @ 0x7f963c000000] Estimating duration
from bitrate, this may be inaccurate\nInput #0, rawvideo, from
’pipe :’ :\n Duration : N/A, start : 0.000000, bitrate : N/A\n Stream0:0 : Video : rawvideo\n rgba, 576x576\n 10 fps, 10 tbn\nStream mapping :\n Stream #0:0 -> #0:0 (rawvideo (native) -> h264
(libx264))\nPress ctrl-c to stop encoding\n[libx264 @ 0x7f963e001800]
using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX\n[libx264 @
0x7f963e001800] profile High, level 2.2\n[libx264 @ 0x7f963e001800]
264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft
2003-2017 - http://www.videolan.org/x264.html - options : cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12
lookahead_threads=2 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=2 keyint=250
keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00\nOutput #0, mp4, to ’movie.mp4’ :\n Metadata :\n encoder
: Lavf57.7.2\n Stream #0:0 : Video : h264 [[33][0][0][0] / 0x0021]\n
yuv420p, 576x576, q=2-31\n 10 fps, 10 tbn\n Metadata :\n
encoder : Lavc57.25.0 libx264\n Side data :\n cpb :
bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1\nframe= 6
fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbits/s \rframe= 10 fps= 8 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s \rframe= 13 fps= 7
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 16 fps= 7 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 19 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 22 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 26 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 30 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 33 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 36 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 39 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 42 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 45 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 48 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 51 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 55 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 59 fps= 6 q=25.0 size= 1kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 63 fps= 6
q=25.0 size= 1kB time=0.40 bitrate= 19.8kbits/s \rframe=
67 fps= 6 q=25.0 size= 1kB time=0.80 bitrate= 10.9kbits/s
\rframe= 71 fps= 6 q=25.0 size= 1kB time=1.20 bitrate=
7.9kbits/s \rframe= 75 fps= 6 q=25.0 size= 1kB time=1.60 bitrate= 6.4kbits/s \rframe= 79 fps= 6 q=25.0 size= 1kB
time=2.00 bitrate= 5.5kbits/s \rframe= 82 fps= 6 q=25.0 size=
1kB time=2.30 bitrate= 5.0kbits/s \rframe= 86 fps= 6 q=25.0
size= 2kB time=2.70 bitrate= 4.6kbits/s \rframe= 90 fps=
6 q=25.0 size= 2kB time=3.10 bitrate= 4.2kbits/s \rframe=
93 fps= 6 q=25.0 size= 2kB time=3.40 bitrate= 4.0kbits/s
\rframe= 97 fps= 6 q=25.0 size= 2kB time=3.80 bitrate=
3.8kbits/s \rframe= 101 fps= 6 q=25.0 size= 2kB time=4.20 bitrate= 3.6kbits/s \rframe= 105 fps= 6 q=25.0 size= 2kB
time=4.60 bitrate= 3.4kbits/s \rframe= 109 fps= 6 q=25.0 size=
2kB time=5.00 bitrate= 3.3kbits/s \rframe= 112 fps= 6 q=25.0
size= 2kB time=5.30 bitrate= 3.2kbits/s \rframe= 116 fps=
6 q=25.0 size= 2kB time=5.70 bitrate= 3.2kbits/s \rframe=
120 fps= 6 q=25.0 size= 2kB time=6.10 bitrate= 3.1kbits/s
\rframe= 123 fps= 6 q=25.0 size= 2kB time=6.40 bitrate=
3.0kbits/s \rframe= 126 fps= 6 q=25.0 size= 2kB time=6.70 bitrate= 3.0kbits/s \rframe= 129 fps= 6 q=25.0 size= 2kB
time=7.00 bitrate= 2.9kbits/s \rframe= 132 fps= 6 q=25.0 size=
3kB time=7.30 bitrate= 2.9kbits/s \rframe= 135 fps= 6 q=25.0
size= 3kB time=7.60 bitrate= 2.8kbits/s \rframe= 138 fps=
6 q=25.0 size= 3kB time=7.90 bitrate= 2.8kbits/s \rframe=
141 fps= 6 q=25.0 size= 3kB time=8.20 bitrate= 2.8kbits/s
\rframe= 144 fps= 6 q=25.0 size= 3kB time=8.50 bitrate=
2.7kbits/s \rframe= 148 fps= 6 q=25.0 size= 3kB time=8.90 bitrate= 2.7kbits/s \rframe= 150 fps= 6 q=-1.0 Lsize= 7kB
time=14.70 bitrate= 4.1kbits/s \r\nvideo:4kB audio:0kB other
streams:0kB global headers:0kB muxing overhead : 74.948143%\n[libx264 @
0x7f963e001800] frame I:1 Avg QP : 6.00 size : 112\n[libx264 @
0x7f963e001800] frame P:38 Avg QP : 6.21 size : 30\n[libx264 @
0x7f963e001800] frame B:111 Avg QP : 9.67 size : 22\n[libx264 @
0x7f963e001800] consecutive B-frames : 1.3% 0.0% 0.0%
98.7%\n[libx264 @ 0x7f963e001800] mb I I16..4 : 100.0% 0.0% 0.0%\n[libx264 @ 0x7f963e001800] mb P I16..4 : 0.0% 0.0% 0.0% P16..4 : 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%\n[libx264 @
0x7f963e001800] mb B I16..4 : 0.0% 0.0% 0.0% B16..8 : 0.0% 0.0%
0.0% direct : 0.0% skip:100.0%\n[libx264 @ 0x7f963e001800] 8x8 transform intra:0.0%\n[libx264 @ 0x7f963e001800] coded y,uvDC,uvAC
intra : 0.0% 0.0% 0.0% inter : 0.0% 0.0% 0.0%\n[libx264 @
0x7f963e001800] i16 v,h,dc,p : 97% 0% 3% 0%\n[libx264 @
0x7f963e001800] i8c dc,h,v,p : 100% 0% 0% 0%\n[libx264 @
0x7f963e001800] Weighted P-Frames : Y:0.0% UV:0.0%\n[libx264 @
0x7f963e001800] kb/s:1.95\n" -
ffmpeg copy stream preserving FPS
10 mars 2017, par James TaylorI have a stream that I know is outputting at a certain frame rate (30 FPS). I want to use ffmpeg to make a copy of this stream and save it to disk.
I have the following command :
ffmpeg -i http://input/ -c copy -map 0 \
-f segment -strftime 1 -segment_time 900 \
-segment_atclocktime 1 -segment_format mp4 %Y-%m-%d_%H-%M-%S.mp4But when I run the command, I see the following :
frame= 32 fps=3.9 q=-1.0 Lsize=N/A time=00:00:01.27 bitrate=N/A
Where it appears the FPS is hovers around 4.0 FPS and
time
moves slower than real time.I tried added
-re
(copy the rate of the input stream) and-r 30
(manually set the rate to 30 FPS) flag specified before the input file, but it didn’t seem to work.I also read a similar question here using
-framerate 30
, but that option doesn’t exist in the man pages and is anInvalid option
.Any help would be greatly appreciated !
So I let the modified command (removing the flags
-c copy -map 0
) run for exactly 5 minutes. Runningffprobe
yields :Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2017-03-10_01-09-12.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.2.100
Duration: 00:00:15.43, start: 0.066016, bitrate: 13416 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1024x768, 13414 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandlerAgain, this only produces 15 seconds of video and I can’t seem to get a 1:1 relationship between the input stream of 30 FPS and an output stream also in 30 FPS in real time. Playing the video yields something that’s sped up.