Announcement

Collapse
No announcement yet.

mencoder freezes Kubuntu (solved)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mencoder freezes Kubuntu (solved)

    Hey there,

    I've been trying (unsuccessfully) to merge .srt files with .avi files. However, regardless of whether I do this with a gui or in terminal, my compter freezes and refuses to respond at about the 60% mark.

    I should probably add that I'm using the Karmic 32Bit installation. Plus, my computer is hardly state-of-the-art, so it's probably the main problem here.

    What I was wondering was if anyone has any ideas about ways for freeing up enough resources to merge the avi and .srt files with mencoder. I had a look on the net and found a suggestion to not run the x server, and then run mencoder from the command line ...

    Any suggestions would be appreciated.


    #2
    Re: mencoder freezes Kubuntu

    Kubuntu 9.10 / MEncoder SVN-r29237-4.4.1 (Version: 2:1.0~rc3+svn20090426-1ubuntu10.1)


    Testing embedding of the .srt /1/ file to the .avi /3/ file (xvid) with the command /2/:
    Code:
    mencoder -sub Test.srt -ovc xvid -xvidencopts bitrate=1167 -oac copy -o Output.avi Test.avi
    No problems at here.


    Can you play the unmerged avi+srt without problems ? (VLC/SMplayer)

    How high is your CPU temperature ? (tempereture problem -> computer could "freeze")


    /1/ > SubRip wiki
    /2/ > ~ To add SRT Subtitles to AVI files
    /3/ > Audio Video Interleave
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: mencoder freezes Kubuntu

      How large are the two files you are merging, and how much space available is on the HD?
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: mencoder freezes Kubuntu

        Thanks for the help.

        Originally posted by Rog131
        Can you play the unmerged avi+srt without problems ? (VLC/SMplayer)
        Yes, unmerged files work fine. PLus, the CPU temperature seems to stay pretty static and doesn't show any sign of spiking.
        I tried :
        mencoder -sub Test.srt -ovc xvid -xvidencopts bitrate=1167 -oac copy -o Output.avi Test.avi
        which was different from the code I'd been using :

        mencoder -o fileiwantatend.avi -sub subtitlesfile.srt -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell theactualmovie.avi
        This time mencoder nearly completed 100% of the .avi and .srt files it was merging, although the last minute and 50 seconds seemed to get cut off... I guess it's not a big deal but I would quite like to get it processing the entire file.

        Here was the output :
        MEncoder SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
        success: format: 0 data: 0x0 - 0xe8a6000
        AVI file format detected.
        [aviheader] Video stream found, -vid 0
        [aviheader] Audio stream found, -aid 1
        VIDEO: [XVID] 576x432 12bpp 29.970 fps 998.2 kbps (121.9 kbyte/s)
        [V] filefmt:3 fourcc:0x44495658 size:576x432 fps:29.970 ftime:=0.0334
        SUB: Detected subtitle file format: subviewer
        SUB: Read 498 subtitles.
        xvid: using library version 1.1.2 (build xvid-1.1.2)
        Opening video filter: [expand osd=1]
        Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
        ================================================== ========================
        Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
        Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
        ================================================== ========================
        audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 B/s=14480 sample-0)
        VDec: vo config request - 576 x 432 (preferred colorspace: Planar YV12)
        VDec: using Planar YV12 as output csp (no 0)
        Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
        videocodec: XviD (576x432 fourcc=44495658 [XVID])
        xvid: par=0/0 (vga11), displayed=576x432, sampled=576x432
        xvid: CBR Rate Control -- bitrate=1167kbit/s
        Writing header...
        ODML: vprp aspect is 4:3.
        Setting audio delay to 0.024s.
        Writing header...
        ODML: vprp aspect is 4:3.
        Setting audio delay to 0.024s.
        Erreur de segmentation2%) 31.65fps Trem: 1min 268mb A-V:0.033 [1165:115]
        mike@mike-desktop:~/Vidéos$

        Comment


          #5
          Re: mencoder freezes Kubuntu

          Originally posted by Snowhog
          How large are the two files you are merging, and how much space available is on the HD?
          I've been using two relatively small files to use as test subjects : the .avi file is 232.6 Mio and teh .srt 39.5Kio (sorry if that infois useless to you I'm a novice computer user)

          I'm not sure how to show available space on the HD but df -h gives :
          mike@mike-desktop:~$ df -h
          Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
          /dev/sda1 109G 62G 42G 60% /
          udev 755M 248K 754M 1% /dev
          none 755M 2,2M 752M 1% /dev/shm
          none 755M 92K 754M 1% /var/run
          none 755M 0 755M 0% /var/lock
          none 755M 0 755M 0% /lib/init/rw

          Comment


            #6
            Re: mencoder freezes Kubuntu

            The segmentation error at the end implies one or both of the files 'might' contain bad data towards the end, that, or you have a memory problem presenting itself.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: mencoder freezes Kubuntu

              Originally posted by Snowhog
              The segmentation error at the end implies one or both of the files 'might' contain bad data towards the end, that, or you have a memory problem presenting itself.
              ok, I guess the obvious next step would be to run mencoder with some other files to see if i keep getting the same error... I'll get started on that.

              more importantly, if it is a memory problem does anyone have a possible workaround that doesn't involve spending money... (which is what i was trying to ask - although badly perhaps - in paragraph 3 of my original post). I'm currently unemployed, broke, and about to go on holiday

              I'll try testing a few different solutions in the meantime and post back if i have any success.

              thanks again for the help

              Mike

              Comment


                #8
                Re: mencoder freezes Kubuntu

                Desktop or laptop PC?
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: mencoder freezes Kubuntu

                  desktop pc

                  Comment


                    #10
                    Re: mencoder freezes Kubuntu

                    I stopped any programs that I didn't need to run, and then cntl+alt+f1 (rather than running things in Konsole) and used the code Rog131 gave to merge a couple of different files, which all went without a hitch. I then went back and ran the first avi file that originally had a segmentation error. This time it, too, went perfectly. No computer freeze and no errors.

                    I'm not really sure why but everything seems to be working now.

                    cheers.

                    Comment


                      #11
                      Re: mencoder freezes Kubuntu (solved)

                      Cool. Glad you found a solution.
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment

                      Working...
                      X