Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
rtmp ffmpeg stream after opencv process c++
13 juin 2016, par Javier Cabrera ArteagaI want to catch video stream from live stream, process image with opencv and repacket to rtmp live stream with the original audio. The first step is done, i have the opencv processed image, but when i send to output live stream and open with some video program (eg. VLC) nothing is showing. Here is mi code. Thanks in advance.
#include
#include #include -
Add diffrent animation for diffrent frame in video using ffmpeg android
13 juin 2016, par Sachin SutharI am trying to apply animations for the particular video frame but hereby I'm not seeing that video frame by which I have to apply the animation. I only need fade in and fade out frame and display it as slide show video. Do you have any idea about this?
-
FFmpeg command for crossfading between 2 videos and merge last video without fading not working
13 juin 2016, par Harsh BhavsarHere, New in FFmpeg . I am using this library
I already done with 2 video join with this command :
String[] complexCommand = {"ffmpeg","-y","-i","/sdcard/cut_output.mp4", "-i","/sdcard/harsh1.mp4","-strict","experimental", "-filter_complex", "[0:v]scale=640x480,setsar=1:1[v0];[1:v]scale=640x480,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1", "-ab","48000","-ac","2","-ar","22050","-s","640x480","-r","30","-vcodec","mpeg4","-b","2097k","/sdcard/merged.mp4"};
Now i need a command that first 2 videos join between cross fade effect and third video without fading effect directly join .I need that command Help me out pls... Thanx
-
Bash script to text watermark video from filename (ffmpeg)
13 juin 2016, par YianI would like to automate some text to be 'watermarked' on my videos. Basically I want to create a marker in my file names (eg "&&"). Then I want the script to take the content after "&&" and place it in the "drawtext" content.
For example, file named "Video2132 && The First Test" would make the part after "text=" become "The First Test".
The below code works fine without the drawtext part.
As soon as I add that function, the script runs, but it creates empty video files (zero bytes).
for f in ./*.mov; do printf '%s\n' "Doing stuff with: ${f}" i='0' while (( i <= 5 )); do ffmpeg -ss "$(( i * 25 ))" -t 25 -i "${f}" -acodec copy -vf drawtext="fontfile=/Users/mac1/Library/Fonts/Gillsanslight.ttf: \ text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: \ boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy "${f%.mov}.${i}.mov" -loglevel quiet (( i++ )) done done
-
ffmpeg mp4 upload to Twitter - Unsupported Error
13 juin 2016, par NoitidartI have created a screencast, it was saved as webm. Using ffmpeg I converted it to a mp4:
That kind of file isn't supported yet. Try uploading a gif, video, or picture instead.
ffmpeg -f input.webm -pix_fmt yuv420p -strict -2 output.mp4
I use yuv420p as that is what this topic says for twitter - https://twittercommunity.com/t/unable-to-upload-video-to-twitter/61721/3
However when I open a new tab, go to twitter, click the photo icon, clicking upload instantly gives me error "That kind of file isn't supported yet. Try uploading a gif, video, or picture instead.". It cant check the pix format that fast. Anyonek now what can be going on here?
Here is ffmpeg console output:
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers built on Jun 9 2014 20:01:41 with emcc (Emscripten GCC-like replacement) 1.12.0 (commit 6960d2296299e96d43e694806f5d35799ef8d39c) configuration: --cc=emcc --prefix=/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --disable-ffplay --disable-ffprobe --disable-ffserver --disable-asm --disable-doc --disable-devices --disable-pthreads --disable-w32threads --disable-network --disable-hwaccels --disable-parsers --disable-bsfs --disable-debug --disable-protocols --disable-indevs --disable-outdevs --enable-protocol=file libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libswscale 2. 5.102 / 2. 5.102 libswresample 0. 18.100 / 0. 18.100 [vp8 @ 0xdde410] Warning: not compiled with thread support, using thread emulation Input #0, matroska,webm, from 'input.webm': Metadata: encoder : QTmuxingAppLibWebM-0.0.1 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0(eng): Video: vp8, yuv420p, 1920x1200, SAR 1:1 DAR 8:5, 30 fps, 30 tbr, 1k tbn, 1k tbc (default) Incompatible pixel format 'yuv420p' for codec 'gif', auto-selecting format 'pal8' [swscaler @ 0xdd7f40] No accelerated colorspace conversion found from yuv420p to bgr8. [gif @ 0xde5290] Warning: not compiled with thread support, using thread emulation [vp8 @ 0xdde410] Warning: not compiled with thread support, using thread emulation Output #0, gif, to 'output/output.gif': Metadata: encoder : Lavf55.33.100 Stream #0:0(eng): Video: gif, pal8, 1920x1200 [SAR 1:1 DAR 8:5], q=2-31, 200 kb/s, 100 tbn, 30 tbc (default) Stream mapping: Stream #0:0 -> #0:0 (vp8 -> gif) Press [q] to stop, [?] for help frame= 1 fps=0.0 q=0.0 size= 0kB time=00:00:00.03 bitrate= 8.5kbits/s frame= 6 fps=0.0 q=0.0 size= 640kB time=00:00:00.33 bitrate=15877.0kbits/s frame= 12 fps= 11 q=0.0 size= 1452kB time=00:00:00.63 bitrate=18878.9kbits/s frame= 17 fps= 10 q=0.0 size= 2080kB time=00:00:00.91 bitrate=18723.7kbits/s frame= 22 fps=9.6 q=0.0 size= 2698kB time=00:00:01.16 bitrate=19052.0kbits/s frame= 27 fps=9.7 q=0.0 size= 3294kB time=00:00:01.43 bitrate=18869.4kbits/s frame= 33 fps=9.6 q=0.0 size= 4001kB time=00:00:01.76 bitrate=18622.0kbits/s frame= 38 fps=9.5 q=0.0 size= 4567kB time=00:00:02.04 bitrate=18339.7kbits/s frame= 44 fps=9.5 q=0.0 size= 5236kB time=00:00:02.37 bitrate=18097.4kbits/s frame= 50 fps=9.7 q=0.0 size= 5902kB time=00:00:02.71 bitrate=17839.9kbits/s frame= 55 fps=9.6 q=0.0 size= 6457kB time=00:00:02.96 bitrate=17868.9kbits/s frame= 55 fps=9.6 q=0.0 Lsize= 6567kB time=00:00:02.96 bitrate=18175.9kbits/s video:6623kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead -0.834044%
Here is a screenshot: