Script convertisseur .Avi => .mp4
Résolu
Donaldus
Messages postés
71
Statut
Membre
-
bob031 Messages postés 8228 Statut Membre -
bob031 Messages postés 8228 Statut Membre -
Bonjour,
J'ai trouvé un script sur le site internet suivant: http://blog.punkid.cn/2008/01/06/ultimate-guide-to-manage-your-ipod-under-linux/ J'ai donc suivi la marche à suivre mais quand j'essaye de convertir un film, celà ne fonctionne pas. Voici ce que j'ai dans mon terminal.
Voici le script :
Quelqu'un voit ce qui cloche?
J'ai trouvé un script sur le site internet suivant: http://blog.punkid.cn/2008/01/06/ultimate-guide-to-manage-your-ipod-under-linux/ J'ai donc suivi la marche à suivre mais quand j'essaye de convertir un film, celà ne fonctionne pas. Voici ce que j'ai dans mon terminal.
lhoest@lhoest-laptop:~$ toIpod /home/lhoest/Vidéos/ipod/Sex\ And\ The\ City\ S4E01\ -\ The\ Agony\ And\ The\ \'ex\'tasy\ \[RavyDavy\].avi MEncoder 2:1.0~rc2-0ubuntu17 (C) 2000-2007 MPlayer Team CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. File not found: '/home/lhoest//home/lhoest/Vidéos/ipod/Sex And The City S4E01 - The Agony And The 'ex'tasy [RavyDavy].avi' Failed to open /home/lhoest//home/lhoest/Vidéos/ipod/Sex And The City S4E01 - The Agony And The 'ex'tasy [RavyDavy].avi. Cannot open file/device. Exiting...
Voici le script :
#!/bin/bash #Copyright (c) 2008 bones7456 (bones7456<A>gmail<D>com) #Modified by puNk!d #License: GPL #version 20080911 SAVEDIR="/home/lhoest/video/ipod" INFILE="$1" PWD=`pwd` CMD="mencoder -of lavf -lavfopts format=mp4 -oac lavc -ovc lavc " CMD+="-lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=600:acodec=libfaac:abitrate=128 " CMD+="-af lavcresample=24000 -vf dsize=320:240:0,scale=0:0,expand=480:320,harddup -ofps 25 -srate 22050 " if -f "${INFILE%.*}.srt";then CMD+=" -sub ""\"$PWD/${INFILE%.*}.srt\"" elif -f "${INFILE%.*}.ssa";then CMD+=" -sub ""\"$PWD/${INFILE%.*}.ssa\"" elif -f "${INFILE%.*}.ass";then CMD+=" -sub ""\"$PWD/${INFILE%.*}.ass\"" fi CMD+=" -o ""\"$SAVEDIR/${INFILE%.*}_ipod.mp4\""" ""\"$PWD/$INFILE\"" eval "$CMD 2>&1"
Quelqu'un voit ce qui cloche?
A voir également:
- Convertisseur mp4
- Convertisseur mov mp4 - Télécharger - Conversion & Codecs
- Convertisseur mp4 gratuit - Télécharger - Conversion & Codecs
- Convertisseur mp3 - Guide
- Télécharger convertisseur vidéo mp4 en 3gp gratuit - Télécharger - Conversion & Codecs
- Extraire audio mp4 - Guide
4 réponses
Ok, après conseil, je n'ai plus mis /home/lhoest/ dans la commande, problème différent
lhoest@lhoest-laptop:~$ toIpod /Vidéos/ipod/Sex\ And\ The\ City\ S4E01\ -\ The\ Agony\ And\ The\ \'ex\'tasy\ \[RavyDavy\].avi MEncoder 2:1.0~rc2-0ubuntu17 (C) 2000-2007 MPlayer Team CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. success: format: 0 data: 0x0 - 0xe915800 AVI file format detected. [aviheader] Video stream found, -vid 0 [aviheader] Audio stream found, -aid 1 VIDEO: [XVID] 640x464 24bpp 23.976 fps 946.3 kbps (115.5 kbyte/s) [V] filefmt:3 fourcc:0x44495658 size:640x464 fps:23.98 ftime:=0.0417 ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== File not found: '/home/lhoest/video/ipod//Vidéos/ipod/Sex And The City S4E01 - The Agony And The 'ex'tasy [RavyDavy]_ipod.mp4' Failed to open /home/lhoest/video/ipod//Vidéos/ipod/Sex And The City S4E01 - The Agony And The 'ex'tasy [RavyDavy]_ipod.mp4. Cannot open output file '/home/lhoest/video/ipod//Vidéos/ipod/Sex And The City S4E01 - The Agony And The 'ex'tasy [RavyDavy]_ipod.mp4'. Exiting...
Salut,
Mets-toi directement dans le répertoire contenant ta vidéo :
Mets-toi directement dans le répertoire contenant ta vidéo :
cd /home/lhoest/video/ipod/et lances ta commande...