[FFmpeg-user] Another user with problems extracting a subsection of video

Deron deron at pagestream.org
Thu Jan 26 03:27:59 CET 2012


I have a video I wish to clip out using -ss and -t to set the start and 
length to be extracted. My problem is that the audio is terribly out of 
sync in the resulting file. Instead of using -vcodec copy -acodec copy, 
should I be (re)encoding it ?? Any other possible suggestions? I don't 
want to loose quality by reencoding if possible. Anyway, here is the 
command and output. Suggestions/work arounds most welcome. Thanks!

Deron

ffmpeg -i "original.wmv" -vcodec copy -acodec copy -ss 2572 -t 10 -y 
"clip.wmv"
ffmpeg version N-37154-g01e5e97 Copyright (c) 2000-2012 the FFmpeg 
developers
   built on Jan 25 2012 21:18:14 with gcc 4.5.2
   configuration: --enable-gpl --enable-nonfree --enable-libxvid 
--enable-libx264 --enable-libmp3lame --enable-libvorbis --enable-libfaac
   libavutil      51. 34.101 / 51. 34.101
   libavcodec     53. 60.100 / 53. 60.100
   libavformat    53. 30.100 / 53. 30.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 60.100 /  2. 60.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
Input #0, asf, from 'original.wmv':
   Duration: 00:47:33.12, start: 0.000000, bitrate: 28057 kb/s
     Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 
channels, s16, 384 kb/s
     Stream #0:1: Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 
1280x720 [SAR 1:1 DAR 16:9], 45000 kb/s, 62.50 fps, 59.94 tbr, 1k tbn, 
59.94 tbc
Output #0, asf, to 'clip.wmv':
   Metadata:
     WM/EncodingSettings: Lavf53.30.100
     Stream #0:0: Video: vc1 (WVC1 / 0x31435657), yuv420p, 1280x720 [SAR 
1:1 DAR 16:9], q=2-31, 45000 kb/s, 62.50 fps, 1k tbn, 59.94 tbc
     Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 
channels, 384 kb/s
Stream mapping:
   Stream #0:1 -> #0:0 (copy)
   Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  567 fps=135 q=-1.0 Lsize=   31998kB time=00:00:10.01 
bitrate=26181.1kbits/s
video:31191kB audio:480kB global headers:0kB muxing overhead 1.031722%

-- 
Happy Trails,
Deron Kazmaierderon at dogstarkennel.com
KD0AYO	Western South Dakota
Dog Star Kennelhttp://www.dogstarkennel.com
--- Racing AKC Sepp-Star Seppala Siberian Husky Sled Dogs



More information about the ffmpeg-user mailing list