codecs for Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • O-pos
    Gold Member
    Gold Member
    • Dec 2005
    • 125

    #16
    anonymez, you're great guy, everything works now without problem. Thanks!

    So, I think it's time to say goodbye Microsoft..

    Is there eny way to emulate terminal with something else than gnome terminal? for example vim, emacs.. otherwise whole text is in black color and hard to find if you're looking for something..

    how does one have to write period in terminal? I mean if I want to play movie die hard.avi, I have to write mplayer /../video/die hard.avi but it doesn't recognize period. however, if I rename "die hard" to "diehard", then it accepts diehard.avi in terminal. is there any symbol to use instead of " "?

    Comment

    • anonymez
      Super Moderator
      • Mar 2004
      • 5525

      #17
      I mean if I want to play movie die hard.avi, I have to write mplayer /../video/die hard.avi but it doesn't recognize period. however, if I rename "die hard" to "diehard", then it accepts diehard.avi in terminal.
      For paths/directories with spaces, wrap them in apostrophes, eg:

      Code:
      mplayer '/user/home/file.mkv'
      Alternatively, you can just drag & drop any file into the terminal and it will automatically enter the path & file name.

      Or just run gmplayer for a simple GUI

      Or just right-click the file, Properties-->Open With. Set mplayer as the default command.
      "What were the things in Gremlins called?" - Karl Pilkington

      Comment

      • O-pos
        Gold Member
        Gold Member
        • Dec 2005
        • 125

        #18
        Bad thing happened

        I was watching various flv music videos and when I opened one of them there was no sound - no audio. I thought that maybe it was because of file and opened other files, which played well previously. Again no sound. Then I opened Rhythmbox and played mp3 files but there was no sound. There was no sound in Ubuntu at all. I checked the volume - it was on maximum. Then I restarted it few times - no results. Then I restarted to Windows and the sound was ok. Then I restarted again Ubuntu and no sound..

        Maybe there was some modification in certaing audio settings without my approval wich I don't know?

        Comment

        • anonymez
          Super Moderator
          • Mar 2004
          • 5525

          #19
          Don't think it had anything to do with installing mplayer or codecs. Try poking around in System-->Preferences-->Sound.
          "What were the things in Gremlins called?" - Karl Pilkington

          Comment

          • O-pos
            Gold Member
            Gold Member
            • Dec 2005
            • 125

            #20
            I tried but doesn't work. in "sound events" and "music and movies" the default setting was "autodetect" I switched them manually to all available possibilities but without results.

            Comment

            • O-pos
              Gold Member
              Gold Member
              • Dec 2005
              • 125

              #21
              Oh, thanks god, I found the reason

              the problem was in volume control: "PCM" volume was on 0.

              So now eveything works very well, again

              Comment

              • O-pos
                Gold Member
                Gold Member
                • Dec 2005
                • 125

                #22
                I wanted that mplayer could also work the online embedded videos and installed mozilla plugin (in terminal: sudo apt get install mozilla-mplayer) and it didn't work and even the mplayer got old problems back like flv audio-video dissociations. I removed everything and installed mplayer again from that package you gave to me and it works fine, but where can I get the right plugin for mozilla?

                Comment

                • anonymez
                  Super Moderator
                  • Mar 2004
                  • 5525

                  #23
                  Code:
                  sudo apt-get install flashplugin-nonfree
                  "What were the things in Gremlins called?" - Karl Pilkington

                  Comment

                  • O-pos
                    Gold Member
                    Gold Member
                    • Dec 2005
                    • 125

                    #24
                    my mplayer has strange problem with DVDs. If I take standard rent-DVD and try to play with mplayer, it doesn't play well. Instead, it gets very ugly pixels of ugly colors, and the sound is also accelerated/slurred.

                    Code:
                     a52: error at resampling
                    a52: CRC check failed!  
                    a52: error at resampling
                    a52: CRC check failed!  0.106 ct: -0.036  14/ 14  0%  0% 38.1% 1 0 
                    a52: error at resampling
                    a52: CRC check failed!  0.276 ct: -0.044  24/ 24  0%  0% 23.0% 1 0 
                    a52: error at resampling
                    a52: CRC check failed!  0.170 ct: -0.048  25/ 25  0%  0% 60.3% 2 0 
                    a52: error at resampling
                    a52: CRC check failed!  
                    a52: error at resampling
                    a52: CRC check failed!  0.228 ct: -0.030  38/ 38  0%  0% 39.8% 5 0 
                    a52: CRC check failed!  0.060 ct: -0.062  46/ 46  0%  0% 33.2% 5 0 
                    a52: error at resampling
                    one DVD didn't even work at all:

                    Code:
                    ~$ mplayer dvd://
                    MPlayer dev-SVN-r22974-4.1.2 (C) 2000-2007 MPlayer Team
                    CPU: Intel(R) Pentium(R) M processor 1.50GHz (Family: 6, Model: 13, Stepping: 6)
                    CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
                    Compiled with runtime CPU detection.
                    mplayer: could not connect to socket
                    mplayer: No such file or directory
                    Failed to open LIRC support. You will not be able to use your remote control.
                    
                    Playing dvd://.
                    libdvdread: Encrypted DVD support unavailable.
                    There are 13 titles on this DVD.
                    There are 1 chapters in this DVD title.
                    There are 1 angles in this DVD title.
                    
                    *** libdvdread: CHECK_VALUE failed in ifo_read.c:927 ***
                    *** for vts_ptt_srpt->nr_of_srpts != 0 ***
                    
                    libdvdread: Unable to read PTT search table.
                    libdvdread: Invalid title IFO (VTS_01_0.IFO).
                    Cannot open the IFO file for DVD title 1.
                    No stream found to handle url dvd://
                    
                    
                    Exiting... (End of file)
                    If anyone has an idea, that has to be you anonymez. what do you think the reason should be? something with encrypting and security issue?
                    Last edited by anonymez; 25 May 2007, 05:28 PM.

                    Comment

                    • anonymez
                      Super Moderator
                      • Mar 2004
                      • 5525

                      #25
                      Looks like you need libdvdcss, which is not available in the official repositories due to legal issues. You can either compile yourself or get it from Medibuntu.

                      After running those commands, do a

                      Code:
                      sudo apt-get update
                      Code:
                      sudo apt-get install libdvdcss2
                      and things should run fine.
                      "What were the things in Gremlins called?" - Karl Pilkington

                      Comment

                      • O-pos
                        Gold Member
                        Gold Member
                        • Dec 2005
                        • 125

                        #26
                        libdvdcss2 cannot be installed, I get following:
                        Code:
                         $ sudo apt-get install libdvdcss2Reading package lists... Done
                        Building dependency tree       
                        Reading state information... Done
                        Package libdvdcss2 is not available, but is referred to by another package.
                        This may mean that the package is missing, has been obsoleted, or
                        is only available from another source
                        E: Package libdvdcss2 has no installation candidate
                        wacho@TecraA2:~$
                        Before that I did everyting as described without problems.
                        Last edited by O-pos; 26 May 2007, 05:47 AM.

                        Comment

                        • O-pos
                          Gold Member
                          Gold Member
                          • Dec 2005
                          • 125

                          #27
                          OK, I downloaded and installed libdvdcss2, but from another site:


                          now, the DVD with following previous problems:
                          Code:
                           
                          
                          a52: error at resampling
                          a52: CRC check failed!  0.106 ct: -0.036  14/ 14  0%  0% 38.1% 1 0 
                          a52: error at resampling
                          a52: CRC check failed!  0.276 ct: -0.044  24/ 24  0%  0% 23.0% 1 0 
                          a52: error at resampling</pre>
                          works fine.

                          Another DVD still doesn't work, this time showing in the terminal following:
                          Code:
                          $ mplayer dvd://
                          MPlayer dev-SVN-r22974-4.1.2 (C) 2000-2007 MPlayer Team
                          CPU: Intel(R) Pentium(R) M processor 1.50GHz (Family: 6, Model: 13, Stepping: 6)
                          CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
                          Compiled with runtime CPU detection.
                          mplayer: could not connect to socket
                          mplayer: No such file or directory
                          Failed to open LIRC support. You will not be able to use your remote control.
                          
                          Playing dvd://.
                          libdvdread: Using libdvdcss version 1.2.9 for DVD access
                          There are 13 titles on this DVD.
                          There are 1 chapters in this DVD title.
                          There are 1 angles in this DVD title.
                          
                          libdvdread: Attempting to retrieve all CSS keys
                          libdvdread: This can take a _long_ time, please be patient
                          
                          libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000139
                          libdvdread: Elapsed time 0
                          libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00021308
                          libdvdread: Elapsed time 0
                          libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00021346
                          libdvdread: Elapsed time 0
                          libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0003a9db
                          libdvdread: Elapsed time 0
                          libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x003a7c24
                          libdvdread: Elapsed time 0
                          libdvdread: Found 3 VTS's
                          libdvdread: Elapsed time 0
                          audio stream: 0 format: ac3 (stereo) language: unknown aid: 128.
                          number of audio channels on disk: 1.
                          number of subtitles on disk: 0
                          MPEG-PS file format detected.
                          VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  8000.0 kbps (1000.0 kbyte/s)
                          ==========================================================================
                          Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
                          VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
                          Could not find matching colorspace - retrying with -vf scale...
                          Opening video filter: [scale]
                          The selected video_out device is incompatible with this codec.
                          Try appending the scale filter to your filter list,
                          e.g. -vf spp,scale instead of -vf spp.
                          VDecoder init failed :(
                          Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
                          Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
                          ==========================================================================
                          ==========================================================================
                          Opening audio decoder: [liba52] AC3 decoding with liba52
                          Using SSE optimized IMDCT transform
                          Using MMX optimized resampler
                          AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
                          Selected audio codec: [a52] afm: liba52 (AC3-liba52)
                          ==========================================================================
                          AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
                          Starting playback...
                          VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
                          VDec: using Planar YV12 as output csp (no 0)
                          Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
                          VO: [xv] 720x576 => 768x576 Planar YV12 
                          A:   0.4 V:   0.3 A-V:  0.058 ct:  0.008   2/  2 ??% ??% ??,?% 0 0 
                          
                          Exiting... (End of file)

                          Comment

                          • anonymez
                            Super Moderator
                            • Mar 2004
                            • 5525

                            #28
                            Do the region settings of the drive & discs match?
                            "What were the things in Gremlins called?" - Karl Pilkington

                            Comment

                            • O-pos
                              Gold Member
                              Gold Member
                              • Dec 2005
                              • 125

                              #29
                              I don't know. how can I find that out? at this moment this is the only DVD which makes problems. All the other encrypted DVDs work well.

                              Comment

                              • O-pos
                                Gold Member
                                Gold Member
                                • Dec 2005
                                • 125

                                #30
                                There was problem with another DVD: audio - video dissociation, freezing, premature playback termination:

                                Code:
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x05
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x06
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                *** Zero check failed in ifo_read.c:618
                                    for cell_position[i].zero_1 = 0x04
                                
                                libdvdread: Attempting to retrieve all CSS keys
                                libdvdread: This can take a _long_ time, please be patient
                                
                                libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x000005e0
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0001b9d3
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0003de69
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x003a6556
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_93_0.VOB at 0x003f2dfc
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_93_1.VOB at 0x003f2f14
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_94_0.VOB at 0x003f30aa
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_94_1.VOB at 0x003f31c2
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_95_0.VOB at 0x003f3358
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_95_1.VOB at 0x003f3470
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_96_0.VOB at 0x003f3606
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_96_1.VOB at 0x003f371e
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_97_0.VOB at 0x003f38b4
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_97_1.VOB at 0x003f39cc
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_98_0.VOB at 0x003f3b62
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_98_1.VOB at 0x003f3c7a
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_99_0.VOB at 0x003f3e10
                                libdvdread: Elapsed time 0
                                libdvdread: Get key for /VIDEO_TS/VTS_99_1.VOB at 0x003f3f28
                                libdvdread: Elapsed time 0
                                libdvdread: Found 99 VTS's
                                libdvdread: Elapsed time 0
                                audio stream: 0 format: ac3 (5.1) language: en aid: 128.
                                audio stream: 1 format: ac3 (5.1) language: de aid: 129.
                                number of audio channels on disk: 2.
                                subtitle ( sid ): 0 language: en
                                subtitle ( sid ): 1 language: de
                                subtitle ( sid ): 2 language: tr
                                number of subtitles on disk: 3
                                Selected DVD subtitle channel: 0 language: en
                                MPEG-PS file format detected.
                                VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
                                ==========================================================================
                                Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
                                VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
                                Could not find matching colorspace - retrying with -vf scale...
                                Opening video filter: [scale]
                                The selected video_out device is incompatible with this codec.
                                Try appending the scale filter to your filter list,
                                e.g. -vf spp,scale instead of -vf spp.
                                VDecoder init failed :(
                                Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
                                Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
                                ==========================================================================
                                ==========================================================================
                                Opening audio decoder: [liba52] AC3 decoding with liba52
                                Using SSE optimized IMDCT transform
                                Using MMX optimized resampler
                                AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
                                Selected audio codec: [a52] afm: liba52 (AC3-liba52)
                                ==========================================================================
                                AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
                                Starting playback...
                                VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
                                VDec: using Planar YV12 as output csp (no 0)
                                Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
                                VO: [xv] 720x576 => 1024x576 Planar YV12 
                                New_Face failed. Maybe the font path is wrong. 2 ??% ??% ??,?% 0 0 
                                Please supply the text font file (~/.mplayer/subfont.ttf).
                                subtitle font: load_sub_face failed.
                                VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
                                VDec: using Planar YV12 as output csp (no 0)
                                Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
                                VO: [xv] 720x576 => 1024x576 Planar YV12 
                                A:  27.1 V:  24.5 A-V:  2.574 ct:  2.515 733/733 11%  1%  1.6% 0 0 
                                
                                MPlayer interrupted by signal 2 in module: decode_audio
                                Last edited by O-pos; 27 May 2007, 03:10 AM.

                                Comment

                                Working...