Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques FFmpeg avi duration error…-ss -t

  • FFmpeg avi duration error…-ss -t

    Posted by Oh Jinseok on June 24, 2011 at 1:57 am

    I’m not well English ;; sorry

    Testing Windows,

    FFmpeg version https://ffmpeg.zeranoe.com/builds/ download

    E:\ffmpeg\bin>ffmpeg -i xxx.avi -vcodec copy -acodec copy -y -ss 30.0 -t 5.0 xxx_output.avi

    ffmpeg version git-N-30344-g5501afa, Copyright (c) 2000-2011 the FFmpeg developers
    built on May 27 2011 22:41:22 with gcc 4.5.3
    configuration: –enable-gpl –enable-version3 –enable-memalign-hack –enable-runtime-cpudetect –enable-avisynth –enable-bzlib –enable-frei0r –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libfreetype –enable-libgsm –enable-libmp3lame –enable-libopenjpeg –enable-librtmp –enable-libschroedinger –enable-libspeex –enable-libtheora –enable-libvorbis –enable-libvpx –enable-libx264 –enable-libxavs –enable-libxvid –enable-zlib –pkg-config=pkg-config

    libavutil 51. 2. 2 / 51. 2. 2
    libavcodec 53. 6. 0 / 53. 6. 0
    libavformat 53. 2. 0 / 53. 2. 0
    libavdevice 53. 0. 0 / 53. 0. 0
    libavfilter 2. 11. 0 / 2. 11. 0
    libswscale 0. 14. 0 / 0. 14. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    [avi @ 0000000001C4A380] max_analyze_duration 5000000 reached at 5002908

    Seems stream 0 codec frame rate differs from container frame rate: 47.97 (32669/681) -> 23.98 (24000/1001)
    Input #0, avi, from ‘C:\Users\ojs88\parkgoal.avi’:
    Metadata:
    encoder : PotEncoder
    Duration: 00:01:12.20, start: 0.000000, bitrate: 3136 kb/s
    Stream #0.0: Video: h264 (Main), yuv420p, 640×360 [PAR 1:1 DAR 16:9], 23.99 fps, 23.98 tbr, 23.99 tbn, 47.97 tbc
    Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 96 kb/s
    Output #0, avi, to ‘C:\Users\ojs88\parkgoal2.avi’:
    Metadata:
    ISFT : Lavf53.2.0
    Stream #0.0: Video: libx264, yuv420p, 640×360 [PAR 1:1 DAR 16:9], q=2-31, 23.99 tbn, 23.99 tbc
    Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, 96 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press [q] to stop, [?] for help
    frame= 1012 fps= 0 q=-1.0 Lsize= 14860kB time=5.02 bitrate=24271.1kbits/s

    Movie duration 72 sec.

    Option -ss 30.0 , -t 5.0

    result -> Movie duration 42 sec ( maybe 72sec – 30 sec )

    and play movie , auido sound only 5 sec , but video 42 sec…

    i think problem is codec

    this movie codec

    Stream #0.0: Video: h264 (Main), yuv420p, 640×360 [PAR 1:1 DAR 16:9], 23.99 fps, 23.98 tbr, 23.99 tbn, 47.97 tbc
    Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 96 kb/s

    and i’m another movie test is no error ( avi , mpeg-4 )

    Stream #0.0: Video: mpeg4, yuv420p, 720×480 [PAR 32:27 DAR 16:9], 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s

    but i don’t know exactly solution…. pleae help me

    Oh Jinseok replied 15 years, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy