View previous topic :: View next topic |
Author |
Message |
Marcofras n00b
Joined: 29 May 2023 Posts: 44
|
Posted: Fri Jan 03, 2025 2:56 pm Post subject: huffyhuv compression |
|
|
i have a video coded huffyhuv and its 14GB for 8 minutes its too much.
Code: |
m@localhost ~/Videos $ file tg.mkv
tg.mkv: Matroska data
|
i try to compress with devedeng with reduce bitrate but loose quality.
Is there a way to reduce the dimension with no loose quality? |
|
Back to top |
|
|
user Apprentice
Joined: 08 Feb 2004 Posts: 214
|
Posted: Fri Jan 03, 2025 9:57 pm Post subject: |
|
|
Hi Marcofras,
Code: | m@localhost ~/Videos $ file tg.mkv
tg.mkv: Matroska data | reports media container format only.
Try ffprobe (from ffmpeg) for full media codec(s) printout.
>Is there a way to reduce the dimension with no loose quality?
You can use ffmpeg 'crop' filter to change dimension of a video.
Cropping will result in re-encoding but input codec is lossless (huffyhuv), so re-encoding to lossless output codec (huffyhuv) should be obviously lossless. |
|
Back to top |
|
|
Marcofras n00b
Joined: 29 May 2023 Posts: 44
|
Posted: Sun Jan 05, 2025 3:21 pm Post subject: |
|
|
Code: |
m@localhost ~/Videos $ ffprobe tg.mkv
ffprobe version 6.1.2 Copyright (c) 2007-2024 the FFmpeg developers
built with gcc 13 (Gentoo 13.3.1_p20240614 p1)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-6.1.2/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-O2 -march=alderlake -pipe' --disable-static --disable-libaribcaption --enable-avfilter --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libjxl --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-libmodplug --disable-libopus --disable-libvpl --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-fontconfig --enable-frei0r --disable-libfribidi --disable-libglslang --disable-ladspa --disable-lcms2 --enable-libass --disable-libplacebo --disable-libtesseract --disable-lv2 --disable-librubberband --disable-libshaderc --disable-libfreetype --disable-libharfbuzz --disable-libvidstab --disable-libvmaf --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --disable-libaom --enable-libmp3lame --disable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libsvtav1 --disable-libtheora --disable-libtwolame --enable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-dotprod --disable-i8mm --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --enable-pic --cpu=alderlake --disable-doc --disable-htmlpages --enable-manpages
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, matroska,webm, from 'tg.mkv':
Metadata:
ENCODER : Lavf60.16.100
Duration: 00:08:46.66, start: 0.000000, bitrate: 237681 kb/s
Stream #0:0: Video: huffyuv (HFYU / 0x55594648), yuv422p(bt709), 1680x1050, SAR 1:1 DAR 8:5, 25 fps, 25 tbr, 1k tbn
Metadata:
DURATION : 00:08:46.600000000
Stream #0:1: Audio: flac, 48000 Hz, stereo, s16
Metadata:
DURATION : 00:08:46.656000000
|
with dimension i mean bytes. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Sun Jan 05, 2025 3:34 pm Post subject: |
|
|
FFV1 is pretty good at compressing video losslessly (shuold be built in ffmpeg).
Another codec to test is Lagarith. It's lossless too.
Both should compress better than huffyuv, but require more cpu cycles. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Marcofras n00b
Joined: 29 May 2023 Posts: 44
|
Posted: Sun Jan 05, 2025 3:40 pm Post subject: |
|
|
how to do? |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Sun Jan 05, 2025 4:20 pm Post subject: |
|
|
Code: | ffmpeg -i video_huffyuv.mkv -c:v ffv1 -c:a copy video_ffv1.mkv | ... if I recall correctly. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|