Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • ffmpeg mp3 conversion failed [closed]

    14 novembre 2012, par user444757

    using ffmpeg to convert from flv to mp3 gives the following result


    ] ffmpeg-0.6.1 >> ffmpeg -i name.flv name.mp3 FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Feb 14 2011 12:33:38 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [flv @ 0x10869420]Could not find codec parameters (Video: 0x0000) [flv @ 0x10869420]Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'name.flv': Metadata: audiocodecid : 5 duration : 10 videocodecid : -1 canSeekToEnd : true Duration: 00:00:10.17, start: 0.000000, bitrate: N/A Stream #0.0: Video: 0x0000, 1k tbr, 1k tbn, 1k tbc Stream #0.1: Audio: nellymoser, 8000 Hz, mono, s16 Output #0, mp3, to 'name.mp3': Stream #0.0: Audio: 0x0000, 8000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Encoder (codec id 86017) not found for output stream #0.0

    you can see in last line it says codec id 86017 not found. when i run following command:

    ffmpeg -formats > ffmpeg-format.txt

    mp3 is listed in available formats as
    DE mp3 MPEG audio layer 3
    .What can be the error.is it that mp3 codec is not properly installed?Help will be appreciated
  • ffmpeg image2 screen capture has noise lines

    14 novembre 2012, par Sridhar-Sarnobat

    I am trying to capture stills from my MTS file from my Sony HD camcorder.

    This command:

    ffmpeg -vframes 1 -i 00035.MTS -s 1440x1080  -f image2   output_single_frame2.jpg
    

    produces this image http://i.minus.com/iYXQ4S7F1Mwq2.jpg which has a lot of lines. This doesn't happen when I try it on an flv file that I have.

    What am I doing wrong?

  • how to hard encode with srt subtitle

    13 novembre 2012, par user1777711

    I actually tried the following

    ffmpeg -i "video.avi" -i "video.srt" -vcodec x264 -acodec aac "video.mp4" -newsubtitle but it doesn't work. sort of like the subtitle doesn't appear.
    
  • Looking to use ffmpeg in shell to grab metadata

    13 novembre 2012, par user1664433

    I have a script that uses ffmpeg to convert mp3 to avi. I need to know how to grab the metadata from the mp3 using ffmpeg or the next best commang, ex. the metadata is:

        Input #1, mp3, from '21 - STACY BARTH - DRINK MY PAIN AWAY.mp3':
         Metadata:
    artist          : DJ WHITEOWL
    album           : Dj Whiteowl - R&b's New Generation
    title           : STACY BARTH - DRINK MY PAIN AWAY
    track           : 21/21
    genre           : R&B
    date            : 2012
    TCMP            : 1
    TDTG            : 2012-10-27T00:36:48
    Duration: 00:05:02.23, start: 0.000000, bitrate: 191 kb/s
    Stream #1.0: Audio: mp3, 44100 Hz, stereo, s16, 192 kb/s
    

    I need to grab the artist, album, title, track, genre, data etc and load them into separate variables. i.e

        track = 21/21
        genre = R&B 
    

    etc

  • Wrong video duration reported after concatenating video files in BASH script

    13 novembre 2012, par Benjen

    I am trying to merge three video files (each 16 seconds long) into one file using ffmpeg. Since they are in mpeg format I am simply trying to concatenate them into one file using cat command. The problem is that when I run the resulting file (video.mpg) it is reported as being ~16 seconds long (same as the first concatenated video). Interestingly when I play the file in VLC, I can watch the whole 48 sec of video, even though the video progress bar also only reports up to 16 secs.

    It almost seems like the file "properties" (e.g. duration, etc) are not updated after the additional two videos are added using the cat command.

    Would appreciate any suggestions on how I might solve this.

    The following is the relevant section of the BASH script I have created:

    mkfifo intermediate1.mpg
    mkfifo intermediate2.mpg
    mkfifo intermediate3.mpg
    ffmpeg -i "./tmp/final01.mp4" -qscale 1 -y intermediate1.mpg < /dev/null &
    ffmpeg -i "./tmp/final02.mp4" -qscale 1 -y intermediate2.mpg < /dev/null &
    ffmpeg -i "./tmp/final03.mp4" -qscale 1 -y intermediate3.mpg < /dev/null &
    
    echo "[audioforge] Stitching files "
    cat intermediate1.mpg >> ./tmp/video.mpg
    cat intermediate2.mpg >> ./tmp/video.mpg
    cat intermediate3.mpg >> ./tmp/video.mpg
    
    # Convert back to mp4 format.
    ffmpeg -i "./tmp/video.mpg" -qscale 1 -y "./tmp/video.mp4"