Ffmpeg-python : copying codec from input to output stream showing error
See original GitHub issueI 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:
- Created 3 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes…but it is not working…so tried using subprocess and hence now working
😞😞 I am sorry