Advertisement
Guest User

Untitled

a guest
Feb 1st, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. I am appending 2 mp4 files together using the following routine:
  2.  
  3. ffmpeg -y -i one.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy one.ts
  4. ffmpeg -y -i two.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy two.ts
  5.  
  6. cat one.ts two.ts >> joined.ts
  7.  
  8. ffmpeg -y -i joined.ts -vcodec copy -acodec copy -absf aac_adtstoasc joined.mp4
  9.  
  10. This works fine, however when one.mp4 has no audio stream (the file is created using ffmpeg from a single jpeg, so no sound), the routine appends the files but the audio of two.mp4 starts at the beginning of the video. how should I solve this problem? Should I add switches to my append routine so that the audio in two.mp4 starts playing where it should, or should I add something to the ffmpeg command which creates the video from jpg?
  11.  
  12. here is the command I use to create one.mp4 which contains no sound:
  13.  
  14. ffmpeg -y -loop 1 -i blah.jpg -t 3 -vcodec libx264 one.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement