Archived from the Transloadit support forum. Originally posted on October 9, 2013; details may be outdated, see our docs for current behavior. Original thread
Hi!
Few days ago I asked for the possibility to encode ogv to mp4 and flv.
Now I noticed that when I upload a ogv file the quality of the video when its encoded (mp4 or flv ) is lower than the original (.ogv).
First I tried to upload with the template = REDACTED and failed because the file doen’t have bitrate (assembly = REDACTED ) then I upload again with the template = REDACTED and the assembly is = REDACTED
yeah some ogv files cannot have their video bitrate unfortunately.
As for the quality, when you use a preset that preset has some values for bitrate, etc. that it uses for the encoding. These values will often be lower than the values in the original video.
you are right. The same article also says that preserving the same bitrate cannot be done, though:
What you really want is to understand that not all the video encoders have one universal way to copy the original video’s quality. It’s similar if you would like to unzip a text file, change the text (“just a little bit”) inside a file and zip it again, expecting the file size to remain the same. That’s just not how things work.
What happens when you do not use our preset, but copy out all the values from it, except for the “b” value? Does that give you the quality you desire? Here are our presets. Just click on each preset to see which values are used: https://transloadit.com/docs/conversion-robots#video-presets
Hi Tim!
Answer inline
You: What happens when you do not use our preset, but copy out all the values from it, except for the “b” value? Does that give you the quality you desire?
I : As you said : “…some ogv files cannot have their video bitrate unfortunately” If I trying to use de “b” value the assembly failed with an internal command error because de b value is null. I tried to use the decline filter but it is still broken. The issue is : https://community.transloadit.com/t/external_id/tender-problems-9518 .
You : Here are our presets. Just click on each preset to see which values are used: https://transloadit.com/docs/conversion-robots#video-presets
I: Yes! I tried it before using ipad-high. I answered this on post 3 on this discussion.
" I tried to preset with ipad-high and the video still appear “broken” because the quality. Here it is the assembly : REDACTED"
Any other suggestions?
Thanks!
Hm I tried all kinds of combinations of settings, but I cannot produce an output file that does not have these artefacts. I did some research and it seems ffmpeg is not a good tool to convert ogv into any other format … We might need to use different tools for that.
Do you have other sample .ogv files that I could test with?
to be honest I am not sure how we can fix this. I could not find much on Google and I can assure you we just use regular ffmpeg. I can only suggest to you to play with the ffmpeg parameters and see if you can find a combination that works well.
We tried encoding with the latest ffmpeg in Win7 and it worked perfect. So I guess this might be an issue with the ffmpeg version and Ubuntu.
Probably there’s a workaround for this problem, but unfortunately we don’t have much time to trial & error now, so if you guys eventually find a solution or apply an update on ffmpeg or ubuntu, please do let us know and we’ll check again.