Código Javascript:
y esto es el string que me muestra por consolaVer original
function getYouTubeID(url) { return decodeURIComponent(url) .match(/(\?|&)v=([^&]+)/) .pop(); }
Código zsdfs:
lo unico que necesito es la parte que esta entre el "Metadata" de la linea 15 y "Metadata" que esta en el final. Les agradezco de antemano por la atencion :) Ver original
ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 12 2013 06:45:21 with gcc 4.8 (Debian 4.8.1-10) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libiec61883 --enable-libfdk-aac --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu libavutil 52. 18.100 / 52. 48.101 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 5.101 libswresample 0. 17.102 / 0. 17.104 libpostproc 52. 2.100 / 52. 3.100 [mp3 @ 0x230a880] max_analyze_duration 5000000 reached at 5015510 microseconds [mp3 @ 0x230a880] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from '/home/sonick7/Vídeos/multimedia/3aa347c49202f12db591bb6c019d1e55': Metadata: title : Ajena TLEN : 293000 publisher : Sony International genre : genre album : eddy errera y proyecto 1 album_artist : Magic Juan track : 1 composer : Alejandro Montero artist : Heddy Herrera date : 2002 Duration: 00:04:53.82, start: 0.000000, bitrate: 127 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Stream #0:1: Video: mjpeg, yuvj420p, 96x96 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc Metadata: title : comment : Cover (front) At least one output file must be specified