ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Olexander Chernetskyy" <sp_archer@meta.ua>
To: "Community@lists.altlinux.org" <Community@lists.altlinux.org>
Subject: [Comm] Как с помощью sox создать файл тишины?
Date: Mon, 31 May 2010 23:32:15 +0300 (EEST)
Message-ID: <59082.195.230.140.18.1275337935.metamail@webmail.meta.ua> (raw)

Продолжение темы слайд-шоу

Попробовал для начала smile. Безуспешно.

Решил dvd-slideshow.

Для тестирования взял несколько картинок и попросил сделать шоу с
умолчательными настройками.
dir2slideshow -n t3 -p test
Он говорит:
[dir2slideshow] Done!
[dir2slideshow] Output file is ./t3.txt
Далее
dvd-slideshow -p t3.txt
И всё идет хорошо до звука
[dvd-slideshow] No audio files passed.  Using 0:0:40.000 silence.
[dvd-slideshow] Working on track 1 audio file 0
[dvd-slideshow] silence
[dvd-slideshow] Creating silence audio file for 0:0:40.000
sox: invalid option -- w
sox: SoX v14.3.0
sox FAIL sox: invalid option

Ему нужно создатиь 40 секунд тишины и на этом он обламывается.
Нашел я в скрипте эту строку:
sox -t raw -s -w -c 2 -r $audio_sample_rate /dev/zero -w -s -c 2 -r
$audio_sample_rate "$tmpdir"/audio1_$i_padded.raw trim "0" "$song_end_hms"

Если подставить значения переменных то приблизительно будет так:
sox -t raw -s -w -c 2 -r 48000 /dev/zero -w -s -c 2 -r 48000 out.raw trim
"0" "0:0:40.000"

Читал ман sox до половины двенадцатого.
Гуглил.

Но так и не понял что не так.

Подскажите, пожалуйста.
-- 
Best regards,
ArCher



             reply	other threads:[~2010-05-31 20:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 20:32 Olexander Chernetskyy [this message]
2010-06-01  6:26 ` Andrey Liakhovets
2010-06-01 17:48   ` [Comm] update kernel и звуковые драйверы Калинин Максим
2010-06-01 17:51     ` Andrey Rahmatullin
2010-06-01 18:11       ` Калинин Максим
2010-06-01 18:44         ` Motsyo Gennadi aka Drool
2010-06-01 18:52           ` Калинин Максим
2010-06-01 18:56             ` Motsyo Gennadi aka Drool
2010-06-01 20:16               ` Хихин Руслан
2010-06-01 20:24                 ` Motsyo Gennadi aka Drool
2010-06-02  6:39               ` Калинин Максим
2010-06-02 11:03                 ` Motsyo Gennadi aka Drool
2010-06-03 13:32                   ` Калинин Максим
2010-06-03 13:46                     ` Andrii Dobrovol`s`kii
2010-06-03 13:48                     ` Andrey Rahmatullin
2010-06-03 14:13                       ` Калинин Максим

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=59082.195.230.140.18.1275337935.metamail@webmail.meta.ua \
    --to=sp_archer@meta.ua \
    --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