LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2013, 08:04 PM   #16
salemboot
Member
 
Registered: Mar 2007
Location: America
Distribution: Linux
Posts: 159

Rep: Reputation: 36

Are you using a Hauppauge box?

I have to use VLC to encode my streams. No choice. I was using avidemux but it has major! audio sync issues.

About time you get the lightening in the bottle the cap slips off.
 
Old 02-13-2013, 08:56 PM   #17
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Quote:
AFAIR this is not right. I remember having used tzap exactly for this, recording. According to the following page it has a timeout option for this: http://www.linuxtv.org/wiki/index.php/Zap
I'll have a look. Is a build script available somewhere?

Quote:
Are you using a Hauppauge box?
Hauppauge HVR-1250 TV capture card
Hauppauge HVR-1600 MCE-Kit TV capture card
 
Old 02-14-2013, 11:10 AM   #18
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
Quote:
Originally Posted by Woodsman View Post
I'll have a look. Is a build script available somewhere?
It is now. I would have created one anyway soon for myself again
It downloads the source from Mercurial repository and builds it. I didn't care to delete the built static libraries, see SlackBuild.

slack-desc:
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

        |-----handy-ruler------------------------------------------------------|
dvb-apps: dvb-apps (command line tools for dvb TV devices)
dvb-apps:
dvb-apps: The LinuxTV dvb-apps package contains some Linux DVB API 
dvb-apps: applications and a set of utilities that both the developer and end 
dvb-apps: user alike will find quite useful. Specifically, the utilities are 
dvb-apps: geared towards the initial setup, testing, and operation of a DVB 
dvb-apps: device, whether it be of the software decoding (a.k.a. 'budget') or 
dvb-apps: hardware decoding (a.k.a. 'premium' or 'full-featured') class.
dvb-apps:
dvb-apps:
dvb-apps: Homepage: http://www.linuxtv.org/wiki/index.php/LinuxTV_dvb-apps
SlackBuild:
Code:
#!/bin/sh

# Slackware build script for dvb-apps

# Copyright 2013 titopoquito@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


PRGNAM=dvb-apps
VERSION=${VERSION:-hg20130214}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
hg clone http://linuxtv.org/hg/dvb-apps $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
# I don't know how to let it install into /usr/lib64 on Slackware64
if [ "$ARCH" = "x86_64" ]; then
  sed -i "s:prefix)/lib:prefix)/lib64:g" Make.rules
fi
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

make
make install DESTDIR=$PKG
# This installs shared AND static libraries. If you want only shared ones, see the file
# Make.rules in the source folder and use a sed one-liner.

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
  COPYING COPYING.LGPL INSTALL README \
  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
 
Old 02-14-2013, 11:50 AM   #19
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
A little follow-up:

I used "scan" to create a new table of the here available channels:
Code:
scan -t 1 -a /dev/dvb/adapter0  /usr/share/dvb/dvb-t/de-Nordrhein-Westfalen > /home/tito/.dvbtable
Simply type "scan" to see all available options.

Then I recorded 20 seconds with tzap:
Code:
tzap -c /home/tito/.dvbtable  -r -t 20 -o test.ts "Das Erste"
The recorded file looks ok and plays at least fine with mplayer.
 
Old 02-14-2013, 12:59 PM   #20
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, OpenSuse, Debian, Fedora, Mageia, Ubuntu, RedHat, BSD, Gentoo, Puppy
Posts: 182
Blog Entries: 2

Rep: Reputation: 3
dvb perl

maybe it is now time to use dvb perl tools, and dvbt-ffrec for transcoding using ffmpeg on the fly and what's best is
Multiplex Recording

It needs a bit more fiddling but you can record on a single line and also perform unattended recording or repeated recording using cron.

As at Slackware 14.0-rc3 I complained about mencoder's av sync problem. Apparently no solution could be found.


Mplayer is the best video tool around as it is the only player that is accurate when it comes to seeking but seeing the state of Mplayer I would recommend Slackware maintainers to drop supportfor both mencoder and phonon-mplayer and put them in pasture . Till now these are the only packages that are not of Slackware standards. (assuming that mencoder can be repacked seperately)

Last edited by jheengut; 02-14-2013 at 01:04 PM. Reason: some typos
 
Old 02-14-2013, 01:37 PM   #21
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Rep: Reputation: 104Reputation: 104
I second dvb-apps. That is what I use for my recordings. However, I have had to modify the linuxtv drivers, otherwise, the recording process stops for no reason. After doing a lot of research, I found the fix. You can do this either when downloading the drivers from linuxtv or from the kernel source tree itself.

Edit this file:
Code:
$kernel/drivers/media/dvb/dvb-core/dmxdev.h
Around line 108, change your BUFFER settings from :
Code:
10*188*1024
to
Code:
100*188*1024
I then use handbrake to transcode the video from ts to mp4.
 
Old 02-14-2013, 01:39 PM   #22
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Rep: Reputation: 104Reputation: 104
Obviously, one has to recompile the kernel once you make those changes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mencoder help gilesaj Linux - Software 2 01-24-2012 11:11 PM
Mencoder Help FlamingChainsaws Ubuntu 3 09-09-2008 04:45 PM
mencoder for the tv:// patrick295767 Linux - General 1 01-22-2007 11:37 PM
mencoder jackstoage Linux - Software 9 04-22-2005 10:02 PM
How to get MEncoder ? zahoo Linux - Software 1 04-08-2005 07:27 AM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration