<div dir="ltr">I've finally allowed myself to try out your patches Joachim. I've had some hiccups along the way, some I've been able to fix, some not :-(<div><br></div><div>I'd thought I'd share anyway for the greater benefit of us all :-)</div><div><br></div><div>I've found that these settings work better for my older movie files, from a Canon Digital IXUS:</div><div><br></div><div><p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">diff -u PhotoAlbum.py ../../photofloat2/scanner/PhotoAlbum.py</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">--- PhotoAlbum.py       2015-09-15 18:34:16.466288893 +0200</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">+++ ../../photofloat2/scanner/PhotoAlbum.py     2015-09-09 16:37:29.359987385 +0200</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">@@ -435,19 +435,18 @@</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-c:v', 'libx264',              # set h264 as videocodec</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-preset', 'slow',              # set specific preset that provides a certain encoding speed to compression ratio</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-profile:v', 'baseline',       # set output to specific h264 profile</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">-#                      '-level', '3.0',                # sets highest compatibility with target devices</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">+                       '-level', '3.0',                # sets highest compatibility with target devices</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-crf', '20',                   # set quality </p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-b:v', '4M',                   # set videobitrate to 4Mbps</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-strict', 'experimental',      # allow native aac codec below</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-c:a', 'aac',                  # set aac as audiocodec</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-ac', '2',                     # force two audiochannels</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">-                       '-ab', '128k',                  # set audiobitrate to 128Kbps</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">-                       '-ar', '11025',                 # set audio sampling rate/frequency to 11025</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">+                       '-ab', '160k',                  # set audiobitrate to 160Kbps</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-maxrate', '10000000',         # limits max rate, will degrade CRF if needed</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-bufsize', '10000000',         # define how much the client should buffer</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-f', 'mp4',                    # fileformat mp4</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-threads', str(num_of_cores),  # number of cores (all minus one)</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">-                       '-loglevel', 'error',           # don't display anything</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">+                       '-loglevel', 'quiet',           # don't display anything</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                        '-y'                            # don't prompt for overwrite</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                ]</p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)">                filters = []</p></div><div><br></div><div>Besides these small changes, I've seen other movies simply "freeze" on transcoding. The python script appeared to be running, judging from the terminal, but the process list showed a 'avconv' process without it's accompanying python parents processes. Killing the avconv process and restarting the scanner again didn't help to get some movie files done. Eventually I moved them out of place and the job got done. I'll have to find out what's so special about these particular files. Perhaps it's just too large for my AMD APU to transcode in a reasonable time (does python have a time out set somewhere)?</div><div><br></div><div>Another thing I noticed on Safari, Firefox and Chrome (all on a Mac) is that when I browse through an album with movies, I get to see the medium sized movie in the center and the "timeline" thing in the bottom of the screen. I can play the first movie just fine. When I advance to the next by either using the arrows (click, or keyboard) or select one from the "timeline" in the bottom, I expected the preview of the medium sized movie to be replaced with the one I selected. Instead, a second, or third, of fourth (depending on how much you select) medium sized preview appears. All are playable at the same time. I thought the behavior would be similar as to browsing/flipping through pictures.</div><div>Does anybody recognize that? Perhaps a clue what to fix?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Dennis</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-07 14:44 GMT+02:00 Joachim Tingvold <span dir="ltr"><<a href="mailto:joachim@tingvold.com" target="_blank">joachim@tingvold.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 17 Jun 2015, at 17:41, Joachim Tingvold wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did some spring cleaning on my photofloat-install.<br>
</blockquote>
More minor fixes.<br>
</blockquote>
<br></span>
One more.<br>
<br>
 * Issues transcoding really, really old MJPEG-videos. Related to the baseline profile used (avconv complained about "baseline profile doesn't support 4:2:2"). Tries normal transcode first, and if that fails, tries again with added option that works.<br>
<br>
<<a href="http://git.jocke.no/photofloat/?h=patches" rel="noreferrer" target="_blank">http://git.jocke.no/photofloat/?h=patches</a>><br>
<br>
<br>
My personal "things I'd like to fix" list (in somewhat prioritized order, but with no ETA);<br>
<br>
 * File structure in the cache dir (requires a lot of changes in both backend and frontend).<br>
<br>
 * Don't rethumb /all/ images in album after hitting CTRL+C (currently yielding 'corrupt cache' on the album). Should check if the thumbs are there first, and if so, don't remake them.<br>
<br>
 * Some kind of dedup (if having multiple albums with the same original images).<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Joachim<br>
_______________________________________________<br>
PhotoFloat mailing list<br>
<a href="mailto:PhotoFloat@lists.zx2c4.com" target="_blank">PhotoFloat@lists.zx2c4.com</a><br>
<a href="http://lists.zx2c4.com/mailman/listinfo/photofloat" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/photofloat</a><br>
</div></div></blockquote></div><br></div>