{"id":482,"date":"2009-03-14T15:44:36","date_gmt":"2009-03-14T22:44:36","guid":{"rendered":"http:\/\/www.graphics-muse.org\/wp\/?p=482"},"modified":"2009-03-14T15:53:31","modified_gmt":"2009-03-14T22:53:31","slug":"acidrip-mod-fix-for-faulty-previews","status":"publish","type":"post","link":"https:\/\/www.graphics-muse.org\/wp\/?p=482","title":{"rendered":"AcidRip mod:  Fix for faulty previews"},"content":{"rendered":"<p><a href=\"http:\/\/untrepid.com\/acidrip\/\">AcidRip<\/a> hasn&#8217;t been updated in a long time.\u00a0 In fact, I&#8217;m not even sure anyone is maintaining it anymore.\u00a0 But I still use it quite a bit.\u00a0 Today I noticed, after an yum update for F10, that the previews just wouldn&#8217;t work anymore.\u00a0 So I looked at the debug window and found this was the line it was trying to run:<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #003366;\"><span style=\"font-family: verdana,geneva;\"><span style=\"font-size: small;\">mplayer -vo gl2 -ao sdl\u00a0 dvd:\/\/1 -dvd-device \/dev\/sr0 -alang English -chapter 3-3 -frames 10 -sstep 5 -nocache -vf crop=0:0:0:0,scale=261:-2 -wid 67109117<\/span><\/span><\/span><\/p>\n<p>Running mplayer with the <em>-vo<\/em> and <em>-ao<\/em> options is something I configured in the <strong>Settings<\/strong> tab of AcidRip.\u00a0 These are required to get proper <a href=\"https:\/\/www.graphics-muse.org\/wp\/?p=450\">video and audio output with mplayer<\/a> on my system.\u00a0 I&#8217;m no mplayer expert but a little trial and error uncovered that the problem with this command comes from the <em>-frames<\/em> and <em>-sstep<\/em> options.\u00a0 If I remove them then the video and audio previews play just fine with mplayer.\u00a0 So I dug into the AcidRip code and found that in acidrip.pm, lines 323-326 look like this:<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #003366;\"><span style=\"font-family: verdana,geneva;\"><span style=\"font-size: small;\"> my $frames = $::settings-&gt;{&#8216;ppc_bug&#8217;} ? 100 : 10;<br \/>\nmy $sstep = &#8220;-sstep &#8221; . int $length \/ ( 3 * $frames ) + 1;<br \/>\n$sstep = &#8220;-ss &#8221; . int $length \/ 3 if $::settings-&gt;{&#8216;ppc_bug&#8217;};<br \/>\n$menc{&#8216;frames&#8217;} = &#8220;-frames $frames $sstep&#8221;;<\/span><\/span><\/span><\/p>\n<p>Commenting out that last line and replacing it with the following line fixes the preview problems I&#8217;ve having with AcidRip.\n<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #003366;\"><span style=\"font-family: verdana,geneva;\"><span style=\"font-size: small;\"> $menc{&#8216;frames&#8217;} = &#8220;&#8221;;<\/span><\/span><\/span><\/p>\n<p>These options supposedly only cause the preview to play a little faster and skip a little into the specified track.\u00a0 But they both have to come out to get the previews to work properly on my system.<\/p>\n<p>Your mileage may vary.<\/p>\n<p>Another thing I discovered after the yum update is that mencoder was no longer compiled with <em>lame<\/em> support for audio.\u00a0 I&#8217;m not sure why that change has occurred (maybe it was just a bad rebuild of mencoder?) but the solution from AcidRip&#8217;s point of view is to simply change the audio to <em>twolame<\/em>.\u00a0 Rips appear to work fine with that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AcidRip hasn&#8217;t been updated in a long time.\u00a0 In fact, I&#8217;m not even sure anyone is maintaining it anymore.\u00a0 But I still use it quite a bit.\u00a0 Today I noticed, after an yum update for F10, that the previews just wouldn&#8217;t work anymore.\u00a0 So I looked at the debug window and found this was the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[12,8,5],"tags":[219,102,220,221,199,625,79],"class_list":{"0":"post-482","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-audio","7":"category-hardware","8":"category-linux","9":"tag-acidrip","10":"tag-f10","11":"tag-mplayer","12":"tag-sdl","13":"tag-update","14":"tag-video","15":"tag-yum","16":"czr-hentry"},"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pe9t8-7M","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482"}],"version-history":[{"count":3,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}