Author |
Message |
bschuhma
|
Posted: Wed May 24, 2006 12:15 pm |
|
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 |
|
 |
buckarette
|
Posted: Wed May 24, 2006 1:00 pm |
|
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
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

|
|
Top |
|
 |
matthewrwright
|
Posted: Tue May 30, 2006 4:12 pm |
|
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 |
|
 |
buckarette
|
Posted: Tue May 30, 2006 4:50 pm |
|
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 |
|
 |
scanman717
|
Posted: Mon Sep 04, 2006 3:06 pm |
|
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 |
|
 |
scanman717
|
Posted: Thu Sep 07, 2006 9:55 am |
|
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
|
 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 |
|
 |
scanman717
|
Posted: Tue Sep 12, 2006 10:38 pm |
|
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 |
|
 |
billyboff
|
Posted: Sat Sep 30, 2006 8:01 pm |
|
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 |
|
 |
billyboff
|
Posted: Wed Oct 11, 2006 7:23 pm |
|
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 |
|
 |