ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Motsyo Gennadi aka Drool <motsyo@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Вопрос по avidemux
Date: Thu, 09 Aug 2012 18:36:55 +0300
Message-ID: <5023D917.4030507@gmail.com> (raw)
In-Reply-To: <CAEFkYhgUrVyCm9oZ+gEmtMO9unCeY0gkKyDv4LqKyJqDvV-4ew@mail.gmail.com>

09.08.2012 14:46, Teimuraz Abashidze пишет:
> Можно в виде примера? Есть файл 111.avi, внутри H264. Нужно отрезать X
> секунд от начала и Y секунд от конца, без перекодировки. Как это
> сделать? Можете подсказать?

	Если задача именно поставлена так - придется в 2 этапа:
avconv -i input.avi -vcodec copy -acodec copy -t hh:mm:ss file2.mkv
Где "-t" - длительность с самого начала минус нужное время от конца. Потом:
avconv -i file2.mkv -vcodec copy -acodec copy -ss hh:mm:ss file3.mkv
Где "-ss" в данном случае - отступ времени от начала.
А вот если нужно просто вырезать некий отрезок с заданным отступом по 
времени от начала и известной длительности - еще проще:
avconv -i input.avi -vcodec copy -acodec copy -ss hh:mm:ss -t hh:mm:ss 
file2.mkv
Если в этих параметрах указать не в формате чч:мм:сс, а просто цифру - 
она воспринимается как секунды.

P.S. Синтаксис идентичен и для ffmpeg, тем более, что avconv такие вещи 
делает намного кривее, я с этим сталкиваюсь часто, т.к. занимаюсь 
кодированием видео и созданием релизов на трекерах, где необходимо 
приложить образец. Предпочитаю вырезать ffmpeg-ом.
P.P.S. Кстати, что avconv, что ffmpeg очень медленно делают -ss, намного 
быстрее вырезает mencoder. Но у него свои тараканы.


  reply	other threads:[~2012-08-09 15:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-03 13:25 Teimuraz Abashidze
2012-08-03 18:06 ` Olexander Chernetskyy
2012-08-09 11:46   ` Teimuraz Abashidze
2012-08-09 15:36     ` Motsyo Gennadi aka Drool [this message]
2012-08-10 14:32       ` Teimuraz Abashidze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5023D917.4030507@gmail.com \
    --to=motsyo@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git