
Recherche avancée
Autres articles (92)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (16075)
-
how to solve Build_one function error ?
10 mai 2014, par vinothI’m trying to separate audio and video from video file. After searching on the internet I came to know it can be done using FFMPEG.
Now I need to build FFMPEG library file for my Android application using Ubuntu version 14.04 (64-bit) NDK R9 ffmpeg 2.2.2 while building it causes an error below line :
build_android.sh : 9 : build_android.sh : function : not found.
Logout :
#!/bin/bash
NDK=$HOME/Desktop/adt/android-ndk-r9
SYSROOT=$NDK/platforms/android-9/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-avdevice \
--disable-doc \
--disable-symver \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
make install
}
CPU=arm
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-marm"
build_oneTo fix that issue I searched on the internet and I got a solution. Either in ./build_android.sh or in ./configure you have an extra ^M. Open the files with vi and clean them from this garbage.
I’ve fixed it and tried by fixing some other solution also but remains the same.
How can I fix this ?
-
Extract just the audio link from a youtube video without converting
27 janvier, par MR-4O4I know there are hundreds of sites to convert youtube video to mp3. Most of them do it by first downloading the video and then converting it to mp3(or any other audio format) on their server using youtube-dl, ffmpeg or similar programs.



What I want to know is, is there any way I can just extract the audio link for any youtube video ? I don't know if it's possible but I saw a couple of websites doing it .



First Website : Openaisearch.com
This website simply gives a download link for the audio(getting it from youtube videos). I searched for a song and saw the download url, it looked something like this :



https://redirector.googlevideo.com/videoplayback?source=youtube&requiressl=yes&clen=3814013&upn=dzwY9aUVYME&lmt=1469875393441562&expire=1484854959&mime=audio%2Fmp4&nh=IgpwcjAxLnNlYTA5Kg01Mi45NS4yMTYuMTAy&itag=140........... 




I believe that this is not done by first downloading and converting the video to audio format(Correct me if I am wrong).
Although the file which gets downloaded after using this link is without any extension, but adding ".m4a" at the end of downloaded file does the work.



Second Website : http://keepvid.com/ ?url=https ://www.youtube.com/watch?v=PT2_F-1esPk



Again similar website with similar audio link. You can check by visiting the URL and see link of audio files.



Any idea how these websites get that "googlevideo.com" link ? Do they scrap the youtube video links or something ?



Thanks.


-
FFMPEG Audio stream/layer and SRT from one mkv to an other
13 juillet 2022, par kormorforI have an FFMPEG question for you !


Problem :


I have 2 files(x265)


01.mkv with multiple audio steams and multiple subtitles (with exactly named layers)


02.mkv with multiple audio steams and multiple subtitles (with exactly named layers)


I would like to add specific audio layer(GER) and specific subtitle(GER)
from 02.mkv to 01 mkv at the same time if it is possible.
(The metadata positions almost always random in file 02.mkv so I can't say it is "-map 0:s:2 for ger subtitle"...)


I have already searched and tried multiple solutions ...


This kind of worked with multiple steps but loses audio and subtitle metadata(Title) during process.


German audio layer extract from 02.mkv to aac


ffmpeg -i 02.mkv -map 0:a:m:language:ger 02.aac



German subtitle layer extract from 02.mkv to srt


ffmpeg -i 02.mkv -map 0:s:m:language:ger 02.srt



Adding extracted audio to 01.mkv


ffmpeg -i 01.mkv -i 02.aac -map 0 -map 1 -codec copy outputfinall_1.mkv



Adding extracted srt to 01.mkv none of this works


1.)


ffmpeg -i 01.mkv -i 02.srt -c copy -c:s mov_text outputfinall_2a.mkv



BUG : Subtitle encoding currently only possible from text to text or bitmap to bitmap


2.)


ffmpeg -i 01.mkv -i 02.srt -map 0 -map 1 -codec copy outputfinall_2b.mkv



works but does not show subtitles while playing only that is there.


Please if you can help I would like a less jumbled mess code for this problem.
With keeping the metadata (titles) of the moved audio stream and subtitle.


Thank you for your time !