VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Folks,


    I'm a newbie - today, I downloaded ffmpeg-git-5d4fd1d.tar.bz2.tar and compiled it in cygwin as per the instructions on
    http://ffmpeg.org/general.html#SEC24

    Just did configure/make/make install

    I got an error when trying to encode yuv2mpeg2 and encapsulate in mpegts (see below).

    I must have missed something during the compile process because the command below works for precompiled static binary. Oh, I need the source code because I had to change MAX_SLICES in a header file for another thing I was doing (h264 decode) so I would rather use the source.

    Thanks for your advice in advance.

    videoBandit

    ======================================

    ffmpeg -s 1280x720 -r 30 -i Eighth_Ave.yuv -f mpegts -vcodec mpeg2video -pix_fmt yuv420p -b 3000000 -an -r 30 -s 1280x720 -vstats_file ./logs/Eighth_Ave_30fps_3mbps.stats ./mp2/Eighth_Ave_30fps_3mbps.ts
    ffmpeg version 0.7, Copyright (c) 2000-2011 the FFmpeg developers
    built on Jul 13 2011 10:59:22 with gcc 4.3.4 20090804 (release) 1
    configuration:
    libavutil 51. 11. 0 / 51. 11. 0
    libavcodec 53. 7. 0 / 53. 7. 0
    libavformat 53. 5. 0 / 53. 5. 0
    libavdevice 53. 2. 0 / 53. 2. 0
    libavfilter 2. 24. 3 / 2. 24. 3
    libswscale 2. 0. 0 / 2. 0. 0
    [rawvideo @ 0x16f06f0] Pixel format was not specified and cannot be detected
    [rawvideo @ 0x16c65b0] Could not find codec parameters (Video: rawvideo, 1280x720)
    [rawvideo @ 0x16c65b0] Estimating duration from bitrate, this may be inaccurate
    Eighth_Ave.yuv: could not find codec parameters
    Quote Quote  
  2. Duh, nevermind -

    I erroneously had the pix_fmt flag attached to the output file - it should be attached to the input file. Made the change and it works now on my compiled version. Here's the correct command. This thread can be closed.

    -videoBandit

    ffmpeg -s 1280x720 -r 30 -pix_fmt yuv420p -i Eighth_Ave.yuv -f mpegts -vcodec mpeg2video -b 8000000 -an -r 30 -s 1280x720 -vstats_file ./logs/Eighth_Ave_30fps_8mbps.stats ./mp2/Eighth_Ave_30fps_8mbps.ts
    ffmpeg version 0.7, Copyright (c) 2000-2011 the FFmpeg developers
    built on Jul 13 2011 10:59:22 with gcc 4.3.4 20090804 (release) 1
    configuration:
    libavutil 51. 11. 0 / 51. 11. 0
    libavcodec 53. 7. 0 / 53. 7. 0
    libavformat 53. 5. 0 / 53. 5. 0
    libavdevice 53. 2. 0 / 53. 2. 0
    libavfilter 2. 24. 3 / 2. 24. 3
    libswscale 2. 0. 0 / 2. 0. 0
    [rawvideo @ 0x19b65b0] Estimating duration from bitrate, this may be inaccurate
    Input #0, rawvideo, from 'Eighth_Ave.yuv':
    Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: rawvideo, yuv420p, 1280x720, 30 tbr, 30 tbn, 30 tbc
    File './mp2/Eighth_Ave_30fps_8mbps.ts' already exists. Overwrite ? [y/N] y
    [buffer @ 0x19e6de0] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
    [mpegts @ 0x19e6740] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts
    Output #0, mpegts, to './mp2/Eighth_Ave_30fps_8mbps.ts':
    Metadata:
    encoder : Lavf53.5.0
    Stream #0.0: Video: mpeg2video, yuv420p, 1280x720, q=2-31, 8000 kb/s, 90k tbn, 30 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop, [?] for help
    frame= 1326 fps=104 q=14.3 Lsize= 46795kB time=00:00:44.16 bitrate=8679.6kbits/s
    video:43265kB audio:0kB global headers:0kB muxing overhead 8.160041%
    Quote Quote  



Similar Threads

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