VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Code:
    ffmpeg" -y -r 30 -i "<%InputFile%>" -deinterlace -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 640x480 -b 800 -maxrate 1400 -sameq -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
    ok using that command sting on a file that plays perfectly in vlc, the output file has NO sound. I noticed that when ffmpeg starts out it doesn't mention muxing or reading a audio stream. Ay idea why this would be? the input file is an unencrypted vob file.
    Quote Quote  
  2. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    .M4V

    Ffmpeg is a stickler over output file name extensions.
    Quote Quote  
  3. I have encoded tons (400+) of files with this same batchfile yet this is the only one that doesn't output sound..... so m4v is no problem.
    Quote Quote  
  4. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    What is the output from the command?
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  5. a working m4v file just no auido......
    Quote Quote  
  6. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    Indeed. But ffmpeg should output some info similar to:

    Code:
    FFmpeg version SVN-r8597, Copyright (c) 2000-2007 Fabrice Bellard, et al.
    
      configuration: --enable-memalign-hack --disable-debug --enable-pthreads --enable-liba52 --enable-gpl --enable-libdts --enable-libfaad
    
      libavutil version: 49.4.0
    
      libavcodec version: 51.40.2
    
      libavformat version: 51.11.0
    
      built on May  9 2007 20:15:40, gcc: 4.3.0 20061204 (experimental)
    
    
    Input #0, matroska, from 'sample-001.mkv':
    
      Duration: 00:06:52.0, bitrate: N/A
    
      Stream #0.0: Video: h264, yuv420p, 640x368, 25.00 fps(r)
    
      Stream #0.1: Audio: aac, 48000 Hz, 5:1
    
      Stream #0.2: Audio: aac, 48000 Hz, 5:1
    
    Output #0, dvd, to 'sample-001_S2D.mpg':
    
      Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=1-31, 9000 kb/s, 25.00 fps(c)
    
      Stream #0.1: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
    
      Stream #0.2: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
    
    Stream mapping:
    
      Stream #0.0 -> #0.0
    
      Stream #0.1 -> #0.1
    
      Stream #0.2 -> #0.2
    
    Press [q] to stop encoding
    Thus showing a bit more info as to the reason you loose the audio...
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  7. oh sorry the output is:
    Code:
    K:\rips\streams>ffmpeg -y -r 30 -i talespin_101.vob -t 00:02:00 -deinterlace -bi
    texact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 640x36
    0 -b 800 -maxrate 1400 -sameq -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod out.M4V
    
    ffmpeg version CVS, build 4759, Copyright (c) 2000-2004 Fabrice Bellard
      configuration:  --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb -
    -enable-amr_wb --disable-ffplay --enable-small --enable-memalign-hack --enable-g
    pl --enable-xvid --enable-dts --enable-a52 --disable-vhook --enable-pthread --en
    able-x264
      built on Dec  1 2005 17:25:10, gcc: 3.4.4 (cygming special) (gdc 0.12, using d
    md 0.125)
    Input #0, mpeg, from 'talespin_101.vob':
      Duration: N/A, start: 0.280633, bitrate: N/A
      Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 29.97 fps, 9800 kb/s
    Output #0, ipod, to 'out.M4V':
      Stream #0.0: Video: h264, yuv420p, 640x360, 29.97 fps, q=2-31, 800 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
    [h264 @ 0x7aee38]width or height not divisible by 16 (640x360), compression will
     suffer.
    [h264 @ 0x7aee38]no need for a SAR
    [h264 @ 0x7aee38]using cpu capabilities MMX MMXEXT SSE SSE2
    Press [q] to stop encoding
    this is "normal" output:
    Code:
    K:\rips\streams>ffmpeg -y -r 30 -i naruto_101.vob -t 00:02:00 -deinterlace -bite
    xact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 640x360
    -b 800 -maxrate 1400 -sameq -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod out.M4V
    ffmpeg version CVS, build 4759, Copyright (c) 2000-2004 Fabrice Bellard
      configuration:  --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb -
    -enable-amr_wb --disable-ffplay --enable-small --enable-memalign-hack --enable-g
    pl --enable-xvid --enable-dts --enable-a52 --disable-vhook --enable-pthread --en
    able-x264
      built on Dec  1 2005 17:25:10, gcc: 3.4.4 (cygming special) (gdc 0.12, using d
    md 0.125)
    Input #0, mpeg, from 'naruto_101.vob':
      Duration: 00:23:35.5, start: 0.060000, bitrate: 8118 kb/s
      Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 29.97 fps, 9800 kb/s
      Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
    Output #0, ipod, to 'out.M4V':
      Stream #0.0: Video: h264, yuv420p, 640x360, 29.97 fps, q=2-31, 800 kb/s
      Stream #0.1: Audio: aac, 48000 Hz, stereo, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    [h264 @ 0x7aee38]width or height not divisible by 16 (640x360), compression will
     suffer.
    [h264 @ 0x7aee38]no need for a SAR
    [h264 @ 0x7aee38]using cpu capabilities MMX MMXEXT SSE SSE2
    Press [q] to stop encoding
    Anyideas because both do play with sound in vlc.......
    Quote Quote  
  8. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    Well your ffmpeg can't see an audio stream in the input...

    Can you open the file in gspot and post a screenshot?

    That said you have a 18 month old version of ffmpeg and so using the latest version may well solve your issue.
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  


  9. ANy help?
    Quote Quote  
  10. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    Well yes. There is audio (as you know as you have heard it!) - more importantly, the audio stream is bonefide. In general ffmpeg would have no issue with it but your 18 month old build does. ffmpeg development is very fluid and everyday a new build can be compiled. Either compile the latest from svn or locate the latest binary you can find. Maybe from : http://ffdshow.faireal.net/mirror/ffmpeg/
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  11. Got the new version from the site you suggested but now i have a new problem....... ffmpeg don't like m4v or h264............. it syas something like "no suitable file format fount for h264" now what do i do???

    ps. i tried both m4v and mp4......
    Quote Quote  
  12. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    You need a build that has been compiled with --en
    able-x264

    Check out: http://arrozcru.no-ip.org/ffmpeg_builds/
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  13. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    The build has x264 enabled. Just that there is no ipod output format in ffmpeg. The build you were using must have been patched. Think that there were some patches on the mailing list, but I guess they never got integrated. Think there was also talk of adding an ipod target (like it currently has VCD, DVD, etc.).
    Quote Quote  
  14. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Kill the -bitexact, -fixaspect, and -f ipod switches.
    Also -sameq is clashing with setting a bitrate. It should overide -b and be restricted by -maxrate.
    I find sameq useless in any case.
    Use -qmin -qmax and -qscale to set quality if you're not going to set a specific bitrate.
    Bitrate must be set in bit/s or add a "k" for kilobits 256k or "M" (capital) for Mbits

    Code:
    ffmpeg" -y -r 30 -i "<%InputFile%>" -deinterlace -vcodec h264 -coder 0 -bufsize 256k -g 250 -vlevel 30 -s 640x480 -b 800k -maxrate 1400k -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64k "<%TemporaryFile%>.Mp4""
    I don't do these conversions
    Maybe you could try these:
    http://rob.opendot.cl/index.php/useful-stuff/ipod-video-guide/

    gl
    Quote Quote  
  15. I might just use the new version of ffmpeg to trascode the audi in the vobs to something the "my" version can understand. Also after i changed to the sameq setting i got much much better encodes with two pass. I'll see if that works......
    Quote Quote  
  16. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    ffmpeg -i <yoursource> -vn -ac 2 -ar 48000 -y audio.wav

    neroAacEnc_SSE2.exe -br 96000 -if audio.wav -of audio.mp4

    nicmp4box -add video.mp4 -add audio.mp4 output.mp4
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!