Other video files I tested will not have problems, only this video file will appear when releasing the pBuffer can not be released, I will post the code to the following The code for converting the image comes from another open source library libvips, which can be ignored bool TaskThumbnail::videoThmbnail(const QString &video_path, const QString &file_Thumbnail_Cache) ..
I am attempting to convert an .mp3 testaudio.mp3 into .wav testaudio.wav by using Python’s subprocess module and ffmpeg. I am on Windows, and when I use command prompt to run the following command, it works and converts my .mp3 into .wav successfully: C:PATH_programsffmpeg-4.4-full_buildffmpeg-4.4-full_buildbin>ffmpeg -i testaudio.mp3 testaudio.wav However, when I attempt to use a Python script ..
This answer would solve a lot of my problems but relies on wc -l to tally the number of audio channels from the output of ffprobe. How do I use ffmpeg to merge all audio streams (in a video file) into one audio channel? I’m using a Windows batch file, so I need another way ..
How can I identify mpegts files? I copied the following code from here, and it works well on a lot of files, but he also identifies this file as a mpegts video. Below is the beginning of the problematic file. This is the code I use: #define MPEGTS_MIN_BUF_SIZE 1024 * 4 static __forceinline const uint16_t ..
I am trying to convert an input RGB8 image into NV12 using libav, but sws_scale raises a reading access violation. I must have the planes or the stride wrong, but I can’t see why. At this point I believe I’d benefit from a fresh pair of eyes. What am I missing? void convertRGB2NV12(unsigned char *rgb_in, ..
I am opening rtsp stream using cuda’s videoreader. stream comes from fpga. When I open the stream with ffplay and videoreader, the first frame comes and then it doesn’t continue. I am connected to fpga via ethernet. I also tested with different cables and different ethernet ports. same problem I found a ffmpeg parameter called ..
I am trying to remove the audio from a all video files in a directory. This is the code I am using: for %f in (*.MP4); do ffmpeg -i "%f" -c:v copy -an "%f_noaudio.mp4"; done I can use this function outside a for loop and get the correct output when I specify the file names ..
I have a problem with decoding IP camera stream (h.265) using ffmpeg libraries. I use Live555 to receive RTP payload. mMediaSession->readSource()->getNextFrame(mVideoBuffer.data(), mVideoBuffer.size(), Stream::Static_PayloadRead, this, Stream::Static_StreamClose, this); First two bytes (after the start code 0001) has the nal_unit_header. I am retrieving the type, from bits 1-6 ( ( NALU >> 1 ) & 0x3F ). Then ..
I have a folder of mp4 files and I need to remove the audio from each one. I know that there are ways to do this (e.g. https://superuser.com/questions/1539280/how-to-remove-audio-from-multiple-video-files-with-ffmpeg & https://video.stackexchange.com/questions/20474/how-to-change-output-filename-in-ffmpeg-batch) but I cannot get either to work. I am new to using ffmpeg and cmd. From cmd, I have set the directory as the folder ..
I just built and installed FFmpeg (./configure –disable-asm). And I need to use libavformat in my C++ project. I use FindFFmpeg.cmake with: find_package(FFmpeg COMPONENTS avcodec avformat avutil swresample swscale) When I build, I get a bunch of undefined symbol errors so I have to find libraries: find_library(COREMEDIA_LIBRARY CoreMedia) find_library(VIDEOTOOLBOX_LIBRARY VideoToolbox) find_library(COREVIDEO_LIBRARY CoreVideo) find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox) find_library(SECURITY_LIBRARY ..