7
10
I piped a stream from one instance of FFmpeg to another, but because compression was used on the intermediate stream the final result was ugly. I need a lossless pipe to prevent this, and I want it to contain both audio and video.
I suspect that there is more than one answer to this problem, so bonus points go to anyone who provides an exhaustive list of solutions (compatible containers and codecs that can be piped). Bonus points also go to anyone who accounts for other data, like subtitles.
EDIT: I'm looking for suitable codec/container combinations. I don't know why people were having difficulty figuring that out, since I said I already used a pipe and now I need it to be lossless.
I don't know how to explain this without sounding conceited, but this is an FAQ site. Asking questions that require extremely specific answers will not help the millions of users who reach this site by entering their own problems into search engines. My question was designed to help anyone else who needs to losslessly pipe data between FFmpeg instances without distracting everyone with a wall of narrative and code explaining what I was doing, why it didn't work, and why this is the only option.
3What have you tried? Please show your ffmpeg command and the complete ffmpeg console output. Why are you piping from ffmpeg to ffmpeg? Please provide more details about what you're doing and what you want to achieve. – llogan – 2013-12-06T21:22:08.010
If the pipe is lossless and contains audio and video, it doesn't matter if it's going to and from /dev/null. Context would only complicate this. – Wutaz – 2013-12-06T21:25:40.540
1I disagree. If I at least know your ffmpeg version and how it was configured, and information about your inputs (the console output will suffice), and your output requirements I can provide a more accurate answer. – llogan – 2013-12-06T21:30:33.730
FFmpeg configuration I can understand, but even as much as FFmpeg changes I doubt that its support for uncompressed streams will ever be a problem. If you know of something that can change the ideal format to use, then please list them all and when each is appropriate. Giving only one narrow answer will not answer the question properly. – Wutaz – 2013-12-06T21:39:23.993