Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tv-aufnehmen mit mencoder funktioniert nicht!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
shorty_born1986
n00b
n00b


Joined: 16 Jun 2004
Posts: 20

PostPosted: Fri Feb 18, 2005 4:35 pm    Post subject: tv-aufnehmen mit mencoder funktioniert nicht! Reply with quote

hallo!


ich möchte tv von meiner analogen pinnacle-pctv-rave aufnehmen und wenn ich den befehl

Code:
mencoder tv:// -tv driver=v4l2 -o test.avi -ovc lavc -oac mp3lame


ausführe bekomme ich eine kommische meldung:

Code:
MEncoder 1.0pre4-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 1333 MHz (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
MMX supported but disabled
MMX2 supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags: Type: 6 MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions:

Reading /home/shorty/.mplayer/codecs.conf: Can't open '/home/shorty/.mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Reading /usr/share/mplayer/codecs.conf: 66 audio & 176 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/shorty/.mplayer/mencoder: Datei oder Verzeichnis nicht gefunden
font: can't open file: /home/shorty/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 9  data: 0x0 - 0x0
TV detected! ;-)
No such driver: v4l2
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Exiting...


woran liegt das??? kann mit tvtime problemlos fernsehen, alles funkt, nur aufnehmen hab ich bis jetzt noch immer nicht geschafft!!!

v4l2????? ist das nicht schon im kernel??? benutze 2.6.9-gentoo-r9n!
wie funktioniert das genau mit v4l und v4l2???

danke!
cheers,
shorty
Back to top
View user's profile Send private message
dot
Guru
Guru


Joined: 05 May 2003
Posts: 335
Location: Germany

PostPosted: Sat Feb 19, 2005 9:41 am    Post subject: Reply with quote

Hi,

bei mir funktioniert das perfekt. Hast du den mplayer mit v4l und v4l2 in den USE-flags
gemerget, oder hast du die vergessen?
Quote:
v4l2????? ist das nicht schon im kernel??? benutze 2.6.9-gentoo-r9n!
wie funktioniert das genau mit v4l und v4l2???

Wenn du Fernseh schauen kannst, hast du im Kernel alles richtig gemacht.
Aber wenn der mplayer/mencoder auch darauf zugreifen muss, braucht der
auch v4l2 unterstützung. Mit
Quote:
No such driver: v4l2
ist der Treiber
innerhalb von mplayer gemeint, mit dem er auf das video-gerät zugreifen kann.
Einfach mal v4l und v4l2 in die Useflags aufnehmen und neu mergen, dann
sollte das tun.

Grüße

Flo
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Sat Feb 19, 2005 11:44 am    Post subject: Reply with quote

Ich machs so:

Code:
/usr/bin/capture.sh
#!/bin/sh
#
#Benutzung: capture NAME ZEIT AUFLÖSUNG
#
#NAME: ohne Dateiendung (z.B. film)
#ZEIT: hh:mm:ss (z.B. 1:00:00)
#AUFLÖSUNG: bbbxhhh (z.B. 480x576)
#
#amixer set Master,0 100%,100% unmute
#amixer set Line,0 100%,100% mute captur
#amixer set Capture,0 75%,75% mute captur
streamer -i Television -t $2 -b 64 -s 720x576 -n pal -f mjpeg -j 85 -r 25 -F stereo -o $1.avi
transcode -i $1.avi -y ffmpeg --export_prof dvd-pal --export_asr 2 -o $1 -D0 -s2 -m $1.ac3 -J modfps --export_fps 25
mplex -f 8 -o $1_dvd.mpg $1.m2v $1.ac3
dvdauthor -o $1 -v 720x576+pal+4:3 -a mp2+de $1_dvd.mpg
dvdauthor -o $1 -T
mkisofs -dvd-video -o $1.iso $1
rm -rf $1
rm -f $1.m2v $1.ac3 $1.avi
cdrecord-wrapper.sh -v -dao dev=/dev/cdroms/cdrom0 speed=2 -eject driveropts=burnfree $1.iso


Also aufnehmen mit streamer ist im xawtv-Paket.
Das Skript bringts dann gleich auf DVD-Auflösung und brennts auch DVD.

Einfach so starten:

./script NAME ZEIT

also z.b.:
./script mein_film 1:10:00
Back to top
View user's profile Send private message
Squiddle
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 141

PostPosted: Sat Feb 19, 2005 3:59 pm    Post subject: Reply with quote

Und damit das alles hier linux wird gibts natürlich noch mehr Auswahl um sich quälen zu können :)
ich benutz das Skript hier (aus dem Forum geklaut, nur mencoder angepasst, wegen qualität)
https://forums.gentoo.org/viewtopic-p-251825.html#251825 original
lässt sich gut in crontab verwenden, weil man den Sender mit übergeben kann ishe den Originalbeitrag
Code:
squiddle@knecht ~ $ cat `which tv_rec.pl`
#!/usr/bin/perl -w
################################################################################
#   tv_rec
#
#   Records TV using mencoder and my bttv tv card.
#
#   $ARGV[0] is the name of the show (used in the filename).
#   $ARGV[1] is the channel to record.
#   $ARGV[2] is the time in minutes to record.
################################################################################
use POSIX;

die "Wrong!\n" unless @ARGV == 3;

my ($show, $channel, $length) = @ARGV;
my $tvDir = "/storage/videos";
$length *= 60; # Go from minutes to seconds.
my $today = strftime "%Y-%m-%d", localtime;
my $file = "$tvDir/$show-$today.avi";

if (-f $file)
{
  foreach (0..1000)
  {
    print "($_)\n($file.$_)\n";
    next if -f "$file.$_";
    $file .= ".$_";
    last;
  }
}

my $cmd = "/usr/bin/mencoder tv:// -tv " .
          "driver=v4l2:" .
          "norm=pal:" .
          "device=/dev/video:" .
          "adevice=/dev/dsp:" .
          "width=768:" .
          "height=576:" .
          "chanlist=europe-west:" .
          "channel=$channel:" .
          "audiorate=48000 " .
          "-ovc lavc " .
          "-lavcopts " .
          "vcodec=mpeg4:" .
          "vbitrate=1300:" .
          "vme=5 " .
          "-oac mp3lame " .
          "-ofps 25 " .
          "-o $file " .
          "-vf crop=720:544:24:16," .
     "pp=lb " .
     "-endpos $length " .
     "-quiet";

my $ret = system $cmd;
exit $ret;


_________________
"Unerhört schnelle Systeme begehen unerhört schnell Fehler." -- Stanislaw Lem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum