Recording with avimux problem

killerrats koreysjunkmail at gmail.com
Tue Sep 12 15:28:36 UTC 2017


Main Source 
---------------- 
         | queue1 -> rtph264depay -> h264parse -> vtee --------|  ______
rtspsrc                                                                                  
| RecBin |
         | queue2 -> rtpmp4gdepay -> aacparse -> faad -> atee | 

RecBin 
--------- 
queue3 | 
            avimux -> appsink 
queue4 | 

Steps unlink and link 
----------------- 
1. unlink mux to appsink 
2. unlink the pad vtee to record bin ghost pad "Videosink" 
3. unlink the pad atee to record bin ghost pad "audiosink" 
4. unlink the pad queue3 to mux 
5. unlink the pad queue4 to mux 
6. release pad from vtee and atee 
7. gst_element_remove_pad q3 to mux 
8. gst_element_remove_pad q4 to mux 
9. null the record bin 
10. remove each item in record bin 
11. remove from main pipeline 

Linking back up 
----------------- 
12. setup each item and add to record bin. 
13. request pad from mux "video_0" and link q3 to mux 
14 request pad from mux "audio_0" and link q4 to mux 
15 add record bin to main pipeline 
16. create "videosink" ghost pad and link ghost pad to q3 
17. create "audiosink" ghost pad and link ghost pad to q4 
18. gst_state_null on record bin 
19. request pad from vtee "src_1" and link to ghost pad "videosink" 
20. request pad from atee "src_1" and link to ghost pad "audiosink" 
21. link mux to appsink 
22. put play on record bin and setup appsink emit signal function 



question: 
-------------- 
I have successfully send eos through record bin to then unlink and link back 
up. the recording of the video works for audio and video works great the
first time but when it comes to re-linking the RecBin back up, it only
records audio.

if I just hook up video it does the same thing. appsink show buffers going
through but when i look at the file it says has no frames. if i hook up
either AV or just Audio the audio is fine. I can hook up a autovideosink to
the queue that handles the video side and show up with video but when it
goes through the mux it doesn't seem to show up in the file.

Gstreamer Version 1.6.2

I have tried 1.12 seems to do the same.

Any Ideas?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list