Bhikkhu Mettavihari | 5 Mar 2008 03:57
Picon

Re: Kino to compress files

Hi Dan,

Thank you for your efforts.

>  Normally these export scripts are used from within Kino, and Kino
>  checks that you have dependencies in place and hides the ones that
>  will not work on your system.

>  The dvd output requires mplex from mjpegtools. Do you have that?

root <at> tlc-2:~/Desktop/test# which mplex
/usr/bin/mplex
root <at> tlc-2:~/Desktop/test# ls /usr/bin/mplex -al
-rwxr-xr-x 1 root root 22776 2005-09-24 08:49 /usr/bin/mplex*

> Also, the audio for DVD requires AC-3 encoding. I see your version of ffmpeg
>  is old (2.5 years), and I don't know exactly when they added AC-3
>  encoding. Run 'ffmpeg -formats' to see if it should work.

Please see below.

>  The MP4 output requires AAC encoding support in ffmpeg, for which it
>  depends on libfaac. Again, run ffmpeg -formats to see if you have AAC
>  encoding.

That seems to be OK
output of locate libfaac
/usr/lib/libfaac.so.0.0.0
/usr/lib/libfaac.so.0
/usr/lib/libfaac.la
/usr/lib/libfaac.so
/usr/lib/libfaac.a

>  Surprising is that VCD output has no audio because that is just mp2,
>  which has been in ffmpeg for a long time. Did ffmpeg complain about
>  reading audio from the .mov? Maybe there is a compatibility issue with
>  your old version of ffmpeg, but the VCD script is simple and should
>  have worked. Do you not see any interesting messages during the
>  conversion?

I notice Kino saying [locking audio 00 %] before starting.
There is no special output on ps ax when that happens,
so I presume kino is looking after the audio
and the script does not handle that part.

root <at> tlc-2:~/Desktop/test# ./encode-2.sh
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-libogg --enable-vorbis
--enable-theora --enable-faad --enable-faac --enable-a52 --enable-pp
--enable-shared-pp --enable-shared --enable-gpl --prefix=/usr
  built on Sep 24 2005 00:47:27, gcc: 3.3.6
Input #0, mov,mp4,m4a,3gp,3g2, from 'your.mov':
  Duration: 00:00:29.6, start: 0.000000, bitrate: 30340 kb/s
  Stream #0.0, 600.00 fps: Video: dvvideo, yuv420p, 720x576
  Stream #0.1: Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
Output #0, dv, to 'pipe:':
  Stream #0.0,   nan fps: Video: dvvideo, 720x576, q=2-31
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-libogg --enable-vorbis
--enable-theora --enable-faad --enable-faac --enable-a52 --enable-pp
--enable-shared-pp --enable-shared --enable-gpl --prefix=/usr
  built on Sep 24 2005 00:47:27, gcc: 3.3.6
Warning: not compiled with thread support, using thread emulation
Input #0, dv, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: 28800 kb/s
  Stream #0.0, 25.00 fps: Video: dvvideo, yuv420p, 720x576, 25000 kb/s
Output #0, vcd, to 'output-vcd.mpeg':
  Stream #0.0,   nan fps: Video: mpeg1video, yuv420p, 352x288, q=2-31, 1152 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
frame=  740 q=-9099550.4 Lsize=  104062kB time=29.6 bitrate=28837.3kbits/s
video:104062kB audio:0kB global headers:0kB muxing overhead 0.000000%
frame=  740 q=0.0 Lsize=    4260kB time=29.6 bitrate=1180.6kbits/s
video:4212kB audio:0kB global headers:0kB muxing overhead 1.145393%
root <at> tlc-2:~/Desktop/test#

Output of ffmpeg -formats

File formats:
  E 3g2             3gp2 format
  E 3gp             3gp format
 D  4xm             4X Technologies format
 D  RoQ             Id RoQ format
 DE ac3             raw ac3
 DE alaw            pcm A law format
 DE asf             asf format
  E asf_stream      asf format
 DE au              SUN AU Format
 DE audio_device    audio grab and output
 DE avi             avi format
  E crc             crc testing format
 D  daud            D-Cinema audio format
 D  dts             raw dts
 DE dv              DV video format
 D  dv1394          dv1394 A/V grab
  E dvd             MPEG2 PS format (DVD VOB)
 D  ea              Electronic Arts Multimedia Format
 DE ffm             ffm format
 D  film_cpk        Sega FILM/CPK format
 D  flic            FLI/FLC animation format
 DE flv             flv format
 DE gif             GIF Animation
 DE h261            raw h261
 DE h263            raw h263
 DE h264            raw H264 video format
 D  idcin           Id CIN format
 DE image           image sequence
 DE image2          image2 sequence
 DE image2pipe      piped image2 sequence
 DE imagepipe       piped image sequence
 D  ipmovie         Interplay MVE format
 DE m4v             raw MPEG4 video format
 D  matroska        Matroska file format
 DE mjpeg           MJPEG video
 DE mmf             mmf format
  E mov             mov format
 D  mov,mp4,m4a,3gp,3g2 QuickTime/MPEG4 format
  E mp2             MPEG audio layer 2
 DE mp3             MPEG audio layer 3
  E mp4             mp4 format
 DE mpeg            MPEG1 System format
  E mpeg1video      MPEG video
  E mpeg2video      MPEG2 video
 DE mpegts          MPEG2 transport stream format
 D  mpegvideo       MPEG video
  E mpjpeg          Mime multipart JPEG format
 DE mulaw           pcm mu law format
 D  nsv             NullSoft Video format
  E null            null video format
 DE nut             nut format
 DE ogg             Ogg Vorbis
  E psp             psp mp4 format
 D  psxstr          Sony Playstation STR format
 DE rawvideo        raw video format
 D  redir           Redirector format
 DE rm              rm format
  E rtp             RTP output format
 D  rtsp            RTSP input format
 DE s16be           pcm signed 16 bit big endian format
 DE s16le           pcm signed 16 bit little endian format
 DE s8              pcm signed 8 bit format
 D  sdp             SDP
 D  shn             raw shn
 D  sol             Sierra SOL Format
  E svcd            MPEG2 PS format (VOB)
 DE swf             Flash format
 DE u16be           pcm unsigned 16 bit big endian format
 DE u16le           pcm unsigned 16 bit little endian format
 DE u8              pcm unsigned 8 bit format
  E vcd             MPEG1 System format (VCD)
 D  video4linux     video grab
 D  vmd             Sierra VMD format
  E vob             MPEG2 PS format (VOB)
 DE wav             wav format
 D  wc3movie        Wing Commander III movie format
 D  wsaud           Westwood Studios audio format
 D  wsvqa           Westwood Studios VQA format
 DE yuv4mpegpipe    YUV4MPEG pipe format

Image formats (filename extensions, if any, follow):
 DE gif    gif

Codecs:
 D V    4xm
 D V D  8bps
 DEA    aac
 D V D  aasc
 DEA    ac3
 DEA    adpcm_4xm
 DEA    adpcm_adx
 DEA    adpcm_ct
 DEA    adpcm_ea
 DEA    adpcm_ima_dk3
 DEA    adpcm_ima_dk4
 DEA    adpcm_ima_qt
 DEA    adpcm_ima_smjpeg
 DEA    adpcm_ima_wav
 DEA    adpcm_ima_ws
 DEA    adpcm_ms
 DEA    adpcm_swf
 DEA    adpcm_xa
 DEA    adpcm_yamaha
 D A    alac
 DEV D  asv1
 DEV D  asv2
 D V D  camtasia
 D V D  cinepak
 D V D  cljr
 D V D  cyuv
 DES    dvbsub
 D S    dvdsub
 DEV D  dvvideo
 DEV D  ffv1
 DEVSD  ffvhuff
 D A    flac
 D V D  flic
 DEVSD  flv
 D V D  fraps
 DEA    g726
 DEV D  h261
 DEVSDT h263
 D VSD  h263i
  EV    h263p
 D V DT h264
 DEVSD  huffyuv
 D V D  idcinvideo
 D V D  indeo2
 D V    indeo3
 D A    interplay_dpcm
 D V D  interplayvideo
  EV    ljpeg
 D V D  loco
 D A    mace3
 D A    mace6
 D V D  mdec
 DEV D  mjpeg
 D V D  mjpegb
 DEA    mp2
 DEA    mp3
 D A    mp3adu
 D A    mp3on4
 DEVSDT mpeg1video
 DEVSDT mpeg2video
 DEVSDT mpeg4
 D A    mpeg4aac
 D VSDT mpegvideo
 DEVSD  msmpeg4
 DEVSD  msmpeg4v1
 DEVSD  msmpeg4v2
 D V D  msrle
 D V D  msvideo1
 D V D  mszh
 DEV    pam
 DEV    pbm
 DEA    pcm_alaw
 DEA    pcm_mulaw
 DEA    pcm_s16be
 DEA    pcm_s16le
 DEA    pcm_s24be
 DEA    pcm_s24daud
 DEA    pcm_s24le
 DEA    pcm_s32be
 DEA    pcm_s32le
 DEA    pcm_s8
 DEA    pcm_u16be
 DEA    pcm_u16le
 DEA    pcm_u24be
 DEA    pcm_u24le
 DEA    pcm_u32be
 DEA    pcm_u32le
 DEA    pcm_u8
 DEV    pgm
 DEV    pgmyuv
 DEV    png
 DEV    ppm
 D V D  qdraw
 D V D  qpeg
 D V D  qtrle
 DEV    rawvideo
 D A    real_144
 D A    real_288
 D A    roq_dpcm
 D V D  roqvideo
 D V D  rpza
 DEV D  rv10
 DEV D  rv20
 D A    shorten
 D V D  smc
 DEV    snow
 D A    sol_dpcm
 DEA    sonic
  EA    sonicls
 D V D  sp5x
 DEV D  svq1
 D VSD  svq3
 D V    theora
 D V D  truemotion1
 D V D  ultimotion
 D V    vc9
 D V D  vcr1
 D A    vmdaudio
 D V D  vmdvideo
 DEA    vorbis
 D V    vp3
 D V D  vqavideo
 D A    wmav1
 D A    wmav2
 DEVSD  wmv1
 DEVSD  wmv2
 D V    wmv3
 D V D  wnv1
 D A    ws_snd1
 D A    xan_dpcm
 D V D  xan_wc3
 D V D  xl
 DEV D  zlib

Supported file protocols:
 file: pipe: udp: rtp: tcp: http:
Frame size, frame rate abbreviations:
 ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif
Motion estimation methods:
 zero(fastest) full(slowest) log phods epzs(default) x1

Note, the names of encoders and decoders dont always match, so there are
several cases where the above table shows encoder only or decoder only entries
even though both encoding and decoding are supported for example, the h263
decoder corresponds to the h263 and h263p encoders, for file formats its even
worse

#locate ffmmpeg
/opt/kde/lib/kde3/libk3bffmpegdecoder.la
/opt/kde/lib/kde3/libk3bffmpegdecoder.so
/opt/kde/share/apps/k3b/plugins/k3bffmpegdecoder.plugin
/var/log/packages/ffmpeg_acl-20050923-i386-1
/var/log/packages/ffmpeg-20050923-i386-1
/var/log/packages/ffmpeg2theora-0.15-i386-1
/var/log/scripts/ffmpeg_acl-20050923-i386-1
/var/log/scripts/ffmpeg-20050923-i386-1
/var/log/scripts/ffmpeg2theora-0.15-i386-1
/usr/bin/ffmpeg2theora
/usr/bin/ffmpeg
/usr/bin/ffmpeg_acl
/usr/doc/ffmpeg2theora-0.15
/usr/doc/ffmpeg2theora-0.15/NEWS
/usr/doc/ffmpeg2theora-0.15/TODO
/usr/doc/ffmpeg2theora-0.15/README
/usr/doc/ffmpeg2theora-0.15/AUTHORS
/usr/doc/ffmpeg2theora-0.15/INSTALL
/usr/doc/ffmpeg2theora-0.15/ChangeLog
/usr/doc/ffmpeg2theora-0.15/COPYING
/usr/doc/ffmpeg
/usr/doc/ffmpeg/README
/usr/doc/ffmpeg/INSTALL
/usr/doc/ffmpeg/Changelog
/usr/doc/ffmpeg/COPYING
/usr/doc/ffmpeg/CREDITS
/usr/doc/ffmpeg_acl
/usr/doc/ffmpeg_acl/NEWS
/usr/doc/ffmpeg_acl/README
/usr/doc/ffmpeg_acl/README.acl
/usr/doc/ffmpeg_acl/AUTHORS
/usr/doc/ffmpeg_acl/INSTALL
/usr/doc/ffmpeg_acl/Changelog
/usr/doc/ffmpeg_acl/COPYING
/usr/doc/ffmpeg_acl/CREDITS
/usr/lib/gpac/ffmpeg_in.so
/usr/lib/libquicktime/lqt_ffmpeg.la
/usr/lib/libquicktime/lqt_ffmpeg.so
/usr/lib/ffmpeg_acl
/usr/lib/ffmpeg_acl/watermark.a
/usr/lib/ffmpeg_acl/ppm.a
/usr/lib/ffmpeg_acl/imlib2.la
/usr/lib/ffmpeg_acl/imlib2.so
/usr/lib/ffmpeg_acl/drawtext.a
/usr/lib/ffmpeg_acl/fish.la
/usr/lib/ffmpeg_acl/fish.so
/usr/lib/ffmpeg_acl/fish.a
/usr/lib/ffmpeg_acl/null.a
/usr/lib/ffmpeg_acl/ppm.la
/usr/lib/ffmpeg_acl/ppm.so
/usr/lib/ffmpeg_acl/drawtext.la
/usr/lib/ffmpeg_acl/drawtext.so
/usr/lib/ffmpeg_acl/null.la
/usr/lib/ffmpeg_acl/null.so
/usr/lib/ffmpeg_acl/imlib2.a
/usr/lib/ffmpeg_acl/watermark.la
/usr/lib/ffmpeg_acl/watermark.so
/usr/man/man1/ffmpeg2theora.1.gz
/usr/man/man1/ffmpeg.1.gz
/usr/man/man1/ffmpeg.1acl.gz
/usr/local/bin/ffmpeg-kino
[...}
/usr/local/src/ffmpeg.doc
/usr/local/src/ffmpeg.txt
/usr/include/ffmpeg
/usr/include/ffmpeg/rtspcodes.h
/usr/include/ffmpeg/rtp.h
/usr/include/ffmpeg/intfloat_readwrite.h
/usr/include/ffmpeg/avutil.h
/usr/include/ffmpeg/avio.h
/usr/include/ffmpeg/common.h
/usr/include/ffmpeg/rational.h
/usr/include/ffmpeg/mathematics.h
/usr/include/ffmpeg/avformat.h
/usr/include/ffmpeg/rtsp.h
/usr/include/ffmpeg/avcodec.h
/usr/include/ffmpeg/integer.h
/usr/include/ffmpeg_acl
/usr/include/ffmpeg_acl/ffmpeg
/usr/include/ffmpeg_acl/ffmpeg/rtspcodes.h
/usr/include/ffmpeg_acl/ffmpeg/rtp.h
/usr/include/ffmpeg_acl/ffmpeg/avio.h
/usr/include/ffmpeg_acl/ffmpeg/common.h
/usr/include/ffmpeg_acl/ffmpeg/rational.h
/usr/include/ffmpeg_acl/ffmpeg/avformat.h
/usr/include/ffmpeg_acl/ffmpeg/rtsp.h
/usr/include/ffmpeg_acl/ffmpeg/avcodec.h
/home/Data3/cinelerra-feb-05/ffmpeg-20050923-i386-1.tgz
/root/cinelerra-feb-05/ffmpeg_acl-20050923-i386-1.tgz
/root/cinelerra-feb-05/kino-install/ffmpeg2theora-0.15-i386-1.tgz
[...}

best regards
Mettavihari

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane