Hi all,
I just wanted to scan an .mp4
file I downloaded from youtube with yt-dlp_linux
.
It´s the song “All Along the Watchtower”, also known as the title music from “Vanity Fair” (TV mini series).
The file is just 1.4 MB in size.
I tried to scan it this way: clamscan All_Along_the_Watchtower.mp4
.
The result was:
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Ergänzungen_zu_Programmen/zu_yt-dlp/alt/zum_Ausführen/All_Along_the_Watchtower.mp4: OK
----------- SCAN SUMMARY -----------
Known viruses: 8697640
Engine version: 0.103.11
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.00 MB
Data read: 1.34 MB (ratio 0.00:1)
Time: 25.576 sec (0 m 25 s)
Start Date: 2024:08:29 17:16:26
End Date: 2024:08:29 17:16:52
So “Data scanned: 0.00 MB”. Hmm, that struck me as odd. Seems not to have been scanned at all.
I did the same with another mp4 file, with the same results. (“Vanity_Fair_title_music.mp.4”, 780 kB).
However: scanning a third mp4 file (“g-kgw_Victoria.mp4”, weighing in at 242,3 MB) presented no problems:
[...]
Scanned files: 1
Infected files: 0
Data scanned: 492.29 MB
Data read: 231.12 MB (ratio 2.13:1)
[...]
I was wondering: the various mp4 files must be somehow different. And indeed, they are:
file *
All_Along_the_Watchtower.mp4: Audio file with ID3 version 2.3.0, contains:\012- MPEG ADTS, AAC, v4 LC, 22.05 kHz, stereo
g-kgw_Victoria.mp4: ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]
Vanity_Fair_title_music.mp4: Audio file with ID3 version 2.3.0, contains:\012- MPEG ADTS, AAC, v4 LC, 22.05 kHz, stereo
The only video file (including the sound track, of course) is “g-kgw_Victoria.mp4”, the other two only contain the sound track. No video there.
That got me thinking:
From previous experience I know that for scanning e.g. .ogg
files and .mp3
files clamscan
needed some workaround by zipping the files first, etc.
So I applied the same procedure here. And indeed: it worked this way:
cat All_Along_the_Watchtower.mp4 | gzip | clamscan -
stdin: OK
----------- SCAN SUMMARY -----------
Known viruses: 8697640
Engine version: 0.103.11
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 1.38 MB
Data read: 1.30 MB (ratio 1.07:1)
Time: 30.752 sec (0 m 30 s)
Start Date: 2024:08:29 17:39:05
End Date: 2024:08:29 17:39:36
So “Data scanned: 1.38 MB” this time. Yes, this way the file was scanned indeed.
Great.
Perhaps that´s worth keeping in mind for anyone needing to scan .mp4
audio files (pure audio files, that is).
Many greetings from Rosika