Aller au contenu

Batch Ffmpeg Pour Verifier Les Avi's

Featured Replies

Posté(e)

Bonjour,

en m'inspirant de http://606u.dir.bg/avicheck/, j'ai voulu faire executer ce batch sur mon Syno 1010

#!/opt/bin/bash


 find -name "*.avi" | while read i; do

    OUTP="$i.txt"

    OUTP_OK="$i.txt.ok"

    TMP_OUTP="$i.tmp"

    if [ -f "$OUTP" -o -f "$OUTP_OK" ] ; then

	echo Skipping "$i"

    else

	echo Checking "$i"...

	RESULT="bad"

	ffmpeg -v 5 -i "$i" -f null - 2> "$TMP_OUTP" && \

    	mv "$TMP_OUTP" "$OUTP" && \

    	RESULT=`grep -v "\(frame\)\|\(Press\)" "$OUTP" | grep "\["`

	if [ -z "$RESULT" ] ; then

    	mv "$OUTP" "$OUTP_OK"

	fi

    fi

 done

La modif avec le find -name permet de s'affranchir des probl

Posté(e)
  • Auteur

Personne pour m'aider?

  • 3 semaines après...
Posté(e)

a priori

Posté(e)
  • Auteur

Merci beaucoup cricx, je teste

Posté(e)

Merci beaucoup cricx, je teste

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.