Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (65)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7761)

  • Adjusting The Timetable and SQL Shame

    16 août 2012, par Multimedia Mike — General, Python, sql

    My Game Music Appreciation website has a big problem that many visitors quickly notice and comment upon. The problem looks like this :



    The problem is that all of these songs are 2m30s in length. During the initial import process, unless a chiptune file already had curated length metadata attached, my metadata utility emitted a default play length of 150 seconds. This is not good if you want to listen to all the songs in a soundtrack without interacting with the player page, but have various short songs (think “game over” or other quick jingles) that are over in a few seconds. Such songs still pad out 150 seconds of silence.

    So I needed to correct this. Possible solutions :

    1. Manually : At first, I figured I could ask the database which songs needed fixing and listen to them to determine the proper lengths. Then I realized that there were well over 1400 games affected by this problem. This just screams “automated solution”.
    2. Automatically : Ask the database which songs need fixing and then somehow ask the computer to listen to the songs and decide their proper lengths. This sounds like a winner, provided that I can figure out how to programmatically determine if a song has “finished”.

    SQL Shame
    This play adjustment task has been on my plate for a long time. A key factor that has blocked me is that I couldn’t figure out a single SQL query to feed to the SQLite database underlying the site which would give me all the songs I needed. To be clear, it was very simple and obvious to me how to write a program that would query the database in phases to get all the information. However, I felt that it would be impure to proceed with the task unless I could figure out one giant query to get all the information.

    This always seems to come up whenever I start interacting with a database in any serious way. I call it SQL shame. This task got some traction when I got over this nagging doubt and told myself that there’s nothing wrong with the multi-step query program if it solves the problem at hand.

    Suddenly, I had a flash of inspiration about why the so-called NoSQL movement exists. Maybe there are a lot more people who don’t like trying to derive such long queries and are happy to allow other languages to pick up the slack.

    Estimating Lengths
    Anyway, my solution involved writing a Python script to iterate through all the games whose metadata was output by a certain engine (the one that makes the default play length 150 seconds). For each of those games, the script queries the song table and determines if each song is exactly 150 seconds. If it is, then go to work trying to estimate the true length.

    The forgoing paragraph describes what I figured was possible with only a single (possibly large) SQL query.

    For each song represented in the chiptune file, I ran it through a custom length estimator program. My brilliant (err, naïve) solution to the length estimation problem was to synthesize seconds of audio up to a maximum of 120 seconds (tightening up the default length just a bit) and counting how many of those seconds had all 0 samples. If the count reached 5 consecutive seconds of silence, then the estimator rewound the running length by 5 seconds and declared that to be the proper length. Update the database.

    There were about 1430 chiptune files whose songs needed updates. Some files had 1 single song. Some files had over 100. When I let the script run, it took nearly 65 minutes to process all the files. That was a single-threaded solution, of course. Even though I already had the data I needed, I wanted to try to hand at parallelizing the script. So I went to work with Python’s multiprocessing module and quickly refactored it to use all 4 CPU threads on the machine where the files live. Results :

    • Single-threaded solution : 64m42s to process corpus (22 games/minute)
    • Multi-threaded solution : 18m48s with 4 CPU threads (75 games/minute)

    More than a 3x speedup across 4 CPU threads, which is decent for a primarily CPU-bound operation.

    Epilogue
    I suspect that this task will require some refinement or manual intervention. Maybe there are songs which actually have more than 5 legitimate seconds of silence. Also, I entertained the possibility that some songs would generate very low amplitude noise rather than being perfectly silent. In that case, I could refine the script to stipulate that amplitudes below a certain threshold count as 0. Fortunately, I marked which games were modified by this method, so I can run a new script as necessary.

    SQL Schema
    Here is the schema of my SQlite3 database, for those who want to try their hand at a proper query. I am confident that it’s possible ; I just didn’t have the patience to work it out. The task is to retrieve all the rows from the games table where all of the corresponding songs in the songs table is 150000 milliseconds.

    1. CREATE TABLE games
    2.   (
    3.    id INTEGER PRIMARY KEY AUTOINCREMENT,
    4.    uncompressed_sha1 TEXT,
    5.    uncompressed_size INTEGER,
    6.    compressed_sha1 TEXT,
    7.    compressed_size INTEGER,
    8.    system TEXT,
    9.    game TEXT,
    10.    gme_system TEXT default NULL,
    11.    canonical_url TEXT default NULL,
    12.    extension TEXT default "gamemusicxz",
    13.    enabled INTEGER default 1,
    14.    redirect_to_id INT DEFAULT -1,
    15.    play_lengths_modified INT DEFAULT NULL) ;
    16. CREATE TABLE songs
    17.   (
    18.    game_id INTEGER,
    19.    song_number INTEGER NOT NULL,
    20.    song TEXT,
    21.    author TEXT,
    22.    copyright TEXT,
    23.    dumper TEXT,
    24.    length INTEGER,
    25.    intro_length INTEGER,
    26.    loop_length INTEGER,
    27.    play_length INTEGER,
    28.    play_order INTEGER default -1) ;
    29. CREATE TABLE tags
    30.   (
    31.    game_id INTEGER,
    32.    tag TEXT NOT NULL,
    33.    tag_type TEXT default "filename") ;
    34. CREATE INDEX gameid_index_songs ON songs(game_id) ;
    35. CREATE INDEX gameid_index_tag ON tags(game_id) ;
    36. CREATE UNIQUE INDEX sha1_index ON games(uncompressed_sha1) ;
  • Scale overlay image FFMPEG

    6 juillet 2015, par VickyS

    I have 3 inputs— a background image, a text file containing list of image file location (to overlay on background image), and an audio file (to be played in background).

    I need to scale the overlay images from "images.txt".
    I am using below command.
    I dont know what am I doing wrong.

    command: ffmpeg -loop 1 -i /sdcard/emoj/angry_bg.png -r 21.0 -f concat -i /sdcard/emoj/images.txt -i /sdcard/emoj/final.wav -filter_complex [1]scale=320:240 [ovrl],[0][ovrl] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2 -shortest -s 1080x1920 -b:v 320k -codec:v h264 -c:v mpeg4 -c:a aac -strict experimental -b:a 32k /sdcard/emoj/myPetVideo.mp4

    Please give suggestions.

    Logcat Output :

    07-06 04:13:38.525: I/ffmpeg4android(28481): Command is set
    07-06 04:13:38.525: I/ffmpeg4android(28481): set remoteNotificationIconId: 0
    07-06 04:13:38.535: D/ffmpeg4android(28481): Client Cannot unbind - service not bound
    07-06 04:13:38.535: D/ffmpeg4android(28481): Client stopService()
    07-06 04:13:38.545: W/ContextImpl(28481): Implicit intents with startService are not safe: Intent { act=com.netcompss.ffmpeg4android.FFMpegRemoteServiceBridge } android.content.ContextWrapper.stopService:520 com.netcompss.ffmpeg4android_client.BaseWizard.stopService:495 com.netcompss.ffmpeg4android_client.BaseWizard.runTranscoing:279
    07-06 04:13:38.555: I/ffmpeg4android(28481): !!!!!!!!!!!!!!!!!!services.size(): 1
    07-06 04:13:38.555: I/ffmpeg4android(28481): putting Base categoty
    07-06 04:13:38.615: D/ffmpeg4android(28481): started: com.netcompss.ffmpeg4android.FFMpegRemoteServiceBridge
    07-06 04:13:38.615: D/ffmpeg4android(28481): Client startService()
    07-06 04:13:38.615: D/ffmpeg4android(28481):  bindService() called
    07-06 04:13:38.615: W/ContextImpl(28481): Implicit intents with startService are not safe: Intent { act=com.netcompss.ffmpeg4android.FFMpegRemoteServiceBridge } android.content.ContextWrapper.bindService:538 com.netcompss.ffmpeg4android_client.BaseWizard.bindService:506 com.netcompss.ffmpeg4android_client.BaseWizard.runTranscoing:282
    07-06 04:13:38.625: D/ffmpeg4android(28481): Client bindService()
    07-06 04:13:38.725: I/ffmpeg4android(28620): =======service onCreate(): Stopping forground (to overcome 2.3.x bug)
    07-06 04:13:38.725: I/ffmpeg4android(28620): =======service onBind()=======
    07-06 04:13:38.735: I/ffmpeg4android(28620): ===onStartCommand called
    07-06 04:13:38.735: D/ffmpeg4android(28481): Client onServiceConnected()
    07-06 04:13:38.735: E/ffmpeg4android(28481): invokeService called
    07-06 04:13:38.735: E/rc......(28481): 1
    07-06 04:13:38.735: I/ffmpeg4android(28481): setting remote notification info
    07-06 04:13:38.735: D/ffmpeg4android(28620): command items num: 33
    07-06 04:13:38.735: D/ffmpeg4android(28620): command: ffmpeg -loop 1 -i /sdcard/emoj/angry_bg.png -r 21.0 -f concat -i /sdcard/emoj/images.txt -i /sdcard/emoj/final.wav -filter_complex [1]scale=320:240 [ovrl],[0][ovrl] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2 -shortest -s 1080x1920 -b:v 320k -codec:v h264 -c:v mpeg4 -c:a aac -strict experimental -b:a 32k /sdcard/emoj/myPetVideo.mp4
    07-06 04:13:38.745: D/ffmpeg4android(28620): workingFolder from remote: /sdcard/emoj
    07-06 04:13:38.745: D/ffmpeg4android(28481): deleteing: /sdcard/emoj/vk.log isdeleted: true
    07-06 04:13:38.745: D/ffmpeg4android(28481): deleteing: /sdcard/emoj/ffmpeg4android.log isdeleted: false
    07-06 04:13:38.745: D/ffmpeg4android(28481): deleteing: /sdcard/emoj/videokit.log isdeleted: true
    07-06 04:13:38.745: D/ffmpeg4android(28481): Client invokeService()
    07-06 04:13:38.755: I/ffmpeg4android(28620): ===onStartCommand cat: Base
    07-06 04:13:38.755: D/ffmpeg4android(28620): onStartCommand, START_STICKY, base Command
    07-06 04:13:38.755: D/ffmpeg4android(28481): Acquire wake lock
    07-06 04:13:38.765: D/ffmpeg4android(28481): TranscodeBackground doInBackground started
    07-06 04:13:38.765: I/ffmpeg4android(28620): =======remote service runTranscoding ======
    07-06 04:13:38.775: I/ffmpeg4android(28620): Start RemoteService with notification id: 5326
    07-06 04:13:38.785: I/ffmpeg4android(28620): Run called.
    07-06 04:13:38.785: I/ffmpeg4android(28620): ===============Running command from thread path: /sdcard/emoj
    07-06 04:13:38.785: I/ffmpeg4android(28620): videokitLibPath: /data/data/org.vinuxproject.sonic/lib/libvideokit.so
    07-06 04:13:38.785: I/Videokit(28620): dlopen libvideokit from path: /data/data/org.vinuxproject.sonic/lib/libvideokit.so
    07-06 04:13:38.785: I/ffmpeg4android(28620): =======ProgressBackgroundRemote doInBackground=========
    07-06 04:13:38.785: W/linker(28620): libvideokit.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
    07-06 04:13:38.795: I/Videokit(28620): libvideokit.so loaded
    07-06 04:13:38.795: I/Videokit(28620): args is not NULL
    07-06 04:13:38.795: I/Videokit(28620): more then one arg
    07-06 04:13:38.795: I/Videokit(28620): function symbol found
    07-06 04:13:38.795: D/Videokit(28620): Calling videokit run via loader
    07-06 04:13:38.795: I/Videokit(28620): vk ffmpeg sdcardPath: /sdcard/emoj
    07-06 04:13:38.795: I/Videokit(28620): licenseCheck in path: /sdcard/emoj
    07-06 04:13:38.795: I/Videokit(28620): isLicExistsComplex...
    07-06 04:13:38.795: I/Videokit(28620): trying to open /sdcard/emoj/ffmpeglicense.lic
    07-06 04:13:38.795: I/Videokit(28620): license file found...
    07-06 04:13:38.795: I/Videokit(28620): Permanent license validated.
    07-06 04:13:38.795: D/Videokit(28620): license check rc: 1
    07-06 04:13:38.795: D/Videokit(28620): run() called version 2.0
    07-06 04:13:39.165: A/libc(28620): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 28620 (ct.sonic:remote)
    07-06 04:13:39.655: D/ffmpeg4android(28481): onServiceDisconnected
    07-06 04:13:40.805: I/ffmpeg4android(28656): =======service onCreate(): Stopping forground (to overcome 2.3.x bug)
    07-06 04:13:40.805: I/ffmpeg4android(28656): =======service onBind()=======
    07-06 04:13:40.815: I/ffmpeg4android(28656): ===onStartCommand called
    07-06 04:13:40.815: D/ffmpeg4android(28656): Not running since the OS auto started the service after crash
    07-06 04:13:40.815: D/ffmpeg4android(28481): Client onServiceConnected()
    07-06 04:13:40.815: E/ffmpeg4android(28481): invokeService called
    07-06 04:13:40.815: E/rc......(28481): 1
    07-06 04:13:40.815: I/ffmpeg4android(28481): setting remote notification info
    07-06 04:13:40.815: D/ffmpeg4android(28481): Not invoking
    07-06 04:13:40.825: I/ffmpeg4android(28656): Cancel notification: 5326
    07-06 04:13:41.135: I/ffmpeg4android(28481): Got real duration: 00:00:00.04
    07-06 04:13:41.145: W/ffmpeg4android(28481): /sdcard/emoj/ffmpeg4android.log: open failed: ENOENT (No such file or directory)
    07-06 04:13:41.145: I/ffmpeg4android(28481): ==== getting currentVkLogSize from FFmpeg4Android log
    07-06 04:13:41.145: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:41.155: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:41.155: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:41.155: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:41.155: I/line(28481): exit_program: 1
    07-06 04:13:41.155: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:41.155: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:41.155: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:41.455: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:41.455: D/ffmpeg4android(28481): currentVkLogSize: 5316
    07-06 04:13:41.465: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:41.465: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:41.465: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:41.465: I/line(28481): exit_program: 1
    07-06 04:13:41.465: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:41.465: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:41.465: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:41.765: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:41.765: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:41.765: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:41.765: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:41.765: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:41.765: I/line(28481): exit_program: 1
    07-06 04:13:41.765: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:41.775: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:41.775: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:42.075: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:42.075: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:42.075: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:42.075: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:42.075: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:42.075: I/line(28481): exit_program: 1
    07-06 04:13:42.075: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:42.075: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:42.075: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:42.375: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:42.375: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:42.375: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:42.385: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:42.385: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:42.385: I/line(28481): exit_program: 1
    07-06 04:13:42.385: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:42.385: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:42.385: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:42.685: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:42.685: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:42.685: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:42.685: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:42.685: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:42.695: I/line(28481): exit_program: 1
    07-06 04:13:42.695: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:42.695: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:42.695: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:42.995: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:42.995: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:42.995: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:42.995: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:42.995: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:42.995: I/line(28481): exit_program: 1
    07-06 04:13:42.995: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:42.995: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:42.995: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:43.295: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:43.295: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:43.305: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:43.305: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:43.305: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:43.305: I/line(28481): exit_program: 1
    07-06 04:13:43.305: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:43.305: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:43.305: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:43.605: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:43.605: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:43.615: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:43.615: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:43.615: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:43.615: I/line(28481): exit_program: 1
    07-06 04:13:43.615: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:43.615: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:43.615: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:43.915: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:43.915: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:43.915: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:43.915: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:43.915: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:43.915: I/line(28481): exit_program: 1
    07-06 04:13:43.915: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:43.925: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:43.925: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:44.225: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:44.225: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:44.225: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:44.225: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:44.225: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:44.225: I/line(28481): exit_program: 1
    07-06 04:13:44.225: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:44.225: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:44.225: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:44.525: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:44.525: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:44.525: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:44.535: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:44.535: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:44.535: I/line(28481): exit_program: 1
    07-06 04:13:44.535: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:44.535: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:44.535: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:44.835: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:44.835: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:44.835: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:44.835: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:44.835: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:44.835: I/line(28481): exit_program: 1
    07-06 04:13:44.835: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:44.845: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:44.845: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:45.155: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:45.155: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:45.155: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:45.155: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:45.155: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:45.155: I/line(28481): exit_program: 1
    07-06 04:13:45.155: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:45.155: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:45.155: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:45.455: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:45.455: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:45.455: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:45.455: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:45.455: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:45.455: I/line(28481): exit_program: 1
    07-06 04:13:45.455: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:45.455: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:45.455: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:45.755: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:45.755: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:45.765: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:45.765: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:45.765: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:45.765: I/line(28481): exit_program: 1
    07-06 04:13:45.765: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:45.765: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:45.765: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:46.065: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:46.065: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:46.065: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:46.075: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:46.075: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:46.075: I/line(28481): exit_program: 1
    07-06 04:13:46.075: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:46.075: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:46.075: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:46.375: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:46.375: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:46.375: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:46.375: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:46.375: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:46.375: I/line(28481): exit_program: 1
    07-06 04:13:46.385: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:46.385: I/ffmpeg4android(28481): progress is 0, not setting
    07-06 04:13:46.385: I/ffmpeg4android(28481): progress is 0, not publishing
    07-06 04:13:46.685: I/ffmpeg4android(28481): ==== getting currentVkLogSize from VK
    07-06 04:13:46.685: W/ffmpeg4android(28481): Looks like Vk log is not increasing in size
    07-06 04:13:46.685: I/ffmpeg4android(28481): No ffmpeg4android_log file, using vk log
    07-06 04:13:46.685: I/line(28481): a suitable output format for '[ovrl],[0][ovrl]'
    07-06 04:13:46.685: I/line(28481): [ovrl],[0][ovrl]: Invalid argument
    07-06 04:13:46.685: I/line(28481): exit_program: 1
    07-06 04:13:46.685: D/ffmpeg4android(28481): currentTimeStr: 00:00:00.00
    07-06 04:13:46.685: E/ffmpeg4android(28481): VK log is not changing in size, and no exit token found
    07-06 04:13:46.695: I/ffmpeg4android(28481): onProgressUpdate: 100
    07-06 04:13:46.695: D/ffmpeg4android(28481): Releasing wake lock
    07-06 04:13:46.695: D/ffmpeg4android(28481): TranscodeBackground onPostExecute
    07-06 04:13:46.705: W/ffmpeg4android(28481): progressDialog failed to dismiss: null
    07-06 04:13:46.705: W/ffmpeg4android(28481): android.os.DeadObjectException
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.BinderProxy.transactNative(Native Method)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.BinderProxy.transact(Binder.java:496)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at com.netcompss.ffmpeg4android.IFfmpgefRemoteServiceBridge$Stub$Proxy.setTranscodingProgress(IFfmpgefRemoteServiceBridge.java:181)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at com.netcompss.ffmpeg4android_client.TranscodeBackground.onPostExecute(TranscodeBackground.java:163)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at com.netcompss.ffmpeg4android_client.TranscodeBackground.onPostExecute(TranscodeBackground.java:1)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.AsyncTask.finish(AsyncTask.java:632)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.AsyncTask.access$600(AsyncTask.java:177)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.Handler.dispatchMessage(Handler.java:102)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.os.Looper.loop(Looper.java:135)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at android.app.ActivityThread.main(ActivityThread.java:5232)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at java.lang.reflect.Method.invoke(Native Method)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at java.lang.reflect.Method.invoke(Method.java:372)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
    07-06 04:13:46.705: W/ffmpeg4android(28481):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    07-06 04:13:46.715: D/ffmpeg4android(28481): /sdcard/emoj/null length in bytes: 0
    07-06 04:13:46.715: D/ffmpeg4android(28481): showNotifications
    07-06 04:13:46.715: I/ffmpeg4android(28481): ============ Transcoding Failed, caling fexist
    07-06 04:13:46.715: E/ffmpeg4android(28481): fexit remote excetion
    07-06 04:13:46.765: I/ffmpeg4android(28481): FFMPEG finished.
    07-06 04:13:46.985: D/ffmpeg4android(28481): releaseService()
    07-06 04:13:46.985: D/ffmpeg4android(28481): Client stopService()
    07-06 04:13:46.985: I/ffmpeg4android(28656): =======service onDestroy()======
    07-06 04:13:46.985: W/ContextImpl(28481): Implicit intents with startService are not safe: Intent { act=com.netcompss.ffmpeg4android.FFMpegRemoteServiceBridge } android.content.ContextWrapper.stopService:520 com.netcompss.ffmpeg4android_client.BaseWizard.stopService:495 org.vinuxproject.sonic.WaveformActivity.handleServiceFinished:456
  • FFmpeg to RTMP - no audio on output [closed]

    25 mars 2022, par John Mergene Arellano

    From my client side, I am sending a stream using the Socket.IO library. I captured the video and audio using getUserMedia API.

    


    navigator.mediaDevices.getUserMedia(constraints).then((stream) => {
    window.videoStream = video.srcObject = stream;
    let mediaRecorder = new MediaRecorder(stream, {
        videoBitsPerSecond : 3 * 1024 * 1024
    });
    mediaRecorder.addEventListener('dataavailable', (e) => {
        let data = e.data;
        socket.emit('live', data);
    });
    mediaRecorder.start(1000);
});


    


    Then my server will receive the stream and write it to FFmpeg.

    


    client.on('live', (stream)=>{
   if(ffmpeg)
       ffmpeg.stdin.write(stream);
});


    


    I tried watching the live video in VLC media player. There is a 5 seconds delay and no audio output.

    


    Please see below for FFmpeg options I used :

    


    ffmpeg = this.CHILD_PROCESS.spawn("ffmpeg", [
   '-f',
   'lavfi',
   '-i', 'anullsrc',
   '-i','-',
   '-c:v', 'libx264', '-preset', 'veryfast', '-tune', 'zerolatency',
   '-c:a', 'aac', '-ar', '44100', '-b:a', '64k',
   '-y', //force to overwrite
   '-use_wallclock_as_timestamps', '1', // used for audio sync
   '-async', '1', // used for audio sync
   '-bufsize', '1000',
   '-f',
   'flv',
   `rtmp://127.0.0.1:1935/live/stream` ]);


    


    What is wrong with my setup ?

    


    I tried removing some of the options but failed. I am expecting to have an output of video and audio from the getUserMedia API.