Category : ffmpeg

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 ..

Read more

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 ..

Read more

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 ..

Read more

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[0] >> 1 ) & 0x3F ). Then ..

Read more

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 ..

Read more

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 ..

Read more