<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div>hello, searching the net, seeking a way to playback my digital video files out of a black magic video card (i got an intensity pro),  i found this pipeline to work for most of my video files:</div><div>gst-launch-1.0 uridecodebin uri=file:///mnt/nas/postion/of/th/file.extenision name=decode decode. ! interlace field-pattern=1 ! videoconvert ! video/x-raw,format=UYVY ! videoscale ! video/x-raw,width=720,height=576 ! videorate ! video/x-raw,framerate=25/1 ! decklinkvideosink mode=3 decode. ! audioconvert ! decklinkaudiosink<br><br></div><div>PS: mode=3 stands for PAL SD 50i as i whant the card to play content out of the composite cideo connector.</div><div><br></div><div>This works quite well, but with some file  playback do not occours.</div><div><br></div><div>for example, with a file shot by cell phone i got no problem (those are stats by ffmpeg):</div><div>h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 13976 kb/s, SAR 1:1 DAR 16:9, 15.03 fps, 15 tbr, 90k tbn, 180k tbc (default)<br>Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 156 kb/s (default)</div><div><br></div><div>but with another edited with pinnacle studio (stats by ffmpeg):</div><div>Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 2024 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)</div><div>Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)<br><br></div><div></div><div>i got this error:</div><div><br></div><div>ERRORE: dall'elemento /GstPipeline:pipeline0/GstURIDecodeBin:decode/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.<br>Informazioni di debug aggiuntive:<br>qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstURIDecodeBin:decode/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:<br>streaming stopped, reason not-negotiated (-4)<br>ERRORE: la pipeline non vuole fare il preroll.<br>Impostazione della pipeline a NULL ...<br>Esecuzione di free sulla pipeline...<br><br></div><div>I suppose that the problem could be the samplerate, so i resampled the audio in this way:</div><div>ffmpeg -i grand_prix_casagrande.mp4 -vcodec copy -acodec aac -ar 48000 -ab 128000 -ac 2 grand_prix_casagrande_48.mp4</div><div><br></div><div>and now the new file could be played back.</div><div><br></div><div>My question now is: There is a way to make the resample AT RUNTIME (and maybe only if needed)?</div><div><br></div><div>Thanks a lot,</div><div><br></div><div>Federico<br></div><div><br>-- <br><div dir="ltr" class="gmail-m_-4620848940248736416gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sourceforge: <a href="https://sourceforge.net/u/allegfede/" target="_blank">https://sourceforge.net/u/allegfede/</a><br><div><br>YouTube Channel: <a href="https://www.youtube.com/c/v1p3rslab" target="_blank">https://www.youtube.com/c/v1p3rslab</a><br><br>VIMEO HD videos: <a href="http://www.vimeo.com/user1912745/videos" target="_blank">http://www.vimeo.com/user1912745/videos</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>