
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (68)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
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 (...)
Sur d’autres sites (10998)
-
ffmpeg - 'hevc' codec changed to 'rawvideo' after copying video codec
11 mars 2021, par Md YeaminI am trying to convert some
mkv
videos withhevc
codec toavi
format. For this I run the following command :

ffmpeg -i input.mkv -vcodec copy -acodec copy out.avi



For some video this command works without any issue. But in some cases video does converted, but I can not play those files in any video player. I've tried several video players including VLC, SMPlayer, Deepin Movie etc.


After looking into the video codec of converted video I can see that the video codec got transformed from
hevc
torawvideo
. Hers is the stream information of the original and the converted video files :

Input File


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
[matroska,webm @ 0x561d8e639600] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'PE2_Leopard_4K_hevc_dts.mkv':
 Metadata:
 title : Planet Earth II S01E01 4K
 encoder : libebml v1.3.5 + libmatroska v1.4.8
 creation_time : 2017-10-29T06:31:02.000000Z
 Duration: 00:00:04.22, start: 0.000000, bitrate: 46848 kb/s
 Chapter #0:0: start 0.000000, end 4.216000
 Metadata:
 title : 00:00:00.000
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 BPS : 44365437
 BPS-eng : 44365437
 DURATION : 00:00:04.212000000
 DURATION-eng : 00:00:04.212000000
 NUMBER_OF_FRAMES: 101
 NUMBER_OF_FRAMES-eng: 101
 NUMBER_OF_BYTES : 23358403
 NUMBER_OF_BYTES-eng: 23358403
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
 Metadata:
 title : DTS-HD MA 5.1
 BPS : 2506995
 BPS-eng : 2506995
 DURATION : 00:00:04.214000000
 DURATION-eng : 00:00:04.214000000
 NUMBER_OF_FRAMES: 395
 NUMBER_OF_FRAMES-eng: 395
 NUMBER_OF_BYTES : 1320560
 NUMBER_OF_BYTES-eng: 1320560
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
 Metadata:
 title : English (SDH)
 BPS : 0
 BPS-eng : 0
 DURATION : 00:00:00.000000000
 DURATION-eng : 00:00:00.000000000
 NUMBER_OF_FRAMES: 0
 NUMBER_OF_FRAMES-eng: 0
 NUMBER_OF_BYTES : 0
 NUMBER_OF_BYTES-eng: 0
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES



Output File


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, avi, from 'out3.avi':
 Metadata:
 title : Planet Earth II S01E01 4K
 encoder : Lavf58.29.100
 Duration: 00:00:04.27, start: 0.000000, bitrate: 44226 kb/s
 Stream #0:0: Video: rawvideo, bgr24, 3840x2160, 44803 kb/s, SAR 1:1 DAR 16:9, 47.95 fps, 47.95 tbr, 47.95 tbn, 47.95 tbc
 Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1(side), fltp, 394 kb/s
 Metadata:
 title : DTS-HD MA 5.1



Command Log


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
[matroska,webm @ 0x55d6eebb8700] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'PE2_Leopard_4K_hevc_dts.mkv':
 Metadata:
 title : Planet Earth II S01E01 4K
 encoder : libebml v1.3.5 + libmatroska v1.4.8
 creation_time : 2017-10-29T06:31:02.000000Z
 Duration: 00:00:04.22, start: 0.000000, bitrate: 46848 kb/s
 Chapter #0:0: start 0.000000, end 4.216000
 Metadata:
 title : 00:00:00.000
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 BPS : 44365437
 BPS-eng : 44365437
 DURATION : 00:00:04.212000000
 DURATION-eng : 00:00:04.212000000
 NUMBER_OF_FRAMES: 101
 NUMBER_OF_FRAMES-eng: 101
 NUMBER_OF_BYTES : 23358403
 NUMBER_OF_BYTES-eng: 23358403
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
 Metadata:
 title : DTS-HD MA 5.1
 BPS : 2506995
 BPS-eng : 2506995
 DURATION : 00:00:04.214000000
 DURATION-eng : 00:00:04.214000000
 NUMBER_OF_FRAMES: 395
 NUMBER_OF_FRAMES-eng: 395
 NUMBER_OF_BYTES : 1320560
 NUMBER_OF_BYTES-eng: 1320560
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
 Metadata:
 title : English (SDH)
 BPS : 0
 BPS-eng : 0
 DURATION : 00:00:00.000000000
 DURATION-eng : 00:00:00.000000000
 NUMBER_OF_FRAMES: 0
 NUMBER_OF_FRAMES-eng: 0
 NUMBER_OF_BYTES : 0
 NUMBER_OF_BYTES-eng: 0
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, avi, to 'output.avi':
 Metadata:
 INAM : Planet Earth II S01E01 4K
 ISFT : Lavf58.29.100
 Chapter #0:0: start 0.000000, end 4.216000
 Metadata:
 title : 00:00:00.000
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 47.95 tbn, 47.95 tbc (default)
 Metadata:
 BPS : 44365437
 BPS-eng : 44365437
 DURATION : 00:00:04.212000000
 DURATION-eng : 00:00:04.212000000
 NUMBER_OF_FRAMES: 101
 NUMBER_OF_FRAMES-eng: 101
 NUMBER_OF_BYTES : 23358403
 NUMBER_OF_BYTES-eng: 23358403
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, 5.1(side), s16p (default)
 Metadata:
 title : DTS-HD MA 5.1
 BPS : 2506995
 BPS-eng : 2506995
 DURATION : 00:00:04.214000000
 DURATION-eng : 00:00:04.214000000
 NUMBER_OF_FRAMES: 395
 NUMBER_OF_FRAMES-eng: 395
 NUMBER_OF_BYTES : 1320560
 NUMBER_OF_BYTES-eng: 1320560
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 101 fps=0.0 q=-1.0 Lsize= 28904kB time=00:00:04.20 bitrate=56322.1kbits/s speed= 119x 
video:22811kB audio:1290kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 19.929108%



How to resolve this issue ?


-
why it is taking a lot of time to convert image to video in ffmpeg ?
20 avril 2021, par al pacinoBelow is a snippet of code i am using to convert images into videos but It is taking around 3 minutes to convert image to 5 second video.
If I run the command on Image present on a directory then it converts images to videos very swiftly. but i need to use try except to catch ConnectionError..
can anyone tell what I am doing wrong ?


video = []
video_list = []
for video in videos:
 try:
 r = requests.get(video, stream=True)
 print(r.status_code)
 if not r.status_code == 200:
 message = "broken url process could not be completed"
 return message
 if r.status_code == 200:
 if video.endswith(".jpg") or video.endswith(".png") or video.endswith(".jpeg"):
 filename = str(uuid.uuid4())
 url2 = download_path + filename +".webm"
 #cmd = "ffmpeg -loop 1 -i '{}' -c:v libx264 -t 5 -pix_fmt yuv420p -vf scale={}:{} ".format(video, width, height)+ url2
 cmd = "ffmpeg -loop 1 -i '{}' -t 5 -vf scale={}:{} ".format(video, width, height) + url2
 os.system(cmd)
 path_remover(video)
 video_list.append(url2)
 else:
 video_list.append(video)
 except ConnectionError:
 for i in video_list:
 path_remover(i)
 message = "broken url process could not be completed"
 return message



full log after running the command with online url :


ffmpeg -loop 1 -i 'https://cdn.pixabay.com/photo/2020/10/23/12/03/arch-5678549__340.jpg' -t 5 -vf scale=1280:780 output.mp4 


ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, image2, from 'https://cdn.pixabay.com/photo/2021/04/17/18/26/woman-6186493__340.jpg':
 Duration: 00:00:00.04, start: 0.000000, bitrate: 5538 kb/s
 Stream #0:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 511x340 [SAR 1:1 DAR 511:340], 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
 Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[swscaler @ 0x5580ac8e7c40] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x5580ac186b40] using SAR=1034/1129
[libx264 @ 0x5580ac186b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x5580ac186b40] profile High, level 3.2
[libx264 @ 0x5580ac186b40] 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=25 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
Output #0, mp4, to 'output.mp4':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1280x780 [SAR 19929:21760 DAR 511:340], q=-1--1, 25 fps, 12800 tbn, 25 tbc
 Metadata:
 encoder : Lavc58.91.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 100 fps=0.0 q=28.0 size= 0kB time=00:00:01.64 bitrate= 0.2kbits/frame= 125 fps=0.0 q=-1.0 Lsize= 90kB time=00:00:04.88 bitrate= 151.7kbits/s speed=6.79x 
video:88kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.618829%
[libx264 @ 0x5580ac186b40] frame I:1 Avg QP:16.31 size: 75247
[libx264 @ 0x5580ac186b40] frame P:31 Avg QP:16.13 size: 314
[libx264 @ 0x5580ac186b40] frame B:93 Avg QP:31.33 size: 49
[libx264 @ 0x5580ac186b40] consecutive B-frames: 0.8% 0.0% 0.0% 99.2%
[libx264 @ 0x5580ac186b40] mb I I16..4: 10.6% 77.6% 11.8%
[libx264 @ 0x5580ac186b40] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 2.5% 0.2% 0.2% 0.0% 0.0% skip:97.2%
[libx264 @ 0x5580ac186b40] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.4% 0.0% 0.0% direct: 0.0% skip:99.6% L0: 8.3% L1:91.7% BI: 0.0%
[libx264 @ 0x5580ac186b40] 8x8 transform intra:77.5% inter:98.7%
[libx264 @ 0x5580ac186b40] coded y,uvDC,uvAC intra: 88.4% 95.3% 79.5% inter: 0.1% 0.5% 0.0%
[libx264 @ 0x5580ac186b40] i16 v,h,dc,p: 2% 3% 0% 95%
[libx264 @ 0x5580ac186b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 7% 6% 11% 10% 10% 8% 8%
[libx264 @ 0x5580ac186b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 18% 7% 5% 16% 11% 9% 6% 4%
[libx264 @ 0x5580ac186b40] i8c dc,h,v,p: 33% 21% 22% 24%
[libx264 @ 0x5580ac186b40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5580ac186b40] ref P L0: 85.7% 0.1% 13.2% 1.0%
[libx264 @ 0x5580ac186b40] ref B L0: 53.6% 46.4%
[libx264 @ 0x5580ac186b40] ref B L1: 92.8% 7.2%
[libx264 @ 0x5580ac186b40] kb/s:143.20
aman@aman:~/Desktop/a$ ffmpeg -loop 1 -i 'https://cdn.pixabay.com/photo/2021/04/17/18/26/woman-6186493__340.jpg' -t 5 -vf scale=1280:780 output.webm
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, image2, from 'https://cdn.pixabay.com/photo/2021/04/17/18/26/woman-6186493__340.jpg':
 Duration: 00:00:00.04, start: 0.000000, bitrate: 5538 kb/s
 Stream #0:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 511x340 [SAR 1:1 DAR 511:340], 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'output.webm' already exists. Overwrite? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (mjpeg (native) -> vp9 (libvpx-vp9))
Press [q] to stop, [?] for help
[swscaler @ 0x5630553879c0] deprecated pixel format used, make sure you did set range correctly
[libvpx-vp9 @ 0x563054cd2500] v1.7.0
[libvpx-vp9 @ 0x563054cd2500] Neither bitrate nor constrained quality specified, using default CRF of 32
Output #0, webm, to 'output.webm':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 1280x780 [SAR 19929:21760 DAR 511:340], q=-1--1, 25 fps, 1k tbn, 25 tbc
 Metadata:
 encoder : Lavc58.91.100 libvpx-vp9
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 57 fps=0.0 q=0.0 size= 1kB time=00:00:01.28 bitrate= 3.3kbits/sframe= 103 fps=102 q=0.0 size= 1kB time=00:00:03.12 bitrate= 1.3kbits/sframe= 125 fps= 85 q=0.0 Lsize= 51kB time=00:00:04.96 bitrate= 84.0kbits/s speed=3.37x 
video:50kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.571023%



-
FFMPEG command (For capturing keyframe) executes, but not creating the output file
3 mai 2017, par sforsandeepIm trying with an FFMPEG command using the latest FFMPEG exe. The command executes fine. But the output file is not being created.
Here is the command I tried from DOS prompt. According to a colleagues comment, it was (The command) working before without any trouble.
D:\Utilities\FFMPegVideoManager\FFMPEG_updated\ffmpeg.exe -i
"M:\content\video.mp4" -y -ss 1 -frames 1
"E:\frame\testtest.jpg"The output after the execution is
C:\Users\ABCD>D:\Utilities\FFMPegVideoManager\FFMPEG_updated\ffmpeg.exe -i "M:\FTP Home Directory\LocalUser\WAP_UAT\Processing Folder\wspa1\Delivery\San4\content\0101_eatingredpanda.mp4" -y -ss 1 -frames 1 "E:\sandeep\testtest.jpg"
ffmpeg version N-85266-g1229007 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 59.100 / 55. 59.100
libavcodec 57. 90.100 / 57. 90.100
libavformat 57. 72.100 / 57. 72.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 83.100 / 6. 83.100
libswscale 4. 7.100 / 4. 7.100
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'M:\content\0101_eatingredpanda.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 1970-01-01T00:00:00.000000Z
encoder : Lavf52.31.0
Duration: 00:00:19.52, start: 0.000000, bitrate: 12506 kb/s
Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 12373 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0000000006238340] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'E:\sandeep\testtest.jpg':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.72.100
Stream #0:0(eng): Video: mjpeg, yuvj420p(pc), 960x540 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
encoder : Lavc57.90.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=6.6 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.447x
video:48kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknownSo from the output detials it seems to be fine. So why its not creating the output file ? Thanks