Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Converting AVI vid with ffmpeg results in readable but corrupt output
28 janvier 2019, par sam smithUsing the NReco.VideoConverter which uses FFMPEG, i'm trying to convert an AVI video to a WEBM video. The output video plays, but the image is wrong. The best way i can describe is that luminance/detail data is correct, but the colour data is vertically stretched. The result is very odd. I've tried this with and without my output settings (below), the only thing applied.
CustomOutputArgs = "-c:v libvpx-vp9 -crf 20 -b:v 0 -b:a 128k -c:a libopus"
The input file type is determined by the file extension of the input file. In this case, the input file type is AVI. This converter is tested working with mp4 format.
-
Merge multiple videos side by side like unfold application (Android)
28 janvier 2019, par Jatin WadhavanaWe need help regarding this Unfold application's feature "create a story using Video".
How it would be feasible? Which steps need to follow?
Reference app link for video features: https://play.google.com/store/apps/details?id=com.moonlab.unfold&hl=en_IN
Thanks in advance.
-
How to convert rtp codec in online to amr-nb/wb (octet-align = 0) by FFMPEG ?
28 janvier 2019, par Mehdi Talebirtp is received as input with different payload types such as amr-nb and WAVE.It is necessary to convert all of them to amr-wb but in bandwidth-align (NOT octet-align). I use this command to convert:
ffmpeg -re -i rtp://127.0.0.1:1235 -ar 16000 -ab 19.85k -acodec libvo_amrbenc -f rtp rtp rtp://127.0.0.1:1236
But the out put (SDP) is like this:
- v=0
- o=- 0 0 IN IP4 127.0.0.1
- s=No Name
- c=IN IP$ 127.0.0.1
- t=0.0
- a=tool:libvaformat 58.25.100
- m=audio 1236 RTP/AVP 97
- b=AS:19
- a=rtpmap:97 AMR-WB/16000/1
- a=fmtp:97 octet-align =1
My problem is octet-align =1, i need octet-align = 0. Do you know any argument to set this in the command?
-
How Build custome FFMPEG for Android
28 janvier 2019, par Memu PlayI want to build custom FFmpeg binary for android but FFmpeg binary not getting build without any error
I m following steps from below link: https://github.com/transitive-bullshit/ffmpeg-gl-transition
do you guys have an idea how to build this binary
-
Adaptive part in MPD using MP4box
28 janvier 2019, par enigmaVadaI have used ffmpeg to encode audio and video files of my video sample.mp4 for the dash player. The commands are as follows:
ffmpeg -i sample.mp4 -s 426x240 -c:v libx264 -b:v 640k -g 90 -an sample_video_240.mp4 ffmpeg -i sample.mp4 -s 480x360 -c:v libx264 -b:v 960k -g 90 -an sample_video_360.mp4 ffmpeg -i sample.mp4 -s 640x480 -c:v libx264 -b:v 1280k -g 90 -an sample_video_480.mp4 ffmpeg -i sample.mp4 -s 1280x720 -c:v libx264 -b:v 2560k -g 90 -an sample_video_720.mp4 ffmpeg -i sample.mp4 -c:a aac -b:a 128k -vn sample_audio.mp4
I have generated 240p,360p,480p and 720p videos and audio file.
Then I have used mp4box to generate the mpd file using the following command:
mp4box -dash 10000 -rap -profile dashavc264:onDemand -mpd-title BBB -out sample.mpd -frag 5000 sample_audio.mp4 sample_video_240.mp4 sample_video_360.mp4 sample_video_480.mp4 sample_video_720.mp4
I am using the dash.js player to play the video. The problem is, the adaptive part of DASH isn't working. The player is just using the 240p video and not switching to a better format even if proper bandwidth is available. I am checking using the network tab of chrome dev tools.
What am i doing wrong? Please help.
Here is the mpd file for reference:
<?xml version="1.0"?>
sample_audio_dashinit.mp4 sample_video_240_dashinit.mp4 sample_video_360_dashinit.mp4 sample_video_480_dashinit.mp4 sample_video_720_dashinit.mp4