rr@rr-Studio-XPS-8000:~$ ffmpeg -loop_input -i ~/Desktop/k.png -i ~/Desktop/k.mp3 -shortest -b 1000k -acodec copy video.mp4
ffmpeg version 0.10.9-7:0.10.9-1~precise1 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 4 2013 06:37:30 with gcc 4.6.3
configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.9-1~precise1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
-loop_input is deprecated, use -loop 1
Note, both loop options only work with -f image2
Input #0, image2, from '/home/rr/Desktop/k.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 703x548, 25 fps, 25 tbr, 25 tbn, 25 tbc
-loop_input is deprecated, use -loop 1
Note, both loop options only work with -f image2
[mp3 @ 0xfe6da0] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0xfe6da0] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from '/home/rr/Desktop/k.mp3':
Metadata:
title : Blow Your Own Pt. 2 [ft Kathrin DeBoer]
artist : Aaron Jerome
album : Time to Rearrange
album_artist : Aarron Jerome
genre : Jazz
track : 10
disc : 1
date : 2007
Duration: 00:04:52.49, start: 0.000000, bitrate: 320 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s
Please use -b:a or -b:v, -b is ambiguous
File 'video.mp4' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'rgb24' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0xfdf780] w:703 h:548 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0xfe85a0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0xfde840] w:703 h:548 fmt:rgb24 -> w:703 h:548 fmt:yuv420p flags:0x4
[libx264 @ 0x1000280] width not divisible by 2 (703x548)
Output #0, mp4, to 'video.mp4':
Stream #0:0: Video: h264, yuv420p, 703x548, q=-1--1, 1000 kb/s, 90k tbn, 25 tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, 320 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (png -> libx264)
Stream #1:0 -> #0:1 (copy)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Bookmarks