Zufälligerweise habe ich auch so konvertiert.
https://kb.synology.com/de-de/DSM/t..._videos_to_be_compatible_with_Synology_Photos
https://kb.synology.com/de-de/DSM/t..._videos_to_be_compatible_with_Synology_Photos
find /volume1/photo -print0 -name '@eaDir' | du -ch --files0-from=-
find /volume1/photo -name '@eaDir' -print0 | du -sch --files0-from=-
Weil es mein erstes NAS und erste Synology ist. Irgendwo sah ich, dass man die Bilder/Videos für die Photos App unter /home/Photos ablegen sollte.Den Hinweis kenne ich. Trotzdem macht es einen großen unterschied, ob Videos unter /home/Photos (Persönlicher Speicherplatz) bzw. /photo (Freigegebener Bereich) oder unter /video liegen (s.o.). Aus welchem Grund hast du deine Filme im Bereich von Synology Photos liegen?
Ja, habe es auch gestern mit find gemacht. Muss aber noch schauen, ob es hier was "besseres" gibt. Ansonsten was eigenes schreiben.Edit: Über google habe ich folgenden Befehl gefunden, der die Größe aller @eaDirs ausrechnen sollte
Edit2: Nö, passt nicht.Code:find /volume1/photo -print0 -name '@eaDir' | du -ch --files0-from=-
$(ffprobe -v quiet -print_format json -show_format -show_streams $input_file > $output_file_json)
if [[ "$width" == "640" && "$height" == "480" ]] || [[ "$width" == "480" && "$height" == "640" ]]
then
# only copy the original
echo " -> copy the original"
echo " -> src $input_file"
echo " -> desc $output_file"
cp $input_file $output_file
continue
else
echo " -> convert the original"
if [[ "$rotation" == "-90" || "$rotation" == "90" ]] || [[ "$width" == "720" && "$height" == "1280" ]]
then
echo " -> process wih rotation"
ffmpeg ...
else
echo " -> process wihout rotation"
ffmpeg ...
fi
fi
user@syn:/volume1/photo/videos/2023$ ls -al VID_20230907_181453894.mp4 \@eaDir/VID_20230907_181453894.mp4
-rwxrwxrwx+ 1 rafcio users 250340026 Sep 10 14:32 VID_20230907_181453894.mp4
@eaDir/VID_20230907_181453894.mp4:
total 144
drwxrwxrwx+ 1 root root 276 Sep 10 14:36 .
drwxrwxrwx+ 1 root users 47624 Sep 10 15:36 ..
drwxrwxrwx+ 1 root root 46 Sep 10 14:35 @eaDir
-rwxrwxrwx+ 1 root root 477 Sep 10 14:35 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 14:35 SYNOINDEX_VIDEO_METADATA
lrwxrwxrwx+ 1 root root 32 Sep 10 14:35 SYNOPHOTO_FILM_H264.mp4 -> ../../VID_20230907_181453894.mp4
-rw-r--r-- 1 root root 14965 Sep 10 14:36 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 9903 Sep 10 14:36 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 104227 Sep 10 14:36 SYNOPHOTO_THUMB_XL.jpg
user@syn:/volume1/photo/videos$ ls -al \@eaDir/C0116_1080p30.mp4
total 39940
drwxrwxrwx+ 1 root root 316 Sep 7 05:13 .
drwxrwxrwx+ 1 root root 8072 Sep 6 23:47 ..
drwxrwxrwx+ 1 root root 86 Sep 7 05:13 @eaDir
-rwxrwxrwx+ 1 root root 469 Sep 6 17:12 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 78 Sep 6 18:56 SYNOINDEX_VIDEO_METADATA
lrwxrwxrwx+ 1 root root 23 Sep 6 17:12 SYNOPHOTO_FILM_H264.mp4 -> ../../C0116_1080p30.mp4
-rw-r--r-- 1 root root 40723633 Sep 7 05:13 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 16866 Sep 7 05:13 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 11322 Sep 7 05:13 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 123470 Sep 7 05:13 SYNOPHOTO_THUMB_XL.jpg
-rwxrwxrwx+ 1 user users 6329705553 Aug 17 18:22 C0114_1080p_original.MP4
@eaDir/C0114_1080p_original.MP4:
total 610440
drwxrwxrwx+ 1 root root 310 Sep 10 16:43 .
drwxrwxrwx+ 1 root root 680 Sep 10 16:42 ..
drwxrwxrwx+ 1 root root 40 Sep 10 16:43 @eaDir
-rwxrwxrwx+ 1 root root 471 Sep 10 16:28 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 16:28 SYNOINDEX_VIDEO_METADATA
-rw-r--r-- 1 root root 312450446 Sep 10 16:43 SYNOPHOTO_FILM_M.mov
-rw-r--r-- 1 root root 312450439 Sep 10 16:43 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 18559 Sep 10 16:28 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 12394 Sep 10 16:28 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 139358 Sep 10 16:28 SYNOPHOTO_THUMB_XL.jpg
-rwxrwxrwx+ 1 user users 312186565 Sep 10 16:36 C0114_1080p_ffmpeg.mp4
@eaDir/C0114_1080p_ffmpeg.mp4:
total 610432
drwxrwxrwx+ 1 root root 310 Sep 10 16:46 .
drwxrwxrwx+ 1 root root 680 Sep 10 16:42 ..
drwxrwxrwx+ 1 root root 40 Sep 10 16:46 @eaDir
-rwxrwxrwx+ 1 root root 459 Sep 10 16:41 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 16:41 SYNOINDEX_VIDEO_METADATA
-rw-r--r-- 1 root root 312455452 Sep 10 16:46 SYNOPHOTO_FILM_M.mov
-rw-r--r-- 1 root root 312455445 Sep 10 16:46 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 18085 Sep 10 16:43 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 12188 Sep 10 16:43 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 120451 Sep 10 16:43 SYNOPHOTO_THUMB_XL.jpg
-rwxrwxrwx+ 1 user users 312509681 Sep 10 16:33 C0114_720p_ffmpeg.mp4
@eaDir/C0114_720p_ffmpeg.mp4:
total 610612
drwxrwxrwx+ 1 root root 310 Sep 10 16:49 .
drwxrwxrwx+ 1 root root 680 Sep 10 16:42 ..
drwxrwxrwx+ 1 root root 40 Sep 10 16:49 @eaDir
-rwxrwxrwx+ 1 root root 456 Sep 10 16:41 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 16:41 SYNOINDEX_VIDEO_METADATA
-rw-r--r-- 1 root root 312550925 Sep 10 16:49 SYNOPHOTO_FILM_M.mov
-rw-r--r-- 1 root root 312550918 Sep 10 16:49 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 17891 Sep 10 16:46 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 12097 Sep 10 16:46 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 118344 Sep 10 16:46 SYNOPHOTO_THUMB_XL.jpg
-rwxrwxrwx+ 1 user users 1451284184 Sep 10 16:08 C0118_4k_original.mp4
@eaDir/C0118_4k_original.mp4:
total 125312
drwxrwxrwx+ 1 root root 310 Sep 10 16:54 .
drwxrwxrwx+ 1 root root 680 Sep 10 16:42 ..
drwxrwxrwx+ 1 root root 40 Sep 10 16:54 @eaDir
-rwxrwxrwx+ 1 root root 468 Sep 10 16:42 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 16:42 SYNOINDEX_VIDEO_METADATA
-rw-r--r-- 1 root root 64048694 Sep 10 16:54 SYNOPHOTO_FILM_M.mov
-rw-r--r-- 1 root root 64048687 Sep 10 16:54 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 19485 Sep 10 16:49 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 13039 Sep 10 16:49 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 173550 Sep 10 16:49 SYNOPHOTO_THUMB_XL.jpg
-rwxrwxrwx+ 1 user users 64467406 Sep 10 16:38 C0118_1080p_ffmpeg.mp4
@eaDir/C0118_1080p_ffmpeg.mp4:
total 124960
drwxrwxrwx+ 1 root root 310 Sep 10 16:49 .
drwxrwxrwx+ 1 root root 680 Sep 10 16:42 ..
drwxrwxrwx+ 1 root root 40 Sep 10 16:49 @eaDir
-rwxrwxrwx+ 1 root root 458 Sep 10 16:41 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 16:41 SYNOINDEX_VIDEO_METADATA
-rw-r--r-- 1 root root 63872599 Sep 10 16:49 SYNOPHOTO_FILM_M.mov
-rw-r--r-- 1 root root 63872592 Sep 10 16:49 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 23421 Sep 10 16:49 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 15417 Sep 10 16:49 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 163563 Sep 10 16:49 SYNOPHOTO_THUMB_XL.jpg
-rwxrwxrwx+ 1 user users 64135439 Sep 10 16:39 C0118_720p_ffmpeg.mp4
@eaDir/C0118_720p_ffmpeg.mp4:
total 125252
drwxrwxrwx+ 1 root root 310 Sep 10 16:54 .
drwxrwxrwx+ 1 root root 680 Sep 10 16:42 ..
drwxrwxrwx+ 1 root root 40 Sep 10 16:54 @eaDir
-rwxrwxrwx+ 1 root root 455 Sep 10 16:42 SYNOINDEX_MEDIA_INFO
-rwxrwxrwx+ 1 root root 79 Sep 10 16:42 SYNOINDEX_VIDEO_METADATA
-rw-r--r-- 1 root root 64023620 Sep 10 16:54 SYNOPHOTO_FILM_M.mov
-rw-r--r-- 1 root root 64023613 Sep 10 16:54 SYNOPHOTO_FILM_M.mp4
-rw-r--r-- 1 root root 22812 Sep 10 16:54 SYNOPHOTO_THUMB_M.jpg
-rw-r--r-- 1 root root 15121 Sep 10 16:54 SYNOPHOTO_THUMB_SM.jpg
-rw-r--r-- 1 root root 159411 Sep 10 16:54 SYNOPHOTO_THUMB_XL.jpg
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.