Re: Konvertera flera .avi .mkv till Ipod/.m4v script
Postat: 23 feb 2010, 20:56
Det verkade fungera
men varför funkar det inte med en loop då? Eller gör jag fel?xbmc@htpc:~$ HandBrakeCLI -i /media/video/film.avi -o film.mp4 preset=iPod Legacy
[19:42:17] hb_init: checking cpu count
[19:42:17] hb_init: starting libhb thread
HandBrake 0.9.4 (2009112300) - Linux x86_64 - http://handbrake.fr
2 CPUs detected
Opening /media/video/film.avi...
[19:42:17] hb_scan: path=/media/video/film.avi, title_index=1
[19:42:17] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:42:17] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from '/media/video/film.avi':
Duration: 00:21:40.48, start: 0.000000, bitrate: 1128 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
[19:42:17] scan: decoding previews for title 1
Scanning title 1...
[19:42:17] scan: 10 previews, 624x352, 23.976 fps, autocrop = 0/0/0/0, aspect 1.77:1, PAR 1:1
[19:42:17] scan: title (0) job->width:624, job->height:352
[19:42:17] libhb: scan thread found 1 valid title(s)
+ title 1:
+ vts 0, ttn 0, cells 0->0 (0 blocks)
+ angle(s) 0
+ duration: 00:21:40
+ size: 624x352, pixel aspect: 1/1, display aspect: 1.77, 23.976 fps
+ autocrop: 0/0/0/0
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:21:40
+ audio tracks:
+ 1, Unknown (MP3) (iso639-2: und)
+ subtitle tracks:
[19:42:18] 1 job(s) to process
[19:42:18] starting job
[19:42:18] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[19:42:18] job configuration:
[19:42:18] * source
[19:42:18] + /media/video/film.avi
[19:42:18] + title 1, chapter(s) 1 to 1
[19:42:18] + container: avi
[19:42:18] + data rate: 1128 kbps
[19:42:18] * destination
[19:42:18] + film.mp4
[19:42:18] + container: MPEG-4 (.mp4 and .m4v)
[19:42:18] * video track
[19:42:18] + decoder: mpeg4
[19:42:18] + frame rate: same as source (around 23.976 fps)
[19:42:18] + dimensions: 624 * 352 -> 624 * 352, crop 0/0/0/0
[19:42:18] + encoder: FFmpeg
[19:42:18] + bitrate: 1000 kbps, pass: 0
[19:42:18] * audio track 0
[19:42:18] + decoder: Unknown (MP3) (track 1, id 1)
[19:42:18] + mixdown: Stereo
[19:42:18] + encoder: faac
[19:42:18] + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:42:18] dvd: not a dvd - trying as a stream/file instead
[19:42:18] reader: first SCR 0 id 0 DTS 0
[19:42:18] sync: expecting 31204 video frames
Encoding: task 1 of 1, 98.88 % (189.94 fps, avg 195.01 fps, ETA 00h00m02s)[19:44:56] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.75 % (210.27 fps, avg 195.27 fps, ETA 00h00m00s)[19:44:57] sync: got 31179 frames, 31204 expected
[19:44:57] work: average encoding speed for job is 195.272430 fps
Muxing: this may take awhile...[19:45:02] mux: track 0, 31179 frames, 162687850 bytes, 1000.77 kbps, fifo 32
[19:45:02] mux: track 1, 60961 frames, 26006440 bytes, 159.98 kbps, fifo 1024
[19:45:02] mpeg4-decoder done: 31180 frames, 0 decoder errors, 0 drops
[19:45:02] render: lost time: 0 (0 frames)
[19:45:02] render: gained time: 0 (0 frames) (0 not accounted for)
[19:45:02] mp3-decoder done: 0 frames, 0 decoder errors, 0 drops
[19:45:02] libhb: work result = 0
Rip done!
HandBrake has exited.
Kod: Markera allt
for filnamn in `ls /media/video/*.avi`; do HandBrakeCLI -i $filnamn -o $filnamn.mp4 --preset=iPod Legacy;done