Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to find audio stream
    text
    copied!<p>I'm trying to adapt a code in order to add a sound capture feature (on a live stream), with the help of ffmpeg and directshow.</p> <p>When i try to play with ffplay the AVIsynth file, everything works perfectly i've got the audio and video. But when i open this input file by code i only find the video stream.</p> <p>The Avs file :</p> <pre><code>V = DirectShowSource("Decklink_HDMI.grf", fps=10, framecount=1000000000, seek=false, audio=false) A = DirectShowSource("Decklink_Audio.grf", fps=1, framecount=1000000000, video=false) AudioDub(V, A) </code></pre> <p>The opening code :</p> <pre><code>ffmpeg::AVInputFormat * ifmt; ifmt = ffmpeg::av_find_input_format("avs"); // Open input file if(ffmpeg::avformat_open_input(&amp;pFormatCtx, filename.toStdString().c_str(), ifmt, NULL) != 0) </code></pre> <p>When i make a variable lookout on gdb just after the opening.</p> <p>i'm looking at nb_streams in pFormatCtx->nb_streams and it's at 1 The only stream i can find in pFormatCtx->stream is a video one. And that's why i'm not able to capture the sound.</p> <p>So i'm asking if i'm doing something wrong with my opening or if i miss something.</p> <p>Ps : I know the code shown is short but the problem appears at this very step !</p> <p>Thank you</p> <p>Kurt</p> <p>-- EDIT --</p> <p>I've also noticed that when I dump the AVFormatContext the video stream got a 456x32 size. And i can find this very same size of the window displayed when i try to launch a corrupted script with ffplay.</p> <p>The original video format when i play the correct script with ffplay is of 1920x1080</p> <p>I think my problem is maybe deeper than the simple fact of not being able to get the audio stream.</p> <p>I'm trying to find out how to know the error message that is displayed on this 456x32 windows</p> <p>-- EDIT2 --</p> <p>I Find out what is written on this image and my problem is solved, badly placed avs script an old one was is place.</p> <p>I'm ashamed.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload