Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Trim off first N samples from audio file using SoX / FFmpeg etc
3 octobre 2016, par Vasyl ShumskyiIs there a way to trim off first N samples from audio file using SoX / FFmpeg or the likes of?
-
ffmpeg aliased jpeg input in overlay
3 octobre 2016, par VacHI have to overlay a video with 1 jpeg image (various sizes) during x seconds and in the result the image appears aliased. I searched a lot but i didn't found which parameters to tune to have a render without aliasing. Can you help me?
Thanks in advance,
This is my command:
ffmpeg -y -i videosource.mp4 -loop 1 -i 640x480.jpg \ -filter_complex "[1:v] pad=1280:720:(1280- iw)/2:(720- ih)/2 [o1v]; [0:v][o1v] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:enable='between(t,0,10)':format=yuv420 [V]" \ -map "[V]" -q:v 2 -map 0:a -c:a copy -crf 1 -shortest output.mp4
Input image:
The pixelated result (open the second file to see it pixelated):
-
Invalid data found when processing input using FFmpeg for extracting video thumbnail
3 octobre 2016, par SimerI am using below command to extract thumbnail from
'C:\ffmpeg\bin\ffmpeg -i '.$server_public_path.'\frontend\videos\gallery\user_'.$logged_in_user_id.'\\' .$video_name.' -ss 00:00:30.435 -vframes 2 -flags +global_header '.$server_public_path.'\frontend\videos\gallery\user_'.$logged_in_user_id.'\\thumbnails\\'.$video_name;
where $server_public_path is absolute path of my project. Above command working fine when I used it on some other path and video.
Below is the error I am getting:
[0] => ffmpeg version N-81784-g92de2c2 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 5.4.0 (GCC) [2] => configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib [3] => libavutil 55. 30.100 / 55. 30.100 [4] => libavcodec 57. 58.100 / 57. 58.100 [5] => libavformat 57. 51.100 / 57. 51.100 [6] => libavdevice 57. 0.102 / 57. 0.102 [7] => libavfilter 6. 63.100 / 6. 63.100 [8] => libswscale 4. 1.100 / 4. 1.100 [9] => libswresample 2. 2.100 / 2. 2.100 [10] => libpostproc 54. 0.100 / 54. 0.100 [11] => [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000050a400] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible! [12] => [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000050a400] moov atom not found [13] => D:\wamp\www\gillie\public\frontend\videos\gallery\user_1\SampleVideo_1280x720_10mb__1475477664 .mp4: Invalid data found when processing input
Please suggest some solution to debug.
-
Record Seemeless HD Video with ffmpeg libxh264
3 octobre 2016, par HannanI want to Record HD Video from HD Cam through ffmpeg. I want to encode the video as it is recorded. I am using the following script but the problem is after about 18 minutes it starts loosing frames with an error " non monotonous DTS in output stream"
this is the script i am using:
ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -i video="HuddleCamHD":audio="Microphone (3- USB PnP Audio Device)" -map 0:v -b:v 8000k -map 0:a -s 1280x720 -vcodec libx264 -preset ultrafast -r 30 -rtbufsize 1000000k -acodec aac -b:a 320k "D:\VideoPutput.avi"
A help would be nice thank you.
-
How to Stream Live Video On Facebook in c#
3 octobre 2016, par Mohd ShahidI am trying to stream live video on Facebook in c# windows application using ffmpeg library.
i have stream url and stream key but i don't know how i can implement these key and Url in ffmpeg.
please give me solution for that. Thankyou..!