Quantcast
Channel: MediaSPIP
Viewing all 118104 articles
Browse latest View live

videokit.so load fail in marshmallow and above API ffmpeg android

$
0
0

I am working with ffmpeg commands for various operation on videos & images & its working fine on devices having API 22 & below version but when i set targetSdkVersion 23 or 24 at that time my app is going to crash and i am getting :

error like videokit.so load fail:/data/user/0/packagename/lib/libvideokit.so.

Command validation detected libx264 use

$
0
0

Configured FFmpeg4Android by refer this tutorial

http://androidwarzone.blogspot.in/2011/12/ffmpeg4android.html

Using ffmpeg , converted .mp4 videos to MPEG-4 H.263 . but it is not working web .

How to convert .mp4 videos to MPEG-4 AVC(Advanced Video Codec) format , using ffmpeg4android is it possible ?

FFmpeg Command

String[] complexCommand={"ffmpeg","-y" , "-i", "/sdcard/videokit/in.mp4","-strict","experimental","-s", "160x120","-vcodec", "libx264", "-vprofile", "high", "-preset", "slow", "-b:v", "500k" ,"-maxrate" ,"500k" ,"-bufsize" ,"1000k" ,"-vf", "scale=-1:480","-threads", "0", "-acodec", "libvo_aacenc" ,"-b:a", "128k", "/sdcard/videokit/out1.mp4"};

Error

 W/ffmpeg4android: Command validation detected libx264 use W/ffmpeg4android: Make sure you use the extra libs that support libx264 W/ffmpeg4android: Note that you will have to target api 22 or below in your Manifest when using libx264

Note :

To set Extra Libraries tried these.

1.Copy the x86 files to ffmpeg4android_lib/libs

2.Copy the x86 files to ffmpeg4android_lib/jniLibs .

and add the abiFilter "x86" defaultConfig

still error not resolved.

How to set Extra Libraries ?

-- http://androidwarzone.blogspot.in/2011/12/ffmpeg4android.html

FFmpeg freezes on Ubuntu 16.04

$
0
0

Today I tried using FFmpeg on my Linux Ubuntu server but for some reason it froze and not playing any of the song. It stayed like this . Even 'q' and '?' aren't doing anything. The command I used worked perfectly on Windows. The command I use is -i {pathtofile} -f s16le -ar 48000 -ac 2 pipe:1 I then read the stream and send it in my case to Discord. On Windows the sending etc. works great but on Linux it doesn't work. Any idea how to fix this?

Thanks in advance!

Video stream url extract using python

$
0
0

I am trying to extract video source url from online video, I have tried selenium and scrapy but I can use these tools to extract any data from the website if we know the exact xpath.

But some websites they don't have source url on the page (hidden), I can see that on wireshark traffic or “Video DownloadHelper” chrome addon extracts the source.

Is there any python lib to extract any streaming video url from online page (like Video downloadhelper)?

Thanks in advance.

convert AVPicture to array

$
0
0

I use ffmpeg to extract frame of video in c++. I want to get array of frame in c++ but I get AVFrame from this line code.

avcodec_decode_video2(codecContext, DecodedFrame, &gotPicture, Packet);

So I use sws_scale to convert AVFrame to AVPicture but also I cannot got array from frame.

sws_scale(convertContext, DecodedFrame->data, DecodedFrame->linesize, 0, (codecContext)->height, convertedFrame->data, convertedFrame->linesize);

So can anyone help me to convert AVFrame or AVPicture to array?

How to make it more quickly that compressing video with ffmpeg in Android

$
0
0

I compress video with ffmpeg in Android ,it is much slower ,and I compress a video that is 3min take long time to do it .

Is it possible to use Emgu CV 3.0 to open a live stream with rstp protocol with ffmpeg h264

$
0
0

Is it possible to use this code in capturing a video stream from an ip camera?

Capture cap = new Capture("rtsp://192.168.42.1:554/live"); imageBox1.Image = cap.QueryFrame();

because my image box is displaying nothing but when i tried viewing it to VLC Media Player the ip address worked. Please help.

I also tried it with VLCPlugin v2 instead of using imageBox and the ip address still work..

I also tried it with iSpy and it worked under ffmpeg(h264), maybe the problem is there? I'm using Visual Studio Ultimate 2010, Emgu CV 3.x. and I'm using Please help. Been working on this for long now.

avcodec/ffv1enc: Fix storing RGB48 without explicitly set level

$
0
0
avcodec/ffv1enc: Fix storing RGB48 without explicitly set level the bps value is only stored with level >= 1, using rgb48 with level 0 requires the
user app to keep track of the bps by external means, which does not always happen
also we force level >= 1 for other 16bps formats, so this is consistent. Found-by: Jerome Martinez 
Signed-off-by: Michael Niedermayer 
  • [DH] libavcodec/ffv1enc.c

lavc/utvideoenc: Set bits_per_coded_sample for rgba.

$
0
0
lavc/utvideoenc: Set bits_per_coded_sample for rgba. Allows to write correct value for biBitCount into BITMAPINFOHEADER.
Before, ff_put_bmp_header() always wrote "24" as biBitCount
for utvideo because bits_per_coded_sample was never set by the
encoder.
  • [DH] libavcodec/utvideoenc.c

avcodec/interplayvideo: Check side data size before use

$
0
0
avcodec/interplayvideo: Check side data size before use Fixes out of array read Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer 
  • [DH] libavcodec/interplayvideo.c

avfilter/scale_npp: fix passthrough mode

$
0
0
avfilter/scale_npp: fix passthrough mode Reviewed-by: Timo Rothenpieler 
Signed-off-by: Michael Niedermayer 
  • [DH] libavfilter/vf_scale_npp.c

scale_npp: fix passthrough mode

$
0
0
scale_npp: fix passthrough mode Signed-off-by: Anton Khirnov 
  • [DBH] libavfilter/vf_scale_npp.c

fate: Add MXF D10/DNXHD/DV25 probe tests

$
0
0
fate: Add MXF D10/DNXHD/DV25 probe tests Signed-off-by: Tobias Rapp 
Signed-off-by: Michael Niedermayer 
  • [DH] tests/fate/mxf.mak
  • [DH] tests/ref/fate/mxf-probe-d10
  • [DH] tests/ref/fate/mxf-probe-dnxhd
  • [DH] tests/ref/fate/mxf-probe-dv25

build-ffmpeg.sh bad variable name

$
0
0

I have added the library to my project successfully but after replacing the Android media player with the FFmpegMediaPlayer and trying to build and run the project, I get the following error:

:library:buildFFmpeg
/home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh: 4: export: Africa/Music: bad variable name FAILED FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':library:buildFFmpeg'.
> Process 'command '/home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh'' finished with non-zero exit value 2 * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 34.148 secs

How can I solve tackle this since removing the build-ffmpeg.sh file doesn't look like an option.

Révision 23224: PSR et longueurs de lignes


Video encoding in real time through node js?

Cutting the videos based on start and end time using ffmpeg

$
0
0

I tried to cut the video using the start and end time of the video by using the following command

ffmpeg -ss 00:00:03 -t 00:00:08 -i movie.mp4 -acodec copy -vcodec copy -async 1 cut.mp4

By using the above command i want to cut the video from 00:00:03 to 00:00:08. But it is not cutting the video between those times instead of that it is cutting the video with first 11 seconds. can anyone help me how resolve this?

Edit 1:

I have tried to cut by using the following command which is suggested by mark4o

ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4

But it was shown the following error.

the encoder 'aac' is experimental but experimental codecs are not enabled

so i added the -strict -2 into the command i.e.,

ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 -strict -2 cut.mp4

Now it is working fine.

Révision 23225: PSR

Anomalie #3846 (Nouveau): La compression JS retire des espaces dans des chaines entre quotes

$
0
0

Je viens de remarquer que dans certains cas, la compression JS retire des espaces dans des chaînes entre quotes, cf :

http://zone.spip.org/trac/spip-zone/changeset/100159

Le script passéà travers le filtre compacte est le suivant :

http://zone.spip.org/trac/spip-zone/browser/_plugins_/gis/trunk/lib/leaflet/dist/leaflet.js

En y regardant de plus près, des chaînes comme " leaflet-" deviennent "leaflet-" après compression, et comme celles-ci sont utilisées pour définir des classes css à appliquer sur des éléments du DOM, on se retrouve avec des attributs class comme "mahcinbidule" au lieu de "mahcin bidule".

Le truc étrange, c'est que toutes les chaînes du type " machine" ne sont pas impactées, seulement certaines le sont...

Révision 100162: GD a du légèrement évoluer un jour. La couleur extraite est légèrement différent...

Viewing all 118104 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>