Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (63)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (8940)

  • Dreamcast SD Adapter and DreamShell

    31 décembre 2014, par Multimedia Mike — Sega Dreamcast

    Nope ! I’m never going to let go of the Sega Dreamcast hacking. When I was playing around with Dreamcast hacking early last year, I became aware that there is such a thing as an SD card adapter for the DC that plugs into the port normally reserved for the odd DC link cable. Of course I wanted to see what I could do with it.

    The primary software that leverages the DC SD adapter is called DreamShell. Working with this adapter and the software requires some skill and guesswork. Searching for these topics tends to turn up results from various forums where people are trying to cargo-cult their way to solutions. I have a strange feeling that this post might become the unofficial English-language documentation on the matter.

    Use Cases
    What can you do with this thing ? Undoubtedly, the primary use is for backing up (ripping) the contents of GD-ROMs (the custom optical format used for the DC) and playing those backed up (ripped) copies. Presumably, users of this device leverage the latter use case more than the former, i.e., download ripped games, load them on the SD card, and launch them using DreamShell.

    However, there are other uses such as multimedia playback, system exploration, BIOS reprogramming, high-level programming, and probably a few other things I haven’t figured out yet.

    Delivery
    I put in an order via the dc-sd.com website and in about 2 short months, the item arrived from China. This marked my third lifetime delivery from China and curiously, all 3 of the shipments have pertained to the Sega Dreamcast.


    Dreamcast SD Adapter package

    Click for larger image


    I thought it was very interesting that this adapter came in such complete packaging. The text is all in Chinese, though the back states “Windows 98 / ME / 2000 / XP, Mac OS 9.1, LINUX2.4”. That’s what tipped me off that they must have just cannibalized some old USB SD card readers and packaging in order to create these. Closer inspection of the internals through the translucent pink case confirms this.

    Usage
    According to its change log, DreamShell has been around for a long time with version 1.0.0 released in February of 2004. The current version is 4.0.0 RC3. There are several downloads available :

    1. DreamShell 4.0 RC 3 CDI Image
    2. DreamShell 4.0 RC 3 + Boot Loader
    3. DreamShell 4.0 RC 3 + Core CDI image

    Option #2 worked for me. It contains a CDI disc image and the DreamShell files in a directory named DS/.

    Burn the CDI to a CD-R in the normal way you would burn a bootable Dreamcast disc from a CDI image. This is open-ended and left as an exercise to the reader, since there are many procedures depending on platform. On Linux, I used a small script I found once called burncdi-dc.sh.

    Then, copy the contents of the DS/ folder to an SD card. As for filesystem, FAT16 and FAT32 are both known to work. The files in DS/ should land in the root of the SD card ; the folder DS/ should not be in the root.

    Plug the SD card into the DC SD adapter and plug the adapter in the link cable port on the back of the Dreamcast. Then, boot the disc. If it works, you will see this minor corruption of the usual Sega licensing screen :


    DreamShell logo on Dreamcast startup

    Then, there will be a brief white-on-black text screen that explains the booting process :


    DreamShell booting text

    Then, there will be the main DreamShell logo :


    DreamShell logo

    Finally, you will land on the DreamShell main desktop :


    DreamShell 4.0.0 RC3 main desktop

    Skepticism
    At first, I was supremely skeptical of the idea that this SD adapter could perform speedily enough to play games reasonably. This was predicated on the observation that my DC coder’s cable that I used to use for homebrew development could not transfer faster than 115200 bits/second, amounting to about 11 kbytes/sec. I assumed that this was a fundamental limitation of the link port.

    In fact, I ripped a few of my Dreamcast discs over a decade ago and still have those rips lying around. So I copied the ISO image of Resident Evil : Code Veronica — the game I personally played most on the DC — to the SD card (anywhere works) and used the “ISO loader” icon seen on the desktop above to launch the game.

    It works :


    Resident Evil: Code Veronica title

    The opening FMV plays at full speed. Everything loads as fast as I remember. I was quite surprised.

    Digression : My assumptions about serial speeds have often been mistaken. 10 years ago, I heard stories about how we would soon be able to watch streaming video on our cell phones. I scoffed because I thought the 56K limitation of dialup modems was some sort of fundamental speed-of-light type of limitation for telephony bandwidth, wired or wireless.

    The desktop menu also includes a ‘speedtest’ tool that profiles the write and read performance of your preferred storage medium. For my fastest SD card (a PNY 2 GB card) :


    DreamShell speedtest utility

    This is probably more representative of the true adapter bandwidth as reading and writing is a good deal faster through more modern interfaces on PC and Mac with this same card.

    Look at the other options on the speedtest console. Hard drive ? Apparently, it’s possible, but it requires a good deal more hardware hacking than just purchasing this SD adapter.

    Ripping
    As you can see from the Resident Evil screenshot, playing games works quite nicely. How about ripping ? I’m pleased to say that DreamShell has a beautiful ripping interface :


    Ripping a GD-ROM using DreamShell

    Enter a name for the disc (or read the disc label), select the storage medium, and let it, well, rip. It indicates which track it’s working on and the Sega logo acts as a progress bar, shading blue as the track rip progresses.

    I’m finally, efficiently, archiving that collection of Sega Dreamcast demo discs ; I’m hoping they’ll eventually find a home at the Internet Archive. How is overall ripping performance ? Usually about 38-40 minutes to rip a full 900-1000 MB. That certainly beats the 27-28 hours that were required when I performed the ripping at 11 kbytes/sec via the DC coders cable.

    All is well until I get a sector reading error :


    DreamShell ripping error

    That’s when it can come in handy to have 3 DC consoles (see ?! not crazy !).

    Other Uses
    There’s a file explorer. You can browse the filesystem of the SD card, visual memory unit, or the CD portion of the GD-ROM (would be more useful if it accessed the GD area). There are FFmpeg files included. So I threw a random Cinepak file and random MPEG-1 file at it to see what happens. MPEG-1 didn’t do anything, but this Cinepak file from some Sierra game played handily :


    DreamShell playing Cinepak

    If you must enter strings, it helps to have a Dreamcast keyboard (which I do). Failing that, here’s a glimpse of the onscreen keyboard that DreamShell equips :


    DreamShell onscreen keyboard

    Learning to use it is a game in itself.

    There is an option of installing DreamShell in the BIOS. I did not attempt this. I don’t know if it’s possible (not like there’s a lot of documentation)– perhaps a custom BIOS modchip is needed. But here’s what the screen looks like :


    DreamShell BIOS installation menu

    There is also a plain console to interact with (better have a physical keyboard). There are numerous file manipulation commands and custom system interaction commands. I see one interesting command called ‘addr’ that looks useful for dumping memory regions to a file.

    A Lua language interpreter is also built in. I would love to play with this if I could ascertain whether DreamShell provided Dreamcast-specific APIs.

    Tips And Troubleshooting
    I have 3 Dreamcast consoles, affectionately named Terran, Protoss, and Zerg after the StarCraft II stickers with which they are adorned. Some seem to work better than others. Protoss seemed to be able to boot the DreamShell disc more reliably than the others. However, I was alarmed when it couldn’t boot one morning when it was churning the previous day.

    I think the problem is that it was just cold. That seemed to be the issue. I put in a normal GD-ROM and let it warm up on that disc for awhile and then DreamShell booted fine. So that’s my piece of cargo-culting troubleshooting advice.

  • Record Webcam as single JPG files [on hold]

    2 décembre 2016, par clic

    I have to record a Windows Directshow Webcam video stream (UHD, 30fps, yuyv422) as single JPG images. Performance is important, so preferably by using NVIDIA GPU acceleration via CUDA or something..

    What is the most simple but powerful solution, without having to buy proprietary software ?

    I had a look at ffmpeg, by recording as MJPEG and then using something like jpegtran to get the JPGs. I tried :

    ffmpeg -f dshow -video_size 1920x1080 -framerate 50 -vcodec mjpeg -i video="XI100DUSB-HDMI Video" out.avi

    But it results in an I/O error saying ’Could not set video options’. Maybe because of the yuyv422 pixel format of my Magewell USB dongles..

    Or is ffmpeg able to record as single JPGs directly somehow ?

    If someone has any other idea/solution besides ffmpeg, please let me know too ! Thanks !

    EDIT :

    I was now able to save JPGs directly, using webcamimg%04d.jpg instead of out.avi. But it’s always claiming about full real-time buffer. Raising the rtbufsize parameter doesn’t really help..

    ffmpeg console output :

    ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-li
    bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55. 34.100 / 55. 34.100
     libavcodec     57. 64.100 / 57. 64.100
     libavformat    57. 56.100 / 57. 56.100
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [dshow @ 0000000001c628a0] Could not set video options
    video=XI100DUSB-HDMI Video: I/O error

    Output of : ffmpeg -list_options true -f dshow -i video="XI100DUSB-HDMI Video"

    [dshow @ 00000000004d71e0] DirectShow video device options (from video devices)
    [dshow @ 00000000004d71e0]  Pin "Capture" (alternative pin name "0")
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=640x360 fps=15 max s=640x360 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=640x360 fps=15 max s=640x360 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=640x480 fps=15 max s=640x480 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=640x480 fps=15 max s=640x480 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=720x480 fps=15 max s=720x480 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=720x480 fps=15 max s=720x480 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=720x576 fps=15 max s=720x576 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=720x576 fps=15 max s=720x576 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=768x576 fps=15 max s=768x576 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=768x576 fps=15 max s=768x576 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=800x600 fps=15 max s=800x600 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=800x600 fps=15 max s=800x600 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=856x480 fps=15 max s=856x480 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=856x480 fps=15 max s=856x480 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=960x540 fps=15 max s=960x540 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=960x540 fps=15 max s=960x540 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1024x576 fps=15 max s=1024x576 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1024x576 fps=15 max s=1024x576 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1024x768 fps=15 max s=1024x768 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1024x768 fps=15 max s=1024x768 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x720 fps=15 max s=1280x720 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x720 fps=15 max s=1280x720 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x800 fps=15 max s=1280x800 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x800 fps=15 max s=1280x800 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x960 fps=15 max s=1280x960 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x960 fps=15 max s=1280x960 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1368x768 fps=15 max s=1368x768 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1368x768 fps=15 max s=1368x768 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1440x900 fps=15 max s=1440x900 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1440x900 fps=15 max s=1440x900 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   pixel_format=yuyv422  min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=640x360 fps=15 max s=640x360 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=640x360 fps=15 max s=640x360 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=640x480 fps=15 max s=640x480 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=640x480 fps=15 max s=640x480 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=720x480 fps=15 max s=720x480 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=720x480 fps=15 max s=720x480 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=720x576 fps=15 max s=720x576 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=720x576 fps=15 max s=720x576 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=768x576 fps=15 max s=768x576 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=768x576 fps=15 max s=768x576 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=800x600 fps=15 max s=800x600 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=800x600 fps=15 max s=800x600 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=856x480 fps=15 max s=856x480 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=856x480 fps=15 max s=856x480 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=960x540 fps=15 max s=960x540 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=960x540 fps=15 max s=960x540 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1024x576 fps=15 max s=1024x576 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1024x576 fps=15 max s=1024x576 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1024x768 fps=15 max s=1024x768 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1024x768 fps=15 max s=1024x768 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x720 fps=15 max s=1280x720 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x720 fps=15 max s=1280x720 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x800 fps=15 max s=1280x800 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x800 fps=15 max s=1280x800 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x960 fps=15 max s=1280x960 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x960 fps=15 max s=1280x960 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1368x768 fps=15 max s=1368x768 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1368x768 fps=15 max s=1368x768 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1440x900 fps=15 max s=1440x900 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1440x900 fps=15 max s=1440x900 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
    [dshow @ 00000000004d71e0]   unknown compression type 0xE436EB7D  min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
    video=XI100DUSB-HDMI Video: Immediate exit requested
  • merge (video and sound) with (background music)

    27 novembre 2016, par Nir di

    i have video file vid.mpg that contain video and audio(speaking) and audio file aud.wav that contain background music.

    now, i want to merge them together.

    here is the command that i use :

    ffmpeg -i vid.mpg -i aud.mp3 -c:v copy  -filter_complex "[0:a]aformat = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a][1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg

    and this is the error that i get as response :

    [Parsed_amerge_4 @ 00000000003a36e0] No channel layout for input 1
    [Parsed_amerge_4 @ 00000000003a36e0] Input channel layouts overlap: output layou
    t will be determined by the number of distinct input channels
    [mpeg @ 000000000289a4e0] VBV buffer size not set, using default size of 130KB
    If you want the mpeg file to be compliant to some specification
    Like DVD, VCD or others, make sure you set the correct buffer size

    in addition i add the full log :

    C:\bina\ffmpeg\bin>ffmpeg -i vid.mpg -i
    aud.mp3 -c:v copy  -filter_complex "[1:a]aform
    at = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a]
    [1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg
    ffmpeg version N-78949-g6f5048f Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopenc
    ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable
    -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
    ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
    264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
    -lzma --enable-decklink --enable-zlib
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 27.101 / 57. 27.101
     libavformat    57. 28.100 / 57. 28.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.100 /  6. 39.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mpeg, from 'vid.mpg':
     Duration: 00:00:33.62, start: 0.529978, bitrate: 22407 kb/s
       Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:
    1 DAR 16:9], max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
    [mp3 @ 00000000003e3c20] Skipping 0 bytes of junk at 253.
    Input #1, mp3, from 'aud.mp3':
     Metadata:
       encoder         : Lavf57.28.100
     Duration: 00:01:03.03, start: 0.025057, bitrate: 128 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc57.27
    File 'out.mpg' already exists. Overwrite
    ? [y/N] y
    [Parsed_amerge_4 @ 00000000003a36e0] No channel layout for input 1
    [Parsed_amerge_4 @ 00000000003a36e0] Input channel layouts overlap: output layou
    t will be determined by the number of distinct input channels
    [mpeg @ 000000000289a4e0] VBV buffer size not set, using default size of 130KB
    If you want the mpeg file to be compliant to some specification
    Like DVD, VCD or others, make sure you set the correct buffer size
    Output #0, mpeg, to 'out.mpg':
     Metadata:
       encoder         : Lavf57.28.100
       Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-3
    1, max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
       Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s (default)
       Metadata:
         encoder         : Lavc57.27.101 mp2
    Stream mapping:
     Stream #1:0 (mp3) -> aformat
     Stream #1:0 (mp3) -> aformat
     Stream #0:0 -> #0:0 (copy)
     amerge -> Stream #0:1 (mp2)
    Press [q] to stop, [?] for help
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=234676 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=234676 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=236705 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=236705 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=238746 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=238746 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=240787 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=240787 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=242828 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=242828 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=244869 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=244869 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=246910 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=246910 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=248951 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=248951 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=250992 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=250992 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=253033 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=253033 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=255074 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=255074 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=257115 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=257115 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=259156 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=259156 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=261197 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=261197 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=263238 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=263238 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=265279 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=265279 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=267320 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=267320 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=269361 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=269361 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=271402 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=271402 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=273443 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=273443 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=275484 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=275484 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=277525 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=277525 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=279566 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=279566 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=281607 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=281607 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=283648 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=283648 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=285689 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=285689 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=287730 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=287730 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=289771 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=289771 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=291812 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=291812 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=293853 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=293853 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=295894 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=295894 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=297935 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=297935 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=299976 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=299976 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=302017 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=302017 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=304058 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=304058 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=306099 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=306099 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=308140 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=308140 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=310181 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=310181 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=312222 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=312222 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=314263 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=314263 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=316304 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=316304 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=318345 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=318345 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=320386 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=320386 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=322427 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=322427 size=322616
    frame=    1 fps=0.0 q=-1.0 Lsize=     318kB time=00:00:00.00 bitrate=N/A speed=
     0x
    video:315kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
    verhead: 0.934858%

    C:\bina\ffmpeg\bin>ffmpeg -i vid.mpg -i
    aud.mp3 -c:v copy  -filter_complex "[0:a]aform
    at = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a]
    [1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg

    what am i doing wrong ? and how can i solve it ?

    please help.