Advertisement
Guest User

Untitled

a guest
Jul 25th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. video.mp4
  2.  
  3. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/vid.mp4':
  4. Metadata:
  5. major_brand : mp42
  6. minor_version : 0
  7. compatible_brands: isommp42
  8. creation_time : 2019-07-26T03:28:49.000000Z
  9. com.android.version: 8.0.0
  10. Duration: 00:00:07.64, start: 0.000000, bitrate: 20534 kb/s
  11. Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 20966 kb/s, SAR 1:1 DAR 16:9, 29.70 fps, 29.75 tbr, 90k tbn, 180k tbc (default)
  12. Metadata:
  13. rotate : 270
  14. creation_time : 2019-07-26T03:28:49.000000Z
  15. handler_name : VideoHandle
  16. Side data:
  17. displaymatrix: rotation of 90.00 degrees
  18. Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default)
  19. Metadata:
  20. creation_time : 2019-07-26T03:28:49.000000Z
  21. handler_name : SoundHandle
  22.  
  23.  
  24. sunflower.mp3
  25.  
  26. Input #0, mp3, from '/storage/emulated/0/sunflower.mp3':
  27. Metadata:
  28. album : Sunflower (Spider-Man: Into the Spider-Verse) - Single
  29. composer : Louis Bell, Carter Lang, Austin Richard Post, Billy Walsh & Khalif Malik Ibin Shaman Brown
  30. genre : Hip-Hop/Rap
  31. copyright : This Compilation ℗ 2018 Republic Records, a division of UMG Recordings, Inc.
  32. title : Sunflower (Spider-Man: Into the Spider-Verse)
  33. artist : Post Malone & Swae Lee
  34. album_artist : Post Malone & Swae Lee
  35. track : 01/01
  36. TYER : 2018-10-18T07:00:00Z
  37. Duration: 00:02:38.07, start: 0.000000, bitrate: 325 kb/s
  38. Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  39. Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1400x1400 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
  40. Metadata:
  41. comment : Cover (front)
  42.  
  43.  
  44.  
  45.  
  46. On ubuntu:
  47. ffmpeg version 3.4.6-0ubuntu0.18.04.1
  48.  
  49. The following command works fine on ubuntu...
  50.  
  51. ffmpeg -i video.mp4 -i sunflower.mp3 -map 0:v -c:v copy -filter_complex '[0:a][1:a]amix[aout]' -map '[aout]' -shortest out.mp4
  52.  
  53.  
  54.  
  55.  
  56. On Android:
  57. ffmpeg version n4.0-39-gda39990
  58.  
  59. The following command doesn't work on android...
  60.  
  61. ffmpeg -i /storage/emulated/0/Camera/video.mp4 -i /storage/emulated/0/sunflower.mp3 -map 0:v -c:v copy -filter_complex '[0:a][1:a]amix[aout]' -map '[aout]' -shortest /storage/emulated/0/out.mp4
  62.  
  63. The error I get is...
  64.  
  65. [AVFilterGraph @ 0xf016f040] No such filter: '[0:a][1:a]amix[aout]'
  66.  
  67. All of the files are present and I can do 'ffmpeg -i <file>' on both the files and the output is expected, so the files are present and can be read by the ffmpeg binary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement