ffmpeg video conversion to uncompressed dv video
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 602 from 2004/11/27
    Hi all,

    In order to transfer video data I need to convert source videos to uncompressed dv video and generate an avi file. I had a try with ffmpeg which does the conversion but I get a corrupted video file at the end :-(

    Has anyone some experience with that and could help me please?

    I attached a shell log file where you can see what ffmpeg does.

    Regards

    Christoph
  • »30.08.07 - 18:44
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    try this: ffmpeg -i sourcevideo -f dv drainvideo
    or: ffmpeg -i sourcevideo drainvideo.dv
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »30.08.07 - 19:11
    Profile
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 602 from 2004/11/27
    @ pegasos-sigi2

    I tried your suggestion but this gives an error back :-(


    Ram Disk:> System:MPlayer/ffmpeg/ffmpeg -i P3-AV:1/123.avi "Ram Disk:456.dv"
    ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
    built on Mar 5 2006 22:17:57, gcc: 2.95.4 20040701 (experimental/emm-zapek-cisc-morgoth)
    Input #0, avi, from 'P3-AV:1/123.avi':
    Duration: 00:00:05.8, bitrate: 95605 kb/s
    Stream #0.0: Video: msmpeg4v2, 720x576, 25.00 fps
    Output #0, dv, to 'Ram Disk:456.dv':
    Stream #0.0: Video: dvvideo, 720x576, 25.00 fps, q=2-31, 200 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    [dv @ 0x22842340]Can't initialize DV format!
    Make sure that you supply exactly two streams:
    video: 25fps or 29.97fps, audio: 2ch/48Khz/PCM
    Could not write header for output file #0 (incorrect codec paramters ?)
  • »31.08.07 - 06:06
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    It's easy: DV-Video have only two formats: 25 fps (PAL)
    or 29,97 fps (NTSC)
    The DV-Audiostream must have the codec PCM with the
    parameters 48 Khz Samplingfrequence and two channels.

    ffmpeg coudn't save the wrong parameters in the fileheader.
    ffmpeg needs two streams (video AND audio), but no only
    msmpeg4v2-stream. You must exactly reed the verbose-window.
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »31.08.07 - 11:08
    Profile