I think we are drifting a little off topic.  My reply was only meant
to point out that the libx264 profile "hq" is obsolete, and that may
have been the only problem.  I went on to suggest using ffmpeg directly
for h264 encoding.

    Since only 500 frames were requested in the example, I just gave the
ffmpeg equivalent (-t 20).  Once you have the correct parameters worked
out for the transcode, you would probably omit the -t and encode the
entire file.

    For NTSC DVD's which are telecined, I want to use the transcode YAIT
filter.  But I want to encode to an h264/aac mkv file, (and subsequent
srt subtitle merge).  Transcode h264 encoding isn't quite working, so, I
use dvdrip to get the scaling and crop parameters, dump the transcode
command to a file, and massage it to generate a shell script.  I
transcode to raw video and audio, then use ffmpeg to do the actual
encoding.  So, the final output file generated is an .mkv file.  Gross
amounts of disk space are required (around 70GB), but I don't care,
because it works.

    Lastly, here is an example of the output from my shell script.  Take
a dvdrip vob, (16:9 720x480), crop, scale, inverse telecine, decode to
raw, then encode to h264/aac mkv using ffmpeg:

    cd tmp
    nice -n 19 transcode -H 10 -a 0 -x vob -i
    /data/dvd/db/mymovie/vob/001/ -f 30,4 --export_fps 24,1 -M 2 -Y
    4,0,4,0 -Z 720x408 -y raw,wav -m t-aud -o t-vid -J yait=ops
    --progress_rate 25

    nice -n 19 ffmpeg -i t-vid -pass 1 -vcodec libx264 -vpre
    veryslow_firstpass -b 2200k -an -threads 0 -f rawvideo -aspect
    720:400 -r 24000/1001 -sn -y /dev/null

    nice -n 19 ffmpeg -i t-vid -i t-aud -pass 2 -vcodec libx264 -vpre
    veryslow -b 2200k -acodec libfaac -ab 192k -ar 48k -ac 2 -threads 0
    -f matroska -aspect 720:400 -r 24000/1001 -sn -y /data/dvd/db/out.mkv

I would be very surprised if the resulting video would not play on an
android.  If not, maybe back off the profile from "veryslow" to "slower"
or "slow".  Don't worry about the "-J yait=ops".  The point is, there
are very good video filters that are only available using transcode's -J
option.

    Hope this helps.
                                                                       
    Allan



On 03/30/11 15:39, eolin...@gmail.com wrote:
> Hi,
>
>  | transcode -c 0-500 --import_with dvd -i ${SRCFILE} -title 1,-1
> --export_with ffmpeg -F h264 -o ${DSTFILE}
>
> Could you detailed please ? I don't know and I don't see in the
> documentation the commands following : --import_with dvd and
> --export_with ffmpeg
> And why you encode only a part of your file (i.e. -c 0-500 ) or it is
> an error of mine ?
> Could you join too the result of the command tcprobe for the file that
> you have created ?
> Thanks.
>
> 2011/3/26 Allan N. Snider <allansni...@istop.com
> <mailto:allansni...@istop.com>>
>
>     John:
>         Check your /usr/share/ffmpeg directory.  The hq profile (at
>     least on my gentoo box) no longer exists.  The naming convention
>     has changed from veryslow, slow, ..., fast, veryfast, etc.  The
>     old "hq" is probably pretty close to the "slow" profile, or
>     "slower" profile.
>
>         If that still doesn't work, (as I have had great difficulty
>     using h264 through transcode), just consider running ffmpeg
>     directly.  For example, do the initial rip with "mplayer
>     -dumpstream", and then "ffmpeg -t 20 -i stream.dump -vcodec
>     libx264 -vpre slow -b 2000k -acodec [whatever...] out.mkv".  The
>     -t 20 (record 20s) should give around 500 frames.
>
>         I still use dvdrip and transcode, (for the rip, scale, crop,
>     and video filters), but actually output raw,wav and do the final
>     encoding with ffmpeg now.  (Lots of disk space required obviously).
>                                                                    
>                                                     Allan
>
>
>
>     On 03/26/11 11:58, John Roberts wrote:
>>
>>     Hi,
>>
>>      
>>
>>     I’ve been struggling with this for hours and can’t make it work.
>>
>>      
>>
>>     transcode -c 0-500 --import_with dvd -i ${SRCFILE} -title 1,-1
>>     --export_with ffmpeg -F h264 -o ${DSTFILE}
>>
>>      
>>
>>     Output below…
>>
>>      
>>
>>     John
>>
>>      
>>
>>     johnr@conroe(~/Scripts) 1133$ cat ffmpeg.cfg
>>
>>     [h264]
>>
>>     threads = 1
>>
>>     [libx264]
>>
>>     vpre = hq
>>
>>     [mpeg4]
>>
>>     profile = aac_main
>>
>>     nr = 10
>>
>>     mbd = 2
>>
>>     cmp = 3
>>
>>     subcmp = 3
>>
>>     dia = 4
>>
>>     v4mv = 1
>>
>>     trell = 1
>>
>>     [mpeg1video]
>>
>>     [mpeg2video]
>>
>>     nr = 20
>>
>>     gray = 0
>>
>>     mbd = 2
>>
>>     mv0 = 1
>>
>>     trell = 1
>>
>>     cbp = 1
>>
>>     cmp = 3
>>
>>     subcmp = 3
>>
>>     vqcomp = 0.7
>>
>>     vqblur = 0.3
>>
>>     [ffv1]
>>
>>     johnr@conroe(~/Scripts) 1134$
>>
>>      
>>
>>      
>>
>>     johnr@conroe(~/Scripts) 1133$ ./dvdiso.bash
>>
>>     removed `/proj/DvdTranscode//Up.avi'
>>
>>     transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009
>>     Transcode Team
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     [dvd_reader.c] -- Unspecified Subs --
>>
>>     [dvd_reader.c] DVD title 1/96: 1 chapter(s), 1 angle(s), title set 1
>>
>>     [dvd_reader.c] title playback time: 00:00:00.12  1 sec
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     [dvd_reader.c] -- Unspecified Subs --
>>
>>     [dvd_reader.c] DVD title 1/96: 1 chapter(s), 1 angle(s), title set 1
>>
>>     [dvd_reader.c] title playback time: 00:00:00.12  1 sec
>>
>>     [transcode] V: auto-probing     |
>>     /nas1/Media/Video/DvdKids/UP.iso (OK)
>>
>>     [transcode] V: import format    | MPEG 2 program stream in DVD
>>     NTSC (module=dvd)
>>
>>     [transcode] A: auto-probing     |
>>     /nas1/Media/Video/DvdKids/UP.iso (OK)
>>
>>     [transcode] A: import format    | AC3 in DVD NTSC (module=dvd)
>>
>>     [transcode] V: AV demux/sync    | (2) initial MPEG sequence /
>>     enforce frame rate
>>
>>     [transcode] V: import frame     | 720x480  1.50:1  encoded @ 4:3
>>
>>     [transcode] V: bits/pixel       | 0.217
>>
>>     [transcode] V: decoding fps,frc | 23.976,1
>>
>>     [transcode] V: video format     | YUV420 (4:2:0) aka I420
>>
>>     [transcode] A: import format    | 0x2000  AC3          [   0,16,0]
>>
>>     [transcode] A: export format    | 0x55    MPEG ES Layer 3 [  
>>     0,16,0]  128 kbps
>>
>>     [transcode] V: export format    | unknown (module dependant)
>>
>>     [transcode] V: encoding fps,frc | 23.976,1
>>
>>     [transcode] A: bytes per frame  | 0 (0.000000)
>>
>>     [transcode] A: adjustment       | 0@1000
>>
>>     [transcode] V: IA32/AMD64 accel | sse3 sse2 sse mmx cmove asm
>>
>>     [transcode] V: video buffer     | 10 @ 720x480 [0x2]
>>
>>     [transcode] A: audio buffer     | 10 @ 0x0x16
>>
>>     [import_dvd.so] v0.4.1 (2007-07-15) (video) DVD | (audio)
>>     MPEG/AC3/PCM
>>
>>     [export_ffmpeg.so] v0.3.18 (2008-11-29) (video) Lavc52.66.0 |
>>     (audio) MPEG/AC3/PCM
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     [import_dvd.so] tccat -T 1,-1,1 -i
>>     "/nas1/Media/Video/DvdKids/UP.iso" -t dvd -d 0 | tcdemux -a 0 -x
>>     ac3 -S 0 -M 2 -d 0 | tcextract -t vob -x ac3 -a 0 -d 0 | tcdecode
>>     -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 0
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     [import_dvd.so] tccat -T 1,-1,1 -i
>>     "/nas1/Media/Video/DvdKids/UP.iso" -t dvd -d 0 | tcdemux -s 0x80
>>     -x mpeg2 -S 0 -M 2 -f 23.976024 -P /tmp/fileDieafy -d 0 |
>>     tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y
>>     yuv420p
>>
>>     [import_dvd.so] delaying DVD access by 3 seconds
>>
>>     [import_dvd.so] waiting...
>>
>>     No accelerated IMDCT transform found
>>
>>     [import_dvd.so] waiting...
>>
>>     [import_dvd.so] waiting...
>>
>>     libdvdread: Encrypted DVD support unavailable.
>>
>>     [decode_mpeg2.c] libmpeg2 acceleration: none (plain C)
>>
>>     [export_ffmpeg.so] Using FFMPEG codec 'h264' (FourCC 'h264', H264
>>     (avc)).
>>
>>     [export_ffmpeg.so] No profile selected
>>
>>     [export_ffmpeg.so] Starting 1 thread(s)
>>
>>     [export_ffmpeg.so] Set display aspect ratio to input
>>
>>     [libx264 @ 0xeafa40] broken ffmpeg default settings detected
>>
>>     [libx264 @ 0xeafa40] use an encoding preset (e.g. -vpre medium)
>>
>>     [libx264 @ 0xeafa40] preset usage: -vpre <speed> -vpre <profile>
>>
>>     [libx264 @ 0xeafa40] speed presets are listed in x264 --help
>>
>>     [libx264 @ 0xeafa40] profile is optional; x264 defaults to high
>>
>>     [export_ffmpeg.so] warning: could not open FFMPEG codec
>>
>>     [encoder.c] warning: video export module error: init failed
>>
>>     [transcode] critical: failed to init encoder
>>
>>     johnr@conroe(~/Scripts) 1133$
>>
>
>
>
> -- 
> Olivier
> Cenwen un elfe sur la banquise/ an elve on the ice
> Mon blog perso  sur le multimédia, Ubuntu, Linux et OpenShot :
> http://linuxevolution.wordpress.com/
> Le forum d'Openshot où vous me trouverez : http://openshotusers.com/
> http://openshotusers.com/forum/index.php

Reply via email to