I am using Python bindings for Gstreamer and am using the following pipeline to convert a wav file to mp3. I used one of the suggestions in this question , with some modifications (as I was getting some errors when original syntax was used)
gst.parse_launch("filesrc location=C:\\music.wav ! decodebin
! audioconvert ! lame ! filesink location=C:\\music.mp3")
When I run this code in Python, I get no errors. However, it doesn't generate music.mp3 file.
What else do I need to do so that it creates a new file music.mp3