Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
C# How to receive ffmpeg output via udp
17 décembre 2017, par animrevox accI'm currently outputting video from ffmpeg via udp. I'm able to play the stream via VLC media player, but haven't been able to receive the video data via udp sockets in my own application. Does anyone have an example of this?
-
Are there any examples on how to create RTMP video streaming using FFMPEG (C++) ? [on hold]
17 décembre 2017, par JavaRunnerAre there any examples on how to create RTMP video streaming using FFMPEG (C++)? I know FFMPEG can work with RTMP protocol but I don't know how to use it for creating my own C++ application to make a rtmp stream.
-
Get PID of process in one line
17 décembre 2017, par Dovid BenderI have a bash script that is called by a phone system that gets some audio from a URL and (using ffmpeg, mplayer etc.) then pipes it back to the application. The file can have several URL's that are called so if the first one say goes off line or gives a 404 it will go to the next line.
I have an issue where some times the server will produce content however there is no audio. In such a case I want to kill the current PID of ffmpeg, mplayer etc. so that the script should move on.
I can't foreground it and get the last PID since once it's ran in the foreground the media is no longer being piped to the application calling it. I can't use exec in the beginning since if I then issue a kill to the PID the script dies which I don't want.
The script looks something like this:
#!/bin/bash /usr/bin/ffmpeg -i 'http://1.1.1.1/soft_music' -vn -ar 8000 -ac 1 -f s16le - /usr/bin/ffmpeg -i 'http://2.2.2.2/soft_music' -vn -ar 8000 -ac 1 -f s16le -
I assume I need to add something that will allow me to log the pid of the current ffmpeg command running so my external script can get it and kill it. Once that's done it will go to the next line and try the next stream from 2.2.2.2
-
Convert any type of videos to MP4 php without ffmpeg [on hold]
17 décembre 2017, par Khalid AskiaI have a website on which I allow users to upload videos. But I'm using the HTML5 video tag and only MP4 videos can be played. So I want to convert any type of video to MP4. I'm on a shared hosting account so I can't have FFMPEG or anything else installed on the server. Is there another way to convert videos without these tools?
-
Enormous, constant memory consumption using VP9 codec in FFMPEG C++
17 décembre 2017, par Sebastian SchonUsing: https://github.com/ash3D/VideoRecorder Wrapped with: https://github.com/ash3D/UEVideoRecorder
I added the VP9 codec to the "FindEncoder" function of the CVideoRecorder (part of the VideoRecorder repository). Using VP9 codec works generally, however the memory consumption is enormous and within a good 30 seconds, the memory usage goes up from 3GB to 6GB, upon which (round about) FFMPEG throws out of memory errors and aborts the encoding process. I started up the Diagnostics Tool of Visual Studio and it told me that avcodec.dll is holding all the memory, which is not released until the encoding is terminated (peacefully). The function within which the allocating call is executed is the CVideoRecorder::Encode() function, which inside it calls avcodec_send_frame().
H264 and HVENC work fine with a constant memory consumption of around 300MB.
I tried setting various settings on the VP9 codec like the bitrate, cfr and quality, none of which changed the behavior in any to me recognizable way.