Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • ffmpeg can't convert mp4 to mp3 Output file #0 does not contain any stream

    21 août 2018, par Golden Fingers

    I can't convert mp4 file to mp3 via ffmpeg. I tried these commands but they are not working and show the same error:

    Output file #0 does not contain any stream

    These are the commands:

    ffmpeg -i input.mp4 -c copy  -f mpegts output.mp3
    
    ffmpeg -i input.mp4 -acodec libmp3lame output.mp3
    
    ffmpeg -i input.mp4 -vn -f mp3 -ab 192k output.mp3
    
    ffmpeg -i input.mp4 -vn -f wav - | \
           lame -V 3 - output.mp3
    

    Please help me.

    this is log -> ffmpeg -i input.mp4 -c copy -vn output.mp3

    ffmpeg version 2.8.8 Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
      configuration: --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libtheora --enable-libxvid --enable-libfdk_aac --enable-libopus --enable-libfreetype --enable-libfaac
      libavutil      54. 31.100 / 54. 31.100
      libavcodec     56. 60.100 / 56. 60.100
      libavformat    56. 40.101 / 56. 40.101
      libavdevice    56.  4.100 / 56.  4.100
      libavfilter     5. 40.101 /  5. 40.101
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  2.101 /  1.  2.101
      libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
      Metadata:
        major_brand     : dash
        minor_version   : 0
        compatible_brands: iso6avc1mp41
        creation_time   : 2018-05-11 00:18:13
      Duration: 00:44:01.47, start: 0.000000, bitrate: 61 kb/s
        Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 0 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
        Metadata:
          creation_time   : 2018-05-11 00:18:13
          handler_name    : VideoHandler
    Output #0, mp3, to 'output.mp3':
    Output file #0 does not contain any stream
    
  • how do i overlay an image on ffmpeg which moves across the video and also changes size as it moves ?

    21 août 2018, par mystique

    something like what has been proposed here: FFmpeg move overlay from one pixel coordinate to another

    but I want the size to dynamically change with time

  • ffmpeg : How to create multi playlist m3u8 ?

    21 août 2018, par noc

    I have an example:

    ffmpeg -loglevel debug -threads 4 -vsync 1 -i 'bunny.mp4' -vf yadif -g 29.97 -r 29.97 -b:v:0 5250k -c:v h264_nvenc -preset llhq -vcodec vbr_hq -pix_fmt yuv420p -profile:v main -level 4.1 -strict_gop 1 -rc-lookahead 32 -no-scenecut 1 -forced-idr 1 -gpu 0 -b:v:1 4200k -c:v h264_nvenc -preset llhq -rc:v vbr_hq -pix_fmt yuv420p -profile:v main -level 4.1 -strict_gop 1 -rc-lookahead 32 -no-scenecut 1 -forced-idr 1 -gpu 1 -b:v:1 3150k -c:v h264_nvenc -preset llhq -rc:v vbr_hq -pix_fmt yuv420p -profile:v main -level 4.1 -strict_gop 1 -rc-lookahead 32 -no-scenecut 1 -forced-idr 1 -gpu 2 -b:a:0 256k -b:a:0 192k -b:a:0 128k -c:a aac -ar 48000  -map 0:v -map 0:a:0 -map 0:v -map 0:a:0 -map 0:v -map 0:a:0 -f hls -var_stream_map "v:0,a:0  v:1,a:1 v:2,a:2" -master_pl_name  master.m3u8 -t 300 -hls_time 10 -hls_init_time 4 -hls_list_size 10 -master_pl_publish_rate 10 -hls_flags delete_segments+discont_start+split_by_time "out/manifest.m3u8" 
    

    but alltime a have error like: Unrecognized option 'rc:v' Unrecognized option 'strict_gop'

    I'd like to create the playlist like this:

    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=688301
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0640_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=165135
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=262346
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0240_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=481677
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0440_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1308077
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/1240_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1927853
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/1840_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=2650941
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/2540_vod.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=3477293
    http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/3340_vod.m3u8
    

    with ability to choose quality in player (videojs)

  • How to get changeable codec properties from midstream in ffmpeg ? [on hold]

    21 août 2018, par 杨新峰

    I'm using FFmpeg library to process live stream,how to print changeable codec properties when it change?

  • FFmpeg scale and concat with dynamic height

    21 août 2018, par Praveen Tamil

    Hi below is the code I'm using to concat multiple images.

    ffmpeg -loop 1 -t 1 -i img1.jpeg -loop 1 -t 1 -i img2.jpeg -loop 1 -t 1 -i img3.jpeg 
    -loop 1 -t 1 -i img4.jpeg -filter_complex "
    [0:v]scale=640:480:force_original_aspect_ratio=decrease, pad=640:480:(ow-iw)/2:(oh-ih)/2[v0];
    [1:v]scale=640:480:force_original_aspect_ratio=decrease, pad=640:480:(ow-iw)/2:(oh-ih)/2[v1];
    [2:v]scale=640:480:force_original_aspect_ratio=decrease, pad=640:480:(ow-iw)/2:(oh-ih)/2[v2];
    [3:v]scale=640:480:force_original_aspect_ratio=decrease, pad=640:480:(ow-iw)/2:(oh-ih)/2[v3];
    [v0][v1][v2][v3]concat=n=4"  output.gif
    

    But I'm getting below issue

    enter image description here