VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 30 of 76
Thread
  1. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    post edited May 05, 2008
    Okay I've been working for a couple of months on a linux build. I've finally finished 14.4 beta for linux. I've completely started from scratch using wxwidgets/gtk. The ide I used for building this is codeblocks. As this was started from scratch there may (but hopefully not) be bugs. If any bugs are found please post them here.

    Wine is still needed for hcenc ,dgpulldown, avisynth, and wavi but the rest of the program is all nix (ffmpeg , aften, hcbatchgui).

    The program itself requires no installation. Just download and extract the .gz file. You will need to install some support programs yourself though. You will need to install aften (I have included a deb package and the source code for your benefit), ffmpeg , and sox. There are links to ffmpeg and sox in the help file included in the download.

    Function wise the gtk version works pretty much the same as the windows version. I did add a few new things reguarding avisynth. You can now customize your avisynth scripts by adding other plugins and commands different from the three (convolution3d, msharpen, reinterpolate) included with hcbatchgui.
    Also you can now batch create your avisynth scripts using HCbatchGUI linux instead of creating them one at a time using the wine version.

    The only function not working right now is the log box. You will have to follow the apps progress from the terminal boxes that pop up.

    Click here to get a look at the new linux version

    Download 14.5 GTK here
    Download updated hcbatchgui for above package
    Download source


    Edit= If you have problems with hcenc not starting then right click HCenc_022.exe and select permissions and check the box that says allow executing as a program.



    original post Jan 03, 2008
    OS used Ubuntu 7.10

    Okay I've done some more testing and found that HCbatchGUI is sort of working in Wine. [s:f34a3ebfc3]The "avisynth script generator" doesn't work so you have to write your own avisynth scripts (this is easily accomplished through wine with fitcd)[/s:f34a3ebfc3] fixed now. HCenc batch video encoding does work as long as you have the right codecs installed. Most avi's I've come across have decoded okay with xvid however I did have to download and install ffdshow to get a few working. So far ac3 encoding and wav extraction isn't workingbuggy so I deleted the audio functions. DGpulldown does seem to be working okay though.

    So you might go to the download page
    HCbatchGUI for linux wine
    and grab version 14.2 and install it with wine to give it a try.

    [s:f34a3ebfc3]You'll have to create your own avs scripts and process your audio seperatly until I can reconfigure the app to get those working.[/s:f34a3ebfc3] avisynth scripts fixed now but audio still not working This app was written primarily for windows but I'm hoping to get it fully working in linux via wine. For now it's nice to at least have HCenc batch capabilities in linux!
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  2. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Okay I have updated HCbatchGUI. You can now download the latest version (v14.2) that has been optimized for use in linux through wine. The issues with the audio and the avisynth script generation have been fixed. This version now has the same functionality as the windows only version minus the audio functions.

    Sourceforge download for HCbatchGUI optimized for linux wine

    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  3. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    I finally got around to installing avisynth in ubuntu and trying this out. when I hit the open avi button nothing happens. Do need something else installed?
    Quote Quote  
  4. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Hello,

    Other than installing avisynth and whatever codecs you need there isn't any other software you need to install. The problem really is poor documentation on my part. You need to select all of your avisynth options (overscan, frame size, any filters) before hitting the Open Avi button.

    Also I've noticed on a few of my encodes that the audio sometimes cuts out somewhere near the end (only happens in linux though... no problems with audio in windows). It doesn't seem to happen on all encodes but I have noticed it on a few so you might check the audio that hcbatchgui outputs and make sure that it encodes it correctly all the way to the end before you delete your source files. It may be neccessary to encode your audio separatly. I'm still trying to figure out if it was an issue with certain source files or with wine. I may have to use another audio program to extract the wav for ac3 encoding. Video encoding is still rock solid though.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  5. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Thanks got it working
    Quote Quote  
  6. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Uploaded HCbatchGUI 14.2 today

    Added some new features in the template and a new avisynth filter. I completely removed audio functionality in this (linux wine) version as it is still buggy. Sometimes audio encodes would cut out toward the end of the files. I am hopping to figure out a fix for this but until I do audio is gone. You can encode your audio to ac3 with native linux avidemux or through the use of shell scripts.

    Here is a shell script that I use to encode audio from avi files. Make sure you have ffmpeg and aften installed.
    Code:
    #! /bin/bash
    
    for i in *.avi
    do
            BASEFILENAME=$(basename "$i")
    
            ffmpeg -i "$i" -ar 48000 "$BASEFILENAME.wav" && \
            aften "$BASEFILENAME.wav" -acmod 2 -readtoeof 1 -b 192 "$BASEFILENAME.ac3" && \
            rm "$BASEFILENAME.wav"
    done

    New in version 14.2 linux wine
    Added new avisynth filter Reinterpolste411 that helps keep dv colorspace correct.
    Added VBR bias to the template
    Added LastIframe to the template.
    Added Lumgain to the template
    Added Avsreload to the template to help with source mismatch errors.
    Removed Audio functions from the linux wine version. Audio was buggy and sometimes would not encode whole file. Hopefully will fix in a future release.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  7. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Thanks for the new version.
    Not to sound stupid, but how do I use the script for audio , do I just enter it in the terminal? or do i use something else. I'm a complete noob at scripting and linux.
    Quote Quote  
  8. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Well first you need to download and install ffmpeg and aften from synaptic.

    Now you can go about this a couple of different ways. You can save the above code text as a file in your /usr/bin directory. Then you just open a terminal to your directory containing the avi's. Type whatever you name that text file and your audio encodes should start.

    Or you could just open terminal and change directory to where your avi's are and copy/paste the code text directly into terminal.

    Or you can save the code as a nautilus script and run it from nautilus which is what i do.
    Check this thread for more info on nautilus scripts. The bottom code in my post on that page is what you will need. It's probably the easiest way to do this. Just save that code in a text editor. Then right click on the file you just saved and click properties, permissions, make file executable. Then when you are in your avi file directory just right click go to scripts and select the file you just saved.
    nautilus script
    Code:
    #! /bin/bash
    
    for i in *.avi
    do
            BASEFILENAME=$(basename "$i")
    
            ffmpeg -i "$i" -ar 48000 "$BASEFILENAME.wav" && \
            aften "$BASEFILENAME.wav" -acmod 2 -readtoeof 1 -b 192 "$BASEFILENAME.ac3" && \
            rm "$BASEFILENAME.wav"
    done
    
    zenity --info --text="Finished Encoding AC3 Files"
    I know it may seem daunting at first but once you do a couple it gets easier. Post back if you need any help with it.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  9. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Ok I think I got how to add scripts to .gnome2/nautilus(do the files still have a .txt after you make them executable), I couldnt find aften in synaptic
    Quote Quote  
  10. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    No it dosen't even need an extension but it's okay if it does. You probably don't have the right repositories added to your source list. That's okay. Here is an aften deb.
    http://3v1n0.tuxfamily.org/apt-repository/pool/feisty/3v1n0/aften_0.07-0~3v1ubuntu1_i386.deb

    I got it from this page
    http://3v1n0.tuxfamily.org/apt-repository/dists/feisty/3v1n0/
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  11. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Thanks for the aften deb I redid the scripts using the text editor in applications and its working great now. I never could figure out the right repositories to add to my source list.
    Quote Quote  
  12. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    No problem! Happy encoding!

    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  13. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Also thanks to forum member GMaq I have learned that you can import presets in winff. This way you can use a the simple gui in winff to encode your ac3 audio. Just download winff and winff_ac3_presets.tar.gz. Open winff and click file->Import Presets-> Select the ac3 presets and click open.

    If you are more comfortable with a gui this can help.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  14. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Cool thanks , I'll get this too, cant have too many apps ya know. I'm actually starting to get the hang of using the scripts you posted, so much easier to use I found a problem with ac3192channel2 and fixed it. it was missing the <presets> at the beginning.
    Quote Quote  
  15. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Yeah I actually prefer scripts. Especially nautilus scripts. So easy just to right click and choose your script and away you go!

    But there are those that will prefer a gui and that's why I posted the winff method to encode audio.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  16. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    I posted a problem I found in the post above yours heres all the presets with the
    fixed ac3192channel2 preset.



    winff_ac3_presets.tar.gz
    Quote Quote  
  17. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Thanks for the heads up. I edited my post with the corrected files also.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  18. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    I am still woking on a full rewrite of HCbatchGUI to be a completely linux based app but in the meantime I have thrown together a nautilus script that can be used to batch encode video and audio using HCenc for video and native linux ffmpeg and aften for audio.

    #! /bin/bash

    ################################################## #############################
    #
    #
    #
    # AUTHOR: freebird73717
    #
    # DESCRIPTION: This script encodes avs video files with HCenc and avi audio files
    # with FFmpeg and Aften.
    #
    # REQUIREMENTS: Nautilus file manager
    # feh (see http://www.linuxbrit.co.uk)
    # zenity/gdialog, which is usually included in the gnome-utils package
    # FFmpeg
    # Aften
    # HCenc
    #
    # INSTALLATION: GNOME 1.4.x: copy this script to the ~/Nautilus/scripts directory
    # GNOME 2.x: copy to the ~/.gnome2/nautilus-scripts directory
    # Copy your HCenc ini-template files to any directory other than a wine directory.
    # Zenity can't read into the wine directory.
    #
    # USAGE: Make sure your avs and avi files are in the same directory.
    # Right click in your video files directory, go to Scripts, and then select this script.
    # You will then be asked to select an Output Directory for your video and audio files.
    # Next you will be asked to select your HCenc ini-template file.
    # Then you will enter the Average Video Bitrate and AC3 Audio bitrate.
    # HCenc will then encode your avs files and ffmpeg and aften will encode your avi to ac3 audio.
    #
    #
    #
    # WHAT WORKS: Everything but the cancel buttons
    #
    # WHAT DOSENT
    # WORK : The aforementioned cancel buttons
    #
    # VERSION INFO:
    # 0.1 (20080311) - Initial public release
    #
    #
    #
    # LICENSE: GNU GPL
    #
    ################################################## #############################

    location=$(zenity --file-selection --directory --title="Select Audio & Video Output Directory")

    HCini=$(zenity --file-selection --title="Select HCenc ini-template file")

    BITRATE=$(zenity --title="Video AVG Bitrate" --entry)

    AUDIOBITRATE=$(zenity --title="Audio Bitrate" --entry)

    for i in *.avs
    do
    BASEFILENAME=$(basename "$i")
    "/home/yourusername/.wine/drive_c/Program Files/HCbatchGUI/HCenc_022.exe" -i "$i" -o "$location/$BASEFILENAME.m2v" -b $BITRATE -maxbitrate 8500 -ini "$HCini"
    done
    for j in *.avi
    do

    ffmpeg -i "$j" -ar 48000 "$j.wav" && \
    aften "$j.wav" -acmod 2 -readtoeof 1 -b $AUDIOBITRATE "$location/$j.ac3" && \
    rm "$j.wav"
    done
    zenity --info --text="Finished Encoding Video & Audio Files With HCenc and Aften!"
    Make sure to change the text in bold blue to the path of your HCenc executable. Also make sure to copy your HCenc ini/template files from your wine directory to some other directory because zenity can't look into the wine directory.

    The maxbitrate for the video is set to 8500 but you can change that by changing the scripts text.

    Hopfully this will help some until I get the rewrite of the gui done (which will probably take some time.)
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  19. Get Slack disturbed1's Avatar
    Join Date
    Apr 2001
    Location
    init 4
    Search Comp PM
    If you're going to split out to a sperate wav file, might as well normalize it. Ubuntu/Debian use normalize-audio, other distros use normalize(-mp3-ogg)

    And....And... while were at it , add an option for direct stream copy (-acodec copy) or down mixing, up mixing (-ac 2/6). Or....you could just encode directly to ac3 with ffmpeg. Aften is actually ffmpeg's a52 encoder, so the results should be the same with recent builds. Even though aften will use 2 threads if possible, there wouldn't be much speed gained because of the output to wav first. Don't forget, with ffmpeg the -ab is in bits, so 192000 or 192k

    ffmpeg -i input.blah -vn -ac 2 -ar 48000 -ab 192k out.ac3

    Which toolkit you looking to write the gui with? PYGTK, wxWidgets, GLADE..............

    Let me know if you want to implement a pure Linux native encoding solution. I can pass on some scripts that pipe mplayer output to mpeg2enc (and yuvfilters if mplayer's don't cut it)
    Linux _is_ user-friendly. It is not ignorant-friendly and idiot-friendly.
    Quote Quote  
  20. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Yeah there are several improvments I could add to this script I just whipped this out quick today. I knew aften was based off of ffmpeg but I thought there were improvements made to get a better sound. If I'm mistaken then I'll just use ffmpeg to output ac3 and save a step. In my windows gui I actually do offer a upmix function (ironically enough a process I learned while surfing a linux forum several months ago).

    Right now I'm playing with glade but I've also looked at wxWidgets. I've got a few others I'm going to try as well. Since I'm basically starting from scratch I'm trying out as many toolkits as I can until I find one that I like the best.

    I appreciate the offer for the mplayer scripts. I may take you up on that. My primary focus is getting HCbatchGUI to be totally nix (with the exception of HCenc of course!)

    It's been a while since I've been in windows and to be honest it feels good!
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  21. Get Slack disturbed1's Avatar
    Join Date
    Apr 2001
    Location
    init 4
    Search Comp PM
    Can't say I've done any serious listening tests between ffmpeg and aften. I should, but I'm lazy like that :P

    Good luck finding an IDE/Toolkit. I honestly believe there are of more IDEs in Linux than there are text editors.
    Linux _is_ user-friendly. It is not ignorant-friendly and idiot-friendly.
    Quote Quote  
  22. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Is there a script for doing pulldown of 23.976 to 29.97?
    Quote Quote  
  23. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    I could do one for you easily enough. I'll post one back here later today.

    BTW if you're interested I'm almost through with the linux version of HCbatchGUI. Mabey be ready to release it in a couple weeks or so.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  24. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Cool thanks, and yes I'm interested in the new version.
    Quote Quote  
  25. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Nautilus Script for applying DGpulldown to your m2v video files.

    #! /bin/bash

    ################################################## #############################
    #
    #
    #
    # AUTHOR: freebird73717
    #
    # DESCRIPTION: This script applies DGPulldown to selected m2v video files
    #
    #
    # REQUIREMENTS: Nautilus file manager
    # feh (see http://www.linuxbrit.co.uk)
    # zenity/gdialog, which is usually included in the gnome-utils package
    # DGPulldown.exe
    #
    #
    #
    # INSTALLATION: GNOME 1.4.x: copy this script to the ~/Nautilus/scripts directory
    # GNOME 2.x: copy to the ~/.gnome2/nautilus-scripts directory
    #
    #
    #
    # USAGE:
    # Right click in your video m2v files directory, go to Scripts, and then select this script.
    # You will then be asked to select an Output Directory for your video and audio files.
    # Next you will be asked to enter your source files frame rate.
    # Then you will be asked to enter your destination frame rate.
    #
    #
    #
    #
    # WHAT WORKS: Everything but the cancel buttons
    #
    # WHAT DOSENT
    # WORK : The aforementioned cancel buttons
    #
    # VERSION INFO:
    # 0.1 (20080429) - Initial public release
    #
    #
    #
    # LICENSE: GNU GPL
    #
    ################################################## #############################

    location=$(zenity --file-selection --directory --title="Select DGPulldown Output Directory")


    SOURCEFPS=$(zenity --title="SOURCE FPS" --entry)

    DESTFPS=$(zenity --title="DESTINATION FPS" --entry)



    for i in *.m2v
    do
    BASEFILENAME=$(basename "$i")
    "/home/username/path/to/your/dgpulldown/DGPulldown.exe" "$BASEFILENAME" -srcfps $SOURCEFPS -destfps $DESTFPS -o "$location/pulldown_$BASEFILENAME"
    done
    zenity --info --text="Finished Applying Pulldown!"
    The only thing you need to change is the path to your DGPulldown.exe written in bold.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  26. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Thanks. should the destination framerate be 29.970 or just 29.97?
    Quote Quote  
  27. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    29.97 is fine.

    edit- One thing to remember when applying pulldown is that when your destination is 29.97 the lowest source fps you can apply pulldown to is 19.98
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  28. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by freebird73717
    Nautilus Script for applying DGpulldown to your m2v video files.
    I'm wondering why not use the pulldown option in HCenc in making the MPEG?

    I know a few versions ago there were some issues with that, but it seems reliable now, for the standard 23.976-29.97 anyway.

    Of course, if you've already encoded the MPEGs, you have to use a pulldown app.
    Quote Quote  
  29. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Honestly the only time I use dgpulldown is when doing irregular pulldown like going from pal to ntsc. Otherwise I always use hcenc's built in pulldown. Like you I always add the pulldown flag to my scripts (well at least my ini files). HCenc just ignores it if the source isn't 23.976

    But DKruskie asked for a pulldown script so I do my best to help!

    DKruskie I know you are using my earlier nautilus script for hcenc and ffmpeg/aften. If you will just add *PULLDOWN to your ini files hcenc will apply standard pulldown to all 23.976 source files and process normally those that aren't 23.976.

    edit- or you could just add -pulldown between -maxbitrate and -ini in the original nautilus script
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  30. Member
    Join Date
    Mar 2003
    Location
    somewhere in time
    Search Comp PM
    Thanks, to be honest i never noticed the pulldown in the template settings
    I'll make sure I set in the ini with pulldown now. Btw your script works great
    Quote Quote  



Similar Threads