VideoHelp.com Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. Is there a way to encode video using the Cinepak codec on Linux? FFMPEG can only decode.
    Quote Quote  

  2. Member
    Join Date: Dec 2005
    Location: none
    You could use VirtualDub and ffdshow under Wine. I assume you're aware that Cinepak is very old and outdated.
    Quote Quote  

  3. Originally Posted by jagabo View Post
    You could use VirtualDub and ffdshow under Wine.
    Where possible I'd like to use only native Linux apps. Are there any for Linux?

    Originally Posted by jagabo View Post
    I assume you're aware that Cinepak is very old and outdated.
    Yeah. I need it for a very specific purpose
    Quote Quote  

  4. Member
    Join Date: Dec 2005
    Location: none
    Originally Posted by hellocatfood View Post
    Are there any for Linux?
    Not that I know of. But I don't have much experience with Linux. I think the problem is that Cinepak is so old (and proprietary) that nobody has bothered porting it to Linux.
    Quote Quote  

  5. Unregistered El Heggunte's Avatar
    Join Date: Jun 2009
    Location: unknown
    Mencoder can use the VfW dlls
    (I know this works on Windows,
    not sure if it works on Linux as well) :

    http://www.mplayerhq.hu/DOCS/HTML/en...r-windows.html
    Quote Quote  

  6. Member
    Join Date: Dec 2005
    Location: none
    oops, nevermind.
    Quote Quote  

  7. Originally Posted by El Heggunte View Post
    Mencoder can use the VfW dlls
    (I know this works on Windows,
    not sure if it works on Linux as well) :

    http://www.mplayerhq.hu/DOCS/HTML/en...r-windows.html
    Thanks! Looks like I'm some way there. I've got the iccvid.dll file on my computer (probably from medibuntu).

    It looks like I've only got one more hurdle to jump over.

    From running this code
    Code:
    mencoder infile.avi -vf format=bgr15 -ovc vfw -xvfwopts codec=iccvid.dll -oac mp3lame -o outfile.avi
    I get this error:
    Code:
    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.
    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.
    If I swap around the order of the code I get a segmentation fault. Can you tell me where I'm going wrong?
    Quote Quote  

  8. Member
    Join Date: Dec 2005
    Location: none
    Cinepak requires RGB24 or RGB32 as input. I think the argument you want is "-pix_fmt rgb24".
    Quote Quote  

  9. Just to clarify my issue I'll provide a sample video and my process. I'll be working with this short clip http://ubuntuone.com/p/iJr/

    I converted this to an avi in the rgb24 colourspace
    Code:
    ffmpeg -i vid.mov -vcodec png -pix_fmt bgr24 outfile.avi
    I then tried to convert this to an avi that uses the cinepak codec
    Code:
    mencoder outfile.avi -vf format=bgr24 -ovc vfw -xvfwopts codec=iccvid.dll -oac mp3lame -o outfile_2.avi
    This is where I got my segmentation fault:
    Code:
    MP3 audio selected.
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    Opening video filter: [flip]
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    [swscaler @ 0xb6315fc0]using unscaled rgb24 -> bgr24 special converter
    Opening video filter: [expand]
    Expand: -1 x -1, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
    Starting compression:
     Input format:
      biSize 40
      biWidth 1280
      biHeight 720
      biPlanes 1
      biBitCount 24
      biCompression 0x0 ('')
      biSizeImage 2764800
     Output format:
      biSize 40
      biWidth 1280
      biHeight 720
      biPlanes 1
      biBitCount 24
      biCompression 0x64697663 ('cvid')
      biSizeImage 254100
     Output format after query/begin:
      biSize 40
      biWidth 1280
      biHeight 720
      biPlanes 1
      biBitCount 24
      biCompression 0x64697663 ('cvid')
      biSizeImage 254100
    Segmentation fault
    Just to be sure I tried this code with both bgr24 and rgb24 arguments. Same results

    I'm surprised that it still tries to convert to bgr24 when I've specifically told ffmpeg to use bgr24 in the first place.

    As for the segfault, is this a problem with the software or the video that I'm using?
    Quote Quote  

  10. Unregistered El Heggunte's Avatar
    Join Date: Jun 2009
    Location: unknown
    Hummm...

    --- the file "vid.mov" is not a .MOV, but a .AVI, to begin with

    --- on my XP machine, only ffplay and Mplayer can display something besides 100%-black frames, and that something includes huge artifacts

    Are you using outdated versions of both ffmpeg and Mencoder?
    Quote Quote  

  11. After I updated to the latest Ubuntu (11.04) I updated ffmpeg and mplayer/mencoder to the svn versions and still got segmentation faults. It appears the problem comes from the version of iccvid.dll that comes from the w32codecs package from medibuntu. As described in this bug report the version that is supplied is corrupted in some way, hence the segfaults. After I found an old version from a Windows 98 cd encoding worked for me
    Quote Quote  




Similar Threads

  1. which is better Mainconcept MPEG Encoder or H.254 Encoder
    By d_unbeliever in forum Newbie / General discussions
    Replies: 5
    Last Post: 19th Apr 2012, 00:15
  2. How it possible Video: X264 encoder with Matroska encoder extension?
    By flash_os in forum Newbie / General discussions
    Replies: 1
    Last Post: 11th Feb 2012, 09:13
  3. Your Best Video Encoder/Re-encoder???
    By iqbal88 in forum DVD Ripping
    Replies: 2
    Last Post: 15th Aug 2011, 08:09
  4. HC Encoder....help
    By Creed in forum Video Conversion
    Replies: 3
    Last Post: 3rd Apr 2011, 20:12
  5. Replies: 2
    Last Post: 5th Nov 2009, 01:41
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools