Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 18627  / 1 Year ago, mon, may 29, 2023, 12:34:59

I have a raw video that has the following properties:




  • 25 FPS

  • UYVY Codec

  • 876 MBit/s

  • AVI Container



I want to convert this raw file to another container using ffmpeg. Right now the problem is that the output video is being compressed. Any idea how to do this without compressing the output file. I have tried:



ffmpeg -i video.avi -r out.avi



and it did not help.


More From » ffmpeg

 Answers
3

Note that ffmpeg is depricated in Ubuntu and other distros:



enter image description here



avconv is the one you want to use which is in in the libav-tools package and can be installed with the following line:



sudo apt-get install libav-tools



So here are some ways you can do it:



FFMPEG (Deprecated in 12.04+)



ffmpeg -i input.avi -vcodec copy -acodec copy output1.avi

ffmpeg -i input.avi -vcodec copy -acodec copy output1.mp4

ffmpeg -i input.avi -vcodec copy -acodec copy output1.mkv

ffmpeg -i input.avi -vcodec copy -acodec copy output1.mpg



AVCONV



avconv -i input.avi -vcodec copy -acodec copy output1.avi

avconv -i input.avi -vcodec copy -acodec copy output1.mp4

avconv -i input.avi -vcodec copy -acodec copy output1.mkv

avconv -i input.avi -vcodec copy -acodec copy output1.mpg



Am assuming that when you say "convert to anything else" and then you add that the output should not be compressed (And then I just so happen to see the bitrate) am thinking the original file, the input is RAW inside an avi container. If this is the case, the above options will work. They will just copy the content to another container, maintaining the 25fps, bitrate and overall quality.



If you do not want to copy the content, simply remove the part that says "-vcodec copy -acodec copy" and avconv/ffmpeg will take care of it.



NOTE - As mentioned by LordNeckBeard, the MP4 example will not work on Raw.


[#32592] Tuesday, May 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
defendle

Total Points: 219
Total Questions: 131
Total Answers: 112

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
defendle questions
Mon, May 10, 21, 03:46, 3 Years ago
Mon, Dec 5, 22, 07:16, 1 Year ago
;