Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Multiple image and multiple mp3 to mkv
25 janvier 2019, par hafselI need your help.
image-folder >
image1.jpg
image2.jpg
image3.jpg
mp3-folder >
mp31.mp3
mp32.mp3
mp33.mp3
How can I combine them?
image1.jpg + mp31.mp3 = video1.mkv
image2.jpg + mp32.mp3 = video2.mkv
image3.jpg + mp33.mp3 = video3.mkv
My codes working for single image and multiple mp3.
for %%a in ("*.mp3") do ffmpeg -loop 1 -framerate 1 -i image.jpg -i "%%a" -c:v libx264 -preset veryslow -crf 0 -c:a copy -shortest "out\%%~na.mkv"
Please help me!
-
Copy PTS from original video stream to processed video stream using ffmpeg and opencv
25 janvier 2019, par Krishna Prasad YellapragadaI have two video files in webm format. First is the original video, captured using Chrome's MediaRecorder API. The second is a processed video generated by processing each frame of the original video using OpenCV. How do I override the PTS of frames in processed video with PTS from original video. The number of frames between the two is same.
The processed video is generated from a sequence of images using ffmpeg.
ffmpeg -i frames/frame_%d.png -pix_fmt yuv420p ffmpeg-cfr.mp4
This results in a CFR of 25fps. I have tried using the steps from the link, Can I create a VFR video from timestamped images?. This only works on mp4 videos, and not on webm. The process of encoding to MP4 and converting back to webm results in very bad video quality and takes 3x time for each video.
Along with the sequence of images, I am also writing the PTS of the original video for each frame in a timecodes.txt file. Are there any options in ffmpeg similar to mp4fpsmod (https://github.com/nu774/mp4fpsmod)? I expect that when I dump block-wise timestamps in webm for original video and processed video, the PTS for each block match between the two.
-
GSM HR decode visual studio
25 janvier 2019, par AcrobatI use FFmpeg to decode AMR-NB. GSM-HR decoding is required (half rate 112 bit). Please tell me the library for GSM-HR decoding for visual studio c ++.
-
Finding ffmpeg installed version
25 janvier 2019, par JBWanscherI have a cross machine script which needs to detect the version of ffmpeg as a regular version string (e.g. 2.3.8-1 or 4.1.3-0). The command
ffmpeg -version
returns a host of most likely very relevant information to others, but this is much more than what I need.
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 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 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
-
How to compress video at client side before uploading it to server without installing anything at client side ?
25 janvier 2019, par Harpreet singh BainsWe have application in which client have to upload video using interface so we just want to compress that video at client side before upload it to server , without installing anything at client machine . It this possible ,if possible then how??
i have used ffmpeg javascript compiles code too but for that also we have to install ffmpeg locally.