Tomi Ollila <[EMAIL PROTECTED]> writes:

>>
>> In the case of dv->dvd: smilutils | mjpeg-tools is AFAIK a good
>> choice.
>
> Hmm, I'll have to look smilutils (specially smil2raw) as currently
> -x ffbin can read only one .avi and -x ffmpeg exits for some frame
> decoding problem.
>

As mentioned above, using -x ffbin -i /some/directory doesn't work
(transcode blocks as running ffmpeg -i /some/directory ... will error
(don't remember just now what, but errors anyway ;/))

After some hacking I got the 0ld trick work:

$ cat > ffmpeg << EOF
#!/bin/sh
idir=$2 ofifo=$6
#exec /usr/bin/ffmpeg "$@"
[ x"$1" = x-y ] && exec /usr/bin/ffmpeg "$@"
e2 () { echo "$@" >&2; }
exec 2> ffmpeg-wrapper-stderr
e2 --- "$@"
erun () { e2; e2 + "$@"; "$@"; }
exec 1> $ofifo
for f in $idir/*
do
        erun /usr/bin/ffmpeg -i "$f" -f yuv4mpegpipe -
done
EOF

$ chmod 755 ffmpeg

$ PATH=.:$PATH transcode ... -x ffbin -i /some/directory ...


Now my recording that was split in 6 parts by dvgrab was fully
encoded into one continuous output file. Anyone interested
the scripts used can go to http://www.iki.fi/too/t/ and
check ffmpeg-import-wrapper.sh and tcode2paldvd.sh

In the near (read far) future I'll check if that is easily
fixable in ffbin import module...


>> bye maik
>
> Tomi

Tomi

Reply via email to