Not all mp4 standards can be uploaded on 4chan imageboards. This is tested:
Properties:
Max duration: 120 seconds
Container:
Format: MP4 (MPEG-4 Part 14)
Major Brand: isom
Compatible Brands: isom, iso2, avc1, mp41
File Extension: .mp4
Streaming Compatibility: "Fast Start" enabled
Video Track:
Codec: H.264 (AVC)
Handler Description: VideoHandler
Pixel Format: yuv420p
Color Range: Limited (tv)
Color Primaries: BT.709
Transfer Characteristics: BT.709
Matrix Coefficients: BT.709
Bit Depth: 8-bit per channel
Resolution: Tier-based (e.g., 720p, 480p, etc.)
Frame Rate: Tier-based (e.g., original FPS or 30 FPS)
Bitrate: Variable (calculated to meet file size target)
Audio Track (Separate File):
Codec: AAC (Advanced Audio Coding)
Handler Description: SoundHandler
Bitrate: 128 kbps
(-an to remove audio)
FFmpeg Commands:
Video-only MP4 (Re-encoded):
ffmpeg -y -i input.ext -an -c:v libx264 -b:v 1500k -maxrate 1500k -bufsize 3000k -vf "scale=-2:480,fps=30" -pix_fmt yuv420p -color_range tv -colorspace bt709 -color_primaries bt709 -color_trc bt709 -metadata handler_name="VideoHandler" -movflags +faststart output.mp4
Video-only MP4 (Stream Copy):
ffmpeg -y -i input.ext -an -c:v copy -metadata handler_name="VideoHandler" -movflags +faststart output.mp4
Audio-only AAC:
ffmpeg -y -i input.ext -vn -c:a aac -b:a 128k -metadata handler_name="SoundHandler" output.aac
Top comments (0)