20:39
I am trying to use a simple program to convert a .MP3 file to a .WAV file in python:
from os import path
from pydub import AudioSegment
src = "test1.mp3"
dst = "test1.wav"
# convert wav to mp3
sound = AudioSegment.from_mp3(src)
sound.export(dst, format="wav")
When I try to run the program in an IDE, I am getting a FileNotFoundError this is what the StackTrace looks like:
RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to (...)
15:07
I'm trying to create a stream using ffmpeg to send a video to a Red5 Server. I've already managed to do this using this command:
ffmpeg -re -y -i "Videos\\Video1.mp4" -c:v libx264 -b:v 600k -r 25 -s 640x360 -t 40 -vf yadif -b:a 64k -ac 1 -ar 44100 -f flv "rtmp://192.168.0.12/live/videostream"
My problem is, when ffmpeg finishes encoding the video, it stops the stream, and thus cuts the video short for 5-10 seconds (for short videos), but this gets worse on larger videos.
Is there a way to stop this behavior?
I was trying to add a blank 10 (...)
13:39
I would like to compile a ffmpeg.dll dynamic link library which includes the full range of codecs, but when I search for guides I can only find resouces to create ffmpeg.exe. Can anyone point to any resources. Thank you in advance.
10:41
I'm recording video from both the front and back cameras and I get a PIP video and a horizontal stacked video. I need to merge both videos after that. The problem with merging is that it requires both the videos (PIP and stacked) to have the same resolution and aspect ratio. This is not the case. So the FFMPEG command being executed in code to generate both these videos needs to be modified to make the resolution and aspect ratio the same.
//app -> build.gradle
implementation "com.writingminds:FFmpegAndroid:0.3.2"
private fun connectFfmPeg()
val overlayX = (...)
07:54
I am trying stream a static image on the network. Everything I have tried yet so far has failed:
Examples:
ffmpeg -y -stream_loop -1 -r 1 -i text2.png -vcodec libx264 -crf 17 -pix_fmt yuv420p -f mpegts udp://239.1.250.12:1234
File is generated but unplayable by VLC or any other TS capable device. ffplay complains about input frame errors but still produces a picture after a few seconds.
Tried this for youtube solution as well to a local file.
ffmpeg -f image2 -loop 1 -i text1.jpg -re -f lavfi -i anullsrc -vf format=yuv420p -c:v libx264 -b:v 2000k -maxrate 2000k (...)
04:03
I am trying to create a media server, and only want to transcode video when it's played. However I need the playlist in advance so that the client play can load the video metadata. Is this possible?
I want to do something like this:
Client -> GET m3u8 (pregenerated in advance)
Client -> GET ts -> Transcode only this single ts file
Client -> GET ts -> Transcode only this single ts file
Client -> GET ts -> Transcode only this single ts file
I don't want to transcode the entire video at once, I want to be able to only transcode the part that is (...)