Can ffmpeg extract clips from ogg video files?
I am trying to extract clips from an ogg video generated from vlc 1.0 and ffmpeg always crashes when trying to do so. Is ffmpeg capable of doing that? -- Frank Church ======================= <a href="http://devblog.brahmancreations.com">devblog.brahmancreations.com</a>
On 10/5/09 2:56 AM, Frank Church wrote:
I am trying to extract clips from an ogg video generated from vlc 1.0 and ffmpeg always crashes when trying to do so.
Is ffmpeg capable of doing that?
Yes it is, if it crashes, that's a bug and it must be fixed. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
yes I do that all the time like this ffmpeg -sameq -ss [start_seconds] -t [duration_seconds] -i [input_file] [outputfile] ffmpeg -sameq -ss 00:05:17 -t 00:00:55 -i sleep-b.avi msolo.avi sometimes it is not all precise then I do it in two processes. First i take out a larger (unprecise) peace and then after that cutting more of that peace or I separate the -ss process and the -t process so that first I do only the -ss and second only the -t so in the end I can cut with in a seconds precision. Mikkel
2009/10/6 mikkel meinike <mimeini at gmail.com>:
yes I do that all the time like this
ffmpeg -sameq -ss [start_seconds] -t [duration_seconds] -i [input_file] [outputfile]
ffmpeg -sameq -ss 00:05:17 -t 00:00:55 -i sleep-b.avi msolo.avi
sometimes it is not all precise then I do it in two processes. First i take out a larger (unprecise) peace and then after that cutting more of that peace or I separate the -ss process and the -t process so that first I do only the -ss and second only the -t so in the end I can cut with in a seconds precision.
Mikkel _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
The problem I have is with .ogg files generated by VLC, anyway I succeeded using mencoder. I tried with a recent version of ffmpeg and still had the problem. I am using Windows XP if that is an issue, though I don't think that is the issue. -- Frank Church ======================= http://devblog.brahmancreations.com
yes I do that all the time like this
ffmpeg -sameq -ss [start_seconds] -t [duration_seconds] -i [input_file] [outputfile]
ffmpeg -sameq -ss 00:05:17 -t 00:00:55 -i sleep-b.avi msolo.avi
Why don't you just copy the streams instead of re-encoding? ffmpeg -ss foo -t foo -i input -acodec copy -vcodec copy output
Probably because I don't know what I am doing and when something I found I google or something worked i just use that.. so copying is better?.. faster?.. And Frank Working with sound files (ogg). Wouldn't it be better to work with sound tools sox? audacity? they are made specific for that purpose.
Date: Wed, 7 Oct 2009 05:41:57 +0800 From: mikkel meinike <mimeini at gmail.com> Sender: ffmpeg-user-bounces at mplayerhq.hu
Probably because I don't know what I am doing and when something I found I google or something worked i just use that.. so copying is better?.. faster?..
ffmpeg documentation is almost always very vague on what defaults are, but I'm pretty sure that, unless told otherwise, it will always re-encode the streams. Copy is both better and faster. The command you were using was decoding the streams (both audio and video) and re-encoding them. This is much slower and will always degrade the quality unless a lossless codec is involved. Copy will just demux the specified stream (A and/or V) and re-mux them without any encoding. This is much faster and, since no codec is involved, it should result in no degradation of the data. When working with codecs (or, at least lossy ones) you always want to re-encode as little as possible and, at best, there will be slight deterioration and in most cases it is not "slight". I probably specify "copy" as the codec more often than any other since I am often just changing the container format or syncing audio with the video. Neither of these operations require re-encoding either stream. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman at es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751
Thank your very much Kevin this is very useful knowledge to me. mikkel
ffmpeg -ss foo -t foo -i input -acodec copy -vcodec copy output doesn't extract clip properly for mpg files. please help me to solve this problem? Thanks, Vishal Parekh -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Can-ffmpeg-extract-clips-from-ogg-v... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (6)
-
baptiste.coudurier@gmail.com -
lou@fakeoutdoorsman.com -
mimeini@gmail.com -
oberman@es.net -
vfclists@googlemail.com -
vrparekh@gmail.com