Posted By

rowntreerob on 03/07/12


Tagged

ffmpeg


Versions (?)

ffmpeg replace audio in mp4 with 3gp audio from phone


 / Published in: Bash
 

2 steps using ffmpeg to drop the original audio track and replace it with new audio file from the phone

  1. ./ffmpeg -i MAH01688-2.MP4 -map 0:0 -vcodec copy tgeo.mp4
  2.  
  3. ./ffmpeg -i tgeo.mp4 -i audio_geo.3gpp -vcodec copy -acodec libmp3lame -ar 44100 -ab 44100 applygeo.mp4
  4.  
  5. STEP 1 drops audio track from mp4 creating outfile
  6. STEP 2 Muxes audio from 3gp file ( audio from phone ) with the outfile from step 1
  7.  
  8. --- mp4 INPUT Details:
  9. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MAH01688.MP4':
  10. Metadata:
  11. major_brand : MSNV
  12. minor_version : 19595352
  13. compatible_brands: MSNVmp42isom
  14. creation_time : 2012-03-06 08:33:47
  15. Duration: 00:00:54.05, start: 0.000000, bitrate: 12165 kb/s
  16. Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 12032 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
  17. Metadata:
  18. creation_time : 2012-03-06 08:33:47
  19. handler_name : Video Media Handler
  20. Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s
  21. Metadata:
  22. creation_time : 2012-03-06 08:33:47
  23. handler_name : Sound Media Handler

Report this snippet  

You need to login to post a comment.