Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: dvd::rip will not encode to h264

  1. #1
    Join Date
    Jul 2008
    Beans
    13

    dvd::rip will not encode to h264

    Hi,

    I am running Ubuntu 10.04 x64.

    I have recently started ripping my DVDs to avi files using dvd::rip.
    I was using ffmpeg's mpeg4 codec without any problems, but after reading that the h264 provides better quality for a given file size, I decided to try it.

    However, when I try to encode using h264, I get the following error:

    Job 'Transcode video - title #1, pass 1' failed with error message:
    Command exits with failure code:
    Command: mkdir -m 0775 -p '/home/james/dvdrip-data/singingInTheRain/tmp' && cd /home/james/dvdrip-data/singingInTheRain/tmp && mkdir -p /home/james/dvdrip-data/singingInTheRain/avi/001 && execflow -n 19 transcode -H 10 -a 0 -x vob,null -i \/home\/james\/dvdrip\-data\/singingInTheRain\/vob\/001\/ -w 3042,50 -F h264 -b 192,0,2 -s 3.475 --a52_drc_off -f 25.000 --export_par 106,100 -R 1 -y ffmpeg,null -o /dev/null --progress_meter 2 --progress_rate 25 --avi_limit 9999 && cp x264_2pass.log divx4.log && echo EXECFLOW_OK

    Output: transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
    libdvdread: Using libdvdcss version 1.2.10 for DVD access
    libdvdread: Couldn't find device name.
    libdvdnav: DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
    libdvdnav: DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
    libdvdread: Can't open file VIDEO_TS.IFO.
    libdvdread: Using libdvdcss version 1.2.10 for DVD access
    libdvdread: Couldn't find device name.
    libdvdnav: DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
    libdvdnav: DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
    libdvdread: Can't open file VIDEO_TS.IFO.
    [[34;1mtranscode[0m] V: auto-probing | /home/james/dvdrip-data/singingInTheRain/vob/001/ (OK)
    [[34;1mtranscode[0m] V: import format | MPEG 2 program stream in (module=vob)
    [[34;1mtranscode[0m] A: auto-probing | /home/james/dvdrip-data/singingInTheRain/vob/001/ (OK)
    [[34;1mtranscode[0m] A: import format | AC3 in (module=null)
    [[34;1mtranscode[0m] V: AV demux/sync | (1) sync AV at initial MPEG sequence
    [[34;1mtranscode[0m] V: import frame | 720x576 1.25:1 encoded @ 4:3
    [[34;1mtranscode[0m] V: bits/pixel | 0.293
    [[34;1mtranscode[0m] V: decoding fps,frc | 25.000,0
    [[34;1mtranscode[0m] V: multi-pass | (mode=1) writing data (pass 1) to divx4.log
    [[34;1mtranscode[0m] V: video format | YUV420 (4:2:0) aka I420
    [[34;1mtranscode[0m] A: import format | 0x2000 AC3 [48000,16,4] 192 kbps
    [[34;1mtranscode[0m] A: downmix | 4 channels -> 2 channels
    [[34;1mtranscode[0m] A: export | disabled
    [[34;1mtranscode[0m] V: encoding fps,frc | 25.000,3
    [[34;1mtranscode[0m] A: bytes per frame | 7680 (7680.000000)
    [[34;1mtranscode[0m] A: adjustment | 0@1000
    [[34;1mtranscode[0m] A: rescale stream | 3.475
    [[34;1mtranscode[0m] V: IA32/AMD64 accel | sse3 sse2 sse mmx cmove asm
    [[34;1mtranscode[0m] V: video buffer | 10 @ 720x576 [0x2]
    [[34;1mtranscode[0m] A: audio buffer | 10 @ 48000x2x16
    [[34;1mimport_null.so[0m] v0.2.0 (2002-01-19) (video) null | (audio) null
    [[34;1mimport_vob.so[0m] v0.6.1 (2006-05-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle)
    [[34;1mexport_null.so[0m] v0.1.2 (2001-08-17) (video) null | (audio) null
    [[34;1mexport_ffmpeg.so[0m] v0.3.18 (2008-11-29) (video) Lavc52.20.0 | (audio) MPEG/AC3/PCM
    [[34;1mimport_vob.so[0m] tccat -i "/home/james/dvdrip-data/singingInTheRain/vob/001/" -t vob -d 0 -S 0 | tcdemux -s 0x80 -x mpeg2 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y yuv420p
    [[34;1mexport_ffmpeg.so[0m] Using FFMPEG codec 'h264' (FourCC 'h264', H264 (avc)).
    [[34;1mexport_ffmpeg.so[0m] No profile selected
    [[31;1mexport_ffmpeg.so[0m][33;1m warning[0m: Error opening configuration file ./ffmpeg.cfg: No such file or directory
    [[34;1mexport_ffmpeg.so[0m] Starting 1 thread(s)
    [[34;1mdecode_mpeg2.c[0m] libmpeg2 acceleration: none (plain C)
    [libx264 @ 0x2504d20]broken ffmpeg default settings detected
    [libx264 @ 0x2504d20]use an encoding preset (vpre)
    [[31;1mexport_ffmpeg.so[0m][33;1m warning[0m: could not open FFMPEG codec
    [[31;1mencoder.c[0m][33;1m warning[0m: video export module error: init failed
    [[31;1mtranscode[0m][31;1m critical[0m: failed to init encoder
    [[31;1mdecode_mpeg2.c[0m][31;1m critical[0m: failed to write Y data of frame (len=65536)
    [[31;1mextract_mpeg2.c[0m][31;1m critical[0m: error while writing output data: Broken pipe
    [[31;1mdemuxer.c[0m][31;1m critical[0m: write program stream packet: Broken pipe
    [[31;1miodir.c[0m][33;1m warning[0m: left out 2 directory entries

    --------------------------------------------------------------------------------
    All DVDs will consistently rip successfully on mpeg4, but will consistently fail on h264.
    As far as I know I installed the required packages for h264, but I may have missed a vital one.

    Any help with tracking down this error will be much appreciated.

  2. #2
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: dvd::rip will not encode to h264

    You could try Handbrake, that will determine whether it is a library issue or not.

  3. #3
    Join Date
    Jul 2008
    Beans
    13

    Re: dvd::rip will not encode to h264

    Ha! Well, it turns out that it does encode to h264 with HandBreak!
    Would you suggest that I just continue to use handbreak as my converter?

    Ideally, it would be nice to get dvd::rip to work, as I know how to use it properly.
    A lot of the advanced settings in HandBreak look rather confusing:
    "Subpel ME & Mode", "Trellis", "Adaptive B-Frames"... hu?


    edit: I take that back, the descriptions in handbreak for each of the options is fantastic. I think I'll stick with it.
    Last edited by Oracle_The_Blind; December 30th, 2010 at 03:42 PM.

  4. #4
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: dvd::rip will not encode to h264

    Yeah Handbrake has worked nicely for me in the last year or so. These are the only settings I change from default:
    Switch to MKV container
    Use "High profile" setting

    Like this, the rips look indistinguishable from source DVD and still take up the same space as an AVI rip (~700MB for a movie).

  5. #5
    Join Date
    Dec 2008
    Beans
    117

    Re: dvd::rip will not encode to h264

    I recently wanted to rip some dvd movies to watch on my android. I used handbrake to successfully do it, and I used h264 format so, yes, keep using handbrake.
    EeePC 701 - 4G SSD - 2G RAM - 16G SDHC Card
    hp Compaq d530 CMT - 160G - 3G RAM
    Ubuntu 12.04 LTS (Precise Pangolin)
    Registered Linux User: #486660

  6. #6
    Join Date
    Jul 2008
    Beans
    13

    Re: dvd::rip will not encode to h264

    Quote Originally Posted by cchhrriiss121212 View Post
    Yeah Handbrake has worked nicely for me in the last year or so. These are the only settings I change from default:
    Switch to MKV container
    Use "High profile" setting

    Like this, the rips look indistinguishable from source DVD and still take up the same space as an AVI rip (~700MB for a movie).
    Great, thanks.
    Though, what's the practical difference between using mkv rather than mp4?

  7. #7
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: dvd::rip will not encode to h264

    Though, what's the practical difference between using mkv rather than mp4?
    Practically speaking: MKV is a little smaller and looks better, MP4 is compatible with Apple devices.

    I have not done extensive testing, just did a few rips of a 30min TV show. The MP4 rips were around 350MB with small defects, and the MKVs were around 250MB and looked fine. I'm sure others will have different experiences though.

  8. #8
    Join Date
    Sep 2008
    Beans
    200

    Re: dvd::rip will not encode to h264

    Quote Originally Posted by cchhrriiss121212 View Post
    Practically speaking: MKV is a little smaller and looks better, MP4 is compatible with Apple devices.

    I have not done extensive testing, just did a few rips of a 30min TV show. The MP4 rips were around 350MB with small defects, and the MKVs were around 250MB and looked fine. I'm sure others will have different experiences though.
    mp4 and mkv are containers and should have no effect on video quality, all other things being equal. You probably didn't use equivalent encoder codec settings when producing the files you compared.

    The advantages of mkv are support for more codec and subtitle formats (e.g. theora video, dts audio and dvd subtitles). The advantage of mp4 is that it is supported by more devices and players than mkv.

  9. #9
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: dvd::rip will not encode to h264

    You probably didn't use equivalent encoder codec settings when producing the files you compared.
    Yes, I think that is likely, I am just going from memory. The one thing I am sure of is that the default settings gave disappointing results.

  10. #10
    Join Date
    Apr 2007
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: dvd::rip will not encode to h264

    It seems to be related to how ffmpeg and x264 are distributed on ubuntu. Please see this bug report (it is a closed bug report as it is not considered a bug):

    https://bugs.launchpad.net/ubuntu/+s...de/+bug/276519

    I thought I had compiled ffmpeg and x264 from source -- see this how to here: http://ubuntuforums.org/showthread.php?t=786095

    But I still seem to have problems, so maybe I haven't been able to link x264 properly. I tried on 10.04.

    If anyone does manage to get this working on dvdrip then please post, as I would be interested to know. Otherwise follow the advice above and use handbrake.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •