<html><head><meta http-equiv="Content-Type" content="text/plain;"><style> body { font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }</style> </head> <body data-blackberry-caret-color="#00a8df"><div>Hi devs<span style="font-family: Calibri, 'Slate Pro', sans-serif;"></span></div><div><span style="font-family: Calibri, 'Slate Pro', sans-serif;"><br name="BB10" caretmarkerset="INVALID" class="markedForCaretMarkerRemoval"></span></div><div><span style="font-family: Calibri, 'Slate Pro', sans-serif;"><br name="BB10" caretmarkerset="INVALID" class="markedForCaretMarkerRemoval"></span><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;">I am working on an application that converts the audio of an mp4 video to an mp3 file. I managed to compile ffmpeg with libmp3lame so I'm good to go. I don't really have experience with ffmpeg in C++ and after searching for solutions I'm kinda desperate now.</span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"><br></span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;">The problem is in avcoded_encode_audio2(). The function is not returning, the application hangs at that line and never prints the output at the next lines. </span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"><br name="BB10" caretmarkerset="INVALID" class="markedForCaretMarkerRemoval"></span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;">I submitted the question to stack overflow but with no response. It will probably be easier for you guys to click the link because the code will be easier to read then in this mail. </span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"><br name="BB10" caretmarkerset="INVALID" class="markedForCaretMarkerRemoval"></span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"> </span><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;">http://stackoverflow.com/questions/24537641/c-ffmpeg-mp4-to-mp3-transcoding</span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"><br></span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;">Thanks in advance </span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"><br></span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;">Sam</span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, 'Droid Sans', DroidSansRegular, Arial, sans-serif; font-size: 15px; line-height: 18px;"><br name="BB10" caretmarkerset="INVALID" class="markedForCaretMarkerRemoval"></span></div></body></html>