Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Strange MP3 frame structure. Some trash before header [on hold]
17 décembre 2017, par KostyaI receive MPEG Transport Stream (MPEG-TS). After all procedures for demuxing MP3 from stream I try to decode it with FFMPEG and get errors:
[mp3 @ 0x7f5fe8004a60] Header missing
[mp3 @ 0x7f5fe8004a60] Header missingWhen I look at hex presentation of frame I see that frame header isn't missing, but it is in the middle of the taken packet. What can it be before frame header at the beginning of each packet?
(1) Packet with silence - 44100 Hz, 128 kb/s : (header begins:
FF FB 92 44
)...48 49 53 49 4C 49 43 4F 4E 28 44 4D 43 29 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 FF FB 92 44 FF 8F F0 00 00 6B 00 00 00 00 00 00 0D 60 00 00 00 00 00 01 AC 00 00 00 00 00 00 35 80 00 00 00 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55
(2) Common packet - 44100 Hz, 128 kb/s : (header begins:
FF FB 92 44
)...7A 06 4B 0E 5C 95 4C 54 A7 B5 21 DD 27 6D 5D 14 00 F2 02 C1 B8 90 EC 7A 97 7A AB 30 EB AB D1 AD 5A 98 A7 BB A6 73 16 53 34 56 AF 45 9D F2 2E 8F DE 89 43 3B FD 55 D1 FA 4B 69 CA C5 7E AD 20 29 31 05 B0 EE A2 C7 9C 22 4E 08 5A B5 5D 78 FF 8C 67 50 6C 2B C7 16 18 FF FB 92 44 E8 8F F3 07 5E D3 81 88 2B 70 61 AB DA 60 30 47 6E 0A FD 5B 4E 0C 1C AD C1 7B 2B 69 81 84 15 B9 4C 39 50 F9 E3 CE CD BD 03 25 90 B9 D9 C8 EB 5B 9E D5 EC BE B4 13 E8 DE D7 C2 2D 15 3B 05 02 6A B6 DF 3E 7F 90 DA 55 E7 3D 9D D3 C8 CD 27 55 EB 6F B2 DE 89 82 67 F8 B6 CD F2 DA 76 66 F5 6A 02 52 70 B6 1E AE 39 CE 11 08 1C 30 B5 67 53 2F 1D 5F C6 31 E0 D8 56 58 71 31 CA 60 7C F1 E7 66 C4 04 16 35 35 7B 19 E3 76 E4 11 10 98 44 E4 49 80 65 ED 28 BA B3 33 6A A0 B6 21 E9 FF 0B 4E BE E7 F5 F1 EE F3 AF 22 21 12 C5 6E E9 D7 A5 0F CC EB 2C 49 19 E9 A4 61 26 45 23 14 65 83 C6 51 E9 2B 8A 0A 08 28 6B 14 4C 3C 34 59 47 86 0C 8B 0F 66 71 E5 8A DC 64 6B 0C 0A EF 22 76 96 B4 9A C5 8A 90 FA 04 04 16 35 1B FF 4D 62 F5 99 8A 94 9C 13 C4 09 40 58 BB 61 BC 63 A2 49 AE 2F B6 41 BC C7 DD 56 FE 93 3D 0E 8D 69 EA 8B 5A 8C 45 28 D5 D3 BF 3B 2D 4D 33 3D AC 30 54 63 32 30 D6 76 10 CC 8A 74 95 D8 50 41 5D 98 4C 3C A2 CA 3C 30 4B 60 E9 5C 7A C3 A7 2D 1E 3E 72 D9 B4 89 56 87 D6 F1 76 1D 77 5A 55 1C
-
FFmpeg delogo or blur a scrolling text
17 décembre 2017, par Enrico Baldii cheked around but i was uanble to find a solution on this issue.
Lets consider on my video i have a scvrolling text that appear at a fixed time moving from RIGHT TO LEFT.
Now the point is i wanna DELOGO this TEXT or better i wanna blur this text.
THis is what i know:
ffmpeg -i %FILE% -vf delogo=x=%XX%:y=%YY%:w=%WW%:h=%HH% -vcodec libx264 -movflags +faststart -threads 0 -r 25 -g 50 -crf 28 -me_method hex -trellis 0 -bf 8 -acodec aac -ar 44100 -ab 128k -f mp4 nologo-file.mp4
What i need to do so is to apply this delogo filter moving it from one potition to an other position in the way it can cover the scrolling text.
I found also this post here thatis about overlaying a video to an other video and scroll it from one position to an other.
FFmpeg move overlay from one pixel coordinate to another
What i need is the help to mix this things together, because i'm unable to udnerstand all completly and i'm unable to type down the correct command.
Thanks
-
C# How to receive ffmpeg output via udp
17 décembre 2017, par animrevox accI'm currently outputting video from ffmpeg via udp. I'm able to play the stream via VLC media player, but haven't been able to receive the video data via udp sockets in my own application. Does anyone have an example of this?
-
Are there any examples on how to create RTMP video streaming using FFMPEG (C++) ? [on hold]
17 décembre 2017, par JavaRunnerAre there any examples on how to create RTMP video streaming using FFMPEG (C++)? I know FFMPEG can work with RTMP protocol but I don't know how to use it for creating my own C++ application to make a rtmp stream.
-
Get PID of process in one line
17 décembre 2017, par Dovid BenderI have a bash script that is called by a phone system that gets some audio from a URL and (using ffmpeg, mplayer etc.) then pipes it back to the application. The file can have several URL's that are called so if the first one say goes off line or gives a 404 it will go to the next line.
I have an issue where some times the server will produce content however there is no audio. In such a case I want to kill the current PID of ffmpeg, mplayer etc. so that the script should move on.
I can't foreground it and get the last PID since once it's ran in the foreground the media is no longer being piped to the application calling it. I can't use exec in the beginning since if I then issue a kill to the PID the script dies which I don't want.
The script looks something like this:
#!/bin/bash /usr/bin/ffmpeg -i 'http://1.1.1.1/soft_music' -vn -ar 8000 -ac 1 -f s16le - /usr/bin/ffmpeg -i 'http://2.2.2.2/soft_music' -vn -ar 8000 -ac 1 -f s16le -
I assume I need to add something that will allow me to log the pid of the current ffmpeg command running so my external script can get it and kill it. Once that's done it will go to the next line and try the next stream from 2.2.2.2