Advertisement
Guest User

Untitled

a guest
Dec 29th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. So i have this code:
  2.  
  3. command = [self.ffmpegl,
  4. '-f', 'dshow',
  5. '-i','audio=Microphone (Webcam C170)',
  6. '-f', 's16le',
  7. '-acodec', 'libmp3lame',
  8. '-']
  9.  
  10. which runs in python along with pipes, using subprocess, for those who didnt get it from above - so in short:
  11. ffmpeg.exe -f dshow -i audio="My mic" -f s161e -acodec libmp3lame -
  12.  
  13. the last '-' part is for piping
  14. i get output on the stdout with the pipe, but i send "q\n" through stdin pipe to stop recording after 10 seconds.
  15.  
  16. When i do that, i get:
  17.  
  18. Press [q] to stop, [?] for help
  19. av_interleaved_write_frame(): Invalid argument
  20. size= 100kB time=00:00:06.33 bitrate= 128.7kbits/s
  21. video:0kB audio:100kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
  22. Conversion failed!
  23.  
  24. Any idea what i should do?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement