• Domů
    • Emoncms App
    • Emoncms App2
  • Arduino
  • Linux
  • Debian
  • Ubuntu
  • OpenBSD
  • Home Assistant
  • MySensors
  • Raspberry Pi
  • Synology
  • Windows
  • Různé
  • Libreelec
  • Volumio

Ověření souborů pomocí md5

Základní údaje
Zveřejněno: 9. červenec 2026

Ověření zkopírovaných souborů pomocí md5 sum.

Číst dál …

Úpravy PDF v linuxu

Základní údaje
Zveřejněno: 17. listopad 2024

PDFTK - rozdělování a slučování pdf souborů

pdftk input_file.pdf cat 25-26 output_file_output.pdf

jak stáhnout soukromá videa z Vimeo

Základní údaje
Zveřejněno: 24. květen 2024

Návod, jak stáhnout soukromá videa Vimeo:

  1. Klepněte pravým tlačítkem myši kamkoli na stránku a vyberte „Prozkoumat“
  2. Vyberte kartu „Zdroje“
  3. Znovu načtěte stránku
  4. Vyhledejte 9 místný očíslovaný soubor
  5. Rozbalte „player.vimeo.com“
  6. Rozbalte složku „video“
  7. Klikněte pravým tlačítkem na odkaz a vyberte „Uložit jako…“
  8. Uložte soubor jako soubor „txt“
  9. Stisknutím Ctrl+F (Win) otevřete vyhledávací pole
  10. Vyhledejte požadovanou kvalitu videa (např. 1080p)
  11. Zkopírujte adresu URL končící „mp4“ nebo „m3u8“
  12. Vložte jej do youtube-dl-gui.exe
  13. Dejte stáhnout

Insiporávno: https://viddownmadness.com/download-private-vimeo-videos/

FFmpeg convert audios

Základní údaje
Zveřejněno: 17. květen 2024

Convert all flac in directory on Synology to MP3 with specific output directory, VBR 220 - 260 kbps:

find . -name "*.flac" -exec bash -c 'D=$(dirname "{}"); B=$(basename "{}"); mkdir -p "/volume1/Download/MP3/$D/"; ffmpeg7 -hide_banner -n -i "{}" -sample_fmt s16p -ar 44100 -c:v copy -q:a 0 -map_metadata 0 -id3v2_version 3 "/volume1/Download/MP3/$D/${B%.*}.mp3" 2>> /volume1/Download/flac2mp3.txt' \;

LAME Bitrate Overview
lame option Average kbit/s Bitrate range kbit/s ffmpeg option
-b 320 320 320 CBR (non VBR) example -b:a 320k (NB this is 32KB/s, or its max)
-V 0 245 220-260 -q:a 0 (NB this is VBR from 220 to 260 KB/s)
-V 1 225 190-250 -q:a 1
-V 2 190 170-210 -q:a 2
-V 3 175 150-195 -q:a 3
-V 4 165 140-185 -q:a 4
-V 5 130 120-150 -q:a 5
-V 6 115 100-130 -q:a 6
-V 7 100 80-120 -q:a 7
-V 8 85 70-105 -q:a 8
-V 9 65 45-85 -q:a 9

Convert all wav in directory to MP3 VBR 190-250 kbps:

for f in *.wav; do ffmpeg -i "$f" -acodec libmp3lame -vn -ar 44100 -ac 2 -q:a 1 "${f%.*}.mp3"; done

Convert wav to FLAC:

ffmpeg -i $SOURCE -q:a flac -compression_level 2 $OUT.flac
 

Insert ID3 Tag metadata with cover image to MP3:

for f in *.mp3; do ffmpeg -y -i "$f" -i cover.jpg -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -metadata title="${f%.*}" -metadata album="Albumi" -metadata artist="Artists" -metadata genre="Audiobook" -metadata date="2008" -metadata publisher="Publisher" "output/${f%.*}.mp3"; done
 

Read all metadata from MP3 file:

 ffmpeg -i file.mp3 -f ffmetadata

Extracting audio from MP4 AAC to AAC:

ffmpeg -i input_video.mp4 -vn -c:a copy output.aac

Extracting audio from MP4 AAC to WAV:

ffmpeg -i input_video.mp4 -vn -c:a pcm_s16le output.wav

Extracting audio from MP4 AAC to WAV with phase flip:

ffmpeg -i input_video.mp4 -vn -af "pan=stereo|c0=c0|c1=-1*c1" -c:a pcm_s16le output_flip.wav

FFmpeg create a silence audio track

Základní údaje
Zveřejněno: 17. květen 2024

Create silence audio track, 44.1 kHz, stere, 60 sec:

ffmpeg -f lavfi -i anullsrc=r=44100:cl=stereo -t 60 -q:a 9 -acodec libmp3lame silence.mp3

FFmpeg convert videos without quality loss

Základní údaje
Zveřejněno: 4. prosinec 2021

Merge video + audio and convert to 8-bit H.264 with deinterlace

ffmpeg -i Svatba_Petr_1.m2v -i Svatba_Petr_1.wav -c:v libx264 -crf 18 -vf "bwdif,format=yuv420p" -c:a aac D:\output3.mp4
  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: H.264 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.

  • bwdif - deinterlace.

10-bit/12-bit HEVC to 8-bit H.264

ffmpeg -i input -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: H.264 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.

10-bit/12-bit HEVC to 10-bit H.264

ffmpeg -i input -map 0 -c:v libx264 -crf 18 -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: H.264 for more info on -crf and -preset.

  • No need for the format filter in this case.

10-bit/12-bit HEVC to 8-bit HEVC

ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: HEVC / H.265 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.

12-bit HEVC to 10-bit HEVC

ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p10le -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: HEVC / H.265 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p10le pixel format to create 10-bit output. Other 10-bit pixel formats supported by libx265 are yuv422p10le & yuv444p10le, but your player may not like these. See ffmpeg -h encoder=libx265 for additional supported pixel formats.

GoPro 4K MPEG4 to FullHD 50p MPEG4 cca 1600-2000 kbps

ffmpeg -i GX010183.MP4 -vf scale=1920:1080 -crf 18 -c:a copy GX010183_fullHD.MP4

How to cut a video, without re-encoding

Use this to cut video from [start] for [duration]:

ffmpeg -ss [start] -i in.mp4 -t [duration] -map 0 -c copy out.mp4

Use this to cut video from [start] to [end]:

ffmpeg -copyts -ss [start] -i in.mp4 -to [end] -map 0 -c copy out.mp4
  • -ss specifies the start time, e.g. 00:01:23.000 or 83 (in seconds)
  • -t specifies the duration of the clip. The format of the time is the same
  • Instead of -t, you can also use -to, which specifies the end time
  • -map 0 maps all streams: audio, video and subtitles
  • -copyts preserves the original timestamps from the input file
  • -c copy copies the first video, audio, and subtitle bitstream from the input to the output file without re-encoding them. This won't harm the quality and make the command run within seconds

Repair end time code:

ffmpeg -i temp.mp4 -c copy -copyts out.mp4

  1. Firefox Chrome unsafe port
  2. ExifTool

Strana 1 z 2

  • 1
  • 2