Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
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. -
Recording video report for protractor execution on a remote environment
23 septembre 2019, par Debasish MukherjeeI am executing my protractor test suite from my desktop and I am using a remote selenium server. I have configured the 'protractor-video-reporter' to capture execution for my local windows environment (using ffmpeg codec) and when I execute using my local selenium server, the video capture works fine. But when I execute on remote VMs, it captures my desktop screen. I understand that I need to provide the remote location path to ffmpeg codec, but I do not know how to provide appropriate user credentials so that my automation can invoke the remote plugin? My present configuration is as follows:
const VideoReporter = require('protractor-video-reporter'); ... let config = { ... onPrepare: () => { ... VideoReporter.prototype.jasmineStarted = function () { var self = this; if (self.options.singleVideo) { var videoPath = path.join(self.options.baseDirectory, 'protractor-specs.mpg'); self._startScreencast(videoPath); if (self.options.createSubtitles) { self._subtitles = []; self._jasmineStartTime = new Date(); } } }; ... jasmine.getEnv().addReporter(new VideoReporter({ baseDirectory: './test-output/videoreport', createSubtitles: false, saveSuccessVideos: true, singleVideo: true, ffmpegCmd: "C:/FFmpeg/bin/ffmpeg.exe", /*Probably some changes needed here*/ ffmpegArgs: [ '-f', 'gdigrab', '-framerate', '30', '-video_size', 'wsxga', '-i', 'desktop', '-q:v', '10', ] })); ... } ... } export { config };
Considering that execution and video capture both has to happen in remote server, please suggest a suitable solution.
-
What's the best way to get video metadata from a MP4 file in ASP.Net MVC using C# ?
23 septembre 2019, par Maddhacker24I've been searching on Google and StackOverflow for a good couple of hours. There seems to be a lot of similar questions on StackOverflow but they are all about 3-5 years old.
Is using FFMPEG still the best way these days to pull metadata from a video file in a .NET web application? And if so, what's the best C# wrapper out there?
I've tried MediaToolkit, MediaFile.dll without any luck. I saw ffmpeg-csharpe but that looks like it hasn't been touched in a few years.
I haven't found any current data on this subject. Is the ability to pull metadata from a video built into the latest version of .NET now?
I'm basically looking for any direction at this point.
I should add that whatever I use could be invoked thousands of times per hour so it will need to be efficient.
-
Regarding making a AVI file from G.711 PCM audio and H264 video
23 septembre 2019, par Nidheesh VI have a G711 alaw and G711 ulaw audio pipes, and a h.264 video pipe.
I want to create a .avi file which is made using the G711 audio and video using ffmpeg binary.
i have tried using the below commands to generate ,but no luck
ffmpeg -f h264 -i /tmp/stream-0.h264 -vcodec copy -f pcm_alaw -i /tmp/audio-0.g711 -acodec copy /tmp/sdcard/re_main.avi.
When i run this command, the ffmpeg just hangs with the below print
Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2) Input #0, h264, from '/tmp/stream-0.h264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 1920x1080, 25 fps, 25 tbr, 1200k tbn, 50 tbc
How can we make a AVI file?
-
How to merge audio with the processed video for real time streaming ?
23 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.