Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg moving text drawtext
8 avril 2016, par BOBI'm using ffmpeg library to draw text on video in specific time and i'm success to do that Now i need to move the text from position to another and i can't do that so can any one suggest me how to do that
i'm using this command to move text from top to down but i can't determine the x and Y to move from the x,y to specific x,y
ffmpeg -i VideoInput.mp4 -vf "drawtext=enable='between(t,12,14)':fontfile=myfont.otf:text='Test test':x=(w-text_w)/2:y=w/50\*mod(t\,2):fontsize=65" -acodec copy outputVideo.mp4
-
Low Latency Desktopstreaming with ffmpeg (p2p)
8 avril 2016, par GringI'm trying to stream my Desktop from one Pc to another with udp. Unfortunately the Latency is pretty high (I already could reduce it from about 15 Seconds to 2 Seconds, in tests where I run client and host on the same PC. My Hostcommand looks like this:
ffmpeg -f dshow -framerate 24 -i video=screen-capture-recorder -vf scale=1280:720 -vcodec libx264 -force_key_frames "expr:gte(t,n_forced*2)" -pix_fmt yuv420p -tune zerolatency -preset ultrafast -f mpegts udp://239.255.1.2:1234
My Clientcommand looks like this:
ffplay -fflags nobuffer -infbuf -fast -framedrop -vf "setpts=(PTS*0.95)" udp://239.255.1.2:1234
Any Ideas, how to get this even faster?
-
FFMPEG realtime streaming using a remote m3u8
8 avril 2016, par JJ The SecondGood morning chaps,
I've been doing a long term research to do DRM solution for my client and we are almost there, here is what we'd like to achieve and please accept my lack of understanding, Im well new to FFMPEG and there are so many questions already asked but I'm not sure if they cover my questions.
Objectives:
1- To record and stream (real-time) m3u8 from a remote server: We have access to more than 3000 HLS streams (b2b project) therefore we would need to record and stream m3u8 in real-time. Currently I am able to record to mp4 or mkv but don't understand how to stream real time
2- Stream using HL264: We would need to make sure streams play on all devices, based on my understanding this is the correct format to use, is this correct, more than happy to hear your comments
3- Delivery to be in 3 different resolutions, HD, 488 and 380: This is all about sizes, it is unlikely that my users would stream using mobile devices (GA says only 32000 using mobile) but still I need to make sure there are no restrictions to users
Questions:
1- I've seen lots of tutorials with regards to recording m3u8, converting to mp4 or .ts files, so I'm not sure how this works, do I need to export my recording to .ts files and merge them again? If this is the case, isn't this going to have delay in streaming?
2- By doing this, am I using my bandwidth or source of m3u8?
3- If converting to .ts then would you please let me know how I can achieve this?
Please note, my recording are (for now) all m3u8 and I need to stream as m3u8 at the same time.
I have latest version of FFMPEG installed on Ubuntu 14.4 TLS
Thank you all in advance and happy Friday!
-
Video stream analysis on the fly - advise ?
8 avril 2016, par jakkolwiekI'm planning to develop a simple solution that would able me to perform a very basic video stream analysis on the fly. I've never done anything like that before, hence the very general and open question. The main focus is on checking if the stream is going without problems like - freeze frames, black screens and if the audio is there. Sync is out of scope. I read about open libraries like OpenCV and Xuggler, but they seem more complex than for my needs. FFmpeg is able to detect black screens, but not on the fly.
Is there any other open lib I could look into? Could you advise me anything? I'm thinking about using Java or Python. Or maybe both. Efficiency of the solution is out of scope, I'm focusing now only on freeze frames and black screens detection.
Any advise is welcome!
Best regards, Peter
-
ffmpeg hls recording the duration is float instead of integer
8 avril 2016, par HarisI am trying to record rtsp stream using the following command in
.m3u8
format.~/bin/ffmpeg -r 15 -i rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -codec copy -hls_list_size 65535 -hls_time 2 -g 2 "./1/live.m3u8"
The above working fine with older version of ffmpeg(<3.0) and the m3u8 file content is like,
live.m3u8 with old ffmpeg
#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:2 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:2, live0.ts #EXTINF:2, live1.ts #EXTINF:2, live2.ts #EXTINF:0, live3.ts #EXT-X-ENDLIST
Note the duration is integer.
But when I build the new ffmpeg3.0 and run the same command the duration is changed to flot some thing like,
live.m3u8 with new ffmpeg3.0
#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:4 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:2.000000, live0.ts #EXTINF:2.000000, live1.ts #EXTINF:2.000000, live2.ts #EXTINF:2.000000, live3.ts #EXTINF:2.000000, live4.ts #EXTINF:3.875000, live5.ts #EXT-X-ENDLIST
I need to generate the
ts
file with duration as integer variable with ffmpeg 3.0.Why this happening in ffmpeg 3.0 where as it working fine in older version?.