Go to advanced search

by nyk
Fri Jul 25, 2014 10:13 pm
Forum: Troubleshooting
Topic: RT5370 WiFi cuts out after some hours, needs reboot?
Replies: 50
Views: 63178

Re: RT5370 WiFi cuts out after some hours, needs reboot?

The scripts from this thread didn't work with my Asus USB-N10 (r8712u module). I came up with this after some experimenting. I tested it and it works fine, so far. Rebooting was the only thing that worked. #!/usr/bin/python import subprocess, time wifi_device = 'wlan0' ssid = 'my_linksys' logfile = ...
by nyk
Thu Dec 27, 2012 2:23 pm
Forum: Beginners
Topic: Batch convert XvID to x264 using Pi help
Replies: 10
Views: 5149

Re: Batch convert XvID to x264 using Pi help

I realized that I underestimated the diskspace to be saved when not just converting divx, but also all other videos. #!/usr/bin/python # Converts all videos in a directory and sub-directories to x264 # Required packages on debian/ubuntu: mencoder ffprobe import os,sys,re,subprocess,time,sqlite3 indi...
by nyk
Thu Dec 20, 2012 3:05 am
Forum: Beginners
Topic: Batch convert XvID to x264 using Pi help
Replies: 10
Views: 5149

Re: Batch convert XvID to x264 using Pi help

There was a bug in the above code, here the fix: #!/usr/bin/python # Converts all DivX movies (and Microsoft MPEG-4 v2) in a directory to x264 import os,sys,re,subprocess,time indir=sys.argv[1].rstrip('/') todo_codecs=('DivX','Microsoft MPEG-4 v2') files=os.listdir(indir) print 'Analyzing %d files i...
by nyk
Wed Dec 19, 2012 10:37 pm
Forum: Beginners
Topic: Batch convert XvID to x264 using Pi help
Replies: 10
Views: 5149

Re: Batch convert XvID to x264 using Pi help

I leave xvid movies as they are because it's not much to gain, but I convert divx like this in python because they don't work otherwise. And you can also use it for xvid if you add it to todo_codec. #!/usr/bin/python # Converts all DivX movies (and Microsoft MPEG-4 v2) in a directory to x264 import ...

Go to advanced search