View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 24 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Mencoder, nuv->avi issue
PostPosted: Wed May 24, 2006 12:15 pm 
Offline
Joined: Tue Jan 03, 2006 5:41 pm
Posts: 8
Kind of off-topic... Anyone experiencing lockups when using the scripts above to convert to avi? I run all my shows through mencoder and then watch them, but some of them will lock up the video and continue playing audio on my Archos. the video frame stays still (like you hit pause), but the audio continues. The file appears normally sized for the length of the show and the Archos says the file is 30 or 60 minutes in length. I haven't played the file on anything else, so I'll try that to rule out hardware malfunction.

Bret

_________________
Bret A Schuhmacher


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 24, 2006 1:00 pm 
Offline
Joined: Fri Apr 28, 2006 9:45 am
Posts: 22
Okay, with a lot of experimenting I got it to work. I had to modify the script to add a line and replace a line

listing=$(cat files.txt)
for FILENAME in $listing

instead of
for FILENAME in 'cat files.txt'

Everything else worked as it was. Thank you very much for your help everyone. I'm super excited to be able to transfer recorded shows/movies to my Archos AV500. Maybe now I will spend some quality time on the elyptical machine at the gym :P

chrisj wrote:
Code:
#!/bin/sh
for FILENAME in `cat files.txt`
        do
echo Processing ${FILENAME}

mencoder /myth/tv/${FILENAME} -ovc lavc \
-lavcopts vcodec=mpeg4:vbitrate=600:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01 \
-vop scale -zoom -xy 320 -oac mp3lame -lameopts abr:br=96 \
-o "/myth/video/${FILENAME}.avi"

 
done


:P :P


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 4:12 pm 
Offline
Joined: Sun May 28, 2006 8:56 am
Posts: 5
buckarette wrote:
When I run cat from the command line, it does return the list of names in the file. I have experimented with and without " ' " to no avail. does anyone else have any suggestions?

Julie


Hi Julie, Just a teeny point to note, which might be where you're having problems... to linux, there's a lot of difference between " ' " and " ` "

' starts/ends a string
` processes the command and returns the results

so in saying 'cat files.txt' you're getting exactly that, whereas you should have had `cat files.txt`

Hope this helps in the future :)

Matthew


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 4:50 pm 
Offline
Joined: Fri Apr 28, 2006 9:45 am
Posts: 22
Thank you very very much. Now it makes so much sense why it wasn't working. Didn't even notice the difference between the ` and the '. Knowing the difference probably would have given me an extra 3 hours of sleep the night I was working on that script.


Top
 Profile  
 
 Post subject: Issues with R5D1
PostPosted: Mon Sep 04, 2006 3:06 pm 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
So I just re-installed my mythsystem with R5D1. Formatted the drive and started over.

Now, I am trying to put my custom job back in and it looks like it works, the web interface shows it complete, but the file is no where to be found..

Here's the command:
The command is:
mencoder /myth/tv/%FILE% -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=600:vhq:vqmin=2:vlelm=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01 -vop scale -zoom -xy 320 -oac mp3lame -lameopts abr:br=96 -o "/myth/video/%TITLE%-%SUBTITLE%.avi"

Any idea what might have changed to cause this??


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 9:55 am 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
:D :D OOOPS... Typo!! Helps to triple check..

Here is the correct line:
mencoder /myth/tv/%FILE% -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=600:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01 -vop scale -zoom -xy 320 -oac mp3lame -lameopts abr:br=96 -o "/myth/video/%TITLE%-%SUBTITLE%.avi"

For future reference I had to look at mythbackend.log file for the info.

_________________
Knoppmyth R5F27


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 10:38 pm 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
So now I have a new problem... After upgrading to the new Knoppmyth, and setting up my conversion routine, so I can copy files to my PMP, I was flying today and couldn't play any of my recently recorded video.. WTF!!!

I just figured out what is going on.. The newest version of libavcodec sets the file type to FMP4, but my player would not recognize this file, so I had to force it to show as xvid, by adding the following flag to the end of the command -ffourcc XVID...

This link explains it better:
http://wiki.multimedia.cx/index.php?title=FMP4

_________________
Knoppmyth R5F27


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 30, 2006 8:01 pm 
Offline
Joined: Mon Feb 13, 2006 6:42 pm
Posts: 3
This solution worked well for me but does anybody know how to get it to work with unicode program titles? I'm just getting question marks for names for now.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 7:23 pm 
Offline
Joined: Mon Feb 13, 2006 6:42 pm
Posts: 3
Just in case somebody out there ever has the same problem as me, here is my workaround for unicode support.

Save the filename as %STARTTIMEISO%.avi (adjusting the above userjob). Make a new script with the following line

mv /myth/video/"$1".avi /myth/video/""$1"-"`mysql -Dmythconverg -umythtv -pmythtv -Bse "select title FROM recorded WHERE starttime='$1'"`".avi"

and add the script as a new userjob and call it passing the %STARTTIMEISO% value.

It's a little roundabout but it works. (it's just using the starttime to match the program name)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu