How do I run ffmpeg from qprocess

66 views
Skip to first unread message

Azzeddine Remmal

unread,
Aug 25, 2023, 2:28:47 PM8/25/23
to The Ring Programming Language
Hello Mahmoud
I want to use ffmpeg in my Arabic speech engine project

I want to convert a pcm file into a ring matrix so that I can analyze and display it

How do I run ffmpeg from qprocess
my regards

Ilir Liburn

unread,
Aug 25, 2023, 2:47:57 PM8/25/23
to The Ring Programming Language
Hello Azzeddine,

I wrote simple example to read stream (from binance.com) by using QProcess. See if this can be used in your case.

Greetings,
Ilir
stream.ring

Azzeddine Remmal

unread,
Aug 25, 2023, 8:37:29 PM8/25/23
to The Ring Programming Language
Hello  Ilir 

Thanks for help
Greetings

Ilir Liburn

unread,
Aug 26, 2023, 4:07:59 AM8/26/23
to The Ring Programming Language
Hello Azzeddine,

You're Welcome.

Greetings,
Ilir

Azzeddine Remmal

unread,
Aug 27, 2023, 3:49:14 PM8/27/23
to The Ring Programming Language
Hello Mahmoud
I thought that  qprocess    does not work ffmpeg
It executes  ffmpeg   in the background but does not return output
Is there a solution because I want to inquire about the microphone and camera devices

I want to convert a pcm file into a ring matrix so that I can analyze and display it

I solved the problem file in the attachments

Greetings, Azzeddine

ReadPCM.ring

Azzeddine Remmal

unread,
Aug 27, 2023, 5:54:44 PM8/27/23
to The Ring Programming Language
Hello Mahmoud

After a bit of searching the solution is that ffmpeg sends the output to  readAllStandardError

setreadyReadStandardErrorEvent("pGetError()")


func pGetError()

cError = oProcess.readAllStandardError().data()

textEdit.setText(cError)


Greetings, Azzeddine

Mahmoud Fayed

unread,
Aug 30, 2023, 12:58:28 AM8/30/23
to The Ring Programming Language
Hello Azzeddine

Thanks for updating the topic

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages