* Re: [Comm] VLC @ 2012-05-18 12:57 ` Dmitry Derjavin 2012-05-18 13:12 ` Michael A. Kangin 2012-05-19 17:49 ` Alisher 0 siblings, 2 replies; 8+ messages in thread From: Dmitry Derjavin @ 2012-05-18 12:57 UTC (permalink / raw) To: community On Fri, May 18 2012 at 10:31, Alisher Faizov wrote: > Пытаюсь перекодировать поток с веб камеры: [...] > '#transcode{vcodec=x264,vb=256,fps=10,acodec=mp3,ab=16}:std{access=file,mux=ts,dst=cam1.ts}' Скажите, действительно есть необходимость сохранять ts в файл? Понятно, что вопрос не совсем по делу, но просто очень интересно, для чего это может понадобиться. "mux=mp4" в такой ситуации точно работает. "mux=ts" — насколько я помню, скорее, нет. Вообще, vlc позволяет задавать в командной строке довольно экзотические комбинации кодеков и контейнеров. Но далеко не все из них, по моему опыту, дают предсказуемый результат. > Лог во вложении. Лог почему-то посмотреть не удалось. -- ~dd ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] VLC 2012-05-18 12:57 ` [Comm] VLC Dmitry Derjavin @ 2012-05-18 13:12 ` Michael A. Kangin 2012-05-23 13:14 ` Dmitry Derjavin 2012-05-19 17:49 ` Alisher 1 sibling, 1 reply; 8+ messages in thread From: Michael A. Kangin @ 2012-05-18 13:12 UTC (permalink / raw) To: ALT Linux Community general discussions On 18.05.2012 16:57, Dmitry Derjavin wrote: >> '#transcode{vcodec=x264,vb=256,fps=10,acodec=mp3,ab=16}:std{access=file,mux=ts,dst=cam1.ts}' > > Скажите, действительно есть необходимость сохранять ts в файл? Понятно, > что вопрос не совсем по делу, но просто очень интересно, для чего это > может понадобиться. После сигфолта, или например kill -9 файл .mp4 с некорректно прописанными заголовками скорее всего будет нечитаем. Кроме того, .ts позволяют забавные вещи вроде cat file1.ts file2.ts >total_file.ts > "mux=mp4" в такой ситуации точно работает. "mux=ts" — насколько я помню, > скорее, нет. Ну почему ж, MPEG4, в частности, layer10, вполне себе в .ts поддерживается. > Вообще, vlc позволяет задавать в командной строке довольно экзотические > комбинации кодеков и контейнеров. Но далеко не все из них, по моему опыту, > дают предсказуемый результат. http://www.videolan.org/streaming-features.html -- Michael A. Kangin ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] VLC 2012-05-18 13:12 ` Michael A. Kangin @ 2012-05-23 13:14 ` Dmitry Derjavin 0 siblings, 0 replies; 8+ messages in thread From: Dmitry Derjavin @ 2012-05-23 13:14 UTC (permalink / raw) To: community On Fri, May 18 2012 at 17:12, Michael A. Kangin wrote: > On 18.05.2012 16:57, Dmitry Derjavin wrote: > >>> '#transcode{vcodec=x264,vb=256,fps=10,acodec=mp3,ab=16}:std{access=file,mux=ts,dst=cam1.ts}' vcodec=h264 конечно же! >> Скажите, действительно есть необходимость сохранять ts в файл? Понятно, >> что вопрос не совсем по делу, но просто очень интересно, для чего это >> может понадобиться. > > После сигфолта, или например kill -9 файл .mp4 с некорректно > прописанными заголовками скорее всего будет нечитаем. > Кроме того, .ts позволяют забавные вещи вроде cat file1.ts file2.ts > >total_file.ts Не так всё гладко на практике: после некорректного выхода при записи ts в файл при воспроизведении этого места могут возникать ошибки. Наверное, могут и не возникать. Но, по крайней мере, момент некорректного выхода при просмотре виден. Проверял запись при помощи vlc. Выход по Ctrl-C до окончания перекодирования. >> "mux=mp4" в такой ситуации точно работает. "mux=ts" — насколько я помню, >> скорее, нет. > > Ну почему ж, MPEG4, в частности, layer10, вполне себе в .ts поддерживается. Да, конечно. Но на практике не все поддерживаемые комбинации дают в VLC предсказуемый результат. Сходу пример у себя в истории команд не нашёл. Когда найду, обязательно расскажу. > http://www.videolan.org/streaming-features.html «Спасибо, кэп»! ;) -- ~dd ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] VLC 2012-05-18 12:57 ` [Comm] VLC Dmitry Derjavin 2012-05-18 13:12 ` Michael A. Kangin @ 2012-05-19 17:49 ` Alisher 2012-05-23 12:51 ` Dmitry Derjavin 1 sibling, 2 replies; 8+ messages in thread From: Alisher @ 2012-05-19 17:49 UTC (permalink / raw) To: ALT Linux Community general discussions 18.05.2012 18:57, Dmitry Derjavin пишет: > On Fri, May 18 2012 at 10:31, Alisher Faizov wrote: > >> Пытаюсь перекодировать поток с веб камеры: > [...] > >> '#transcode{vcodec=x264,vb=256,fps=10,acodec=mp3,ab=16}:std{access=file,mux=ts,dst=cam1.ts}' > Скажите, действительно есть необходимость сохранять ts в файл? Понятно, > что вопрос не совсем по делу, но просто очень интересно, для чего это > может понадобиться. > Как я понял если нужно сделать вещание по rtp, то только ts. Мне как раз и надо будет вещание, а в файл я пока лишь тестирую. Но ts поддерживате x264. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <201205210936.44810.glebus@asd.iao.ru>]
* Re: [Comm] VLC @ 2012-05-21 9:21 ` Michael Shigorin 2012-05-21 18:35 ` Alisher 1 sibling, 0 replies; 8+ messages in thread From: Michael Shigorin @ 2012-05-21 9:21 UTC (permalink / raw) To: ALT Linux Community general discussions On Mon, May 21, 2012 at 09:36:44AM +0700, Gleb Kulikov wrote: > > Как я понял если нужно сделать вещание по rtp, то только ts. > > Мне как раз и надо будет вещание, а в файл я пока лишь > > тестирую. Но ts поддерживате x264. > Как раз недавно делал вещание, в конце концов, наиболее > безболезненно, задача решилась при помощи avserver. > NB! В Сизифе и p6, avserver нерабочий. Повесишь? -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] VLC 2012-05-21 9:21 ` Michael Shigorin @ 2012-05-21 18:35 ` Alisher 1 sibling, 0 replies; 8+ messages in thread From: Alisher @ 2012-05-21 18:35 UTC (permalink / raw) To: ALT Linux Community general discussions 21.05.2012 08:36, Gleb Kulikov пишет: > > В сообщении от [20 мая 2012 Alisher] написал: > > > > Как я понял если нужно сделать вещание по rtp, то только ts. Мне как раз > > > и надо будет вещание, а в файл я пока лишь тестирую. Но ts поддерживате > > > x264. > > > Как раз недавно делал вещание, в конце концов, наиболее безболезненно, > задача решилась при помощи avserver. > > > гугление вывело только на http://www.active-video.net/av/ Это оно? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] VLC 2012-05-19 17:49 ` Alisher @ 2012-05-23 12:51 ` Dmitry Derjavin 2012-05-24 17:33 ` Alisher 1 sibling, 1 reply; 8+ messages in thread From: Dmitry Derjavin @ 2012-05-23 12:51 UTC (permalink / raw) To: community On Sat, May 19 2012 at 21:49, Alisher wrote: >>> '#transcode{vcodec=x264,vb=256,fps=10,acodec=mp3,ab=16}:std{access=file,mux=ts,dst=cam1.ts}' >> Скажите, действительно есть необходимость сохранять ts в файл? >> Понятно, что вопрос не совсем по делу, но просто очень интересно, для >> чего это может понадобиться. >> > Как я понял если нужно сделать вещание по rtp, то только ts. Мне как > раз и надо будет вещание, а в файл я пока лишь тестирую. Так, по-моему, имело смысл и тестировать тогда в эфир, а не в файл. Расскажите, получилось в итоге задуманное с VLC или нет? > Но ts поддерживате x264. Да, конечно. -- ~dd ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] VLC 2012-05-23 12:51 ` Dmitry Derjavin @ 2012-05-24 17:33 ` Alisher 0 siblings, 0 replies; 8+ messages in thread From: Alisher @ 2012-05-24 17:33 UTC (permalink / raw) To: ALT Linux Community general discussions > Так, по-моему, имело смысл и тестировать тогда в эфир, а не в файл. > Расскажите, получилось в итоге задуманное с VLC или нет? > Запустил в тестовый прогон. Правда не на альте, к сожалению... И не те кодеки, зато опенсорсные) Идет дублировани в файл, для архива. Поток транслируется еще и через jplayer. ps aux |grep vlc gbcadmin 1596 28.9 0.9 687320 19044 ? Ssl 23:26 0:38 vlc -vv v4l2:///dev/video0 :input-slave=alsa://hw:1,0 :v4l2-width=800 :v4l2-heght=600 --daemon --sout #transcode{venc=theora,vcodec=theora,vb=512,fps=20,width=800,height=600,acodec=vorbis,ab=16,samplerate=11250,threads=1}:duplicate{dst=standard{access=file,mux=ogg,dst=/home/cameras/cam1/2012-05-24_23:26.ogv},dst=standard{access=http,mux=ogg,dst=192.168.15.12:8081/cam1.ogv}} --ttl 1 gbcadmin 1610 28.3 0.9 687320 18800 ? Ssl 23:26 0:36 vlc -vv v4l2:///dev/video1 :input-slave=alsa://hw:2,0 :v4l2-width=800 :v4l2-heght=600 --daemon --sout #transcode{venc=theora,vcodec=theora,vb=512,fps=20,width=800,height=600,acodec=vorbis,ab=16,samplerate=11250,threads=1}:duplicate{dst=standard{access=file,mux=ogg,dst=/home/cameras/cam2/2012-05-24_23:26.ogv},dst=standard{access=http,mux=ogg,dst=192.168.15.12:8082/cam2.ogv}} --ttl 1 gbcadmin 1631 0.0 0.0 10620 928 pts/0 D+ 23:28 0:00 grep --color=auto vlc В пиках нагрузка на каждое ядро 60%. За 1.5 часа съедает 1.5ГБ ОЗУ. Приходится рестартить каждый час. П.С. avserver нашел, но конфиг больно на ffserver похож. Это случаем не одно и то же? ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-05-24 17:33 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-05-18 12:57 ` [Comm] VLC Dmitry Derjavin 2012-05-18 13:12 ` Michael A. Kangin 2012-05-23 13:14 ` Dmitry Derjavin 2012-05-19 17:49 ` Alisher 2012-05-21 9:21 ` Michael Shigorin 2012-05-21 18:35 ` Alisher 2012-05-23 12:51 ` Dmitry Derjavin 2012-05-24 17:33 ` Alisher
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