question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stream specifier '' in filtergraph description

See original GitHub issue

Hi. I am running this section of code just to test out ffmpeg a little bit and am getting this error. Both of these files exist and are in the proper dictionary, and ffmpeg has worked in the command line on these files the same way.

def cutout(input_file,output_file,start,duration):
    (
        ffmpeg
            .input(input_file)
            .trim(start=start,duration=duration)
            .output(output_file)
            .run()
    )

I am then getting this error:

Stream specifier '' in filtergraph description [0]trim=duration=15:start=0[s0] matches no streams.

What should I look for to debug? I do not understand where this blank comes into play.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 30, 2018

I also have this problem when trying to concatenate streams. Here’s an example of calling .compile():

['ffmpeg', '-i', "/some/path/a.m4a", '-i', '/some/path/b.m4a', '-filter_complex', '[0][1]concat=n=2[s0]', '-map', '[s0]', 'out.m4a']

In my case, I was able to manually make it work by changing [0][1]concat=n=2[s0] to [0][1]concat=n=2:v=0:a=1[s0]

Or just by saying a=1, v=0 in kwargs

0reactions
Azlealcommented, Jun 11, 2021

@Azleal nice!

Fun fact, if you add noaccurate_seek=None to your input() call, it will make the command way faster for big files.

wow, 👍 x 100, I’ll try it out. thanks~

Read more comments on GitHub >

github_iconTop Results From Across the Web

ffmpeg version 2.6.8 : Stream specifier ':a' in filtergraph ...
I got Stream specifier ':a' in filtergraph description [1:0]volume=0.5[a1];[0:a][a1]amix=inputs=2:duration=first matches no streams with the ...
Read more >
I am getting "Stream specifier ' ' in filtergraph description" in ...
Your command is missing the -i token for the image input, so it should be ffmpeg -loop 1 -framerate 24 -t 10 -i...
Read more >
ffmpeg Stream specifier ':a' in filtergraph description matches ...
I get an error message 'Stream specifier ':a' in filtergraph description' for a video with muted audio. How can I detect such videos...
Read more >
[FFmpeg-user] Stream specifier ':a' in filtergraph Error
[FFmpeg-user] Stream specifier ':a' in filtergraph Error ... that is your filtergraph description — for stream specifiers ending in ":a".
Read more >
Re: [FFmpeg-user] Stream specifier ':a' in filtergraph Error
The documentation of stream specifiers is at . FFmpeg gives you an error message, "Stream specifier ':a' in filtergraph description … matches no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found