-
ffmpeg wisdom … [cheatsheet]
FFMPEG Timestamps: Well it’s all about time. FFMpeg uses in fact three different timestamps in different bases in order to work.
-
HowTo: NGINX match on URI param+value(with regex) and redirect to other URL and same URI
The above configuration will redirect to @loc_redirect URL, while keeping the URI, all requests but these with URI parameter “media_request” containing “dvr” in this param value. So, the URL: https://some-exact-url.here/alabala?type=one&media_request=djidji-bidji_dvr-eho&index=index.php will do 302 redirect to @srv-stream location. And all URLs which does not contain param “media_request” with value containing “dvr” will be 302 redirected to…
-
[HowTo]: ffmpeg audio/video tracks mappings a.k.a. ffmpeg Advanced Options
from: http://ffmpeg.org/ffmpeg.html#Advanced-options <— Go here and read the updated docs! 5.11 Advanced options -map [-]input_file_id[:stream_specifier][?][,sync_file_id[:stream_specifier]] | [linklabel] (output) Designate one or more input streams as a source for the output file. Each input stream is identified by the input file index input_file_id and the input stream index input_stream_id within the input file. Both indices start at 0. If specified, sync_file_id:stream_specifier sets which input…
-
CheatSheat: ffmpeg switch audio track 0 and 1 and make second audio track default
Switch first and second Audio Tracks with ffmpeg to make second audio track default: ffmpeg -i input.video -map 0:v:0 -map 0:a:1 -map 0:a:0 -c copy output.video
-
CheatSheet: ffmpeg merge video+audio in 1 video file, aka ffmpeg mp4+m4a = mp4 (with audio)
ffmpeg -i video.mp4 -i audio.m4a -c:a copy -c:v copy video-with-audio.mp4 that’s all without re/transcoding neither video nor audio.
-
QUICK FFMPEG: convert .m4a files to .mp3 with metadata!
Used tools: ffmpeg, libid3-tools ### convert m4a audio files to mp3 with id3 v2 metadata only! find . -type f -iname ‘*.m4a’ -exec ffmpeg -i {} -n -vsync 2 -map_metadata 0 -id3v2_version 3 {}.mp3 \; ### copy id3v2 metadata to id3v1 metadata id3 fields!!! For radio streaming only id3v1 metadata us used! find . -type…
-
HOWTO: Install Flash Media Server 4.5 on Debian squeeze
OS: root@streamer:~# cat /proc/version ;cat /etc/issue;uname -a Linux version 2.6.32-5-amd64 (Debian 2.6.32-45) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun May 6 04:00:17 UTC 2012 Debian GNU/Linux 6.0 \n \l Linux streamer 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux ——– Start. root@streamer:/opt# unzip FlashMediaServer_4_5_all.zip Archive: FlashMediaServer_4_5_all.zip inflating: readme.htm inflating:…
-
HOWTO: Configure FlowPlayer to play VOD from FMS 4.5
..continue from: HOWTO: Configure VOD Streaming in Flash Media Development Server 4.5 on Debian 1. Download flowplayer with the plugin from http://flowplayer.org/plugins/streaming/rtmp.html 2. mkdir , extract, write html: root@debian:/opt/adobe/fms/webroot#mkdir flowplayer; cd flowplayer root@debian:/opt/adobe/fms/webroot/flowplayer# cat vod1.html <html> <head> <title>Flowplayer</title> <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> <script src=”flowplayer-3.2.6.min.js”></script> </head> <div style=”width:400px;margin:2px auto;border-style:groove;border-width:5px;border-color: gray;”> <body> <!– player container–> <a href=”player” style=”display:block;width:400px;height:300px” id=”player”></a>…
-
HOWTO: Configure VOD Streaming in Flash Media Development Server 4.5 on Debian
..continue from HOWTO: Install Flash Media Development Server 4.5 on Debian 1. Making VoD Application named test: root@debian:/opt/adobe/fms# cd applications/vod/media/ root@debian:/opt/adobe/fms/applications/vod/media# ls -la total 53644 drwxrwxrwx 2 fms fms 4096 Feb 24 14:42 . drwxrwxrwx 3 fms fms 4096 Feb 24 14:42 .. -rwxrwxrwx 1 fms fms 13733568 Feb 24 14:42 sample1_1000kbps.f4v -rwxrwxrwx 1 fms fms 19699010…
-
HOWTO: Install Flash Media Development Server 4.5 on Debian
OS: Debian squeeze default install 64bit root@debian:/opt# uname -a Linux debian 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux root@debian:/opt# cat /proc/version Linux version 2.6.32-5-amd64 (Debian 2.6.32-41) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Jan 16 16:22:28 UTC 2012 installing: root@debian:/opt#apt-get install libnspr4-dev ………… root@debian:/opt# ls FlashMediaServer4.5_x64.tar.gz root@debian:/opt# tar…