Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg mp4 to mp3 conversion error 'no such file'
11 juin 2016, par Thomas R.I'm using ffmpeg to convert mp4's to mp3's, about 124 videos total, and I'm using python to iterate through the files they're in and executing a version of
ffmpeg -i pathtovideo/video.mp4 pathtoaudio/audio.mp3
to convert them.When I use this command on its own in terminal, it converts just fine, but calling from the python script (using os) it says
pathtoaudio/audio.mp3: No such file or directory
but of course there isn't, I'm asking the computer to generate this file. Any ideas for what might be going wrong or how to fix? -
How to get the audio and video from a WebRTC stream using ffmpeg on server
11 juin 2016, par elshnkhllI am trying to get the audio and video from a WebRTC stream and handle it (transcode or dump) with ffmpeg on ubuntu server. I have naively expected it to simply interpret the sdp offered by WebRTC, but was mistaken. I suspect ffmpeg is not capable of signaling back the answer sdp and it is must be done manually. Here is an offer sdp:
v=0 o=Mozilla-SIPUA-33.1 3662 0 IN IP4 0.0.0.0 s=SIP Call t=0 0 a=ice-ufrag:5e0a74d1 a=ice-pwd:7446c0eb445117d0018ca2afc5f3ca54 a=fingerprint:sha-256 76:1B:19:CE:3F:41:C5:4D:64:E6:FD:72:D2:FC:42:E1:98:D4:0F:2B:73:AE:C7:F4:2C:73:2C:E7:9E:DC:6A:EB m=audio 23063 RTP/SAVPF 109 0 8 101 c=IN IP4 188.253.146.208 a=rtpmap:109 opus/48000/2 a=ptime:20 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=setup:actpass a=candidate:0 1 UDP 2128609535 192.168.1.100 4130 typ host a=candidate:1 1 UDP 1692467199 188.253.146.208 23063 typ srflx raddr 192.168.1.100 rport 4130 a=candidate:0 2 UDP 2128609534 192.168.1.100 4131 typ host a=candidate:1 2 UDP 1692467198 188.253.146.208 23064 typ srflx raddr 192.168.1.100 rport 4131 a=rtcp-mux m=video 23065 RTP/SAVPF 120 126 97 c=IN IP4 188.253.146.208 a=rtpmap:120 VP8/90000 a=rtpmap:126 H264/90000 a=fmtp:126 profile-level-id=42e01f;packetization-mode=1 a=rtpmap:97 H264/90000 a=fmtp:97 profile-level-id=42e01f a=sendrecv a=rtcp-fb:120 nack a=rtcp-fb:120 nack pli a=rtcp-fb:120 ccm fir a=rtcp-fb:126 nack a=rtcp-fb:126 nack pli a=rtcp-fb:126 ccm fir a=rtcp-fb:97 nack a=rtcp-fb:97 nack pli a=rtcp-fb:97 ccm fir a=setup:actpass a=candidate:0 1 UDP 2128609535 192.168.1.100 4132 typ host a=candidate:1 1 UDP 1692467199 188.253.146.208 23065 typ srflx raddr 192.168.1.100 rport 4132 a=candidate:0 2 UDP 2128609534 192.168.1.100 4133 typ host a=candidate:1 2 UDP 1692467198 188.253.146.208 23066 typ srflx raddr 192.168.1.100 rport 4133 a=rtcp-mux
Is anybody have succeeded in it? Thanks.
-
Sync end of audio and video in ffmpeg ?
11 juin 2016, par barbierocksI'd like to sync an audio and video file together so that they end at the same time. Is there an easy way to do this with ffmpeg?
The only ideas I have are 1) finding the lengths of the two (which is annoying) and delaying the shorter one by the difference between the two lengths, and 2) reversing the two, syncing them, then reversing again. There's got to be a better way...
-
Set text rotated to a given angle in FFMPEG
10 juin 2016, par GarryI want to set text rotated to a certain angle in FFMPEG video. can someone help me how can i set text rotated to given angle while adding text on video by drawtext command.
-
How can I merge all the videos in a folder to make a single video file using FFMPEG
10 juin 2016, par X_1I have a folder with 20+ video files and I need to merge them to make one long video file. How can I achieve this using FFMPEG in Python?
I know the following command
ffmpeg -vcodec copy -isync -i \ "concat:file1.mp4|file2.mp4|...|fileN.mp4" \
outputfile.mp4
But I'd rather not type all the names of the 20+ files.