The Blog of st373n

Two Pass Now works correctly!

by st373n on Feb.14, 2009, under FilmRedux

Two pass encoding of files to Apple-device formats now works correctly, previous version were trying to read the wrong log file and then not doing the second pass correctly, this issue has now been addressed.  thank you to all those who noticed and let me know.

As such I was able to add the same functionality to the avi conversions and it is now possible to choose two pass for them too.
Once the avi code is finalized and works with all the possible options the next formats I plan to work on are the dvd outputs .iso video_ts and .vob
:

32 Comments for this entry

  • RickS

    Hi when i try to convert a file i have always this error:

    Applescript error

    «class taVI» “advancedvideobox” of «class tabV» “advancedbox” of window “advanced” doesn’t understand the switchText message. (-1708)

    I use OSX 10.5.6 with english as default language, filmredux Version 1.0.3 (1.0.3.4 st373n)

  • st373n

    What settings if any, have you chosen in the Advanced Settings window? Try draging in just a file and convert it to say appletv, just clicking start. Then try is again and change the setting and see if you get the error again…

  • RickS

    I havan’t used the Advance setting, i olso click on clear all on the advance setting pannel.
    I have tried with the appletv setting and ipod classic, but with the same result.

    «class taVI» “advancedvideobox” of «class tabV» “advancedbox” of window “advanced” doesn’t understand the switchText message. (-1708)

  • st373n

    Thats really wierd! The switchText message is only use in a few places in the code and should only be called when it needs to convert a comma to a decimal – for example is you set framerate to 23,976 it would convert it to 23.976

    In you mac’s region settings for things like language and keyboard layout are those on English US/UK? some people have reported applescript errors when using other regions or languages.

    There are NO localization’s in FilmRedux yet for different layouts and im wondering if that could be whats causing your issue – if you are set to US or UK then its most strange,

    Also is this the only build of FilmRedux you have installed, do you have any build from the sourceforge project for example – im not sure how the applescript would react if both version were to be installed on the same system.

  • st373n

    Just re-read your post again RickS and noticed that you already said you are on an English region – i will have a dig around that area in the code and see if I can spot anything there but its not an error that I can reproduce locally, im testing on two intel macs and a g5 all with 10.5.6

  • dorin

    indeed, if I have selected romanian as language (my native tongue) I get that applescript error, hope that you will be able to fix-it , otherwise right now I try to convert supernatural …. hope to work … and thanks for what you try .. to reborn maybe the greatest videoconvertor for mac

  • RickS

    I find it thanks for your post.

    I forgot that i am on the english language, but i set the format of data times and numbers and currency like europe (italian).
    I must use this strange setting because i use excel with italian’s made document, where is used comma instead of dot for number, date like day/month/year ecc.
    I change the region format to “United states” and now all work.

    But now a request can you change the code to work olso when the region is set to italian or custom, (comma instead of dot for numbers) ?

    PS
    I used visulahub for yars without this problem.

    Thanks.

  • RickS

    I think that the bug is in the procedure that convert comma with dot, or dot with comma that look the regions setting.
    So if your region isn’t US/UK or US/UK like, applescript convert something like 23.976 FPS in 23,976 FPS (comma instead of dot).
    It isn’t the language that you had choice, instead is the region setting that made the different, if you set a region that use comma instead of dot you have the bug.

  • RickS

    For the next, next, next, release.
    Can you add soft subtitle ?

    I find a program name Subler
    http://forum.handbrake.fr/viewtopic.php?f=14&t=9197&start=25

    I used it and work great.
    Maybe you cant talk with the author and implement his code in filmredux.

  • st373n

    Excellent debugging RickS & dorin !
    I have just set my region to Italy and now get the error which is good so we know what the cause is. Im looking into the function now.

    As for subtitles yep there definitely on the list things to do

  • st373n

    OK think I have done it, checked it under Italian and English.
    Uploading it now.

  • RickS

    OK now It’s works !
    Thanks

  • st373n

    Great good to know, thanks for your help

  • Primaria

    Hmm, strange things happened.. I have converted a bunch of video, optimized for tv screen and ipod 5g as format .. well, itunes say that they cannot be played onto my iphone.. the same if I choose iphone format anf tv screen as optimization .. any ideea ?

  • st373n

    Thats odd. I just converted a file to ipod g5 optimized for tv and also one for iphone and iTunes imported them and synced them fine.

  • aew51183

    I very much appreciate the work you’re doing here, but i’m curious as to why this is not being submitted/updated on the transcoder redux sourceforge page.

    OSS development thrives on activity, both development and user based, and googling “visualhub reborn” will produce a great number of stories linking back to the sourceforge page, in addition to techspansion’s official link to that page.

    I dare say i was lucky to find your blog after digging around on said page, and I’d love to see more attention drawn to these efforts.

    If you don’t mind I could contact a few mac news sources with the URL for this blog?

  • st373n

    Hi aew51183 Thank you please feel welcome to submit the URL to anyone you think it would be of interest to.

    I decided to work on a fork of the project rather than the sourceforge team because I was looking for a project to further my applescript skills, and this is the main language used in the current filmredux code, from what I read over at sourceforge the team there are going to take a different approach and recode filmredux in objective c.
    I do occasionally post information there about what I am doing and their build provides a link to my codec support pack, so i an way were helping each other out.

  • Lauralee

    How does one submit bug issues to you?
    I am a willing tester that can help….. If need be.

  • st373n

    You can submit bug issues to me via gmail or just post here

  • Lauralee

    What is the e-mail address at gmail??

    Regardless….
    I tried to convert a file…
    It started and about 4-5 seconds later it said it was done but no file was created.
    Below is the log file.
    What info do you need from me other than
    running OSX 10.5.6/ 2.4 GHz /4 GB RAM

    -General-,Matroska,9133312,2062411
    -Video-,0,1,eng,V_MPEG4/ISO/AVC,High@L4.1,Progressive,,960,720,1.000,1.778,23.976
    -Audio-,0,2,,A_AAC/MPEG4/LC,48000,6,
    /tmp/frtemp/1235410164/12354101652685/mencoder12354101652685 -cache 20000 '/Users/nfguinle/Downloads/The.Dark.Knight.2008.720p.nHD.x264-NhaNc3.mkv' -vf softskip,scale=960:720,dsize=960:720,harddup -af-add channels=2:resample=48000 -ovc x264 -x264encopts threads=4:global_header:nocabac:qp_min=18:bitrate=3750:frameref=3:level_idc=31:bframes=0 -oac lavc -lavcopts threads=2:acodec=libfaac:aglobal=1:abitrate=128 -ofps 23.976 -srate 48000 -of lavf -o '/Users/nfguinle/Downloads/The.Dark.Knight.2008.720p.nHD.x264-NhaNc3'.temp.m4v >> /tmp/frtemp/1235410164/12354101652685/filmredux_time 2>&1 ; echo done > /tmp/frtemp/1235410164/12354101652685/filmredux_working
    MEncoder dev-SVN-r28337-4.0.1 (C) 2000-2009 MPlayer Team
    CPU: Intel(R) Core(TM)2 Duo CPU E8135 @ 2.40GHz (Family: 6, Model: 23, Stepping: 6)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

    success: format: 0 data: 0×0 – 0×8c580ff7

    [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
    [mkv] Track ID 2: audio (A_AAC), -aid 0, -alang und
    [mkv] Will play video track 1.
    Matroska file format detected.
    VIDEO: [avc1] 960×720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:31 fourcc:0×31637661 size:960×720 fps:23.976 ftime:=0.0417
    ==========================================================================
    Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
    FAAD: compressed input bitrate missing, assuming 128kbit/s!
    AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
    Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
    ==========================================================================
    ** MUXER_LAVF *****************************************************************
    REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
    INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong!
    *******************************************************************************
    OK, exit.
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [harddup]
    Opening video filter: [dsize=960:720]
    Opening video filter: [scale w=960 h=720]
    Opening video filter: [softskip]
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    1 duplicate frame(s)!
    VIDEO CODEC ID: 28
    AUDIO CODEC ID: 15002, TAG: 0
    Writing header…
    [ipod @ 0x8108c0]dimensions not set
    begin-base64 644 -
    H4sIAALdokkAA+2Y/2sbZRzHn7uko9sqW+q3ODp91iJbt+ZyT5K2WTQsaRKWsYUG01bn0Oxyd01C
    7ku8u7TpFMyTL5pgtgl2XZlDrRuis9b6ZU7thIrOH2UysBsKW9Epwqi/+lu9axH0L5g/3IsH7t7v
    +9×94MPD58M92yI3z702UK6LjKbIao4ZeBkTAzVM2BOlNAEAaD615Zot9rq2GFtoJt6v3n/gvdHE
    bHmrZV0+MDSXM+RUbOGELo3AxGy1ObKsrRsdiYXcmvHo6TuDC8DExMTExMTExMTExMTExOT/jPHf
    Hzi+e+mjypaBQKx0Tsim+JQowDGa6qf64R6oG/8cIRiml0JPBj8Xc2Mir6R5OOaiPBSCu3YOqzyM
    8Tu7YaqQFTQoSzDMsxD2QhdNeyHq9XncPrcr3Kge3PwMCDN1y/MR55n7ngXq+Vc/tF/e/s6MWrs0
    Gfv03Z92NYyzh6A4F2xfwoR6BRMVTHyBiTomhi9gcBYD8XdMdKHB6r4SAMMrGLx0ciQZi0f2e5wH
    EoPO4EjoAibYtwMfEBzoXl0GD6b166zntmXxyAwgTg+CQwcDJ+1oigCvZFY+/j5+ntlEh6NHoY20
    brIR0XjnVrK0r3KrHTAW0AGl+NOf5OP2NtxpbQ2k/7IRYAdZbb0n+oTthzdq2w83D2/ecaKxBz1k
    3bgbtUQm4/ibb6uV+HVvx+OtV93hF6/F7L9Ofre3TZk+Ol2fLiPS2ghZ24632ze2bbvX+nWde9hK
    wkM4M9/1S6VKvpCTOi+erfBS+tap+bJl8csyefUMBkPz5RYwZIi5H5cwqV6pNm+eulzB5L/LQuhl
    Af8pSy2YDAbXi1GzzY/cBkYOIlIbNnIUJG65cbG6/7ESeBNvuBO+2/vQxMTkLvJI6LMCPHZEbyJv
    hXpmQt14zSXzG1pWV4WfI3989duN6KWpnuvwRtfKn0VXnwc6ICsrPOzrhQqiPX0×2I84tydlPIhS
    eoDTaMoOD9Q7sh7J6ePAAUNyfkLgRzVjLLgda7PBATOalvc5nePj49RYluNlgZEoWUk7jSxURtOn
    kQPKeS0rS6oPskyKYf0IKvyo3wM5PiXIbM6PfA63viAjMcKEyvvpottHFxFyQ5H3F8QMVAsp/W4v
    zKsTSYXzI4r20RQNxWyR55LGt5AemVQYKc37UR9kM4osMkn9FQQ1hReErOp3QW/Ry7GabrHPibrk
    eIY7Jku834V60N92Fk4lcBcAAA==
    ====

  • st373n

    Hi the address is st373n at gmail dot com

    It looks like you’ve either got missing or incorrect codecs,
    Have you got the latest support pack installed, libfaac, libx264

  • st373n

    Have looked a bit deeper into this and it seems that certain mkv files have issues if the are 25fps and out is 23.976 try changing the framerate from auto to manual. This is on my bug list now to be looked into.

  • Maltese Falcon X

    Sorry for dupe post – but didnt see this thread going …

    I’ve now loaded Redux – but when I go to rip a MVK file, I’m getting an Apple Error “Code to make .dmg not yet done” -2700…

    Have I downloaded the “wrong” file somehow? As I mentioned on the other page, the link there is not active… so found another copy in the next post –

    Sorry – I’m a Mac n00b – and don’t know squat about error codes – but was really hoping this would work – as I’ve been trying to find a GUI app that will convert my MKV file to something a standard DVD player would be able to show…

    Any suggestions?

    Many thanks -

  • st373n

    Maltese Falcon X Your trying to output your mkv to a dvd disk image, the code for that is not yet written into the application hence the error your getting “Code to make dmg not yet done”. The only output ofrmat that work are those to apple device formats or to avi.

    Oliviakrk can you tell me what your doing when you get the wav error?

  • Oliviakrk

    I checked the option: Stitch files together.

  • st373n

    stitching is not coded in yet.. maybe i should grey out the options that don’t function yet in the next release to avoid confusion

  • Dorin Titiriga

    any progress yet ?

  • st373n

    well most of the mkv issues have been sorted, but i want to get some areas a bit more polished before the next release.

  • st373n

    Thanks for all the continued feedback and emails, work is still progressing and coming along nicely

  • st373n

    Yes did see that, the current build they have for download is just tylers code compiled as is, they do actually reference my support pack here, in their instructions.

    But they are going a different route with their build, complete recode into C.

    my goal is to get it finished in its current form and then, for a version 2.0 a rewrite into C .

Leave a Reply


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!