Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
TV Screen gittery while sending Stream using FFMPEG Android
24 septembre 2019, par ArvindI am getting issue while i am sending the stream to wowza using FFMPEG on RTMP issue is stream working good sending to wowza but issue is while sending its making android tv screen gittery probable what i found this is because its taking time on transcoding and UI thread gets hang
let me show you my command :
-i - -strict experimental -acodec aac -ac 1 -ar 44100 -vcodec libx264 -pix_fmt yuv420p -g 8 -vb 26k -profile:v main -preset ultrafast -r 8 -f flv -threads 0 -async 1 -vsync 1 rtmp://origin.cdn.wowza.com:1935
and below some log:
D/From the FFMPEG: frame= 51 fps= 13 q=40.0 size= 85kB time=00:00:06.52 bitrate= 107.0kbits/s dup=6 drop=273 speed=1.61x 09-24 03:27:42.094 2189-2189/com.addwatchhdmi.app D/Execute onProgress: frame= 51 fps= 13 q=40.0 size= 85kB time=00:00:06.52 bitrate= 107.0kbits/s dup=6 drop=273 speed=1.61x
-
Only '-vf scale.....' read, ignoring remaining -vf options : Use ',' to separate filters even though no other vf present
24 septembre 2019, par Vitalis HommelI am using
ffmpeg -y -ss 00:02:24.643 -fflags +igndts -t 00:00:39.337 -i 1.mp4 -r 60 -c:v libx264 -copytb 1 -vf scale=-2:1080,pad=width=1920:height=1080:x=0:y=656:color=black -af afade=t=in:ss=0:d=1,afade=t=out:st='00\:00\:38.337':d=1 2.mp4
and I get
Only '-vf scale=-2:1080,pad=width=1920:height=1080:x=0:y=656:color=black' read, ignoring remaining -vf options: Use ',' to separate filters Only '-af afade=t=in:ss=0:d=1,afade=t=out:st='00\:00\:38.337':d=1' read, ignoring remaining -af options: Use ',' to separate filters
How to solve this?
-
How to merge and synchronize the audio with the processed video for real time streaming ?
24 septembre 2019, par PadfootI am detecting objects on a RTMP video+audio stream. The output, object detected video stream doesn't contain audio in it. How to merge the audio back to the output for real-time video+object streaming output ?
I am using YOLO in darknet C framework. The FPS is 40. Also the output stream needs to be in 25-30 FPS.
-
FFmpeg, error hardcoding subtitles
24 septembre 2019, par RicardoI'm trying to use
ffmpeg
to hardcode subtitles, but it gives this error:No such filter: 'subtitles' Error opening filters!
My
ffmpeg
command and complete console output:root@srv96:/home/Kawaii/web/mysite.com/public_html# ffmpeg -i input.mkv -vf subtitles=input.mkv output.mp4 ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, matroska,webm, from 'input.mkv': Metadata: creation_time : 2015-11-22 10:34:03 Duration: 00:12:30.22, start: 0.000000, bitrate: 578 kb/s Stream #0:0: Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: BPS : 524797 BPS-eng : 524797 DURATION : 00:12:30.083000000 DURATION-eng : 00:12:30.083000000 NUMBER_OF_FRAMES: 17984 NUMBER_OF_FRAMES-eng: 17984 NUMBER_OF_BYTES : 49205170 NUMBER_OF_BYTES-eng: 49205170 _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_DATE_UTC: 2015-11-22 10:34:03 _STATISTICS_WRITING_DATE_UTC-eng: 2015-11-22 10:34:03 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(jpn): Audio: aac, 48000 Hz, stereo, s16 (default) Metadata: BPS : 52275 BPS-eng : 52275 DURATION : 00:12:30.209000000 DURATION-eng : 00:12:30.209000000 NUMBER_OF_FRAMES: 17583 NUMBER_OF_FRAMES-eng: 17583 NUMBER_OF_BYTES : 4902222 NUMBER_OF_BYTES-eng: 4902222 _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_DATE_UTC: 2015-11-22 10:34:03 _STATISTICS_WRITING_DATE_UTC-eng: 2015-11-22 10:34:03 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2: Subtitle: ssa (default) Metadata: BPS : 94 BPS-eng : 94 DURATION : 00:12:29.290000000 DURATION-eng : 00:12:29.290000000 NUMBER_OF_FRAMES: 166 NUMBER_OF_FRAMES-eng: 166 NUMBER_OF_BYTES : 8841 NUMBER_OF_BYTES-eng: 8841 _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_DATE_UTC: 2015-11-22 10:34:03 _STATISTICS_WRITING_DATE_UTC-eng: 2015-11-22 10:34:03 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES [AVFilterGraph @ 0x6e4a60] No such filter: 'subtitles' Error opening filters! root@srv96:/home/Kawaii/web/mysite.com/public_html#
Am using debian 7.
-
FFmpeg check channels of a 7.1 audio for silence
24 septembre 2019, par Tina JThis is a follow-up question from my previous question asked here, where I needed to look for silence within a specific audio track. Here is the
ffmpeg
life-saver solution where helps to get some metadata:ffmpeg -i file -map 0:a:1 -af astats -f null -
But I have other type of input
.mp4
files where they have one single track of8
(i.e. 7.1) audio channels. Apparently these files are transcoded from an original file (somehow the 4 track stereos are squished into these files). Now similar to my previous, I need to know if the original file was 2-channel stereo or 5.1 (6) channel.How to know if a specific channel of an audio track (say
Center
channel) is silent/mute, possibly usingffmpeg
? Here is a sample.mp4
file.