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.

Ffmpeg-python : copying codec from input to output stream showing error

See original GitHub issue

I am trying to convert an MP4 file to mkv by copying the codecs … ffmpeg equivalent is ffmpeg -i input.mp4 -c copy out.mkv

I tried this using the code:

Input='in.mp4' Output=ffmpeg.output(in , 'out.mkv',acodec='copy',vcodec='copy')

But this line is raising a Type error :

raise TypeError( TypeError: Expected incoming stream(s) to be of one of the following types: ffmpeg.nodes.FilterableStream; got <class 'str'>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
payalrajgurucommented, Sep 26, 2022

Yes…but it is not working…so tried using subprocess and hence now working

1reaction
mohdsabahatcommented, Dec 25, 2020

😞😞 I am sorry

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is ffmpeg-python throwing a codec error here?
In my head, this ought to be simple. The user browses to an existing MOV file (a standard h264 file which 'normal' FFmpeg.exe...
Read more >
ffmpeg Documentation
Stream copy is a mode selected by supplying the copy parameter to the -codec option. It makes ffmpeg omit the decoding and encoding...
Read more >
ffmpeg-python documentation - GitHub Pages
Some ffmpeg filters drop audio streams, and care must be taken to preserve the audio in the final output. The .audio and .video...
Read more >
Using FFmpeg with NVIDIA GPU Hardware Acceleration
The following command reads file input.mp4 and transcodes it to output.mp4 with H.264 video at 720p resolution and with the same audio codec...
Read more >
ffmpeg video converter - manpages.ubuntu!
For the third output, codec option for audio streams has been set to "copy", so no decoding-filtering-encoding operations will occur, or can occur....
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