Re: [FFmpeg-user] -ss seek problem

トップ ページ

このメッセージに返信
著者: Stefano Sabatini
日付:  
To: ffmpeg-user
題目: Re: [FFmpeg-user] -ss seek problem
On date Tuesday 2008-08-19 13:35:03 +0300, Александр К encoded:
> i am trying to transcode 3 minutes in the middle of video file from mpeg2 to
> mpeg4
>
> ffmpeg failed to do this, but when i set time offset lesser then 200 seconds
> it works fine
>
> interesting thing is that exactly same input file with the same ffmpeg
> options successfuly transcoded in working mp4
>
> command line:
> /usr/bin/ffmpeg -y -ss 800 -t 180 -i ../in_file -an -threads 4 -vcodec


this means transcode three minutes starting 800 seconds (more than 13
minutes) after the beginning of the input file.

> libx264 -b 896k -bf 3 -subq 6 -cmp 256 -refs 5 -qmin 10 -qmax 51 -qdiff 4
> -coder 1 -loop 1 -me hex -me_range 16 -trellis 1 -flags +mv4 -flags2
> +bpyramid+wpred+mixed_refs+brdo+8x8dct -partitions
> parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -g 250 -keyint_min 25
> -sc_threshold 40 -i_qfactor 0.71 -deinterlace -r 25 out_file.mp4


Please reduce the command line which fails to its simplest possible
form, also you're using a rather outdated version (from 2007).

> ffmpeg output:
> FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
> configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
> --mandir=/usr/share/man --enable-static --enable-shared
> --cc=i686-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-v4l
> --disable-v4l2 --disable-dv1394 --disable-network --disable-ffplay
> --disable-opts --enable-libmp3lame --enable-libvorbis --enable-libogg
> --enable-liba52 --enable-pthreads --enable-libxvid --enable-libogg
> --enable-libx264 --enable-libfaad --enable-libfaac --enable-libamr-nb
> --enable-libamr-wb --enable-gpl --enable-pp --disable-strip
> libavutil version: 49.4.0
> libavcodec version: 51.40.4
> libavformat version: 51.12.1
> built on Jul 15 2008 18:27:08, gcc: 4.1.1 (Gentoo 4.1.1-r3)
> Input #0, mpeg, from '../in_file':
> Duration: 00:03:57.0, start: 0.060000, bitrate: 55903 kb/s


The file lasts less than 4 minutes, so ffmpeg can't seek to the 13th
minute.

> Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 7000 kb/s, 29.97
> fps(r)
> Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
> Output #0, mp4, to 'out_file.mp4':
> Stream #0.0: Video: libx264, yuv420p, 720x480, q=10-51, 896 kb/s, 25.00
> fps(c)
> Stream mapping:
> Stream #0.0 -> #0.0
> [libx264 @ 0x4fb29328]using SAR=8/9
> [libx264 @ 0x4fb29328]using cpu capabilities: MMX MMXEXT SSE SSE2 SSSE3
> Press [q] to stop encoding
> frame= 0 fps= 0 q=-1.0 Lsize= 0kB time=10000000000.0 bitrate= 0.0kbits/s
> video:0kB audio:0kB global headers:1kB muxing overhead -72.835314%
> [libx264 @ 0x4fb29328]final ratefactor: 24.13


Regards.
-- 
ffmpeg-user random tip #23
FFmpeg FAQs (and answers):
http://ffmpeg.mplayerhq.hu/faq.html
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@???
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user