record video and audio on android

VLC for Android and Chrome OS specific usage questions
ares89
New Cone
New Cone
Posts: 7
Joined: 05 Jan 2013 02:27

record video and audio on android

Postby ares89 » 02 Jan 2014 03:45

Happy new Year!Happy 2014!

I want record video from rtsp which transforms H264.

so I add the function "Add new API to libvlc to record the current media to either an application-specified file or a file " from https://patches.videolan.org/patch/606/

it works, but the function seems missing the audio while the video has been recorded.

I don't know what to do the record the audio with video.

helps! thank you!

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: record video and audio on android

Postby edwardw » 02 Jan 2014 05:13

Maybe you don't have the audio encoder necessary for it. Check the logs.

ares89
New Cone
New Cone
Posts: 7
Joined: 05 Jan 2013 02:27

Re: record video and audio on android

Postby ares89 » 02 Jan 2014 07:36

thanks. The log is as below, i cannot find the bug...

this logs start from the start of recording,stop at when the file is saved.

Code: Select all

01-02 14:00:39.421 23261-23261/ D/VLC/VideoPlayerActivity﹕ takeVideoRecord start 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main stream output: using sout chain=`record{dst-prefix='/storage/emulated/0/com.ares.example/Video//vlc-record-2014-01-02-14h00m39s--'}' 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main stream output: stream=`record' 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "record": 20 candidates 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main stream out: set config option: sout-record-dst-prefix to /storage/emulated/0/com.ares.example/Video//vlc-record-2014-01-02-14h00m39s-- 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main stream out: using sout stream module "stream_out_record" 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main decoder: looking for packetizer module matching "any": 20 candidates 01-02 14:00:39.421 23261-23867/ D/VLC﹕ packetizer_h264 decoder: found NAL_SPS (sps_id=0) 01-02 14:00:39.421 23261-23867/ D/VLC﹕ packetizer_h264 decoder: found NAL_PPS (pps_id=0 sps_id=0) 01-02 14:00:39.421 23261-23867/ D/VLC﹕ main decoder: using packetizer module "packetizer_h264" 01-02 14:00:39.431 23261-23867/ D/VLC﹕ main decoder: looking for packetizer module matching "any": 20 candidates 01-02 14:00:39.431 23261-23867/ D/VLC﹕ main decoder: using packetizer module "packetizer_copy" 01-02 14:00:39.731 23261-23873/ D/VLC﹕ opensles_android audio output: latency 748 ms, 74/255 buffers 01-02 14:00:39.751 23261-23917/ D/VLC﹕ main stream output: adding a new sout input (sout_input:0x7d923aa8) 01-02 14:00:39.751 23261-23873/ D/VLC﹕ opensles_android audio output: latency 1003 ms, 100/255 buffers 01-02 14:00:40.231 23261-23873/ D/VLC﹕ opensles_android audio output: latency 778 ms, 77/255 buffers 01-02 14:00:40.291 23261-23873/ D/VLC﹕ opensles_android audio output: latency 953 ms, 95/255 buffers 01-02 14:00:40.411 23261-23916/ D/VLC﹕ main stream output: adding a new sout input (sout_input:0x7d8ebdd0) 01-02 14:00:40.781 23261-23873/ D/VLC﹕ opensles_android audio output: latency 728 ms, 72/255 buffers 01-02 14:00:40.821 23261-23873/ D/VLC﹕ opensles_android audio output: latency 904 ms, 90/255 buffers 01-02 14:00:41.281 23261-23873/ D/VLC﹕ opensles_android audio output: latency 759 ms, 75/255 buffers 01-02 14:00:41.311 23261-23873/ D/VLC﹕ opensles_android audio output: latency 934 ms, 93/255 buffers 01-02 14:00:41.781 23261-23873/ D/VLC﹕ opensles_android audio output: latency 709 ms, 70/255 buffers 01-02 14:00:41.871 23261-23873/ D/VLC﹕ opensles_android audio output: latency 885 ms, 88/255 buffers 01-02 14:00:41.871 23261-23873/ W/VLC﹕ main audio output: playback too early (-53620): down-sampling 01-02 14:00:42.281 23261-23873/ D/VLC﹕ opensles_android audio output: latency 740 ms, 74/255 buffers 01-02 14:00:42.311 23261-23873/ D/VLC﹕ opensles_android audio output: latency 995 ms, 99/255 buffers 01-02 14:00:42.811 23261-23873/ D/VLC﹕ opensles_android audio output: latency 771 ms, 77/255 buffers 01-02 14:00:42.851 23261-23873/ D/VLC﹕ opensles_android audio output: latency 946 ms, 94/255 buffers 01-02 14:00:43.301 23261-23873/ D/VLC﹕ opensles_android audio output: latency 721 ms, 72/255 buffers 01-02 14:00:43.331 23261-23873/ D/VLC﹕ opensles_android audio output: latency 977 ms, 97/255 buffers 01-02 14:00:43.821 23261-23873/ D/VLC﹕ opensles_android audio output: latency 752 ms, 75/255 buffers 01-02 14:00:43.851 23261-23873/ D/VLC﹕ opensles_android audio output: latency 1007 ms, 100/255 buffers 01-02 14:00:44.331 23261-23873/ D/VLC﹕ opensles_android audio output: latency 782 ms, 78/255 buffers 01-02 14:00:44.381 23261-23873/ D/VLC﹕ opensles_android audio output: latency 957 ms, 95/255 buffers 01-02 14:00:44.871 23261-23873/ D/VLC﹕ opensles_android audio output: latency 733 ms, 73/255 buffers 01-02 14:00:44.911 23261-23873/ D/VLC﹕ opensles_android audio output: latency 908 ms, 90/255 buffers 01-02 14:00:45.371 23261-23873/ D/VLC﹕ opensles_android audio output: latency 763 ms, 76/255 buffers 01-02 14:00:45.431 23261-23873/ D/VLC﹕ opensles_android audio output: latency 938 ms, 93/255 buffers 01-02 14:00:45.911 23261-23873/ D/VLC﹕ opensles_android audio output: latency 714 ms, 71/255 buffers 01-02 14:00:45.961 23261-23873/ D/VLC﹕ opensles_android audio output: latency 889 ms, 88/255 buffers 01-02 14:00:46.391 23261-23873/ D/VLC﹕ opensles_android audio output: latency 744 ms, 74/255 buffers 01-02 14:00:46.461 23261-23873/ D/VLC﹕ opensles_android audio output: latency 920 ms, 92/255 buffers 01-02 14:00:46.911 23261-23873/ D/VLC﹕ opensles_android audio output: latency 695 ms, 69/255 buffers 01-02 14:00:46.941 23261-23873/ D/VLC﹕ opensles_android audio output: latency 950 ms, 95/255 buffers 01-02 14:00:47.411 23261-23873/ D/VLC﹕ opensles_android audio output: latency 725 ms, 72/255 buffers 01-02 14:00:47.481 23261-23873/ D/VLC﹕ opensles_android audio output: latency 901 ms, 90/255 buffers 01-02 14:00:47.961 23261-23873/ D/VLC﹕ opensles_android audio output: latency 676 ms, 67/255 buffers 01-02 14:00:48.011 23261-23873/ D/VLC﹕ opensles_android audio output: latency 931 ms, 93/255 buffers 01-02 14:00:48.441 23261-23873/ D/VLC﹕ opensles_android audio output: latency 706 ms, 70/255 buffers 01-02 14:00:48.461 23261-23873/ D/VLC﹕ opensles_android audio output: latency 961 ms, 96/255 buffers 01-02 14:00:48.951 23261-23873/ D/VLC﹕ opensles_android audio output: latency 736 ms, 73/255 buffers 01-02 14:00:48.981 23261-23873/ D/VLC﹕ opensles_android audio output: latency 911 ms, 91/255 buffers 01-02 14:00:49.471 23261-23873/ D/VLC﹕ opensles_android audio output: latency 685 ms, 68/255 buffers 01-02 14:00:49.481 23261-23873/ D/VLC﹕ opensles_android audio output: latency 940 ms, 94/255 buffers 01-02 14:00:49.991 23261-23873/ D/VLC﹕ opensles_android audio output: latency 715 ms, 71/255 buffers 01-02 14:00:50.011 23261-23873/ D/VLC﹕ opensles_android audio output: latency 910 ms, 91/255 buffers 01-02 14:00:50.241 23261-23261/ D/VLC/VideoPlayerActivity﹕ takeVideoRecord stop 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main decoder: removing module "packetizer_h264" 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main decoder: killing decoder fourcc `h264', 0 PES in FIFO 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream output: removing a sout input (sout_input:0x7d8ebdd0) 01-02 14:00:50.261 23261-23867/ W/VLC﹕ stream_out_record stream out: failed to find an adequate muxer, probing muxers 01-02 14:00:50.261 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer avi 01-02 14:00:50.261 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='avi',dst='/tmp/vlcgvcfTQ',no-append,no-format}' 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to avi 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlcgvcfTQ 01-02 14:00:50.261 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.261 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.261 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlcgvcfTQ: No such file or directory 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.261 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/avi:///tmp/vlcgvcfTQ' 01-02 14:00:50.261 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.271 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer mp4 01-02 14:00:50.271 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='mp4',dst='/tmp/vlcJjRG1R',no-append,no-format}' 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to mp4 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlcJjRG1R 01-02 14:00:50.271 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.271 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.271 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlcJjRG1R: No such file or directory 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.271 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/mp4:///tmp/vlcJjRG1R' 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.271 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer ogg 01-02 14:00:50.271 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='ogg',dst='/tmp/vlcgIdRNO',no-append,no-format}' 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to ogg 01-02 14:00:50.271 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlcgIdRNO 01-02 14:00:50.281 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.281 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.281 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlcgIdRNO: No such file or directory 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.281 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/ogg:///tmp/vlcgIdRNO' 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.281 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer asf 01-02 14:00:50.281 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='asf',dst='/tmp/vlcQL1akd',no-append,no-format}' 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.281 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to asf 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlcQL1akd 01-02 14:00:50.291 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.291 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.291 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlcQL1akd: No such file or directory 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.291 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/asf:///tmp/vlcQL1akd' 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.291 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer ts 01-02 14:00:50.291 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='ts',dst='/tmp/vlc20bTSd',no-append,no-format}' 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to ts 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlc20bTSd 01-02 14:00:50.291 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.291 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates [color=#FF0040]01-02 14:00:50.291 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlc20bTSd: No such file or directory[/color] 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.291 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/ts:///tmp/vlc20bTSd' 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.291 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer ps 01-02 14:00:50.291 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='ps',dst='/tmp/vlcxQefIQ',no-append,no-format}' 01-02 14:00:50.291 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to ps 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlcxQefIQ 01-02 14:00:50.301 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.301 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.301 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlcxQefIQ: No such file or directory 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.301 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/ps:///tmp/vlcxQefIQ' 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.301 23261-23867/ D/VLC﹕ stream_out_record stream out: probing muxer mkv 01-02 14:00:50.301 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='mkv',dst='/tmp/vlc9G88cl',no-append,no-format}' 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to mkv 01-02 14:00:50.301 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /tmp/vlc9G88cl 01-02 14:00:50.301 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.311 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.311 23261-23867/ E/VLC﹕ access_output_file access out: cannot create /tmp/vlc9G88cl: No such file or directory 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main access out: no sout access modules matched 01-02 14:00:50.311 23261-23867/ E/VLC﹕ stream_out_standard stream out: no suitable sout access module for `file/mkv:///tmp/vlc9G88cl' 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: no sout stream modules matched 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=(null)) 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.311 23261-23867/ D/VLC﹕ stream_out_record stream out: using muxer avi with extension avi (0/2 streams accepted) 01-02 14:00:50.311 23261-23867/ D/VLC﹕ stream_out_record stream out: Using record output `std{access=file,mux='avi',dst='/storage/emulated/0/com.ares.example/Video//vlc-record-2014-01-02-14h00m39s--.avi',no-append,no-format}' 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream output: stream=`std' 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: looking for sout stream module matching "std": 20 candidates 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-access to file 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-mux to avi 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: set config option: sout-standard-dst to /storage/emulated/0/com.ares.example/Video//vlc-record-2014-01-02-14h00m39s--.avi 01-02 14:00:50.311 23261-23867/ W/VLC﹕ main stream out: option no-append is unknown 01-02 14:00:50.311 23261-23867/ W/VLC﹕ main stream out: option no-format is unknown 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main access out: looking for sout access module matching "file": 7 candidates 01-02 14:00:50.311 23261-23867/ D/VLC﹕ access_output_file access out: file access output opened (/storage/emulated/0/com.ares.example/Video//vlc-record-2014-01-02-14h00m39s--.avi) 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main access out: using sout access module "access_output_file" 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main mux: looking for sout mux module matching "avi": 10 candidates 01-02 14:00:50.311 23261-23867/ D/VLC﹕ mux_avi mux: AVI muxer opened 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main mux: using sout mux module "mux_avi" 01-02 14:00:50.311 23261-23867/ D/VLC﹕ stream_out_standard stream out: using `file/avi:///storage/emulated/0/com.ares.example/Video//vlc-record-2014-01-02-14h00m39s--.avi' 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main stream out: using sout stream module "stream_out_standard" 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main mux: adding a new input 01-02 14:00:50.311 23261-23867/ D/VLC﹕ mux_avi mux: adding input [color=#BF0000]01-02 14:00:50.311 23261-23867/ E/VLC﹕ main mux: cannot add this stream[/color] 01-02 14:00:50.311 23261-23867/ D/VLC﹕ main mux: adding a new input 01-02 14:00:50.311 23261-23867/ D/VLC﹕ mux_avi mux: adding input 01-02 14:00:50.321 23261-23867/ D/VLC﹕ mux_avi mux: writing header 01-02 14:00:50.331 23261-23867/ D/VLC﹕ mux_avi mux: removing input 01-02 14:00:50.331 23261-23867/ W/VLC﹕ main mux: no more input streams for this mux 01-02 14:00:50.331 23261-23867/ D/VLC﹕ main decoder: removing module "packetizer_copy" 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main decoder: killing decoder fourcc `g726', 0 PES in FIFO 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream output: removing a sout input (sout_input:0x7d923aa8) 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=record) 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream out: removing module "stream_out_record" 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream out: destroying chain... (name=std) 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream out: removing module "stream_out_standard" 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main mux: removing module "mux_avi" 01-02 14:00:50.341 23261-23867/ D/VLC﹕ mux_avi mux: AVI muxer closed 01-02 14:00:50.341 23261-23867/ I/VLC﹕ mux_avi mux: stream[0] duration:10 totalsize:186851 frames:236 fps:22.092747 KiB/s:136 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main access out: removing module "access_output_file" 01-02 14:00:50.341 23261-23867/ D/VLC﹕ access_output_file access out: file access output closed 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream out: destroying chain done 01-02 14:00:50.341 23261-23867/ D/VLC﹕ main stream out: destroying chain done
thank you!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: record video and audio on android

Postby Jean-Baptiste Kempf » 02 Jan 2014 11:35

you are missing a lot of muxers.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ares89
New Cone
New Cone
Posts: 7
Joined: 05 Jan 2013 02:27

Re: record video and audio on android

Postby ares89 » 02 Jan 2014 12:11

you are missing a lot of muxers.


:D I am sorry to hear that... and I am happy for your answering.
what muxer i am missing? and how can i add it ?

jason_lee
New Cone
New Cone
Posts: 6
Joined: 07 Jan 2014 03:40

Re: record video and audio on android

Postby jason_lee » 13 Jan 2014 02:57

hi,friend, I am also doing the same thing. I just want to record the video. I added this function followed the https://patches.videolan.org/patch/606/, but it seems don't work. Could you tell me what to do after following the https://patches.videolan.org/patch/606/?
Thanks in advance!

ares89
New Cone
New Cone
Posts: 7
Joined: 05 Jan 2013 02:27

Re: record video and audio on android

Postby ares89 » 11 Feb 2014 10:34

you are missing a lot of muxers.
I find the reason g726 cannot be record is that Muxer cannot add the G726 stream.
the vlc uses avi muxer defautly, and in the file avi.c, the avi muxer not deal with VLC_CODEC_ADPCM_G726.
so i add below in avi.c, my G726 is 32bit.

Code: Select all

case VLC_CODEC_ADPCM_G726: p_wf->wFormatTag = WAVE_FORMAT_G726; p_wf->wBitsPerSample = 4; p_wf->nAvgBytesPerSec = (p_wf->wBitsPerSample/8) * p_wf->nSamplesPerSec * p_wf->nChannels; break;
so the stream can be record now. but the avi file recorded cannot be play.
the vlc player gives the error below:

Code: Select all

VLC﹕ avi stream: <list 'AVI '> VLC﹕ avi stream: <list 'hdrl'> VLC﹕ avi stream: <list 'strl'> VLC﹕ avi stream: </list 'strl'> VLC﹕ avi stream: <list 'strl'> VLC﹕ avi stream: </list 'strl'> VLC﹕ avi stream: </list 'hdrl'> VLC﹕ avi stream: skipping movi chunk VLC﹕ avi stream: </list 'AVI '> VLC﹕ avi stream: * LIST-root size:578568 pos:0 VLC﹕ avi stream: + RIFF-AVI size:578560 pos:0 VLC﹕ avi stream: | + LIST-hdrl size:10208 pos:12 VLC﹕ avi stream: | | + avih size:56 pos:24 VLC﹕ avi stream: | | + LIST-strl size:94 pos:88 VLC﹕ avi stream: | | | + strh size:56 pos:100 VLC﹕ avi stream: | | | + strf size:18 pos:164 VLC﹕ avi stream: | | + LIST-strl size:150 pos:190 VLC﹕ avi stream: | | | + strh size:56 pos:202 VLC﹕ avi stream: | | | + strf size:74 pos:266 VLC﹕ avi stream: | | + JUNK size:9872 pos:348 VLC﹕ avi stream: | + LIST-movi size:564996 pos:10228 VLC﹕ avi stream: | + idx1 size:3328 pos:575232 VLC﹕ avi demux: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE VLC﹕ avi demux: stream[0] rate:4080750 scale:1000 samplesize:1 VLC﹕ avi demux: stream[0] audio(0x45 - G.726 ADPCM Audio) 1 channels 8000Hz 4bits VLC﹕ main input: selecting program id=0 VLC﹕ avi demux: stream[1] rate:21880 scale:1000 samplesize:0 VLC﹕ avi demux: stream[1] video(h264) 640x480 24bpp 21.879999fps VLC﹕ avi demux: selected standard index for stream[0] VLC﹕ avi demux: selected standard index for stream[1] VLC﹕ avi demux: stream[0] created 30 index entries VLC﹕ avi demux: stream[1] created 178 index entries VLC﹕ avi demux: stream[0] length:7 (based on index) VLC﹕ avi demux: stream[1] length:8 (based on index) VLC﹕ main demux: using demux module "avi" VLC﹕ main input: looking for a subtitle file in /storage/emulated/0/com.example.ares89/Video/ VLC﹕ main decoder: looking for decoder module matching "any": 31 candidates VLC﹕ avcodec decoder: cannot open codec (G.726 ADPCM Audio) VLC﹕ main decoder: no decoder modules matched VLC﹕ main packetizer: looking for packetizer module matching "any": 20 candidates VLC﹕ main packetizer: using packetizer module "packetizer_copy" VLC﹕ main decoder: no suitable decoder module for fourcc `g726'. VLC probably does not support this sound or video format. VLC﹕ main decoder: No suitable decoder module VLC﹕ main decoder: VLC does not support the audio or video format "g726". Unfortunately there is no way for you to fix this. VLC﹕ main decoder: killing decoder fourcc `g726', 0 PES in FIFO
now the problem is vlc don't have g726 decoder, what can i do now? thanks for your help!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: record video and audio on android

Postby Jean-Baptiste Kempf » 11 Feb 2014 22:35

code a decoder or link to one.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Dev Lee
New Cone
New Cone
Posts: 2
Joined: 25 Sep 2014 05:18

Re: record video and audio on android

Postby Dev Lee » 25 Sep 2014 07:43

I have apply the patch https://patches.videolan.org/patch/606/
and build ti ok.
But when I run it on my Android Phone the logcat shows en error bellow:
core video output: Encoding support not compiled-in!
core video output: Failed to convert image for snapshot
please help me to resolve this .

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: record video and audio on android

Postby edwardw » 25 Sep 2014 17:55

That's exactly what it says.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 78 guests