mirror of
				https://github.com/tiyn/wiki.git
				synced 2025-11-03 20:01:15 +01:00 
			
		
		
		
	ffmpeg: target size encoding added
This commit is contained in:
		@@ -45,8 +45,8 @@ The following is an example where the file `input` is encoded with `libx264` to
 | 
				
			|||||||
The video bitrate is `555k` and the audio bitrate is `128k`.
 | 
					The video bitrate is `555k` and the audio bitrate is `128k`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
ffmpeg -y -i input -c:v libx264 -preset medium -b:v 555k -pass 1 -c:a libfdk_aac -b:a 128k -f mp4 /dev/null && \
 | 
					ffmpeg -y -i input -c:v libx264 -b:v 555k -pass 1 -c:a libfdk_aac -b:a 128k -f mp4 /dev/null && \
 | 
				
			||||||
ffmpeg -i input -c:v libx264 -preset medium -b:v 555k -pass 2 -c:a libfdk_aac -b:a 128k output.mp4
 | 
					ffmpeg -i input -c:v libx264 -b:v 555k -pass 2 -c:a libfdk_aac -b:a 128k output.mp4
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Encode Audio/Video to Target Size
 | 
					### Encode Audio/Video to Target Size
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user