Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
FFMPEG | m3u8 playlist and ts chunks with current time
22 mai 2019, par rurtufurkoI want to create a m3u8 file named out.m3u8. It will create chunks ts files with the name: %H%M%S.ts.
I tried this code and it creates ts files according to the current time, but I do not know how to create the out.m3u8 file.
ffmpeg -re -i 'mystream' -vcodec libx264 -vb 500000 -g 60 -vprofile main -acodec aac -ab 128000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -b 1000k -minrate 1000k -maxrate 1000k -strict experimental -f stream_segment -segment_format mpegts -segment_time 60 -segment_atclocktime 1 -reset_timestamps 1 -strftime 1 /var/www/html/%H%M%S.ts
-
How to synchronize HLS and/or MPEG-DASH videos on multiple clients using ExoPlayer ?
22 mai 2019, par G CI'm trying to guarantee synchronization between multiple clients using DASH and/or HLS. Synchronization between each client must fall within 40 milliseconds.
Live streaming seems to be an obvious choice. However, the only way to really get within a small time frame of synchronization would be to lower the segment times. Is this the only viable solution? Are there any tags that would help me keep clients within 40 milliseconds to the live time?
Currently, I'm using FFMPEG to encode video and audio to live content.
-
Changing ffpmeg options while processing a stream ?
22 mai 2019, par ThatOneGamer999I'm making a discord bot for my discord server, and one feature request I keep getting is the ability to toggle audio effects in the middle of a song. The code I have right now is saved along with the track in the queue, and is processed by the music player process when that song comes along. What I need is to be able to change these options after the song has started. Is this possible?
-
Removing audio from video using ffmpeg is reducing the duration
22 mai 2019, par Arigato MangaI am using ffmpeg to remove audio from a video and to my surprise after removing the audio the duration of the newly created file is less than the original file.
Below are the commands i used,
ffmpeg -i input.mp4 -c copy -an op.mp4 ffmpeg -i input.mp4 -map 0:0 -c:v copy op.mp4
The size of input is 5 seconds and the size of op is 3 seconds.
There were no errors during the execution, below is the log,
Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 97 fps=0.0 q=-1.0 Lsize= 273kB time=00:00:04.95 bitrate=451.1kbits/s speed=1.65e+03x video:271kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.693547%
Could someone help me know if this is a known issue or im missing something.
-
Doing parallel ffmpeg conversions on dozens of servers simultaneously. Is there a better way ? [on hold]
22 mai 2019, par user15063Im currently working on a fairly large site, that requires several thousands of files to be encoded with ffmpeg into flash format (along with thumbnails creation, mobile file encoding). Average encode runs for about 5-15 minutes, as they are fairly large source files. After the job is complete, the outputs need to be shuttled to different servers (flash file to one box, thumbnails to another, mobile file to another, and original file to another).
During this processes (which is 13 steps at this point) there is a LOT that can go wrong, at any given time (bad files, stuck encodes, network latency, dying servers, spiking lead), so error handling is a bitch.
Are there any existing solutions for this type of work? Or do I have to just keep tweaking my homebrew scripts?