Seite 1 von 42 123611 ... LetzteLetzte
Ergebnis 1 bis 10 von 418

Thema: Nach Aufnahme -> Filme konvertieren und auf NAS kopieren

  1. #1
    iMitglied
    Registriert seit
    23.03.2010
    Beiträge
    4
    Renommee-Modifikator
    0

    Lächeln Nach Aufnahme -> Filme konvertieren und auf NAS kopieren

    Hallo Leute,

    ich habe da mal wieder ein problem. Also grundlegendes: Habe seit über einem Jahr ein Mac Mini am TV hängen mit EyeTV, wurde nach den How To's hier aus dem Forum eingerichtet und funktioniert alles.

    Nun habe ich ein NAS im Haus. Das was mir vorschwebt, ist das nach einer Aufnahme in EyeTv die Aufnahme konvertiert wird, danach auf eine Freigabe auf dem NAS kopiert werden soll. Danach soll die ursrpüngliche Aufnahme in EyeTv gelöscht werden.

    Hat einer eine Idee für ein Script?

    folgenden Beitrag habe ich schon durchforstet (http://www.mac-htpc.de/showthread.ph...f-NAS-kopieren)

    Jedoch fehlt mir das konvertieren des Films. Ein weiterer Punkt ist, bei dem kopieren des Films vom Mini auf das NAS. Würde hier der Kopiervorgang automatisch das NAS wecken falls es denn im Ruhezustand ist?

    zur Info das NAS, ist von Synology die Rackstation RS812.

    Grundidee ist das vom TV (Samsung mit Netzwerkanschluss) direkt die Freigabe mit den Filmen angesprochen werden kann.

    Danke
    Gruss
    Jan
    Geändert von janh (02.12.2011 um 12:08 Uhr)

  2. #2
    Super-Moderator Avatar von lifeflow
    Registriert seit
    23.11.2009
    Ort
    bei Zürich
    Alter
    48
    Beiträge
    2.240
    Renommee-Modifikator
    10
    Hallo Jan,

    willkommen bei uns

    Schau doch mal hier: Klick! Vielleicht kannst Du das so verwenden?

    Ein weiterer Punkt ist, bei dem kopieren des Films vom Mini auf das NAS. Würde hier der Kopiervorgang automatisch das NAS wecken falls es denn im Ruhezustand ist?
    Das kann ich Dir nicht sicher beantworten. Im Prinzip sollte das so sein. Da ich selbst kein NAS besitze, fehlen mir hier aber die Erfahrungswerte.

    lg

    Michael
    HowTo: Mac Mini Mediacenter mit Plex oder Front Row

  3. #3
    iMitglied
    Registriert seit
    23.03.2010
    Beiträge
    4
    Renommee-Modifikator
    0
    Hallo Michael,
    vielen Dank, jedoch eine Frage, ich möchte nicht das die exportierten Dateien in itunes landen. Sie sollen exportiert werden auf nas.

    Und wie gebe ich genau die Adresse des nas ein? ich muss js da auch die IP adresse mitgeben und den freigebenen Ordner?

    Danke und Gruss
    Jan

  4. #4
    Super-Moderator Avatar von lifeflow
    Registriert seit
    23.11.2009
    Ort
    bei Zürich
    Alter
    48
    Beiträge
    2.240
    Renommee-Modifikator
    10
    Hallo Jan,

    kein Problem. Schau Dir mal das RecordingDone Script an. Du änderst in der Zeile

    Code:
    set thepath to (path to home folder) & "Movies:" as string
    einfach den Pfad auf den Zielordner auf Deinem NAS. Die Exportierte Datei landet dann automatisch dort.

    In der Zeile

    Code:
            export from recording id myid to thepath as AppleTV
    kannst Du noch das Ausgabeformat festlegen.

    Dann nimmst Du das ExportDone Script und löscht oder deaktivierst die Zeile

    Code:
        tell application "iTunes" to add thepath
    Wenn Du sie so abänderst

    Code:
        --- tell application "iTunes" to add thepath
    dann ist sie deaktiviert, kann später aber jederzeit wieder aktiviert werden.

    lg

    Michael

    EDIT:

    Und wie gebe ich genau die Adresse des nas ein?
    Eigentlich gar nicht. Wenn Dein NAS schon verbunden ist, dann kann es einfach unter dem Namen angesprochen werden, mit dem es im Finder auftaucht.

    Beispiel:

    Dein NAS hat den Namen "MyNAS". Die Freigabe hat den Namen "Videos". Der Odner, in den die Exportdatei gelangen soll, nennt sich "Recordings".

    In diesem Fall müsste ein Laufwerk "Videos" im Finder zu sehen sein. Der korrekte Pfad wäre dann:

    Code:
    set thepath to "Videos:Recordings:" as string
    Geändert von lifeflow (02.12.2011 um 21:58 Uhr)
    HowTo: Mac Mini Mediacenter mit Plex oder Front Row

  5. #5
    iMitglied
    Registriert seit
    23.03.2010
    Beiträge
    4
    Renommee-Modifikator
    0
    super danke, jeoch eine Frage, bei mir gibt es keine Zeile Export
    Code:
    on RecordingDone(recordingID)
        set myid to recordingID as integer
        ⁃    set thepath to "RackStation\video:EyeTV:" as string
        
        set z to 0
        
        tell application "EyeTV.app"
            set the_name to «class Titl» of («class cRec» id myid)
            set the_date to «class Stim» of («class cRec» id myid) as date
            set the_hour to hours of the_date as text
            set the_minutes to minutes of the_date as text
            set the_seconds to seconds of the_date as text
            if length of the_hour = 1 then set the_hour to "0" & the_hour as text
            if length of the_minutes = 1 then set the_minutes to "0" & the_minutes as text
            if length of the_seconds = 1 then set the_seconds to "0" & the_seconds as text
            set Zeit to the_hour & "." & the_minutes & "." & the_seconds as text
            set the_date to (the_date + z * days)
            set derTag to text -2 thru -1 of ("0" & the_date's day)
            
            set MonatsListe to {January, February, March, ¬
                April, May, June, July, August, ¬
                September, October, November, December}
            repeat with i from 1 to 12
                if the_date's month = item i of MonatsListe then
                    set Monat to text -2 thru -1 of ("0" & i)
                    exit repeat
                end if
            end repeat
            
            set z to z + 1
            set Jahr to ((year of the_date) as text)
            
            set the_date to derTag & "." & Monat & "." & Jahr & "_" & Zeit
            
        end tell
        
        set thepath to thepath & the_name & "_" & the_date & ".m4v" as string
        
        tell application "EyeTV.app"
            «event EyTVExpo» given «class Esrc»:«class cRec» id myid, «class Etgt»:thepath, «class Etyp»:«constant EtypApTV»
        end tell
        
        set app_name to ""
        set Datei to (path to desktop) & "Sleep.com" as string
        tell application "Finder"
            if file Datei exists then
                tell application "EyeTV.app"
                    set limit to 30 * minutes
                    set ausmachen to true
                    set vorlauf to («class Prpd» 2) * minutes
                    set jetzt to current date
                    repeat with aufnahme in «class Stim» of every «class cPrg»
                        set diff to aufnahme - jetzt
                        if diff ≥ vorlauf then set diff to diff - vorlauf
                        if diff ≥ 0 and diff ≤ limit then set ausmachen to false
                    end repeat
                    set recordCount to count (every «class cRec» whose «class RTsk» is true)
                    if «class IRcd» = false and ausmachen = true and recordCount is not greater than 0 then
                        activate
                        set antwort to display dialog "Standby wird in 30 Sekunden aktiviert!" buttons {"Abbruch"} default button "Abbruch" with title "EyeTV Recording" giving up after 30
                        if button returned of antwort = "" then
                            set app_name to "relaunch"
                            set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
                            if the_pid is not "" then do shell script ("kill -9 " & the_pid)
                            delay 1
                            set sleep_date to current date
                            tell application "System Events" to sleep
                        end if
                    end if
                end tell
            end if
        end tell
        delay 30
        set jetzt to current date
        set limit to 3 * minutes
        if app_name = "relaunch" then
            set diff to jetzt - sleep_date
            if diff ≤ limit then
                delay 60
                set app_name to "WAKEUP"
                set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
                if the_pid is not "" then do shell script ("kill -9 " & the_pid)
                delay 10
                tell application "System Events" to sleep
            end if
        end if
    end RecordingDone
    Nur die Rackstation wird im Finder angezeigt, also muss ich den Pfad folgend ändern??
    Code:
     set thepath to "RackStation\video:EyeTV:" as string

  6. #6
    Super-Moderator Avatar von lifeflow
    Registriert seit
    23.11.2009
    Ort
    bei Zürich
    Alter
    48
    Beiträge
    2.240
    Renommee-Modifikator
    10
    Hallo Jan,

    ich denke mal, der Pfad müsste so lauten:

    set thepath to "RackStation:video:EyeTV:" as string
    Was ist denn mit dem Script passiert? Da fehlen so einige Zeilen, bzw. werden nicht korrekt dargestellt. Du musst das Script natürlich im Applescript Editor öffnen. Hast Du das getan?

    lg

    Michael
    HowTo: Mac Mini Mediacenter mit Plex oder Front Row

  7. #7
    iMitglied
    Registriert seit
    23.03.2010
    Beiträge
    4
    Renommee-Modifikator
    0
    ja klar, habe das mit dem AppleScript Editor geöffnet.

    Könntest du die Scripts nocheinmal posten?

    Vielen Vielen Dank!!


    Gruss
    Jan

  8. #8
    Super-Moderator Avatar von lifeflow
    Registriert seit
    23.11.2009
    Ort
    bei Zürich
    Alter
    48
    Beiträge
    2.240
    Renommee-Modifikator
    10
    Nimm die aus dem ersten Posting in diesem Thread. Lade Dir die passenden Anhänge herunter. Also kein Copy&Paste mit dem geposteten Code. Ich habe es gerade nochmals getestet. Die sind in Ordnung.

    lg

    Michael
    HowTo: Mac Mini Mediacenter mit Plex oder Front Row

  9. #9
    iMitglied
    Registriert seit
    05.02.2011
    Beiträge
    60
    Renommee-Modifikator
    2
    Hallo, ich habe das gleiche Vorhaben. Ich möchte die Aufnahmen aus EyeTV exportieren, auf der Festplatte in einem bestimmten Ordner speichern und die ursprüngliche Aufnahme löschen. Wenn ich das richtig verstanden habe benötige ich dafür nur das RecordingDone-Skript!? Doch auch ich habe das gleiche Problem. Ich habe die Dateien aus dem verlinkten Beitrag runtergeladen. Aber auch ich habe keine Zeile "export from recording id myid to thepath as .." im RecordingDone Skript. Skript wurde mit dem AppleScript Editor geöffnet.

    Code:
    on RecordingDone(recordingID)
    	
    	set myid to recordingID as integer
    	
    	set logevents to 1 as number
    	set logpath to (path to home folder) & "Recordings.txt" as string
    	set eventtolog to (current date) & "   *" as text
    writelogfile(eventtolog, logevents, logpath)
    	set eventtolog to (current date) & "   ---   Script started for recording id " & myid as text
    writelogfile(eventtolog, logevents, logpath)
    	
    	set thepath to (path to home folder) & "Movies:" as string
    	
    	set eventtolog to (current date) & "   ---   set destination path to " & thepath as text
    writelogfile(eventtolog, logevents, logpath)
    	
    	set z to 0
    	
    	tell application "EyeTV.app"
    		set the_name to «class Titl» ofclass cRec» id myid)
    		set the_date to «class Stim» ofclass cRec» id myid) as date
    		set the_hour to hours of the_date as text
    		set the_minutes to minutes of the_date as text
    		set the_seconds to seconds of the_date as text
    		if length of the_hour = 1 then set the_hour to "0" & the_hour as text
    		if length of the_minutes = 1 then set the_minutes to "0" & the_minutes as text
    		if length of the_seconds = 1 then set the_seconds to "0" & the_seconds as text
    		set Zeit to the_hour & "." & the_minutes & "." & the_seconds as text
    		set the_date to (the_date + z * days)
    		set derTag to text -2 thru -1 of ("0" & the_date's day)
    		
    		set MonatsListe to {January, February, March, ¬
    April, May, June, July, August, ¬
    September, October, November, December}
    		repeat with i from 1 to 12
    			if the_date's month = item i of MonatsListe then
    				set Monat to text -2 thru -1 of ("0" & i)
    				exit repeat
    			end if
    		end repeat
    		
    		set z to z + 1
    		set Jahr to ((year of the_date) as text)
    		
    		set the_date to derTag & "." & Monat & "." & Jahr & "_" & Zeit
    		
    	end tell
    	
    	set thepath to thepath & the_name & "_" & the_date & ".m4v" as string
    	
    	set eventtolog to (current date) & "   ---   add file to iTunes " & thepath as text
    writelogfile(eventtolog, logevents, logpath)
    	
    	tell application "EyeTV.app"
    		«event EyTVExpo» given «class Esrc»:«class cRec» id myid, «class Etgt»:thepath, «class Etyp»:«constant EtypApTV»
    	end tell
    	
    end RecordingDone
    
    
    on writelogfile(eventtolog, logevents, logpath)
    	if logevents = 1 then
    		set RefNum to (open for accessfilelogpath with write permission)
    		try
    writeeventtolog & returntoRefNumstarting at ((get eofRefNum) + 1)
    close accessRefNum
    		on error
    close accessRefNum
    		end try
    	end if
    end writelogfile

  10. #10
    iMitglied
    Registriert seit
    05.02.2011
    Beiträge
    60
    Renommee-Modifikator
    2
    Ok ,Problem gefunden. Hatte die Skripte mit meinem MacBook geöffnet, allerdings ist dort kein EyeTV installiert. Dadurch werden wurden die entsprechenden Code-Zeilen umformatiert.

    Nachdem ich das ganze jetzt am laufen habe ist mir aber aufgefallen, dass mein MacMini 2,4Ghz Core Duo während dem Exportieren einer ZDF HD Aufnahme ins AppleTVHD-Format im Hintergrund und gleichzeitigem Schauen von HD das Live-Bild stark ruckelt. Das Verhalten ist nicht akzeptabel. Gleichzeitiges Exportieren und SD-Live schauen geht ohne Probleme.

    Ist das normal??
    Hilft da der turbo.264HD Stick?

    Noch eine Frage: Meine Test-Aufnahme von ZDF-HD ist 9min lang und knapp 1GByte groß.
    Ist das normal??

Ähnliche Themen

  1. Antworten: 14
    Letzter Beitrag: 01.08.2011, 18:05
  2. Film nach Aufnahme auf NAS kopieren
    Von Phil im Forum EyeTV
    Antworten: 7
    Letzter Beitrag: 04.07.2011, 00:46
  3. trp Dateien schneiden/konvertieren ?
    Von Dreamcatcher im Forum Programmübergreifende Fragen und Probleme
    Antworten: 2
    Letzter Beitrag: 30.04.2011, 14:37

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •